utimensat: Work around problem on Linux/hppa.
[gnulib.git] / ChangeLog
1 2011-10-27  Bruno Haible  <bruno@clisp.org>
2
3         utimensat: Work around problem on Linux/hppa.
4         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5         values.
6         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7
8 2011-10-25  Jim Meyering  <meyering@redhat.com>
9
10         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12         after symbols like NULL, size_t, etc.
13         Reported by Alfred M. Szmidt.
14
15         maint.mk: exempt ENODATA from a syntax-check rule
16         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
17         from the sc_prohibit_always-defined_macros syntax-check rule.
18         Add a comment.  See this for more details:
19         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
20
21 2011-10-23  Jim Meyering  <meyering@redhat.com>
22
23         fts: close parent dir FD before returning from post-traversal fts_read
24         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
25         unlink A, even though an FD open on A remained.  This is suboptimal
26         (holding a file descriptor open longer than needed), but otherwise not
27         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
28         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
29         that represents a real problem: it causes the removal of A to fail
30         with e.g., "rm: cannot remove `A': Device or resource busy"
31
32         fts visits each directory twice and keeps a cache (fts_fd_ring) of
33         directory file descriptors.  After completing the final, FTS_DP,
34         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
35         cache, but then proceeded to add a new FD to it via the subsequent
36         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
37         final file descriptor would be closed only via fts_close's call to
38         fd_ring_clear.  Now, it is usually closed earlier, via the final
39         FTS_DP-returning fts_read call.
40         * lib/fts.c (restore_initial_cwd): New function, converted from
41         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42         Update callers.
43         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
44         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45
46 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
47             Bruno Haible  <bruno@clisp.org>
48             Jim Meyering  <jim@meyering.net>
49
50         readme-release: improve safety of release prep instructions.
51         * README-release: Don't git pull all branches when only master
52         is needed for the release process.
53         Run make maintainer-clean before changing trees and merging.
54         Don't try to run ./configure right after git pull in case files
55         that influence the bootstrap process have changed, move the
56         ./configure step to after running ./bootstrap.
57         Don't bootstrap "one last time"... it's the first time!
58
59 2011-10-22  Bruno Haible  <bruno@clisp.org>
60
61         errno, strerror-override: Support for MSVC 10.
62         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
63         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
64         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
65         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
66         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
67         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
68         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
69         Assign values compatible with MSVC 10.
70         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
71         New macros.
72         (GNULIB_defined_EWINSOCK): New macro.
73         * lib/strerror-override.c (strerror_override): Update accordingly.
74         * lib/strerror-override.h: Likewise.
75         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
76         longer equal to the corresponding errno value.
77         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
78
79 2011-10-22  Bruno Haible  <bruno@clisp.org>
80
81         perror: Recognize when test program crashes.
82         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
83         strerror, set gl_cv_func_perror_works to no.
84         Reported by Daniel Richard G. <skunk@iskunk.org>.
85
86         perror: Fix indentation.
87         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
88
89 2011-10-22  Bruno Haible  <bruno@clisp.org>
90
91         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
92         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
93         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
94         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
95         functions, not as a macro.
96         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
97         macros.
98         (isfinite, isinf, isnan, signbit): Check overloaded functions and
99         absence of macro.
100         Suggested by Eric Blake.
101         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
102
103 2011-10-21  Bruno Haible  <bruno@clisp.org>
104
105         relocatable-prog-wrapper: Don't leave object files behind.
106         * build-aux/install-reloc: Re-synchronize list of .o files to be
107         removed with list of compilation units.
108
109 2011-10-20  Bruno Haible  <bruno@clisp.org>
110
111         openpty, posix_openpt: Remove code duplication.
112         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
113         * lib/openpty.c: Include <stdlib.h>.
114         (openpty): Use posix_openpt on all platforms except IRIX.
115         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
116
117 2011-10-20  Bruno Haible  <bruno@clisp.org>
118
119         unlockpt: Detect invalid argument.
120         * lib/unlockpt.c: Include <fcntl.h>.
121         (unlockpt): Check whether fd is valid, using fcntl().
122         * modules/unlockpt (Depends-on): Add fcntl-h.
123
124 2011-10-20  Bruno Haible  <bruno@clisp.org>
125
126         openpty: Avoid compilation error on AIX 6.1.
127         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
128
129 2011-10-20  Bruno Haible  <bruno@clisp.org>
130
131         posix_openpt: Support for OpenBSD.
132         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
133         (posix_openpt) [OpenBSD]: New code.
134         * lib/grantpt.c: Include <fcntl.h>.
135         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
136         * modules/grantpt (Depends-on): Add fcntl-h.
137
138 2011-10-20  Bruno Haible  <bruno@clisp.org>
139
140         posix_openpt test: Coding style.
141         * tests/test-posix_openpt.c: Use GNU coding style.
142
143 2011-10-20  Bruno Haible  <bruno@clisp.org>
144
145         grantpt: Support --avoid=pt_chown.
146         * modules/grantpt (Files): Add lib/pty-private.h.
147
148 2011-10-20  Bruno Haible  <bruno@clisp.org>
149
150         posix_openpt: Fix autoconf macro.
151         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
152         unneeded check for _getpty.
153
154 2011-10-20  Bruno Haible  <bruno@clisp.org>
155
156         openpty: Update comments.
157         * lib/openpty.c: Add comments about Minix.
158
159 2011-10-19  Eric Blake  <eblake@redhat.com>
160
161         openpty: relax license
162         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
163
164         pt_chown: use configmake to simplify build
165         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
166
167         ptsname and others: relax license
168         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
169         * modules/unlockpt (License): Likewise.
170         * modules/pt_chown (License): Likewise.
171         * modules/ptsname (License): Likewise.
172         * modules/ttyname_r (License): Likewise.
173
174 2011-10-19  Jim Meyering  <meyering@redhat.com>
175
176         posix_openpt: remove spurious #endif
177         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
178
179 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
180
181         maint.mk: Respect $(build_aux) in web-manual rule.
182         * top/maint.mk (web-manual): Find gen-announce script in user's
183         $(build_aux) directory instead of hard-coding 'build-aux'.
184
185 2011-10-19  Bruno Haible  <bruno@clisp.org>
186
187         posix_openpt: Fix compilation error.
188         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
189         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
190         Mention the openpty module as an alternative.
191
192 2011-10-19  Bruno Haible  <bruno@clisp.org>
193
194         Support for old NeXTstep 3.3 frexp().
195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
196         execution time of the test to 5 seconds.
197         Reported by Daniel Richard G. <skunk@iskunk.org>.
198
199 2011-10-19  Bruno Haible  <bruno@clisp.org>
200
201         Support for old NeXTstep 3.3 sed.
202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
203         part, use /.../, not \|...|. Escape periods in the header file name.
204         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
205         Reported by Daniel Richard G. <skunk@iskunk.org>.
206
207 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
208
209         Support for old NeXTstep 3.3 gcc.
210         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
211         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
212         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
213         * lib/spawn.in.h (_Restrict_arr_): Likewise.
214         * lib/regex.h (_Restrict_arr_): Likewise.
215         * lib/regex_internal.h (re_token_t): Likewise.
216         * lib/regexec.c (check_node_accept_bytes): Likewise.
217         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
218
219 2011-10-18  Eric Blake  <eblake@redhat.com>
220
221         posix_openpt: new module
222         * modules/posix_openpt: New module.
223         * m4/posix_openpt.m4: New file.
224         * lib/posix_openpt.c: Likewise.
225         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
226         (gl_STDLIB_H_DEFAULTS): Set defaults.
227         * modules/stdlib (Makefile.am): Substitute macros.
228         * lib/stdlib.in.h (posix_openpt): Declare.
229         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
230         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
231         * modules/posix_openpt-tests: New test module.
232         * tests/test-posix_openpt.c: New test.
233
234 2011-10-15  Bruno Haible  <bruno@clisp.org>
235
236         xstrtoll: Fix compilation failure.
237         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
238         from lib/strtol.c.
239         * doc/posix-headers/limits.texi: Mention missing numerical limits on
240         some platforms.
241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
242
243 2011-10-15  Bruno Haible  <bruno@clisp.org>
244
245         vasnprintf: Optimize bit search operation.
246         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
248         gl_DOUBLE_EXPONENT_LOCATION.
249         * modules/vasnprintf (Files): Add m4/exponentd.m4.
250         * modules/unistdio/u8-vasnprintf (Files): Likewise.
251         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
252         * modules/unistdio/u16-vasnprintf (Files): Likewise.
253         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
254         * modules/unistdio/u32-vasnprintf (Files): Likewise.
255         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
256         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
257         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
258
259 2011-10-15  Bruno Haible  <bruno@clisp.org>
260
261         vasnprintf: Fix comments.
262         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
263
264 2011-10-14  Bruno Haible  <bruno@clisp.org>
265
266         Tests for module 'integer_length_ll'.
267         * modules/integer_length_ll-tests: New file.
268         * tests/test-integer_length_ll.c: New file.
269
270         New module 'integer_length_ll'.
271         * lib/integer_length_ll.c: New file.
272         * modules/integer_length_ll: New file.
273
274 2011-10-14  Bruno Haible  <bruno@clisp.org>
275
276         Tests for module 'integer_length_l'.
277         * modules/integer_length_l-tests: New file.
278         * tests/test-integer_length_l.c: New file.
279
280         New module 'integer_length_l'.
281         * lib/integer_length_l.c: New file.
282         * modules/integer_length_l: New file.
283
284 2011-10-14  Bruno Haible  <bruno@clisp.org>
285
286         Tests for module 'integer_length'.
287         * modules/integer_length-tests: New file.
288         * tests/test-integer_length.c: New file.
289
290         New module 'integer_length'.
291         * lib/integer_length.h: New file.
292         * lib/integer_length.c: New file.
293         * modules/integer_length: New file.
294
295 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
296
297         popen: Fix dependency conditions.
298         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
299
300 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
301
302         perror: Fix autoconf test.
303         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
304         <stdlib.h> and <string.h>.
305
306 2011-10-14  Bruno Haible  <bruno@clisp.org>
307
308         ffsl: Optimize on 64-bit platforms.
309         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
310         unrolling.
311
312 2011-10-13  Bruno Haible  <bruno@clisp.org>
313
314         ffsl: Optimize on 32-bit platforms.
315         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
316         use ffs() without a loop.
317
318         ffsl, ffsll: Optimize for GCC.
319         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
320         * lib/ffsl.c (GCC_BUILTIN): New macro.
321         * lib/ffsll.c (GCC_BUILTIN): Likewise.
322
323 2011-10-13  Bruno Haible  <bruno@clisp.org>
324
325         ffs, bcopy, memset: Support symbol renaming via config.h.
326         * lib/ffs.c: Include <config.h>.
327         * lib/bcopy.c: Likewise.
328         * lib/memset.c: Likewise.
329
330 2011-10-10  Bruno Haible  <bruno@clisp.org>
331
332         atanl: Simplify for platforms where 'long double' == 'double'.
333         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
334         alternative implementation.
335         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
336         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
337         * modules/atanl (Depends-on): Add atan. Update conditions.
338
339 2011-10-10  Bruno Haible  <bruno@clisp.org>
340
341         acosl: Simplify for platforms where 'long double' == 'double'.
342         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
343         alternative implementation.
344         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
345         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
346         * modules/acosl (Depends-on): Add acos. Update conditions.
347
348 2011-10-10  Bruno Haible  <bruno@clisp.org>
349
350         asinl: Simplify for platforms where 'long double' == 'double'.
351         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
352         alternative implementation.
353         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
354         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
355         * modules/asinl (Depends-on): Add asin. Update conditions.
356
357 2011-10-10  Bruno Haible  <bruno@clisp.org>
358
359         tanl: Simplify for platforms where 'long double' == 'double'.
360         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
361         implementation.
362         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
363         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
364         * modules/tanl (Depends-on): Add tan. Update conditions.
365         (configure.ac): Don't compile trigl.c if
366         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
367
368 2011-10-10  Bruno Haible  <bruno@clisp.org>
369
370         cosl: Simplify for platforms where 'long double' == 'double'.
371         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
372         implementation.
373         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
374         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
375         * modules/cosl (Depends-on): Add cos. Update conditions.
376         (configure.ac): Don't compile sincosl.c and trigl.c if
377         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
378
379 2011-10-10  Bruno Haible  <bruno@clisp.org>
380
381         sinl: Simplify for platforms where 'long double' == 'double'.
382         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
383         implementation.
384         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
385         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
386         * modules/sinl (Depends-on): Add sin. Update conditions.
387         (configure.ac): Don't compile sincosl.c and trigl.c if
388         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
389
390 2011-10-10  Bruno Haible  <bruno@clisp.org>
391
392         logl: Simplify for platforms where 'long double' == 'double'.
393         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
394         implementation.
395         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
396         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
397         * modules/logl (Depends-on): Add log. Update conditions.
398
399 2011-10-10  Bruno Haible  <bruno@clisp.org>
400
401         expl: Simplify for platforms where 'long double' == 'double'.
402         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
403         implementation.
404         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
405         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
406         * modules/expl (Depends-on): Add exp. Update conditions.
407
408 2011-10-10  Bruno Haible  <bruno@clisp.org>
409
410         sqrtl: Simplify for platforms where 'long double' == 'double'.
411         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
412         alternative implementation.
413         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
414         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
415         * modules/sqrtl (Depends-on): Update conditions.
416
417 2011-10-10  Bruno Haible  <bruno@clisp.org>
418
419         ldexpl: Simplify for platforms where 'long double' == 'double'.
420         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
421         alternative implementation.
422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
423         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
424         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
425
426 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
427
428         ffsll: set correct witness
429         * modules/ffsll (configure.ac): Fix typo.
430
431 2011-10-10  Bruno Haible  <bruno@clisp.org>
432
433         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
434         * lib/printf-frexpl.c: Include <config.h>.
435         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
436         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
437         second time.
438         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
439         gl_LONG_DOUBLE_VS_DOUBLE.
440         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
441         conditions.
442
443 2011-10-10  Bruno Haible  <bruno@clisp.org>
444
445         frexpl: Simplify for platforms where 'long double' == 'double'.
446         * lib/frexpl.c: Include <config.h>.
447         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
448         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
449         time.
450         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
451         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
452         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
453         * modules/frexpl (Depends-on): Add frexp. Update conditions.
454         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
455         conditions.
456
457 2011-10-10  Jim Meyering  <meyering@redhat.com>
458
459         test-renameat: don't leave behind a temporary file
460         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
461           ERROR: files left in build directory after distclean:
462           ./gltests/test-renameat.too
463           make[1]: *** [distcleancheck] Error 1
464         Reported by Tom G. Christensen.
465
466 2011-10-09  Bruno Haible  <bruno@clisp.org>
467
468         rint: Determine RINT_LIBM correctly on AIX 7.
469         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
470         directly, not only through a function pointer. Also accept an optional
471         4th argument with extra code.
472         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
473         rintf() call by gcc when optimizing.
474
475         mathfunc.m4: Refactor.
476         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
477         m4 variable.
478
479 2011-10-09  Bruno Haible  <bruno@clisp.org>
480
481         rintl: Simplify for platforms where 'long double' == 'double'.
482         * lib/rintl.c: Include <config.h>.
483         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
484         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
485         time.
486         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
487         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
488         * modules/rintl (Depends-on): Add rint. Update conditions.
489
490 2011-10-09  Bruno Haible  <bruno@clisp.org>
491
492         roundl: Simplify for platforms where 'long double' == 'double'.
493         * lib/roundl.c: Include <config.h>.
494         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
495         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
496         time.
497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
498         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
499         * modules/roundl (Depends-on): Add round. Update conditions.
500
501 2011-10-09  Bruno Haible  <bruno@clisp.org>
502
503         truncl: Simplify for platforms where 'long double' == 'double'.
504         * lib/truncl.c: Include <config.h>.
505         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
506         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
507         time.
508         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
509         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
510         * modules/truncl (Depends-on): Add trunc. Update conditions.
511
512 2011-10-09  Bruno Haible  <bruno@clisp.org>
513
514         ceill: Simplify for platforms where 'long double' == 'double'.
515         * lib/ceill.c: Include <config.h>.
516         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
517         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
518         time.
519         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
520         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
521         * modules/ceill (Depends-on): Add ceil. Update conditions.
522
523 2011-10-09  Bruno Haible  <bruno@clisp.org>
524
525         floorl: Simplify for platforms where 'long double' == 'double'.
526         * lib/floorl.c: Include <config.h>.
527         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
528         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
529         time.
530         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
531         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
532         * modules/floorl (Depends-on): Add floor. Update conditions.
533
534 2011-10-09  Bruno Haible  <bruno@clisp.org>
535
536         rint: Fix ordering constraints.
537         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
538         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
539         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
540
541 2011-10-09  Bruno Haible  <bruno@clisp.org>
542
543         copysignl: Simplify for platforms where 'long double' == 'double'.
544         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
545         alternative.
546         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
547         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
548         * modules/copysignl (Depends-on): Add copysign. Update conditions.
549
550 2011-10-09  Bruno Haible  <bruno@clisp.org>
551
552         Tests for module 'rintl'.
553         * modules/rintl-tests: New file.
554         * tests/test-rintl.c: New file.
555
556         New module 'rintl'.
557         * lib/math.in.h (rintl): New declaration.
558         * lib/rintl.c: New file.
559         * m4/rintl.m4: New file.
560         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
562         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
563         * modules/rintl: New file.
564         * tests/test-math-c++.cc: Check the declaration of rintl.
565         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
566         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
567         * doc/posix-functions/rintl.texi: Mention the new module.
568
569 2011-10-09  Bruno Haible  <bruno@clisp.org>
570
571         Tests for module 'rintf'.
572         * modules/rintf-tests: New file.
573         * tests/test-rintf.c: New file.
574
575         New module 'rintf'.
576         * lib/math.in.h (rintf): New declaration.
577         * lib/rintf.c: New file.
578         * m4/rintf.m4: New file.
579         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
581         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
582         * modules/rintf: New file.
583         * tests/test-math-c++.cc: Check the declaration of rintf.
584         * doc/posix-functions/rintf.texi: Mention the new module.
585
586 2011-10-09  Bruno Haible  <bruno@clisp.org>
587
588         rint: Support for MSVC.
589         * lib/math.in.h (rint): New declaration.
590         * lib/rint.c: New file.
591         * m4/rint.m4: New file.
592         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
594         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
595         * modules/rint (Description): Fix.
596         (Files): Add lib/rint.c, m4/rint.m4.
597         (Depends-on): Add math.
598         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
599         gl_MATH_MODULE_INDICATOR.
600         * tests/test-math-c++.cc: Check the declaration of rint.
601         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
602         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
603         * doc/posix-functions/rint.texi: Mention the replacement provided by
604         the module.
605
606         rint tests: More tests.
607         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
608         minus-zero.h, infinity.h, nan.h.
609         (main): Skip the test if the current rounding mode is not standard. Add
610         tests for negative numbers, minus zero, infinity, NaN.
611         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
612         tests/nan.h.
613         (Depends-on): Add isnand-nolibm.
614
615 2011-10-09  Bruno Haible  <bruno@clisp.org>
616
617         Tests for module 'copysignl'.
618         * modules/copysignl-tests: New file.
619         * tests/test-copysignl.c: New file.
620
621         New module 'copysignl'.
622         * lib/math.in.h (copysignl): New declaration.
623         * lib/copysignl.c: New file.
624         * m4/copysignl.m4: New file.
625         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
627         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
628         HAVE_COPYSIGNL.
629         * modules/copysignl: New file.
630         * tests/test-math-c++.cc: Check the declaration of copysignl.
631         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
632         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
633         * doc/posix-functions/copysignl.texi: Mention the new module.
634
635 2011-10-09  Bruno Haible  <bruno@clisp.org>
636
637         Tests for module 'copysignf'.
638         * modules/copysignf-tests: New file.
639         * tests/test-copysignf.c: New file.
640
641         New module 'copysignf'.
642         * lib/math.in.h (copysignf): New declaration.
643         * lib/copysignf.c: New file.
644         * m4/copysignf.m4: New file.
645         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
647         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
648         HAVE_COPYSIGNF.
649         * modules/copysignf: New file.
650         * tests/test-math-c++.cc: Check the declaration of copysignf.
651         * doc/posix-functions/copysignf.texi: Mention the new module.
652
653 2011-10-09  Bruno Haible  <bruno@clisp.org>
654
655         Ensure that HAVE_* variables are set to 1 before they are set to 0.
656         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
657         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
658         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
659         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
660         gl_SIGNAL_H_DEFAULTS.
661
662 2011-10-09  Bruno Haible  <bruno@clisp.org>
663
664         poll: Make macro safer.
665         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
666         ac_cv_header_poll_h is not set.
667
668 2011-10-09  Bruno Haible  <bruno@clisp.org>
669
670         copysign: Provide replacement.
671         * lib/math.in.h (copysign): New declaration.
672         * lib/copysign.c: New file.
673         * m4/copysign.m4: New file.
674         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
676         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
677         HAVE_COPYSIGN.
678         * modules/copysign (Description): Clarify.
679         (Files): Add lib/copysign.c, m4/copysign.m4.
680         (Depends-on): Add math, signbit.
681         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
682         gl_MATH_MODULE_INDICATOR.
683         * tests/test-math-c++.cc: Check the declaration of copysign.
684         * doc/posix-functions/copysign.texi: Mention the effects of the module
685         on Minix and MSVC.
686
687 2011-10-09  Bruno Haible  <bruno@clisp.org>
688
689         isinf: Ensure macro on AIX 5.1.
690         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
691         macro.
692         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
693
694 2011-10-09  Bruno Haible  <bruno@clisp.org>
695
696         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
697         * modules/snprintf-posix-tests (configure.ac): Require
698         gl_LONG_DOUBLE_VS_DOUBLE.
699         * modules/sprintf-posix-tests (configure.ac): Likewise.
700         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
701         * modules/vasprintf-posix-tests (configure.ac): Likewise.
702         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
703         * modules/vsprintf-posix-tests (configure.ac): Likewise.
704         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
705         tests on platforms where 'long double' is the same as 'double'.
706         * tests/test-sprintf-posix.h (test_function): Likewise.
707         * tests/test-vasnprintf-posix.c (test_function): Likewise.
708         * tests/test-vasprintf-posix.c (test_function): Likewise.
709
710         *printf: Fix for platforms where 'long double' == 'double'.
711         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
712         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
713         * modules/dprintf-posix (Files): Add m4/math_h.m4.
714         * modules/fprintf-posix (Files): Likewise.
715         * modules/obstack-printf-posix (Files): Likewise.
716         * modules/snprintf-posix (Files): Likewise.
717         * modules/sprintf-posix (Files): Likewise.
718         * modules/vasnprintf (Files): Likewise.
719         * modules/vasnprintf-posix (Files): Likewise.
720         * modules/vasprintf-posix (Files): Likewise.
721         * modules/vdprintf-posix (Files): Likewise.
722         * modules/vfprintf-posix (Files): Likewise.
723         * modules/vsnprintf-posix (Files): Likewise.
724         * modules/vsprintf-posix (Files): Likewise.
725         * modules/unistdio/u8-vasnprintf (Files): Likewise.
726         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
727         * modules/unistdio/u16-vasnprintf (Files): Likewise.
728         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
729         * modules/unistdio/u32-vasnprintf (Files): Likewise.
730         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
731         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
732
733         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
734         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
735         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
736         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
737         'long double'.
738         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
739
740         isinf: Fix for platforms where 'long double' == 'double'.
741         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
742         Don't blindly assume 80-bit 'long double'.
743
744         isfinite: Fix for platforms where 'long double' == 'double'.
745         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
746         Don't blindly assume 80-bit 'long double'.
747
748         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
749         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
750         * modules/isfinite-tests (configure.ac): Require
751         gl_LONG_DOUBLE_VS_DOUBLE.
752         * modules/isinf-tests (configure.ac): Likewise.
753         * modules/isnan-tests (configure.ac): Likewise.
754         * modules/isnanl-tests (configure.ac): Likewise.
755         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
756         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
757         tests on platforms where 'long double' is the same as 'double'.
758         * tests/test-isinf.c (test_isinfl): Likewise.
759         * tests/test-isnan.c (test_long_double): Likewise.
760         * tests/test-isnanl.h (main): Likewise.
761
762 2011-10-08  Bruno Haible  <bruno@clisp.org>
763
764         Tests for module 'tanhf'.
765         * modules/tanhf-tests: New file.
766         * tests/test-tanhf.c: New file.
767
768         New module 'tanhf'.
769         * lib/math.in.h (tanhf): New declaration.
770         * lib/tanhf.c: New file.
771         * m4/tanhf.m4: New file.
772         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
774         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
775         * modules/tanhf: New file.
776         * tests/test-math-c++.cc: Check the declaration of tanhf.
777         * doc/posix-functions/tanhf.texi: Mention the new module.
778
779         tanh: Use a .m4 file.
780         * m4/tanh.m4: New file.
781         * modules/tanh (Files): Add it.
782         (configure.ac): Just invoke gl_FUNC_TANH.
783
784 2011-10-08  Bruno Haible  <bruno@clisp.org>
785
786         Tests for module 'coshf'.
787         * modules/coshf-tests: New file.
788         * tests/test-coshf.c: New file.
789
790         New module 'coshf'.
791         * lib/math.in.h (coshf): New declaration.
792         * lib/coshf.c: New file.
793         * m4/coshf.m4: New file.
794         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
796         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
797         * modules/coshf: New file.
798         * tests/test-math-c++.cc: Check the declaration of coshf.
799         * doc/posix-functions/coshf.texi: Mention the new module.
800
801         cosh: Use a .m4 file.
802         * m4/cosh.m4: New file.
803         * modules/cosh (Files): Add it.
804         (configure.ac): Just invoke gl_FUNC_COSH.
805
806 2011-10-08  Bruno Haible  <bruno@clisp.org>
807
808         Tests for module 'sinhf'.
809         * modules/sinhf-tests: New file.
810         * tests/test-sinhf.c: New file.
811
812         New module 'sinhf'.
813         * lib/math.in.h (sinhf): New declaration.
814         * lib/sinhf.c: New file.
815         * m4/sinhf.m4: New file.
816         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
818         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
819         * modules/sinhf: New file.
820         * tests/test-math-c++.cc: Check the declaration of sinhf.
821         * doc/posix-functions/sinhf.texi: Mention the new module.
822
823         sinh: Use a .m4 file.
824         * m4/sinh.m4: New file.
825         * modules/sinh (Files): Add it.
826         (configure.ac): Just invoke gl_FUNC_SINH.
827
828 2011-10-08  Bruno Haible  <bruno@clisp.org>
829
830         Tests for module 'atan2f'.
831         * modules/atan2f-tests: New file.
832         * tests/test-atan2f.c: New file.
833
834         New module 'atan2f'.
835         * lib/math.in.h (atan2f): New declaration.
836         * lib/atan2f.c: New file.
837         * m4/atan2f.m4: New file.
838         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
840         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
841         * modules/atan2f: New file.
842         * tests/test-math-c++.cc: Check the declaration of atan2f.
843         * doc/posix-functions/atan2f.texi: Mention the new module.
844
845         atan2: Use a .m4 file.
846         * m4/atan2.m4: New file.
847         * modules/atan2 (Files): Add it.
848         (configure.ac): Just invoke gl_FUNC_ATAN2.
849
850 2011-10-08  Bruno Haible  <bruno@clisp.org>
851
852         Tests for module 'atanf'.
853         * modules/atanf-tests: New file.
854         * tests/test-atanf.c: New file.
855
856         New module 'atanf'.
857         * lib/math.in.h (atanf): New declaration.
858         * lib/atanf.c: New file.
859         * m4/atanf.m4: New file.
860         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
862         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
863         * modules/atanf: New file.
864         * tests/test-math-c++.cc: Check the declaration of atanf.
865         * doc/posix-functions/atanf.texi: Mention the new module.
866
867         atan: Use a .m4 file.
868         * m4/atan.m4: New file.
869         * modules/atan (Files): Add it.
870         (configure.ac): Just invoke gl_FUNC_ATAN.
871
872 2011-10-08  Bruno Haible  <bruno@clisp.org>
873
874         Tests for module 'acosf'.
875         * modules/acosf-tests: New file.
876         * tests/test-acosf.c: New file.
877
878         New module 'acosf'.
879         * lib/math.in.h (acosf): New declaration.
880         * lib/acosf.c: New file.
881         * m4/acosf.m4: New file.
882         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
884         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
885         * modules/acosf: New file.
886         * tests/test-math-c++.cc: Check the declaration of acosf.
887         * doc/posix-functions/acosf.texi: Mention the new module.
888
889         acos: Use a .m4 file.
890         * m4/acos.m4: New file.
891         * modules/acos (Files): Add it.
892         (configure.ac): Just invoke gl_FUNC_ACOS.
893
894 2011-10-08  Bruno Haible  <bruno@clisp.org>
895
896         Tests for module 'asinf'.
897         * modules/asinf-tests: New file.
898         * tests/test-asinf.c: New file.
899
900         New module 'asinf'.
901         * lib/math.in.h (asinf): New declaration.
902         * lib/asinf.c: New file.
903         * m4/asinf.m4: New file.
904         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
906         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
907         * modules/asinf: New file.
908         * tests/test-math-c++.cc: Check the declaration of asinf.
909         * doc/posix-functions/asinf.texi: Mention the new module.
910
911         asin: Use a .m4 file.
912         * m4/asin.m4: New file.
913         * modules/asin (Files): Add it.
914         (configure.ac): Just invoke gl_FUNC_ASIN.
915
916 2011-10-08  Bruno Haible  <bruno@clisp.org>
917
918         Tests for module 'tanf'.
919         * modules/tanf-tests: New file.
920         * tests/test-tanf.c: New file.
921
922         New module 'tanf'.
923         * lib/math.in.h (tanf): New declaration.
924         * lib/tanf.c: New file.
925         * m4/tanf.m4: New file.
926         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
928         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
929         * modules/tanf: New file.
930         * tests/test-math-c++.cc: Check the declaration of tanf.
931         * doc/posix-functions/tanf.texi: Mention the new module.
932
933         tan: Use a .m4 file.
934         * m4/tan.m4: New file.
935         * modules/tan (Files): Add it.
936         (configure.ac): Just invoke gl_FUNC_TAN.
937
938 2011-10-08  Bruno Haible  <bruno@clisp.org>
939
940         Tests for module 'cosf'.
941         * modules/cosf-tests: New file.
942         * tests/test-cosf.c: New file.
943
944         New module 'cosf'.
945         * lib/math.in.h (cosf): New declaration.
946         * lib/cosf.c: New file.
947         * m4/cosf.m4: New file.
948         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
950         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
951         * modules/cosf: New file.
952         * tests/test-math-c++.cc: Check the declaration of cosf.
953         * doc/posix-functions/cosf.texi: Mention the new module.
954
955         cos: Use a .m4 file.
956         * m4/cos.m4: New file.
957         * modules/cos (Files): Add it.
958         (configure.ac): Just invoke gl_FUNC_COS.
959
960 2011-10-08  Bruno Haible  <bruno@clisp.org>
961
962         Tests for module 'sinf'.
963         * modules/sinf-tests: New file.
964         * tests/test-sinf.c: New file.
965
966         New module 'sinf'.
967         * lib/math.in.h (sinf): New declaration.
968         * lib/sinf.c: New file.
969         * m4/sinf.m4: New file.
970         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
972         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
973         * modules/sinf: New file.
974         * tests/test-math-c++.cc: Check the declaration of sinf.
975         * doc/posix-functions/sinf.texi: Mention the new module.
976
977         sin: Use a .m4 file.
978         * m4/sin.m4: New file.
979         * modules/sin (Files): Add it.
980         (configure.ac): Just invoke gl_FUNC_SIN.
981
982 2011-10-08  Bruno Haible  <bruno@clisp.org>
983
984         Tests for module 'powf'.
985         * modules/powf-tests: New file.
986         * tests/test-powf.c: New file.
987
988         New module 'powf'.
989         * lib/math.in.h (powf): New declaration.
990         * lib/powf.c: New file.
991         * m4/powf.m4: New file.
992         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
994         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
995         * modules/powf: New file.
996         * tests/test-math-c++.cc: Check the declaration of powf.
997         * doc/posix-functions/powf.texi: Mention the new module.
998
999         pow: Use a .m4 file.
1000         * m4/pow.m4: New file.
1001         * modules/pow (Files): Add it.
1002         (configure.ac): Just invoke gl_FUNC_POW.
1003
1004 2011-10-08  Bruno Haible  <bruno@clisp.org>
1005
1006         Tests for module 'log10f'.
1007         * modules/log10f-tests: New file.
1008         * tests/test-log10f.c: New file.
1009
1010         New module 'log10f'.
1011         * lib/math.in.h (log10f): New declaration.
1012         * lib/log10f.c: New file.
1013         * m4/log10f.m4: New file.
1014         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1016         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1017         * modules/log10f: New file.
1018         * tests/test-math-c++.cc: Check the declaration of log10f.
1019         * doc/posix-functions/log10f.texi: Mention the new module.
1020
1021         log10: Use a .m4 file.
1022         * m4/log10.m4: New file.
1023         * modules/log10 (Files): Add it.
1024         (configure.ac): Just invoke gl_FUNC_LOG10.
1025
1026 2011-10-08  Bruno Haible  <bruno@clisp.org>
1027
1028         Tests for module 'logf'.
1029         * modules/logf-tests: New file.
1030         * tests/test-logf.c: New file.
1031
1032         New module 'logf'.
1033         * lib/math.in.h (logf): New declaration.
1034         * lib/logf.c: New file.
1035         * m4/logf.m4: New file.
1036         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1038         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1039         * modules/logf: New file.
1040         * tests/test-math-c++.cc: Check the declaration of logf.
1041         * doc/posix-functions/logf.texi: Mention the new module.
1042
1043         log: Use a .m4 file.
1044         * m4/log.m4: New file.
1045         * modules/log (Files): Add it.
1046         (configure.ac): Just invoke gl_FUNC_LOG.
1047
1048 2011-10-08  Bruno Haible  <bruno@clisp.org>
1049
1050         Tests for module 'expf'.
1051         * modules/expf-tests: New file.
1052         * tests/test-expf.c: New file.
1053
1054         New module 'expf'.
1055         * lib/math.in.h (expf): New declaration.
1056         * lib/expf.c: New file.
1057         * m4/expf.m4: New file.
1058         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1060         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1061         * modules/expf: New file.
1062         * tests/test-math-c++.cc: Check the declaration of expf.
1063         * doc/posix-functions/expf.texi: Mention the new module.
1064
1065         exp: Use a .m4 file.
1066         * m4/exp.m4: New file.
1067         * modules/exp (Files): Add it.
1068         (configure.ac): Just invoke gl_FUNC_EXP.
1069
1070 2011-10-08  Bruno Haible  <bruno@clisp.org>
1071
1072         Tests for module 'sqrtf'.
1073         * modules/sqrtf-tests: New file.
1074         * tests/test-sqrtf.c: New file.
1075
1076         New module 'sqrtf'.
1077         * lib/math.in.h (sqrtf): New declaration.
1078         * lib/sqrtf.c: New file.
1079         * m4/sqrtf.m4: New file.
1080         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1082         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1083         * modules/sqrtf: New file.
1084         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1085         * doc/posix-functions/sqrtf.texi: Mention the new module.
1086
1087 2011-10-08  Bruno Haible  <bruno@clisp.org>
1088
1089         Tests: Avoid link failures w.r.t. libintl.
1090         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1091         $(LIBINTL).
1092         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1093         $(LIBINTL).
1094         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1095         against $(LIBINTL).
1096         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1097         $(LIBINTL).
1098         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1099         $(LIBINTL).
1100         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1101
1102 2011-10-08  Bruno Haible  <bruno@clisp.org>
1103
1104         pow tests: Defeat compiler optimizations.
1105         * tests/test-pow.c (main): Assign arguments to x and y before use.
1106
1107 2011-10-08  Bruno Haible  <bruno@clisp.org>
1108
1109         gnulib-tool: Improve last commit.
1110         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1111         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1112         ignore dependencies that are not among the modules list.
1113
1114 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1115
1116         gnulib-tool: don't follow dependencies to avoided modules
1117         This fixes a bug that is related to the previous one.
1118         * gnulib-tool (func_modules_transitive_closure)
1119         (func_emit_autoconf_snippets):
1120         Check whether a dependency is acceptable before using it.
1121         (--extract-dependencies): Report an error if --avoid is also used,
1122         since this combination of options is not yet supported.
1123
1124         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1125         Problem reported by Peter Dyballa in
1126         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1127         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1128         when echoing "$condition".
1129
1130 2011-10-07  Bruno Haible  <bruno@clisp.org>
1131
1132         Fix documentation about math functions on MacOS X.
1133         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1134         MacOS X 10.5.
1135         * doc/posix-functions/fdim.texi: Likewise.
1136         * doc/posix-functions/feclearexcept.texi: Likewise.
1137         * doc/posix-functions/fegetenv.texi: Likewise.
1138         * doc/posix-functions/fegetround.texi: Likewise.
1139         * doc/posix-functions/feholdexcept.texi: Likewise.
1140         * doc/posix-functions/feraiseexcept.texi: Likewise.
1141         * doc/posix-functions/fesetenv.texi: Likewise.
1142         * doc/posix-functions/fesetround.texi: Likewise.
1143         * doc/posix-functions/fetestexcept.texi: Likewise.
1144         * doc/posix-functions/feupdateenv.texi: Likewise.
1145         * doc/posix-functions/fmax.texi: Likewise.
1146         * doc/posix-functions/fmin.texi: Likewise.
1147         * doc/posix-functions/log2.texi: Likewise.
1148         * doc/posix-functions/modff.texi: Likewise.
1149         * doc/posix-functions/nan.texi: Likewise.
1150         * doc/posix-functions/nanf.texi: Likewise.
1151         * doc/posix-functions/nextafterf.texi: Likewise.
1152         * doc/posix-functions/remquo.texi: Likewise.
1153
1154 2011-10-07  Bruno Haible  <bruno@clisp.org>
1155
1156         modff: Drop assumption about library that defines modff.
1157         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1158         AC_CHECK_FUNCS.
1159         * modules/modff (Files): Add m4/mathfunc.m4.
1160
1161 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1162
1163         raise tests: Avoid a GCC warning.
1164         * tests/test-raise.c (handler): Use _Noreturn.
1165
1166 2011-10-07  Bruno Haible  <bruno@clisp.org>
1167
1168         Tests for module 'ldexpf'.
1169         * modules/ldexpf-tests: New file.
1170         * tests/test-ldexpf.c: New file.
1171
1172         New module 'ldexpf'.
1173         * lib/math.in.h (ldexpf): New declaration.
1174         * lib/ldexpf.c: New file.
1175         * m4/ldexpf.m4: New file.
1176         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1178         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1179         * modules/ldexpf: New file.
1180         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1181         * doc/posix-functions/ldexpf.texi: Mention the new module.
1182
1183 2011-10-06  Bruno Haible  <bruno@clisp.org>
1184
1185         frexpf: Work around problems on IRIX and mingw.
1186         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1188         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1189         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1190         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1191         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1192         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1193
1194 2011-10-06  Bruno Haible  <bruno@clisp.org>
1195
1196         fabsf: Drop assumption about library that defines fabsf.
1197         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1198         AC_CHECK_FUNCS.
1199         * modules/fabsf (Files): Add m4/mathfunc.m4.
1200
1201 2011-10-06  Bruno Haible  <bruno@clisp.org>
1202
1203         frexpf: Drop assumption about library that defines frexpf.
1204         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1205         'int *', 'float *', 'long double *', 'float', 'long double'.
1206         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1207         AC_CHECK_FUNCS.
1208         * modules/frexpf (Files): Add m4/mathfunc.m4.
1209
1210         Tests for module 'frexpf'.
1211         * modules/frexpf-tests: New file.
1212         * tests/test-frexpf.c: New file.
1213
1214         New module 'frexpf'.
1215         * lib/math.in.h (frexpf): New declaration.
1216         * lib/frexpf.c: New file.
1217         * m4/frexpf.m4: New file.
1218         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1220         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1221         * modules/frexpf: New file.
1222         * tests/test-math-c++.cc: Check the declaration of frexpf.
1223         * doc/posix-functions/frexpf.texi: Mention the new module.
1224
1225 2011-10-06  Bruno Haible  <bruno@clisp.org>
1226
1227         math: Sort function declarations of math.in.h.
1228         * lib/math.in.h (frexp, logb): Move declarations.
1229
1230 2011-10-05  Bruno Haible  <bruno@clisp.org>
1231
1232         Tests for module 'modff'.
1233         * modules/modff-tests: New file.
1234         * tests/test-modff.c: New file.
1235
1236         New module 'modff'.
1237         * lib/math.in.h (modff): New declaration.
1238         * lib/modff.c: New file.
1239         * m4/modff.m4: New file.
1240         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1242         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1243         * modules/modff: New file.
1244         * tests/test-math-c++.cc: Check the declaration of modff.
1245         * doc/posix-functions/modff.texi: Mention the new module.
1246
1247         modf tests: Make test sharper.
1248         * tests/test-modf.c (main): Strengthen upper bound.
1249
1250         modf: Use a .m4 file.
1251         * m4/modf.m4: New file.
1252         * modules/modf (Files): Add it.
1253         (configure.ac): Just invoke gl_FUNC_MODF.
1254
1255 2011-10-05  Bruno Haible  <bruno@clisp.org>
1256
1257         Tests for module 'fmodf'.
1258         * modules/fmodf-tests: New file.
1259         * tests/test-fmodf.c: New file.
1260
1261         New module 'fmodf'.
1262         * lib/math.in.h (fmodf): New declaration.
1263         * lib/fmodf.c: New file.
1264         * m4/fmodf.m4: New file.
1265         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1267         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1268         * modules/fmodf: New file.
1269         * tests/test-math-c++.cc: Check the declaration of fmodf.
1270         * doc/posix-functions/fmodf.texi: Mention the new module.
1271
1272         fmod: Use a .m4 file.
1273         * m4/fmod.m4: New file.
1274         * modules/fmod (Files): Add it.
1275         (configure.ac): Just invoke gl_FUNC_FMOD.
1276
1277 2011-10-05  Bruno Haible  <bruno@clisp.org>
1278
1279         Tests for module 'fabsf'.
1280         * modules/fabsf-tests: New file.
1281         * tests/test-fabsf.c: New file.
1282
1283         New module 'fabsf'.
1284         * lib/math.in.h (fabsf): New declaration.
1285         * lib/fabsf.c: New file.
1286         * m4/fabsf.m4: New file.
1287         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1289         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1290         * modules/fabsf: New file.
1291         * tests/test-math-c++.cc: Check the declaration of fabsf.
1292         * doc/posix-functions/fabsf.texi: Mention the new module.
1293
1294         fabs: Use a .m4 file.
1295         * m4/fabs.m4: New file.
1296         * modules/fabs (Files): Add it.
1297         (configure.ac): Just invoke gl_FUNC_FABS.
1298
1299 2011-10-05  Jim Meyering  <meyering@redhat.com>
1300
1301         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1302         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1303         ls -lL regression introduced in coreutils-8.12, it does so at the
1304         cost of an additional stat call in the common case.  Besides, now
1305         that the kernel change that prompted commit 95f7c57f has been reverted
1306         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1307         we have no use for commit 95f7c57f, "file-has-acl: use
1308         acl_extended_file_nofollow if available".
1309
1310 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1311
1312         file-has-acl: revert unintended change in behavior of ls -L
1313         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1314         derived from...
1315         (file_has_acl): ...code here.  Call it.
1316         This problem was introduced with 2011-07-22 commit 95f7c57f,
1317         "file-has-acl: use acl_extended_file_nofollow if available".
1318         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1319
1320 2011-10-03  Bruno Haible  <bruno@clisp.org>
1321
1322         poll: Avoid link errors on MSVC.
1323         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1324         * modules/poll (Depends-on): Add sockets.
1325         (Link): New section.
1326         * NEWS: Mention the change.
1327         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1328         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1329         $(LIB_POLL) instead of $(LIBSOCKET).
1330
1331 2011-10-03  Bruno Haible  <bruno@clisp.org>
1332
1333         sys_select tests: Fix link error on MSVC 9.
1334         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1335         with $(LIB_SELECT) instead of $(LIBSOCKET).
1336
1337 2011-10-03  Bruno Haible  <bruno@clisp.org>
1338
1339         sys_select: Fix compilation error on mingw.
1340         * lib/sys_select.in.h: On native Windows, include <io.h>.
1341
1342 2011-10-03  Bruno Haible  <bruno@clisp.org>
1343
1344         wmemset: Support for MSVC.
1345         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1346         whether wmemset() exists.
1347
1348 2011-10-03  Bruno Haible  <bruno@clisp.org>
1349
1350         wmemmove: Support for MSVC.
1351         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1352         whether wmemmove() exists.
1353
1354 2011-10-03  Bruno Haible  <bruno@clisp.org>
1355
1356         wmemcpy: Support for MSVC.
1357         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1358         whether wmemcpy() exists.
1359
1360 2011-10-03  Bruno Haible  <bruno@clisp.org>
1361
1362         wmemcmp: Support for MSVC.
1363         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1364         whether wmemcmp() exists.
1365
1366 2011-10-03  Bruno Haible  <bruno@clisp.org>
1367
1368         wmemchr: Support for MSVC.
1369         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1370         whether wmemchr() exists.
1371
1372 2011-10-03  Bruno Haible  <bruno@clisp.org>
1373
1374         glthread/*, strsignal: Support for MSVC.
1375         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1376         including <winsock.h> on MSVC 9.
1377         * lib/glthread/lock.h: Likewise.
1378         * lib/glthread/thread.h: Likewise.
1379         * lib/glthread/tls.h: Likewise.
1380         * lib/glthread/yield.h: Likewise.
1381         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1382         if HAVE_UNISTD_H is false.
1383         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1384
1385 2011-10-03  Bruno Haible  <bruno@clisp.org>
1386
1387         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1388         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1389         Set to 100000.
1390
1391 2011-10-03  Bruno Haible  <bruno@clisp.org>
1392
1393         acl: Fix specification.
1394         * lib/file-has-acl.c (file_has_acl): Fix specification.
1395
1396 2011-10-03  Bruno Haible  <bruno@clisp.org>
1397
1398         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1399         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1400         (compute_curr_prefix, shared_library_fullname,
1401         find_shared_library_fullname, get_shared_library_fullname, relocate):
1402         Use it together with PIC && INSTALLDIR.
1403         Reported by <jojelino@gmail.com>
1404         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1405
1406 2011-10-01  Jim Meyering  <meyering@redhat.com>
1407
1408         maint.mk: adjust a release-related rule not to require use of gzip
1409         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1410         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1411         projects that build only .tar.xz files.  Also fix an erroneous test.
1412
1413         test-linkat: don't leave behind a temporary file
1414         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1415         Otherwise, coreutils' "make distcheck" would fail with this:
1416           Only in /c/cu/tests/torture/coreutils/test/\
1417             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1418           make[2]: *** [my-distcheck] Error 1
1419
1420         float, math: add omitted file
1421         * lib/itold.c: Add file, required for yesterday's float change.
1422
1423 2011-10-01  Bruno Haible  <bruno@clisp.org>
1424
1425         isinf: Fix for OpenBSD/x86.
1426         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1427         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1428         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1429
1430 2011-10-01  Bruno Haible  <bruno@clisp.org>
1431
1432         isfinite: Fix syntax error in configure test.
1433         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1434
1435         isfinite: Fix typo.
1436         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1437         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1438
1439 2011-10-01  Bruno Haible  <bruno@clisp.org>
1440
1441         nonblocking tests: Fix test failure on Linux/IA-64.
1442         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1443         Set to 270000.
1444
1445 2011-10-01  Bruno Haible  <bruno@clisp.org>
1446
1447         mkfifoat tests: Fix a test failure on mingw.
1448         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1449         with error ENOSYS.
1450
1451 2011-09-30  Bruno Haible  <bruno@clisp.org>
1452
1453         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1454         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1455         'long double'. Set REPLACE_ITOLD.
1456         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1457         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1458         * lib/itold.c: New file.
1459         * modules/float (Files): Add lib/itold.c.
1460         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1461         (Makefile.am): Substitute REPLACE_ITOLD.
1462         * modules/math (Depends-on): Add float.
1463         (Makefile.am): Substitute REPLACE_ITOLD.
1464         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1465         * doc/posix-headers/math.texi: Likewise.
1466         * doc/posix-functions/logl.texi: Likewise.
1467
1468 2011-09-30  Bruno Haible  <bruno@clisp.org>
1469
1470         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1471         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1472         Set to 140000.
1473
1474 2011-09-30  Bruno Haible  <bruno@clisp.org>
1475
1476         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1477         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1478         invocation, say "right after AC_PROG_CC_STDC", not "right after
1479         AC_PROG_CC".
1480         Reported by Gary V. Vaughan <gary@gnu.org>.
1481
1482 2011-09-30  Bruno Haible  <bruno@clisp.org>
1483
1484         Centralize C99 requirement.
1485         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1486         * modules/stdarg (configure.ac-early): Invoke it instead of
1487         AC_PROG_CC_STDC.
1488         Reported by Gary V. Vaughan and Paul Eggert.
1489
1490 2011-09-29  Bruno Haible  <bruno@clisp.org>
1491
1492         float: Fix LDBL_MAX value on Linux/PowerPC.
1493         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1494         on Linux/PowerPC.
1495         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1496         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1497         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1498         platform.
1499         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1500
1501 2011-09-29  Bruno Haible  <bruno@clisp.org>
1502
1503         doc: Improve doc about gl_EARLY.
1504         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1505         AC_PROG_CC_STDC invocation.
1506         Reported by Gary V. Vaughan <gary@gnu.org>.
1507
1508 2011-09-28  Bruno Haible  <bruno@clisp.org>
1509
1510         fgetc, fputc, fread, fwrite tests: Fix link error.
1511         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1512         on non-MSVC platforms.
1513         * tests/test-fputc.c (main): Likewise.
1514         * tests/test-fread.c (main): Likewise.
1515         * tests/test-fwrite.c (main): Likewise.
1516         Reported by Jim Meyering.
1517
1518 2011-09-27  Bruno Haible  <bruno@clisp.org>
1519
1520         fputc, fwrite tests: Avoid test failure on MSVC.
1521         * tests/test-fgetc.c: Include msvc-inval.h.
1522         (main): Invoke gl_msvc_inval_ensure_handler.
1523         * tests/test-fputc.c: Include msvc-inval.h.
1524         (main): Invoke gl_msvc_inval_ensure_handler.
1525         * tests/test-fread.c: Include msvc-inval.h.
1526         (main): Invoke gl_msvc_inval_ensure_handler.
1527         * tests/test-fwrite.c: Include msvc-inval.h.
1528         (main): Invoke gl_msvc_inval_ensure_handler.
1529         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1530         * modules/fputc-tests (Depends-on): Likewise.
1531         * modules/fread-tests (Depends-on): Likewise.
1532         * modules/fwrite-tests (Depends-on): Likewise.
1533
1534 2011-09-27  Bruno Haible  <bruno@clisp.org>
1535
1536         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1537         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1538         (raise): Remove older, duplicated declaration.
1539         (_gl_raise_SIGPIPE): New declaration.
1540         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1541         (rpl_raise): Remove function.
1542         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1543         a gnulib-defined SIGPIPE here.
1544         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1545         'sigprocmask' has detected missing signal-blocking and the module
1546         'sigpipe' is enabled.
1547         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1548
1549 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1550
1551         base64-tests: avoid memory leak
1552         * tests/test-base64.c (main): Plug memory leak.
1553
1554         base32: new module
1555         * modules/base32: New module.
1556         * lib/base32.c: New file.
1557         * lib/base32.h: Likewise.
1558         * m4/base32.m4: Likewise.
1559         * modules/base32-tests: New test.
1560         * tests/test-base32.c: Likewise.
1561         * MODULES.html.sh (Misc): Mention it.
1562
1563 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1564
1565         gnulib: use more-standard license notice wording
1566         * gnulib-tool (func_emit_copyright_notice): When emitting a
1567         license notice into a file, use the standard wording as suggested
1568         by the current information for GNU maintainers, except say "file"
1569         rather than "program".  The new wording gives a license version
1570         number, which addresses an issue raised by Glenn Morris in
1571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1572         * m4/onceonly.m4: Use that same wording here, too.
1573
1574         dup2: minor simplification
1575         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1576         as lib/dup2.c no longer uses 'inline'.
1577
1578 2011-09-25  Bruno Haible  <bruno@clisp.org>
1579
1580         strings: Fix compilation error on MSVC.
1581         * lib/strings.in.h: Include <stddef.h> for size_t.
1582
1583 2011-09-25  Bruno Haible  <bruno@clisp.org>
1584
1585         fflush et al.: Document limitation on MSVC.
1586         * doc/posix-functions/fflush.texi: Document possible crash in handling
1587         mode other than DEFAULT_HANDLING.
1588         * doc/posix-functions/fgetc.texi: Likewise.
1589         * doc/posix-functions/fputc.texi: Likewise.
1590         * doc/posix-functions/fread.texi: Likewise.
1591         * doc/posix-functions/fwrite.texi: Likewise.
1592
1593 2011-09-25  Bruno Haible  <bruno@clisp.org>
1594
1595         msvc-inval: Allow three invalid parameter handling modes.
1596         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1597         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1598         macros.
1599         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1600         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1601         SANE_LIBRARY_HANDLING as a no-op.
1602         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1603         <stdlib.h>.
1604         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1605
1606 2011-09-25  Bruno Haible  <bruno@clisp.org>
1607
1608         msvc-inval: Make handler multithread-safe.
1609         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1610         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1611         declarations.
1612         (gl_msvc_inval_current): New declaration.
1613         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1614         Operate on the structure returned by gl_msvc_inval_current().
1615         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1616         Remove varaiables.
1617         (tls_index, tls_initialized): New variables.
1618         (not_per_thread): New variable.
1619         (gl_msvc_inval_current): New function.
1620         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1621         returned by gl_msvc_inval_current().
1622
1623 2011-09-25  Bruno Haible  <bruno@clisp.org>
1624
1625         msvc-inval: Install handler globally.
1626         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1627         !_MSC_VER.
1628         (gl_msvc_invalid_parameter_handler): Remove declaration.
1629         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1630         declarations.
1631         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1632         Install the handler globally, don't uninstall it.
1633         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1634         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1635         currently valid, call RaiseException instead.
1636         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1637         for !_MSC_VER.
1638
1639 2011-09-25  Bruno Haible  <bruno@clisp.org>
1640
1641         strerror_r-posix: Fix for MSVC 9.
1642         * lib/strerror_r.c (local_snprintf): New function.
1643         (snprintf): Define to local_snprintf, not to _snprintf.
1644
1645 2011-09-25  Bruno Haible  <bruno@clisp.org>
1646
1647         ftruncate: Support for MSVC 9.
1648         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1649         (chsize_nothrow): New function.
1650         (chsize): Redefine as a macro.
1651         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1652         * modules/ftruncate (Depends-on): Add msvc-inval.
1653
1654 2011-09-25  Bruno Haible  <bruno@clisp.org>
1655
1656         New module 'fstat'.
1657         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1658         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1659         * lib/fchdir.c (rpl_fstat): Remove function.
1660         * m4/fstat.m4: New file.
1661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1662         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1663         declared.
1664         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1665         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1666         * modules/fstat: New file.
1667         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1668         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1669         is set.
1670         * doc/posix-functions/fstat.texi: Mention the new module and the
1671         problem on MSVC.
1672         * NEWS: Mention the change.
1673         * modules/acl (Depends-on): Add fstat.
1674         * modules/chdir-safer (Depends-on): Likewise.
1675         * modules/chown (Depends-on): Likewise.
1676         * modules/copy-file (Depends-on): Likewise.
1677         * modules/fchdir (Depends-on): Likewise.
1678         * modules/fdopendir (Depends-on): Likewise.
1679         * modules/fopen (Depends-on): Likewise.
1680         * modules/fts (Depends-on): Likewise.
1681         * modules/getcwd (Depends-on): Likewise.
1682         * modules/isapipe (Depends-on): Likewise.
1683         * modules/linkat (Depends-on): Likewise.
1684         * modules/lseek (Depends-on): Likewise.
1685         * modules/mkdir-p (Depends-on): Likewise.
1686         * modules/open (Depends-on): Likewise.
1687         * modules/openat (Depends-on): Likewise.
1688         * modules/read-file (Depends-on): Likewise.
1689         * modules/renameat (Depends-on): Likewise.
1690         * modules/utimens (Depends-on): Likewise.
1691
1692 2011-09-25  Bruno Haible  <bruno@clisp.org>
1693
1694         linkat: Fix compilation on MSVC 9.
1695         * lib/linkat.c: Don't include <stdint.h>.
1696
1697 2011-09-25  Bruno Haible  <bruno@clisp.org>
1698
1699         fclose: Support for MSVC 9.
1700         * lib/fclose.c: Include msvc-inval.h.
1701         (fclose_nothrow): New function.
1702         (rpl_fclose): Use it.
1703         * modules/fclose (Depends-on): Add msvc-inval.
1704         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1705
1706 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1707
1708         dup2: minor simplifications
1709         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1710         that it's a performance win.
1711         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1712         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1713
1714 2011-09-24  Jim Meyering  <meyering@redhat.com>
1715
1716         test-futimens: avoid a warning from gcc -Wshadow
1717         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1718         to avoid a shadowing warning.
1719
1720 2011-09-24  Bruno Haible  <bruno@clisp.org>
1721
1722         fdopen: Support for MSVC 9.
1723         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1724         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1725         * lib/fdopen.c: Include msvc-inval.h.
1726         (fdopen_nothrow): New function.
1727         (rpl_fdopen): Use it.
1728         * modules/fdopen (Depends-on): Add msvc-inval.
1729         * modules/fclose-tests (Depends-on): Add fdopen.
1730         * modules/fflush-tests (Depends-on): Likewise.
1731         * modules/fgetc-tests (Depends-on): Likewise.
1732         * modules/fputc-tests (Depends-on): Likewise.
1733         * modules/fread-tests (Depends-on): Likewise.
1734         * modules/freopen-tests (Depends-on): Likewise.
1735         * modules/fseeko-tests (Depends-on): Likewise.
1736         * modules/ftello-tests (Depends-on): Likewise.
1737         * modules/fwrite-tests  (Depends-on): Likewise.
1738         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1739
1740 2011-09-24  Bruno Haible  <bruno@clisp.org>
1741
1742         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1743         * modules/fgetc-tests (Depends-on): Add unistd.
1744         * modules/fputc-tests (Depends-on): Likewise.
1745         * modules/fread-tests (Depends-on): Likewise.
1746         * modules/fwrite-tests (Depends-on): Likewise.
1747
1748 2011-09-24  Bruno Haible  <bruno@clisp.org>
1749
1750         dup: Simplify autoconf test.
1751         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1752         on gl_MSVC_INVAL's result.
1753
1754 2011-09-24  Bruno Haible  <bruno@clisp.org>
1755
1756         Tests for function fwrite().
1757         * modules/fwrite-tests: New file.
1758         * tests/test-fwrite.c: New file.
1759         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1760
1761         Tests for function fread().
1762         * modules/fread-tests: New file.
1763         * tests/test-fread.c: New file.
1764         * modules/stdio-tests (Depends-on): Add fread-tests.
1765
1766         Activate fputc tests.
1767         * modules/stdio-tests (Depends-on): Add fputc-tests.
1768
1769         Enhance fgetc, fputc tests.
1770         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1771         * tests/test-fputc.c (main): Likewise.
1772
1773 2011-09-24  Bruno Haible  <bruno@clisp.org>
1774
1775         write: Support for MSVC 9.
1776         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1777         is not 1.
1778         * lib/write.c (write_nothrow): New function.
1779         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1780         not 1. Use write_nothrow.
1781         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1782         invalid parameter handler.
1783         (gl_PREREQ_WRITE): New macro.
1784         * modules/write (Depends-on): Add msvc-inval.
1785         (configure.ac): Invoke gl_PREREQ_WRITE.
1786         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1787
1788 2011-09-24  Bruno Haible  <bruno@clisp.org>
1789
1790         read: Fix last commit.
1791         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1792
1793 2011-09-24  Bruno Haible  <bruno@clisp.org>
1794
1795         dup2: Fix last commit.
1796         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1797         (rpl_dup2): Disable fcntl workaround on native Windows.
1798
1799         sigprocmask: Make code safer.
1800         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1801         section that changes macro definitions for this compilation unit.
1802
1803 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1804
1805         dup2: clarify by coalescing Windows-specific material
1806         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1807         "msvc-nothrow.h"' to the Windows-specific section, so that the
1808         Emacs source need not contain these include files.
1809         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1810         Windows-specific fixes into this function rather than just the
1811         nothrow fix, as this shortens and clarifies the code.  Always
1812         define as a function, as that's a bit cleaner than having it be
1813         sometimes a function and sometimes a macro.
1814         (rpl_dup2): Move the Windows-specific stuff out of here and into
1815         ms_windows_dup2.  Don't protect the Haiku-related fix with
1816         "#if !defined __linux__", as the same code also works around
1817         a Linux kernel bug, and it doesn't add any system calls on any
1818         platform.  Add comment about FreeBSD 6.1.
1819
1820         sigprocmask: move #include directive
1821         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1822         Windows-specific section, so that the Emacs source need not
1823         contain msvc-inval.h.
1824
1825 2011-09-23  Bruno Haible  <bruno@clisp.org>
1826
1827         read: Support for MSVC 9.
1828         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1829         is not 1.
1830         * lib/read.c (read_nothrow): New function.
1831         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1832         read_nothrow.
1833         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1834         invalid parameter handler.
1835         (gl_PREREQ_READ): New macro.
1836         * modules/read (Depends-on): Add msvc-inval.
1837         (configure.ac): Invoke gl_PREREQ_READ.
1838         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1839
1840 2011-09-23  Bruno Haible  <bruno@clisp.org>
1841
1842         close: Support for MSVC 9.
1843         * lib/close.c: Include <errno.h>, msvc-inval.h.
1844         (close_nothrow): New function.
1845         (rpl_close): Use it.
1846         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1847         invalid parameter handler.
1848         * modules/close (Depends-on): Add msvc-inval.
1849         * modules/dup2-tests (Depends-on): Add close.
1850         * modules/dup3-tests (Depends-on): Likewise.
1851         * modules/fcntl-tests (Depends-on): Likewise.
1852         * modules/spawn-pipe-tests (Depends-on): Likewise.
1853         * modules/unistd-safer-tests (Depends-on): Likewise.
1854         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1855
1856 2011-09-23  Bruno Haible  <bruno@clisp.org>
1857
1858         New module 'dup'.
1859         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1860         Allow replacement.
1861         * lib/dup.c: New file.
1862         * lib/fchdir.c (rpl_dup): Remove function.
1863         * m4/dup.m4: New file.
1864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1865         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1866         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1867         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1868         * modules/dup: New file.
1869         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1870         'dup' module is in use.
1871         * modules/fdopendir (Depends-on): Add dup.
1872         * modules/fdutimensat-tests (Depends-on): Likewise.
1873         * modules/fts (Depends-on): Likewise.
1874         * modules/futimens-tests (Depends-on): Likewise.
1875         * modules/posix_spawnp-tests (Depends-on): Likewise.
1876         * modules/unistd-safer-tests (Depends-on): Likewise.
1877         * modules/utimens-tests (Depends-on): Likewise.
1878         * doc/posix-functions/dup.texi: Mention the new module and the problem
1879         on MSVC.
1880
1881 2011-09-23  Bruno Haible  <bruno@clisp.org>
1882
1883         getdtablesize: Support for MSVC 9.
1884         * lib/getdtablesize.c: Include msvc-inval.h.
1885         (_setmaxstdio_nothrow): New function.
1886         (_setmaxstdio): Redefine it.
1887         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1888         * modules/getdtablesize (Depends-on): Add msvc-inval.
1889         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1890
1891 2011-09-23  Bruno Haible  <bruno@clisp.org>
1892
1893         signal-h: Rename from signal.
1894         * modules/signal-h: Renamed from modules/signal.
1895         * modules/pthread_sigmask (Depends-on): Update.
1896         * modules/raise (Depends-on): Likewise.
1897         * modules/sigaction (Depends-on): Likewise.
1898         * modules/sigpipe (Depends-on): Likewise.
1899         * modules/sigprocmask (Depends-on): Likewise.
1900         * modules/sys_select (Depends-on): Likewise.
1901         * modules/signal-h-tests: Renamed from modules/signal-tests.
1902         (Files, Depends-on, Makefile.am): Update.
1903         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1904         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1905         (Files, Makefile.am): Update.
1906         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1907         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1908         * modules/signal: New placeholder file.
1909         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1910         * doc/posix-headers/signal.texi: Update.
1911         * NEWS: Mention the change.
1912
1913 2011-09-23  Bruno Haible  <bruno@clisp.org>
1914
1915         sigprocmask: Avoid crashes through signal() on MSVC 9.
1916         * lib/sigprocmask.c: Include msvc-inval.h.
1917         (signal_nothrow): New function.
1918         (signal): Redefine it.
1919         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1920         * modules/sigprocmask (Depends-on): Add msvc-inval.
1921         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1922
1923 2011-09-23  Bruno Haible  <bruno@clisp.org>
1924
1925         Tests for module 'raise'.
1926         * modules/raise-tests: New file.
1927         * tests/test-raise.c: New file.
1928
1929         raise: Support for MSVC.
1930         * lib/signal.in.h (raise): New declaration.
1931         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1932         for native Windows platforms.
1933         * m4/raise.m4: New file.
1934         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1935         HAVE_RAISE, REPLACE_RAISE.
1936         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1937         REPLACE_RAISE.
1938         * modules/raise (Status, Notice): Remove fields.
1939         (Files): Add m4/raise.m4.
1940         (Depends-on): Add signal, msvc-inval.
1941         (configure.ac): Use the common idioms.
1942         (Maintainer): Add me.
1943         * tests/test-signal-c++.cc: Check the signature of raise.
1944         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1945
1946 2011-09-23  Bruno Haible  <bruno@clisp.org>
1947
1948         pipe2: Fix compilation on pre-C99 compilers.
1949         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1950
1951 2011-09-23  Bruno Haible  <bruno@clisp.org>
1952
1953         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1954         * lib/msvc-nothrow.h: New file.
1955         * lib/msvc-nothrow.c: New file.
1956         * m4/msvc-nothrow.m4: New file.
1957         * modules/msvc-nothrow: New file.
1958         * lib/dup2.c: Include msvc-nothrow.h.
1959         (rpl_dup2): No need to protect _get_osfhandle call here.
1960         * lib/accept4.c: Include msvc-nothrow.h.
1961         * lib/error.c: Likewise.
1962         * lib/fcntl.c: Likewise.
1963         * lib/lseek.c: Likewise.
1964         * lib/nonblocking.c: Likewise.
1965         * lib/poll.c: Likewise.
1966         * lib/read.c: Likewise.
1967         * lib/select.c: Likewise.
1968         * lib/sockets.h: Likewise.
1969         * lib/sockets.c: Likewise.
1970         * lib/stdio-read.c: Likewise.
1971         * lib/stdio-write.c: Likewise.
1972         * lib/write.c: Likewise.
1973         * lib/w32sock.h: Likewise.
1974         * lib/w32spawn.h: Likewise.
1975         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1976         * lib/fsync.c: Likewise.
1977         * lib/isapipe.c: Likewise.
1978         * modules/dup2 (Depends-on): Add msvc-nothrow.
1979         * modules/accept4 (Depends-on): Likewise.
1980         * modules/error (Depends-on): Likewise.
1981         * modules/fcntl (Depends-on): Likewise.
1982         * modules/lseek (Depends-on): Likewise.
1983         * modules/nonblocking (Depends-on): Likewise.
1984         * modules/poll (Depends-on): Likewise.
1985         * modules/read (Depends-on): Likewise.
1986         * modules/select (Depends-on): Likewise.
1987         * modules/sockets (Depends-on): Likewise.
1988         * modules/sigpipe (Depends-on): Likewise.
1989         * modules/write (Depends-on): Likewise.
1990         * modules/accept (Depends-on): Likewise.
1991         * modules/bind (Depends-on): Likewise.
1992         * modules/connect (Depends-on): Likewise.
1993         * modules/gethostname (Depends-on): Likewise.
1994         * modules/getpeername (Depends-on): Likewise.
1995         * modules/getsockname (Depends-on): Likewise.
1996         * modules/getsockopt (Depends-on): Likewise.
1997         * modules/ioctl (Depends-on): Likewise.
1998         * modules/listen (Depends-on): Likewise.
1999         * modules/recv (Depends-on): Likewise.
2000         * modules/recvfrom (Depends-on): Likewise.
2001         * modules/send (Depends-on): Likewise.
2002         * modules/sendto (Depends-on): Likewise.
2003         * modules/setsockopt (Depends-on): Likewise.
2004         * modules/shutdown (Depends-on): Likewise.
2005         * modules/socket (Depends-on): Likewise.
2006         * modules/execute (Depends-on): Likewise.
2007         * modules/spawn-pipe (Depends-on): Likewise.
2008         * modules/flock (Depends-on): Likewise.
2009         * modules/fsync (Depends-on): Likewise.
2010         * modules/isapipe (Depends-on): Likewise.
2011         * tests/test-cloexec.c: Include msvc-nothrow.h.
2012         * tests/test-dup-safer.c: Likewise.
2013         * tests/test-dup2.c: Likewise.
2014         * tests/test-dup3.c: Likewise.
2015         * tests/test-fcntl.c: Likewise.
2016         * tests/test-pipe.c: Likewise.
2017         * tests/test-pipe2.c: Likewise.
2018         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2019         * modules/unistd-safer-tests (Depends-on): Likewise.
2020         * modules/dup2-tests (Depends-on): Likewise.
2021         * modules/dup3-tests (Depends-on): Likewise.
2022         * modules/fcntl-tests (Depends-on): Likewise.
2023         * modules/pipe-posix-tests (Depends-on): Likewise.
2024         * modules/pipe2-tests (Depends-on): Likewise.
2025
2026 2011-09-23  Bruno Haible  <bruno@clisp.org>
2027
2028         dup2: Make code more maintainable.
2029         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2030         (rpl_dup2): Use it.
2031         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2032         * modules/dup2 (configure.ac): Invoke it.
2033         Reported by Paul Eggert.
2034
2035 2011-09-23  Bruno Haible  <bruno@clisp.org>
2036
2037         msvc-inval: Fix compilation error.
2038         * lib/msvc-inval.h: Include <excpt.h>.
2039
2040 2011-09-23  Bruno Haible  <bruno@clisp.org>
2041
2042         mkdir: Tweak for MSVC 9.
2043         * lib/sys_stat.in.h: Update comments.
2044         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2045
2046         Tests for module 'chdir'.
2047         * modules/chdir-tests: New file.
2048         * tests/test-chdir.c: New file.
2049
2050         New module 'chdir'.
2051         * modules/chdir: New file.
2052         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2053         (chdir): New declaration.
2054         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2056         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2057         * tests/test-unistd-c++.cc: Check signature of chdir.
2058         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2059         * modules/chdir-long (Depends-on): Add chdir.
2060         * modules/fchdir (Depends-on): Likewise.
2061         * modules/rename (Depends-on): Likewise.
2062         * modules/savewd (Depends-on): Likewise.
2063
2064         rmdir: Support for mingw, MSVC 9.
2065         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2066         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2067
2068         getcwd: Tweak for MSVC 9.
2069         * lib/unistd.in.h: Update comments.
2070         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2071
2072 2011-09-22  Bruno Haible  <bruno@clisp.org>
2073
2074         strerror_r-posix: Avoid a link error on MSVC.
2075         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2076         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2077
2078 2011-09-22  Bruno Haible  <bruno@clisp.org>
2079
2080         select: Avoid link errors on MSVC.
2081         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2082         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2083         * modules/pselect (Link): Likewise.
2084         * NEWS: Mention the change.
2085         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2086         test-select-stdin against $(LIB_SELECT).
2087         * modules/pselect-tests (Makefile.am): Link test-pselect against
2088         $(LIB_SELECT).
2089
2090 2011-09-22  Bruno Haible  <bruno@clisp.org>
2091
2092         select: Avoid compilation error on MSVC.
2093         * lib/select.c: Don't include <stdbool.h>.
2094
2095 2011-09-21  Bruno Haible  <bruno@clisp.org>
2096
2097         Consolidate all uses of PATH_MAX in *.m4 files.
2098         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2099         macros.
2100         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2101         and gl_PATHMAX_SNIPPET.
2102         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2104         * modules/chdir-long (Files): Add m4/pathmax.m4.
2105         * modules/getcwd (Files): Likewise.
2106
2107 2011-09-21  Bruno Haible  <bruno@clisp.org>
2108
2109         ftruncate: Un-deprecate, concentrate on Win32 support.
2110         * modules/ftruncate (Status, Notice): Remove sections.
2111         (Depends-on): Add largefile.
2112         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2113         non-mingw platforms.
2114         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2115         include <io.h>.
2116         * modules/perror-tests (Depends-on): Add ftruncate.
2117         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2118         'ftruncate' module.
2119
2120 2011-09-21  Bruno Haible  <bruno@clisp.org>
2121
2122         Add dependencies to new dirent related modules.
2123         * modules/opendir (Depends-on): Add closedir.
2124         * modules/getcwd (Depends-on): Add opendir, closedir.
2125         * modules/dirent-safer-tests (Depends-on): Likewise.
2126         * modules/fdopendir-tests (Depends-on): Likewise.
2127         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2128         * modules/renameat-tests (Depends-on): Likewise.
2129
2130 2011-09-21  Bruno Haible  <bruno@clisp.org>
2131
2132         opendir: Avoid compilation error on mingw.
2133         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2134         * modules/opendir (Depends-on): Add unistd.
2135
2136 2011-09-21  Bruno Haible  <bruno@clisp.org>
2137
2138         ftruncate tests: Avoid a test failure on mingw.
2139         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2140
2141 2011-09-21  Bruno Haible  <bruno@clisp.org>
2142
2143         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2144         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2145         native Windows.
2146
2147 2011-09-21  Bruno Haible  <bruno@clisp.org>
2148
2149         New module 'fdopen'.
2150         * lib/stdio.in.h (fdopen): New declaration.
2151         * lib/fdopen.c: New file.
2152         * m4/fdopen.m4: New file.
2153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2154         REPLACE_FDOPEN.
2155         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2156         REPLACE_FDOPEN.
2157         * modules/fdopen: New file.
2158         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2159         * tests/test-stdio-c++.cc: Check signature of fdopen.
2160         * doc/posix-functions/fdopen.texi: Mention the new module.
2161
2162 2011-09-21  Bruno Haible  <bruno@clisp.org>
2163
2164         unlockpt tests: Avoid test failure on NetBSD 5.1.
2165         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2166         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2167
2168 2011-09-21  Bruno Haible  <bruno@clisp.org>
2169
2170         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2171         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2172         * tests/test-getlogin_r.c (main): Likewise.
2173
2174 2011-09-20  Bruno Haible  <bruno@clisp.org>
2175
2176         time tests: Don't require pid_t.
2177         * doc/posix-headers/time.texi: Revert last change.
2178         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2179         * tests/test-time.c: Comment out the check for pid_t.
2180
2181 2011-09-20  Bruno Haible  <bruno@clisp.org>
2182
2183         fsync tests: Avoid a test failure on mingw.
2184         * tests/test-fsync.c (main): Allow a failure with EIO.
2185
2186 2011-09-20  Bruno Haible  <bruno@clisp.org>
2187
2188         euidaccess: Update comments.
2189         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2190
2191 2011-09-20  Bruno Haible  <bruno@clisp.org>
2192
2193         Ensure EBADF returns for socket functions on mingw.
2194         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2195         descriptor is invalid.
2196         * lib/bind.c (rpl_bind): Likewise.
2197         * lib/connect.c (rpl_connect): Likewise.
2198         * lib/getpeername.c (rpl_getpeername): Likewise.
2199         * lib/getsockname.c (rpl_getsockname): Likewise.
2200         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2201         * lib/listen.c (rpl_listen): Likewise.
2202         * lib/recv.c (rpl_recv): Likewise.
2203         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2204         * lib/send.c (rpl_send): Likewise.
2205         * lib/sendto.c (rpl_sendto): Likewise.
2206         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2207         * lib/shutdown.c (rpl_shutdown): Likewise.
2208
2209 2011-09-20  Bruno Haible  <bruno@clisp.org>
2210
2211         select tests: EBADF tests.
2212         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2213         test_bad_fd): New functions.
2214         (test_function): Invoke also test_bad_fd.
2215
2216 2011-09-20  Bruno Haible  <bruno@clisp.org>
2217
2218         Tests for module 'posix_spawn_file_actions_addopen.
2219         * modules/posix_spawn_file_actions_addopen-tests: New file.
2220         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2221
2222         Tests for module 'posix_spawn_file_actions_adddup2'.
2223         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2224         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2225
2226         Tests for module 'posix_spawn_file_actions_addclose'.
2227         * modules/posix_spawn_file_actions_addclose-tests: New file.
2228         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2229
2230 2011-09-20  Bruno Haible  <bruno@clisp.org>
2231
2232         Tests for module 'unlockpt'.
2233         * modules/unlockpt-tests: New file.
2234         * tests/test-unlockpt.c: New file.
2235         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2236
2237         Tests for module 'grantpt'.
2238         * modules/grantpt-tests: New file.
2239         * tests/test-grantpt.c: New file.
2240         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2241
2242 2011-09-20  Bruno Haible  <bruno@clisp.org>
2243
2244         freopen tests: EBADF tests.
2245         * tests/test-freopen.c: Include errno.h, unistd.h.
2246         (main): Add tests for EBADF, commented out for the moment.
2247
2248         fclose tests: EBADF tests.
2249         * tests/test-fclose.c (main): Add tests for EBADF.
2250
2251         fflush tests: EBADF tests.
2252         * tests/test-fflush.c: Include errno.h, macros.h.
2253         (main): Add tests for EBADF.
2254
2255         ftello tests: EBADF tests.
2256         * tests/test-ftello4.sh: New file.
2257         * tests/test-ftello4.c: New file.
2258         * modules/ftello-tests (Files): Add them.
2259         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2260
2261         fseeko tests: EBADF tests.
2262         * tests/test-fseeko4.sh: New file.
2263         * tests/test-fseeko4.c: New file.
2264         * modules/fseeko-tests (Files): Add them.
2265         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2266
2267         Tests for function fputc().
2268         * modules/fputc-tests: New file.
2269         * tests/test-fputc.c: New file.
2270         * modules/stdio-tests (Depends-on): Add fputc-tests.
2271
2272         Tests for function fgetc().
2273         * modules/fgetc-tests: New file.
2274         * tests/test-fgetc.c: New file.
2275         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2276
2277         Tests for function fdopen().
2278         * modules/fdopen-tests: New file.
2279         * tests/test-fdopen.c: New file.
2280         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2281
2282         Tests for module 'vdprintf'.
2283         * modules/vdprintf-tests: New file.
2284         * tests/test-vdprintf.c: New file.
2285
2286         Tests for module 'dprintf'.
2287         * modules/dprintf-tests: New file.
2288         * tests/test-dprintf.c: New file.
2289
2290 2011-09-20  Bruno Haible  <bruno@clisp.org>
2291
2292         Tests for module 'ioctl'.
2293         * modules/ioctl-tests: New file.
2294         * tests/test-ioctl.c: New file.
2295
2296 2011-09-20  Bruno Haible  <bruno@clisp.org>
2297
2298         fcntl tests: EBADF tests.
2299         * tests/test-fcntl.c (main): Add more tests for EBADF.
2300
2301 2011-09-20  Bruno Haible  <bruno@clisp.org>
2302
2303         utimensat tests: EBADF tests.
2304         * tests/test-utimensat.c (main): Add tests for EBADF.
2305
2306         renameat tests: EBADF tests.
2307         * tests/test-renameat.c (main): Add tests for EBADF.
2308
2309         mkfifoat tests: EBADF tests.
2310         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2311
2312         readlinkat tests: EBADF tests.
2313         * tests/test-readlinkat.c (main): Add tests for EBADF.
2314
2315         symlinkat tests: EBADF tests.
2316         * tests/test-symlinkat.c (main): Add tests for EBADF.
2317
2318         linkat tests: EBADF tests.
2319         * tests/test-linkat.c (main): Add tests for EBADF.
2320
2321         Tests for module 'faccessat'.
2322         * modules/faccessat-tests: New file.
2323         * tests/test-faccessat.c: New file.
2324
2325         fdopendir tests: EBADF tests.
2326         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2327
2328         openat tests: EBADF tests.
2329         * tests/test-fchownat.c (main): Add tests for EBADF.
2330         * tests/test-fstatat.c (main): Likewise.
2331         * tests/test-mkdirat.c (main): Likewise.
2332         * tests/test-openat.c (main): Likewise.
2333         * tests/test-unlinkat.c (main): Likewise.
2334         * tests/test-fchmodat.c: New file.
2335         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2336         (Makefile.am): Also run 'test-fchmodat'.
2337
2338 2011-09-20  Bruno Haible  <bruno@clisp.org>
2339
2340         utimens, futimens, fdutimensat tests: EBADF tests.
2341         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2342
2343         Tests for function fstat().
2344         * modules/fstat-tests: New file.
2345         * tests/test-fstat.c: New file.
2346         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2347
2348 2011-09-20  Bruno Haible  <bruno@clisp.org>
2349
2350         test-ttyname_r tests: EBADF tests.
2351         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2352
2353         Tests for module 'isatty'.
2354         * modules/isatty-tests: New file.
2355         * tests/test-isatty.c: New file.
2356
2357         Tests for module 'write'.
2358         * modules/write-tests: New file.
2359         * tests/test-write.c: New file.
2360
2361         Tests for module 'read'.
2362         * modules/read-tests: New file.
2363         * tests/test-read.c: New file.
2364
2365         pwrite tests: EBADF tests.
2366         * tests/test-pwrite.c (main): Add tests for EBADF.
2367
2368         pread tests: EBADF tests.
2369         * tests/test-pread.c (main): Add tests for EBADF.
2370
2371         lseek tests: EBADF tests.
2372         * tests/test-lseek.c (main): Add more tests for EBADF.
2373
2374         Tests for module 'ftruncate'.
2375         * modules/ftruncate-tests: New file.
2376         * tests/test-ftruncate.sh: New file.
2377         * tests/test-ftruncate.c: New file.
2378
2379         fsync tests: EBADF tests.
2380         * tests/test-fsync.c (main): Add more tests for EBADF.
2381
2382         fdatasync tests: EBADF tests.
2383         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2384
2385         Tests for module 'fchown'.
2386         * modules/fchown-tests: New file.
2387         * tests/test-fchown.c: New file.
2388
2389         Tests for module 'fchmod'.
2390         * modules/fchmod-tests: New file.
2391         * tests/test-fchmod.c: New file.
2392
2393         fchdir tests: EBADF tests.
2394         * tests/test-fchdir.c (main): Add more tests for EBADF.
2395
2396         dup2 tests: EBADF tests.
2397         * tests/test-dup2.c (main): Add more tests for EBADF.
2398
2399         Tests for module 'dup'.
2400         * modules/dup-tests: New file.
2401         * tests/test-dup.c: New file.
2402
2403         Tests for module 'close'.
2404         * modules/close-tests: New file.
2405         * tests/test-close.c: New file.
2406
2407 2011-09-20  Bruno Haible  <bruno@clisp.org>
2408
2409         Tests for module 'shutdown'.
2410         * modules/shutdown-tests: New file.
2411         * tests/test-shutdown.c: New file.
2412
2413         Tests for module 'setsockopt'.
2414         * modules/setsockopt-tests: New file.
2415         * tests/test-setsockopt.c: New file.
2416
2417         Tests for module 'sendto'.
2418         * modules/sendto-tests: New file.
2419         * tests/test-sendto.c: New file.
2420
2421         Tests for module 'send'.
2422         * modules/send-tests: New file.
2423         * tests/test-send.c: New file.
2424
2425         Tests for module 'recvfrom'.
2426         * modules/recvfrom-tests: New file.
2427         * tests/test-recvfrom.c: New file.
2428
2429         Tests for module 'recv'.
2430         * modules/recv-tests: New file.
2431         * tests/test-recv.c: New file.
2432
2433         Tests for module 'listen'.
2434         * modules/listen-tests: New file.
2435         * tests/test-listen.c: New file.
2436
2437         Tests for module 'getsockopt'.
2438         * modules/getsockopt-tests: New file.
2439         * tests/test-getsockopt.c: New file.
2440
2441         Tests for module 'getsockname'.
2442         * modules/getsockname-tests: New file.
2443         * tests/test-getsockname.c: New file.
2444
2445         Tests for module 'getpeername'.
2446         * modules/getpeername-tests: New file.
2447         * tests/test-getpeername.c: New file.
2448
2449         Tests for module 'connect'.
2450         * modules/connect-tests: New file.
2451         * tests/test-connect.c: New file.
2452
2453         Tests for module 'bind'.
2454         * modules/bind-tests: New file.
2455         * tests/test-bind.c: New file.
2456
2457         accept4 tests: Fix for native Windows.
2458         * tests/test-accept4.c: Include sockets.h.
2459         (main): Invoke gl_sockets_startup.
2460         * modules/accept4-tests (Depends-on): Add sockets.
2461
2462         accept tests: Fix for native Windows.
2463         * tests/test-accept.c: Include sockets.h.
2464         (main): Invoke gl_sockets_startup.
2465         * modules/accept-tests (Depends-on): Add sockets.
2466
2467 2011-09-19  Bruno Haible  <bruno@clisp.org>
2468
2469         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2470         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2471         do...while(0).
2472         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2473         Suggested by Paul Eggert.
2474
2475 2011-09-19  Bruno Haible  <bruno@clisp.org>
2476
2477         sched: Ensure pid_t is defined.
2478         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2479         not define pid_t.
2480         * lib/sched.in.h: Include <sys/types.h>.
2481         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2483
2484 2011-09-19  Bruno Haible  <bruno@clisp.org>
2485
2486         msvc-inval: Ensure the entire expansion is a single statement.
2487         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2488         of braces.
2489
2490 2011-09-19  Jim Meyering  <meyering@redhat.com>
2491
2492         tests: use printf, not echo in init.sh's warn_ function
2493         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2494         misbehave when given strings containing a backslash or starting
2495         with e.g., -n.  James Youngman suggested setting IFS.
2496
2497 2011-09-19  Eric Blake  <eblake@redhat.com>
2498
2499         futimens: enhance test
2500         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2501         closed non-negative fd.
2502
2503         date: accept 'hence' as opposite of 'ago'
2504         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2505         * tests/test-parse-datetime.c (main): Enhance test.
2506         Suggested by Jesse Wilson.
2507
2508 2011-09-19  Jim Meyering  <meyering@redhat.com>
2509
2510         getcwd: don't fail in a deep directory on a system without openat
2511         Before this change, getcwd would fail when called from a directory
2512         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2513         the non-openat implementation used "..", "../..", "../../..", etc.
2514         to access ancestor directories.  With too many, that string would
2515         be longer than PATH_MAX.
2516         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2517         using gnulib's openat replacement.
2518         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2519         we're using the replacement function.
2520
2521 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2522
2523         maint.mk: avoid warnings from perl about missing files
2524         * top/maint.mk (def_sym_regex): Ignore files listed in
2525         $(gl_other_headers_) that do not exist, say because a project
2526         does not use a corresponding module.
2527
2528 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2529
2530         stat: use pathmax.h only if needed
2531         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2532         This is better for Emacs, which does not have a mingw port and
2533         therefore can avoid the pathmax module.
2534
2535         utimens: remove dependency on dup2
2536         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2537         to work around the Linux kernel bug.
2538         * modules/utimens (Depends-on): Remove dup2.
2539
2540 2011-09-18  Bruno Haible  <bruno@clisp.org>
2541
2542         inet_ntop, inet_pton: Look for it also in libresolv.
2543         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2544         libnsl, search for it in libresolv.
2545         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2546         Needed on Solaris 7.
2547
2548 2011-09-18  Bruno Haible  <bruno@clisp.org>
2549
2550         accept, accept4 tests: Avoid link error on Solaris.
2551         * modules/accept-tests (Makefile.am): Link test-accept against
2552         $(LIBSOCKET).
2553         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2554         $(LIBSOCKET).
2555
2556         accept4: Avoid link error on Solaris.
2557         * modules/accept4 (Link): New section.
2558
2559         socket functions: Avoid link errors on Solaris.
2560         * modules/accept (Depends-on): Add socketlib.
2561         (Link): New section.
2562         * modules/bind (Depends-on): Add socketlib.
2563         (Link): New section.
2564         * modules/connect (Depends-on): Add socketlib.
2565         (Link): New section.
2566         * modules/getpeername (Depends-on): Add socketlib.
2567         (Link): New section.
2568         * modules/getsockname (Depends-on): Add socketlib.
2569         (Link): New section.
2570         * modules/getsockopt (Depends-on): Add socketlib.
2571         (Link): New section.
2572         * modules/listen (Depends-on): Add socketlib.
2573         (Link): New section.
2574         * modules/recv (Depends-on): Add socketlib.
2575         (Link): New section.
2576         * modules/recvfrom (Depends-on): Add socketlib.
2577         (Link): New section.
2578         * modules/send (Depends-on): Add socketlib.
2579         (Link): New section.
2580         * modules/sendto (Depends-on): Add socketlib.
2581         (Link): New section.
2582         * modules/setsockopt (Depends-on): Add socketlib.
2583         (Link): New section.
2584         * modules/shutdown (Depends-on): Add socketlib.
2585         (Link): New section.
2586         * modules/socket (Depends-on): Add socketlib.
2587         (Link): New section.
2588
2589 2011-09-18  Bruno Haible  <bruno@clisp.org>
2590
2591         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2592         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2593         than 5 seconds.
2594         * modules/ptsname-tests (configure.ac): Test for alarm.
2595
2596 2011-09-18  Bruno Haible  <bruno@clisp.org>
2597
2598         posix_spawn_file_actions_add*: Fix module dependencies.
2599         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2600         posix_spawn_file_actions_init.
2601         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2602         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2603
2604 2011-09-18  Bruno Haible  <bruno@clisp.org>
2605
2606         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2607         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2608         * tests/test-renameat.c (main): Likewise.
2609
2610 2011-09-18  Bruno Haible  <bruno@clisp.org>
2611
2612         Tests for module 'accept4'.
2613         * modules/accept4-tests: New file.
2614         * tests/test-accept4.c: New file.
2615
2616 2011-09-18  Bruno Haible  <bruno@clisp.org>
2617
2618         Tests for module 'accept'.
2619         * modules/accept-tests: New file.
2620         * tests/test-accept.c: New file.
2621
2622 2011-09-18  Bruno Haible  <bruno@clisp.org>
2623
2624         dup2: Support for MSVC.
2625         * lib/dup2.c: Include msvc-inval.h.
2626         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2627         _get_osfhandle calls.
2628         * modules/dup2 (Depends-on): Add msvc-inval.
2629         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2630
2631         New module 'msvc-inval'.
2632         * lib/msvc-inval.h: New file.
2633         * lib/msvc-inval.c: New file.
2634         * m4/msvc-inval.m4: New file.
2635         * modules/msvc-inval: New file.
2636
2637 2011-09-17  Bruno Haible  <bruno@clisp.org>
2638
2639         Tests for module 'pclose'.
2640         * modules/pclose-tests: New file.
2641
2642         New module 'pclose'.
2643         * lib/stdio.in.h (pclose): New declaration.
2644         * lib/pclose.c: New file.
2645         * m4/pclose.m4: New file.
2646         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2647         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2648         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2649         * modules/pclose: New file.
2650         * modules/popen-tests (Depends-on): Add pclose.
2651         * modules/popen-safer-tests (Depends-on): Likewise.
2652         * doc/posix-functions/pclose.texi: Mention the new module.
2653
2654 2011-09-17  Bruno Haible  <bruno@clisp.org>
2655
2656         popen: Support for MSVC.
2657         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2658         * lib/popen.c (popen): Provide alternate definition for native Windows.
2659         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2661         * modules/popen (Depends-on, configure.ac): Update condition.
2662         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2663         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2664         fixed.
2665
2666 2011-09-17  Bruno Haible  <bruno@clisp.org>
2667
2668         isnanl, isnand, isnanf: Work around MSVC bug.
2669         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2670
2671 2011-09-17  Bruno Haible  <bruno@clisp.org>
2672
2673         sys_socket tests: Fix recent mistake.
2674         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2675
2676 2011-09-17  Bruno Haible  <bruno@clisp.org>
2677
2678         putenv: Support for MSVC.
2679         * modules/putenv (Depends-on): Add environ.
2680         * lib/putenv.c (environ): Disable declaration.
2681         * lib/unistd.in.h: Update comment.
2682
2683 2011-09-17  Bruno Haible  <bruno@clisp.org>
2684
2685         math: Avoid macro redefinition warnings on MSVC.
2686         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2687         Undefine before redefining.
2688
2689 2011-09-17  Bruno Haible  <bruno@clisp.org>
2690
2691         doc: Mention functions which are declared as macros.
2692         * doc/posix-functions/*[fl].texi: Mention that some functions are
2693         defined as macros with arguments only.
2694
2695 2011-09-17  Bruno Haible  <bruno@clisp.org>
2696
2697         Add dependencies to new dirent related modules.
2698         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2699         * modules/fts (Depends-on): Likewise.
2700         * modules/glob (Depends-on): Likewise.
2701         * modules/savedir (Depends-on): Likewise.
2702         * modules/scandir (Depends-on): Likewise.
2703         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2704         * modules/fdopendir (Depends-on): Add opendir.
2705
2706 2011-09-17  Bruno Haible  <bruno@clisp.org>
2707
2708         inet_pton: Support for MSVC on Windows Vista or newer.
2709         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2710         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2711         HAVE_DECL_INET_PTON is defined.
2712         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2713         On platforms with <winsock2.h>, test whether inet_pton is declared in
2714         <ws2tcpip.h>. If so, arrange to replace it.
2715         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2716         REPLACE_INET_PTON.
2717         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2718         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2719         (Depends-on, configure.ac): Update condition.
2720         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2721
2722 2011-09-17  Bruno Haible  <bruno@clisp.org>
2723
2724         inet_ntop: Support for MSVC on Windows Vista or newer.
2725         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2726         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2727         HAVE_DECL_INET_NTOP is defined.
2728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2729         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2730         <ws2tcpip.h>. If so, arrange to replace it.
2731         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2732         REPLACE_INET_NTOP.
2733         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2734         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2735         (Depends-on, configure.ac): Update condition.
2736         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2737
2738 2011-09-16  Eric Blake  <eblake@redhat.com>
2739
2740         test-fsync: yet another enhancement
2741         * tests/test-fsync.c (main): Also test behavior on read-only text
2742         file.
2743
2744 2011-09-16  Bruno Haible  <bruno@clisp.org>
2745
2746         Enhance fsync, fdatasync tests.
2747         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2748         * tests/test-fdatasync.c (main): Likewise.
2749
2750 2011-09-16  Bruno Haible  <bruno@clisp.org>
2751
2752         Support for MSVC compiler: Ensure mode_t gets defined.
2753         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2754         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2756         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2757         * tests/test-fcntl-h.c: Check that mode_t is defined.
2758         * tests/test-sys_stat.c: Likewise.
2759         * tests/test-sys_types.c: Likewise.
2760         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2761         * doc/posix-headers/sys_stat.texi: Likewise.
2762         * doc/posix-headers/sys_types.texi: Likewise.
2763
2764 2011-09-16  Bruno Haible  <bruno@clisp.org>
2765
2766         sys_stat: Support for MSVC.
2767         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2768         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2769         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2770         MSVC.
2771
2772 2011-09-16  Bruno Haible  <bruno@clisp.org>
2773
2774         Support for MSVC compiler: Ensure off_t gets defined.
2775         * lib/unistd.in.h: Include <sys/types.h>.
2776         * tests/test-fcntl-h.c: Check that off_t is defined.
2777         * tests/test-sys_stat.c: Likewise.
2778         * tests/test-sys_types.c: Likewise.
2779
2780 2011-09-16  Eric Blake  <eblake@redhat.com>
2781
2782         fdatasync: port to Solaris
2783         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2784         * modules/fdatasync (Link): Document it.
2785         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2786
2787         fdatasync: port to MacOS X 10.7
2788         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2789         declared.
2790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2791         * modules/unistd (Makefile.am): Substitute it.
2792         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2793         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2794
2795         fdatasync: minor improvements
2796         * modules/fdatasync (Depends-on): Add condition for fsync.
2797         * lib/fdatasync.c (fdatasync): Add comment.
2798         * tests/test-unistd-c++.cc: Test fdatasync.
2799
2800         unistd: update refs to newer POSIX
2801         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2802         Suggested by Bruno Haible.
2803
2804         fdatasync: new module
2805         * modules/fsync (Description): Document difference to fdatasync.
2806         * modules/fdatasync: New module.
2807         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2808         * lib/fdatasync.c (fdatasync): Likewise.
2809         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2810         defaults.
2811         * modules/unistd (Makefile.am): Set witnesses.
2812         * lib/unistd.in.h (fdatasync): Declare.
2813         * MODULES.html.sh: Document it.
2814         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2815         * modules/fdatasync-tests: New test.
2816         * tests/test-fdatasync.c: Likewise.
2817
2818 2011-09-16  Eric Blake  <eblake@redhat.com>
2819
2820         test-fsync: enhance tests
2821         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2822         * tests/test-fsync.c (main): Enhance test.
2823
2824 2011-09-15  Bruno Haible  <bruno@clisp.org>
2825
2826         Support for MSVC compiler: Ensure ssize_t gets defined.
2827         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2828         * doc/posix-headers/stdio.texi: Likewise.
2829         * modules/stdio (Depends-on): Add ssize_t.
2830         * modules/sys_socket (Depends-on): Likewise.
2831         * modules/sys_types (Depends-on): Likewise.
2832         * modules/sys_uio (Depends-on): Likewise.
2833         * modules/unistd (Depends-on): Likewise.
2834         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2835         * tests/test-sys_types.c: Check that ssize_t is defined.
2836
2837 2011-09-14  Bruno Haible  <bruno@clisp.org>
2838
2839         Avoid using #, the m4 comment starter character, near brackets.
2840         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2841         delimiter character in sed expressions.
2842         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2843         Suggested by Eric Blake.
2844
2845         Properly quote AC_CHECK_DECLS' 4th argument.
2846         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2847         argument.
2848         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2849         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2851         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2852         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2853         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2855         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2856         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2857         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2858         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2859         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2860         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2861         * m4/isinf.m4 (gl_ISINF): Likewise.
2862         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2863         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2864         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2865         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2866         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2867         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2868         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2869         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2870         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2871         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2873         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2875         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2877         Reported by Eric Blake.
2878
2879         Properly quote AC_CHECK_DECL's 4th argument.
2880         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2881         argument.
2882         * m4/argp.m4 (gl_ARGP): Likewise.
2883         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2884         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2885         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2886         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2887         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2888         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2890         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2892         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2893         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2894         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2895         Reported by Eric Blake.
2896
2897 2011-09-14  Eric Blake  <eblake@redhat.com>
2898
2899         opendir: avoid compile warning
2900         * lib/opendir.c (includes): Always include errno.h.
2901         Reported by Tatsuro MATSUOKA.
2902
2903 2011-09-14  Jim Meyering  <meyering@redhat.com>
2904
2905         maint.mk: sc_tight_scope: propagate failure from sub-make
2906         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2907         Reported by Martin von Gagern.
2908
2909 2011-09-13  Bruno Haible  <bruno@clisp.org>
2910
2911         tempname: Support for MSVC.
2912         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2913         MSVC.
2914         * modules/tempname (Depends-on): Add fcntl-h.
2915
2916 2011-09-13  Bruno Haible  <bruno@clisp.org>
2917
2918         sys_time: Support for MSVC.
2919         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2920         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2921         include <winsock2.h>.
2922         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2923         function declarations that collide with POSIX.
2924         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2925         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2926
2927 2011-09-13  Bruno Haible  <bruno@clisp.org>
2928
2929         stat: Support for MSVC.
2930         * lib/stat.c: Include pathmax.h.
2931         * modules/stat (Depends-on): Add pathmax.
2932
2933         pathmax: Support for native Windows.
2934         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2935
2936 2011-09-12  Bruno Haible  <bruno@clisp.org>
2937
2938         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2939         * lib/dirent.in.h (struct dirent): New type.
2940         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2941         DT_WHT): New macros.
2942         (DIR): New type.
2943         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2944         (readdir, rewinddir): New declarations.
2945         * lib/dirent-private.h: New file.
2946         * lib/opendir.c: New file.
2947         * lib/readdir.c: New file.
2948         * lib/rewinddir.c: New file.
2949         * lib/closedir.c: New file.
2950         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2951         * m4/opendir.m4: New file.
2952         * m4/readdir.m4: New file.
2953         * m4/rewinddir.m4: New file.
2954         * m4/closedir.m4: New file.
2955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2956         REPLACE_CLOSEDIR here.
2957         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2958         readdir, rewinddir are declared.
2959         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2960         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2961         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2962         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2963         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2964         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2965         * modules/opendir: New file.
2966         * modules/readdir: New file.
2967         * modules/rewinddir: New file.
2968         * modules/closedir: New file.
2969         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2970         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2971         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2972         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2973         * NEWS: Mention the 'fchdir' change.
2974
2975 2011-09-11  Bruno Haible  <bruno@clisp.org>
2976
2977         asm-underscore.m4: Support for MSVC.
2978         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2979         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2980
2981 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2982
2983         Doc about crypt functions.
2984         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2985         needing for _GNU_SOURCE to get crypt.
2986         * doc/posix-functions/encrypt.texi: Likewise.
2987         * doc/posix-functions/setkey.texi: Likewise.
2988
2989 2011-09-11  Bruno Haible  <bruno@clisp.org>
2990
2991         doc: Update regarding MSVC 9.
2992         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2993         tested".
2994         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2995         * doc/posix-headers/*.texi: Likewise.
2996         * doc/pastposix-functions/*.texi: Likewise.
2997         * doc/glibc-functions/*.texi: Likewise.
2998         * doc/glibc-headers/*.texi: Likewise.
2999
3000 2011-09-11  Bruno Haible  <bruno@clisp.org>
3001
3002         unistd et al.: Don't assume <unistd.h> exists.
3003         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3004         does not exist.
3005         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3006         exist. But include <stdlib.h>.
3007         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3008         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3009         symlink() does not exist.
3010         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3011         include <io.h> instead.
3012         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3013         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3014         include <direct.h> instead.
3015         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3016         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3017         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3018         <io.h> instead.
3019         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3020         correctly if the system does not have hard links.
3021         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3022         <direct.h> instead.
3023         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3024         it when looking for function declarations.
3025         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3026         <direct.h> and <io.h> instead.
3027         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3028
3029 2011-09-11  Bruno Haible  <bruno@clisp.org>
3030
3031         strcase: Support for MSVC.
3032         * modules/strcase (Status, Notice): Remove obsoletion mark.
3033         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3034         * doc/posix-functions/strncasecmp.texi: Likewise.
3035
3036         strings: Don't assume <strings.h> exists.
3037         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3038         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3039         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3040         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3041
3042 2011-09-11  Bruno Haible  <bruno@clisp.org>
3043
3044         dirent: Don't assume <dirent.h> exists.
3045         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3046         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3047         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3048         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3049
3050 2011-09-11  Bruno Haible  <bruno@clisp.org>
3051
3052         Fix wint_t on MSVC.
3053         * lib/wchar.in.h (wint_t): On MSVC, override it.
3054         * lib/wctype.in.h (wint_t): Likewise.
3055         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3056         MSVC.
3057         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3058         * doc/posix-headers/wctype.texi: Likewise.
3059
3060 2011-09-11  Bruno Haible  <bruno@clisp.org>
3061
3062         sys_types: Fix typo.
3063         * lib/sys_types.in.h: Fix typo in comment.
3064         Reported by Paul Eggert.
3065
3066         Support for MSVC compiler: Ensure size_t gets defined.
3067         * modules/strings (Depends-on): Add 'sys_types'.
3068         * modules/sys_uio (Depends-on): Likewise.
3069         * lib/sys_uio.in.h: Update comment.
3070
3071         C++ tests for module 'sys_types'.
3072         * modules/sys_types-c++-tests: New file.
3073         * tests/test-sys_types-c++.cc: New file.
3074
3075         Tests for module 'sys_types'.
3076         * modules/sys_types-tests: New file.
3077         * tests/test-sys_types.c: New file.
3078
3079         New module 'sys_types'.
3080         * lib/sys_types.in.h: New file.
3081         * m4/sys_types_h.m4: New file.
3082         * modules/sys_types: New file.
3083         * doc/posix-headers/sys_types.texi: Mention the new module and the
3084         size_t problem on MSVC 9.
3085
3086 2011-09-11  Bruno Haible  <bruno@clisp.org>
3087
3088         Support for MSVC compiler: Avoid division by a literal 0.
3089         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3091         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3092         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3093         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3094         * tests/infinity.h: New file.
3095         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3096         on MSVC.
3097         * tests/test-ceilf1.c: Include infinity.h.
3098         (main): Use Infinityf.
3099         * tests/test-ceil1.c: Include infinity.h.
3100         (main): Use Infinityd.
3101         * tests/test-ceill.c: Include infinity.h.
3102         (main): Use Infinityl.
3103         * tests/test-dprintf-posix.c: Include infinity.h.
3104         (test_function): Use Infinityd.
3105         * tests/test-floorf1.c: Include infinity.h.
3106         (main): Use Infinityf.
3107         * tests/test-floor1.c: Include infinity.h.
3108         (main): Use Infinityd.
3109         * tests/test-floorl.c: Include infinity.h.
3110         (main): Use Infinityl.
3111         * tests/test-fprintf-posix.c: Include infinity.h.
3112         (test_function): Use Infinityd.
3113         * tests/test-frexp.c: Include infinity.h.
3114         (main): Use Infinityd.
3115         * tests/test-frexpl.c: Include infinity.h.
3116         (main): Use Infinityl.
3117         * tests/test-isfinite.c: Include infinity.h.
3118         (test_isfinitef): Use Infinityf.
3119         (test_isfinited): Use Infinityd.
3120         (test_isfinitel): Use Infinityl.
3121         * tests/test-isinf.c: Include infinity.h.
3122         (test_isinff): Use Infinityf.
3123         (test_isinfd): Use Infinityd.
3124         (test_isinfl): Use Infinityl.
3125         * tests/test-isnan.c: Include infinity.h.
3126         (test_float): Use Infinityf.
3127         (test_double): Use Infinityd.
3128         (test_long_double): Use Infinityl.
3129         * tests/test-isnanf.h: Include infinity.h.
3130         (main): Use Infinityf.
3131         * tests/test-isnand.h: Include infinity.h.
3132         (main): Use Infinityd.
3133         * tests/test-isnanl.h: Include infinity.h.
3134         (main): Use Infinityl.
3135         * tests/test-ldexpl.c: Include infinity.h.
3136         (main): Use Infinityl.
3137         * tests/test-printf-posix.h: Include infinity.h.
3138         (test_function): Use Infinityd.
3139         * tests/test-roundf1.c: Include infinity.h.
3140         (main): Use Infinityf.
3141         * tests/test-round1.c: Include infinity.h.
3142         (main): Use Infinityd.
3143         * tests/test-roundl.c: Include infinity.h.
3144         (main): Use Infinityl.
3145         * tests/test-signbit.c: Include infinity.h.
3146         (test_signbitf): Use Infinityf.
3147         (test_signbitd): Use Infinityd.
3148         (test_signbitl): Use Infinityl.
3149         * tests/test-snprintf-posix.h: Include infinity.h.
3150         (test_function): Use Infinityd, Infinityl.
3151         * tests/test-sprintf-posix.h: Include infinity.h.
3152         (test_function): Use Infinityd, Infinityl.
3153         * tests/test-truncf1.c: Include infinity.h.
3154         (main): Use Infinityf.
3155         * tests/test-trunc1.c: Include infinity.h.
3156         (main): Use Infinityd.
3157         * tests/test-truncl.c: Include infinity.h.
3158         (main): Use Infinityl.
3159         * tests/test-vasnprintf-posix.c: Include infinity.h.
3160         (test_function): Use Infinityd, Infinityl.
3161         * tests/test-vasprintf-posix.c: Include infinity.h.
3162         (test_function): Use Infinityd, Infinityl.
3163         * modules/ceilf-tests (Files): Add tests/infinity.h.
3164         * modules/ceil-tests (Files): Likewise.
3165         * modules/ceill-tests (Files): Likewise.
3166         * modules/dprintf-posix-tests (Files): Likewise.
3167         * modules/floorf-tests (Files): Likewise.
3168         * modules/floor-tests (Files): Likewise.
3169         * modules/floorl-tests (Files): Likewise.
3170         * modules/fprintf-posix-tests (Files): Likewise.
3171         * modules/frexp-tests (Files): Likewise.
3172         * modules/frexp-nolibm-tests (Files): Likewise.
3173         * modules/frexpl-tests (Files): Likewise.
3174         * modules/frexpl-nolibm-tests (Files): Likewise.
3175         * modules/isfinite-tests (Files): Likewise.
3176         * modules/isinf-tests (Files): Likewise.
3177         * modules/isnan-tests (Files): Likewise.
3178         * modules/isnanf-tests (Files): Likewise.
3179         * modules/isnanf-nolibm-tests (Files): Likewise.
3180         * modules/isnand-tests (Files): Likewise.
3181         * modules/isnand-nolibm-tests (Files): Likewise.
3182         * modules/isnanl-tests (Files): Likewise.
3183         * modules/isnanl-nolibm-tests (Files): Likewise.
3184         * modules/ldexpl-tests (Files): Likewise.
3185         * modules/printf-posix-tests (Files): Likewise.
3186         * modules/roundf-tests (Files): Likewise.
3187         * modules/round-tests (Files): Likewise.
3188         * modules/roundl-tests (Files): Likewise.
3189         * modules/signbit-tests (Files): Likewise.
3190         * modules/snprintf-posix-tests (Files): Likewise.
3191         * modules/sprintf-posix-tests (Files): Likewise.
3192         * modules/truncf-tests (Files): Likewise.
3193         * modules/trunc-tests (Files): Likewise.
3194         * modules/truncl-tests (Files): Likewise.
3195         * modules/vasnprintf-posix-tests (Files): Likewise.
3196         * modules/vasprintf-posix-tests (Files): Likewise.
3197         * modules/vdprintf-posix-tests (Files): Likewise.
3198         * modules/vfprintf-posix-tests (Files): Likewise.
3199         * modules/vprintf-posix-tests (Files): Likewise.
3200         * modules/vsnprintf-posix-tests (Files): Likewise.
3201         * modules/vsprintf-posix-tests (Files): Likewise.
3202         * modules/xprintf-posix-tests (Files): Likewise.
3203
3204 2011-09-11  Bruno Haible  <bruno@clisp.org>
3205
3206         Ensure pid_t gets defined.
3207         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3208         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3209         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3210         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3211         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3212         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3213         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3214         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3215         * tests/test-fcntl-h.c: Check that pid_t is defined.
3216         * tests/test-sched.c: Likewise.
3217         * tests/test-termios.c: Likewise.
3218         * tests/test-time.c: Likewise.
3219         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3220         * doc/posix-headers/signal.texi: Likewise.
3221         * doc/posix-headers/sys_types.texi: Likewise.
3222         * doc/posix-headers/time.texi: Likewise.
3223
3224 2011-09-11  Bruno Haible  <bruno@clisp.org>
3225
3226         acl: Fix compilation on Solaris 10 (older version).
3227         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3228         of ACE_EVERYONE.
3229         * lib/set-mode-acl.c (qset_acl): Likewise.
3230         Reported by Christian Jullien <eligis@orange.fr>.
3231
3232 2011-09-10  Bruno Haible  <bruno@clisp.org>
3233
3234         iconv, unsetenv: Add support for MSVC compiler.
3235         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3236         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3237
3238 2011-09-10  Bruno Haible  <bruno@clisp.org>
3239
3240         *printf: Add support for MSVC compiler.
3241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3242         handles the exception caused by the %n directive. When cross-compiling,
3243         guess no on native Windows.
3244         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3245         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3246         emulate it through vsnprintf.
3247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3248         * doc/posix-functions/dprintf.texi: Update documentation regarding
3249         MSVC 9.
3250         * doc/posix-functions/fprintf.texi: Likewise.
3251         * doc/posix-functions/printf.texi: Likewise.
3252         * doc/posix-functions/snprintf.texi: Likewise.
3253         * doc/posix-functions/sprintf.texi: Likewise.
3254         * doc/posix-functions/swprintf.texi: Likewise.
3255         * doc/posix-functions/vdprintf.texi: Likewise.
3256         * doc/posix-functions/vfprintf.texi: Likewise.
3257         * doc/posix-functions/vprintf.texi: Likewise.
3258         * doc/posix-functions/vsnprintf.texi: Likewise.
3259         * doc/posix-functions/vsprintf.texi: Likewise.
3260         * doc/glibc-functions/asprintf.texi: Likewise.
3261         * doc/glibc-functions/obstack_printf.texi: Likewise.
3262         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3263         * doc/glibc-functions/vasprintf.texi: Likewise.
3264
3265 2011-09-10  Bruno Haible  <bruno@clisp.org>
3266
3267         nocrash: Add support for native Windows.
3268         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3269
3270 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3271             Bruno Haible  <bruno@clisp.org>
3272
3273         absolute-header, include-next: Add support for MSVC compiler.
3274         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3275         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3276         directory separator in #line directives.
3277         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3278         recognize also backslash as directory separator in #line directives.
3279
3280 2011-09-08  Jim Meyering  <meyering@redhat.com>
3281
3282         maint.mk: mark the post-release commit log with "maint: " prefix
3283         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3284         one-line commit-log summary.
3285
3286 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3287             Bruno Haible  <bruno@clisp.org>
3288
3289         Doc about crypt functions.
3290         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3291         systems.
3292         * doc/posix-functions/encrypt.texi: Likewise.
3293         * doc/posix-functions/setkey.texi: Likewise.
3294
3295 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3296
3297         * lib/gc.h: Fix copyright header.
3298
3299 2011-09-07  Bruno Haible  <bruno@clisp.org>
3300
3301         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3302         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3303         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3304
3305 2011-09-07  Bruno Haible  <bruno@clisp.org>
3306
3307         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3308         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3309         * lib/freopen.c: Likewise.
3310         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3311         * lib/lstat.c: Likewise.
3312         * lib/stat.c: Likewise.
3313         * lib/open.c: Use different syntax for include of <fcntl.h>.
3314         * lib/openat.c: Include fcntl.h again, explicitly.
3315
3316 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3317
3318         parse-datetime: document the newly accepted format
3319         * doc/parse-datetime.texi (Combined date and time of day items):
3320         New section.
3321
3322 2011-09-06  Bruno Haible  <bruno@clisp.org>
3323
3324         acl: Fix a test failure on newer Solaris 10 with ZFS.
3325         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3326         ENOSYS as no ACL.
3327         Reported by Jim Meyering.
3328
3329 2011-09-06  Bruno Haible  <bruno@clisp.org>
3330
3331         acl: Update for AIX >= 5.3 with NFS.
3332         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3333         ENOSYS as no ACL.
3334
3335         acl: Fix a test failure on AIX >= 5.3 with NFS.
3336         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3337         as no ACL.
3338
3339 2011-09-06  Bruno Haible  <bruno@clisp.org>
3340
3341         acl: Fix a test failure on IRIX 6.5 with NFS.
3342         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3343         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3344         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3345         * lib/copy-acl.c (qcopy_acl): Likewise.
3346
3347 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3348
3349         openat: port to AIX 7.1 with large files
3350         AIX 7.1 does a "#define openat open64at" if large files are in use,
3351         so we can't simply #undef openat.  Use the orig_openat trick (similar
3352         to orig_open in lib/open.c) to work around the problem.  Problem
3353         reported by Kevin Brott for GNU tar, in the thread containing
3354         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3355         * lib/openat.c (__need_system_fcntl_h): Define first.
3356         Include <fcntl.h> and <sys/types.h> before undefining.
3357         (orig_openat) [HAVE_OPENAT]: New inline function.
3358         (openat) [HAVE_OPENAT]: Do not undef.
3359         (rpl_openat): Use orig_openat, not openat.
3360
3361 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3362             Bruno Haible  <bruno@clisp.org>
3363
3364         acl: Avoid errors on NonStop Kernel.
3365         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3366         ENOTSUP errors.
3367
3368 2011-09-05  Bruno Haible  <bruno@clisp.org>
3369
3370         acl: Clean up Solaris code.
3371         * lib/acl-internal.h: Remove no-op #if.
3372         * lib/file-has-acl.c: Likewise.
3373         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3374         * lib/copy-acl.c (qcopy_acl): Likewise.
3375
3376 2011-09-05  Bruno Haible  <bruno@clisp.org>
3377
3378         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3379         binaries built on the original Solaris 10.
3380         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3381         trivial.
3382
3383 2011-09-05  Bruno Haible  <bruno@clisp.org>
3384
3385         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3386         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3387         10.
3388         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3389         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3390         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3391         instead of acl_get, facl_get, acl_set, facl_set.
3392
3393 2011-09-05  Bruno Haible  <bruno@clisp.org>
3394
3395         copy-file: Try unit tests on more file systems.
3396         * tests/test-copy-file-1.sh: New file.
3397         * tests/test-copy-file-2.sh: New file.
3398         * modules/copy-file-tests (Files): Add them.
3399         (Makefile.am): Add them to TESTS.
3400
3401         acl: Try unit tests on more file systems.
3402         * tests/test-file-has-acl-1.sh: New file.
3403         * tests/test-file-has-acl-2.sh: New file.
3404         * tests/test-set-mode-acl-1.sh: New file.
3405         * tests/test-set-mode-acl-2.sh: New file.
3406         * tests/test-copy-acl-1.sh: New file.
3407         * tests/test-copy-acl-2.sh: New file.
3408         * modules/acl-tests (Files): Add them.
3409         (Makefile.am): Add them to TESTS.
3410
3411 2011-09-04  Bruno Haible  <bruno@clisp.org>
3412
3413         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3414         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3415         10.
3416         (OLD_ALLOW, OLD_DENY): New macros.
3417         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3418         ACE_ACCESS_ALLOWED_ACE_TYPE.
3419         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3420         ACE_ACCESS_DENIED_ACE_TYPE.
3421         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3422         (NEW_ACE_EXECUTE): Fix value.
3423         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3424         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3425         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3426         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3427         NEW_ACE_SYNCHRONIZE): New macros.
3428         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3429         instead of acl_fromtext, acl_set, facl_set.
3430         Fixes a coreutils/tests/cp/perm failure.
3431
3432 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3433
3434         openat: test for fstatat (..., 0) bug
3435         Further testing with tar suggests that fstatat (..., 0)
3436         does not work in general, on AIX 7.1; see
3437         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3438         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3439         replacement fstatat (which is what older AIX releases were using
3440         anyway).
3441         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3442         use is now changed to orig_fstatat.  This was probably the right
3443         thing to do anyway.
3444         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3445         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3446         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3447         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3448         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3449         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3450         if the bug is found.
3451
3452         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3453         This tests for another fstatat bug on AIX 7.1:
3454         fstatat (AT_FDCWD, ..., 0) does not work.  See
3455         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3456         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3457         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3458         (rpl_fstatat): Adjust so that it works around either (or both)
3459         bugs if present.
3460         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3461
3462 2011-09-03  Karl Berry  <karl@gnu.org>
3463
3464         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3465         in index entries.
3466
3467 2011-09-02  Bruno Haible  <bruno@clisp.org>
3468
3469         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3470         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3471         values of AR, ARFLAGS, RANLIB.
3472         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3473
3474 2011-09-02  Bruno Haible  <bruno@clisp.org>
3475
3476         Find 'ar' program that fits with --host argument.
3477         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3478
3479 2011-09-02  Bruno Haible  <bruno@clisp.org>
3480
3481         tests: init.sh: Support any non-GNU diff.
3482         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3483         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3484         Solaris 8.
3485
3486 2011-09-02  Bruno Haible  <bruno@clisp.org>
3487
3488         tests: init.sh: work also with any non-GNU diff that supports -u
3489         * tests/init.sh: Relax check for diff -u support.
3490         Rather than checking for GNU diff via --version, simply check
3491         for support for -u itself.  Useful at least on OpenBSD 4.9,
3492         AIX 7.1, IRIX 6.5, and Solaris 10.
3493
3494 2011-09-01  Bruno Haible  <bruno@clisp.org>
3495
3496         strtoimax, strtoumax: Document problem on HP-UX 11.
3497         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3498         * doc/posix-functions/strtoumax.texi: Likewise.
3499
3500 2011-09-01  Bruno Haible  <bruno@clisp.org>
3501
3502         strtoumax: Avoid link error on OSF/1 with DTK cc.
3503         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3504         defined as a function.
3505         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3506         strtoumax is defined, not whether it is declared.
3507
3508 2011-09-01  Bruno Haible  <bruno@clisp.org>
3509
3510         strtoimax: Avoid link error on OSF/1 with DTK cc.
3511         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3512         defined as a function.
3513         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3514         strtoimax is defined, not whether it is declared.
3515
3516 2011-09-01  Bruno Haible  <bruno@clisp.org>
3517
3518         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3519         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3520         as a function.
3521         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3522         whether it is declared.
3523
3524 2011-09-01  Bruno Haible  <bruno@clisp.org>
3525
3526         imaxabs: Avoid link error on OSF/1 with DTK cc.
3527         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3528         as a function.
3529         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3530         whether it is declared.
3531
3532 2011-09-01  Bruno Haible  <bruno@clisp.org>
3533
3534         Tests for module 'strtoumax'.
3535         * modules/strtoumax-tests: New file.
3536         * tests/test-strtoumax.c: New file.
3537
3538         Tests for module 'strtoimax'.
3539         * modules/strtoimax-tests: New file.
3540         * tests/test-strtoimax.c: New file.
3541
3542         Tests for module 'imaxdiv'.
3543         * modules/imaxdiv-tests: New file.
3544         * tests/test-imaxdiv.c: New file.
3545
3546         Tests for module 'imaxabs'.
3547         * modules/imaxabs-tests: New file.
3548         * tests/test-imaxabs.c: New file.
3549
3550 2011-09-01  Bruno Haible  <bruno@clisp.org>
3551
3552         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3553         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3554         pthread_create.
3555
3556 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3557
3558         openat: work around AIX 7.1 fstatat issue
3559         This should fix the problem that was not properly fixed
3560         in the previous change, dated 2011-08-30.
3561         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3562         __need_system_stat_h defined.
3563         (orig_fstatat) [HAVE_FSTATAT]: New function.
3564         (rpl_fstatat): Go back to the old way of doing things,
3565         except call orig_fstatat instead of fstatat.
3566         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3567         Remove unnecessary check whether fstatat fills in st_size etc.
3568
3569 2011-09-01  Bruno Haible  <bruno@clisp.org>
3570
3571         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3572         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3573         just include the system's header.
3574
3575 2011-08-31  Jim Meyering  <meyering@redhat.com>
3576
3577         tests: avoid spurious assertion failure in test-float.c on ppc64
3578         * tests/test-float.c (test_long_double): Comment out an assertion,
3579         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3580         with gcc-4.4.4.
3581
3582         maint: indent with spaces, not TABs
3583         I need to get in the habit of running gnulib's "make check".
3584         Both of these would have been caught.
3585         * m4/largefile.m4: Indent with spaces, not TABs.
3586         * lib/parse-datetime.y (iso_8601_time): Likewise.
3587         Spotted by Pádraig Brady.
3588
3589         test-parse-datetime.c: accommodate a relatively strict gcc warning
3590         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3591         to avoid a warning from gcc's -Werror=missing-declarations.
3592         Insert a few spaces-before-funcall-parenthesis.
3593
3594 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3595
3596         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3597         The parser now accepts ISO 8601 date-time strings with "T" as the
3598         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3599         with a space between the date and time strings.  Now it also parses
3600         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3601         variants like "2004-02-29T16:21:42.333-07:00"
3602         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3603         of day representation using the 'T' separator character.
3604         * doc/parse-datetime.texi (General date syntax): replace use of
3605         deprecated --iso-8601 option with --rfc-3339 in example of date
3606         command output formats that can be parsed.
3607         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3608         lib/parse-datetime.y.
3609         (gmt_offset): New function.
3610         (main): Add additional test cases to validate ISO8601 extended
3611         date and time of day parsing.
3612
3613 2011-08-31  Bruno Haible  <bruno@clisp.org>
3614
3615         freopen: Documentation.
3616         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3617         name.
3618         Reported by Claudio Bley <claudio.bley@gmail.com>.
3619
3620 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3621
3622         freopen: Don't crash if the filename argument is NULL.
3623         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3624         NULL.
3625
3626 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3627
3628         openat: work around AIX 7.1 fstatat bug
3629         Problem reported by Kevin Brott for GNU tar, in the thread containing
3630         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3631         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3632         FSTATAT_ST_SIZE_ETC_BROKEN.
3633         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3634         rpl_fstatat.
3635         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3636         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3637         AC_CHECK_FUNCS_ONCE for fstatat.
3638         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3639         fchmodat, mkdirat, openat and unlinkat.
3640
3641 2011-08-30  Bruno Haible  <bruno@clisp.org>
3642
3643         Avoid endless recursions if config.h includes some header files.
3644         * lib/fopen.c (__need_FILE): Define already before including config.h.
3645         * lib/freopen.c (__need_FILE): Likewise.
3646         * lib/open.c (__need_system_fcntl_h): Likewise.
3647         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3648         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3649         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3650
3651 2011-08-25  Karl Berry  <karl@gnu.org>
3652
3653         * config/srclist.txt (ylwrap): new try.
3654         * build-aux/ylwrap: new file.
3655
3656 2011-08-23  Bruno Haible  <bruno@clisp.org>
3657
3658         tmpdir: Use a good default directory on native Windows.
3659         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3660         (P_tmpdir): Default to _P_tmpdir on native Windows.
3661         (path_search): On native Windows, try the value returned by GetTempPath
3662         before trying P_tmpdir.
3663         * modules/tmpdir (Depends-on): Add pathmax.
3664         Suggested by John Darrington <john@darrington.wattle.id.au>.
3665
3666 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3667
3668         doc: fix typo in README-release
3669         * top/README-release: Capitalize first word of a sentence.
3670
3671 2011-08-19  Jim Meyering  <meyering@redhat.com>
3672
3673         fts: do not exhaust memory when processing million-entry directories
3674         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3675         directory would require about 256*N bytes of memory.  Thus, it was
3676         easy to construct a directory too large to be processed by any of
3677         those tools.  With this change, fts' maximum memory utilization is
3678         now limited to around 30MB.
3679         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3680         (fts_read): When we've processed the final entry (i.e., when
3681         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3682         using the parent entry to read any remaining entries.  Dispatch
3683         depending on what fts_build returns:
3684         - NULL+stop, aka failure: stop
3685         - NULL otherwise: move up in the dir hierarchy
3686         - non-NULL: handle this new entry
3687         (fts_build): Declare and use new local, continue_readdir.
3688         Prepare to be called from fts_read, when the entries
3689         from a partially-read directory have just been exhausted.
3690         In that case, we'll skip the opendir and instead use the parent's
3691         fts_dirp and derive dir_fd from that.
3692         Finally, in the readdir loop, if we read max_entries entries,
3693         exit the loop ensuring *not* to call closedir.  This is required
3694         so that fts_dirp can be reused on a subsequent call.
3695         Prompted by Ben England's report of memory exhaustion in find
3696         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3697
3698         maint: fts: move decl of `dp' down into while loop; split a long line
3699         * lib/fts.c (fts_build): No semantic change.
3700
3701         fts: add/use new struct member, fts_dirp
3702         We are about to use this to manage any directory with
3703         too many entries to read all of them into memory at once.
3704         To do that, we'll need to save the DIR* pointer in each
3705         affected FTSENT struct.
3706         * lib/fts_.h: Include <dirent.h>.
3707         (struct FTSENT) [fts_dirp]: New member.
3708         * lib/fts.c (closedir_and_clear): Define.
3709         Use it in place of closedir so that we are sure to
3710         clear the new fts_dirp member when done with it.
3711         (fts_alloc): Initialize the new member.
3712         (fts_lfree): Free, if needed.
3713
3714         maint: fts: give __opendir2 a new parameter and rename
3715         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3716         than surreptitiously using sole caller's "dir_fd".
3717         (fts_opendir): Rename from __opendir2.
3718
3719         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3720         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3721
3722         maint: fts.c: correct off-by-one indentation
3723         * lib/fts.c (fts_build): Correct indentation, change style
3724         of a couple of block comments, and bracing style.
3725
3726         maint: fts.c: move __opendir2 #define "up" out of function body
3727         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3728
3729         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3730         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3731         out for a long time and besides was useful only on BSD systems.
3732
3733 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3734
3735         regex: port to Stratus OpenVOS
3736         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3737         define to empty, rather than attempting nonportable optimizations.
3738         Problem reported by Paul Green in:
3739         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3740         and fix suggested by Eric Blake in:
3741         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3742
3743 2011-08-17  Eric Blake  <eblake@redhat.com>
3744
3745         getcwd: fix test failures on mingw
3746         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3747         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3748         test if long directory cannot be created, and allow mingw errno.
3749
3750         getcwd-lgpl: fix m4 to match relaxed test for BSD
3751         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3752         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3753         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3754         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3755         signature problem.
3756
3757         getcwd: fix compilation on mingw64
3758         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3759         getcwd.
3760         Reported by Marc-André Lureau.
3761
3762         pipe2: silence compiler warning
3763         * lib/pipe2.c (pipe2): Hide label if it is not used.
3764
3765 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3766
3767         relocatable-prog: fix link error
3768         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3769         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3770         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3771         into modules/relocatable-lib without noticing that
3772         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3773         also needs to build relocatable.c.
3774
3775 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3776
3777         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3779         shell code: it contained a 'break' that was not in a loop.
3780         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3781         via a shell-language loop; this may have been true in old Autoconf
3782         versions, but it's not true in Autoconf 2.68.  I found this bug
3783         when testing coreutils git on Solaris 8, whose shell complains
3784         about the syntax error.
3785
3786 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3787
3788         * lib/base64.c: Fix comment to reference RFC 4648.
3789         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3790         <gvtulder@gmail.com>.
3791
3792 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3793
3794         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3795
3796         po/Makefile.in.in: fix make -q problem
3797         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3798         rule, since there's no file named 'check-macro-version' and its
3799         use as a file breaks make -q.
3800         (all): Don't depend on check-macro-version.
3801         (CHECK_MACRO_VERSION): New macro.
3802         (stamp-po): Use it.
3803
3804         configmake: fix make -q problem
3805         * modules/configmake (configmake.h): Update configmake.h's time stamp
3806         even if the file does not change.  Otherwise, 'make -q' fails.
3807         Problem reported by Simon Josefsson in
3808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3809
3810 2011-08-11  Jim Meyering  <meyering@redhat.com>
3811
3812         git-version-gen: correct the advice in a comment
3813         * build-aux/git-version-gen: Correct comment.
3814         Don't recommend to list .tarball-version in .gitignore.
3815
3816 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3817
3818         base64: fix off-by-one buffer size bug
3819         Problem and (trivial) fix reported by Gijs van Tulder in
3820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3821         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3822         * tests/test-base64.c (main): Catch the bug.
3823
3824 2011-08-10  Eric Blake  <eblake@redhat.com>
3825
3826         closein: correct comments
3827         * lib/closein.c (close_stdin): Improve comments.
3828
3829 2011-08-09  Bruno Haible  <bruno@clisp.org>
3830
3831         More tests for 'fseeko'.
3832         * tests/test-fseeko3.c: New file, from Eric Blake.
3833         * tests/test-fseeko3.sh: New file.
3834         * modules/fseeko-tests (Files): Add them.
3835         (TESTS): Add test-fseeko3.sh.
3836         (check_PROGRAMS): Add test-fseeko3.
3837
3838 2011-08-09  Eric Blake  <eblake@redhat.com>
3839
3840         fseeko: remove unneeded hack
3841         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3842
3843         fseeko: fix bug on glibc
3844         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3845         Reported by John W. Eaton.
3846
3847 2011-08-08  Bruno Haible  <bruno@clisp.org>
3848
3849         unictype/base: Fix interoperability with preinstalled libunistring.
3850         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3851         Reported by Simon Josefsson.
3852
3853 2011-08-08  Bruno Haible  <bruno@clisp.org>
3854
3855         iswblank: Detect declaration correctly.
3856         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3857         AC_CHECK_DECLS invocation.
3858
3859 2011-08-08  Bruno Haible  <bruno@clisp.org>
3860
3861         tcgetsid: Detect declaration correctly.
3862         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3863         AC_CHECK_DECLS invocation.
3864         Reported by Simon Josefsson.
3865
3866 2011-08-08  Eric Blake  <eblake@redhat.com>
3867
3868         largefile: fix typo that regressed large file support
3869         * modules/largefile (configure.ac-early): Fix section name.
3870
3871 2011-08-06  Karl Berry  <karl@gnu.org>
3872
3873         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3874         a separate module.
3875
3876 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3877
3878         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3879         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3880         get prototype for free.
3881
3882 2011-08-04  Bruno Haible  <bruno@clisp.org>
3883
3884         Tests for module 'pathmax'.
3885         * modules/pathmax-tests: New file.
3886         * tests/test-pathmax.c: New file.
3887
3888         canonicalize-lgpl: Support larger filenames on the Hurd.
3889         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3890         Reported by Paul Eggert.
3891
3892         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3893         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3894         * lib/chdir-long.h: Include pathmax.h.
3895         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3896         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3897         (PATH_MAX): Remove code that is done by pathmax.h.
3898         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3899         * lib/tmpfile.c: Add a comment.
3900         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3901         * modules/chdir-long (Depends-on): Add pathmax.
3902         * modules/getcwd (Depends-on): Add pathmax.
3903         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3904         is not defined.
3905         * doc/posix-headers/limits.texi: Mention the pathmax module.
3906         * NEWS: Mention the change.
3907
3908 2011-08-02  Bruno Haible  <bruno@clisp.org>
3909
3910         pthread_sigmask: Actually use results of gl_THREADLIB.
3911         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3912         gl_THREADLIB, not gl_[]THREADLIB.
3913         Reported by Eric Blake.
3914
3915 2011-08-02  Jim Meyering  <meyering@redhat.com>
3916
3917         maint.mk: relax the default _gl_TS_function_match regexp
3918         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3919         space between function name and "(" in an "extern" declaration.
3920         That would fail to match a decl with no space there: extern void foo();
3921
3922 2011-07-31  Iain Nicol  <iain@thenicols.net>
3923
3924         git-version-gen: document that EXTRA_DIST must include .version
3925         * build-aux/git-version-gen: In the how-to-use comment, document
3926         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3927         will fail when run from an unpacked distribution tarball.
3928
3929 2011-08-01  Bruno Haible  <bruno@clisp.org>
3930
3931         wctype-h: Fix last change.
3932         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3933         REPLACE_TOWLOWER to 0.
3934         Reported by Sam Steingold <sds@gnu.org>.
3935
3936 2011-07-31  Bruno Haible  <bruno@clisp.org>
3937
3938         frexpl: Update autoconf test.
3939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3940         according to changes of 2011-06-20.
3941
3942 2011-07-31  Bruno Haible  <bruno@clisp.org>
3943
3944         sys_utsname: Add support for Minix.
3945         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3946         <sys/utsname.h>.
3947         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3948         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3949
3950 2011-07-31  Bruno Haible  <bruno@clisp.org>
3951
3952         strings: Add support for Minix.
3953         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3954         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3955         * doc/posix-headers/strings.texi: Document the Minix problem.
3956
3957 2011-07-31  Bruno Haible  <bruno@clisp.org>
3958
3959         wctype-h: Add support for Minix.
3960         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3961         REPLACE_TOWLOWER.
3962         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3963         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3964         REPLACE_ISWCNTRL.
3965
3966 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3967
3968         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3969         This is a performance improvement for 64-bit hosts: it causes the
3970         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3971
3972 2011-07-31  Bruno Haible  <bruno@clisp.org>
3973
3974         stdioext: Add support for Minix.
3975         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3976         * lib/fpurge.c (fpurge): Likewise.
3977         * lib/freadahead.c (freadahead): Likewise.
3978         * lib/freadable.c (freadable): Likewise.
3979         * lib/freading.c (freading): Likewise.
3980         * lib/freadptr.c (freadptr): Likewise.
3981         * lib/freadseek.c (freadptrinc): Likewise.
3982         * lib/fseeko.c (rpl_fseeko): Likewise.
3983         * lib/fseterr.c (fseterr): Likewise.
3984         * lib/fwritable.c (fwritable): Likewise.
3985         * lib/fwriting.c (fwriting): Likewise.
3986         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3987         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3988
3989 2011-07-31  Bruno Haible  <bruno@clisp.org>
3990
3991         errno: Port to Minix.
3992         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3993         ECONNABORTED are defined.
3994         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3995         GNULIB_defined_ECONNABORTED): New macros.
3996         * lib/strerror-override.h (strerror_override): Test also
3997         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3998         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3999         ECONNABORTED.
4000         * doc/posix-headers/errno.texi: Mention the Minix problem.
4001
4002 2011-07-31  Bruno Haible  <bruno@clisp.org>
4003
4004         Work around declaration collisions on Minix.
4005         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4006         defined, set REPLACE_MBSINIT.
4007         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4008         defined, set REPLACE_MBRTOWC.
4009         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4010         set REPLACE_MBRLEN.
4011         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4012         defined, set REPLACE_MBSRTOWCS.
4013         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4014         defined, set REPLACE_WCRTOMB.
4015         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4016         defined, set REPLACE_WCSRTOMBS.
4017
4018 2011-07-31  Bruno Haible  <bruno@clisp.org>
4019
4020         Add support for Minix with ACK compiler.
4021         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4022         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4023         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4024
4025 2011-07-31  Bruno Haible  <bruno@clisp.org>
4026
4027         Documentation about Minix.
4028         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4029         * doc/glibc-headers/*.texi: Likewise.
4030         * doc/posix-functions/*.texi: Likewise.
4031         * doc/glibc-functions/*.texi: Likewise.
4032
4033 2011-07-31  Bruno Haible  <bruno@clisp.org>
4034
4035         snippet/warn-on-use: Fix indentation.
4036         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4037
4038 2011-07-25  Jim Meyering  <meyering@redhat.com>
4039
4040         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4041         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4042         commands.
4043
4044 2011-07-27  Jim Meyering  <meyering@redhat.com>
4045
4046         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4047         * top/maint.mk (gl_extract_significant_defines_): Now that
4048         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4049         gnulib/lib/signal.in.h, and now that we recommend to
4050         define-if-undefined those two symbols in application code,
4051         we must filter them out of the "significant" list.
4052         This avoids a "make syntax-check" failure in coreutils.
4053
4054 2011-07-26  Eric Blake  <eblake@redhat.com>
4055
4056         warnings: add comments about previous patch
4057         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4058         * m4/include_next.m4: Likewise.
4059         * m4/warn-on-use.m4: Likewise.
4060         * m4/warnings.m4: Likewise, and simplify use.
4061         Suggested by Stefano Lattarini.
4062
4063         include-next, warnings: support older autoconf
4064         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4065         AS_VAR_PUSHDEF in a way that works with older autoconf.
4066         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4067         Reported by Daniel P. Berrange.
4068
4069 2011-07-25  Bruno Haible  <bruno@clisp.org>
4070
4071         fseek, ftell: Fix doc.
4072         * doc/posix-functions/fseek.texi: Reword statement about
4073         AC_SYS_LARGEFILE.
4074         * doc/posix-functions/ftell.texi: Likewise.
4075
4076 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4077             Bruno Haible  <bruno@clisp.org>
4078
4079         Add dependencies to the 'largefile' module.
4080         * modules/fopen (Depends-on): Add 'largefile'.
4081         * modules/freopen (Depends-on): Likewise.
4082         * modules/fseeko (Depends-on): Likewise.
4083         * modules/ftello (Depends-on): Likewise.
4084         * modules/glob (Depends-on): Likewise.
4085         * modules/lseek (Depends-on): Likewise.
4086         * modules/lstat (Depends-on): Likewise.
4087         * modules/mkostemp (Depends-on): Likewise.
4088         * modules/mkostemps (Depends-on): Likewise.
4089         * modules/mkstemp (Depends-on): Likewise.
4090         * modules/mkstemps (Depends-on): Likewise.
4091         * modules/open (Depends-on): Likewise.
4092         * modules/openat (Depends-on): Likewise.
4093         * modules/pread (Depends-on): Likewise.
4094         * modules/pwrite (Depends-on): Likewise.
4095         * modules/scandir (Depends-on): Likewise.
4096         * modules/stat (Depends-on): Likewise.
4097         * modules/tmpfile (Depends-on): Likewise.
4098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4099         since the containing module now depends on the largefile module.
4100         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4101         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4102         off_t is fixed by gnulib.
4103         * doc/posix-functions/freopen.texi: Likewise.
4104         * doc/posix-functions/fseeko.texi: Likewise.
4105         * doc/posix-functions/fstatat.texi: Likewise.
4106         * doc/posix-functions/ftello.texi: Likewise.
4107         * doc/posix-functions/glob.texi: Likewise.
4108         * doc/posix-functions/lseek.texi: Likewise.
4109         * doc/posix-functions/lstat.texi: Likewise.
4110         * doc/posix-functions/mkstemp.texi: Likewise.
4111         * doc/posix-functions/open.texi: Likewise.
4112         * doc/posix-functions/openat.texi: Likewise.
4113         * doc/posix-functions/pread.texi: Likewise.
4114         * doc/posix-functions/pwrite.texi: Likewise.
4115         * doc/posix-functions/scandir.texi: Likewise.
4116         * doc/posix-functions/stat.texi: Likewise.
4117         * doc/posix-functions/tmpfile.texi: Likewise.
4118         * doc/glibc-functions/mkostemp.texi: Likewise.
4119         * doc/glibc-functions/mkostemps.texi: Likewise.
4120         * doc/glibc-functions/mkstemps.texi: Likewise.
4121
4122 2011-07-25  Bruno Haible  <bruno@clisp.org>
4123
4124         fcntl: Move AC_LIBOBJ invocation to module description.
4125         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4126         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4127
4128         fcntl: Remove call-in from fchdir.m4.
4129         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4131
4132         dup3: Remove potential call-in from fchdir.m4.
4133         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4135
4136         dup2: Move AC_LIBOBJ invocation to module description.
4137         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4138         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4139         Don't invoke AC_LIBOBJ.
4140         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4141
4142         dup2: Remove call-in from fchdir.m4.
4143         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4145
4146         fclose: Move AC_LIBOBJ invocation to module description.
4147         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4148         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4149         to 1.
4150         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4151
4152         fclose: Remove call-in from close.m4.
4153         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4154         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4155
4156         close: Move AC_LIBOBJ invocation to module description.
4157         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4158         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4159         1.
4160         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4161
4162         close: Remove call-in from fchdir.m4.
4163         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4165
4166         open: Move AC_LIBOBJ invocation to module description.
4167         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4168         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4169         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4170
4171         open: Remove call-in from fchdir.m4.
4172         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4174
4175         fchdir: Start to remove gl_REPLACE_* idiom.
4176         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4177         (gl_FUNC_FCHDIR): Invoke it.
4178
4179 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4180
4181         * lib/ftell.c (ftell): Comment out cast.
4182
4183         close: use gl_REPLACE_FCLOSE only if defined
4184         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4185         is defined.  The close module doesn't depend on the fclose module
4186         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4188         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4189
4190 2011-07-24  Jim Meyering  <meyering@redhat.com>
4191
4192         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4193         * tests/test-select.h (test_function): Declare as "static".
4194
4195 2011-07-24  Bruno Haible  <bruno@clisp.org>
4196
4197         doc: Mention the effects of AC_SYS_LARGEFILE.
4198         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4199         on this function.
4200         * doc/posix-functions/aio_error.texi: Likewise.
4201         * doc/posix-functions/aio_fsync.texi: Likewise.
4202         * doc/posix-functions/aio_read.texi: Likewise.
4203         * doc/posix-functions/aio_return.texi: Likewise.
4204         * doc/posix-functions/aio_suspend.texi: Likewise.
4205         * doc/posix-functions/aio_write.texi: Likewise.
4206         * doc/posix-functions/fgetpos.texi: Likewise.
4207         * doc/posix-functions/fopen.texi: Likewise.
4208         * doc/posix-functions/freopen.texi: Likewise.
4209         * doc/posix-functions/fsetpos.texi: Likewise.
4210         * doc/posix-functions/fstatvfs.texi: Likewise.
4211         * doc/posix-functions/ftruncate.texi: Likewise.
4212         * doc/posix-functions/ftw.texi: Likewise.
4213         * doc/posix-functions/getrlimit.texi: Likewise.
4214         * doc/posix-functions/glob.texi: Likewise.
4215         * doc/posix-functions/lio_listio.texi: Likewise.
4216         * doc/posix-functions/lockf.texi: Likewise.
4217         * doc/posix-functions/mkstemp.texi: Likewise.
4218         * doc/posix-functions/mmap.texi: Likewise.
4219         * doc/posix-functions/nftw.texi: Likewise.
4220         * doc/posix-functions/openat.texi: Likewise.
4221         * doc/posix-functions/opendir.texi: Likewise.
4222         * doc/posix-functions/posix_fadvise.texi: Likewise.
4223         * doc/posix-functions/posix_fallocate.texi: Likewise.
4224         * doc/posix-functions/pread.texi: Likewise.
4225         * doc/posix-functions/pwrite.texi: Likewise.
4226         * doc/posix-functions/readdir.texi: Likewise.
4227         * doc/posix-functions/readdir_r.texi: Likewise.
4228         * doc/posix-functions/rewinddir.texi: Likewise.
4229         * doc/posix-functions/scandir.texi: Likewise.
4230         * doc/posix-functions/seekdir.texi: Likewise.
4231         * doc/posix-functions/setrlimit.texi: Likewise.
4232         * doc/posix-functions/statvfs.texi: Likewise.
4233         * doc/posix-functions/telldir.texi: Likewise.
4234         * doc/posix-functions/tmpfile.texi: Likewise.
4235         * doc/posix-functions/truncate.texi: Likewise.
4236         * doc/glibc-functions/fallocate.texi: Likewise.
4237         * doc/glibc-functions/fstatfs.texi: Likewise.
4238         * doc/glibc-functions/fts_children.texi: Likewise.
4239         * doc/glibc-functions/fts_read.texi: Likewise.
4240         * doc/glibc-functions/getdirentries.texi: Likewise.
4241         * doc/glibc-functions/mkostemp.texi: Likewise.
4242         * doc/glibc-functions/mkostemps.texi: Likewise.
4243         * doc/glibc-functions/mkstemps.texi: Likewise.
4244         * doc/glibc-functions/preadv.texi: Likewise.
4245         * doc/glibc-functions/pwritev.texi: Likewise.
4246         * doc/glibc-functions/sendfile.texi: Likewise.
4247         * doc/glibc-functions/statfs.texi: Likewise.
4248
4249 2011-07-24  Bruno Haible  <bruno@clisp.org>
4250
4251         doc: Fix typo.
4252         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4253
4254 2011-07-24  Bruno Haible  <bruno@clisp.org>
4255
4256         doc: Mention fsusage.
4257         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4258
4259 2011-07-24  Bruno Haible  <bruno@clisp.org>
4260
4261         doc: Mention new glibc headers and functions.
4262         * doc/glibc-headers/gshadow.texi: New file.
4263         * doc/glibc-functions/endsgent.texi: New file.
4264         * doc/glibc-functions/fgetsgent.texi: New file.
4265         * doc/glibc-functions/fgetsgent_r.texi: New file.
4266         * doc/glibc-functions/getsgent.texi: New file.
4267         * doc/glibc-functions/getsgent_r.texi: New file.
4268         * doc/glibc-functions/getsgnam.texi: New file.
4269         * doc/glibc-functions/getsgnam_r.texi: New file.
4270         * doc/glibc-functions/putsgent.texi: New file.
4271         * doc/glibc-functions/setsgent.texi: New file.
4272         * doc/glibc-functions/sgetsgent.texi: New file.
4273         * doc/glibc-functions/sgetsgent_r.texi: New file.
4274         * doc/glibc-functions/malloc_info.texi: New file.
4275         * doc/glibc-functions/preadv.texi: New file.
4276         * doc/glibc-functions/pwritev.texi: New file.
4277         * doc/glibc-functions/register_printf_modifier.texi: New file.
4278         * doc/glibc-functions/register_printf_specifier.texi: New file.
4279         * doc/glibc-functions/register_printf_type.texi: New file.
4280         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4281         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4282         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4283         * doc/glibc-functions/pthread_getname_np.texi: New file.
4284         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4285         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4286         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4287         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4288         * doc/glibc-functions/pthread_setname_np.texi: New file.
4289         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4290         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4291         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4292         * doc/glibc-functions/qsort_r.texi: New file.
4293         * doc/glibc-functions/quick_exit.texi: New file.
4294         * doc/glibc-functions/syncfs.texi: New file.
4295         * doc/gnulib.texi: Include them.
4296         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4297         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4298         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4299         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4300         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4301         * doc/glibc-functions/execvpe.texi: Likewise.
4302
4303 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4304
4305         ftell: don't include <unistd.h>
4306         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4307         guaranteed to define off_t, and the ftell module depends on the
4308         stdio module.
4309
4310         ftell: do not assume wraparound signed arithmetic
4311         * lib/ftell.c: Include <limits.h>.
4312         (ftell): Don't assume wraparound signed arithmetic.
4313
4314 2011-07-24  Bruno Haible  <bruno@clisp.org>
4315
4316         close: No longer depend on module 'fclose'.
4317         * modules/close (Depends-on): Remove fclose.
4318         * NEWS: Mention the change.
4319         Suggested by Sam Steingold <sds@gnu.org>.
4320
4321 2011-07-24  Bruno Haible  <bruno@clisp.org>
4322
4323         fsusage: Enable large volume support on AIX >= 5.2.
4324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4325         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4326         instead of STAT_STATVFS.
4327         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4328
4329         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4331         f_blocks field only on MacOS X.
4332
4333         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4335         * modules/fsusage (Depends-on): Add largefile.
4336
4337 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         * README: Modernize discussion of signed integers.
4340         Assuming overflow wraparound is no longer safe.
4341         Mention ones' complement and signed magnitude.
4342
4343 2011-07-22  Bruno Haible  <bruno@clisp.org>
4344
4345         select tests, pselect tests: Refactor.
4346         * tests/test-select.h: New file, extracted from tests/test-select.c.
4347         (select_fn): New type.
4348         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4349         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4350         test_pipe): Add my_select argument.
4351         (test_function): Renamed from main. Add my_select argument.
4352         * tests/test-select.c: Move most code to tests/test-select.h. Include
4353         test-select.h.
4354         * modules/select-tests (Files): Add tests/test-select.h.
4355         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4356         (my_select, main): New functions.
4357         * modules/pselect-tests (Files): Add tests/test-select.h,
4358         tests/macros.h, tests/signature.h.
4359         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4360         (configure.ac): Check for <sys/wait.h>.
4361
4362 2011-07-22  Bruno Haible  <bruno@clisp.org>
4363
4364         sys_select tests: Check the signature of FD_*.
4365         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4366         signature tests from here...
4367         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4368         here.
4369         * modules/sys_select-tests (Files): Add tests/signature.h.
4370
4371 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4372
4373         largefile: new module, replacing large-inode
4374         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4375         * MODULES.html.sh: Add largefile, remove large-inode.
4376         * modules/largefile, m4/largefile.m4: New files.
4377         * modules/large-inode, m4/large-inode.m4: Remove.
4378
4379         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4381         implementations that use only 32 bits to count blocks.
4382         On typical hosts with 1024-byte blocks, this fails with file
4383         systems as small as 4 TiB.  Problem reported by Herb Wartens
4384         <http://debbugs.gnu.org/9140> and this should also fix a similar
4385         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4386
4387         large-inode: New module
4388         * MODULES.html.sh: Add it.
4389         * modules/large-inode, m4/large-inode.m4: New files.
4390
4391         extensions: Enable extensions on MacOS X 10.5 and later.
4392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4393
4394 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4395
4396         file-has-acl: use acl_extended_file_nofollow if available
4397         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4398         (acl_extended_file): New macro.
4399         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4400         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4401
4402 2011-07-21  Bruno Haible  <bruno@clisp.org>
4403
4404         Declare system functions in a way that works with C++.
4405         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4406         declare fdopendir as extern "C".
4407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4408         declare frexpl as extern "C".
4409         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4410         declare gai_strerror as extern "C".
4411         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4412         programs, declare gai_strerror as extern "C".
4413         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4414         declare getlogin_r as extern "C".
4415         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4416         as extern "C".
4417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4418         declare ldexpl as extern "C".
4419         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4420         as extern "C".
4421         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4422         program, declare getmntinfo as extern "C".
4423         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4424         stpncpy as extern "C".
4425         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4426         program, declare __xpg_strerror_r as extern "C".
4427         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4428         strndup as extern "C".
4429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4430         declare memset and bzero as extern "C".
4431         Reported by Sam Steingold <sds@gnu.org>.
4432
4433 2011-07-12  Jim Meyering  <meyering@redhat.com>
4434
4435         maint.mk: prohibit inclusion of "verify.h" without use
4436         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4437
4438 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4439
4440         timer-time: A new module to check for timer_settime()
4441         * m4/timer_time.m4: Check for the posix function.
4442         * modules/timer-time: Add the new module.
4443         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4444         Mention it.
4445
4446 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4447             Bruno Haible  <bruno@clisp.org>
4448
4449         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4450         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4451         not defined, assume POSIX threads and look for pthread_sigmask in
4452         $LIBS, without changing $CPPFLAGS.
4453
4454 2011-07-19  Bruno Haible  <bruno@clisp.org>
4455
4456         strstr: Update cross-compilation guess.
4457         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4458         CPUs, guess no, in view of glibc
4459         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4460         Suggested by Eric Blake. Reported by Reuben Thomas.
4461
4462 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4463
4464         getopt-gnu: suppress core dumps from detection code
4465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4466         to suppress core dumps that may well occur on glibc systems.
4467         * modules/getopt-gnu: Depend on nocrash.
4468
4469 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4470
4471         pthread_sigmask: ensure usleep is declared
4472         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4473         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4474
4475 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4476
4477         doc: Document NonStop portability issues.
4478         * doc/posix-functions/sigaction.texi (sigaction):
4479         * doc/posix-headers/signal.texi (signal.h):
4480         Document NonStop.  See Joachim Schmitz in
4481         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4482
4483 2011-07-15  Bruno Haible  <bruno@clisp.org>
4484
4485         ffsl, ffsll: Avoid unportable behaviour.
4486         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4487
4488 2011-07-15  Bruno Haible  <bruno@clisp.org>
4489
4490         ffs: More tests.
4491         * tests/test-ffs.c (NBITS): New macro.
4492         (main): Add more tests.
4493         * tests/test-ffsl.c (NBITS): New macro.
4494         (main): Add more tests.
4495         * tests/test-ffsll.c (NBITS): New macro.
4496         (main): Add more tests.
4497
4498 2011-07-15  Eric Blake  <eblake@redhat.com>
4499
4500         ffsl, ffsll: new modules
4501         * modules/ffsl: New file.
4502         * modules/ffsll: Likewise.
4503         * m4/ffsl.m4: Likewise.
4504         * m4/ffsll.m4: Likewise.
4505         * lib/ffsl.c: Likewise.
4506         * lib/ffsl.h: Likewise.
4507         * lib/ffsll.c: Likewise.
4508         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4509         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4510         * modules/string (Makefile.am): Substitute witnesses.
4511         * lib/strings.in.h (ffsl, ffsll): Declare.
4512         * modules/ffsl-tests: New test file.
4513         * modules/ffsll-tests: Likewise.
4514         * tests/test-ffsl.c: Likewise.
4515         * tests/test-ffsll.c: Likewise.
4516         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4517         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4518         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4519
4520         ffs: fix m4 prerequisite
4521         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4522
4523         ffs: avoid undefined behavior
4524         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4525         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4526         Reported by Bruno Haible.
4527
4528 2011-07-12  Bruno Haible  <bruno@clisp.org>
4529
4530         pthread_sigmask: Rely on module 'threadlib'.
4531         * modules/pthread_sigmask (Depends-on): Add threadlib.
4532         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4533         is defined.
4534
4535 2011-07-12  Bruno Haible  <bruno@clisp.org>
4536
4537         regex: Depend on module 'strcase'.
4538         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4539
4540 2011-07-12  Jim Meyering  <meyering@redhat.com>
4541
4542         warn-on-use: fix typo in file name
4543         * modules/snippet/warn-on-use (Files): Correct file name:
4544         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4545
4546 2011-07-12  Bruno Haible  <bruno@clisp.org>
4547
4548         strings: Document module.
4549         * doc/posix-headers/strings.texi: Mention module 'strings'.
4550
4551 2011-07-12  Bruno Haible  <bruno@clisp.org>
4552
4553         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4554         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4555         (Files, Makefile.am): Update.
4556         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4557         * modules/stdlib (Depends-on): Update.
4558
4559 2011-07-12  Bruno Haible  <bruno@clisp.org>
4560
4561         * NEWS: Mention the changes.
4562
4563         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4564         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4565         (Files, Makefile.am): Update.
4566         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4567         * modules/arpa_inet (Depends-on): Update.
4568         * modules/ctype (Depends-on): Update.
4569         * modules/dirent (Depends-on): Update.
4570         * modules/fcntl-h (Depends-on): Update.
4571         * modules/glob (Depends-on): Update.
4572         * modules/iconv-h (Depends-on): Update.
4573         * modules/inttypes-incomplete (Depends-on): Update.
4574         * modules/langinfo (Depends-on): Update.
4575         * modules/locale (Depends-on): Update.
4576         * modules/math (Depends-on): Update.
4577         * modules/netdb (Depends-on): Update.
4578         * modules/poll-h (Depends-on): Update.
4579         * modules/pty (Depends-on): Update.
4580         * modules/search (Depends-on): Update.
4581         * modules/signal (Depends-on): Update.
4582         * modules/spawn (Depends-on): Update.
4583         * modules/stdio (Depends-on): Update.
4584         * modules/stdlib (Depends-on): Update.
4585         * modules/string (Depends-on): Update.
4586         * modules/strings (Depends-on): Update.
4587         * modules/sys_file (Depends-on): Update.
4588         * modules/sys_ioctl (Depends-on): Update.
4589         * modules/sys_select (Depends-on): Update.
4590         * modules/sys_socket (Depends-on): Update.
4591         * modules/sys_stat (Depends-on): Update.
4592         * modules/sys_time (Depends-on): Update.
4593         * modules/sys_times (Depends-on): Update.
4594         * modules/sys_utsname (Depends-on): Update.
4595         * modules/sys_wait (Depends-on): Update.
4596         * modules/termios (Depends-on): Update.
4597         * modules/time (Depends-on): Update.
4598         * modules/unistd (Depends-on): Update.
4599         * modules/wchar (Depends-on): Update.
4600         * modules/wctype-h (Depends-on): Update.
4601         * MODULES.html.sh (Support for building libraries and executables):
4602         Update.
4603
4604         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4605         * modules/snippet/unused-parameter: Renamed from
4606         modules/unused-parameter.
4607         (Files, Makefile.am): Update.
4608         * build-aux/snippet/unused-parameter.h: Renamed from
4609         build-aux/unused-parameter.h.
4610         * modules/selinux-h (Depends-on): Update.
4611         * modules/unistr/base (Depends-on): Update.
4612         * MODULES.html.sh (Core language properties): Update.
4613
4614         Rename module 'link-warning' to 'snippet/link-warning'.
4615         * modules/snippet/link-warning: Renamed from modules/link-warning.
4616         (Files, Makefile.am): Update.
4617         * build-aux/snippet/link-warning.h: Renamed from
4618         build-aux/link-warning.h.
4619         * MODULES.html.sh (Support for building libraries and executables):
4620         Update.
4621
4622         Rename module 'c++defs' to 'snippet/c++defs'.
4623         * modules/snippet/c++defs: Renamed from modules/c++defs.
4624         (Files, Makefile.am): Update.
4625         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4626         * modules/arpa_inet (Depends-on): Update.
4627         * modules/ctype (Depends-on): Update.
4628         * modules/dirent (Depends-on): Update.
4629         * modules/fcntl-h (Depends-on): Update.
4630         * modules/glob (Depends-on): Update.
4631         * modules/iconv-h (Depends-on): Update.
4632         * modules/langinfo (Depends-on): Update.
4633         * modules/locale (Depends-on): Update.
4634         * modules/math (Depends-on): Update.
4635         * modules/netdb (Depends-on): Update.
4636         * modules/poll-h (Depends-on): Update.
4637         * modules/pty (Depends-on): Update.
4638         * modules/search (Depends-on): Update.
4639         * modules/signal (Depends-on): Update.
4640         * modules/spawn (Depends-on): Update.
4641         * modules/stdio (Depends-on): Update.
4642         * modules/stdlib (Depends-on): Update.
4643         * modules/string (Depends-on): Update.
4644         * modules/strings (Depends-on): Update.
4645         * modules/sys_ioctl (Depends-on): Update.
4646         * modules/sys_select (Depends-on): Update.
4647         * modules/sys_socket (Depends-on): Update.
4648         * modules/sys_stat (Depends-on): Update.
4649         * modules/sys_time (Depends-on): Update.
4650         * modules/sys_wait (Depends-on): Update.
4651         * modules/termios (Depends-on): Update.
4652         * modules/time (Depends-on): Update.
4653         * modules/unistd (Depends-on): Update.
4654         * modules/wchar (Depends-on): Update.
4655         * modules/wctype-h (Depends-on): Update.
4656
4657         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4658         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4659         (Files, Makefile.am): Update.
4660         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4661         * modules/argv-iter (Depends-on): Update.
4662         * modules/arpa_inet (Depends-on): Update.
4663         * modules/dirent (Depends-on): Update.
4664         * modules/fcntl-h (Depends-on): Update.
4665         * modules/fnmatch (Depends-on): Update.
4666         * modules/getopt-posix (Depends-on): Update.
4667         * modules/glob (Depends-on): Update.
4668         * modules/iconv-h (Depends-on): Update.
4669         * modules/inttypes-incomplete (Depends-on): Update.
4670         * modules/locale (Depends-on): Update.
4671         * modules/math (Depends-on): Update.
4672         * modules/netdb (Depends-on): Update.
4673         * modules/search (Depends-on): Update.
4674         * modules/signal (Depends-on): Update.
4675         * modules/spawn (Depends-on): Update.
4676         * modules/stdio (Depends-on): Update.
4677         * modules/stdlib (Depends-on): Update.
4678         * modules/string (Depends-on): Update.
4679         * modules/strings (Depends-on): Update.
4680         * modules/sys_socket (Depends-on): Update.
4681         * modules/sys_stat (Depends-on): Update.
4682         * modules/sys_time (Depends-on): Update.
4683         * modules/sys_times (Depends-on): Update.
4684         * modules/sys_utsname (Depends-on): Update.
4685         * modules/time (Depends-on): Update.
4686         * modules/unistd (Depends-on): Update.
4687         * modules/wchar (Depends-on): Update.
4688         * MODULES.html.sh (Support for building libraries and executables):
4689         Update.
4690
4691 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4692
4693         Improvements on _Noreturn and related modules.
4694
4695         modules/_Exit-tests: test _Noreturn too
4696         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4697         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4698         (main): Use them.
4699
4700         stdnoreturn, stdnoreturn-tests: remove modules
4701         They're not needed here and a bit premature for use elsewhere.  See
4702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4703         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4704         * tests/test-stdnoreturn.c: Remove files.
4705         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4706         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4707         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4708         and using noreturn.
4709         * modules/openat, modules/sigpipe-die, modules/xalloc:
4710         * modules/xmemdup0, modules/xstrtol:
4711         Remove dependency on stdnoreturn.
4712
4713         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4714         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4715         Reparenthesize to avoid GCC warning.
4716         Support Microsoft's syntax.
4717         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4718
4719         _Noreturn-tests: remove module
4720         * modules/_Noreturn-tests: Remove.
4721         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4722         * tests/test-_Noreturn.c: Remove.
4723         * tests/test-stdnoreturn.c: Merge from the old
4724         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4725
4726 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4727
4728         _Noreturn, stdnoreturn, and related modules.
4729
4730         * top/maint.mk: Adjust to new noreturn support.
4731         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4732         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4733
4734         xalloc: use stdnoreturn.h
4735         * lib/xalloc.h: Include <stdnoreturn.h>.
4736         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4737         * modules/xalloc (Depends-on): Add stdnoreturn.
4738
4739         xstrtol: use stdnoreturn.h
4740         * lib/xstrtol.h: Include <stdnoreturn.h>.
4741         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4742         * modules/xstrtol (Depends-on): Add stdnoreturn.
4743
4744         xmemdup0: use stdnoreturn.h
4745         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4746         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4747         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4748
4749         sigpipe-die: use stdnoreturn.h
4750         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4751         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4752         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4753
4754         openat: use stdnoreturn.h
4755         * lib/openat.h: Include <stdnoreturn.h>.
4756         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4757         * modules/openat (Depends-on): Add stdnoreturn.
4758
4759         * lib/openat-die.c (openat_save_fail): Modernize comment.
4760
4761         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4762
4763         * lib/glthread/thread.h: Modernize comment.
4764
4765         obstack: use _Noreturn
4766         * lib/obstack.c (__attribute__): Remove macro.
4767         (print_and_abort): Use _Noreturn.
4768
4769         c-stack: use _Noreturn
4770         * lib/c-stack.c (die, overflow_handler, segv_handler):
4771         Use _Noreturn rather than __attribute__((noreturn)).
4772
4773         argmatch-tests, exclude_tests: use _Noreturn
4774         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4775         Remove.
4776         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4777
4778         stdlib: use _Noreturn
4779         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4780         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4781         * modules/stdlib (Depends-on): Add _Noreturn.
4782         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4783
4784         stdnoreturn-tests: new module
4785         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4786
4787         stdnoreturn: new module
4788         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4789         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4790
4791         _Noreturn-tests: new module
4792         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4793
4794         _Noreturn: new module
4795         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4796         New section, mentioning it.
4797         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4798
4799         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4800
4801 2011-07-11  Eric Blake  <eblake@redhat.com>
4802
4803         ffs: new module
4804         * modules/ffs: New file.
4805         * m4/ffs.m4: Likewise.
4806         * lib/ffs.c: Likewise.
4807         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4808         * modules/strings (Makefile.am): Substitute witness.
4809         (Depends-on): Add c++defs.
4810         * lib/strings.in.h (ffs): Declare.
4811         * modules/ffs-tests: New test file.
4812         * tests/test-ffs.c: Test new module.
4813         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4814         * doc/posix-functions/ffs.texi (ffs): Likewise.
4815
4816         regex: avoid compiler warning
4817         * lib/regex.c (includes): Include <strings.h>, for use of
4818         strcasecmp in regcomp.c.
4819         Reported by Joachim Schmitz.
4820
4821 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4822
4823         stdint: respect system's intmax_t if INTMAX_MAX
4824         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4825         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4826         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4827         long but int64_t is long long, and where we will clash with the
4828         system intmax_t if we override it.  See
4829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4830         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4831         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4832         similarly for UINTMAX_C.
4833
4834 2011-07-08  Bruno Haible  <bruno@clisp.org>
4835
4836         pthread_sigmask tests: Avoid a compiler warning.
4837         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4838         non-zero.
4839
4840         sigprocmask tests: A better way to avoid a compiler warning.
4841         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4842         (main): Complain if system() returns non-zero.
4843         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4844
4845 2011-07-08  Bruno Haible  <bruno@clisp.org>
4846
4847         pthread_sigmask: Work around IRIX bug.
4848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4849         bug.
4850         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4851         there may be unblocked pending signals.
4852         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4853
4854 2011-07-08  Bruno Haible  <bruno@clisp.org>
4855
4856         pthread_sigmask: Work around Cygwin bug.
4857         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4858         bug.
4859         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4860         the system's pthread_sigmask function.
4861         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4862
4863 2011-07-08  Bruno Haible  <bruno@clisp.org>
4864
4865         pthread_sigmask: Work around bug in single-threaded implementation.
4866         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4867         FreeBSD, HP-UX, Solaris bug.
4868         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4869         * lib/pthread_sigmask.c: Include <stddef.h>.
4870         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4871         the system's pthread_sigmask function.
4872         * modules/pthread_sigmask (configure.ac): Invoke
4873         gl_PREREQ_PTHREAD_SIGMASK.
4874         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4875         HP-UX, Solaris.
4876
4877 2011-07-08  Eric Blake  <eblake@redhat.com>
4878
4879         test-sigprocmask: avoid compiler warning
4880         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4881         * tests/test-sigprocmask.c (main): Use it to silence warning.
4882         Reported by Jim Meyering.
4883
4884         test-snprintf: avoid compiler warning
4885         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4886         * tests/test-vsnprintf.c (main): Likewise.
4887         Reported by Jim Meyering.
4888
4889 2011-07-08  Bruno Haible  <bruno@clisp.org>
4890
4891         Tests for module 'pthread_sigmask'.
4892         * modules/pthread_sigmask-tests: New file.
4893         * tests/test-pthread_sigmask1.c: New file, based on
4894         tests/test-sigprocmask.c.
4895         * tests/test-pthread_sigmask2.c: New file.
4896
4897 2011-07-08  Jim Meyering  <meyering@redhat.com>
4898
4899         test-getopt.h: avoid warning about an unused variable
4900         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4901
4902 2011-07-07  Jim Meyering  <meyering@redhat.com>
4903
4904         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4905         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4906         now that it no longer contains leading TABs.
4907         Remove unused "url=FIXME" statement.
4908
4909 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4910
4911         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4912         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4913         When gl_THREADLIB is not in use, assume that the POSIX sematics
4914         are desired.  This is better for Emacs, which uses POSIX semantics
4915         on GNUish and/or POSIXish platforms, and does not use threads at
4916         all otherwise.
4917
4918         pthread_sigmask: fix typo when testing for libraries
4919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4920         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4921
4922 2011-07-08  Eric Blake  <eblake@redhat.com>
4923
4924         fts: introduce FTS_NOATIME
4925         * lib/fts_.h (FTS_NOATIME): New bit flag.
4926         (FTS_OPTIONMASK): Adjust.
4927         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4928         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4929
4930 2011-07-08  Bruno Haible  <bruno@clisp.org>
4931
4932         Tests for module 'thread'.
4933         * modules/thread-tests: New file.
4934         * tests/test-thread_self.c: New file.
4935         * tests/test-thread_create.cc: New file.
4936
4937 2011-07-08  Bruno Haible  <bruno@clisp.org>
4938
4939         thread: Avoid gcc warnings when using gl_thread_self().
4940         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4941         'void *'.
4942         (gl_thread_self_pointer): Update.
4943
4944 2011-07-07  Bruno Haible  <bruno@clisp.org>
4945
4946         signal-c++-tests: Check declaration of pthread_sigmask.
4947         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4948         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4949         $(LIB_PTHREAD_SIGMASK).
4950
4951 2011-07-07  Bruno Haible  <bruno@clisp.org>
4952
4953         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4954         * lib/signal.in.h (pthread_sigmask): Override if
4955         REPLACE_PTHREAD_SIGMASK is 1.
4956         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4957         REPLACE_PTHREAD_SIGMASK.
4958         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4959         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4960         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4961         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4962         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4963
4964 2011-07-07  Bruno Haible  <bruno@clisp.org>
4965
4966         pthread_sigmask: Ensure declaration in <signal.h>.
4967         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4968         include <pthread.h>.
4969         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4970         problem.
4971
4972 2011-07-07  Bruno Haible  <bruno@clisp.org>
4973
4974         pthread_sigmask: Document the module.
4975         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4976
4977 2011-07-07  Bruno Haible  <bruno@clisp.org>
4978
4979         pthread_sigmask: Follow gnulib conventions.
4980         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4981         gl_PTHREAD_SIGMASK.
4982         * modules/pthread_sigmask (configure.ac): Update.
4983
4984 2011-07-07  Bruno Haible  <bruno@clisp.org>
4985
4986         pthread_sigmask: Make declaration C++ safe.
4987         * lib/signal.in.h: In two special conditions, just do an #include_next.
4988         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4989         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4990         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4991         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4992         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4993         not REPLACE_PTHREAD_MASK.
4994         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4995         not REPLACE_PTHREAD_MASK.
4996         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4997
4998 2011-07-07  Bruno Haible  <bruno@clisp.org>
4999
5000         pthread_sigmask: Fix return value.
5001         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5002         * lib/pthread_sigmask.c: New file.
5003         * modules/pthread_sigmask (Files): Add it.
5004         (configure.ac): Invoke AC_LIBOBJ.
5005
5006 2011-07-07  Eric Blake  <eblake@redhat.com>
5007
5008         getopt: more portable argv creation
5009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5010         const, use char arrays rather than strings.
5011         Suggested by Paul Eggert.
5012
5013 2011-07-07  Bruno Haible  <bruno@clisp.org>
5014
5015         Tests for module 'sigprocmask'.
5016         * modules/sigprocmask-tests: New file.
5017         * tests/test-sigprocmask.c: New file.
5018
5019 2011-07-07  Bruno Haible  <bruno@clisp.org>
5020
5021         float tests: Tweak.
5022         * tests/test-float.c (main): Tweak skip message.
5023
5024 2011-07-07  Eric Blake  <eblake@redhat.com>
5025
5026         getopt: avoid compiler warning during configure
5027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5028         assigning string literals to non-const pointer.
5029
5030         getopt-gnu: avoid crash in glibc getopt
5031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5032         * tests/test-getopt.h (test_getopt): Enhance test.
5033         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5034         * doc/posix-functions/getopt.texi (getopt): Document it.
5035         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5036         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5037         Likewise.
5038
5039 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5040
5041         getopt: handle W; without long options in getopt [BZ #12922]
5042         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5043         but no long options are defined, just return 'W'.
5044
5045 2011-07-07  Bruno Haible  <bruno@clisp.org>
5046
5047         Avoid literal tabs.
5048         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5049         variable containing a tab instead of a literal tab.
5050         Reported by Jim Meyering.
5051
5052 2011-07-07  Bruno Haible  <bruno@clisp.org>
5053
5054         Comments.
5055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5056
5057 2011-07-06  Bruno Haible  <bruno@clisp.org>
5058
5059         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5060         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5061         <winsock2.h>.
5062         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5063         lib/sys_socket.in.h.
5064         (close, gethostname): Hide declarations from <winsock2.h>.
5065         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5066         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5067         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5068         (select): Don't override if gnulib's <sys/select.h> was already
5069         included.
5070         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5071         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5072         setsockopt, shutdown, select): Tweak indentation.
5073
5074 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5077         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5078         in an application that does not use the sys_select module.
5079
5080 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5081
5082         poll: do not return 0 on timeout=-1
5083         * lib/poll.c: Loop with yield if no events occured
5084
5085 2011-07-06  Eric Blake  <eblake@redhat.com>
5086
5087         pthread_sigmask: always replace when not using pthread
5088         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5089         replacement when using some threading other than pthread.  Fix
5090         logic bug.
5091
5092 2011-07-06  Bruno Haible  <bruno@clisp.org>
5093
5094         Comments.
5095         * m4/printf.m4: Update comments about mingw.
5096
5097 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         sys_select: define sigset_t more portably
5100         * lib/sys_select.in.h: Always include <sys/types.h>, since
5101         we now need sigset_t and mingw defines it there.
5102         Include <signal.h> before split inclusion guard, to avoid
5103         mishaps on Solaris, whose <signal.h> eventually includes us.
5104         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5105         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5106         which come from ...
5107         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5108         gl_CHECK_TYPE_SIGSET_T.
5109         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5110         does the real work.
5111         * modules/sys_select (Depends-on): Add 'signal'.
5112
5113         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5114         Suggested by Bruno Haible.
5115
5116         pselect: Use pthread_sigmask, not sigprocmask.
5117         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5118         multithreaded apps better than sigprocmask does.
5119         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5120         sigprocmask directly.
5121
5122 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5123
5124         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5125         Don't #undef,  since we don't need any underlying pselect.
5126         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5127         (Depends-on): Add select.
5128         (Link): Add $(LIBSOCKET).
5129         These changes suggested by Bruno Haible.
5130
5131         pselect: document better
5132         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5133         * doc/posix-functions/pselect.texi (pselect): Document new module.
5134
5135         pthread_sigmask: new module
5136         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5137         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5138         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5139         This is done only as a macro; I don't know how well that'll
5140         work for C++.  Move <sys/types.h> include before the include_next,
5141         to avoid mishap on Solaris.
5142         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5143         * modules/signal (Makefile.am): Substitute the check's results.
5144         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5145
5146         test-pselect: new module
5147         * modules/pselect-tests, tests/test-pselect.c: New files.
5148         * tests/test-select.c, tests/test-sys_select-c++.cc:
5149         If TEST_PSELECT is defined, test pselect instead of testing select.
5150
5151         * tests/test-sys_select.c (sigset_t): Test for it, too.
5152         Suggested by Bruno Haible.
5153
5154 2011-07-05  Eric Blake  <eblake@redhat.com>
5155
5156         snprintf: guarantee %1$d, for libintl
5157         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5158         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5159         * doc/posix-functions/snprintf.texi (snprintf): Update.
5160         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5161         * tests/test-snprintf.c (main): Enhance test.
5162         * tests/test-vsnprintf.c (main): Likewise.
5163
5164 2011-07-05  Jim Meyering  <meyering@redhat.com>
5165
5166         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5167         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5168         per Bruno's request, to accommodate this idiom (no space after "#")
5169         even when the function is inside an #if block:
5170         char *
5171         gets (char *s)
5172         #undef gets
5173         {
5174           ...
5175         }
5176
5177 2011-07-04  Jim Meyering  <meyering@redhat.com>
5178
5179         maint: indent with spaces, not TABs, and add a rule to check this
5180         * tests/test-userspec.c: Indent with spaces, not TABs.
5181         * tests/test-argp.c: Likewise.
5182         * tests/test-c-stack2.sh: Likewise.
5183         * tests/test-parse-duration.sh: Likewise
5184         * m4/strtod.m4: Likewise.
5185         * m4/alloca.m4: Likewise.
5186         * m4/pselect.m4: Likewise.
5187         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5188
5189 2011-07-03  Jim Meyering  <meyering@redhat.com>
5190
5191         maint.mk: correct omissions in prohibit_argmatch_without_use check
5192         This rule would mistakenly report that argmatch.h is included without
5193         use even when both the argmatch and invalid_arg macro were used.
5194         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5195         of argmatch and invalid_arg.
5196
5197 2011-07-03  Bruno Haible  <bruno@clisp.org>
5198
5199         Comments about EINTR.
5200         * lib/safe-read.h: Explain the purpose of this module.
5201         * lib/safe-write.h: Likewise.
5202         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5203         module.
5204         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5205         module.
5206         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5207
5208 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5209
5210         xnanosleep: Rewrite to use new dtotimespec module.
5211         It has the conversion code that used to be in xnanosleep.
5212         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5213         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5214         (TIME_T_MAX): Remove.
5215         (xnanosleep): Rewrite in terms of dtotimespec.
5216         * modules/xnanosleep (Depends-on): Add dtotimespec.
5217         Remove intprops, stdbool.
5218
5219         timespec-add, timespec-sub: new modules
5220         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5221         * lib/timespec-add.c, lib/timespec-sub.c:
5222         * modules/timespec-add, modules/timespec-sub: New files.
5223
5224         dtotimespec: new module
5225         * lib/timespec.h (dtotimespec): New decl.
5226         * lib/dtotimespec.c, modules/dtotimespec: New files.
5227
5228         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5229
5230         pselect: new module
5231         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5232         (pselect): New decls.
5233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5234         since the standard pselect decl uses 'restrict'.
5235         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5236         HAVE_PSELECT, REPLACE_PSELECT.
5237         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5238         HAVE_PSELECT, REPLACE_PSELECT.
5239         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5240
5241         sys_select: don't depend on sys_socket
5242         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5244         This fix works on GNU and GNU-like platforms, but has not been tested
5245         on native Windows.
5246         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5248         gl_HEADER_SYS_SOCKET.
5249         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5250         gl_PREREQ_SYS_H_WINSOCK2.
5251
5252 2011-06-29  Eric Blake  <eblake@redhat.com>
5253
5254         pipe2: fix C89 compile problem
5255         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5256         Reported by Bruno Haible.
5257
5258         pipe, pipe2: don't corrupt fd on error
5259         * lib/pipe.c (pipe): Leave fd unchanged on error.
5260         * lib/pipe2.c (pipe2): Likewise.
5261         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5262         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5263
5264 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5265
5266         mmap-anon: do not use regular expressions inadvertently
5267         * m4/mmap-anon.m4: Remove trailing period from strings sought
5268         in the output.
5269
5270 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5271
5272         nanosleep: fix integer overflow problem
5273         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5274         arithmetic wraps around on overflow.
5275
5276         nanosleep: simplify carrying
5277         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5278         first call to the underyling nanosleep, not for the last one.
5279         This doesn't fix any bugs, but it simplifies the computation of
5280         the remaining delay.  Found while auditing integer overflow issues.
5281
5282         dup2: remove test for existence of fcntl
5283         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5284         "#if HAVE_FCNTL", in the configure-time test program.
5285         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5286         and therefore speeds up "configure" a bit.  Found while
5287         adding the dup2 module to Emacs.
5288
5289 2011-06-24  Eric Blake  <eblake@redhat.com>
5290
5291         maint.mk: enhance useless header checks
5292         * top/maint.mk (_sc_header_without_use): Check both include
5293         styles.
5294         (sc_prohibit_assert_without_use)
5295         (sc_prohibit_close_stream_without_use)
5296         (sc_prohibit_getopt_without_use)
5297         (sc_prohibit_quotearg_without_use)
5298         (sc_prohibit_quote_without_use)
5299         (sc_prohibit_long_options_without_use)
5300         (sc_prohibit_inttostr_without_use)
5301         (sc_prohibit_ignore_value_without_use)
5302         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5303         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5304         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5305         (sc_prohibit_hash_pjw_without_use)
5306         (sc_prohibit_safe_read_without_use)
5307         (sc_prohibit_argmatch_without_use)
5308         (sc_prohibit_canonicalize_without_use)
5309         (sc_prohibit_root_dev_ino_without_use)
5310         (sc_prohibit_openat_without_use)
5311         (sc_prohibit_c_ctype_without_use)
5312         (sc_prohibit_signal_without_use)
5313         (sc_prohibit_stdio--_without_use)
5314         (sc_prohibit_stdio-safer_without_use)
5315         (sc_prohibit_strings_without_use)
5316         (sc_prohibit_intprops_without_use)
5317         (sc_prohibit_stddef_without_use)
5318         (sc_prohibit_xfreopen_without_use): Update clients.
5319
5320 2011-06-24  Jim Meyering  <meyering@redhat.com>
5321
5322         syntax-check: keep one maint.mk rule in sync with its header
5323         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5324         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5325         I prefer to avoid temporary files here, so use <(...), but that
5326         is not supported by /bin/sh, so...
5327         (SHELL): Define to /bin/bash.
5328
5329 2011-06-24  Eric Blake  <eblake@redhat.com>
5330
5331         maint.mk: update sc_prohibit_intprops_without_use
5332         * top/maint.mk (_intprops_names): Match recent changes.
5333
5334 2011-06-24  Bruno Haible  <bruno@clisp.org>
5335
5336         strerror-override: No-op tweak.
5337         * lib/strerror-override.h (strerror_override): Reorder conditions,
5338         for consistency with lib/strerror-override.c.
5339
5340 2011-06-23  Eric Blake  <eblake@redhat.com>
5341
5342         maint.mk: test further PATH_MAX issues
5343         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5344         (sc_prohibit_path_max_allocation): ...and also test alloca.
5345         Suggested by Jim Meyering.
5346
5347 2011-06-22  Eric Blake  <eblake@redhat.com>
5348
5349         maint.mk: add syntax-check to avoid char[PATH_MAX]
5350         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5351
5352         stat: be robust to PATH_MAX definition
5353         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5354         * modules/stat (Depends-on): Add verify.
5355
5356         link: work around IRIX bug
5357         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5358         * lib/link.c (rpl_link): Work around it.
5359         * tests/test-link.h (test_link): Enhance test.
5360         * doc/posix-functions/link.texi (link): Document the bug.
5361
5362         getopt: silence clang warning
5363         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5364         dereference.
5365         Reported by Gustavo Martin Domato.
5366
5367 2011-06-22  Jim Meyering  <meyering@redhat.com>
5368
5369         bootstrap: do not insert a blank line into each .gitignore file
5370         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5371
5372 2011-06-21  Eric Blake  <eblake@redhat.com>
5373
5374         perror: test for output mismatch
5375         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5376         perror on IRIX.
5377
5378         strerror_r: fix OpenBSD behavior on out-of-range
5379         * lib/strerror_r.c (strerror_r): Always use maximal string.
5380         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5381
5382         strerror_r: fix OpenBSD behavior on 0
5383         * lib/strerror-override.c (strerror_override): Also override 0
5384         when needed.
5385         * lib/strerror-override.h (strerror_override): Likewise.
5386         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5387         earlier.
5388         * lib/strerror_r.c (strerror_r): Likewise.
5389         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5390         behavior...
5391         (gl_FUNC_STRERROR_0): ...into new macro.
5392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5393         is overridden.
5394         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5395         * modules/strerror-override (Files): Add strerror.m4.
5396         (configure.ac): Also provide override for 0 when needed.
5397         * doc/posix-functions/strerror.texi (strerror): Document this.
5398         * doc/posix-functions/perror.texi (perror): Likewise.
5399
5400         perror: adjust array size
5401         * modules/perror (Depends-on): Add strerror-override.
5402         * lib/perror.c (perror): Use it to avoid magic number.
5403
5404         strerror-override: reduce size
5405         * lib/strerror-override.c (strerror_override): Use fewer lines.
5406
5407 2011-06-20  Bruno Haible  <bruno@clisp.org>
5408
5409         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5410         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5411
5412 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5413
5414         alloca: port to compilers that can optimize like GCC 4.6.0
5415         * lib/alloca.c (find_stack_direction): New signature, taken from
5416         Autoconf git.  This works with GCC 4.6.0.  This code should never
5417         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5418         be used with other compilers that optimize as well as GCC 4.6.0 does.
5419         (alloca): Adjust to new signature.
5420         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5421         New macro, which patches Autoconf in a similar way.
5422
5423         c-stack: stop worrying about stack direction
5424         * lib/c-stack.c (find_stack_direction): Remove.
5425         (segv_handler): Don't worry about stack direction growth, as it's
5426         too much of a pain to configure this correctly, given how compilers
5427         are optimizing-away our stack-growth detection code.  Instead, assume
5428         that any access to just before or just after the stack is OK.
5429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5430         Don't require AC_FUNC_ALLOCA; no longer needed.
5431
5432 2011-06-20  Eric Blake  <eblake@redhat.com>
5433
5434         test-stat: don't allocate PATH_MAX bytes
5435         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5436         PATH_MAX-sized buffer.
5437         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5438         * modules/stat-tests (Depends-on): Likewise.
5439         * tests/test-fstatat.c (includes): Drop pathmax.h.
5440         * tests/test-stat.c (includes): Likewise.
5441         Reported by Bruno Haible.
5442
5443 2011-06-20  Bruno Haible  <bruno@clisp.org>
5444
5445         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5446         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5447         * lib/float.c: New file.
5448         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5449         REPLACE_FLOAT_LDBL.
5450         * modules/float (Files): Add lib/float.c.
5451         (configure.ac): Invoke AC_LIBOBJ.
5452         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5453
5454 2011-06-20  Bruno Haible  <bruno@clisp.org>
5455
5456         Tests for module 'float'.
5457         * modules/float-tests: New file.
5458         * tests/test-float.c: New file.
5459
5460 2011-06-19  Bruno Haible  <bruno@clisp.org>
5461
5462         isinf: Coding style.
5463         * lib/isinf.c: Use GNU coding style.
5464
5465 2011-06-19  Bruno Haible  <bruno@clisp.org>
5466
5467         linkat test: Avoid test failure on AIX 7.1.
5468         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5469         * tests/test-link.h (test_link): Likewise.
5470
5471 2011-06-19  Bruno Haible  <bruno@clisp.org>
5472
5473         pread test: Avoid test failure on OpenBSD 4.9.
5474         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5475
5476 2011-06-19  Bruno Haible  <bruno@clisp.org>
5477
5478         sprintf-posix: Fix test failure on AIX 7.1.
5479         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5480         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5481         on AIX.
5482         * doc/posix-functions/fprintf.texi: Likewise.
5483         * doc/posix-functions/printf.texi: Likewise.
5484         * doc/posix-functions/snprintf.texi: Likewise.
5485         * doc/posix-functions/sprintf.texi: Likewise.
5486         * doc/posix-functions/vdprintf.texi: Likewise.
5487         * doc/posix-functions/vfprintf.texi: Likewise.
5488         * doc/posix-functions/vprintf.texi: Likewise.
5489         * doc/posix-functions/vsnprintf.texi: Likewise.
5490         * doc/posix-functions/vsprintf.texi: Likewise.
5491
5492 2011-06-19  Bruno Haible  <bruno@clisp.org>
5493
5494         roundl-ieee: Fix test failure on AIX 7.1.
5495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5496         * doc/posix-functions/roundl.texi: Mention problem with negative
5497         arguments.
5498
5499 2011-06-19  Bruno Haible  <bruno@clisp.org>
5500
5501         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5502         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5503         * doc/posix-functions/round.texi: Mention problem with negative
5504         arguments.
5505         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5506
5507 2011-06-19  Bruno Haible  <bruno@clisp.org>
5508
5509         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5511         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5512         * doc/posix-functions/roundf.texi: Mention problem with negative
5513         arguments.
5514         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5515
5516 2011-06-19  Bruno Haible  <bruno@clisp.org>
5517
5518         ceilf-ieee: Work around bug on MacOS X 10.5.
5519         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5520
5521         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5522         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5523         IEEE compliant, avoid compiler optimizations.
5524         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5525         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5526         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5527         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5528         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5529         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5530         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5532         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5533         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5534
5535 2011-06-19  Bruno Haible  <bruno@clisp.org>
5536
5537         ceilf-ieee: Work around bug on AIX 7.1.
5538         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5539         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5540
5541 2011-06-19  Bruno Haible  <bruno@clisp.org>
5542
5543         ceil-ieee: Work around bug on AIX 7.1.
5544         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5545         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5546
5547 2011-06-18  Bruno Haible  <bruno@clisp.org>
5548
5549         fsync test: Avoid test failure on MacOS X and AIX.
5550         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5551         EINVAL.
5552
5553 2011-06-18  Bruno Haible  <bruno@clisp.org>
5554
5555         openat, fdopendir tests: Fix link errors.
5556         * modules/openat-tests (Depends-on): Add progname.
5557         * modules/fdopendir-tests (Depends-on): Likewise.
5558         * tests/test-fchownat.c: Include progname.h.
5559         (main): Call set_program_name.
5560         * tests/test-fstatat.c: Include progname.h.
5561         (main): Call set_program_name.
5562         * tests/test-mkdirat.c: Include progname.h.
5563         (main): Call set_program_name.
5564         * tests/test-openat.c: Include progname.h.
5565         (main): Call set_program_name.
5566         * tests/test-unlinkat.c: Include progname.h.
5567         (main): Call set_program_name.
5568         * tests/test-fdopendir.c: Include progname.h.
5569         (main): Call set_program_name.
5570
5571 2011-06-18  Bruno Haible  <bruno@clisp.org>
5572
5573         Doc update.
5574         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5575         HP-UX.
5576         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5577
5578 2011-06-18  Bruno Haible  <bruno@clisp.org>
5579
5580         getcwd tests: Avoid compilation error on HP-UX 11.31.
5581         * modules/getcwd-tests (Depends-on): Add pathmax.
5582         * tests/test-getcwd.c: Include pathmax.h.
5583
5584 2011-06-18  Bruno Haible  <bruno@clisp.org>
5585
5586         isfinite, isinf: Fix link error on AIX 6 and 7.
5587         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5588         needed, also test the macro with a 'float' argument.
5589         * m4/isinf.m4 (gl_ISINF): Likewise.
5590
5591 2011-06-18  Bruno Haible  <bruno@clisp.org>
5592
5593         getloadavg: Don't clobber LIBS. Regression from previous commit.
5594         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5595         AC_CHECK_LIB from here...
5596         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5597         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5598         gl_func_getloadavg_done.
5599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5600
5601 2011-06-18  Bruno Haible  <bruno@clisp.org>
5602
5603         clean-temp: Improve documentation.
5604         * lib/clean-temp.h: Explain better how to use this module.
5605         Reported by John Darrington <john@darrington.wattle.id.au>.
5606
5607 2011-06-17  Bruno Haible  <bruno@clisp.org>
5608
5609         pread, pwrite: Avoid cc warning on AIX.
5610         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5611         (pwrite): Likewise.
5612
5613 2011-06-17  Bruno Haible  <bruno@clisp.org>
5614
5615         spawn-pipe tests: Fix link error.
5616         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5618
5619 2011-06-17  Bruno Haible  <bruno@clisp.org>
5620
5621         Tests: Remove unnecessary dependency.
5622         * modules/canonicalize-tests (Depends-on): Remove progname.
5623         * modules/chown-tests (Depends-on): Likewise.
5624         * modules/dirname-tests (Depends-on): Likewise.
5625         * modules/fdopendir-tests (Depends-on): Likewise.
5626         * modules/fdutimensat-tests (Depends-on): Likewise.
5627         * modules/hash-tests (Depends-on): Likewise.
5628         * modules/lchown-tests (Depends-on): Likewise.
5629         * modules/linkat-tests (Depends-on): Likewise.
5630         * modules/renameat-tests (Depends-on): Likewise.
5631         * modules/spawn-pipe-tests (Depends-on): Likewise.
5632         * modules/utimensat-tests (Depends-on): Likewise.
5633
5634 2011-06-17  Bruno Haible  <bruno@clisp.org>
5635
5636         spawn-pipe tests: Fix link error.
5637         * tests/test-spawn-pipe-child.c: Undefine fflush.
5638
5639 2011-06-17  Bruno Haible  <bruno@clisp.org>
5640
5641         Fix tests link errors.
5642         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5643         * modules/chown-tests (Makefile.am): Don't link test-chown with
5644         LIBINTL.
5645         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5646         LIBINTL.
5647         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5648         LIBINTL.
5649         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5650         LIBINTL.
5651
5652 2011-06-16  Bruno Haible  <bruno@clisp.org>
5653
5654         crypto/gc-sha1: Fix recent regression.
5655         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5656         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5657
5658         crypto/gc-md5: Fix recent regression.
5659         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5660
5661         crypto/gc-md4: Fix recent regression.
5662         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5663         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5664
5665         crypto/gc-arctwo: Fix recent regression.
5666         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5667         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5668
5669         crypto/gc-rijndael: Fix recent regression.
5670         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5671         (configure.ac): Invoke AC_LIBOBJ here.
5672         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5674
5675         crypto/gc-hmac-sha1: Fix recent regression.
5676         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5677         (configure.ac): Invoke AC_LIBOBJ here.
5678         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5679         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5680
5681         crypto/gc-hmac-md5: Fix recent regression.
5682         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5683         (configure.ac): Invoke AC_LIBOBJ here.
5684         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5686
5687         crypto/gc-des: Fix recent regression.
5688         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5689         (configure.ac): Invoke AC_LIBOBJ here.
5690         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5692
5693         crypto/gc-arcfour: Fix recent regression.
5694         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5695         (configure.ac): Invoke AC_LIBOBJ here.
5696         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5698
5699 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5700
5701         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5702         After the 2011-05-21 change, this macro requires
5703         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5704         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5705
5706 2011-06-16  Bruno Haible  <bruno@clisp.org>
5707
5708         fprintftime: Move AC_LIBOBJ invocations to module description.
5709         * m4/fprintftime.m4: Remove file.
5710         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5711         (configure.ac): Remove gl_FPRINTFTIME call.
5712         (Makefile.am): Augment lib_SOURCES.
5713         Reported by Jim Meyering.
5714
5715 2011-06-16  Bruno Haible  <bruno@clisp.org>
5716
5717         tmpfile-safer: Finish 2011-05-23 commit.
5718         * m4/stdio-safer.m4: Really remove file.
5719         Reported by Jim Meyering.
5720
5721 2011-06-16  Bruno Haible  <bruno@clisp.org>
5722
5723         syntax-check: Fix typo.
5724         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5725         printf-posix.m4.
5726         Reported by Jim Meyering.
5727
5728 2011-06-13  Jim Meyering  <meyering@redhat.com>
5729
5730         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5731         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5732
5733 2011-05-23  Bruno Haible  <bruno@clisp.org>
5734
5735         yesno: Move AC_LIBOBJ invocations to module description.
5736         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5737         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5738
5739 2011-05-23  Bruno Haible  <bruno@clisp.org>
5740
5741         xstrtol: Move AC_LIBOBJ invocations to module description.
5742         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5743         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5744
5745 2011-05-23  Bruno Haible  <bruno@clisp.org>
5746
5747         xstrtold: Move AC_LIBOBJ invocations to module description.
5748         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5749         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5750
5751 2011-05-23  Bruno Haible  <bruno@clisp.org>
5752
5753         xstrtod: Move AC_LIBOBJ invocations to module description.
5754         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5755         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5756
5757 2011-05-23  Bruno Haible  <bruno@clisp.org>
5758
5759         xnanosleep: Move AC_LIBOBJ invocations to module description.
5760         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5761         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5762
5763 2011-05-23  Bruno Haible  <bruno@clisp.org>
5764
5765         xgetcwd: Move AC_LIBOBJ invocations to module description.
5766         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5767         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5768
5769 2011-05-23  Bruno Haible  <bruno@clisp.org>
5770
5771         xalloc: Move AC_LIBOBJ invocations to module description.
5772         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5773         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5774
5775 2011-05-23  Bruno Haible  <bruno@clisp.org>
5776
5777         write-any-file: Move AC_LIBOBJ invocations to module description.
5778         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5779         invocation.
5780         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5781
5782 2011-05-23  Bruno Haible  <bruno@clisp.org>
5783
5784         utimens: Move AC_LIBOBJ invocations to module description.
5785         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5786         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5787
5788 2011-05-23  Bruno Haible  <bruno@clisp.org>
5789
5790         utimecmp: Move AC_LIBOBJ invocations to module description.
5791         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5792         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5793
5794 2011-05-23  Bruno Haible  <bruno@clisp.org>
5795
5796         userspec: Move AC_LIBOBJ invocations to module description.
5797         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5798         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5799
5800 2011-05-23  Bruno Haible  <bruno@clisp.org>
5801
5802         unlinkdir: Move AC_LIBOBJ invocations to module description.
5803         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5804         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5805
5806 2011-05-23  Bruno Haible  <bruno@clisp.org>
5807
5808         unistd-safer: Move AC_LIBOBJ invocations to module description.
5809         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5810         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5811
5812 2011-05-23  Bruno Haible  <bruno@clisp.org>
5813
5814         tempname: Move AC_LIBOBJ invocations to module description.
5815         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5816         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5817
5818 2011-05-23  Bruno Haible  <bruno@clisp.org>
5819
5820         strftime: Move AC_LIBOBJ invocations to module description.
5821         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5822         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5823
5824 2011-05-23  Bruno Haible  <bruno@clisp.org>
5825
5826         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5827         * m4/stdlib-safer.m4: Remove file.
5828         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5829         (configure.ac): Remove gl_STDLIB_SAFER call.
5830         (Makefile.am): Augment lib_SOURCES.
5831
5832 2011-05-23  Bruno Haible  <bruno@clisp.org>
5833
5834         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5835         * m4/stdio-safer.m4: Remove file.
5836         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5837         (configure.ac): Remove gl_TMPFILE_SAFER call.
5838         (Makefile.am): Augment lib_SOURCES.
5839
5840 2011-05-23  Bruno Haible  <bruno@clisp.org>
5841
5842         popen-safer: Move AC_LIBOBJ invocations to module description.
5843         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5844         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5845         (configure.ac): Remove gl_POPEN_SAFER call.
5846         (Makefile.am): Augment lib_SOURCES.
5847
5848 2011-05-23  Bruno Haible  <bruno@clisp.org>
5849
5850         freopen-safer: Move AC_LIBOBJ invocations to module description.
5851         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5852         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5853         (configure.ac): Remove gl_FREOPEN_SAFER call.
5854         (Makefile.am): Augment lib_SOURCES.
5855
5856 2011-05-23  Bruno Haible  <bruno@clisp.org>
5857
5858         fopen-safer: Move AC_LIBOBJ invocations to module description.
5859         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5860         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5861         (configure.ac): Remove gl_FOPEN_SAFER call.
5862         (Makefile.am): Augment lib_SOURCES.
5863
5864 2011-05-23  Bruno Haible  <bruno@clisp.org>
5865
5866         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5867         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5868         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5869
5870 2011-05-23  Bruno Haible  <bruno@clisp.org>
5871
5872         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5873         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5874         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5875
5876 2011-05-23  Bruno Haible  <bruno@clisp.org>
5877
5878         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5879         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5880         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5881
5882 2011-05-23  Bruno Haible  <bruno@clisp.org>
5883
5884         settime: Move AC_LIBOBJ invocations to module description.
5885         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5886         * modules/settime (Makefile.am): Augment lib_SOURCES.
5887
5888 2011-05-23  Bruno Haible  <bruno@clisp.org>
5889
5890         savedir: Move AC_LIBOBJ invocations to module description.
5891         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5892         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5893
5894 2011-05-23  Bruno Haible  <bruno@clisp.org>
5895
5896         save-cwd: Move AC_LIBOBJ invocations to module description.
5897         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5898         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5899
5900 2011-05-23  Bruno Haible  <bruno@clisp.org>
5901
5902         same: Move AC_LIBOBJ invocations to module description.
5903         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5904         * modules/same (Makefile.am): Augment lib_SOURCES.
5905
5906 2011-05-23  Bruno Haible  <bruno@clisp.org>
5907
5908         safe-write: Move AC_LIBOBJ invocations to module description.
5909         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5910         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5911         instead of gl_SAFE_WRITE.
5912         (Makefile.am): Augment lib_SOURCES.
5913
5914 2011-05-23  Bruno Haible  <bruno@clisp.org>
5915
5916         safe-read: Move AC_LIBOBJ invocations to module description.
5917         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5918         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5919         of gl_SAFE_READ.
5920         (Makefile.am): Augment lib_SOURCES.
5921
5922 2011-05-23  Bruno Haible  <bruno@clisp.org>
5923
5924         safe-alloc: Move AC_LIBOBJ invocations to module description.
5925         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5926         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5927
5928 2011-05-23  Bruno Haible  <bruno@clisp.org>
5929
5930         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5931         * m4/rijndael.m4: Remove file.
5932         * modules/crypto/rijndael (Files): Remove it.
5933         (configure.ac): Remove gl_RIJNDAEL call.
5934         (Makefile.am): Augment lib_SOURCES.
5935
5936 2011-05-23  Bruno Haible  <bruno@clisp.org>
5937
5938         readtokens: Move AC_LIBOBJ invocations to module description.
5939         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5940         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5941
5942 2011-05-23  Bruno Haible  <bruno@clisp.org>
5943
5944         read-file: Move AC_LIBOBJ invocations to module description.
5945         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5946         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5947         of gl_FUNC_READ_FILE.
5948         (Makefile.am): Augment lib_SOURCES.
5949
5950 2011-05-23  Bruno Haible  <bruno@clisp.org>
5951
5952         quotearg: Move AC_LIBOBJ invocations to module description.
5953         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5954         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5955
5956 2011-05-23  Bruno Haible  <bruno@clisp.org>
5957
5958         quote: Move AC_LIBOBJ invocations to module description.
5959         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5960         * modules/quote (Makefile.am): Augment lib_SOURCES.
5961
5962 2011-05-23  Bruno Haible  <bruno@clisp.org>
5963
5964         posixver: Move AC_LIBOBJ invocations to module description.
5965         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5966         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5967
5968 2011-05-23  Bruno Haible  <bruno@clisp.org>
5969
5970         posixtm: Move AC_LIBOBJ invocations to module description.
5971         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5972         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5973
5974 2011-05-23  Bruno Haible  <bruno@clisp.org>
5975
5976         physmem: Move AC_LIBOBJ invocations to module description.
5977         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5978         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5979
5980 2011-05-23  Bruno Haible  <bruno@clisp.org>
5981
5982         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5983         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5984         invocation.
5985         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5986
5987 2011-05-23  Bruno Haible  <bruno@clisp.org>
5988
5989         mpsort: Move AC_LIBOBJ invocations to module description.
5990         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5991         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5992
5993 2011-05-23  Bruno Haible  <bruno@clisp.org>
5994
5995         modechange: Move AC_LIBOBJ invocations to module description.
5996         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5997         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5998
5999 2011-05-23  Bruno Haible  <bruno@clisp.org>
6000
6001         mkdir-p: Move AC_LIBOBJ invocations to module description.
6002         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6003         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6004
6005 2011-05-23  Bruno Haible  <bruno@clisp.org>
6006
6007         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6008         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6009         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6010
6011 2011-05-23  Bruno Haible  <bruno@clisp.org>
6012
6013         mgetgroups: Move AC_LIBOBJ invocations to module description.
6014         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6015         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6016
6017 2011-05-23  Bruno Haible  <bruno@clisp.org>
6018
6019         memxor: Move AC_LIBOBJ invocations to module description.
6020         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6021         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6022
6023 2011-05-23  Bruno Haible  <bruno@clisp.org>
6024
6025         memcoll: Move AC_LIBOBJ invocations to module description.
6026         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6027         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6028
6029 2011-05-23  Bruno Haible  <bruno@clisp.org>
6030
6031         memcasecmp: Move AC_LIBOBJ invocations to module description.
6032         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6033         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6034
6035 2011-05-23  Bruno Haible  <bruno@clisp.org>
6036
6037         crypto/md5: Move AC_LIBOBJ invocations to module description.
6038         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6039         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6040
6041 2011-05-23  Bruno Haible  <bruno@clisp.org>
6042
6043         crypto/md4: Move AC_LIBOBJ invocations to module description.
6044         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6045         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6046
6047 2011-05-23  Bruno Haible  <bruno@clisp.org>
6048
6049         crypto/md2: Move AC_LIBOBJ invocations to module description.
6050         * m4/md2.m4: Remove file.
6051         * modules/crypto/md2 (Files): Remove it.
6052         (configure.ac): Remove gl_MD2 call.
6053         (Makefile.am): Augment lib_SOURCES.
6054
6055 2011-05-23  Bruno Haible  <bruno@clisp.org>
6056
6057         long-options: Move AC_LIBOBJ invocations to module description.
6058         * m4/long-options.m4: Remove file.
6059         * modules/long-options (Files): Remove it.
6060         (configure.ac): Remove gl_LONG_OPTIONS call.
6061         (Makefile.am): Augment lib_SOURCES.
6062
6063 2011-05-23  Bruno Haible  <bruno@clisp.org>
6064
6065         i-ring: Move AC_LIBOBJ invocations to module description.
6066         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6067         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6068
6069 2011-05-23  Bruno Haible  <bruno@clisp.org>
6070
6071         idcache: Move AC_LIBOBJ invocations to module description.
6072         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6073         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6074
6075 2011-05-23  Bruno Haible  <bruno@clisp.org>
6076
6077         human: Move AC_LIBOBJ invocations to module description.
6078         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6079         * modules/human (Makefile.am): Augment lib_SOURCES.
6080
6081 2011-05-23  Bruno Haible  <bruno@clisp.org>
6082
6083         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6084         * m4/hmac-sha1.m4: Remove file.
6085         * modules/crypto/hmac-sha1 (Files): Remove it.
6086         (configure.ac): Remove gl_HMAC_SHA1 call.
6087         (Makefile.am): Augment lib_SOURCES.
6088
6089 2011-05-23  Bruno Haible  <bruno@clisp.org>
6090
6091         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6092         * m4/hmac-md5.m4: Remove file.
6093         * modules/crypto/hmac-md5 (Files): Remove it.
6094         (configure.ac): Remove gl_HMAC_MD5 call.
6095         (Makefile.am): Augment lib_SOURCES.
6096
6097 2011-05-23  Bruno Haible  <bruno@clisp.org>
6098
6099         hash: Move AC_LIBOBJ invocations to module description.
6100         * m4/hash.m4: Remove file.
6101         * modules/hash (Files): Remove it.
6102         (configure.ac): Remove gl_HASH call.
6103         (Makefile.am): Augment lib_SOURCES.
6104
6105 2011-05-23  Bruno Haible  <bruno@clisp.org>
6106
6107         hard-locale: Move AC_LIBOBJ invocations to module description.
6108         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6109         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6110
6111 2011-05-23  Bruno Haible  <bruno@clisp.org>
6112
6113         getugroups: Move AC_LIBOBJ invocations to module description.
6114         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6115         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6116
6117 2011-05-23  Bruno Haible  <bruno@clisp.org>
6118
6119         gettime: Move AC_LIBOBJ invocations to module description.
6120         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6121         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6122
6123 2011-05-23  Bruno Haible  <bruno@clisp.org>
6124
6125         getndelim2: Move AC_LIBOBJ invocations to module description.
6126         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6127         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6128
6129 2011-05-23  Bruno Haible  <bruno@clisp.org>
6130
6131         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6132         * m4/gc-pbkdf2-sha1.m4: Remove file.
6133         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6134         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6135         (Makefile.am): Augment lib_SOURCES.
6136
6137 2011-05-23  Bruno Haible  <bruno@clisp.org>
6138
6139         fts: Move AC_LIBOBJ invocations to module description.
6140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6141         * modules/fts (configure.ac): ... to here.
6142
6143 2011-05-23  Bruno Haible  <bruno@clisp.org>
6144
6145         file-type: Move AC_LIBOBJ invocations to module description.
6146         * m4/file-type.m4: Remove file.
6147         * modules/file-type (Files): Remove it.
6148         (configure.ac): Remove gl_FILE_TYPE call.
6149         (Makefile.am): Augment lib_SOURCES.
6150
6151 2011-05-23  Bruno Haible  <bruno@clisp.org>
6152
6153         filenamecat*: Respect rules for use of AC_LIBOBJ.
6154         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6155         Remove AC_LIBOBJ invocation.
6156         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6157         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6158
6159 2011-05-23  Bruno Haible  <bruno@clisp.org>
6160
6161         filemode: Move AC_LIBOBJ invocations to module description.
6162         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6163         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6164
6165 2011-05-23  Bruno Haible  <bruno@clisp.org>
6166
6167         openat-safer: Move AC_LIBOBJ invocations to module description.
6168         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6169         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6170
6171 2011-05-23  Bruno Haible  <bruno@clisp.org>
6172
6173         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6174         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6175         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6176
6177 2011-05-23  Bruno Haible  <bruno@clisp.org>
6178
6179         exclude: Move AC_LIBOBJ invocations to module description.
6180         * m4/exclude.m4: Remove file.
6181         * modules/exclude (Files): Remove it.
6182         (configure.ac): Remove gl_EXCLUDE call.
6183         (Makefile.am): Augment lib_SOURCES.
6184
6185 2011-05-23  Bruno Haible  <bruno@clisp.org>
6186
6187         dirname*: Respect rules for use of AC_LIBOBJ.
6188         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6189         invocations.
6190         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6191         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6192
6193 2011-05-23  Bruno Haible  <bruno@clisp.org>
6194
6195         dirent-safer: Move AC_LIBOBJ invocations to module description.
6196         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6197         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6198
6199 2011-05-23  Bruno Haible  <bruno@clisp.org>
6200
6201         crypto/des: Move AC_LIBOBJ invocations to module description.
6202         * m4/des.m4: Remove file.
6203         * modules/crypto/des (Files): Remove it.
6204         (configure.ac): Remove gl_DES call.
6205         (Makefile.am): Augment lib_SOURCES.
6206
6207 2011-05-23  Bruno Haible  <bruno@clisp.org>
6208
6209         cycle-check: Move AC_LIBOBJ invocations to module description.
6210         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6211         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6212
6213 2011-05-23  Bruno Haible  <bruno@clisp.org>
6214
6215         c-strtold: Move AC_LIBOBJ invocations to module description.
6216         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6217         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6218
6219 2011-05-23  Bruno Haible  <bruno@clisp.org>
6220
6221         c-strtod: Move AC_LIBOBJ invocations to module description.
6222         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6223         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6224
6225 2011-05-23  Bruno Haible  <bruno@clisp.org>
6226
6227         crc: Move AC_LIBOBJ invocations to module description.
6228         * m4/crc.m4: Remove file.
6229         * modules/crc (Files): Remove it.
6230         (configure.ac): Remove gl_CRC call.
6231         (Makefile.am): Augment lib_SOURCES.
6232
6233 2011-05-23  Bruno Haible  <bruno@clisp.org>
6234
6235         close-stream: Move AC_LIBOBJ invocations to module description.
6236         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6237         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6238
6239 2011-05-23  Bruno Haible  <bruno@clisp.org>
6240
6241         closeout: Move AC_LIBOBJ invocations to module description.
6242         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6243         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6244
6245 2011-05-23  Bruno Haible  <bruno@clisp.org>
6246
6247         closein: Move AC_LIBOBJ invocations to module description.
6248         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6249         * modules/closein (Makefile.am): Augment lib_SOURCES.
6250
6251 2011-05-23  Bruno Haible  <bruno@clisp.org>
6252
6253         cloexec: Move AC_LIBOBJ invocations to module description.
6254         * m4/cloexec.m4: Remove file.
6255         * modules/cloexec (Files): Remove it.
6256         (configure.ac): Remove gl_CLOEXEC call.
6257         (Makefile.am): Augment lib_SOURCES.
6258
6259 2011-05-23  Bruno Haible  <bruno@clisp.org>
6260
6261         check-version: Move AC_LIBOBJ invocations to module description.
6262         * m4/check-version.m4: Remove file.
6263         * modules/check-version (Files): Remove it.
6264         (configure.ac): Remove gl_CHECK_VERSION call.
6265         (Makefile.am): Augment lib_SOURCES.
6266
6267 2011-05-23  Bruno Haible  <bruno@clisp.org>
6268
6269         chdir-safer: Move AC_LIBOBJ invocations to module description.
6270         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6271         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6272
6273 2011-05-23  Bruno Haible  <bruno@clisp.org>
6274
6275         canonicalize: Move AC_LIBOBJ invocations to module description.
6276         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6277         AC_LIBOBJ invocation.
6278         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6279
6280 2011-05-23  Bruno Haible  <bruno@clisp.org>
6281
6282         canon-host: Move AC_LIBOBJ invocations to module description.
6283         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6284         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6285         instead of gl_CANON_HOST.
6286         (Makefile.am): Augment lib_SOURCES.
6287
6288 2011-05-23  Bruno Haible  <bruno@clisp.org>
6289
6290         backupfile: Move AC_LIBOBJ invocations to module description.
6291         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6292         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6293
6294 2011-05-23  Bruno Haible  <bruno@clisp.org>
6295
6296         argmatch: Move AC_LIBOBJ invocations to module description.
6297         * m4/argmatch.m4: Remove file.
6298         * modules/argmatch (Files): Remove it.
6299         (configure.ac): Remove gl_ARGMATCH call.
6300         (Makefile.am): Augment lib_SOURCES.
6301
6302 2011-05-23  Bruno Haible  <bruno@clisp.org>
6303
6304         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6305         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6306         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6307
6308 2011-05-23  Bruno Haible  <bruno@clisp.org>
6309
6310         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6311         * m4/arcfour.m4: Remove file.
6312         * modules/crypto/arcfour (Files): Remove it.
6313         (configure.ac): Remove gl_ARCFOUR call.
6314         (Makefile.am): Augment lib_SOURCES.
6315
6316 2011-05-22  Bruno Haible  <bruno@clisp.org>
6317
6318         write: Move AC_LIBOBJ invocations to module description.
6319         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6320         * modules/write (configure.ac): ... to here.
6321
6322 2011-05-22  Bruno Haible  <bruno@clisp.org>
6323
6324         wmemset: Move AC_LIBOBJ invocations to module description.
6325         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6326         here...
6327         * modules/wmemset (configure.ac): ... to here.
6328
6329 2011-05-22  Bruno Haible  <bruno@clisp.org>
6330
6331         wmemmove: Move AC_LIBOBJ invocations to module description.
6332         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6333         here...
6334         * modules/wmemmove (configure.ac): ... to here.
6335
6336 2011-05-22  Bruno Haible  <bruno@clisp.org>
6337
6338         wmemcpy: Move AC_LIBOBJ invocations to module description.
6339         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6340         here...
6341         * modules/wmemcpy (configure.ac): ... to here.
6342
6343 2011-05-22  Bruno Haible  <bruno@clisp.org>
6344
6345         wmemcmp: Move AC_LIBOBJ invocations to module description.
6346         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6347         here...
6348         * modules/wmemcmp (configure.ac): ... to here.
6349
6350 2011-05-22  Bruno Haible  <bruno@clisp.org>
6351
6352         wmemchr: Move AC_LIBOBJ invocations to module description.
6353         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6354         here...
6355         * modules/wmemchr (configure.ac): ... to here.
6356
6357 2011-05-22  Bruno Haible  <bruno@clisp.org>
6358
6359         wcswidth: Move AC_LIBOBJ invocations to module description.
6360         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6361         here...
6362         * modules/wcswidth (configure.ac): ... to here.
6363
6364 2011-05-22  Bruno Haible  <bruno@clisp.org>
6365
6366         wcwidth: Respect rules for use of AC_LIBOBJ.
6367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6368         invocation from here...
6369         * modules/wcwidth (configure.ac): ... to here.
6370         (Depends-on): Update conditions.
6371
6372 2011-05-22  Bruno Haible  <bruno@clisp.org>
6373
6374         wctype: Move AC_LIBOBJ invocations to module description.
6375         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6376         invocation from here...
6377         * modules/wctype (configure.ac): ... to here.
6378         (Depends-on): Update conditions.
6379
6380 2011-05-22  Bruno Haible  <bruno@clisp.org>
6381
6382         wctrans: Move AC_LIBOBJ invocations to module description.
6383         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6384         invocation from here...
6385         * modules/wctrans (configure.ac): ... to here.
6386
6387 2011-05-22  Bruno Haible  <bruno@clisp.org>
6388
6389         wctomb: Move AC_LIBOBJ invocations to module description.
6390         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6391         invocations from here...
6392         * modules/wctomb (configure.ac): ... to here.
6393
6394 2011-05-22  Bruno Haible  <bruno@clisp.org>
6395
6396         wctob: Move AC_LIBOBJ invocations to module description.
6397         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6398         gl_PREREQ_WCTOB invocations from here...
6399         * modules/wctob (configure.ac): ... to here.
6400         (Depends-on): Update conditions.
6401
6402 2011-05-22  Bruno Haible  <bruno@clisp.org>
6403
6404         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6405         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6406         here...
6407         * modules/wcsxfrm (configure.ac): ... to here.
6408
6409 2011-05-22  Bruno Haible  <bruno@clisp.org>
6410
6411         wcstok: Move AC_LIBOBJ invocations to module description.
6412         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6413         * modules/wcstok (configure.ac): ... to here.
6414
6415 2011-05-22  Bruno Haible  <bruno@clisp.org>
6416
6417         wcsstr: Move AC_LIBOBJ invocations to module description.
6418         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6419         * modules/wcsstr (configure.ac): ... to here.
6420
6421 2011-05-22  Bruno Haible  <bruno@clisp.org>
6422
6423         wcsspn: Move AC_LIBOBJ invocations to module description.
6424         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6425         * modules/wcsspn (configure.ac): ... to here.
6426
6427 2011-05-22  Bruno Haible  <bruno@clisp.org>
6428
6429         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6430         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6431         gl_PREREQ_WCSRTOMBS invocations from here...
6432         * modules/wcsrtombs (configure.ac): ... to here.
6433
6434 2011-05-22  Bruno Haible  <bruno@clisp.org>
6435
6436         wcsrchr: Move AC_LIBOBJ invocations to module description.
6437         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6438         here...
6439         * modules/wcsrchr (configure.ac): ... to here.
6440
6441 2011-05-22  Bruno Haible  <bruno@clisp.org>
6442
6443         wcspbrk: Move AC_LIBOBJ invocations to module description.
6444         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6445         here...
6446         * modules/wcspbrk (configure.ac): ... to here.
6447
6448 2011-05-22  Bruno Haible  <bruno@clisp.org>
6449
6450         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6451         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6452         gl_PREREQ_WCSNRTOMBS invocations from here...
6453         * modules/wcsnrtombs (configure.ac): ... to here.
6454
6455 2011-05-22  Bruno Haible  <bruno@clisp.org>
6456
6457         wcsnlen: Move AC_LIBOBJ invocations to module description.
6458         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6459         here...
6460         * modules/wcsnlen (configure.ac): ... to here.
6461
6462 2011-05-22  Bruno Haible  <bruno@clisp.org>
6463
6464         wcsncpy: Move AC_LIBOBJ invocations to module description.
6465         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6466         here...
6467         * modules/wcsncpy (configure.ac): ... to here.
6468
6469 2011-05-22  Bruno Haible  <bruno@clisp.org>
6470
6471         wcsncmp: Move AC_LIBOBJ invocations to module description.
6472         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6473         here...
6474         * modules/wcsncmp (configure.ac): ... to here.
6475
6476 2011-05-22  Bruno Haible  <bruno@clisp.org>
6477
6478         wcsncat: Move AC_LIBOBJ invocations to module description.
6479         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6480         here...
6481         * modules/wcsncat (configure.ac): ... to here.
6482
6483 2011-05-22  Bruno Haible  <bruno@clisp.org>
6484
6485         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6486         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6487         from here...
6488         * modules/wcsncasecmp (configure.ac): ... to here.
6489
6490 2011-05-22  Bruno Haible  <bruno@clisp.org>
6491
6492         wcslen: Move AC_LIBOBJ invocations to module description.
6493         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6494         * modules/wcslen (configure.ac): ... to here.
6495
6496 2011-05-22  Bruno Haible  <bruno@clisp.org>
6497
6498         wcsdup: Move AC_LIBOBJ invocations to module description.
6499         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6500         * modules/wcsdup (configure.ac): ... to here.
6501
6502 2011-05-22  Bruno Haible  <bruno@clisp.org>
6503
6504         wcscspn: Move AC_LIBOBJ invocations to module description.
6505         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6506         here...
6507         * modules/wcscspn (configure.ac): ... to here.
6508
6509 2011-05-22  Bruno Haible  <bruno@clisp.org>
6510
6511         wcscpy: Move AC_LIBOBJ invocations to module description.
6512         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6513         * modules/wcscpy (configure.ac): ... to here.
6514
6515 2011-05-22  Bruno Haible  <bruno@clisp.org>
6516
6517         wcscoll: Move AC_LIBOBJ invocations to module description.
6518         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6519         here...
6520         * modules/wcscoll (configure.ac): ... to here.
6521
6522 2011-05-22  Bruno Haible  <bruno@clisp.org>
6523
6524         wcscmp: Move AC_LIBOBJ invocations to module description.
6525         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6526         * modules/wcscmp (configure.ac): ... to here.
6527
6528 2011-05-22  Bruno Haible  <bruno@clisp.org>
6529
6530         wcschr: Move AC_LIBOBJ invocations to module description.
6531         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6532         * modules/wcschr (configure.ac): ... to here.
6533
6534 2011-05-22  Bruno Haible  <bruno@clisp.org>
6535
6536         wcscat: Move AC_LIBOBJ invocations to module description.
6537         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6538         * modules/wcscat (configure.ac): ... to here.
6539
6540 2011-05-22  Bruno Haible  <bruno@clisp.org>
6541
6542         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6543         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6544         here...
6545         * modules/wcscasecmp (configure.ac): ... to here.
6546
6547 2011-05-22  Bruno Haible  <bruno@clisp.org>
6548
6549         wcrtomb: Move AC_LIBOBJ invocations to module description.
6550         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6551         invocations from here...
6552         * modules/wcrtomb (configure.ac): ... to here.
6553
6554 2011-05-22  Bruno Haible  <bruno@clisp.org>
6555
6556         wcpncpy: Move AC_LIBOBJ invocations to module description.
6557         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6558         here...
6559         * modules/wcpncpy (configure.ac): ... to here.
6560
6561 2011-05-22  Bruno Haible  <bruno@clisp.org>
6562
6563         wcpcpy: Move AC_LIBOBJ invocations to module description.
6564         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6565         * modules/wcpcpy (configure.ac): ... to here.
6566
6567 2011-05-22  Bruno Haible  <bruno@clisp.org>
6568
6569         waitpid: Move AC_LIBOBJ invocations to module description.
6570         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6571         invocation from here...
6572         * modules/waitpid (configure.ac): ... to here.
6573
6574 2011-05-22  Bruno Haible  <bruno@clisp.org>
6575
6576         utimensat: Move AC_LIBOBJ invocations to module description.
6577         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6578         here...
6579         * modules/utimensat (configure.ac): ... to here.
6580
6581 2011-05-22  Bruno Haible  <bruno@clisp.org>
6582
6583         usleep: Move AC_LIBOBJ invocations to module description.
6584         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6585         here...
6586         * modules/usleep (configure.ac): ... to here.
6587
6588 2011-05-22  Bruno Haible  <bruno@clisp.org>
6589
6590         unlockpt: Move AC_LIBOBJ invocations to module description.
6591         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6592         gl_PREREQ_UNLOCKPT invocations from here...
6593         * modules/unlockpt (configure.ac): ... to here.
6594
6595 2011-05-22  Bruno Haible  <bruno@clisp.org>
6596
6597         unlink: Respect rules for use of AC_LIBOBJ.
6598         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6599         * modules/unlink (configure.ac): ... to here.
6600
6601 2011-05-22  Bruno Haible  <bruno@clisp.org>
6602
6603         uname: Move AC_LIBOBJ invocations to module description.
6604         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6606         here...
6607         * modules/uname (configure.ac): ... to here.
6608
6609 2011-05-22  Bruno Haible  <bruno@clisp.org>
6610
6611         ttyname_r: Move AC_LIBOBJ invocations to module description.
6612         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6613         gl_PREREQ_TTYNAME_R invocations from here...
6614         * modules/ttyname_r (configure.ac): ... to here.
6615
6616 2011-05-22  Bruno Haible  <bruno@clisp.org>
6617
6618         tsearch: Move AC_LIBOBJ invocations to module description.
6619         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6620         invocations from here...
6621         * modules/tsearch (configure.ac): ... to here.
6622
6623 2011-05-22  Bruno Haible  <bruno@clisp.org>
6624
6625         towctrans: Move AC_LIBOBJ invocations to module description.
6626         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6627         AC_LIBOBJ invocation from here...
6628         * modules/towctrans (configure.ac): ... to here.
6629
6630 2011-05-22  Bruno Haible  <bruno@clisp.org>
6631
6632         tmpfile: Move AC_LIBOBJ invocations to module description.
6633         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6634         invocations from here...
6635         * modules/tmpfile (configure.ac): ... to here.
6636
6637 2011-05-22  Bruno Haible  <bruno@clisp.org>
6638
6639         times: Move AC_LIBOBJ invocations to module description.
6640         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6641         * modules/times (configure.ac): ... to here.
6642
6643 2011-05-22  Bruno Haible  <bruno@clisp.org>
6644
6645         time_r: Move AC_LIBOBJ invocations to module description.
6646         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6647         invocations from here...
6648         * modules/time_r (configure.ac): ... to here.
6649
6650 2011-05-22  Bruno Haible  <bruno@clisp.org>
6651
6652         timegm: Move AC_LIBOBJ invocations to module description.
6653         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6654         invocations from here...
6655         * modules/timegm (configure.ac): ... to here.
6656
6657 2011-05-22  Bruno Haible  <bruno@clisp.org>
6658
6659         tcgetsid: Move AC_LIBOBJ invocations to module description.
6660         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6661         and gl_PREREQ_TCGETSID invocations from here...
6662         * modules/tcgetsid (configure.ac): ... to here.
6663         (Depends-on): Update conditions.
6664
6665 2011-05-22  Bruno Haible  <bruno@clisp.org>
6666
6667         symlinkat: Move AC_LIBOBJ invocations to module description.
6668         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6669         here...
6670         * modules/symlinkat (configure.ac): ... to here.
6671
6672 2011-05-22  Bruno Haible  <bruno@clisp.org>
6673
6674         symlink: Move AC_LIBOBJ invocations to module description.
6675         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6676         here...
6677         * modules/symlink (configure.ac): ... to here.
6678
6679 2011-05-22  Bruno Haible  <bruno@clisp.org>
6680
6681         strverscmp: Move AC_LIBOBJ invocations to module description.
6682         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6684         from here...
6685         * modules/strverscmp (configure.ac): ... to here.
6686
6687 2011-05-22  Bruno Haible  <bruno@clisp.org>
6688
6689         strtok_r: Move AC_LIBOBJ invocations to module description.
6690         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6691         and gl_PREREQ_STRTOK_R invocations from here...
6692         * modules/strtok_r (configure.ac): ... to here.
6693         (Depends-on): Update conditions.
6694
6695 2011-05-22  Bruno Haible  <bruno@clisp.org>
6696
6697         strtoumax: Move AC_LIBOBJ invocations to module description.
6698         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6699         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6700         from here...
6701         * modules/strtoumax (configure.ac): ... to here.
6702
6703 2011-05-22  Bruno Haible  <bruno@clisp.org>
6704
6705         strtoimax: Move AC_LIBOBJ invocations to module description.
6706         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6707         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6708         from here...
6709         * modules/strtoimax (configure.ac): ... to here.
6710
6711 2011-05-22  Bruno Haible  <bruno@clisp.org>
6712
6713         strtoull: Move AC_LIBOBJ invocations to module description.
6714         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6715         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6716         from here...
6717         * modules/strtoull (configure.ac): ... to here.
6718
6719 2011-05-22  Bruno Haible  <bruno@clisp.org>
6720
6721         strtoll: Move AC_LIBOBJ invocations to module description.
6722         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6723         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6724         here...
6725         * modules/strtoll (configure.ac): ... to here.
6726
6727 2011-05-22  Bruno Haible  <bruno@clisp.org>
6728
6729         strtoul: Move AC_LIBOBJ invocations to module description.
6730         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6731         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6732         * modules/strtoul (configure.ac): ... to here.
6733
6734 2011-05-22  Bruno Haible  <bruno@clisp.org>
6735
6736         strtol: Move AC_LIBOBJ invocations to module description.
6737         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6738         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6739         * modules/strtol (configure.ac): ... to here.
6740
6741 2011-05-22  Bruno Haible  <bruno@clisp.org>
6742
6743         strtod: Move AC_LIBOBJ invocations to module description.
6744         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6745         invocations from here...
6746         * modules/strtod (configure.ac): ... to here.
6747
6748 2011-05-22  Bruno Haible  <bruno@clisp.org>
6749
6750         strstr*: Move AC_LIBOBJ invocations to module description.
6751         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6752         invocations from here...
6753         * modules/strstr-simple (configure.ac): ... to here.
6754         * modules/strstr (configure.ac): ... and here.
6755
6756 2011-05-22  Bruno Haible  <bruno@clisp.org>
6757
6758         strsignal: Move AC_LIBOBJ invocations to module description.
6759         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6760         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6761         * modules/strsignal (configure.ac): ... to here.
6762         (Depends-on): Update conditions.
6763
6764 2011-05-22  Bruno Haible  <bruno@clisp.org>
6765
6766         strsep: Move AC_LIBOBJ invocations to module description.
6767         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6769         here...
6770         * modules/strsep (configure.ac): ... to here.
6771
6772 2011-05-22  Bruno Haible  <bruno@clisp.org>
6773
6774         strptime: Move AC_LIBOBJ invocations to module description.
6775         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6776         gl_PREREQ_STRPTIME invocations from here...
6777         * modules/strptime (configure.ac): ... to here.
6778
6779 2011-05-22  Bruno Haible  <bruno@clisp.org>
6780
6781         strpbrk: Move AC_LIBOBJ invocations to module description.
6782         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6784         here...
6785         * modules/strpbrk (configure.ac): ... to here.
6786
6787 2011-05-22  Bruno Haible  <bruno@clisp.org>
6788
6789         strnlen: Move AC_LIBOBJ invocations to module description.
6790         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6791         invocations from here...
6792         * modules/strnlen (configure.ac): ... to here.
6793
6794 2011-05-22  Bruno Haible  <bruno@clisp.org>
6795
6796         strndup: Move AC_LIBOBJ invocations to module description.
6797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6798         invocations from here...
6799         * modules/strndup (configure.ac): ... to here.
6800         (Depends-on): Update conditions.
6801
6802 2011-05-22  Bruno Haible  <bruno@clisp.org>
6803
6804         strncat: Move AC_LIBOBJ invocations to module description.
6805         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6806         invocations from here...
6807         * modules/strncat (configure.ac): ... to here.
6808
6809 2011-05-22  Bruno Haible  <bruno@clisp.org>
6810
6811         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6812         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6813         invocations from here...
6814         * modules/strdup (configure.ac): ... to here.
6815         * modules/strdup-posix (configure.ac): ... and here.
6816
6817 2011-05-22  Bruno Haible  <bruno@clisp.org>
6818
6819         strcspn: Move AC_LIBOBJ invocations to module description.
6820         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6821         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6822         here...
6823         * modules/strcspn (configure.ac): ... to here.
6824
6825 2011-05-22  Bruno Haible  <bruno@clisp.org>
6826
6827         strchrnul: Move AC_LIBOBJ invocations to module description.
6828         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6829         gl_PREREQ_STRCHRNUL invocations from here...
6830         * modules/strchrnul (configure.ac): ... to here.
6831
6832 2011-05-22  Bruno Haible  <bruno@clisp.org>
6833
6834         strcasestr*: Move AC_LIBOBJ invocations to module description.
6835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6836         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6837         * modules/strcasestr-simple (configure.ac): ... to here.
6838         * modules/strcasestr (configure.ac): ... and here.
6839
6840 2011-05-22  Bruno Haible  <bruno@clisp.org>
6841
6842         strcase: Move AC_LIBOBJ invocations to module description.
6843         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6844         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6845         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6846         gl_PREREQ_STRNCASECMP invocations from here...
6847         * modules/strcase (configure.ac): ... to here.
6848
6849 2011-05-22  Bruno Haible  <bruno@clisp.org>
6850
6851         stpncpy: Move AC_LIBOBJ invocations to module description.
6852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6853         here...
6854         * modules/stpncpy (configure.ac): ... to here.
6855
6856 2011-05-22  Bruno Haible  <bruno@clisp.org>
6857
6858         stpcpy: Move AC_LIBOBJ invocations to module description.
6859         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6861         here...
6862         * modules/stpcpy (configure.ac): ... to here.
6863
6864 2011-05-21  Bruno Haible  <bruno@clisp.org>
6865
6866         stat: Move AC_LIBOBJ invocations to module description.
6867         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6868         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6869         here...
6870         * modules/stat (configure.ac): ... to here.
6871
6872 2011-05-21  Bruno Haible  <bruno@clisp.org>
6873
6874         sleep: Move AC_LIBOBJ invocations to module description.
6875         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6876         * modules/sleep (configure.ac): ... to here.
6877
6878 2011-05-21  Bruno Haible  <bruno@clisp.org>
6879
6880         signbit: Move AC_LIBOBJ invocations to module description.
6881         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6882         * modules/signbit (configure.ac): ... to here.
6883
6884 2011-05-21  Bruno Haible  <bruno@clisp.org>
6885
6886         sigprocmask: Move AC_LIBOBJ invocations to module description.
6887         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6888         gl_PREREQ_SIGPROMASK invocations from here...
6889         * modules/sigprocmask (configure.ac): ... to here.
6890
6891 2011-05-21  Bruno Haible  <bruno@clisp.org>
6892
6893         sigaction: Move AC_LIBOBJ invocations to module description.
6894         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6895         gl_PREREQ_SIGACTION invocations from here...
6896         * modules/sigaction (configure.ac): ... to here.
6897
6898 2011-05-21  Bruno Haible  <bruno@clisp.org>
6899
6900         sig2str: Move AC_LIBOBJ invocations to module description.
6901         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6903         here...
6904         * modules/sig2str (configure.ac): ... to here.
6905
6906 2011-05-21  Bruno Haible  <bruno@clisp.org>
6907
6908         setlocale: Move AC_LIBOBJ invocations to module description.
6909         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6910         gl_PREREQ_SETLOCALE invocations from here...
6911         * modules/setlocale (configure.ac): ... to here.
6912
6913 2011-05-21  Bruno Haible  <bruno@clisp.org>
6914
6915         unsetenv: Move AC_LIBOBJ invocations to module description.
6916         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6917         and gl_PREREQ_UNSETENV invocations from here...
6918         * modules/unsetenv (configure.ac): ... to here.
6919         (Depends-on): Update.
6920
6921 2011-05-21  Bruno Haible  <bruno@clisp.org>
6922
6923         setenv: Move AC_LIBOBJ invocations to module description.
6924         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6925         here...
6926         * modules/setenv (configure.ac): ... to here.
6927
6928 2011-05-21  Bruno Haible  <bruno@clisp.org>
6929
6930         selinux-h: Move AC_LIBOBJ invocations to module description.
6931         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6932         AC_LIBOBJ invocation from here...
6933         * modules/selinux-h (configure.ac): ... to here.
6934
6935 2011-05-21  Bruno Haible  <bruno@clisp.org>
6936
6937         select: Respect rules for use of AC_LIBOBJ.
6938         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6939         here...
6940         * modules/select (configure.ac): ... to here.
6941
6942 2011-05-21  Bruno Haible  <bruno@clisp.org>
6943
6944         scandir: Move AC_LIBOBJ invocations to module description.
6945         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6946         invocations from here...
6947         * modules/scandir (configure.ac): ... to here.
6948
6949 2011-05-21  Bruno Haible  <bruno@clisp.org>
6950
6951         rpmatch: Move AC_LIBOBJ invocations to module description.
6952         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6954         here...
6955         * modules/rpmatch (configure.ac): ... to here.
6956
6957 2011-05-21  Bruno Haible  <bruno@clisp.org>
6958
6959         rmdir: Respect rules for use of AC_LIBOBJ.
6960         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6961         * modules/rmdir (configure.ac): ... to here.
6962
6963 2011-05-21  Bruno Haible  <bruno@clisp.org>
6964
6965         renameat: Move AC_LIBOBJ invocations to module description.
6966         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6967         here...
6968         * modules/renameat (configure.ac): ... to here.
6969
6970 2011-05-21  Bruno Haible  <bruno@clisp.org>
6971
6972         rename: Respect rules for use of AC_LIBOBJ.
6973         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6974         here...
6975         * modules/rename (configure.ac): ... to here.
6976
6977 2011-05-21  Bruno Haible  <bruno@clisp.org>
6978
6979         remove: Move AC_LIBOBJ invocations to module description.
6980         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6981         here...
6982         * modules/remove (configure.ac): ... to here.
6983
6984 2011-05-21  Bruno Haible  <bruno@clisp.org>
6985
6986         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6987         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6988         macro.
6989         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6990         * modules/relocatable-lib (configure.ac): ... to here.
6991         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6992         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6993
6994 2011-05-21  Bruno Haible  <bruno@clisp.org>
6995
6996         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6997         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6998         here...
6999         * modules/relocatable-prog (configure.ac): ... to here.
7000
7001 2011-05-21  Bruno Haible  <bruno@clisp.org>
7002
7003         regex: Move AC_LIBOBJ invocations to module description.
7004         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7005         invocations from here...
7006         * modules/regex (configure.ac): ... to here.
7007
7008 2011-05-21  Bruno Haible  <bruno@clisp.org>
7009
7010         realloc-*: Move AC_LIBOBJ invocations to module description.
7011         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7012         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7013         AC_LIBOBJ invocations from here...
7014         * modules/realloc-gnu (configure.ac): ... to here.
7015         * modules/realloc-posix (configure.ac): ... and here.
7016
7017 2011-05-21  Bruno Haible  <bruno@clisp.org>
7018
7019         readutmp: Move AC_LIBOBJ invocations to module description.
7020         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7021         * modules/readutmp (configure.ac): ... to here.
7022
7023 2011-05-21  Bruno Haible  <bruno@clisp.org>
7024
7025         readlinkat: Move AC_LIBOBJ invocations to module description.
7026         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7027         here...
7028         * modules/readlinkat (configure.ac): ... to here.
7029
7030 2011-05-21  Bruno Haible  <bruno@clisp.org>
7031
7032         readlink: Move AC_LIBOBJ invocations to module description.
7033         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7034         gl_PREREQ_READLINK invocations from here...
7035         * modules/readlink (configure.ac): ... to here.
7036
7037 2011-05-21  Bruno Haible  <bruno@clisp.org>
7038
7039         readline: Move AC_LIBOBJ invocations to module description.
7040         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7041         gl_PREREQ_READLINE invocations from here...
7042         * modules/readline (configure.ac): ... to here.
7043
7044 2011-05-21  Bruno Haible  <bruno@clisp.org>
7045
7046         read: Move AC_LIBOBJ invocations to module description.
7047         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7048         * modules/read (configure.ac): ... to here.
7049
7050 2011-05-21  Bruno Haible  <bruno@clisp.org>
7051
7052         rawmemchr: Move AC_LIBOBJ invocations to module description.
7053         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7055         from here...
7056         * modules/rawmemchr (configure.ac): ... to here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         random_r: Move AC_LIBOBJ invocations to module description.
7061         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7062         gl_PREREQ_RANDOM_R invocations from here...
7063         * modules/random_r (configure.ac): ... to here.
7064
7065 2011-05-21  Bruno Haible  <bruno@clisp.org>
7066
7067         pwrite: Move AC_LIBOBJ invocations to module description.
7068         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7069         * modules/pwrite (configure.ac): ... to here.
7070
7071 2011-05-21  Bruno Haible  <bruno@clisp.org>
7072
7073         putenv: Move AC_LIBOBJ invocations to module description.
7074         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7075         * modules/putenv (configure.ac): ... to here.
7076
7077 2011-05-21  Bruno Haible  <bruno@clisp.org>
7078
7079         login_tty: Move AC_LIBOBJ invocations to module description.
7080         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7081         * modules/login_tty (configure.ac): ... to here.
7082
7083 2011-05-21  Bruno Haible  <bruno@clisp.org>
7084
7085         openpty: Move AC_LIBOBJ invocations to module description.
7086         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7087         * modules/openpty (configure.ac): ... to here.
7088
7089 2011-05-21  Bruno Haible  <bruno@clisp.org>
7090
7091         forkpty: Move AC_LIBOBJ invocations to module description.
7092         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7093         * modules/forkpty (configure.ac): ... to here.
7094
7095 2011-05-21  Bruno Haible  <bruno@clisp.org>
7096
7097         ptsname: Move AC_LIBOBJ invocations to module description.
7098         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7099         invocations from here...
7100         * modules/ptsname (configure.ac): ... to here.
7101
7102 2011-05-21  Bruno Haible  <bruno@clisp.org>
7103
7104         pread: Move AC_LIBOBJ invocations to module description.
7105         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7106         * modules/pread (configure.ac): ... to here.
7107
7108 2011-05-21  Bruno Haible  <bruno@clisp.org>
7109
7110         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7111         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7112         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7113         * modules/posix_spawn (configure.ac): ... to here.
7114         * modules/posix_spawnp (configure.ac): ... and here.
7115
7116 2011-05-21  Bruno Haible  <bruno@clisp.org>
7117
7118         popen: Move AC_LIBOBJ invocations to module description.
7119         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7120         invocations from here...
7121         * modules/popen (configure.ac): ... to here.
7122
7123 2011-05-21  Bruno Haible  <bruno@clisp.org>
7124
7125         poll: Move AC_LIBOBJ invocations to module description.
7126         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7127         invocations from here...
7128         * modules/poll (configure.ac): ... to here.
7129
7130 2011-05-21  Bruno Haible  <bruno@clisp.org>
7131
7132         pipe-posix: Move AC_LIBOBJ invocations to module description.
7133         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7134         * modules/pipe-posix (configure.ac): ... to here.
7135
7136 2011-05-21  Bruno Haible  <bruno@clisp.org>
7137
7138         openat: Respect rules for use of AC_LIBOBJ.
7139         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7140         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7141         * modules/openat (configure.ac): ... to here.
7142
7143 2011-05-21  Bruno Haible  <bruno@clisp.org>
7144
7145         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7146         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7147         invocation from here...
7148         * modules/obstack-printf (configure.ac): ... to here.
7149         * modules/obstack-printf-posix (configure.ac): ... and here.
7150
7151 2011-05-21  Bruno Haible  <bruno@clisp.org>
7152
7153         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7154         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7155         from here...
7156         * modules/nl_langinfo (configure.ac): ... to here.
7157
7158 2011-05-21  Bruno Haible  <bruno@clisp.org>
7159
7160         nanosleep: Move AC_LIBOBJ invocations to module description.
7161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7162         gl_PREREQ_NANOSLEEP invocations from here...
7163         * modules/nanosleep (configure.ac): ... to here.
7164
7165 2011-05-21  Bruno Haible  <bruno@clisp.org>
7166
7167         mountlist: Move AC_LIBOBJ invocations to module description.
7168         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7169         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7170         * modules/mountlist (configure.ac): ... to here.
7171
7172 2011-05-21  Bruno Haible  <bruno@clisp.org>
7173
7174         mktime: Respect rules for use of AC_LIBOBJ.
7175         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7176         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7177         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7178         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7179         * modules/mktime (configure.ac): ... to here.
7180         * modules/mktime-internal (configure.ac): ... and here.
7181         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7182
7183 2011-05-21  Bruno Haible  <bruno@clisp.org>
7184
7185         mkstemps: Move AC_LIBOBJ invocations to module description.
7186         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7187         here...
7188         * modules/mkstemps (configure.ac): ... to here.
7189
7190 2011-05-21  Bruno Haible  <bruno@clisp.org>
7191
7192         mkstemp: Move AC_LIBOBJ invocations to module description.
7193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7194         gl_PREREQ_MKSTEMP invocations from here...
7195         * modules/mkstemp (configure.ac): ... to here.
7196
7197 2011-05-21  Bruno Haible  <bruno@clisp.org>
7198
7199         mkostemps: Move AC_LIBOBJ invocations to module description.
7200         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7201         here...
7202         * modules/mkostemps (configure.ac): ... to here.
7203
7204 2011-05-21  Bruno Haible  <bruno@clisp.org>
7205
7206         mkostemp: Move AC_LIBOBJ invocations to module description.
7207         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7208         gl_PREREQ_MKOSTEMP invocations from here...
7209         * modules/mkostemp (configure.ac): ... to here.
7210
7211 2011-05-21  Bruno Haible  <bruno@clisp.org>
7212
7213         mknod: Move AC_LIBOBJ invocations to module description.
7214         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7215         * modules/mknod (configure.ac): ... to here.
7216
7217 2011-05-21  Bruno Haible  <bruno@clisp.org>
7218
7219         mkfifoat: Move AC_LIBOBJ invocations to module description.
7220         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7221         here...
7222         * modules/mkfifoat (configure.ac): ... to here.
7223
7224 2011-05-21  Bruno Haible  <bruno@clisp.org>
7225
7226         mkfifo: Respect rules for use of AC_LIBOBJ.
7227         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7228         here...
7229         * modules/mkfifo (configure.ac): ... to here.
7230
7231 2011-05-21  Bruno Haible  <bruno@clisp.org>
7232
7233         mkdtemp: Move AC_LIBOBJ invocations to module description.
7234         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7235         invocations from here...
7236         * modules/mkdtemp (configure.ac): ... to here.
7237
7238 2011-05-21  Bruno Haible  <bruno@clisp.org>
7239
7240         mkdir: Move AC_LIBOBJ invocations to module description.
7241         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7242         * modules/mkdir (configure.ac): ... to here.
7243
7244 2011-05-21  Bruno Haible  <bruno@clisp.org>
7245
7246         memset: Move AC_LIBOBJ invocations to module description.
7247         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7249         here...
7250         * modules/memset (configure.ac): ... to here.
7251
7252 2011-05-21  Bruno Haible  <bruno@clisp.org>
7253
7254         memrchr: Move AC_LIBOBJ invocations to module description.
7255         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7257         here...
7258         * modules/memrchr (configure.ac): ... to here.
7259
7260 2011-05-21  Bruno Haible  <bruno@clisp.org>
7261
7262         mempcpy: Move AC_LIBOBJ invocations to module description.
7263         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7264         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7265         here...
7266         * modules/mempcpy (configure.ac): ... to here.
7267
7268 2011-05-21  Bruno Haible  <bruno@clisp.org>
7269
7270         memmove: Move AC_LIBOBJ invocations to module description.
7271         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7272         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7273         here...
7274         * modules/memmove (configure.ac): ... to here.
7275
7276 2011-05-21  Bruno Haible  <bruno@clisp.org>
7277
7278         memmem*: Move AC_LIBOBJ invocations to module description.
7279         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7280         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7281         here...
7282         (gl_FUNC_MEMMEM): ... and here...
7283         * modules/memmem-simple (configure.ac): ... to here.
7284         * modules/memmem (configure.ac): ... and here.
7285
7286 2011-05-21  Bruno Haible  <bruno@clisp.org>
7287
7288         memcpy: Move AC_LIBOBJ invocations to module description.
7289         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7291         here...
7292         * modules/memcpy (configure.ac): ... to here.
7293
7294 2011-05-21  Bruno Haible  <bruno@clisp.org>
7295
7296         memcmp: Simplify autoconf macro.
7297         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7298         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7299         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7300
7301 2011-05-21  Bruno Haible  <bruno@clisp.org>
7302
7303         memcmp: Move AC_LIBOBJ invocations to module description.
7304         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7305         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7306         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7307         * modules/memcmp (configure.ac): ... to here.
7308         (Depends-on): Update conditions.
7309
7310 2011-05-21  Bruno Haible  <bruno@clisp.org>
7311
7312         memchr: Respect rules for use of AC_LIBOBJ.
7313         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7314         invocations from here...
7315         * modules/memchr (configure.ac): ... to here.
7316
7317 2011-05-21  Bruno Haible  <bruno@clisp.org>
7318
7319         mbtowc: Move AC_LIBOBJ invocations to module description.
7320         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7321         invocations from here...
7322         * modules/mbtowc (configure.ac): ... to here.
7323
7324 2011-05-21  Bruno Haible  <bruno@clisp.org>
7325
7326         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7327         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7328         gl_PREREQ_MBSRTOWCS invocations from here...
7329         * modules/mbsrtowcs (configure.ac): ... to here.
7330
7331 2011-05-21  Bruno Haible  <bruno@clisp.org>
7332
7333         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7334         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7335         gl_PREREQ_MBSNRTOWCS invocations from here...
7336         * modules/mbsnrtowcs (configure.ac): ... to here.
7337
7338 2011-05-21  Bruno Haible  <bruno@clisp.org>
7339
7340         mbsinit: Move AC_LIBOBJ invocations to module description.
7341         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7342         invocations from here...
7343         * modules/mbsinit (configure.ac): ... to here.
7344
7345 2011-05-21  Bruno Haible  <bruno@clisp.org>
7346
7347         mbrlen: Move AC_LIBOBJ invocations to module description.
7348         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7349         invocations from here...
7350         * modules/mbrlen (configure.ac): ... to here.
7351
7352 2011-05-21  Bruno Haible  <bruno@clisp.org>
7353
7354         mbrtowc: Respect rules for use of AC_LIBOBJ.
7355         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7356         invocations from here...
7357         * modules/mbrtowc (configure.ac): ... to here.
7358
7359 2011-05-21  Bruno Haible  <bruno@clisp.org>
7360
7361         malloc-*: Move AC_LIBOBJ invocations to module description.
7362         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7363         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7364         AC_LIBOBJ invocations from here...
7365         * modules/malloc-gnu (configure.ac): ... to here.
7366         * modules/malloc-posix (configure.ac): ... and here.
7367
7368 2011-05-21  Bruno Haible  <bruno@clisp.org>
7369
7370         lstat, openat: Respect rules for use of AC_LIBOBJ.
7371         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7372         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7373         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7374         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7375         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7376         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7377         here.
7378         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7379
7380 2011-05-21  Bruno Haible  <bruno@clisp.org>
7381
7382         lseek: Move AC_LIBOBJ invocations to module description.
7383         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7384         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7385         * modules/lseek (configure.ac): ... to here.
7386
7387 2011-05-21  Bruno Haible  <bruno@clisp.org>
7388
7389         linkat: Move AC_LIBOBJ invocations to module description.
7390         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7391         here...
7392         * modules/linkat (configure.ac): ... to here.
7393
7394 2011-05-21  Bruno Haible  <bruno@clisp.org>
7395
7396         link: Respect rules for use of AC_LIBOBJ.
7397         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7398         * modules/link (configure.ac): ... to here.
7399
7400 2011-05-21  Bruno Haible  <bruno@clisp.org>
7401
7402         lchown: Move AC_LIBOBJ invocations to module description.
7403         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7404         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7405         * modules/lchown (configure.ac): ... to here.
7406
7407 2011-05-21  Bruno Haible  <bruno@clisp.org>
7408
7409         iswctype: Move AC_LIBOBJ invocations to module description.
7410         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7411         here...
7412         * modules/iswctype (configure.ac): ... to here.
7413
7414 2011-05-21  Bruno Haible  <bruno@clisp.org>
7415
7416         iswblank: Move AC_LIBOBJ invocations to module description.
7417         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7418         here...
7419         * modules/iswblank (configure.ac): ... to here.
7420
7421 2011-05-21  Bruno Haible  <bruno@clisp.org>
7422
7423         atanl: Move AC_LIBOBJ invocations to module description.
7424         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7425         * modules/atanl (configure.ac): ... to here.
7426
7427 2011-05-21  Bruno Haible  <bruno@clisp.org>
7428
7429         acosl: Move AC_LIBOBJ invocations to module description.
7430         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7431         * modules/acosl (configure.ac): ... to here.
7432
7433 2011-05-21  Bruno Haible  <bruno@clisp.org>
7434
7435         asinl: Respect rules for use of AC_LIBOBJ.
7436         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7437         * modules/asinl (configure.ac): ... to here.
7438
7439 2011-05-21  Bruno Haible  <bruno@clisp.org>
7440
7441         tanl: Move AC_LIBOBJ invocations to module description.
7442         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7443         * modules/tanl (configure.ac): ... to here.
7444
7445 2011-05-21  Bruno Haible  <bruno@clisp.org>
7446
7447         cosl: Move AC_LIBOBJ invocations to module description.
7448         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7449         * modules/cosl (configure.ac): ... to here.
7450
7451 2011-05-21  Bruno Haible  <bruno@clisp.org>
7452
7453         sinl: Move AC_LIBOBJ invocations to module description.
7454         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7455         * modules/sinl (configure.ac): ... to here.
7456
7457 2011-05-21  Bruno Haible  <bruno@clisp.org>
7458
7459         logl: Move AC_LIBOBJ invocations to module description.
7460         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7461         * modules/logl (configure.ac): ... to here.
7462
7463 2011-05-21  Bruno Haible  <bruno@clisp.org>
7464
7465         expl: Move AC_LIBOBJ invocations to module description.
7466         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7467         * modules/expl (configure.ac): ... to here.
7468
7469 2011-05-21  Bruno Haible  <bruno@clisp.org>
7470
7471         roundl: Move AC_LIBOBJ invocations to module description.
7472         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7473         * modules/roundl (configure.ac): ... to here.
7474
7475 2011-05-21  Bruno Haible  <bruno@clisp.org>
7476
7477         round: Move AC_LIBOBJ invocations to module description.
7478         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7479         * modules/round (configure.ac): ... to here.
7480
7481 2011-05-21  Bruno Haible  <bruno@clisp.org>
7482
7483         roundf: Move AC_LIBOBJ invocations to module description.
7484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7485         * modules/roundf (configure.ac): ... to here.
7486
7487 2011-05-21  Bruno Haible  <bruno@clisp.org>
7488
7489         truncl: Move AC_LIBOBJ invocations to module description.
7490         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7491         * modules/truncl (configure.ac): ... to here.
7492
7493 2011-05-21  Bruno Haible  <bruno@clisp.org>
7494
7495         trunc: Move AC_LIBOBJ invocations to module description.
7496         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7497         * modules/trunc (configure.ac): ... to here.
7498
7499 2011-05-21  Bruno Haible  <bruno@clisp.org>
7500
7501         truncf: Move AC_LIBOBJ invocations to module description.
7502         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7503         * modules/truncf (configure.ac): ... to here.
7504
7505 2011-05-21  Bruno Haible  <bruno@clisp.org>
7506
7507         ceill: Move AC_LIBOBJ invocations to module description.
7508         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7509         * modules/ceill (configure.ac): ... to here.
7510
7511 2011-05-21  Bruno Haible  <bruno@clisp.org>
7512
7513         ceil: Move AC_LIBOBJ invocations to module description.
7514         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7515         * modules/ceil (configure.ac): ... to here.
7516
7517 2011-05-21  Bruno Haible  <bruno@clisp.org>
7518
7519         ceilf: Move AC_LIBOBJ invocations to module description.
7520         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7521         * modules/ceilf (configure.ac): ... to here.
7522
7523 2011-05-21  Bruno Haible  <bruno@clisp.org>
7524
7525         floorl: Respect rules for use of AC_LIBOBJ.
7526         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7527         * modules/floorl (configure.ac): ... to here.
7528
7529 2011-05-21  Bruno Haible  <bruno@clisp.org>
7530
7531         floor: Respect rules for use of AC_LIBOBJ.
7532         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7533         * modules/floor (configure.ac): ... to here.
7534
7535 2011-05-21  Bruno Haible  <bruno@clisp.org>
7536
7537         floorf: Move AC_LIBOBJ invocations to module description.
7538         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7539         * modules/floorf (configure.ac): ... to here.
7540
7541 2011-05-20  Bruno Haible  <bruno@clisp.org>
7542
7543         sqrtl: Respect rules for use of AC_LIBOBJ.
7544         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7545         * modules/sqrtl (configure.ac): ... to here.
7546
7547 2011-05-20  Bruno Haible  <bruno@clisp.org>
7548
7549         ldexpl: Respect rules for use of AC_LIBOBJ.
7550         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7551         * modules/ldexpl (configure.ac): ... to here.
7552
7553 2011-05-20  Bruno Haible  <bruno@clisp.org>
7554
7555         frexpl*: Respect rules for use of AC_LIBOBJ.
7556         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7557         invocation from here...
7558         * modules/frexpl (configure.ac): ... to here.
7559         * modules/frexpl-nolibm (configure.ac): ... and here.
7560
7561 2011-05-20  Bruno Haible  <bruno@clisp.org>
7562
7563         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7564         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7565         invocation from here...
7566         * modules/frexp (configure.ac): ... to here.
7567         * modules/frexp-nolibm (configure.ac): ... and here.
7568
7569 2011-05-20  Bruno Haible  <bruno@clisp.org>
7570
7571         isnan: Respect rules for use of AC_LIBOBJ.
7572         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7573         invocations here.
7574         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7575         REPLACE_ISNAN.
7576         * modules/isnand (configure.ac): Likewise.
7577         * modules/isnanl (configure.ac): Likewise.
7578
7579 2011-05-20  Bruno Haible  <bruno@clisp.org>
7580
7581         isnanl*: Respect rules for use of AC_LIBOBJ.
7582         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7583         invocation from here...
7584         * modules/isnanl (configure.ac): ... to here.
7585         * modules/isnanl-nolibm (configure.ac): ... and here.
7586
7587 2011-05-20  Bruno Haible  <bruno@clisp.org>
7588
7589         isnand*: Move AC_LIBOBJ invocations to module description.
7590         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7591         invocation from here...
7592         * modules/isnand (configure.ac): ... to here.
7593         * modules/isnand-nolibm (configure.ac): ... and here.
7594
7595 2011-05-20  Bruno Haible  <bruno@clisp.org>
7596
7597         isnanf*: Move AC_LIBOBJ invocations to module description.
7598         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7599         invocation from here...
7600         * modules/isnanf (configure.ac): ... to here.
7601         * modules/isnanf-nolibm (configure.ac): ... and here.
7602
7603 2011-05-20  Bruno Haible  <bruno@clisp.org>
7604
7605         isnan*: Separate the AC_LIBOBJ invocations.
7606         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7607         AC_LIBOBJ invocation.
7608         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7609         here.
7610         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7611         AC_LIBOBJ invocation.
7612         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7613         here.
7614         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7615         AC_LIBOBJ invocation.
7616         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7617         here.
7618         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7619
7620 2011-05-08  Bruno Haible  <bruno@clisp.org>
7621
7622         isinf: Move AC_LIBOBJ invocations to module description.
7623         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7624         * modules/isinf (configure.ac): ... to here.
7625
7626 2011-05-08  Bruno Haible  <bruno@clisp.org>
7627
7628         isfinite: Move AC_LIBOBJ invocations to module description.
7629         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7630         * modules/isfinite (configure.ac): ... to here.
7631
7632 2011-05-08  Bruno Haible  <bruno@clisp.org>
7633
7634         isblank: Move AC_LIBOBJ invocations to module description.
7635         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7636         here...
7637         * modules/isblank (configure.ac): ... to here.
7638
7639 2011-05-08  Bruno Haible  <bruno@clisp.org>
7640
7641         isapipe: Move AC_LIBOBJ invocations to module description.
7642         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7643         gl_PREREQ_ISAPIPE invocations from here...
7644         * modules/isapipe (configure.ac): ... to here.
7645         (Depends-on): Update condition.
7646
7647 2011-05-08  Bruno Haible  <bruno@clisp.org>
7648
7649         ioctl: Move AC_LIBOBJ invocations to module description.
7650         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7651         invocations from here...
7652         * modules/ioctl (configure.ac): ... to here.
7653         (Depends-on): Update condition.
7654
7655 2011-05-08  Bruno Haible  <bruno@clisp.org>
7656
7657         imaxdiv: Move AC_LIBOBJ invocations to module description.
7658         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7659         invocations from here...
7660         * modules/imaxdiv (configure.ac): ... to here.
7661
7662 2011-05-08  Bruno Haible  <bruno@clisp.org>
7663
7664         imaxabs: Move AC_LIBOBJ invocations to module description.
7665         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7666         invocations from here...
7667         * modules/imaxabs (configure.ac): ... to here.
7668
7669 2011-05-08  Bruno Haible  <bruno@clisp.org>
7670
7671         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7673         AC_LIBOBJ invocations from here...
7674         * modules/getaddrinfo (configure.ac): ... to here.
7675         (Depends-on): Add conditions.
7676
7677 2011-05-08  Bruno Haible  <bruno@clisp.org>
7678
7679         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7680         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7681         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7682         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7683         (gl_PREREQ_INET_PTON): ... from here.
7684         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7685         gl_PREREQ_INET_PTON here.
7686         (Depends-on): Update condition.
7687
7688 2011-05-08  Bruno Haible  <bruno@clisp.org>
7689
7690         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7691         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7692         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7693         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7694         (gl_PREREQ_INET_NTOP): ... from here.
7695         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7696         gl_PREREQ_INET_NTOP here.
7697         (Depends-on): Update condition.
7698
7699 2011-05-08  Bruno Haible  <bruno@clisp.org>
7700
7701         iconv_open: Move AC_LIBOBJ invocations to module description.
7702         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7703         AC_LIBOBJ invocations from here...
7704         * modules/iconv_open (configure.ac): ... to here.
7705
7706 2011-05-08  Bruno Haible  <bruno@clisp.org>
7707
7708         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7709         If module 'iconv_open' is among the main modules and module
7710         'iconv_open-utf' is among the tests dependencies, then
7711         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7712         return the special iconv_t values. Therefore iconv() and iconv_close()
7713         must support these special iconv_t values, already in lib, not only in
7714         tests.
7715         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7716         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7717         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7718         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7719         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7720         (Depends-on): Add the dependencies of iconv_open-utf.
7721         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7722         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7723         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7724
7725 2011-05-08  Bruno Haible  <bruno@clisp.org>
7726
7727         group-member: Move AC_LIBOBJ invocations to module description.
7728         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7729         gl_PREREQ_GROUP_MEMBER invocations from here...
7730         * modules/group-member (configure.ac): ... to here.
7731
7732 2011-05-08  Bruno Haible  <bruno@clisp.org>
7733
7734         grantpt: Move AC_LIBOBJ invocations to module description.
7735         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7736         invocations from here...
7737         * modules/grantpt (configure.ac): ... to here.
7738
7739 2011-05-08  Bruno Haible  <bruno@clisp.org>
7740
7741         glob: Move AC_LIBOBJ invocations to module description.
7742         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7743         from here...
7744         * modules/glob (configure.ac): ... to here.
7745
7746 2011-05-08  Bruno Haible  <bruno@clisp.org>
7747
7748         getusershell: Move AC_LIBOBJ invocations to module description.
7749         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7750         Move AC_LIBOBJ invocation from here...
7751         * modules/getusershell (configure.ac): ... to here.
7752         (Depends-on): Update condition.
7753
7754 2011-05-08  Bruno Haible  <bruno@clisp.org>
7755
7756         gettimeofday: Move AC_LIBOBJ invocations to module description.
7757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7758         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7759         gl_PREREQ_GETTIMEOFDAY invocations from here...
7760         * modules/gettimeofday (configure.ac): ... to here.
7761
7762 2011-05-08  Bruno Haible  <bruno@clisp.org>
7763
7764         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7765         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7766         just gl_FUNC_TZSET.
7767         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7768         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7770         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7771
7772 2011-05-08  Bruno Haible  <bruno@clisp.org>
7773
7774         getsubopt: Move AC_LIBOBJ invocations to module description.
7775         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7776         gl_PREREQ_GETSUBOPT invocations from here...
7777         * modules/getsubopt (configure.ac): ... to here.
7778
7779 2011-05-08  Bruno Haible  <bruno@clisp.org>
7780
7781         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7782         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7783         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7784         * modules/getpass-gnu (configure.ac): ... to here.
7785
7786 2011-05-08  Bruno Haible  <bruno@clisp.org>
7787
7788         getpass: Move AC_LIBOBJ invocations to module description.
7789         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7790         gl_PREREQ_GETPASS invocations from here...
7791         * modules/getpass (configure.ac): ... to here.
7792
7793 2011-05-08  Bruno Haible  <bruno@clisp.org>
7794
7795         getpagesize: Move AC_LIBOBJ invocations to module description.
7796         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7797         from here...
7798         * modules/getpagesize (configure.ac): ... to here.
7799
7800 2011-05-08  Bruno Haible  <bruno@clisp.org>
7801
7802         getopt: Move AC_LIBOBJ invocations to module description.
7803         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7804         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7805         invocations from here...
7806         * modules/getopt-gnu (configure.ac): ... to here.
7807         * modules/getopt-posix (configure.ac): ... and here.
7808         (Depends-on): Update condition.
7809
7810 2011-05-08  Bruno Haible  <bruno@clisp.org>
7811
7812         getopt, argp: Respect rules for use of AC_LIBOBJ.
7813         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7814         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7815         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7816         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7817
7818 2011-05-08  Bruno Haible  <bruno@clisp.org>
7819
7820         getlogin_r: Move AC_LIBOBJ invocations to module description.
7821         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7822         gl_PREREQ_GETLOGIN_R invocations from here...
7823         * modules/getlogin_r (configure.ac): ... to here.
7824
7825 2011-05-08  Bruno Haible  <bruno@clisp.org>
7826
7827         getlogin: Move AC_LIBOBJ invocations to module description.
7828         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7829         here...
7830         * modules/getlogin (configure.ac): ... to here.
7831
7832 2011-05-08  Bruno Haible  <bruno@clisp.org>
7833
7834         getloadavg: Move AC_LIBOBJ invocations to module description.
7835         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7836         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7837         * modules/getloadavg (configure.ac): ... to here.
7838
7839 2011-05-08  Bruno Haible  <bruno@clisp.org>
7840
7841         gethrxtime: Move AC_LIBOBJ invocations to module description.
7842         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7843         LIB_GETHRXTIME from here...
7844         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7845         invocations from here...
7846         * modules/gethrxtime (configure.ac): ... to here.
7847
7848 2011-05-08  Bruno Haible  <bruno@clisp.org>
7849
7850         gethostname: Move AC_LIBOBJ invocations to module description.
7851         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7852         gl_PREREQ_GETHOSTNAME invocations from here...
7853         * modules/gethostname (configure.ac): ... to here.
7854
7855 2011-05-08  Bruno Haible  <bruno@clisp.org>
7856
7857         getgroups: Move AC_LIBOBJ invocations to module description.
7858         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7859         here...
7860         * modules/getgroups (configure.ac): ... to here.
7861
7862 2011-05-08  Bruno Haible  <bruno@clisp.org>
7863
7864         getdtablesize: Move AC_LIBOBJ invocations to module description.
7865         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7866         invocation from here...
7867         * modules/getdtablesize (configure.ac): ... to here.
7868
7869 2011-05-08  Bruno Haible  <bruno@clisp.org>
7870
7871         getdomainname: Move AC_LIBOBJ invocations to module description.
7872         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7873         gl_PREREQ_GETDOMAINNAME invocations from here...
7874         * modules/getdomainname (configure.ac): ... to here.
7875
7876 2011-05-08  Bruno Haible  <bruno@clisp.org>
7877
7878         getline: Move AC_LIBOBJ invocations to module description.
7879         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7880         invocations from here...
7881         * modules/getline (configure.ac): ... to here.
7882
7883 2011-05-08  Bruno Haible  <bruno@clisp.org>
7884
7885         getline: Simplify.
7886         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7887         It's already handled through the module dependency.
7888
7889 2011-05-08  Bruno Haible  <bruno@clisp.org>
7890
7891         getdelim: Move AC_LIBOBJ invocations to module description.
7892         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7893         and gl_PREREQ_GETDELIM invocations from here...
7894         * modules/getdelim (configure.ac): ... to here.
7895         (Depends-on): Fix condition.
7896
7897 2011-05-08  Bruno Haible  <bruno@clisp.org>
7898
7899         getcwd: Move AC_LIBOBJ invocations to module description.
7900         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7901         invocations from here...
7902         * modules/getcwd (configure.ac): ... to here.
7903
7904 2011-05-08  Bruno Haible  <bruno@clisp.org>
7905
7906         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7907         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7908         here...
7909         * modules/getcwd-lgpl (configure.ac): ... to here.
7910
7911 2011-05-07  Bruno Haible  <bruno@clisp.org>
7912
7913         crypto/gc: Move AC_LIBOBJ invocations to module description.
7914         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7915         * modules/crypto/gc (configure.ac): ... to here.
7916
7917 2011-05-07  Bruno Haible  <bruno@clisp.org>
7918
7919         fwriting: Move AC_LIBOBJ invocations to module description.
7920         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7921         here...
7922         * modules/fwriting (configure.ac): ... to here.
7923
7924 2011-05-07  Bruno Haible  <bruno@clisp.org>
7925
7926         fwritable: Move AC_LIBOBJ invocations to module description.
7927         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7928         here...
7929         * modules/fwritable (configure.ac): ... to here.
7930
7931 2011-05-07  Bruno Haible  <bruno@clisp.org>
7932
7933         futimens: Move AC_LIBOBJ invocations to module description.
7934         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7935         here...
7936         * modules/futimens (configure.ac): ... to here.
7937
7938 2011-05-07  Bruno Haible  <bruno@clisp.org>
7939
7940         ftruncate: Move AC_LIBOBJ invocations to module description.
7941         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7942         gl_PREREQ_FTRUNCATE invocations from here...
7943         * modules/ftruncate (configure.ac): ... to here.
7944
7945 2011-05-07  Bruno Haible  <bruno@clisp.org>
7946
7947         fsync: Move AC_LIBOBJ invocations to module description.
7948         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7949         invocations from here...
7950         * modules/fsync (configure.ac): ... to here.
7951
7952 2011-05-07  Bruno Haible  <bruno@clisp.org>
7953
7954         fsusage: Move AC_LIBOBJ invocations to module description.
7955         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7956         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7957         * modules/fsusage (configure.ac): ... to here.
7958
7959 2011-05-07  Bruno Haible  <bruno@clisp.org>
7960
7961         freopen: Move AC_LIBOBJ invocations to module description.
7962         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7963         invocations from here...
7964         * modules/freopen (configure.ac): ... to here.
7965
7966 2011-05-07  Bruno Haible  <bruno@clisp.org>
7967
7968         free: Move AC_LIBOBJ invocations to module description.
7969         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7970         invocations from here...
7971         * modules/free (configure.ac): ... to here.
7972
7973 2011-05-07  Bruno Haible  <bruno@clisp.org>
7974
7975         freadable: Move AC_LIBOBJ invocations to module description.
7976         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7977         here...
7978         * modules/freadable (configure.ac): ... to here.
7979
7980 2011-05-07  Bruno Haible  <bruno@clisp.org>
7981
7982         fpurge: Move AC_LIBOBJ invocations to module description.
7983         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7984         invocations from here...
7985         * modules/fpurge (configure.ac): ... to here.
7986
7987 2011-05-07  Bruno Haible  <bruno@clisp.org>
7988
7989         fpending: Move AC_LIBOBJ invocations to module description.
7990         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7991         gl_FUNC_FPENDING.
7992         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7993         invocations from here...
7994         * modules/fpending (configure.ac): ... to here.
7995
7996 2011-05-07  Bruno Haible  <bruno@clisp.org>
7997
7998         fopen: Move AC_LIBOBJ invocations to module description.
7999         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8000         invocations from here...
8001         * modules/fopen (configure.ac): ... to here.
8002
8003 2011-05-07  Bruno Haible  <bruno@clisp.org>
8004
8005         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8006         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8007         gl_FUNC_FNMATCH_POSIX.
8008         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8009         invocations from here...
8010         * modules/fnmatch (configure.ac): ... to here.
8011         * modules/fnmatch-gnu (configure.ac): ... and here.
8012
8013 2011-05-07  Bruno Haible  <bruno@clisp.org>
8014
8015         flock: Move AC_LIBOBJ invocations to module description.
8016         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8017         invocations from here...
8018         * modules/flock (configure.ac): ... to here.
8019
8020 2011-05-07  Bruno Haible  <bruno@clisp.org>
8021
8022         fileblocks: Move AC_LIBOBJ invocations to module description.
8023         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8024         gl_PREREQ_FILEBLOCKS invocations from here...
8025         * modules/fileblocks (configure.ac): ... to here.
8026
8027 2011-05-06  Bruno Haible  <bruno@clisp.org>
8028
8029         fflush: Move AC_LIBOBJ invocations to module description.
8030         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8031         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8032         invocations from here...
8033         * modules/fflush (configure.ac): ... to here.
8034
8035 2011-05-06  Bruno Haible  <bruno@clisp.org>
8036
8037         fdopendir: Move AC_LIBOBJ invocations to module description.
8038         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8039         here...
8040         * modules/fdopendir (configure.ac): ... to here.
8041         (Depends-on): Improve conditions.
8042
8043 2011-05-06  Bruno Haible  <bruno@clisp.org>
8044
8045         _Exit: Move AC_LIBOBJ invocations to module description.
8046         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8047         invocations from here...
8048         * modules/_Exit (configure.ac): ... to here.
8049
8050 2011-05-21  Bruno Haible  <bruno@clisp.org>
8051
8052         euidaccess: Respect rules for use of AC_LIBOBJ.
8053         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8055         from here...
8056         * modules/euidaccess (configure.ac): ... to here.
8057
8058 2011-05-06  Bruno Haible  <bruno@clisp.org>
8059
8060         error: Move AC_LIBOBJ invocations to module description.
8061         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8062         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8063         invocations from here...
8064         * modules/error (configure.ac): ... to here.
8065
8066 2011-05-06  Bruno Haible  <bruno@clisp.org>
8067
8068         duplocale: Move AC_LIBOBJ invocations to module description.
8069         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8070         gl_PREREQ_DUPLOCALE invocations from here...
8071         * modules/duplocale (configure.ac): ... to here.
8072
8073 2011-05-05  Bruno Haible  <bruno@clisp.org>
8074
8075         dirfd: Move AC_LIBOBJ invocations to module description.
8076         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8077         gl_FUNC_DIRFD.
8078         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8079         here...
8080         * modules/dirfd (configure.ac): ... to here.
8081         (Depends-on): Fix condition.
8082
8083 2011-05-05  Bruno Haible  <bruno@clisp.org>
8084
8085         chown: Respect rules for use of AC_LIBOBJ.
8086         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8087         * modules/chown (configure.ac): ... to here.
8088
8089 2011-05-05  Bruno Haible  <bruno@clisp.org>
8090
8091         chdir-long: Move AC_LIBOBJ invocations to module description.
8092         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8093         gl_PREREQ_CHDIR_LONG invocations from here...
8094         * modules/chdir-long (configure.ac): ... to here.
8095
8096 2011-05-05  Bruno Haible  <bruno@clisp.org>
8097
8098         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8099         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8100         from here...
8101         * modules/canonicalize-lgpl (configure.ac): ... to here.
8102
8103 2011-05-05  Bruno Haible  <bruno@clisp.org>
8104
8105         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8106         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8107         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8108         REPLACE_CALLOC.
8109         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8110         * modules/calloc-gnu (configure.ac): Likewise.
8111
8112 2011-05-05  Bruno Haible  <bruno@clisp.org>
8113
8114         btowc: Move AC_LIBOBJ invocations to module description.
8115         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8116         invocations from here...
8117         * modules/btowc (configure.ac): ... to here.
8118
8119 2011-05-21  Bruno Haible  <bruno@clisp.org>
8120
8121         atexit: Move AC_LIBOBJ invocations to module description.
8122         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8124         here...
8125         * modules/atexit (configure.ac): ... to here.
8126
8127 2011-05-05  Bruno Haible  <bruno@clisp.org>
8128
8129         atoll: Move AC_LIBOBJ invocations to module description.
8130         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8131         invocations from here...
8132         * modules/atoll (configure.ac): ... to here.
8133
8134 2011-05-05  Bruno Haible  <bruno@clisp.org>
8135
8136         argz: Move AC_LIBOBJ invocations to module description.
8137         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8138         * modules/argz (configure.ac): ... to here.
8139
8140 2011-05-05  Bruno Haible  <bruno@clisp.org>
8141
8142         alphasort: Move AC_LIBOBJ invocations to module description.
8143         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8144         gl_PREREQ_ALPHASORT invocations from here...
8145         * modules/alphasort (configure.ac): ... to here.
8146
8147 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8148
8149         verify: new macro verify_expr; verify_true deprecated
8150         * NEWS: Mention this.
8151         * doc/verify.texi (Compile-time Assertions): Document this.
8152         * lib/verify.h (verify_true): Deprecate.
8153         (verify_expr): New macro.
8154         * tests/test-verify.c (function): Test verify_expr.
8155
8156 2011-06-14  Jim Meyering  <meyering@redhat.com>
8157
8158         init.sh: give more portable redirection-related advice in a comment
8159         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8160         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8161         for lots of discussion.  Stefano Lattarini suggested the solution
8162         of putting "9>&2" after the command.  Reported by Bruno Haible.
8163
8164 2011-06-13  Bruno Haible  <bruno@clisp.org>
8165
8166         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8167         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8168         'none'.
8169
8170 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8171
8172         ftoastr: use strtof only if HAVE_STRTOF
8173         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8175         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8176         * modules/ftoastr (configure.ac): Check for strtof.
8177
8178 2011-06-13  Bruno Haible  <bruno@clisp.org>
8179
8180         gnulib-tool: Addendum to 2011-06-08 commit.
8181         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8182         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8183
8184 2011-06-13  Bruno Haible  <bruno@clisp.org>
8185
8186         fseeko: Provide a non-inline replacement of fseek().
8187         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8188         * modules/fseeko (Depends-on): Add fseek.
8189         * modules/fseek (License): Change to LGPLv2+.
8190
8191 2011-06-13  Bruno Haible  <bruno@clisp.org>
8192
8193         ftello: Provide a non-inline replacement of ftell().
8194         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8195         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8196         not have ftello() (such as on mingw).
8197         * modules/ftello (Depends-on): Add ftell.
8198         * modules/ftell (License): Change to LGPLv2+.
8199
8200 2011-05-07  Bruno Haible  <bruno@clisp.org>
8201
8202         ftell: Move AC_LIBOBJ invocations to module description.
8203         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8204         * modules/ftell (configure.ac): ... to here.
8205
8206 2011-05-07  Bruno Haible  <bruno@clisp.org>
8207
8208         ftello: Respect rules for use of AC_LIBOBJ.
8209         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8210         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8211         here...
8212         * modules/ftello (configure.ac): ... to here.
8213
8214 2011-05-07  Bruno Haible  <bruno@clisp.org>
8215
8216         fseeko: Simplify.
8217         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8218         (gl_FUNC_FSEEKO): Inline it here.
8219
8220 2011-05-07  Bruno Haible  <bruno@clisp.org>
8221
8222         fseek: Move AC_LIBOBJ invocations to module description.
8223         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8224         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8225         * modules/fseek (configure.ac): ... to here.
8226
8227 2011-05-07  Bruno Haible  <bruno@clisp.org>
8228
8229         fseek: Respect rules for use of AC_LIBOBJ.
8230         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8231         here...
8232         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8233
8234 2011-05-07  Bruno Haible  <bruno@clisp.org>
8235
8236         fseeko: Respect rules for use of AC_LIBOBJ.
8237         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8238         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8239         here...
8240         * modules/fseeko (configure.ac): ... to here.
8241
8242 2011-06-13  Bruno Haible  <bruno@clisp.org>
8243
8244         gnulib-tool: Allow comments in the 'Depends-on' section.
8245         * doc/gnulib.texi (Module description): Mention comment syntax in the
8246         Depends-on section.
8247         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8248
8249 2011-06-13  Bruno Haible  <bruno@clisp.org>
8250
8251         file-set.h: guard __attibute__ use, now that it's not always defined
8252         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8253         versions that support it.  This fixes a coreutils build failure with
8254         the vendor cc on HP-UX 11.31.
8255
8256 2011-06-12  Bruno Haible  <bruno@clisp.org>
8257
8258         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8259         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8260         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8261         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8262         (acl, aclsort): New declarations.
8263         (aclv_nontrivial): New declaration.
8264         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8265         (file_has_acl): Read also the second kind of HP-UX ACLs.
8266         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8267         kind of HP-UX ACLs if the first kind fails.
8268         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8269         second kind of HP-UX ACLs.
8270         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8271         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8272         agree.
8273         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8274         hpuxjfs.
8275         Handle hpuxjfs.
8276         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8277         hpuxjfs.
8278         Handle hpuxjfs.
8279         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8280         (func_test_same_acls): Use both lsacl and getacl.
8281         Handle hpuxjfs.
8282         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8283         (func_test_same_acls): Use both lsacl and getacl.
8284         Handle hpuxjfs.
8285
8286 2011-06-12  Bruno Haible  <bruno@clisp.org>
8287
8288         acl: Complete the 2010-08-10 fix.
8289         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8290         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8291         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8292         explicitly.
8293         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8294         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8295
8296 2011-06-12  Bruno Haible  <bruno@clisp.org>
8297
8298         spawn-pipe tests: Comments.
8299         * tests/test-spawn-pipe-child.c (main): Update comment.
8300         Reported by James Youngman <jay@gnu.org>.
8301
8302 2011-06-11  James Youngman  <jay@gnu.org>
8303
8304         New module 'stat-size'.
8305         * modules/stat-size: New module.  Provides macros for accessing
8306         file size information in instances of struct stat.  Depends on the
8307         fileblocks module because it calls st_blocks.
8308         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8309         * doc/gnulib.texi: Include stat-size.texi.
8310         * doc/stat-size.texi: Documentation for this module.
8311         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8312         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8313         AC_STRUCT_ST_BLOCKS.
8314
8315 2011-06-09  Bruno Haible  <bruno@clisp.org>
8316
8317         thread: Support pthreads-win32.
8318         * lib/glthread/thread.h (gl_thread_self): Define differently on
8319         pthreads-win32.
8320         (gl_null_thread): New declaration.
8321         (gl_thread_self_pointer): New macro.
8322         * lib/glthread/thread.c (gl_null_thread): New constant.
8323         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8324         gl_thread_self.
8325         * tests/test-tls.c: Likewise.
8326         Suggested by Paul Eggert. Reported by Eric Blake.
8327
8328 2011-06-09  Bruno Haible  <bruno@clisp.org>
8329
8330         thread: Fix confusion between NULL and 0.
8331         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8332         Reported by Paul Eggert.
8333
8334 2011-06-09  Bruno Haible  <bruno@clisp.org>
8335
8336         spawn-pipe tests: Avoid test failure on HP-UX 11.
8337         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8338         is closed.
8339
8340 2011-06-09  Bruno Haible  <bruno@clisp.org>
8341
8342         acl tests: Fix compilation error on HP-UX 11.
8343         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8344
8345 2011-06-09  Bruno Haible  <bruno@clisp.org>
8346
8347         rmdir: Avoid test failure on HP-UX 10.20.
8348         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8349         EEXIST.
8350
8351 2011-06-08  Eric Blake  <eblake@redhat.com>
8352
8353         perror: fix test on mingw
8354         * modules/perror-tests (Depends-on): Add dup2.
8355
8356         strerror_r-posix: fix on MacOS
8357         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8359         logic bug.
8360         * lib/strerror_r.c (strerror_r): Fix the bug.
8361         * lib/strerror.c (strerror): Likewise.
8362         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8363         problem.
8364         * doc/posix-functions/strerror.texi (strerror): Likewise.
8365         * doc/posix-functions/perror.texi (perror): Likewise.
8366         * tests/test-strerror.c (main): Enhance test.
8367         * tests/test-strerror_r.c (main): Likewise.
8368
8369 2011-06-08  Bruno Haible  <bruno@clisp.org>
8370
8371         gnulib-tool: Better isolation between different gnulib-tool invocations.
8372         * gnulib-tool: New option --witness-c-macro.
8373         (witness_c_macro): New variable.
8374         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8375         AM_CPPFLAGS define it as a C macro.
8376         (func_emit_tests_Makefile_am): Likewise.
8377         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8378         read it from there.
8379         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8380         m4_define, not AC_DEFUN.
8381         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8382         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8383         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8384         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8385         s|...|...|, to substitute the values of the GNULIB_* module indicator
8386         variables.
8387         * modules/dirent (Makefile.am): Likewise.
8388         * modules/fcntl-h (Makefile.am): Likewise.
8389         * modules/iconv-h (Makefile.am): Likewise.
8390         * modules/langinfo (Makefile.am): Likewise.
8391         * modules/locale (Makefile.am): Likewise.
8392         * modules/math (Makefile.am): Likewise.
8393         * modules/netdb (Makefile.am): Likewise.
8394         * modules/poll-h (Makefile.am): Likewise.
8395         * modules/pty (Makefile.am): Likewise.
8396         * modules/search (Makefile.am): Likewise.
8397         * modules/signal (Makefile.am): Likewise.
8398         * modules/spawn (Makefile.am): Likewise.
8399         * modules/stdio (Makefile.am): Likewise.
8400         * modules/stdlib (Makefile.am): Likewise.
8401         * modules/string (Makefile.am): Likewise.
8402         * modules/sys_ioctl (Makefile.am): Likewise.
8403         * modules/sys_select (Makefile.am): Likewise.
8404         * modules/sys_socket (Makefile.am): Likewise.
8405         * modules/sys_stat (Makefile.am): Likewise.
8406         * modules/sys_times (Makefile.am): Likewise.
8407         * modules/sys_utsname (Makefile.am): Likewise.
8408         * modules/sys_wait (Makefile.am): Likewise.
8409         * modules/termios (Makefile.am): Likewise.
8410         * modules/time (Makefile.am): Likewise.
8411         * modules/unistd (Makefile.am): Likewise.
8412         * modules/wchar (Makefile.am): Likewise.
8413
8414 2011-06-08  Eric Blake  <eblake@redhat.com>
8415
8416         strerror: simplify replacement
8417         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8418         * modules/strerror (configure.ac): No prereqs needed here...
8419         * modules/strerror-override (configure.ac): ...but this needs it.
8420         (Files): Add file for needed prereq macro.
8421
8422 2011-06-08  Bruno Haible  <bruno@clisp.org>
8423
8424         strerror_r-posix: Tweaks.
8425         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8426         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8427         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8428         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8429         (gl_FUNC_STRERROR_R): ... to here.
8430         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8431
8432 2011-06-07  Eric Blake  <eblake@redhat.com>
8433
8434         perror: document fixed bugs
8435         * doc/posix-functions/perror.texi (perror): Document recent
8436         patches.
8437
8438 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8439
8440         stat-time: get_stat_birthtime failure is better-defined
8441         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8442         return a timestamp whose tv_sec and tv_nsec values are both -1.
8443         Previously, the spec said only that the tv_nsec value was negative.
8444         This upward-compatible change simplifies GNU tar a bit.
8445
8446 2011-06-07  Eric Blake  <eblake@redhat.com>
8447
8448         strerror_r-posix: work around cygwin 1.7.9
8449         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8450         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8451         bug without replacing strerror_r.
8452         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8453         strerror_r is buggy, but without requiring strerror_r compilation.
8454         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8455
8456         test-perror: relax test to ignore cygwin bug
8457         * tests/test-perror2.c (main): Relax test on requiring detection
8458         of stream errors, and use unbuffered stream.
8459         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8460         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8461         * doc/posix-functions/fputc.texi (fputc): Likewise.
8462         * doc/posix-functions/fputs.texi (fputs): Likewise.
8463         * doc/posix-functions/fputws.texi (fputws): Likewise.
8464         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8465         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8466         * doc/posix-functions/getopt.texi (getopt): Likewise.
8467         * doc/posix-functions/perror.texi (perror): Likewise.
8468         * doc/posix-functions/printf.texi (printf): Likewise.
8469         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8470         * doc/posix-functions/psignal.texi (psignal): Likewise.
8471         * doc/posix-functions/putc.texi (putc): Likewise.
8472         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8473         Likewise.
8474         * doc/posix-functions/putchar.texi (putchar): Likewise.
8475         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8476         Likewise.
8477         * doc/posix-functions/puts.texi (puts): Likewise.
8478         * doc/posix-functions/putwc.texi (putwc): Likewise.
8479         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8480         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8481         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8482         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8483         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8484         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8485         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8486         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8487
8488 2011-05-22  Bruno Haible  <bruno@clisp.org>
8489
8490         strerror: Move AC_LIBOBJ invocations to module description.
8491         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8492         gl_PREREQ_STRERROR invocations from here...
8493         * modules/strerror (configure.ac): ... to here.
8494
8495 2011-05-21  Bruno Haible  <bruno@clisp.org>
8496
8497         perror: Use common idiom.
8498         * modules/perror (configure.ac): Reorder statements.
8499
8500 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8501
8502         tests: fix usage message in 'mktempd_'
8503         * tests/init.sh (mktempd_): In the usage message, use literal
8504         'mktempd_', not '$ME' (which is even undefined), as the name of
8505         the subroutine.
8506
8507 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8508
8509         tests init: new function 'fatal_', for hard errors
8510         Before this patch, the only way offered by tests/init.sh to
8511         properly signal a hard error was the `framework_failure_'
8512         function.  But the error message issued by that function,
8513         as its name would suggest, refers to a set-up failure in the
8514         testsuite, while hard errors can obviously also be due to
8515         other reasons.  The best way to fix this inconsistency is to
8516         introduce a new function with a more general error message.
8517         * tests/init.sh (fatal_): New function.
8518
8519 2011-06-06  Eric Blake  <eblake@redhat.com>
8520
8521         canonicalize-lgpl: use common idiom
8522         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8523         over newer POSIX -Rf.
8524         Reported by Bruno Haible.
8525
8526         canonicalize-lgpl: work around AIX realpath bug
8527         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8528         * doc/posix-functions/realpath.texi (realpath): Document it.
8529         Reported by Bruno Haible.
8530
8531         strerror: work around FreeBSD bug
8532         * lib/strerror.c (strerror): Special case 0.
8533         Reported by Bruno Haible.
8534
8535         strerror-override: avoid bloating errno module
8536         * modules/errno (Files, configure.ac): Move replacement strings...
8537         * modules/strerror-override: ...to new module.
8538         * modules/strerror (Depends-on): Add strerror-override.
8539         * modules/strerror_r-posix (Depends-on): Likewise.
8540         * MODULES.html.sh: Document new module.
8541         Reported by Bruno Haible.
8542
8543 2011-06-06  Bruno Haible  <bruno@clisp.org>
8544
8545         spawn-pipe tests: Rename program.
8546         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8547         * tests/test-spawn-pipe-child.c: Update comment.
8548         * tests/test-spawn-pipe.sh: Update.
8549         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8550
8551         spawn-pipe tests: Link the child program only against libc.
8552         * tests/test-spawn-pipe-child.c: New file, extracted from
8553         tests/test-spawn-pipe.c.
8554         (main): Expect only one argument.
8555         (is_open): New function, copied from tests/test-pipe.c.
8556         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8557         (child_main): Remove function.
8558         (test_pipe): Pass only one argument to the child program.
8559         (main): Remove child process code. Expect the child program's name as
8560         first argument.
8561         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8562         argument.
8563         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8564         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8565         test-spawn-pipe-child against no libraries.
8566
8567 2011-06-06  Bruno Haible  <bruno@clisp.org>
8568
8569         careadlinkat: Avoid mismatch between ssize_t and int.
8570         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8571         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8572
8573 2011-06-06  Jim Meyering  <meyering@redhat.com>
8574
8575         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8576         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8577         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8578
8579 2011-06-05  Bruno Haible  <bruno@clisp.org>
8580
8581         ansi-c++-opt: Interoperability with libtool.
8582         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8583         set the variable to "no", not to ":".
8584         * NEWS: Mention the change.
8585
8586 2011-06-05  Bruno Haible  <bruno@clisp.org>
8587
8588         acl: Fix test failure on AIX 7.
8589         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8590         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8591
8592 2011-06-05  Bruno Haible  <bruno@clisp.org>
8593
8594         pipe-filter-ii: Fix test failure on AIX and IRIX.
8595         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8596         with EAGAIN, retry with a smaller buffer size.
8597
8598 2011-06-05  Bruno Haible  <bruno@clisp.org>
8599
8600         localename: Fix link dependencies.
8601         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8602         * modules/localename-tests (Makefile.am): Link test-localename with
8603         $(LIBTHREAD).
8604
8605 2011-06-05  Bruno Haible  <bruno@clisp.org>
8606
8607         error: Avoid gcc warning.
8608         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8609
8610 2011-06-05  Bruno Haible  <bruno@clisp.org>
8611
8612         unsetenv: Avoid gcc warning.
8613         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8614
8615 2011-06-05  Bruno Haible  <bruno@clisp.org>
8616
8617         setenv: Avoid gcc warning.
8618         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8619
8620 2011-06-05  Bruno Haible  <bruno@clisp.org>
8621
8622         sys_select: Ensure memset is declared also on AIX 7.
8623         * lib/sys_select.in.h: Include <string.h> also on AIX.
8624         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8625         self-contained also on AIX 7.1.
8626
8627 2011-06-04  Jim Meyering  <meyering@redhat.com>
8628
8629         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8630         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8631         function name, "error".
8632         (_gl_translatable_diag_func_re): New configurable variable.
8633
8634 2011-06-04  Bruno Haible  <bruno@clisp.org>
8635
8636         getopt: Avoid gcc warning.
8637         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8638
8639 2011-06-04  Bruno Haible  <bruno@clisp.org>
8640
8641         strerror_r: Fix comments.
8642         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8643         commit.
8644
8645 2011-06-04  Bruno Haible  <bruno@clisp.org>
8646
8647         perror: Fix compilation error.
8648         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8649         Undefine fprintf, not sprintf.
8650         * modules/perror (Depends-on): Remove intprops, verify.
8651
8652 2011-06-04  Bruno Haible  <bruno@clisp.org>
8653
8654         setlocale: Enable replacement on Cygwin 1.5.
8655         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8656         Cygwin 1.5.x.
8657         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8658         LC_CTYPE category also exists on Cygwin 1.5.x.
8659
8660 2011-06-04  Bruno Haible  <bruno@clisp.org>
8661
8662         strerror-override: Don't disable symbol renamings.
8663         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8664         * lib/strerror-override.c: Include config.h.
8665         (strerror_override): Don't undefine.
8666
8667 2011-06-03  Bruno Haible  <bruno@clisp.org>
8668
8669         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8670         * lib/localename.h: Update copyright header.
8671         * lib/localename.c: Likewise.
8672         * lib/relocatable.h: Likewise.
8673         * lib/relocatable.c: Likewise.
8674
8675 2011-06-02  Bruno Haible  <bruno@clisp.org>
8676
8677         doc: Fix a module name.
8678         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8679
8680 2011-06-02  Bruno Haible  <bruno@clisp.org>
8681
8682         pipe2: Remove dependency on 'nonblocking' module.
8683         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8684         O_NONBLOCK is defined by gnulib.
8685         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8686         is zero.
8687         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8688         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8689         defined by gnulib.
8690         (get_nonblocking_flag): New function.
8691         (main): Test O_NONBLOCK flag only if it is nonzero.
8692         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8693
8694 2011-06-03  Jim Meyering  <meyering@redhat.com>
8695
8696         maint: three new prohibit-header-without-use rules
8697         Prohibit use of cloexec.h, posixver.h, same.h without use.
8698         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8699         (sc_prohibit_posixver_without_use): Likewise.
8700         (sc_prohibit_same_without_use): Likewise.
8701
8702 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8703
8704         allocator: 'die' routine is now given requested size
8705         * lib/allocator.h (struct allocator.die): New size arg.
8706         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8707         If the actual problem is an ssize_t limitation, not a size_t or
8708         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8709
8710 2011-06-01  Eric Blake  <eblake@redhat.com>
8711
8712         strerror: drop strerror_r dependency
8713         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8714         * lib/strerror-override.c (strerror_override): ...to new file.
8715         * lib/strerror-override.h: Add prototype.
8716         * lib/strerror-impl.h: Delete.
8717         * lib/strerror.c (strerror): New implementation.
8718         * modules/errno (Files): Add new files.
8719         (configure.ac): Compile new file as appropriate.
8720         * modules/strerror (Files): Drop unused file.
8721         (Depends-on): Drop strerror_r-posix.
8722         * MODULES.html.sh: Document strerror_r-posix.
8723         Requested by Sam Steingold.
8724
8725         perror: call strerror_r directly
8726         * modules/perror (Files): Drop strerror-impl.h.
8727         * lib/perror.c (perror): Use our own stack buffer, rather than
8728         calling a wrapper that uses static storage.
8729         * doc/posix-functions/perror.texi (perror): Document a limitation
8730         of our replacement.
8731
8732         strerror_r: fix includes for FreeBSD
8733         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8734         since we use abort on some platforms.
8735         Reported by Matthias Bolte.
8736
8737 2011-05-31  Bruno Haible  <bruno@clisp.org>
8738
8739         Fix link errors in tests: openat-die uses gettext-h.
8740         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8741         against $(LIBINTL).
8742         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8743         against $(LIBINTL).
8744         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8745         $(LIBINTL).
8746         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8747         against $(LIBINTL).
8748         * modules/linkat-tests (Makefile.am): Link test-linkat against
8749         $(LIBINTL).
8750         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8751         $(LIBINTL).
8752         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8753         against $(LIBINTL).
8754         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8755         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8756         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8757         $(LIBINTL).
8758         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8759         $(LIBINTL).
8760         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8761         $(LIBINTL).
8762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8763
8764 2011-05-31  Bruno Haible  <bruno@clisp.org>
8765
8766         Fix link errors in tests: wait-process uses gettext-h.
8767         * modules/nonblocking-pipe-tests (Makefile.am): Set
8768         test_nonblocking_pipe_main_LDADD.
8769         * modules/nonblocking-socket-tests (Makefile.am): Link
8770         test-nonblocking-socket-main against $(LIBINTL).
8771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8772
8773 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8774
8775         assert-h: work around 'verify' incompatibility
8776         * lib/verify.h: Use @...@ directives, not ifdef.
8777         * modules/assert-h (assert.h): Implement the directives.
8778         (assert.h): Substitute the symbol-prefix more consistently.
8779
8780 2011-05-29  Jim Meyering  <meyering@redhat.com>
8781
8782         trim: remove three superfluous assignments
8783         * lib/trim.c (trim2): Remove three superfluous assignments
8784         and correct brace positioning.
8785
8786 2011-05-29  Bruno Haible  <bruno@clisp.org>
8787
8788         wctype-h: Avoid namespace pollution on Solaris 2.6.
8789         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8790         identifiers.
8791         * doc/posix-headers/wctype.texi: Mention the problem.
8792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8793
8794 2011-05-28  Jim Meyering  <meyering@redhat.com>
8795
8796         parse-datetime.y: accommodate -Wstrict-overflow
8797         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8798         placate -Wstrict-overflow.
8799
8800         trim: avoid a warning from -O2 -Wstrict-overflow
8801         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8802
8803 2011-05-29  Bruno Haible  <bruno@clisp.org>
8804
8805         gnulib-tool: Fix bug in yesterday's commit.
8806         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8807         twice.
8808
8809 2011-05-29  Bruno Haible  <bruno@clisp.org>
8810
8811         Allow multiple gnulib generated include files to be combined.
8812         * gnulib-tool (func_compute_include_guard_prefix): New function.
8813         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8814         ${gl_include_guard_prefix} references.
8815         (func_import, func_create_testdir): Invoke
8816         func_compute_include_guard_prefix.
8817         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8818         * lib/ctype.in.h: Likewise.
8819         * lib/dirent.in.h: Likewise.
8820         * lib/errno.in.h: Likewise.
8821         * lib/fcntl.in.h: Likewise.
8822         * lib/float.in.h: Likewise.
8823         * lib/getopt.in.h: Likewise.
8824         * lib/iconv.in.h: Likewise.
8825         * lib/langinfo.in.h: Likewise.
8826         * lib/locale.in.h: Likewise.
8827         * lib/math.in.h: Likewise.
8828         * lib/netdb.in.h: Likewise.
8829         * lib/netinet_in.in.h: Likewise.
8830         * lib/poll.in.h: Likewise.
8831         * lib/pthread.in.h: Likewise.
8832         * lib/pty.in.h: Likewise.
8833         * lib/sched.in.h: Likewise.
8834         * lib/se-selinux.in.h: Likewise.
8835         * lib/search.in.h: Likewise.
8836         * lib/signal.in.h: Likewise.
8837         * lib/spawn.in.h: Likewise.
8838         * lib/stdarg.in.h: Likewise.
8839         * lib/stddef.in.h: Likewise.
8840         * lib/stdint.in.h: Likewise.
8841         * lib/stdio.in.h: Likewise.
8842         * lib/stdlib.in.h: Likewise.
8843         * lib/string.in.h: Likewise.
8844         * lib/strings.in.h: Likewise.
8845         * lib/sys_file.in.h: Likewise.
8846         * lib/sys_ioctl.in.h: Likewise.
8847         * lib/sys_select.in.h: Likewise.
8848         * lib/sys_socket.in.h: Likewise.
8849         * lib/sys_stat.in.h: Likewise.
8850         * lib/sys_time.in.h: Likewise.
8851         * lib/sys_times.in.h: Likewise.
8852         * lib/sys_uio.in.h: Likewise.
8853         * lib/sys_utsname.in.h: Likewise.
8854         * lib/sys_wait.in.h: Likewise.
8855         * lib/sysexits.in.h: Likewise.
8856         * lib/termios.in.h: Likewise.
8857         * lib/time.in.h: Likewise.
8858         * lib/unistd.in.h: Likewise.
8859         * lib/wchar.in.h: Likewise.
8860         * lib/wctype.in.h: Likewise.
8861         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8862         * modules/ctype (Makefile.am): Likewise.
8863         * modules/dirent (Makefile.am): Likewise.
8864         * modules/errno (Makefile.am): Likewise.
8865         * modules/fcntl-h (Makefile.am): Likewise.
8866         * modules/float (Makefile.am): Likewise.
8867         * modules/getopt-posix (Makefile.am): Likewise.
8868         * modules/iconv-h (Makefile.am): Likewise.
8869         * modules/langinfo (Makefile.am): Likewise.
8870         * modules/locale (Makefile.am): Likewise.
8871         * modules/math (Makefile.am): Likewise.
8872         * modules/netdb (Makefile.am): Likewise.
8873         * modules/netinet_in (Makefile.am): Likewise.
8874         * modules/poll-h (Makefile.am): Likewise.
8875         * modules/pthread (Makefile.am): Likewise.
8876         * modules/pty (Makefile.am): Likewise.
8877         * modules/sched (Makefile.am): Likewise.
8878         * modules/search (Makefile.am): Likewise.
8879         * modules/selinux-h (Makefile.am): Likewise.
8880         * modules/signal (Makefile.am): Likewise.
8881         * modules/spawn (Makefile.am): Likewise.
8882         * modules/stdarg (Makefile.am): Likewise.
8883         * modules/stddef (Makefile.am): Likewise.
8884         * modules/stdint (Makefile.am): Likewise.
8885         * modules/stdio (Makefile.am): Likewise.
8886         * modules/stdlib (Makefile.am): Likewise.
8887         * modules/string (Makefile.am): Likewise.
8888         * modules/strings (Makefile.am): Likewise.
8889         * modules/sys_file (Makefile.am): Likewise.
8890         * modules/sys_ioctl (Makefile.am): Likewise.
8891         * modules/sys_select (Makefile.am): Likewise.
8892         * modules/sys_socket (Makefile.am): Likewise.
8893         * modules/sys_stat (Makefile.am): Likewise.
8894         * modules/sys_time (Makefile.am): Likewise.
8895         * modules/sys_times (Makefile.am): Likewise.
8896         * modules/sys_uio (Makefile.am): Likewise.
8897         * modules/sys_utsname (Makefile.am): Likewise.
8898         * modules/sys_wait (Makefile.am): Likewise.
8899         * modules/sysexits (Makefile.am): Likewise.
8900         * modules/termios (Makefile.am): Likewise.
8901         * modules/time (Makefile.am): Likewise.
8902         * modules/unistd (Makefile.am): Likewise.
8903         * modules/wchar (Makefile.am): Likewise.
8904         * modules/wctype-h (Makefile.am): Likewise.
8905         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8906
8907 2011-05-29  Bruno Haible  <bruno@clisp.org>
8908
8909         assert-h: Allow multiple gnulib generated replacements to coexist.
8910         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8911
8912 2011-05-29  Bruno Haible  <bruno@clisp.org>
8913
8914         argp: Allow coexistence with strerror_r-posix module.
8915         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8916         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8917         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8918         not the glibc signature.
8919
8920 2011-05-28  Bruno Haible  <bruno@clisp.org>
8921
8922         gnulib-tool: Alternative structure of testdirs, similar to --import.
8923         * gnulib-tool: New option --single-configure.
8924         (func_usage): Document it.
8925         (single_configure): New variable.
8926         (func_modules_transitive_closure_separately,
8927         func_modules_transitive_closure_separately,
8928         func_determine_use_libtests, func_modules_add_dummy_separately,
8929         func_modules_to_filelist_separately): New functions, extracted from
8930         func_import.
8931         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8932         (func_import): Use the new functions.
8933         (func_create_testdir): Set final_modules. Handle $single_configure =
8934         true case.
8935
8936 2011-05-28  Bruno Haible  <bruno@clisp.org>
8937
8938         getloadavg: Remove an unreliable safety check.
8939         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8940         getloadavg.c is in place.
8941         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8942         Reported by Sam Steingold <sds@gnu.org>.
8943
8944 2011-05-28  Bruno Haible  <bruno@clisp.org>
8945
8946         doc: Cleanup yet another file produced by texinfo.tex.
8947         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8948
8949 2011-05-28  Bruno Haible  <bruno@clisp.org>
8950
8951         Finish the conditional dependencies mechanism.
8952         * gnulib-tool: New option --no-conditional-dependencies.
8953         (func_usage): Document it. Don't mark --conditional-dependencies as
8954         experimental.
8955         (cond_dependencies): The possible values can now be true, false, empty.
8956         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8957         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8958         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8959
8960 2011-05-28  Bruno Haible  <bruno@clisp.org>
8961
8962         doc: Use a recent texinfo.tex.
8963         * doc/Makefile (tex_opts): New variable.
8964         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8965
8966 2011-05-28  Jim Meyering  <meyering@redhat.com>
8967
8968         intprops.h: adjust comment to match code change
8969         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8970         only once, it *may* have side effects.  Also fix an unrelated typo.
8971         (_GL_INT_SIGNED): Likewise.
8972
8973 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8974
8975         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8976
8977 2011-05-26  Bruno Haible  <bruno@clisp.org>
8978
8979         mbsrchr: Avoid collision with system function on Interix.
8980         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8981         Reported by Markus Duft <mduft@gentoo.org>.
8982
8983 2011-05-15  James Youngman  <jay@gnu.org>
8984
8985         getopt: for ambiguous options, enumerate the possibilities.
8986         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8987         the ambiguous options when an ambiguous prefix is given. This was
8988         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8989         glibc change was
8990         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8991
8992 2011-05-25  Eric Blake  <eblake@redhat.com>
8993
8994         getcwd: work around mingw bug
8995         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8996         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8997         Reported by Matthias Bolte.
8998
8999 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9000
9001         test-intprops: disable -Wtype-limits diagnostics
9002         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9003         diagnostics.  Otherwise, the integer overflow macros generate many
9004         diagnostics.  Reported by Jim Meyering in
9005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9006
9007         intprops: shorten, to pacify gcc -Woverlength-strings
9008         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9009         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9010         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9011         likely to run afoul of C compiler limits for string constant lengths.
9012         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9013
9014 2011-05-24  Eric Blake  <eblake@redhat.com>
9015
9016         docs: document recently fixed glibc printf bug
9017         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9018         * doc/posix-functions/printf.texi (printf): Likewise.
9019         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9020         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9021
9022         closein-tests: convert to init.sh
9023         * modules/closein-tests (Files): Add init.sh
9024         * tests/test-closein.sh Use it.
9025
9026         yesno-tests: convert to init.sh
9027         * modules/yesno-tests (Files): Add init.sh.
9028         * tests/test-yesno.sh: Use it.
9029
9030         atexit-tests: ensure reliable exit status
9031         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9032         Reported by Bruno Haible.
9033
9034 2011-05-24  Bruno Haible  <bruno@clisp.org>
9035
9036         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9038         gl_PREREQ_STRERROR_R invocations from here...
9039         * modules/strerror_r-posix (configure.ac): ... to here.
9040
9041 2011-05-24  Eric Blake  <eblake@redhat.com>
9042
9043         strerror_r: fix missing header
9044         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9045
9046         strerror_r: fix AIX test failures
9047         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9048         ERANGE failure.
9049
9050         strerror_r: fix Solaris test failures
9051         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9052         failures.
9053         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9054
9055         strerror_r: enforce POSIX recommendations
9056         * lib/strerror_r.c (safe_copy): New helper method.
9057         (strerror_r): Guarantee a non-empty string.
9058         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9059         recent POSIX rulings and to match our strerror guarantees.
9060         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9061
9062 2011-05-24  Jim Meyering  <meyering@redhat.com>
9063
9064         test-perror2.c: avoid warning about unused variable
9065         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9066
9067 2011-05-24  Eric Blake  <eblake@redhat.com>
9068
9069         perror: avoid spurious test failure on HP-UX
9070         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9071
9072         tests: fix logic bug in init.sh
9073         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9074         shell.
9075
9076 2011-05-24  Jim Meyering  <meyering@redhat.com>
9077
9078         utimensat: do not reference an out-of-scope buffer
9079         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9080         declared in an inner scope, yet "times" would be dereferenced outside
9081         the scope in which "ts" was valid.
9082         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9083         of ts[2] "out/up", so that the use of aliased "times" (via
9084         "times = ts;") does not end up referencing an out-of-scope "ts"
9085
9086         opendir-safer.c: don't clobber errno; don't close negative FD
9087         * lib/opendir-safer.c (opendir_safer):
9088         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9089         file descriptor, and more importantly, don't clobber the
9090         offending errno value with EINVAL.  Before, upon failure
9091         of dup_safer, we would pass the negative file descriptor to
9092         fdopendir, which would clobber errno.
9093
9094 2011-05-23  Bruno Haible  <bruno@clisp.org>
9095
9096         idcache: Fix module description.
9097         * modules/idcache (Include): Set to "idcache.h".
9098
9099 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         gnulib-tool: fix portability problem with MacOS sed
9102         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9103         before the "}".  Problem reported by Leo in
9104         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9105         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9106         sed_extract_condition1, sed_extract_condition2.
9107
9108 2011-05-23  Bruno Haible  <bruno@clisp.org>
9109
9110         hash: Simplify autoconf macro.
9111         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9112
9113 2011-05-23  Bruno Haible  <bruno@clisp.org>
9114
9115         getugroups: Fix module description.
9116         * modules/getugroups (Include): Set to "getugroups.h".
9117
9118 2011-05-23  Bruno Haible  <bruno@clisp.org>
9119
9120         linkat: Simplify autoconf macro.
9121         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9122
9123 2011-05-23  Bruno Haible  <bruno@clisp.org>
9124             Eric Blake  <eblake@redhat.com>
9125
9126         linkat, renameat: Update dependencies.
9127         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9128         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9129         symlinkat.
9130
9131 2011-05-23  Jim Meyering  <meyering@redhat.com>
9132
9133         maint.mk: more tight_scope improvements
9134         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9135         (_gl_TS_headers): Define only in if-0'd block.
9136         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9137         sometimes we must *not* use it.  Adjust uses accordingly.
9138         (sc_tight_scope): Use much simpler grep-based test to determine
9139         whether we skip this rule.
9140
9141         maint.mk: generalize/improve the tight-scope rule
9142         * top/maint.mk: Emit a warning when the test is skipped.
9143         (_gl_TS_dir): Add $(srcdir)/ prefix.
9144         (_gl_TS_function_match): Simplify, rather than trying
9145         to enumerate common types.  Otherwise, it would fail to match an
9146         "extern unsigned char const *" declaration in idutils.
9147         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9148         a way to support use of that type of macro.
9149         (_gl_TS_var_match): Simplify regexp.
9150         (_gl_TS_obj_files): New configurable variable.
9151         (_gl_TS_headers): Likewise.
9152
9153 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9154
9155         verify: fix bug when gnulib <assert.h> is also included
9156         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9157         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9158         Perhaps there's a better way, but this fixes the immediate problem.
9159         Problem reported by Bruno Haible in
9160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9161
9162 2011-05-22  Bruno Haible  <bruno@clisp.org>
9163
9164         xgetcwd: Simplify autoconf macro.
9165         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9166
9167 2011-05-22  Bruno Haible  <bruno@clisp.org>
9168
9169         New module 'mktime-internal'.
9170         * modules/mktime-internal: New file.
9171         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9172         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9173         mktime_internal as a C macro if libc has __mktime_internal.
9174         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9175         conditions.
9176         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9177
9178 2011-05-22  Bruno Haible  <bruno@clisp.org>
9179
9180         timegm: Correct mktime replacement statements.
9181         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9182         defining mktime as a C macro. This completes a 2009-07-28 commit.
9183
9184 2011-05-22  Bruno Haible  <bruno@clisp.org>
9185
9186         timegm: Simplify autoconf macro.
9187         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9188
9189 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9190
9191         clock-time: change to LGPLv2+.
9192         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9193         BSD-like but we have no mark for that; this is good enough for now.
9194
9195 2011-05-21  Bruno Haible  <bruno@clisp.org>
9196
9197         strerror_r: Fix comments.
9198         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9199
9200 2011-05-21  Bruno Haible  <bruno@clisp.org>
9201
9202         relocatable-prog-wrapper: Fix possible link error.
9203         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9204         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9205         (gl_FUNC_SETENV): ... to here.
9206         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9207         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9208
9209 2011-05-21  Bruno Haible  <bruno@clisp.org>
9210
9211         relocatable-prog-wrapper: Assume strerror() exists.
9212         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9213         m4/strerror.m4.
9214         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9215         * lib/relocwrapper.c: Remove mention of strerror module.
9216         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9217         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9218         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9219         C macro.
9220
9221 2011-05-21  Bruno Haible  <bruno@clisp.org>
9222
9223         select: Simplify replacement idiom.
9224         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9225         Win32 platforms.
9226         * lib/sys_select.in.h (select): Simplify accordingly.
9227         * modules/select (Depends-on): Likewise.
9228
9229 2011-05-21  Bruno Haible  <bruno@clisp.org>
9230
9231         mkdir-p: Simplify autoconf macro.
9232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9233         gl_FUNC_LCHOWN.
9234
9235 2011-05-21  Eric Blake  <eblake@redhat.com>
9236
9237         strerror_r: avoid clobbering strerror on cygwin
9238         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9239         fall back instead to sys_errlist.
9240         * modules/strerror (configure.ac): Add witness.
9241         * tests/test-strerror_r.c (main): Enhance test.
9242         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9243         * tests/test-perror2.c (main): Free memory before exit.
9244
9245 2011-05-21  Bruno Haible  <bruno@clisp.org>
9246
9247         mkdtemp: Use gnulib naming conventions.
9248         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9249         * modules/mkdtemp (configure.ac): Update.
9250
9251 2011-05-20  Eric Blake  <eblake@redhat.com>
9252
9253         strerror_r: avoid corrupting errno on Solaris
9254         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9255         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9256
9257         strerror_r: avoid compiler warning
9258         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9259
9260         strerror_r: simplify AIX code
9261         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9262
9263         test-perror: avoid spurious failure on FreeBSD
9264         * modules/perror-tests (Depends-on): Add strerror, now that
9265         strerror_r no longer pulls it in.
9266
9267 2011-05-20  Bruno Haible  <bruno@clisp.org>
9268
9269         strerror_r-posix: Remove unused dependencies.
9270         * modules/strerror_r-posix (Depends-on): Remove strerror.
9271         Reported by Eric Blake.
9272
9273 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9274
9275         intprops: remove assumption about A|B representation
9276         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9277         is a valid integer if both A and B are.  Although this is true for
9278         all known practical hosts, the C standard doesn't guarantee it,
9279         and the code need not assume it.  Also, this change may work around
9280         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9282
9283 2011-05-20  Eric Blake  <eblake@redhat.com>
9284
9285         perror: work around FreeBSD bug
9286         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9287         is broken.  Move AC_LIBOBJ...
9288         * modules/perror (configure.ac): Here.
9289         * doc/posix-functions/perror.texi (perror): Document this.
9290         * tests/test-perror2.c (main): Enhance test.
9291
9292         test-perror: check for strerror interactions
9293         * tests/macros.h (STREQ): Add macro.
9294         * modules/perror-tests (Files): Add second test.
9295         * tests/test-perror2.c (main): New file.
9296         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9297
9298         test-perror: rewrite to use init script
9299         * modules/perror-tests (Files): Add init.sh.
9300         * tests/test-perror.sh: Use temporary directory.
9301
9302 2011-05-20  Jim Meyering  <meyering@redhat.com>
9303
9304         maint: replace misused "a" with "an"
9305         * doc/intprops.texi: "a integer"
9306         * doc/regex.texi: "a explanation"
9307         * lib/alignof.h: "a object"
9308         * lib/argmatch.h: "a explanation"
9309         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9310         * lib/stdint.in.h: "a integer"
9311         * lib/userspec.c: "a owner"
9312         * doc/gnulib.texi: Fix "a idea", and reword.
9313
9314 2011-05-19  Jim Meyering  <meyering@redhat.com>
9315
9316         maint: correct misuse of "a" and "an"
9317         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9318         * lib/argp-help.c: "an docum...": s/an/a/
9319         * lib/argp-parse.c: "An vector": s/An/A/
9320         * lib/execute.c: "an native": s/an/a/
9321         * lib/spawn-pipe.c: Likewise.
9322         * lib/gc.h: "an Gc_rc": s/an/a/
9323         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9324         * lib/fts.c: "an stat.st_dev": s/an/a/
9325
9326 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9327
9328         intprops-tests: work around HP-UX 11.23 cc bug with constants
9329         * tests/test-intprops.c (VERIFY): New macro.
9330         (main): Use it, instead of verify, to work around the compiler bug; see
9331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9332
9333         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9334         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9335         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9336         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9337         (_GL_REMAINDER_OVERFLOW): Use it.
9338
9339         intprops-tests: revert unsigned part of previous change
9340         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9341         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9342         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9344
9345 2011-05-19  Bruno Haible  <bruno@clisp.org>
9346
9347         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9348         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9349         strerror_r() returned without filling the buffer.
9350         Reported by Eric Blake.
9351
9352 2011-05-19  Eric Blake  <eblake@redhat.com>
9353
9354         strerror_r: guarantee unchanged errno
9355         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9356         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9357         failure.
9358         * tests/test-strerror_r.c (main): Enhance test.
9359
9360 2011-05-19  Bruno Haible  <bruno@clisp.org>
9361
9362         strerror_r: Reorder #if blocks.
9363         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9364         for consistency with the previous commit.
9365
9366 2011-05-19  Bruno Haible  <bruno@clisp.org>
9367
9368         perror: Avoid clobbering the strerror buffer when possible.
9369         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9370         * lib/strerror.c: Include it.
9371         * modules/strerror (Files): Add lib/strerror-impl.h.
9372         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9373         (my_strerror): New function, defined through lib/strerror-impl.h.
9374         (perror): Use it instead of strerror.
9375         * modules/perror (Files): Add lib/strerror-impl.h.
9376         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9377
9378 2011-05-19  Eric Blake  <eblake@redhat.com>
9379
9380         strerror_r: fix on newer cygwin
9381         * lib/strerror_r.c (strerror_r): Cygwin now has
9382         __xpg_strerror_r, use it.
9383
9384 2011-05-19  Bruno Haible  <bruno@clisp.org>
9385
9386         strerror_r: Avoid clobbering the strerror buffer when possible.
9387         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9388         (sys_nerr, sys_errlist): New declarations.
9389         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9390         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9391         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9392
9393 2011-05-19  Bruno Haible  <bruno@clisp.org>
9394
9395         strerror_r: Fix test failure on mingw.
9396         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9397         EXTEND_STRERROR_R.
9398         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9399         macros from errno.in.h instead.
9400
9401 2011-05-19  Eric Blake  <eblake@redhat.com>
9402
9403         strerror: relax test for Solaris
9404         * tests/test-strerror.c (main): Permit Solaris behavior.
9405         * tests/test-strerror_r.c (main): Likewise.
9406
9407         strerror: enforce POSIX ruling on strerror(0)
9408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9409         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9410         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9411         * doc/posix-functions/strerror.texi (strerror): Document it.
9412         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9413         * tests/test-strerror.c (main): Strengthen test.
9414         * tests/test-strerror_r.c (main): Likewise.
9415
9416 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9417
9418         intprop-tests: port to older and more-pedantic compilers
9419         * modules/intprops-tests (Files): Add tests/macros.h.
9420         * tests/test-intprops.c: Include macros.h.
9421         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9422         it's no longer documented to expand to an integer constant expression.
9423         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9424         argument is floating point, as it's no longer documented to expand
9425         to an integer constant expression in that case.
9426         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9427         compiler bugs reported by Bruno Haible.  See
9428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9429         (U0, U1): New constants, to work around the same bugs.  Also,
9430         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9431
9432         intprops: work around C compiler bugs
9433         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9434         bug in Sun C 5.11 2010/08/13 and other compilers; see
9435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9436
9437         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9438         * doc/intprops.texi (Integer Type Determination): Fix
9439         documentation for TYPE_IS_INTEGER: it returns an constant
9440         expression, not an integer constant expression.  Fix doc for
9441         TYPE_SIGNED: it returns an integer constant expression only if its
9442         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9443         hardly worth documented that way....)
9444
9445 2011-05-18  Bruno Haible  <bruno@clisp.org>
9446
9447         strerror_r: Avoid clobbering the strerror buffer when possible.
9448         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9449         Handle gnulib defined errno values here. When strerror() returns NULL
9450         or an empty string, return EINVAL.
9451         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9452         gnulib defined errno values here.
9453         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9454
9455 2011-05-18  Eric Blake  <eblake@redhat.com>
9456
9457         fnmatch: avoid compiler warning
9458         * lib/fnmatch_loop.c (FCT): Use correct type.
9459         Reported by Matthias Bolte.
9460
9461 2011-05-13  Jim Meyering  <meyering@redhat.com>
9462
9463         maint.mk: three new prohibit_<HDR>_without_use rules
9464         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9465         (sc_prohibit_stdio-safer_without_use): Likewise.
9466         (sc_prohibit_xfreopen_without_use): Likewise.
9467
9468 2011-05-17  Jim Meyering  <meyering@redhat.com>
9469
9470         announce-gen: fail if the NEWS delta is empty
9471         If there's nothing noteworthy in NEWS, then either you forgot
9472         or you shouldn't be releasing.
9473         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9474
9475 2011-05-17  Pádraig Brady <P@draigBrady.com>
9476
9477         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9478         reserved symbols starting with double underscore from the check.
9479
9480 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9481
9482         intprops: add doc
9483         * doc/intprops.texi: New file, documenting intprops.
9484         * doc/gnulib.texi (Particular Modules): Include it.
9485
9486         verify: add doc to gnulib manual and fix example
9487         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9488         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9489         (Compile-time Assertions): Fix example so it can't overflow.
9490
9491 2011-05-17  Jim Meyering  <meyering@redhat.com>
9492
9493         warnings.m4: don't usurp save_CPPFLAGS variable name
9494         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9495
9496         doc: fix typo
9497         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9498
9499 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9500             Bruno Haible  <bruno@clisp.org>
9501
9502         doc: Tweak recent change.
9503         * README (Portability guidelines): Tweak new text.
9504         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9505         Interix 6.1.
9506
9507 2011-05-16  Eric Blake  <eblake@redhat.com>
9508
9509         inttypes: avoid autoconf warning
9510         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9511         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9512
9513 2011-05-16  Sam Steingold <sds@gnu.org>
9514         and Eric Blake  <eblake@redhat.com>
9515
9516         vc-list-files: accept multiple directory operands
9517         * build-aux/vc-list-files: Iterate over all remaining operands.
9518
9519 2011-05-16  Bruno Haible  <bruno@clisp.org>
9520
9521         Fix confusion regarding deprecated modules.
9522         * modules/calloc (Status, Notice): Mark module as deprecated, not
9523         obsolete.
9524         * modules/fnmatch-posix (Status, Notice): Likewise.
9525         * modules/getdate (Status, Notice): Likewise.
9526         * modules/getopt (Status, Notice): Likewise.
9527         * modules/malloc (Status, Notice): Likewise.
9528         * modules/pipe (Status, Notice): Likewise.
9529         * modules/realloc (Status, Notice): Likewise.
9530         * modules/rename-dest-slash (Status, Notice): Likewise.
9531         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9532         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9533         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9534         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9535         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9536
9537 2011-05-16  Bruno Haible  <bruno@clisp.org>
9538
9539         doc: List the target platforms.
9540         * doc/gnulib-intro.texi (Target Platforms): New section.
9541         * doc/gnulib.texi (Introduction): Update menu.
9542         * README (Portability guidelines): Refer to the new section. Update
9543         statement about oldest supported environment. Remove rationale why
9544         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9545         unportable C89 function.
9546         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9547         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9548
9549 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9550
9551         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9552
9553 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9554
9555         intprops-tests: new module
9556         * modules/intprops-tests, tests/test-intprops.c: New files.
9557
9558         intprops: add safe, portable integer overflow checking
9559         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9560         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9561         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9562         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9563         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9564         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9565         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9566         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9567         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9568         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9569         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9570
9571 2011-05-12  James Youngman  <jay@gnu.org>
9572
9573         Add a test for glibc's Bugzilla bug #12378.
9574         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9575         doesn't allow the literal matching of a lone "[" (which is
9576         required by POSIX).
9577         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9578
9579 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9580
9581         Sync glibc change fixing Bugzilla bug #12378.
9582         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9583         beginning and fall back to matching as normal character if the
9584         string ends before the matching ']' is found.  This is what POSIX
9585         requires.
9586
9587 2011-05-13  Eric Blake  <eblake@redhat.com>
9588
9589         getcwd-lgpl: relax test for FreeBSD
9590         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9591         issue.
9592         * tests/test-getcwd-lgpl.c (main): Relax test.
9593         Reported by Matthias Bolte.
9594
9595 2011-05-11  Eric Blake  <eblake@redhat.com>
9596
9597         test-fflush: silence compiler warning
9598         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9599
9600 2011-05-11  Bruno Haible  <bruno@clisp.org>
9601
9602         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9603         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9604         * modules/canonicalize (Depends-on): Add 'nocrash'.
9605         * modules/canonicalize-lgpl (Depends-on): Likewise.
9606         * doc/posix-functions/realpath.texi: Update platforms list.
9607         Reported by Ryan Schmidt <ryandesign@macports.org>.
9608
9609 2011-05-11  Bruno Haible  <bruno@clisp.org>
9610
9611         group-member: Declare function in <unistd.h>.
9612         * lib/unistd.in.h (group_member): New declaration.
9613         * lib/group-member.h: Remove file.
9614         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9615         * tests/test-unistd-c++.cc: Check signature of group_member.
9616         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9617         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9618         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9619         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9620         HAVE_GROUP_MEMBER.
9621         * modules/group-member (Files): Remove lib/group-member.h.
9622         (Depends-on): Add unistd. Specify conditions.
9623         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9624         (Include): Change to <unistd.h>.
9625         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9626         HAVE_GROUP_MEMBER.
9627         * NEWS: Mention the change.
9628         * lib/euidaccess.c: Don't include group-member.h.
9629
9630 2011-05-11  Bruno Haible  <bruno@clisp.org>
9631
9632         group-member: Document module.
9633         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9634         module.
9635
9636 2011-05-11  Bruno Haible  <bruno@clisp.org>
9637
9638         fclose: Fix mistake earlier today.
9639         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9640
9641 2011-05-11  Eric Blake  <eblake@redhat.com>
9642
9643         fclose: preserve fflush errors
9644         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9645         Reported by Jim Meyering.
9646
9647         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9648         * build-aux/bootstrap (check_versions): When no specific version
9649         is required, merely check that the app produces an exit status
9650         that indicates its existence.
9651
9652         maint.mk: drop redundant check
9653         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9654         the same but better.
9655
9656 2011-05-11  Bruno Haible  <bruno@clisp.org>
9657
9658         fclose: Fix possible link error.
9659         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9660         unregister_shadow_fd. Improve comments.
9661         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9662         Eric Blake.
9663
9664 2011-05-11  Jim Meyering  <meyering@redhat.com>
9665
9666         maint.mk: improve "can not" detection and generalize rule name
9667         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9668         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9669         Use the same technique as in sc_prohibit_doubled_word, so that
9670         we recognize "can not" also when the words are separated by a newline.
9671         Suggested by Eric Blake.
9672         (perl_filename_lineno_text_): Define.  Factored out of...
9673         (prohibit_doubled_word_): ...here.  Use the new definition.
9674         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9675         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9676         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9677
9678 2011-05-10  Eric Blake  <eblake@redhat.com>
9679
9680         fclose: avoid double close race when possible
9681         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9682         all but WINDOWS_SOCKETS.
9683
9684 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9685
9686         openat: correct new comment
9687         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9688
9689 2011-05-10  Jim Meyering  <meyering@redhat.com>
9690
9691         openat: add comments
9692         * lib/openat-proc.c (openat_proc_name): Add comments,
9693         mostly from Eric Blake.
9694
9695 2011-05-09  Eric Blake  <eblake@redhat.com>
9696
9697         openat: reduce syscalls in first probe of /proc
9698         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9699         be a directory.  Simplify the probe for .. bugs.
9700         * modules/openat (Depends-on): Drop same-inode.
9701         Reported by Bastien ROUCARIES.
9702
9703 2011-05-09  Jim Meyering  <meyering@redhat.com>
9704
9705         maint.mk: change semantics/name of tight_scope variables
9706         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9707         Rename variables to align with semantics that make them more useful.
9708
9709         maint.mk: tweak new rule's name not to impinge
9710         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9711         (sc_tight_scope): Use new rule name rather than $@-0.
9712
9713         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9714         * top/maint.mk (sc_tight_scope): New rule.
9715         (sc_tight_scope-0): New rule, ifdef'd out.
9716         (_gl_TS_dir): Default.
9717         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9718         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9719
9720 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9721
9722         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9723         Haible <bruno@clisp.org>.
9724
9725 2011-05-08  Bruno Haible  <bruno@clisp.org>
9726
9727         Comments.
9728         * m4/isnanf.m4: Add comment.
9729         * m4/isnanl.m4: Likewise.
9730
9731 2011-05-08  Bruno Haible  <bruno@clisp.org>
9732
9733         glob: Remove obsolete macro.
9734         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9735
9736 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9737
9738         intprops: Sun C 5.11 supports __typeof__
9739         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9740         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9741         which is new.
9742         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9743
9744         intprops: switch to usual gnulib indenting and naming
9745         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9746         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9747
9748         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9749
9750 2011-05-08  Jim Meyering  <meyering@redhat.com>
9751
9752         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9753         * top/maint.mk (release-prep): Use make's --no-print-directory
9754         option when generating the announcement.  This eliminates the
9755         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9756         generated announcement template.
9757
9758 2011-05-08  Bruno Haible  <bruno@clisp.org>
9759
9760         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9761         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9762         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9763
9764 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9765
9766         ignore-value, verify: Omit include files from lib_SOURCES.
9767         * modules/ignore-value, modules/verify (Makefile.am):
9768         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9769         that leads Automake to duplicate use of am__objects_... variables
9770         in Makefile.in.  See
9771         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9772
9773 2011-05-07  Bruno Haible  <bruno@clisp.org>
9774
9775         fclose: Simplify autoconf macro.
9776         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9777         defined.
9778
9779 2011-05-07  Bruno Haible  <bruno@clisp.org>
9780
9781         canonicalize-lgpl: Fix autoconf macro ordering bug.
9782         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9783         gl_STDLIB_H_DEFAULTS.
9784
9785 2011-05-06  Eric Blake  <eblake@redhat.com>
9786
9787         maintainer-makefile: make sc_po_check easier to tune
9788         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9789         to probe for strings, such as an alternate location for gnulib.
9790
9791         fclose: guarantee behavior on seekable stdin
9792         * modules/fclose (Depends-on): Add fflush.
9793         * doc/posix-functions/fclose.texi (fclose): Document this.
9794         * tests/test-fclose.c (main): Make test for this unconditional.
9795
9796 2011-05-06  Bruno Haible  <bruno@clisp.org>
9797
9798         fflush, fpurge: Relicense under LGPLv2+.
9799         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9800         * modules/fpurge (License): Likewise.
9801         With permission from Eric Blake and Jim Meyering.
9802         Suggested by Eric Blake.
9803
9804 2011-05-06  Karl Berry  <karl@gnu.org>
9805
9806         * MODULES.html.sh (func_all_modules): remove exit.
9807
9808 2011-05-06  Jim Meyering  <meyering@redhat.com>
9809
9810         maint.mk: use info-gnu@ as the default only for a stable release
9811         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9812         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9813         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9814         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9815
9816 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9817
9818         assert-h: new module, which supports C1X-style static_assert
9819         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9820         * lib/verify.h: Revamp so that this can be copied into assert.h,
9821         while retaining the ability to use it standalone as before.
9822         Rename private identifiers so as not to encroach on the
9823         standard C namespace, since this is now used by assert.h.
9824         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9825         the old verify_true.
9826         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9827         the old verify_true.  Use _GL_VERIFY_TYPE.
9828         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9829         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9830         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9831         defined when this file is copied into the replacement assert.h.
9832         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9833         and _Static_assert is not built in.
9834         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9835         defined, and use the new macros mentioned above.
9836         * doc/posix-headers/assert.texi: Document this.
9837
9838 2011-05-05  Bruno Haible  <bruno@clisp.org>
9839
9840         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9841         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9842         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9843         gl_REPLACE_FCLOSE here.
9844         * modules/fflush (Depends-on): Remove fclose.
9845         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9846         combination with module 'fclose'.
9847
9848 2011-05-05  Bruno Haible  <bruno@clisp.org>
9849
9850         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9851         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9852         gl_FUNC_FFLUSH.
9853         (gl_FUNC_FFLUSH): Use it.
9854         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9855         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9856         gl_REPLACE_FSEEKO here.
9857
9858 2011-05-05  Bruno Haible  <bruno@clisp.org>
9859
9860         tzset: Relicense under LGPL.
9861         * modules/tzset (License): Change to LGPL.
9862         No agreement needed; it's a no-op.
9863
9864         strtoimax, strtoumax: Relicense under LGPL.
9865         * modules/strtoimax (License): Change to LGPL.
9866         * modules/strtoumax (License): Likewise.
9867         With permission from Jim Meyering, Paul Eggert:
9868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9870
9871         getgroups: Relicense under LGPL.
9872         * modules/getgroups (License): Change to LGPL.
9873         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9877
9878         nanosleep: Relicense under LGPL.
9879         * modules/nanosleep (License): Change to LGPL.
9880         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9881         Haible:
9882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9886
9887         futimens: Relicense under LGPL.
9888         * modules/futimens (License): Change to LGPL.
9889         With permission from Eric Blake:
9890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9891
9892         fflush: Relicense under LGPL.
9893         * modules/fflush (License): Change to LGPL.
9894         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9898
9899         tmpfile: Relicense under LGPL.
9900         * modules/tmpfile (License): Change to LGPL.
9901         With permission from Ben Pfaff:
9902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9903
9904         isfinite: Relicense under LGPL.
9905         * modules/isfinite (License): Change to LGPL.
9906         With permission from Ben Pfaff, Bruno Haible:
9907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9909
9910         acosl..tanl: Relicense under LGPL.
9911         * modules/acosl (License): Change to LGPL.
9912         * modules/asinl (License): Likewise.
9913         * modules/atanl (License): Likewise.
9914         * modules/cosl (License): Likewise.
9915         * modules/expl (License): Likewise.
9916         * modules/logl (License): Likewise.
9917         * modules/sinl (License): Likewise.
9918         * modules/sqrtl (License): Likewise.
9919         * modules/tanl (License): Likewise.
9920         Source code originally from glibc and Paolo Bonzini. Agreements:
9921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9923
9924 2011-05-05  Bruno Haible  <bruno@clisp.org>
9925
9926         signal: Define sighandler_t.
9927         * lib/signal.in.h (sighandler_t): New type.
9928         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9929         whether sighandler_t is defined.
9930         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9931         * modules/signal (Depends-on): Add extensions.
9932         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9933         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9934         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9935
9936 2011-05-05  Eric Blake  <eblake@redhat.com>
9937
9938         maint: remove useless REPLACE_*_H macros
9939         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9940         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9941         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9942         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9943         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9944         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9945         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9946         * m4/btowc.m4: Update callers.
9947         * m4/dirfd.m4: Likewise.
9948         * m4/duplocale.m4: Likewise.
9949         * m4/fchdir.m4: Likewise.
9950         * m4/fdopendir.m4: Likewise.
9951         * m4/inet_ntop.m4: Likewise.
9952         * m4/inet_pton.m4: Likewise.
9953         * m4/ioctl.m4: Likewise.
9954         * m4/mbrlen.m4: Likewise.
9955         * m4/mbrtowc.m4: Likewise.
9956         * m4/mbsinit.m4: Likewise.
9957         * m4/mbsnrtowcs.m4: Likewise.
9958         * m4/mbsrtowcs.m4: Likewise.
9959         * m4/poll.m4: Likewise.
9960         * m4/setlocale.m4: Likewise.
9961         * m4/wcrtomb.m4: Likewise.
9962         * m4/wcsnrtombs.m4: Likewise.
9963         * m4/wcsrtombs.m4: Likewise.
9964         * m4/wctob.m4: Likewise.
9965         * m4/wcwidth.m4: Likewise.
9966         * modules/posix_spawn: Likewise.
9967         * modules/posix_spawn_file_actions_addclose: Likewise.
9968         * modules/posix_spawn_file_actions_adddup2: Likewise.
9969         * modules/posix_spawn_file_actions_addopen: Likewise.
9970         * modules/posix_spawn_file_actions_destroy: Likewise.
9971         * modules/posix_spawn_file_actions_init: Likewise.
9972         * modules/posix_spawnattr_destroy: Likewise.
9973         * modules/posix_spawnattr_getflags: Likewise.
9974         * modules/posix_spawnattr_getpgroup: Likewise.
9975         * modules/posix_spawnattr_getschedparam: Likewise.
9976         * modules/posix_spawnattr_getschedpolicy: Likewise.
9977         * modules/posix_spawnattr_getsigdefault: Likewise.
9978         * modules/posix_spawnattr_getsigmask: Likewise.
9979         * modules/posix_spawnattr_init: Likewise.
9980         * modules/posix_spawnattr_setflags: Likewise.
9981         * modules/posix_spawnattr_setpgroup: Likewise.
9982         * modules/posix_spawnattr_setschedparam: Likewise.
9983         * modules/posix_spawnattr_setschedpolicy: Likewise.
9984         * modules/posix_spawnattr_setsigdefault: Likewise.
9985         * modules/posix_spawnattr_setsigmask: Likewise.
9986         * modules/posix_spawnp: Likewise.
9987
9988 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9989
9990         Add option to do-release-commit-and-tag to specify branch.
9991         * build-aux/do-release-commit-and-tag: Add --branch.
9992
9993 2011-05-03  Bruno Haible  <bruno@clisp.org>
9994
9995         Avoid unnecessary compilation units, through conditional dependencies.
9996         * modules/accept (Depends-on): Add conditions to the dependencies.
9997         * modules/acosl (Depends-on): Likewise.
9998         * modules/argz (Depends-on): Likewise.
9999         * modules/asinl (Depends-on): Likewise.
10000         * modules/atanl (Depends-on): Likewise.
10001         * modules/atoll (Depends-on): Likewise.
10002         * modules/bind (Depends-on): Likewise.
10003         * modules/btowc (Depends-on): Likewise.
10004         * modules/canonicalize-lgpl (Depends-on): Likewise.
10005         * modules/ceil (Depends-on): Likewise.
10006         * modules/ceilf (Depends-on): Likewise.
10007         * modules/ceill (Depends-on): Likewise.
10008         * modules/chdir-long (Depends-on): Likewise.
10009         * modules/chown (Depends-on): Likewise.
10010         * modules/close (Depends-on): Likewise.
10011         * modules/connect (Depends-on): Likewise.
10012         * modules/cosl (Depends-on): Likewise.
10013         * modules/dirfd (Depends-on): Likewise.
10014         * modules/dprintf (Depends-on): Likewise.
10015         * modules/dprintf-posix (Depends-on): Likewise.
10016         * modules/error (Depends-on): Likewise.
10017         * modules/euidaccess (Depends-on): Likewise.
10018         * modules/expl (Depends-on): Likewise.
10019         * modules/faccessat (Depends-on): Likewise.
10020         * modules/fchdir (Depends-on): Likewise.
10021         * modules/fclose (Depends-on): Likewise.
10022         * modules/fcntl (Depends-on): Likewise.
10023         * modules/fdopendir (Depends-on): Likewise.
10024         * modules/fflush (Depends-on): Likewise.
10025         * modules/floor (Depends-on): Likewise.
10026         * modules/floorf (Depends-on): Likewise.
10027         * modules/floorl (Depends-on): Likewise.
10028         * modules/fnmatch (Depends-on): Likewise.
10029         * modules/fopen (Depends-on): Likewise.
10030         * modules/fprintf-posix (Depends-on): Likewise.
10031         * modules/frexp (Depends-on): Likewise.
10032         * modules/frexp-nolibm (Depends-on): Likewise.
10033         * modules/frexpl (Depends-on): Likewise.
10034         * modules/frexpl-nolibm (Depends-on): Likewise.
10035         * modules/fseek (Depends-on): Likewise.
10036         * modules/fsusage (Depends-on): Likewise.
10037         * modules/ftell (Depends-on): Likewise.
10038         * modules/ftello (Depends-on): Likewise.
10039         * modules/futimens (Depends-on): Likewise.
10040         * modules/getcwd (Depends-on): Likewise.
10041         * modules/getcwd-lgpl (Depends-on): Likewise.
10042         * modules/getdelim (Depends-on): Likewise.
10043         * modules/getdomainname (Depends-on): Likewise.
10044         * modules/getgroups (Depends-on): Likewise.
10045         * modules/gethostname (Depends-on): Likewise.
10046         * modules/getline (Depends-on): Likewise.
10047         * modules/getlogin_r (Depends-on): Likewise.
10048         * modules/getopt-posix (Depends-on): Likewise.
10049         * modules/getpeername (Depends-on): Likewise.
10050         * modules/getsockname (Depends-on): Likewise.
10051         * modules/getsockopt (Depends-on): Likewise.
10052         * modules/getsubopt (Depends-on): Likewise.
10053         * modules/getusershell (Depends-on): Likewise.
10054         * modules/glob (Depends-on): Likewise.
10055         * modules/grantpt (Depends-on): Likewise.
10056         * modules/iconv_open (Depends-on): Likewise.
10057         * modules/iconv_open-utf (Depends-on): Likewise.
10058         * modules/inet_ntop (Depends-on): Likewise.
10059         * modules/inet_pton (Depends-on): Likewise.
10060         * modules/ioctl (Depends-on): Likewise.
10061         * modules/isapipe (Depends-on): Likewise.
10062         * modules/isfinite (Depends-on): Likewise.
10063         * modules/isinf (Depends-on): Likewise.
10064         * modules/lchown (Depends-on): Likewise.
10065         * modules/ldexpl (Depends-on): Likewise.
10066         * modules/link (Depends-on): Likewise.
10067         * modules/linkat (Depends-on): Likewise.
10068         * modules/listen (Depends-on): Likewise.
10069         * modules/logl (Depends-on): Likewise.
10070         * modules/lstat (Depends-on): Likewise.
10071         * modules/mbrlen (Depends-on): Likewise.
10072         * modules/mbrtowc (Depends-on): Likewise.
10073         * modules/mbsinit (Depends-on): Likewise.
10074         * modules/mbsnrtowcs (Depends-on): Likewise.
10075         * modules/mbsrtowcs (Depends-on): Likewise.
10076         * modules/mbtowc (Depends-on): Likewise.
10077         * modules/memcmp (Depends-on): Likewise.
10078         * modules/mkdir (Depends-on): Likewise.
10079         * modules/mkdtemp (Depends-on): Likewise.
10080         * modules/mkfifo (Depends-on): Likewise.
10081         * modules/mkfifoat (Depends-on): Likewise.
10082         * modules/mknod (Depends-on): Likewise.
10083         * modules/mkostemp (Depends-on): Likewise.
10084         * modules/mkostemps (Depends-on): Likewise.
10085         * modules/mkstemp (Depends-on): Likewise.
10086         * modules/mkstemps (Depends-on): Likewise.
10087         * modules/mktime (Depends-on): Likewise.
10088         * modules/nanosleep (Depends-on): Likewise.
10089         * modules/open (Depends-on): Likewise.
10090         * modules/openat (Depends-on): Likewise.
10091         * modules/perror (Depends-on): Likewise.
10092         * modules/poll (Depends-on): Likewise.
10093         * modules/popen (Depends-on): Likewise.
10094         * modules/posix_spawn (Depends-on): Likewise.
10095         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10096         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10097         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10098         * modules/posix_spawnp (Depends-on): Likewise.
10099         * modules/pread (Depends-on): Likewise.
10100         * modules/printf-posix (Depends-on): Likewise.
10101         * modules/ptsname (Depends-on): Likewise.
10102         * modules/putenv (Depends-on): Likewise.
10103         * modules/pwrite (Depends-on): Likewise.
10104         * modules/readline (Depends-on): Likewise.
10105         * modules/readlink (Depends-on): Likewise.
10106         * modules/readlinkat (Depends-on): Likewise.
10107         * modules/recv (Depends-on): Likewise.
10108         * modules/recvfrom (Depends-on): Likewise.
10109         * modules/regex (Depends-on): Likewise.
10110         * modules/remove (Depends-on): Likewise.
10111         * modules/rename (Depends-on): Likewise.
10112         * modules/renameat (Depends-on): Likewise.
10113         * modules/rmdir (Depends-on): Likewise.
10114         * modules/round (Depends-on): Likewise.
10115         * modules/roundf (Depends-on): Likewise.
10116         * modules/roundl (Depends-on): Likewise.
10117         * modules/rpmatch (Depends-on): Likewise.
10118         * modules/select (Depends-on): Likewise.
10119         * modules/send (Depends-on): Likewise.
10120         * modules/sendto (Depends-on): Likewise.
10121         * modules/setenv (Depends-on): Likewise.
10122         * modules/setlocale (Depends-on): Likewise.
10123         * modules/setsockopt (Depends-on): Likewise.
10124         * modules/shutdown (Depends-on): Likewise.
10125         * modules/sigaction (Depends-on): Likewise.
10126         * modules/signbit (Depends-on): Likewise.
10127         * modules/sigprocmask (Depends-on): Likewise.
10128         * modules/sinl (Depends-on): Likewise.
10129         * modules/sleep (Depends-on): Likewise.
10130         * modules/snprintf (Depends-on): Likewise.
10131         * modules/snprintf-posix (Depends-on): Likewise.
10132         * modules/socket (Depends-on): Likewise.
10133         * modules/sprintf-posix (Depends-on): Likewise.
10134         * modules/sqrtl (Depends-on): Likewise.
10135         * modules/stat (Depends-on): Likewise.
10136         * modules/strchrnul (Depends-on): Likewise.
10137         * modules/strdup-posix (Depends-on): Likewise.
10138         * modules/strerror (Depends-on): Likewise.
10139         * modules/strerror_r-posix (Depends-on): Likewise.
10140         * modules/strndup (Depends-on): Likewise.
10141         * modules/strnlen (Depends-on): Likewise.
10142         * modules/strptime (Depends-on): Likewise.
10143         * modules/strsep (Depends-on): Likewise.
10144         * modules/strsignal (Depends-on): Likewise.
10145         * modules/strstr-simple (Depends-on): Likewise.
10146         * modules/strtod (Depends-on): Likewise.
10147         * modules/strtoimax (Depends-on): Likewise.
10148         * modules/strtok_r (Depends-on): Likewise.
10149         * modules/strtoumax (Depends-on): Likewise.
10150         * modules/symlink (Depends-on): Likewise.
10151         * modules/symlinkat (Depends-on): Likewise.
10152         * modules/tanl (Depends-on): Likewise.
10153         * modules/tcgetsid (Depends-on): Likewise.
10154         * modules/tmpfile (Depends-on): Likewise.
10155         * modules/trunc (Depends-on): Likewise.
10156         * modules/truncf (Depends-on): Likewise.
10157         * modules/truncl (Depends-on): Likewise.
10158         * modules/uname (Depends-on): Likewise.
10159         * modules/unlink (Depends-on): Likewise.
10160         * modules/unlockpt (Depends-on): Likewise.
10161         * modules/unsetenv (Depends-on): Likewise.
10162         * modules/usleep (Depends-on): Likewise.
10163         * modules/utimensat (Depends-on): Likewise.
10164         * modules/vasprintf (Depends-on): Likewise.
10165         * modules/vdprintf (Depends-on): Likewise.
10166         * modules/vdprintf-posix (Depends-on): Likewise.
10167         * modules/vfprintf-posix (Depends-on): Likewise.
10168         * modules/vprintf-posix (Depends-on): Likewise.
10169         * modules/vsnprintf (Depends-on): Likewise.
10170         * modules/vsnprintf-posix (Depends-on): Likewise.
10171         * modules/vsprintf-posix (Depends-on): Likewise.
10172         * modules/wcrtomb (Depends-on): Likewise.
10173         * modules/wcscasecmp (Depends-on): Likewise.
10174         * modules/wcscspn (Depends-on): Likewise.
10175         * modules/wcsdup (Depends-on): Likewise.
10176         * modules/wcsncasecmp (Depends-on): Likewise.
10177         * modules/wcsnrtombs (Depends-on): Likewise.
10178         * modules/wcspbrk (Depends-on): Likewise.
10179         * modules/wcsrtombs (Depends-on): Likewise.
10180         * modules/wcsspn (Depends-on): Likewise.
10181         * modules/wcsstr (Depends-on): Likewise.
10182         * modules/wcstok (Depends-on): Likewise.
10183         * modules/wcswidth (Depends-on): Likewise.
10184         * modules/wctob (Depends-on): Likewise.
10185         * modules/wctomb (Depends-on): Likewise.
10186         * modules/wctype (Depends-on): Likewise.
10187         * modules/wcwidth (Depends-on): Likewise.
10188         * modules/write (Depends-on): Likewise.
10189
10190 2011-05-03  Bruno Haible  <bruno@clisp.org>
10191
10192         Support for conditional dependencies.
10193         * doc/gnulib.texi (Module description): Document the syntax of
10194         conditional dependencies.
10195         * gnulib-tool: New option --conditional-dependencies.
10196         (func_usage): Document it.
10197         (cond_dependencies): New variable.
10198         (func_get_automake_snippet_conditional,
10199         func_get_automake_snippet_unconditional): New functions, extracted from
10200         func_get_automake_snippet.
10201         (func_get_automake_snippet): Use them.
10202         (sed_first_32_chars): New variable.
10203         (func_module_shellfunc_name): New function.
10204         (func_module_shellvar_name): New function.
10205         (func_module_conditional_name): New function.
10206         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10207         func_cond_module_condition): New functions.
10208         (func_modules_transitive_closure): Add support for conditional
10209         dependencies.
10210         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10211         conditional automake snippet in an automake conditional.
10212         (func_emit_autoconf_snippets): Emit shell functions that contain the
10213         code for conditional modules.
10214         (func_import, func_create_testdir): Update specification.
10215
10216 2011-05-03  Eric Blake  <eblake@redhat.com>
10217
10218         test-getaddrinfo: report error information
10219         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10220
10221 2011-05-03  Jim Meyering  <meyering@redhat.com>
10222
10223         bootstrap: avoid build failure when $GZIP is set
10224         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10225         program name.  If defined at all, it is supposed to list gzip options.
10226         Reported by Alan Curry in http://debbugs.gnu.org/8609
10227
10228 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10229
10230         readme-release: new module with release instructions
10231         * modules/readme-release: New module.
10232         * top/README-release: New file, from coreutils, grep, diffutils.
10233         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10234
10235 2011-05-02  Eric Blake  <eblake@redhat.com>
10236
10237         fflush: also replace fclose when fixing fflush
10238         * modules/fflush (Depends-on): Add fclose.
10239         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10240         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10241         memstreams with no backing fd.
10242         * doc/posix-functions/fclose.texi (fclose): Document the use of
10243         fflush module to fix the bug.
10244         * tests/test-fclose.c (main): Relax test when fclose is used in
10245         isolation.
10246
10247         fclose: add some tests
10248         * modules/fclose-tests: New test module.
10249         * tests/test-fclose.c: New file.
10250         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10251
10252         fclose: reduced dependencies
10253         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10254         simpler lseek.
10255         * lib/fclose.c (rpl_fclose): Likewise.
10256         Reported by Simon Josefsson.
10257
10258         exit: drop remaining clients
10259         * modules/argmatch (Depends-on): Replace exit with stdlib.
10260         * modules/copy-file (Depends-on): Likewise.
10261         * modules/execute (Depends-on): Likewise.
10262         * modules/exitfail (Depends-on): Likewise.
10263         * modules/obstack (Depends-on): Likewise.
10264         * modules/pagealign_alloc (Depends-on): Likewise.
10265         * modules/pipe-filter-gi (Depends-on): Likewise.
10266         * modules/pipe-filter-ii (Depends-on): Likewise.
10267         * modules/savewd (Depends-on): Likewise.
10268         * modules/spawn-pipe (Depends-on): Likewise.
10269         * modules/wait-process (Depends-on): Likewise.
10270         * modules/xsetenv (Depends-on): Likewise.
10271         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10272         * modules/git-merge-changelog (Depends-on): Likewise.
10273         * modules/long-options (Depends-on): Likewise.
10274         * modules/pt_chown (Depends-on): Likewise.
10275         * modules/sysexits (Depends-on): Likewise.
10276
10277         freading: relax license from LGPLv3+ to LGPLv2+
10278         * modules/freading (License): Relax LGPL version.
10279
10280 2011-05-02  Bruno Haible  <bruno@clisp.org>
10281
10282         fchdir: Remove unused dependencies.
10283         * modules/fchdir (Depends-on): Remove include_next.
10284
10285 2011-05-02  Bruno Haible  <bruno@clisp.org>
10286
10287         gnulib-tool: Refactor.
10288         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10289         from func_emit_autoconf_snippets.
10290         (func_emit_autoconf_snippets): Use it.
10291
10292 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10293
10294         * NEWS: Document removal of 'exit'.
10295         * modules/exit: Remove file.
10296
10297 2011-05-01  Bruno Haible  <bruno@clisp.org>
10298
10299         Update DEPENDENCIES.
10300         * DEPENDENCIES (gettext): Recommend the newest release.
10301         Reported by Simon Josefsson.
10302
10303 2011-05-01  Bruno Haible  <bruno@clisp.org>
10304
10305         gnulib-tool: Reduce code duplication.
10306         * gnulib-tool (func_emit_autoconf_snippets): New function.
10307         (func_import, func_create_testdir): Use it.
10308
10309 2011-04-30  Eric Blake  <eblake@redhat.com>
10310
10311         fclose: don't fail on non-seekable input stream
10312         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10313         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10314         since fflush is allowed to fail in that case.
10315
10316 2011-04-30  Bruno Haible  <bruno@clisp.org>
10317
10318         dup3: cleanup
10319         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10320
10321 2011-04-30  Bruno Haible  <bruno@clisp.org>
10322
10323         netdb: Make it work in C++ mode.
10324         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10325         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10326         module.
10327         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10328         gl_MODULE_INDICATOR_FOR_TESTS.
10329         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10330         * modules/netdb-c++-tests: New file.
10331         * tests/test-netdb-c++.cc: New file.
10332
10333 2011-04-30  Bruno Haible  <bruno@clisp.org>
10334
10335         New modules 'vfscanf', 'vscanf'.
10336         * modules/vfscanf: New file.
10337         * modules/vscanf: New file.
10338         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10339         here.
10340         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10341         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10342
10343 2011-04-30  Bruno Haible  <bruno@clisp.org>
10344
10345         passfd: Add comments.
10346         * lib/passfd.c: Add comments about platforms.
10347
10348 2011-04-30  Bruno Haible  <bruno@clisp.org>
10349
10350         sys_uio: Make <sys/uio.h> self-contained.
10351         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10352         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10353
10354 2011-04-30  Bruno Haible  <bruno@clisp.org>
10355
10356         sys_socket: Ensure 'struct iovec' definition.
10357         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10358         <sys/socket.h>.
10359         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10360
10361 2011-04-30  Bruno Haible  <bruno@clisp.org>
10362
10363         sys_uio: Protect definition of 'struct iovec'.
10364         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10365         it as a C struct.
10366
10367 2011-04-30  Bruno Haible  <bruno@clisp.org>
10368
10369         manywarnings: fix indentation
10370         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10371
10372 2011-04-30  Pádraig Brady <P@draigBrady.com>
10373
10374         manywarnings: add -Wno-missing-field-initializers if needed.
10375         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10376         option if it's needed to allow initialization with { 0, }
10377
10378 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10379
10380         announce-gen: cosmetic improvement
10381         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10382
10383 2011-04-29  Jim Meyering  <meyering@redhat.com>
10384
10385         vc-list-files: indent with spaces, not TABs
10386         * build-aux/vc-list-files: Convert leading TABs to spaces,
10387         to match the style of most other files in gnulib.
10388
10389         announce-gen: indent with spaces, not TABs
10390         * build-aux/announce-gen: Convert all TABs to spaces, to match
10391         the style of most other files in gnulib.
10392
10393 2011-04-29  Eric Blake  <eblake@redhat.com>
10394
10395         quotearg: avoid uninitialized variable use
10396         * lib/quotearg.c (quoting_options_from_style): Initialize
10397         remaining fields, and ensure that custom styles are only used via
10398         quoting_options rather than quoting_style.
10399
10400 2011-04-29  Jim Meyering  <meyering@redhat.com>
10401
10402         maint.mk: remove unused VC-tag variable
10403         * top/maint.mk (VC-tag): Remove unused variable.
10404
10405 2011-04-29  Bruno Haible  <bruno@clisp.org>
10406
10407         netdb: fix gai_strerror replacements
10408         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10409         * modules/netdb: Substitute it.
10410
10411 2011-04-29  Jim Meyering  <meyering@redhat.com>
10412
10413         test-getcwd.c: avoid new set-but-not-used warning
10414         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10415         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10416         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10417         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10418
10419         test-hash.c: avoid a new shadowing warning
10420         * tests/test-hash.c (main): Don't shadow "dup".
10421
10422 2011-04-28  Eric Blake  <eblake@redhat.com>
10423
10424         getaddrinfo: fix gai_strerror signature
10425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10426         and work around mingw with UNICODE defined.
10427         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10428         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10429         * modules/netdb (Makefile.am): Substitute it.
10430         * lib/netdb.in.h (gai_strerror): Declare replacement.
10431         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10432         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10433         the fix.
10434
10435         getsockopt: avoid compiler warning
10436         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10437         Reported by Matthias Bolte.
10438
10439         tests: drop unused link dependency
10440         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10441         * modules/dirent-safer-tests (Makefile.am): Likewise.
10442         * modules/fdopendir-tests (Makefile.am): Likewise.
10443         * modules/mkfifoat-tests (Makefile.am): Likewise.
10444         * modules/openat-safer-tests (Makefile.am): Likewise.
10445         * modules/openat-tests (Makefile.am): Likewise.
10446         * modules/readlinkat-tests (Makefile.am): Likewise.
10447         * modules/symlinkat-tests (Makefile.am): Likewise.
10448         * modules/linkat-tests (Makefile.am): Likewise.
10449         (Depends-on): Switch to filenamecat-lgpl.
10450         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10451         LIBINTL.
10452         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10453         * tests/test-linkat.c (main): Don't require xalloc.
10454
10455         hash, mgetgroups: drop xalloc dependency
10456         * lib/hash.c (includes): Adjust includes.
10457         * lib/mgetgroups.c (includes): Likewise.
10458         (xgetgroups): Move...
10459         * lib/xgetgroups.c: ...to new file.
10460         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10461         * modules/xgetgroups: New file, split from...
10462         * modules/mgetgroups: ...here.
10463         (Depends-on): Add xalloc-oversized.
10464         * modules/hash (Depends-on): Likewise.
10465         * modules/hash-tests (Depends-on): Drop xalloc.
10466         (test_hash_LDADD): Drop unused library.
10467         * tests/test-hash.c (main): Break xalloc dependency.
10468         (includes): Drop unused include.
10469
10470         xalloc-oversized: new module
10471         * modules/xalloc-oversized: New module.
10472         * modules/xalloc (Depends-on): Add it.
10473         * lib/xalloc.h (xalloc_oversized): Move...
10474         * lib/xalloc-oversized.h: ...into new file.
10475
10476         utimecmp: drop dependency on xmalloc
10477         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10478         due to memory pressure.
10479         * modules/utimecmp (Depends-on): Drop xalloc.
10480
10481 2011-04-27  Eric Blake  <eblake@redhat.com>
10482
10483         getcwd: fix mingw bugs
10484         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10485         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10486         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10487
10488 2011-04-27  Bruno Haible  <bruno@clisp.org>
10489
10490         mkstemps: Ensure declaration on MacOS X 10.5.
10491         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10492         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10493         MacOS X.
10494
10495 2011-04-27  Bruno Haible  <bruno@clisp.org>
10496
10497         mkstemp: More documentation.
10498         * doc/posix-functions/mkstemp.texi: Document header file problem on
10499         MacOS X.
10500
10501 2011-04-27  Bruno Haible  <bruno@clisp.org>
10502
10503         mkstemp: Tweak configure message when cross-compiling.
10504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10505         result as a guess.
10506
10507 2011-04-27  Bruno Haible  <bruno@clisp.org>
10508
10509         clean-temp: Clarify what it does.
10510         * lib/clean-temp.h: Add more comments.
10511         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10512         module.
10513         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10514         * doc/glibc-functions/mkstemps.texi: Likewise.
10515         * doc/glibc-functions/mkostemps.texi: Likewise.
10516
10517 2011-04-27  Eric Blake  <eblake@redhat.com>
10518
10519         fchdir: avoid extra chdir and fix test
10520         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10521         getcwd-lgpl.
10522         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10523         have to be canonical.
10524         (canonicalize_file_name): Drop unused macro.
10525         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10526
10527         filenamecat-lgpl: fix licence
10528         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10529         when it was first created.
10530
10531         linkat, renameat: add missing dependency
10532         * modules/linkat (Depends-on): Require getcwd-lgpl.
10533         * modules/renameat (Depends-on): Likewise.
10534
10535         tests: reduce dependencies
10536         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10537         * tests/test-renameat.c (main): Likewise.
10538         * modules/linkat-tests (Depends-on): Relax dependency.
10539         * modules/renameat-tests (Depends-on): Likewise.
10540         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10541         dependency explicit.
10542
10543         save-cwd: reduce default dependency
10544         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10545         * lib/save-cwd.c: Update comments.
10546         * NEWS: Document the semantic change.
10547
10548         getcwd: enhance tests
10549         * tests/test-getcwd-lgpl.c: New file, taken from...
10550         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10551         repeat long path stress tests from m4 probe.
10552         * modules/getcwd-lgpl-tests: New module.
10553         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10554         * m4/getcwd-abort-bug.m4: Update comment.
10555         * m4/getcwd-path-max.m4: Likewise.
10556
10557         getcwd-lgpl: new module
10558         * modules/getcwd-lgpl: New module.
10559         * lib/getcwd-lgpl.c: New file.
10560         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10561         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10562         * modules/getcwd (configure.ac): Set C witness.
10563         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10564
10565         getcwd: tweak comments
10566         * m4/getcwd-abort-bug.m4: Fix comments.
10567         * m4/getcwd-path-max.m4: Likewise.
10568         * m4/getcwd.m4: Likewise.
10569
10570 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10571         and Eric Blake  <eblake@redhat.com>
10572
10573         mkstemp: replace if system version uses wrong permissions
10574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10575         read/write mode bits set in file created by mkstemp.
10576         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10577
10578 2011-04-27  Eric Blake  <eblake@redhat.com>
10579
10580         passfd: avoid compiler warning
10581         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10582         Reported by Laine Stump.
10583
10584 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10585
10586         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10587         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10588
10589 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10590         and Eric Blake  <eblake@redhat.com>
10591
10592         mkstemp: mention clean-temp module
10593         * lib/mkstemp.c: Add comment.
10594         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10595
10596 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10597
10598         inttypes: also provide default values for 32-bit tests
10599         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10600         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10601
10602 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10603
10604         strtoumax: remove dependency on strtoimax
10605         This is like the strtoull change of yesterday.
10606         * modules/strtoumax (Files): Add lib/strtoimax.c.
10607         (Depends-on): Remove strtoimax and add verify.
10608
10609         inttypes-incomplete: new module
10610         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10611         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10612         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10613         of gl_INTTYPES_H.
10614         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10615         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10616         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10617         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10618         * modules/strtoumax, modules/xstrtol (Depends-on):
10619         Depend on inttypes-incomplete, not inttypes.
10620         * modules/inttypes-incomplete: New module, containing the contents
10621         of the old modules/inttypes module, except that the Files: section
10622         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10623         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10624         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10625         (Depends-on): Depend only on inttypes-incomplete.
10626         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10627
10628         inttypes: omit now-redundant strtoimax and strtoumax work
10629         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10630         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10631
10632         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10633         This supports apps that need pointers to strtoimax and strtoumax,
10634         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10635         nonexistent functions.  See
10636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10637         et seq.
10638         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10639         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10640         a macro.
10641         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10642
10643 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10644
10645         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10646
10647 2011-04-25  Bruno Haible  <bruno@clisp.org>
10648
10649         strtol, strtoul: Mark modules as obsolete.
10650         * modules/strtol (Status, Notice): New sections.
10651         * modules/strtoul (Status, Notice): New sections.
10652
10653 2011-04-25  Bruno Haible  <bruno@clisp.org>
10654
10655         strtod: Remove check for strtod, unless supporting old platforms.
10656         * modules/strtod-obsolete: New file.
10657         * m4/strtod-obsolete.m4: New file.
10658         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10659         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10660         * modules/strtod (Depends-on): Add strtod-obsolete.
10661         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10662
10663 2011-04-25  Bruno Haible  <bruno@clisp.org>
10664
10665         strcase: Make module obsolete.
10666         * modules/strcase (Status, Notice): New sections.
10667
10668 2011-04-25  Bruno Haible  <bruno@clisp.org>
10669
10670         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10671         * modules/dup2-obsolete: New file.
10672         * m4/dup2-obsolete.m4: New file.
10673         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10674         gl_FUNC_DUP2_OBSOLETE is not also defined.
10675         * modules/dup2 (Depends-on): Add dup2-obsolete.
10676         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10677
10678 2011-04-25  Bruno Haible  <bruno@clisp.org>
10679
10680         strnlen: Avoid memchr related link error on old obsolete platforms.
10681         * modules/memchr-obsolete: New file.
10682         * m4/memchr-obsolete.m4: New file.
10683         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10684         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10685         * modules/memchr (Depends-on): Add memchr-obsolete.
10686         * modules/strnlen (Depends-on): Likewise.
10687         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10688
10689 2011-04-25  Jim Meyering  <meyering@redhat.com>
10690
10691         maint.mk: makefile_at_at_check extend and clean up
10692         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10693         in addition to */Makefile.am.
10694         Exempt legitimate uses of @VAR@ notation, e.g.,
10695         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10696         Remove obsolete coreutils-specific comment.
10697         Prompted by discussion here:
10698         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10699
10700 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10701
10702         strtoul: remove dependency on strtol
10703         This is so that 'configure' need not check for strtol merely because
10704         the application needs strtoul.
10705         * modules/strtoul (Files): Add lib/strtol.c.
10706         (Depends-on): Remove strtol.
10707
10708         strtoull: remove dependency on strtoul
10709         This is like the strtoll change.
10710         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10711         (Depends-on): Remove strtoul.
10712
10713         strtoll: remove dependency on strtol
10714         This is so that 'configure' need not check for strtol merely because
10715         the application needs strtoll.
10716         * modules/strtoll (Files): Add lib/strtol.c.
10717         (Depends-on): Remove strtol.
10718
10719 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10720
10721         inttypes: Move some configure check to module 'imaxdiv'.
10722         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10723         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10724         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10725
10726 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10727
10728         inttypes: Move some configure check to module 'imaxabs'.
10729         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10730         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10731         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10732
10733 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10734
10735         inttypes: Remove configure tests that are not needed since 2009-12-31.
10736         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10737         gl_cv_header_working_inttypes_h.
10738
10739 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10740
10741         * modules/strnlen (Depends-on): Remove memchr.
10742         The strnlen implementation doesn't need the memchr module's fixes; see
10743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10744
10745         strtol: remove dependency on wchar
10746         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10747         * modules/strtol (Depends-on): Remove wchar.
10748
10749 2011-04-21  Eric Blake  <eblake@redhat.com>
10750
10751         passfd: fix test regression on Linux
10752         * modules/passfd-tests (configure.ac): Correct socketpair check.
10753
10754         passfd: speed up configure and drop unused code
10755         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10756         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10757         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10758         Instead of probing at configure for unix_scm_rights_bsd44_way,
10759         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10760         check to a struct member probe.
10761         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10762         (sendfd, recvfd): Update preprocessor checks.
10763         * modules/passfd (Files): Reflect rename, and drop unused file.
10764         (Depends-on): Drop unused dependency.
10765
10766         passfd: allow compilation on mingw
10767         * modules/sys_socket (Depends-on): Add sys_uio.
10768         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10769         iovec and a minimal struct msghdr.
10770         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10771         * tests/test-sys_socket.c (main): Enhance test.
10772         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10773         guaranteed to provide what we need.
10774         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10775         * modules/passfd-tests (Depends-on): Add sys_wait.
10776         * tests/test-passfd.c (main): Skip test on mingw, for now.
10777         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10778         partial 'struct msghdr' implementation.
10779
10780         sys_uio: new module
10781         * modules/sys_uio: New module.
10782         * modules/sys_uio-tests: Likewise.
10783         * lib/sys_uio.in.h: New file.
10784         * m4/sys_uio_h.m4: Likewise.
10785         * tests/test-sys_uio.c: Likewise.
10786         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10787         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10788
10789 2011-04-20  Jim Meyering  <meyering@redhat.com>
10790
10791         useless-if-before-free: avoid false-positive
10792         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10793         disjunct so that it too requires a terminating ";".  Without that,
10794         this script would identify as useless one statement from gcc that
10795         was not:
10796           if (aligned_ptr)
10797             free (((void **) aligned_ptr) [-1]);
10798
10799 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10800
10801         doc: update users.txt.
10802         * users.txt: Add barcode.
10803
10804 2011-04-19  Bruno Haible  <bruno@clisp.org>
10805
10806         ioctl: Remove link dependency on native Windows.
10807         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10808         (gl_close_fn, gl_ioctl_fn): New types.
10809         (struct fd_hook): Renamed from struct close_hook. Change type of
10810         private_close_fn field. Add private_ioctl_fn field.
10811         (close_hook_fn): Add parameter for primary close method.
10812         (execute_close_hooks, execute_all_close_hooks): Likewise.
10813         (ioctl_hook_fn): New type.
10814         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10815         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10816         argument.
10817         (unregister_fd_hook): Renamed from unregister_close_hook.
10818         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10819         Don't include <unistd.h>.
10820         (close): Remove undef.
10821         (anchor): Update.
10822         (execute_close_hooks): Add argument for primary close method.
10823         (execute_all_close_hooks): Likewise.
10824         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10825         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10826         argument. Allow each argument to be NULL.
10827         (unregister_fd_hook): Renamed from unregister_close_hook.
10828         * lib/close.c (rpl_close): Pass 'close' function pointer to
10829         execute_all_close_hooks.
10830         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10831         (primary_ioctl): New function.
10832         (ioctl): Don't call ioctlsocket here. Instead, call
10833         execute_all_ioctl_hooks.
10834         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10835         close method.
10836         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10837         (fd_sockets_hook): Renamed from close_sockets_hook.
10838         (gl_sockets_startup, gl_sockets_cleanup): Update.
10839         * modules/fd-hook: Renamed from modules/close-hook. Update.
10840         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10841         * modules/sockets (Depends-on): Likewise.
10842         * modules/ioctl (Depends-on): Add fd-hook.
10843         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10844         GNULIB_SOCKET.
10845
10846 2011-04-19  Bruno Haible  <bruno@clisp.org>
10847
10848         Move the support of O_NONBLOCK in open() to the 'open' module.
10849         * modules/nonblocking (Depends-on): Remove 'open'.
10850         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10851         gl_cv_have_open_O_NONBLOCK.
10852         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10853         O_NONBLOCK support.
10854         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10855
10856 2011-04-17  Bruno Haible  <bruno@clisp.org>
10857
10858         pipe2: Simplify code.
10859         * lib/pipe2.c (pipe2): Reduce code duplication.
10860
10861 2011-04-17  Bruno Haible  <bruno@clisp.org>
10862
10863         nonblocking: Add comment.
10864         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10865
10866 2011-04-17  Bruno Haible  <bruno@clisp.org>
10867
10868         nonblocking: Add tests for sockets.
10869         * tests/test-nonblocking-socket.sh: New file.
10870         * tests/test-nonblocking-socket-main.c: New file.
10871         * tests/test-nonblocking-socket-child.c: New file.
10872         * tests/test-nonblocking-socket.h: New file.
10873         * tests/socket-server.h: New file.
10874         * tests/socket-client.h: New file.
10875         * modules/nonblocking-socket-tests: New file.
10876         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10877
10878 2011-04-17  Bruno Haible  <bruno@clisp.org>
10879
10880         nonblocking: Add tests for pipes.
10881         * tests/test-nonblocking-pipe.sh: New file.
10882         * tests/test-nonblocking-pipe-main.c: New file.
10883         * tests/test-nonblocking-pipe-child.c: New file.
10884         * tests/test-nonblocking-pipe.h: New file.
10885         * tests/test-nonblocking-writer.h: New file.
10886         * tests/test-nonblocking-reader.h: New file.
10887         * tests/test-nonblocking-misc.h: New file.
10888         * modules/nonblocking-pipe-tests: New file.
10889         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10890
10891 2011-04-16  Bruno Haible  <bruno@clisp.org>
10892
10893         gettext: Clarify the needed programmer actions.
10894         * modules/gettext (Notice): New field.
10895         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10896
10897 2011-04-16  Bruno Haible  <bruno@clisp.org>
10898
10899         strchrnul: Tweak last commit.
10900         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10901         bug.
10902         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10903         as in _GL_FUNCDECL_SYS.
10904         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10905         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10906
10907 2011-04-15  Eric Blake  <eblake@redhat.com>
10908
10909         strchrnul: work around cygwin bug
10910         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10913         * modules/string (Makefile.am): Substitute it.
10914         * lib/string.in.h (strchrnul): Use it.
10915
10916 2011-04-15  Bruno Haible  <bruno@clisp.org>
10917
10918         Don't require lib/stdio-write.c when only module 'stdio' is used.
10919         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10920         invocation.
10921         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10922
10923 2011-04-14  Bruno Haible  <bruno@clisp.org>
10924
10925         Support non-blocking pipe I/O in read() on native Windows.
10926         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10927         (read): New declaration.
10928         * lib/read.c: New file.
10929         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10930         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10931         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10932         vscanf): New declarations.
10933         * lib/stdio-read.c: New file.
10934         * m4/read.m4: New file.
10935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10936         REPLACE_READ.
10937         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10938         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10939         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10940         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10941         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10942         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10943         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10944         * modules/read: New file.
10945         * modules/nonblocking (Files): Add lib/stdio-read.c.
10946         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10947         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10948         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10949         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10950         * modules/pread (Depends-on): Add read.
10951         * modules/safe-read (Depends-on): Likewise.
10952         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10953         gets, scanf, vfscanf, vscanf): Verify signatures.
10954         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10955         problem with non-blocking pipes.
10956         * doc/posix-functions/fgetc.texi: Likewise.
10957         * doc/posix-functions/fgets.texi: Likewise.
10958         * doc/posix-functions/fread.texi: Likewise.
10959         * doc/posix-functions/fscanf.texi: Likewise.
10960         * doc/posix-functions/getc.texi: Likewise.
10961         * doc/posix-functions/getchar.texi: Likewise.
10962         * doc/posix-functions/gets.texi: Likewise.
10963         * doc/posix-functions/scanf.texi: Likewise.
10964         * doc/posix-functions/vfscanf.texi: Likewise.
10965         * doc/posix-functions/vscanf.texi: Likewise.
10966
10967 2011-04-14  Bruno Haible  <bruno@clisp.org>
10968
10969         Support non-blocking pipe I/O in write() on native Windows.
10970         * lib/write.c (rpl_write): Split a write request that failed merely
10971         because the byte count was larger than the pipe buffer's size.
10972         * doc/posix-functions/write.texi: Mention the problem with large byte
10973         counts.
10974
10975 2011-04-14  Bruno Haible  <bruno@clisp.org>
10976
10977         wchar: Ensure that wchar_t gets defined on uClibc.
10978         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10979         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10980
10981 2011-04-13  Bruno Haible  <bruno@clisp.org>
10982
10983         safe-write, full-read: Avoid unnecessary compilation units.
10984         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10985         (Depends-on): Remove safe-read. Add ssize_t.
10986         * modules/full-read (Files): Add lib/full-write.c.
10987         (Depends-on): Add full-write.
10988
10989 2011-04-13  Bruno Haible  <bruno@clisp.org>
10990
10991         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10992         * modules/pwrite (Depends-on): Add 'write'.
10993
10994 2011-04-13  Bruno Haible  <bruno@clisp.org>
10995
10996         Support non-blocking pipe I/O in write() on native Windows.
10997         * lib/unistd.in.h (write): Enable replacement also if
10998         GNULIB_UNISTD_H_NONBLOCKING is 1.
10999         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11000         (rpl_write): When failing to write on a non-blocking pipe, change
11001         errno from ENOSPC to EAGAIN.
11002         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11003         putchar, puts, vfprintf, vprintf): Enable replacement also if
11004         GNULIB_STDIO_H_NONBLOCKING is 1.
11005         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11006         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11007         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11008         CALL_WITH_SIGPIPE_EMULATION.
11009         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11010         * m4/nonblocking.m4: New file.
11011         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11012         for non-blocking I/O support.
11013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11014         GNULIB_UNISTD_H_NONBLOCKING.
11015         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11016         required for non-blocking I/O support.
11017         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11018         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11019         lib/stdio-write.c, m4/asm-underscore.m4.
11020         (Depends-on): Add stdio, unistd.
11021         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11022         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11023         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11024         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11025         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11026         problem with non-blocking pipes.
11027         * doc/posix-functions/fputc.texi: Likewise.
11028         * doc/posix-functions/fputs.texi: Likewise.
11029         * doc/posix-functions/fwrite.texi: Likewise.
11030         * doc/posix-functions/printf.texi: Likewise.
11031         * doc/posix-functions/putc.texi: Likewise.
11032         * doc/posix-functions/putchar.texi: Likewise.
11033         * doc/posix-functions/puts.texi: Likewise.
11034         * doc/posix-functions/vfprintf.texi: Likewise.
11035         * doc/posix-functions/vprintf.texi: Likewise.
11036         * doc/posix-functions/write.texi: Likewise.
11037
11038 2011-04-10  Jim Meyering  <meyering@redhat.com>
11039
11040         maint.mk: prohibit doubled words
11041         Detect them also when they're separated by a newline.
11042         There are 3 ways to customize it:
11043           - disable the test on a per file basis, as usual with rules using
11044             $(VC_LIST_EXCEPT)
11045           - replace the default doubled-word-selecting regexp (affects all files)
11046           - ignore a particular file-vs-doubled-word match
11047         I nearly used that last one to ignore the "is is" match in
11048         coreutils' NEWS file, since the text was "ls -is is ..."
11049         To do that, I would have added this line to cfg.mk:
11050           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11051         but it would have ignored any "is is" match in NEWS.
11052         Low probability, but still...
11053         Instead, I changed the text, slightly:
11054           -  ls -is is now consistent with ls -lis in ignoring values returned
11055           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11056         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11057         (prohibit_doubled_word_): Define.
11058         (sc_prohibit_doubled_word): New rule.
11059         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11060
11061 2011-04-10  Jim Meyering  <meyering@redhat.com>
11062
11063         maint: fix doubled-word typo in comment
11064         * m4/gethostname.m4: s/is is/it is/
11065         * m4/getdomainname.m4: Likewise.
11066
11067 2011-04-10  Jim Meyering  <meyering@redhat.com>
11068
11069         maint: remove doubled word: s/it it/it/
11070         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11071
11072 2011-04-10  Jim Meyering  <meyering@redhat.com>
11073
11074         maint.mk: remove useless semicolon and backslash
11075         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11076         semicolon and backslash.
11077
11078 2011-04-10  Bruno Haible  <bruno@clisp.org>
11079
11080         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11081         * modules/stdint-tests (Depends-on): Add wchar.
11082
11083 2011-04-10  Jim Meyering  <meyering@redhat.com>
11084
11085         maint: remove doubled words in comments, e.g., s/a a/a/
11086         * lib/strptime.c (day_of_the_week): s/the the/the/
11087         * tests/test-chown.h (test_chown): s/a a/a/
11088
11089         test-chown.h: correct a cast
11090         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11091         when the destination is a stat.st_gid.
11092
11093 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11094
11095         getaddrinfo: Fix test for sa_len member.
11096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11097         include <sys/types.h> before <sys/socket.h>.
11098
11099 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11100
11101         maint: change "can not" to "cannot"
11102         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11103         boundaries.
11104
11105 2011-04-09  Jim Meyering  <meyering@redhat.com>
11106
11107         maint: change "a a" to "a"
11108         * tests/test-lchown.h (test_lchown): s/a a/a/
11109
11110         maint.mk: prohibit \<the the\>
11111         * top/maint.mk (sc_prohibit_the_the): New rule.
11112
11113         maint: fix "the the" in comment
11114         * lib/count-one-bits.h: s/the the/the/
11115
11116         maint: change "can not" to "cannot"
11117         But do not change the occurrences in maintain.texi or in
11118         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11119         * doc/gnulib-tool.texi: s/can not/cannot/
11120         * doc/posix-functions/accept.texi (accept): Likewise.
11121         * doc/posix-functions/socket.texi (socket): Likewise.
11122         * lib/mbrtowc.c: Likewise.
11123
11124         maint.mk: prohibit use of "can not"
11125         * top/maint.mk (sc_prohibit_can_not): New rule.
11126         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11127
11128 2011-04-09  Bruno Haible  <bruno@clisp.org>
11129
11130         careadlinkat: Guard against misuse of careadlinkatcwd.
11131         * lib/careadlinkat.c: Include <stdlib.h>.
11132         (careadlinkatcwd): Check that the fd argument is as expected.
11133
11134 2011-04-09  Bruno Haible  <bruno@clisp.org>
11135
11136         careadlinkat: Use common coding style.
11137         * lib/careadlinkat.c: Move gnulib includes after system includes.
11138
11139 2011-04-09  Bruno Haible  <bruno@clisp.org>
11140
11141         careadlinkat: Clarify specification.
11142         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11143         (careadlinkatcwd): Add comment.
11144         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11145
11146 2011-04-09  Bruno Haible  <bruno@clisp.org>
11147
11148         areadlinkat: Avoid link error on many platforms.
11149         * modules/areadlinkat (Depends-on): Add areadlink.
11150
11151 2011-04-09  Bruno Haible  <bruno@clisp.org>
11152
11153         allocator, careadlinkat: Fix double-inclusion guard.
11154         * lib/allocator.h: Fix double-inclusion guard.
11155         * lib/careadlinkat.h: Likewise.
11156
11157 2011-04-09  Bruno Haible  <bruno@clisp.org>
11158
11159         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11160         * lib/relocwrapper.c: Update dependencies hierarchy.
11161         * build-aux/install-reloc: Update list of files to be compiled.
11162         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11163         lib/allocator.[hc].
11164
11165 2011-04-08  Eric Blake  <eblake@redhat.com>
11166
11167         strftime: silence gnulib-tool warning
11168         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11169
11170 2011-04-08  Bruno Haible  <bruno@clisp.org>
11171
11172         verify: Fix syntax error with GCC 4.6 in C++ mode.
11173         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11174         (HAVE_STATIC_ASSERT): New macro.
11175         (verify_true, verify): Use 'static_assert' if it is supported and
11176         '_Static_assert' is not supported.
11177
11178 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11179
11180         allocator: New module.
11181         * modules/allocator, lib/allocator.c: New files.
11182         * lib/allocator.h (stdlib_allocator): New decl.
11183         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11184         Remove.  Do not include <stdlib.h>.
11185         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11186         * modules/careadlinkat (Files): Remove lib/allocator.h.
11187         (Depends-on): Add allocator.
11188
11189         stdlib: let modules use system malloc, realloc
11190         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11191         if !_GL_USE_STDLIB_ALLOC.
11192         (malloc, realloc): Limit this change to a smaller scope.
11193
11194         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11195         (malloc, realloc): Don't #undef; no longer needed.
11196         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11197         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11198         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11199         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11200         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11201         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11202         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11203         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11204
11205         careadlinkat: rename members to avoid problem
11206         * lib/allocator.h (struct allocator): Rename members from
11207         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11208         and realloc are #define'd.  Reported by Eric Blake in
11209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11210         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11211
11212 2011-04-08  Eric Blake  <eblake@redhat.com>
11213
11214         nonblocking: reduce dependency
11215         * tests/test-nonblocking.c: Only test sockets when in use.
11216         * modules/nonblocking-tests (Depends-on): Drop socket.
11217         (Makefile.am): Link even if sockets are not present.
11218         * modules/pipe2-tests (Makefile.am): Likewise.
11219         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11220
11221         pipe2: fix O_NONBLOCK support on mingw
11222         * modules/pipe2 (Depends-on): Add nonblocking.
11223         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11224         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11225         * tests/test-nonblocking.c (main): Likewise.
11226         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11227
11228         fcntl-h: fix O_ACCMODE on cygwin
11229         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11230         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11231
11232         pipe-filter: drop O_NONBLOCK workarounds
11233         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11234         * modules/pipe-filter-ii (Depends-on): Likewise.
11235         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11236
11237         nonblocking: provide O_NONBLOCK for mingw
11238         * modules/nonblocking (Depends-on): Add open.
11239         (configure.ac): Set new witness macro.
11240         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11241         * modules/fcntl-h (Makefile.am): Substitute it.
11242         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11243         nonblocking module is in use.
11244         * lib/nonblocking.c: Adjust portability test.
11245         * lib/open.c (open): Don't let native open see gnulib flag.
11246         * tests/test-fcntl-h.c (main): Enhance test.
11247         * tests/test-open.h (test_open): Likewise.
11248         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11249
11250         careadlinkat: fix compilation error on mingw
11251         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11252         within struct allocator.
11253
11254 2011-04-06  Eric Blake  <eblake@redhat.com>
11255
11256         binary-io: relicense under LGPLv2+
11257         * modules/binary-io (License): Relax to LGPLv2+.
11258         Requested for libvirt, and required by pipe2.
11259
11260 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11261
11262         verify: use _Static_assert if available
11263         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11264         (verify_true, verify): Use it if available.  This generates better
11265         diagnostics with GCC 4.6.0 and later.
11266
11267 2011-04-05  Bruno Haible  <bruno@clisp.org>
11268
11269         Remove leftover generated .h files after config.status changed.
11270
11271         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11272         GL_GENERATE_ALLOCA_H.
11273         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11274         GL_GENERATE_ALLOCA_H evaluates to false.
11275
11276         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11277         GL_GENERATE_ARGZ_H.
11278         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11279         evaluates to false.
11280
11281         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11282         GL_GENERATE_BYTESWAP_H.
11283         * modules/byteswap (Makefile.am): Remove byteswap.h if
11284         GL_GENERATE_BYTESWAP_H evaluates to false.
11285
11286         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11287         GL_GENERATE_ERRNO_H.
11288         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11289         evaluates to false.
11290
11291         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11292         GL_GENERATE_FLOAT_H.
11293         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11294         evaluates to false.
11295
11296         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11297         GL_GENERATE_FNMATCH_H.
11298         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11299         GL_GENERATE_FNMATCH_H evaluates to false.
11300
11301         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11302         GL_GENERATE_GLOB_H.
11303         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11304         evaluates to false.
11305
11306         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11307         automake conditional GL_GENERATE_ICONV_H.
11308         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11309         evaluates to false.
11310
11311         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11312         GL_GENERATE_NETINET_IN_H.
11313         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11314         GL_GENERATE_NETINET_IN_H evaluates to false.
11315
11316         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11317         conditional GL_GENERATE_PTHREAD_H.
11318         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11319         * modules/pthread (Makefile.am): Remove pthread.h if
11320         GL_GENERATE_PTHREAD_H evaluates to false.
11321
11322         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11323         GL_GENERATE_SCHED_H.
11324         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11325         evaluates to false.
11326
11327         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11328         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11329         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11330         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11331
11332         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11333         GL_GENERATE_STDARG_H.
11334         * modules/stdarg (Makefile.am): Remove stdarg.h if
11335         GL_GENERATE_STDARG_H evaluates to false.
11336
11337         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11338         GL_GENERATE_STDBOOL_H.
11339         * modules/stdbool (Makefile.am): Remove stdbool.h if
11340         GL_GENERATE_STDBOOL_H evaluates to false.
11341
11342         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11343         conditional GL_GENERATE_STDDEF_H.
11344         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11345         * modules/stddef (Makefile.am): Remove stddef.h if
11346         GL_GENERATE_STDDEF_H evaluates to false.
11347
11348         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11349         GL_GENERATE_STDINT_H.
11350         * modules/stdint (Makefile.am): Remove stdint.h if
11351         GL_GENERATE_STDINT_H evaluates to false.
11352
11353         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11354         GL_GENERATE_SYSEXITS_H.
11355         * modules/sysexits (Makefile.am): Remove sysexits.h if
11356         GL_GENERATE_SYSEXITS_H evaluates to false.
11357
11358         Reported by Karl Berry and Ralf Wildenhues.
11359
11360 2011-04-05  Bruno Haible  <bruno@clisp.org>
11361
11362         Ensure to rebuild generated .h files when config.status has changed.
11363         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11364         config.status.
11365         * modules/ctype (Makefile.am): Likewise.
11366         * modules/dirent (Makefile.am): Likewise.
11367         * modules/errno (Makefile.am): Likewise.
11368         * modules/fcntl-h (Makefile.am): Likewise.
11369         * modules/float (Makefile.am): Likewise.
11370         * modules/getopt-posix (Makefile.am): Likewise.
11371         * modules/glob (Makefile.am): Likewise.
11372         * modules/iconv-h (Makefile.am): Likewise.
11373         * modules/inttypes (Makefile.am): Likewise.
11374         * modules/langinfo (Makefile.am): Likewise.
11375         * modules/locale (Makefile.am): Likewise.
11376         * modules/math (Makefile.am): Likewise.
11377         * modules/netdb (Makefile.am): Likewise.
11378         * modules/netinet_in (Makefile.am): Likewise.
11379         * modules/poll-h (Makefile.am): Likewise.
11380         * modules/pthread (Makefile.am): Likewise.
11381         * modules/pty (Makefile.am): Likewise.
11382         * modules/sched (Makefile.am): Likewise.
11383         * modules/search (Makefile.am): Likewise.
11384         * modules/selinux-h (Makefile.am): Likewise.
11385         * modules/signal (Makefile.am): Likewise.
11386         * modules/spawn (Makefile.am): Likewise.
11387         * modules/stdarg (Makefile.am): Likewise.
11388         * modules/stdbool (Makefile.am): Likewise.
11389         * modules/stddef (Makefile.am): Likewise.
11390         * modules/stdint (Makefile.am): Likewise.
11391         * modules/stdio (Makefile.am): Likewise.
11392         * modules/stdlib (Makefile.am): Likewise.
11393         * modules/string (Makefile.am): Likewise.
11394         * modules/strings (Makefile.am): Likewise.
11395         * modules/sys_file (Makefile.am): Likewise.
11396         * modules/sys_ioctl (Makefile.am): Likewise.
11397         * modules/sys_select (Makefile.am): Likewise.
11398         * modules/sys_socket (Makefile.am): Likewise.
11399         * modules/sys_stat (Makefile.am): Likewise.
11400         * modules/sys_time (Makefile.am): Likewise.
11401         * modules/sys_times (Makefile.am): Likewise.
11402         * modules/sys_utsname (Makefile.am): Likewise.
11403         * modules/sys_wait (Makefile.am): Likewise.
11404         * modules/sysexits (Makefile.am): Likewise.
11405         * modules/termios (Makefile.am): Likewise.
11406         * modules/time (Makefile.am): Likewise.
11407         * modules/unistd (Makefile.am): Likewise.
11408         * modules/wchar (Makefile.am): Likewise.
11409         * modules/wctype-h (Makefile.am): Likewise.
11410         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11411
11412 2011-04-05  Bruno Haible  <bruno@clisp.org>
11413
11414         pipe2: Relicense under LGPLv2+.
11415         * modules/pipe2 (License): Change to LGPLv2+.
11416         Requested by Eric Blake, for libvirt.
11417
11418 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11419
11420         bootstrap: compute gnulib_extra_files after updating build_aux
11421         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11422         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11423
11424 2011-04-05  Eric Blake  <eblake@redhat.com>
11425
11426         bootstrap: preserve git whitelist item sorting
11427         * build-aux/bootstrap (sort_patterns): New function.
11428         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11429
11430 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11431
11432         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11433         sc_space_tab check.
11434
11435 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         areadlink, areadlinkat: rewrite in terms of careadlinkat
11438         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11439         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11440         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11441         (malloc, realloc): Remove #undefs.
11442         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11443         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11444         readlink, ssize_t, stdint, unistd.
11445         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11446         areadlink, stdint.
11447
11448         careadlinkat: new module
11449         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11450         * modules/careadlinkat: New files, written by me with
11451         a review and feedback from Ben Pfaff in
11452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11453
11454 2011-04-01  Bruno Haible  <bruno@clisp.org>
11455
11456         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11457         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11458         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11459         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11460         Reported by Bruce Korb <bruce.korb@gmail.com>.
11461
11462 2011-04-01  Bruno Haible  <bruno@clisp.org>
11463
11464         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11465         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11466         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11467         * modules/wcpcpy (Depends-on): Add extensions.
11468         * modules/wcpncpy (Depends-on): Likewise.
11469         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11470         systems.
11471         * doc/posix-functions/wcpncpy.texi: Likewise.
11472         * doc/posix-functions/wcwidth.texi: Likewise.
11473
11474 2011-03-31  Eric Blake  <eblake@redhat.com>
11475
11476         nonblocking: fix mingw test failures
11477         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11478         non-blocking flag on regular file.
11479         (get_nonblocking_flag): Set errno on invalid fd.
11480         * tests/test-nonblocking.c (main): Avoid test failure on
11481         directories if fchdir is not active.
11482         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11483
11484 2011-03-31  Bruno Haible  <bruno@clisp.org>
11485
11486         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11487         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11488         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11489         Reported by Simon Josefsson <simon@josefsson.org>.
11490
11491 2011-03-31  Bruno Haible  <bruno@clisp.org>
11492         and Eric Blake  <eblake@redhat.com>
11493
11494         nonblocking: new module
11495         * modules/nonblocking: New module.
11496         * modules/nonblocking-tests: Likewise.
11497         * lib/nonblocking.h: New file.
11498         * lib/nonblocking.c: Likewise.
11499         * tests/test-nonblocking.c: New test.
11500         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11501
11502 2011-03-30  Bruno Haible  <bruno@clisp.org>
11503
11504         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11505         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11506         instead of 'printf' format for GCC >= 4.4.
11507         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11508         (fprintf, printf, vfprintf, vprintf): Declare with
11509         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11510         the system's vfprintf() function.
11511         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11512
11513 2011-03-30  Eric Blake  <eblake@redhat.com>
11514
11515         passfd: fix scoping bug
11516         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11517         before sendmsg/recvmsg.
11518
11519         passfd: standardize coding conventions
11520         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11521         can be learned at compile time.
11522         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11523         ifdefs.
11524         (sendfd, recvfd): Follow gnulib code conventions.
11525
11526         passfd: fix incorrect sendmsg arguments
11527         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11528         incorrect msg_controllen value.
11529         * modules/passfd-tests (Depends-on): Check for alarm.
11530         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11531         Reported by Bastien ROUCARIES.
11532
11533 2011-03-30  Bruno Haible  <bruno@clisp.org>
11534
11535         c-strcasestr: Relicense under LGPLv2+.
11536         * modules/c-strcasestr (License): Change to LGPLv2+.
11537         Requested by Eric Blake, for libvirt.
11538
11539 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11540
11541         * users.txt: Add libidn2.  Fix libtasn1 link.
11542
11543 2011-03-30  Jim Meyering  <meyering@redhat.com>
11544
11545         tests: readlink* ("",... fails with EINVAL on newer kernels
11546         readlink and readlinkat have typically failed with ENOENT for
11547         the invalid, empty file name,  "".  However, with the advent
11548         of linux-2.6.39, they fail with EINVAL.
11549         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11550         when operating on the empty file name.
11551         * tests/test-readlink.h (test_readlink): Likewise.
11552
11553 2011-03-29  Bruno Haible  <bruno@clisp.org>
11554
11555         Relicense some modules under LGPLv2+, for libidn2.
11556         * modules/array-mergesort (License): Change to LGPLv2+.
11557         * modules/c-strcaseeq (License): Likewise.
11558         * modules/striconveh (License): Likewise.
11559         * modules/striconveha (License): Likewise.
11560         * modules/uniconv/base (License): Likewise.
11561         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11562         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11563         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11564         * modules/unictype/base (License): Likewise.
11565         * modules/unictype/bidiclass-of (License): Likewise.
11566         * modules/unictype/category-M (License): Likewise.
11567         * modules/unictype/category-none (License): Likewise.
11568         * modules/unictype/category-of (License): Likewise.
11569         * modules/unictype/category-test (License): Likewise.
11570         * modules/unictype/category-test-withtable (License): Likewise.
11571         * modules/unictype/combining-class (License): Likewise.
11572         * modules/unictype/joiningtype-of (License): Likewise.
11573         * modules/unictype/scripts (License): Likewise.
11574         * modules/uninorm/base (License): Likewise.
11575         * modules/uninorm/canonical-decomposition (License): Likewise.
11576         * modules/uninorm/composition (License): Likewise.
11577         * modules/uninorm/decompose-internal (License): Likewise.
11578         * modules/uninorm/decomposition-table (License): Likewise.
11579         * modules/uninorm/nfc (License): Likewise.
11580         * modules/uninorm/nfd (License): Likewise.
11581         * modules/uninorm/u32-normalize (License): Likewise.
11582         * modules/unistr/base (License): Likewise.
11583         * modules/unistr/u32-cpy (License): Likewise.
11584         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11585         * modules/unistr/u32-to-u8 (License): Likewise.
11586         * modules/unistr/u32-uctomb (License): Likewise.
11587         * modules/unistr/u8-check (License): Likewise.
11588         * modules/unistr/u8-mblen (License): Likewise.
11589         * modules/unistr/u8-mbtouc (License): Likewise.
11590         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11591         * modules/unistr/u8-mbtoucr (License): Likewise.
11592         * modules/unistr/u8-prev (License): Likewise.
11593         * modules/unistr/u8-strlen (License): Likewise.
11594         * modules/unistr/u8-to-u32 (License): Likewise.
11595         * modules/unistr/u8-uctomb (License): Likewise.
11596         * modules/unitypes (License): Likewise.
11597         Requested by Simon Josefsson.
11598
11599 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11600
11601         lib-symbol-visibility: Add a notice.
11602         * modules/lib-symbol-visibility (Notice): New field.
11603
11604 2011-03-29  Bruno Haible  <bruno@clisp.org>
11605
11606         getaddrinfo: Doc fix.
11607         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11608         section "fixed in Gnulib".
11609
11610 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11611
11612         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11613         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11614
11615 2011-03-26  Bruno Haible  <bruno@clisp.org>
11616
11617         unictype/property-byname: Reduce the number of load-time relocations.
11618         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11619         (UC_PROPERTY_INDEX_*): New enumeration values.
11620         (uc_property_byname): Convert an index from the lookup table to an
11621         uc_property_t.
11622         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11623         values.
11624
11625 2011-03-26  Bruno Haible  <bruno@clisp.org>
11626
11627         unictype/property-byname: Allow omitted word separators and aliases.
11628         * lib/unictype/pr_byname.gperf: Add property names without word
11629         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11630         for 'space'.
11631
11632 2011-03-26  Bruno Haible  <bruno@clisp.org>
11633
11634         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11635         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11636         also hyphens to space.
11637         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11638         without spaces.
11639         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11640
11641 2011-03-26  Bruno Haible  <bruno@clisp.org>
11642
11643         unictype/joiningtype-byname: Recognize long names as well.
11644         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11645         a long name.
11646         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11647         unictype/joiningtype_byname.h.
11648         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11649         * lib/unictype/joiningtype_byname.gperf: New file.
11650         * modules/unictype/joiningtype-byname (Files): Add
11651         lib/unictype/joiningtype_byname.gperf.
11652         (Depends-on): Add gperf.
11653         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11654         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11655         long names.
11656
11657         Tests for module 'unictype/joiningtype-longname'.
11658         * modules/unictype/joiningtype-longname-tests: New file.
11659         * tests/unictype/test-joiningtype_longname.c: New file.
11660
11661         New module 'unictype/joiningtype-longname'.
11662         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11663         * lib/unictype/joiningtype_longname.c: New file.
11664         * modules/unictype/joiningtype-longname: New file.
11665         * modules/unictype/joiningtype-all (Depends-on): Add
11666         unictype/joiningtype-longname.
11667
11668 2011-03-26  Bruno Haible  <bruno@clisp.org>
11669
11670         unictype/bidiclass-byname: Recognize long names as well.
11671         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11672         name.
11673         * lib/unictype/bidi_byname.c: Include <string.h>,
11674         unictype/bidi_byname.h.
11675         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11676         * lib/unictype/bidi_byname.gperf: New file.
11677         * modules/unictype/bidiclass-byname (Files): Add
11678         lib/unictype/bidi_byname.gperf.
11679         (Depends-on): Add gperf.
11680         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11681         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11682         long names.
11683
11684         Tests for module 'unictype/bidiclass-longname'.
11685         * modules/unictype/bidiclass-longname-tests: New file.
11686         * tests/unictype/test-bidi_longname.c: New file.
11687
11688         New module 'unictype/bidiclass-longname'.
11689         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11690         * lib/unictype/bidi_longname.c: New file.
11691         * modules/unictype/bidiclass-longname: New file.
11692         * modules/unictype/bidiclass-all (Depends-on): Add
11693         unictype/bidiclass-longname.
11694
11695 2011-03-26  Bruno Haible  <bruno@clisp.org>
11696
11697         unictype/bidi*: Rename modules.
11698         * modules/unictype/bidiclass-all: Renamed from
11699         modules/unictype/bidicategory-all.
11700         * modules/unictype/bidiclass-name: Renamed from
11701         modules/unictype/bidiclass-name.
11702         (Description): Update.
11703         * modules/unictype/bidiclass-name-tests: Renamed from
11704         modules/unictype/bidicategory-name-tests.
11705         * modules/unictype/bidiclass-byname: Renamed from
11706         modules/unictype/bidicategory-byname.
11707         (Description): Update.
11708         * modules/unictype/bidiclass-byname-tests: Renamed from
11709         modules/unictype/bidicategory-byname-tests.
11710         * modules/unictype/bidiclass-of: Renamed from
11711         modules/unictype/bidicategory-of.
11712         (Description): Update.
11713         * modules/unictype/bidiclass-of-tests: Renamed from
11714         modules/unictype/bidicategory-of-tests.
11715         * modules/unictype/bidiclass-test: Renamed from
11716         modules/unictype/bidicategory-test.
11717         (Description): Update.
11718         * modules/unictype/bidiclass-test-tests: Renamed from
11719         modules/unictype/bidicategory-test-tests.
11720         * modules/unictype/bidicategory-all: New file, a simple redirection.
11721         * modules/unictype/bidicategory-name: Likewise.
11722         * modules/unictype/bidicategory-byname: Likewise.
11723         * modules/unictype/bidicategory-of: Likewise.
11724         * modules/unictype/bidicategory-test: Likewise.
11725         * modules/unictype/property-bidi-* (Dependencies): Update.
11726         * lib/unictype/bidi_*.c: Update comment.
11727
11728 2011-03-26  Bruno Haible  <bruno@clisp.org>
11729
11730         unictype/bidi*: Rename functions, part 2.
11731         * modules/unictype/bidicategory-name (configure.ac): Update required
11732         libunistring version.
11733         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11734
11735 2011-03-25  Bruno Haible  <bruno@clisp.org>
11736
11737         New module 'unictype/combining-class-all'.
11738         * modules/unictype/combining-class-all: New file.
11739
11740         Tests for module 'unictype/combining-class-byname'.
11741         * modules/unictype/combining-class-byname-tests: New file.
11742         * tests/unictype/test-combiningclass_byname.c: New file.
11743
11744         New module 'unictype/combining-class-byname'.
11745         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11746         * lib/unictype/combiningclass_byname.c: New file.
11747         * lib/unictype/combiningclass_byname.gperf: New file.
11748         * modules/unictype/combining-class-byname: New file.
11749
11750         Tests for module 'unictype/combining-class-longname'.
11751         * modules/unictype/combining-class-longname-tests: New file.
11752         * tests/unictype/test-combiningclass_longname.c: New file.
11753
11754         New module 'unictype/combining-class-longname'.
11755         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11756         * lib/unictype/combiningclass_longname.c: New file.
11757         * modules/unictype/combining-class-longname: New file.
11758
11759         Tests for module 'unictype/combining-class-name'.
11760         * modules/unictype/combining-class-name-tests: New file.
11761         * tests/unictype/test-combiningclass_name.c: New file.
11762
11763         New module 'unictype/combining-class-name'.
11764         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11765         * lib/unictype/combiningclass_name.c: New file.
11766         * modules/unictype/combining-class-name: New file.
11767
11768 2011-03-25  Bruno Haible  <bruno@clisp.org>
11769
11770         unictype/combining-class: Rename source files.
11771         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11772         of unictype/combining.h.
11773         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11774         Update.
11775         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11776         * modules/unictype/combining-class (Description): Fix.
11777         (Files, Makefile.am): Update.
11778         * tests/unictype/test-combiningclass.c: Renamed from
11779         tests/unictype/test-combining.c.
11780         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11781
11782 2011-03-25  Bruno Haible  <bruno@clisp.org>
11783
11784         unictype: Update list of canonical combining classes.
11785         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11786
11787 2011-03-25  Bruno Haible  <bruno@clisp.org>
11788
11789         unictype/category-byname: Recognize long names as well.
11790         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11791         a long name.
11792         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11793         unictype/categ_byname.h.
11794         (UC_CATEGORY_INDEX_*): New enumeration values.
11795         (uc_general_category_byname): Use uc_general_category_lookup and
11796         convert from index to value.
11797         * lib/unictype/categ_byname.gperf: New file.
11798         * modules/unictype/category-byname (Files): Add
11799         lib/unictype/categ_byname.gperf.
11800         (Depends-on): Add gperf.
11801         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11802         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11803         long names.
11804
11805         Tests for module 'unictype/category-longname'.
11806         * modules/unictype/category-longname-tests: New file.
11807         * tests/unictype/test-categ_longname.c: New file.
11808
11809         New module 'unictype/category-longname'.
11810         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11811         * lib/unictype/categ_longname.c: New file.
11812         * modules/unictype/category-longname: New file.
11813         * modules/unictype/category-all (Depends-on): Add it.
11814
11815 2011-03-25  Bruno Haible  <bruno@clisp.org>
11816
11817         Tests for module 'unictype/category-LC'.
11818         * modules/unictype/category-LC-tests: New file.
11819         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11820
11821         New module 'unictype/category-LC'.
11822         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11823         (UC_CATEGORY_LC): New declaration.
11824         (UC_CASED_LETTER): New macro.
11825         * lib/gen-uni-tables.c (is_category_LC): New function.
11826         (output_categories): Also handle category LC.
11827         (UC_CATEGORY_MASK_LC): New enumeration value.
11828         (general_category_byname): Also handle category LC.
11829         * lib/unictype/categ_LC.c: New file.
11830         * lib/unictype/categ_LC.h: New file, automatically generated.
11831         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11832         category LC.
11833         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11834         * modules/unictype/category-LC: New file.
11835         * modules/unictype/category-byname (Depends-on): Add
11836         unictype/category-LC.
11837         * modules/unictype/category-all (Depends-on): Likewise.
11838
11839 2011-03-25  Eric Blake  <eblake@redhat.com>
11840
11841         xmalloc: revert yesterday's regression
11842         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11843         realloc's underlying behavior (allowing allocation of zero-size
11844         objects, especially if malloc-gnu is also in use).
11845
11846 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11847
11848         maint.mk: add missing version to VC-tag
11849         * top/maint.mk: git tag was missing actual tag name; add it.
11850
11851         valgrind: do leak checking, and exit with code 1 on error (not 0)
11852         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11853         to VALGRIND.
11854
11855 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11856
11857         posix-modules: say what it does.
11858         * posix-modules: Add a line to the --help output saying what it does.
11859
11860 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11861
11862         xmalloc: Do not leak if underlying realloc is C99 compatible.
11863         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11864         This avoids a leak on C99-based systems.  See
11865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11866
11867 2011-03-24  Eric Blake  <eblake@redhat.com>
11868
11869         realloc: document portability problem
11870         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11871         passing 0 size to realloc.
11872
11873 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11874
11875         doc: update users.txt
11876         * users.txt: Add cvsps, tmpwatch
11877
11878 2011-03-23  Matt Rice  <ratmice@gmail.com>
11879
11880         doc: update users.txt
11881         * users.txt: Add gdb.
11882
11883 2011-03-23  Jim Meyering  <meyering@redhat.com>
11884
11885         doc: update users.txt
11886         Looking through matches up to the following URL (there are still
11887         several more pages), I found several projects that use gnulib:
11888         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11889         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11890         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11891
11892 2011-03-22  Bruno Haible  <bruno@clisp.org>
11893
11894         unictype/bidi*: Rename functions.
11895         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11896         uc_bidi_class, uc_is_bidi_class): New declarations.
11897         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11898         uc_bidi_category_byname.
11899         (uc_bidi_category_byname): New function.
11900         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11901         u_bidi_category_name.
11902         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11903         (uc_bidi_category_name): New function.
11904         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11905         uc_bidi_category.
11906         (uc_bidi_category): New function.
11907         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11908         uc_is_bidi_category. Invoke uc_bidi_class.
11909         (uc_is_bidi_category): New function.
11910         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11911         instead of uc_bidi_category_byname.
11912         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11913         instead of uc_bidi_category_name.
11914         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11915         uc_bidi_category.
11916         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11917         instead of uc_is_bidi_category.
11918
11919 2011-03-21  Bruno Haible  <bruno@clisp.org>
11920
11921         New module 'unictype/joininggroup-all'.
11922         * modules/unictype/joininggroup-all: New file.
11923
11924         Tests for module 'unictype/joininggroup-of'.
11925         * modules/unictype/joininggroup-of-tests: New file.
11926         * tests/unictype/test-joininggroup_of.c: New file.
11927         * tests/unictype/test-joininggroup_of.h: New file, automatically
11928         generated by gen-uni-tables.
11929
11930         New module 'unictype/joininggroup-of'.
11931         * modules/unictype/joininggroup-of: New file.
11932         * lib/unictype/joininggroup_of.c: New file.
11933         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11934         gen-uni-tables.
11935
11936         Tests for module 'unictype/joininggroup-byname'.
11937         * modules/unictype/joininggroup-byname-tests: New file.
11938         * tests/unictype/test-joininggroup_byname.c: New file.
11939
11940         New module 'unictype/joininggroup-byname'.
11941         * modules/unictype/joininggroup-byname: New file.
11942         * lib/unictype/joininggroup_byname.c: New file.
11943         * lib/unictype/joininggroup_byname.gperf: New file.
11944
11945         Tests for module 'unictype/joininggroup-name'.
11946         * modules/unictype/joininggroup-name-tests: New file.
11947         * tests/unictype/test-joininggroup_name.c: New file.
11948
11949         New module 'unictype/joininggroup-name'.
11950         * modules/unictype/joininggroup-name: New file.
11951         * lib/unictype/joininggroup_name.c: New file.
11952         * lib/unictype/joininggroup_name.h: New file.
11953
11954         New module 'unictype/joiningtype-all'.
11955         * modules/unictype/joiningtype-all: New file.
11956
11957         Tests for module 'unictype/joiningtype-of'.
11958         * modules/unictype/joiningtype-of-tests: New file.
11959         * tests/unictype/test-joiningtype_of.c: New file.
11960         * tests/unictype/test-joiningtype_of.h: New file, automatically
11961         generated by gen-uni-tables.
11962
11963         New module 'unictype/joiningtype-of'.
11964         * modules/unictype/joiningtype-of: New file.
11965         * lib/unictype/joiningtype_of.c: New file.
11966         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11967         gen-uni-tables.
11968
11969         Tests for module 'unictype/joiningtype-byname'.
11970         * modules/unictype/joiningtype-byname-tests: New file.
11971         * tests/unictype/test-joiningtype_byname.c: New file.
11972
11973         New module 'unictype/joiningtype-byname'.
11974         * modules/unictype/joiningtype-byname: New file.
11975         * lib/unictype/joiningtype_byname.c: New file.
11976
11977         Tests for module 'unictype/joiningtype-name'.
11978         * modules/unictype/joiningtype-name-tests: New file.
11979         * tests/unictype/test-joiningtype_name.c: New file.
11980
11981         New module 'unictype/joiningtype-name'.
11982         * modules/unictype/joiningtype-name: New file.
11983         * lib/unictype/joiningtype_name.c: New file.
11984
11985         unictype: Add support for Arabic shaping properties.
11986         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11987         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11988         declarations.
11989         (UC_JOINING_GROUP_*): New enumeration values.
11990         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11991         declarations.
11992         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11993         (unicode_joining_type): New variable.
11994         (UC_JOINING_GROUP_*): New enumeration values.
11995         (unicode_joining_group): New variable.
11996         (fill_arabicshaping, joining_type_as_c_identifier,
11997         output_joining_type_test, output_joining_type,
11998         joining_group_as_c_identifier, output_joining_group_test,
11999         output_joining_group): New functions.
12000         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12001         fill_arabicshaping and output_joining_type_test, output_joining_type,
12002         output_joining_group_test, output_joining_group.
12003         Reported by Simon Josefsson.
12004
12005 2011-03-21  Jim Meyering  <meyering@redhat.com>
12006
12007         strftime: fix a bug in yesterday's change
12008         * lib/strftime.c (add): Accommodate width's initial value of -1.
12009         Otherwise, nstrftime would copy uninitialized data into
12010         the result buffer.
12011
12012 2011-03-21  Jim Meyering  <meyering@redhat.com>
12013
12014         tests: add strftime-tests module
12015         * tests/test-strftime.c: New file.
12016         * modules/strftime-tests: New module.
12017
12018 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12019
12020         strftime: don't assume a byte count fits in 'int'
12021         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12022         found this problem by static analysis, using gcc -Wstrict-overflow
12023         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12024         on an integer overflow having undefined behavior, but it turns out
12025         that the argument is a size, which might not fit in 'int' anyway,
12026
12027 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12028
12029         stdio: don't require ignore_value around fwrite
12030
12031         This patch works around libc bug 11959
12032         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12033         Without this patch, applications must often write
12034         ignore_value (fwrite (...)) even though the ignore_value is
12035         not helpful here.  It's common to write many objects, using
12036         fwrite/printf/etc., and then use ferror to detect output error.
12037
12038         I considered making this patch optional, but decided against it,
12039         because libc is obviously being inconsistent here: there is no
12040         reason libc should insist that user code must inspect fwrite
12041         return's value without also insisting that it inspect printf's,
12042         putchar's, etc.  If user code wants to have a strict style where
12043         all these functions' values are checked (so that ferror need not
12044         be checked), we could add support for that style in a new gnulib
12045         module, but in the meantime it's better to be consistent and to
12046         support common usage.
12047
12048         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12049         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12050         that we are compiling in checking mode, and if not C++, and
12051         if not already wrapping fwrite for some other reason.
12052         (fwrite): #define to rpl_fwrite if the latter is defined.
12053
12054 2011-03-20  Bruno Haible  <bruno@clisp.org>
12055
12056         verror: Fix compilation error introduced on 2011-02-13.
12057         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12058         instead of __attribute__.
12059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12060
12061 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12062             Bruno Haible  <bruno@clisp.org>
12063
12064         socklen: do not depend on sys_socket
12065         While trying to modify Emacs to use gnulib's socklen module,
12066         I discovered a circular dependency: socklen depends on sys_socket
12067         and vice versa.  Emacs can use socklen, but it does not need
12068         sys_socket because it has its own substitute for sys/socket.h.
12069         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12070         gl_TYPE_SOCKLEN_T.
12071         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12072         gl_PREREQ_SYS_H_SOCKET.
12073         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12074         gl_PREREQ_SYS_H_SOCKET.
12075         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12076         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12077         * modules/socklen (Depends-on): Do not depend on sys_socket.
12078         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12079
12080 2011-03-20  Jim Meyering  <meyering@redhat.com>
12081
12082         maint.mk: sort file names *after* new transformation
12083         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12084         prefix would have led to an unwarranted failure in GNU parted.
12085         Sort after that transformation.
12086
12087 2011-03-19  Jim Meyering  <meyering@redhat.com>
12088
12089         maint.mk: fix po-file syntax-check rule
12090         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12091         Patch by Bruno Haible.
12092
12093 2011-03-19  Bruno Haible  <bruno@clisp.org>
12094
12095         socklen: Update comment.
12096         * m4/socklen.m4: Update comment about platforms.
12097
12098 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12099             Bruno Haible  <bruno@clisp.org>
12100
12101         inet_ntop, inet_pton: Simplify.
12102         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12103         documented to provide socklen_t and we already depend on sys_socket.
12104         * modules/inet_pton (Depends-on): Likewise.
12105         * lib/arpa_inet.in.h: Adjust comment.
12106
12107 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12108             Bruno Haible  <bruno@clisp.org>
12109
12110         netdb: Simplify.
12111         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12112         documented to provide socklen_t and we already depend on sys_socket.
12113         * lib/netdb.in.h: Adjust comment.
12114
12115 2011-03-19  Bruno Haible  <bruno@clisp.org>
12116
12117         sys_socket, netdb: Document problem with socklen_t.
12118         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12119         platforms.
12120         * doc/posix-headers/netdb.texi: Likewise.
12121
12122 2011-03-18  Eric Blake  <eblake@redhat.com>
12123
12124         maint.mk: let po check work in VPATH build
12125         * top/maint.mk (po_file): Allow cfg.mk override.
12126         (sc_po_check): Allow VPATH use.
12127         Reported by Jiri Denemark.
12128
12129 2011-03-16  Jim Meyering  <meyering@redhat.com>
12130
12131         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12132         Before, you would have had to create one .x-sc_ file per rule in order
12133         to exempt offending files.  Now, you may instead use a Make variable --
12134         usually defined in cfg.mk -- whose name identifies the affected rule.
12135         * top/maint.mk (_sc_excl): Define.
12136         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12137         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12138
12139 2011-03-13  Bruno Haible  <bruno@clisp.org>
12140
12141         ignore-value tests: Avoid warnings.
12142         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12143         empty for gcc < 3.4.
12144
12145 2011-03-13  Bruno Haible  <bruno@clisp.org>
12146
12147         passfd: Fix link error on Solaris.
12148         * modules/passfd (Description): Correct.
12149         (Depends-on): Add socketlib.
12150         (Link): New section.
12151         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12152
12153 2011-03-13  Bruno Haible  <bruno@clisp.org>
12154
12155         passfd: Fix link error on AIX 5.2.
12156         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12157
12158 2011-03-13  Bruno Haible  <bruno@clisp.org>
12159
12160         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12161         * lib/sys_socket.in.h: Include <stddef.h>.
12162         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12163         CMSG_FIRSTHDR. Remove unused variable.
12164
12165 2011-03-13  Bruno Haible  <bruno@clisp.org>
12166
12167         passfd: Fix compilation error on OpenBSD.
12168         * lib/passfd.c: Include <sys/uio.h>.
12169
12170 2011-03-13  Bruno Haible  <bruno@clisp.org>
12171
12172         passfd test: Fix warnings.
12173         * tests/test-passfd.c: Include <sys/wait.h>.
12174         (main): Fix typo.
12175
12176 2011-03-13  Bruno Haible  <bruno@clisp.org>
12177
12178         passfd module, part 4, tweaks.
12179         * tests/test-passfd.c: Reorder includes.
12180         (main): Fix perror and printf calls.
12181
12182 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12183
12184         passfd module, part 4.
12185         * modules/passfd-tests: New file.
12186         * tests/test-passfd.c: New file.
12187
12188 2011-03-13  Jim Meyering  <meyering@redhat.com>
12189
12190         Makefile: rely on GNU make; derive syntax-check rule names
12191         Rather than requiring that each sc_ rule be listed as a dependent
12192         of "check", use features of GNU make to derive the list.
12193         * Makefile (syntax-check-rules): Define.
12194         (check): Depend on the new variable, not the hard-coded list.
12195
12196 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12197             Bruno Haible  <bruno@clisp.org>
12198
12199         passfd module, part 3.
12200         * lib/passfd.h (recvfd): Add a flags argument.
12201         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12202         (recvfd): Add a flags argument.
12203         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12204         exists.
12205         * modules/passfd (Depends-on): Add cloexec.
12206         Suggested by Eric Blake.
12207
12208 2011-03-13  Bruno Haible  <bruno@clisp.org>
12209
12210         passfd module, part 2, tweaks.
12211         * modules/passfd (Files): Reorder.
12212         (Depends-on): Remove errno.
12213         (Include): Remove <sys/socket.h>, <sys/un.h>.
12214         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12215         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12216         specification header. Include <sys/socket.h> always. Don't include
12217         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12218         (sendfd): Clarify that it sets errno when it fails.
12219         (recvfd): Fix specification.
12220
12221 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12222
12223         passfd module, part 2.
12224         * modules/passfd: New file.
12225         * lib/passfd.h: New file.
12226         * lib/passfd.c: New file.
12227
12228 2011-03-12  Bruno Haible  <bruno@clisp.org>
12229
12230         wcswidth, mbswidth: Avoid integer overflow.
12231         * lib/wcswidth.c: Include <limits.h>.
12232         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12233         * lib/mbswidth.c: Include <limits.h>.
12234         (mbsnwidth): Avoid 'int' overflow.
12235         Reported by Jim Meyering.
12236
12237 2011-03-12  Bruno Haible  <bruno@clisp.org>
12238
12239         futimens, utimensat: Avoid endless recursion on Solaris 10.
12240         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12241         Solaris.
12242         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12243         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12244
12245 2011-03-11  Jim Meyering  <meyering@redhat.com>
12246
12247         maint.mk: relax a regexp to accommodate other formatting styles
12248         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12249         between "ngettext" and the following "(".
12250
12251 2011-03-11  Pádraig Brady <P@draigBrady.com>
12252
12253         maint.mk: suppress a false positive warning
12254         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12255         diagnostics are marked with ngettext.
12256
12257 2011-03-10  Eric Blake  <eblake@redhat.com>
12258
12259         wchar: add explicit dependencies, for Tru64
12260         * modules/mbmemcasecoll (Depends-on): Add wchar.
12261         * modules/mbtowc (Depends-on): Likewise.
12262         * modules/vasnprintf (Depends-on): Likewise.
12263         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12264         * modules/wctomb (Depends-on): Likewise.
12265         Reported by Peter O'Gorman.
12266
12267 2011-03-08  Bruno Haible  <bruno@clisp.org>
12268
12269         passfd module, part 1, tweaks.
12270         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12271         Improve indentation. Improve AC_MSG_CHECKING messages.
12272         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12273         gl_SOCKET_FAMILIES.
12274
12275 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12276
12277         passfd module, part 1.
12278         * m4/afunix.m4: New file.
12279         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12280         sockets.
12281
12282 2011-03-08  Bruno Haible  <bruno@clisp.org>
12283
12284         regex-quote: New API.
12285         * lib/regex-quote.h: Include <stdbool.h>.
12286         (struct regex_quote_spec): New type.
12287         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12288         New declarations.
12289         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12290         'const struct regex_quote_spec *' argument.
12291         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12292         (pcre_special): New constant.
12293         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12294         New functions.
12295         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12296         'const struct regex_quote_spec *' argument.
12297         * modules/regex-quote (Depends-on): Add stdbool.
12298         * tests/test-regex-quote.c (check): Update for new API. Add test for
12299         anchored results.
12300         * NEWS: Mention the API change.
12301         Reported by Reuben Thomas and Eric Blake.
12302
12303 2011-03-06  Bruno Haible  <bruno@clisp.org>
12304
12305         regex-quote: Fix creation of POSIX extended regular expressions.
12306         * lib/regex-quote.c (ere_special): Add grouping and alternation
12307         operators.
12308
12309 2011-03-05  Bruno Haible  <bruno@clisp.org>
12310
12311         doc: Improve doc regarding autopoint vs. gnulib.
12312         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12313         disable autopoint while running autoreconf.
12314         Suggested by Ralf Wildenhues.
12315
12316 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12317
12318         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12319         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12320
12321 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12322
12323         parse-duration: remove xalloc.h dependency
12324         * lib/parse-duration.c (parse_period): handle NULL return from
12325         strdup instead of calling xstrdup().
12326         * modules/parse-duration: remove "xalloc" dependency
12327
12328 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12329
12330         bootstrap: honor m4_base when running aclocal
12331         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12332
12333 2011-03-02  Jim Meyering  <meyering@redhat.com>
12334
12335         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12336         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12337         on request from Matt Booth.
12338
12339 2011-03-01  Eric Blake  <eblake@redhat.com>
12340
12341         test-link: work on Hurd
12342         * tests/test-link.h (test_link): Hurd rejects linking directories
12343         with EISDIR instead of the POSIX-mandated EPERM.
12344
12345 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12346
12347         stdio: simplify by moving files to printf-posix, sigpipe
12348         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12349         since this symbol is needed only if printf is replaced.
12350         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12351         Require gl_ASM_SYMBOL_PREFIX.
12352         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12353         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12354         (Depends-on): Add 'raise'.
12355         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12356         * modules/stdio (Files): Remove lib/stdio-write.c,
12357         m4/asm-underscore.m4.
12358         (Depends-on): Remove 'raise'.
12359
12360         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12361         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12362         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12363         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12364
12365 2011-02-28  Bruno Haible  <bruno@clisp.org>
12366
12367         localcharset: Assume ANSI C behaviour of free().
12368         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12369         calling free().
12370         Suggested by Simon Josefsson <simon@josefsson.org>.
12371
12372 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12373             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12374             Bruno Haible  <bruno@clisp.org>  (tiny change)
12375
12376         On Cygwin, use /proc file system instead of win32 API.
12377         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12378         Win32 file names.
12379         (DllMain): Simplify by removing Cygwin specific code.
12380         (find_shared_library_fullname): Use Linux specific implementation also
12381         for Cygwin.
12382         (get_shared_library_fullname): Update accordingly.
12383         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12384         Win32 file names.
12385         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12386         Cygwin specific code.
12387
12388 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12389             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12390
12391         Fix OpenMP flag detection for various Fortran compilers.
12392         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12393         OpenMP-conditional compilation construct, to force compile
12394         failure with missing OpenMP flag.
12395         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12396
12397 2011-02-25  Eric Blake  <eblake@redhat.com>
12398
12399         strstr: expand test coverage
12400         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12401         compilation.
12402         * tests/test-memmem.c (main): Duplicate tests.
12403         * tests/test-strcasestr.c (main): Likewise.
12404         * tests/test-c-strcasestr.c (main): Likewise.
12405
12406 2011-02-25  Jim Meyering  <meyering@redhat.com>
12407
12408         maint.mk: detect missing-NL-at-EOF, too
12409         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12410         it also detects when a file lacks a newline at EOF.
12411         (require_exactly_one_NL_at_EOF_): Renamed from
12412         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12413         since people may well have .x-sc_... file names tied to the
12414         existing name.  Suggested by Eric Blake.
12415
12416 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         dirname: move m4/dos.m4 functionality into lib/dosname.h
12419
12420         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12421         extracts symbols from it, puts them into config.h; but it's much
12422         easier to use the symbols directly.  filename.h already does this,
12423         but it disagrees with dos.m4 in some respects.  This patch
12424         introduces a different include file dosname.h that packages up
12425         dos.m4, and then later we can work on merging filename.h and
12426         dosname.h.  Applications that need only the easy-to-configure
12427         symbols should consider including dosname.h rather than dirname.h.
12428         * NEWS: Mention incompatible changes.
12429         * m4/dos.m4: Remove.
12430         * lib/dosname.h, modules/dosname: New files.
12431         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12432         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12433         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12434         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12435         Include dosname.h, not dirname.h.
12436         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12437         Include dosname.h, for definitions of symbols like ISSLASH
12438         that used to be in config.h.
12439         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12440         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12441         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12442         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12443         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12444         * modules/rmdir (Files): Likewise.
12445         * modules/stat (Files): Likewise.
12446         * modules/unlink (Files): Likewise.
12447         * modules/dirname-lgpl (Depends-on): Add dosname.
12448         * modules/lstat (Depends-on): Likewise.
12449         * modules/openat (Depends-on): Likewise.
12450         * modules/rmdir (Depends-on): Likewise.
12451         * modules/savewd (Depends-on): Likewise.
12452         * modules/stat (Depends-on): Likewise.
12453         * modules/unlink (Depends-on): Likewise.
12454         * modules/openat (Depends-on): Remove dirname-lgpl.
12455         * modules/savewd (Depends-on): Likewise.
12456         * tests/test-dirname.c: Do not use removed symbols like
12457         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12458         the remaining symbols, e.g., ISSLASH ('\\').
12459
12460 2011-02-25  Eric Blake  <eblake@redhat.com>
12461
12462         strstr: revert patches that introduced bug and pessimization
12463         * lib/str-two-way.h: Add another reference.
12464         (two_way_short_needle, two_way_long_needle): Revert changes from
12465         2011-02-24; they pessimize search speed.
12466         (critical_factorization): Partially revert changes from
12467         2010-06-22; they violate the requirement that the left half of the
12468         needle be smaller than the period of the needle.
12469
12470 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12471
12472         filenamecat: remove unnecessary dependency on dirname-lgpl
12473         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12474         is no direct dependency, just an indirect one via filenamecat-lgpl.
12475
12476         remove: remove unnecessary use of m4/dos.m4
12477         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12478         * modules/remove (FILES): Remove m4/dos.m4.
12479
12480         * lib/openat-proc.c: Don't include dirname.h; not needed.
12481
12482         backupfile: remove unnecessary use of m4/dos.m4
12483         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12484         of its symbols are used by the backupfile code.  backupfile.c does
12485         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12486         for the rare case of programs that want all their backup file
12487         names to live within 8+3 limits, and dos.m4 doesn't address that.
12488         * modules/backupfile (Files): Remove m4/dos.m4.
12489
12490 2011-02-24  Jim Meyering  <meyering@redhat.com>
12491
12492         strstr: fix a bug whereby strstr would mistakenly return NULL
12493         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12494         in period calculation.
12495         (two_way_long_needle): Likewise.
12496         The original problem was reported by Mike Stump in
12497         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12498         Ralf Wildenhues provided the short needle and haystack.
12499         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12500         Add a more involved test to trigger the bug in two_way_long_needle.
12501
12502 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12503
12504         gnulib-tool: remove use of bold display in help screen
12505         * gnulib-tool (func_usage): Do not use bold display anymore in the
12506         help screen.  That was just meant to be a temporary emphasis for a
12507         backward-incompatible change.
12508
12509 2011-02-23  Bruno Haible  <bruno@clisp.org>
12510
12511         Fix misindentation of preprocessor directives.
12512         * lib/argp-namefrob.h: Reindent preprocessor directives.
12513         * lib/getopt_int.h (struct _getopt_data): Likewise.
12514         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12515         * lib/vasnprintf.c (decode_long_double): Likewise.
12516         * tests/test-argmatch.c: Insert blank lines, for clarity.
12517         * tests/test-exclude.c: Likewise.
12518
12519 2011-02-22  Bruno Haible  <bruno@clisp.org>
12520
12521         ioctl: Fix for MacOS X in 64-bit mode.
12522         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12523         value.
12524         Suggested by Eric Blake.
12525         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12526
12527 2011-02-22  Jim Meyering  <meyering@redhat.com>
12528
12529         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12530         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12531         in lib/.
12532
12533 2011-02-22  Eric Blake  <eblake@redhat.com>
12534
12535         maint: avoid any CDPATH issue
12536         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12537
12538         maint: adjust cpp indentation for my modules, as well
12539         * Makefile (sc_cpp_indent_check): Add my name.
12540         * lib/fbufmode.c: Filter through cppi.
12541         * lib/fpurge.c: Likewise.
12542         * lib/freadable.c: Likewise.
12543         * lib/freading.c: Likewise.
12544         * lib/fwritable.c: Likewise.
12545         * lib/fwriting.c: Likewise.
12546         * lib/sigaction.c: Likewise.
12547
12548 2011-02-22  Jim Meyering  <meyering@redhat.com>
12549
12550         maint: adjust cpp indentation to reflect nesting depth
12551         I.e., in a block of code that begins with an unnested "#if",
12552         put one space between the "#" in column 1 and following token.
12553         For example,
12554         -#include <sys/vfs.h>
12555         +# include <sys/vfs.h>
12556         Do this only in .c files that are part of a module I maintain.
12557         * lib/linkat.c: Filter through cppi.
12558         * lib/nanosleep.c: Likewise.
12559         * lib/openat.c: Likewise.
12560         * lib/openat-die.c: Likewise.
12561         * lib/dup3.c: Likewise.
12562         * lib/fchownat.c: Likewise.
12563         * lib/flock.c: Likewise.
12564         * lib/fsync.c: Likewise.
12565         * lib/fts.c: Likewise.
12566         * lib/getpass.c: Likewise.
12567         * lib/gettimeofday.c: Likewise.
12568         * lib/userspec.c: Likewise.
12569         * Makefile (sc_cpp_indent_check): New rule, to check this.
12570
12571 2011-02-22  Bruno Haible  <bruno@clisp.org>
12572
12573         New module 'wctomb'.
12574         * lib/stdlib.in.h (wctomb): New declaration.
12575         * lib/wctomb.c: New file.
12576         * lib/wctomb-impl.h: New file.
12577         * m4/wctomb.m4: New file.
12578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12579         REPLACE_WCTOMB.
12580         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12581         REPLACE_WCTOMB.
12582         * modules/wctomb: New file.
12583         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12584         * doc/posix-functions/wctomb.texi: Mention the new module.
12585         * modules/wctob (Depends-on): Add wctomb.
12586
12587 2011-02-22  Bruno Haible  <bruno@clisp.org>
12588
12589         New module 'mbtowc'.
12590         * lib/stdlib.in.h (mbtowc): New declaration.
12591         * lib/mbtowc.c: New file.
12592         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12593         * m4/mbtowc.m4: New file.
12594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12595         REPLACE_MBTOWC.
12596         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12597         REPLACE_MBTOWC.
12598         * modules/mbtowc: New file.
12599         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12600         * doc/posix-functions/mbtowc.texi: Mention the new module.
12601         * modules/btowc (Depends-on): Add mbtowc.
12602
12603 2011-02-22  Bruno Haible  <bruno@clisp.org>
12604
12605         wcrtomb: Add more tests for native Windows platforms.
12606         * tests/test-wcrtomb-w32-1.sh: New file.
12607         * tests/test-wcrtomb-w32-2.sh: New file.
12608         * tests/test-wcrtomb-w32-3.sh: New file.
12609         * tests/test-wcrtomb-w32-4.sh: New file.
12610         * tests/test-wcrtomb-w32-5.sh: New file.
12611         * tests/test-wcrtomb-w32.c: New file.
12612         * modules/wcrtomb-tests (Files): Add them.
12613         (Makefile.am): Arrange to run these tests.
12614         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12615         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12616
12617 2011-02-20  Bruno Haible  <bruno@clisp.org>
12618
12619         wcrtomb: Enhance test.
12620         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12621
12622 2011-02-20  Bruno Haible  <bruno@clisp.org>
12623
12624         mbrtowc: Tiny optimization.
12625         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12626
12627 2011-02-20  Jim Meyering  <meyering@redhat.com>
12628
12629         test-exclude.c: remove unmatched #endif
12630         * tests/test-exclude.c: Remove stray #endif, left over from
12631         the change of a week ago.
12632
12633 2011-02-19  Jim Meyering  <meyering@redhat.com>
12634
12635         git-version-gen: skip "-dirty" check when appropriate
12636         * build-aux/git-version-gen: Don't run any git commands when the
12637         version string comes from .tarball-version.  Prior to this, we
12638         would run git update-index --refresh even from a just-unpacked
12639         tarball directory, and that could affect a .git/ directory in a
12640         parent of the build directory.  Reported by Mike Frysinger.
12641
12642 2011-02-19  Bruno Haible  <bruno@clisp.org>
12643
12644         unictype/property-byname: Reduce the size of the 'data' segment.
12645         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12646
12647 2011-02-19  Bruno Haible  <bruno@clisp.org>
12648
12649         unictype/scripts: Reduce the size of the 'data' segment.
12650         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12651         '%pic'.
12652         * lib/unictype/scripts_byname.gperf: Regenerated.
12653
12654 2011-02-19  Bruno Haible  <bruno@clisp.org>
12655
12656         stdint: Update documentation.
12657         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12658
12659 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12660
12661         stdint: omit redundant check for wchar.h
12662         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12663         always tests whether wchar.h exists, so remove the now-redundant test.
12664
12665 2011-02-18  Bruno Haible  <bruno@clisp.org>
12666
12667         stdint: Cut dependency to module 'wchar'.
12668         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12669         include the necessary prerequisites.
12670         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12671         * modules/stdint (Depends-on): Remove wchar.
12672         (Makefile.am): Substitute HAVE_WCHAR_H.
12673         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12674
12675 2011-02-18  Eric Blake  <eblake@redhat.com>
12676
12677         longlong: skip, rather than fail, on cross-compilation
12678         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12679         when cross-compiling; regression from 2011-02-16.
12680
12681 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12682
12683         * NEWS: Mention 2011-02-08 change to stdlib.
12684
12685 2011-02-17  Bruno Haible  <bruno@clisp.org>
12686
12687         getloadavg: Add comments about platforms.
12688         * m4/getloadavg.m4: Add comment.
12689         * lib/getloadavg.c: Likewise.
12690
12691 2011-02-17  Bruno Haible  <bruno@clisp.org>
12692
12693         getloadavg: Fix link error on Solaris 2.6.
12694         * modules/getloadavg (Link): New section.
12695         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12696         linking test-getloadavg.
12697         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12698         getloadavg.
12699
12700 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12701
12702         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12703         It was 'int', but this doesn't match the IRIX 6.5 manual.
12704         Suggested by Bruno Haible in
12705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12706
12707 2011-02-17  Bruno Haible  <bruno@clisp.org>
12708
12709         havelib: Fix comments.
12710         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12711         change.
12712
12713 2011-02-17  Bruno Haible  <bruno@clisp.org>
12714
12715         havelib: Update config.rpath.
12716         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12717
12718 2011-02-17  Bruno Haible  <bruno@clisp.org>
12719
12720         getloadavg test: Add some plausibility checks.
12721         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12722         is improbable.
12723
12724 2011-02-16  Eric Blake  <eblake@redhat.com>
12725
12726         maintainer-makefile: make syntax-check a no-op from tarballs
12727         * top/maint.mk (no-vc-detected): New rule.
12728         (local-checks-available): Use it to avoid hanging if someone tries
12729         'make syntax-check' from a tarball.  Also append to any non-syntax
12730         checks already defined in cfg.mk.
12731
12732 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12733
12734         longlong: tune, particularly for common case of c99
12735
12736         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12737         or running anything if c99, or if unsigned long long int does not
12738         work.  In either case, we know the answer without further tests.
12739         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12740         it at most once, and use its results for both long long int and
12741         unsigned long long int.  This is more likely to be efficient in
12742         the common case where the program wants to check for both long
12743         long int and unsigned long long int.
12744         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12745         since the answer is already known.
12746
12747 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12748
12749         getloadavg: set errno
12750         * lib/getloadavg.c: Set errno when returning -1.  If no other
12751         error number looks appropriate, set it to ENOSYS if the getloadavg
12752         looks like it can't possibly ever work, ENOTSUP otherwise.
12753         Suggested by Bruno Haible in
12754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12755
12756         getloadavg: trim unused parts and speed up 'configure'
12757         * NEWS: Document this.
12758         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12759         always compiled if getloadavg is absent.
12760         Move test code to ...
12761         * tests/test-getloadavg.c: New file, containing previous
12762         contents of test from lib/getloadavg.c.  It also contains
12763         suggestions by Bruno Haible in
12764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12765         * modules/getloadavg-tests: New file.
12766         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12767         Do tests in the same order as they're needed for getloadavg.c.
12768         Omit setgid-related tests that generate symbols KMEM_GROUP,
12769         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12770         Do only the tests that are needed to see whether the system has
12771         getloadavg, moving the other tests into ...
12772         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12773         NLIST_NAME_UNION; nobody should be using it.  Do not define
12774         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12775         relevant, as the user of this module shouldn't care how getloadavg
12776         is implemented.
12777
12778         getloadavg: omit unused var
12779         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12780
12781 2011-02-15  Jim Meyering  <meyering@redhat.com>
12782
12783         doc: update users.txt
12784         * users.txt: Update iwhd's URL.
12785
12786 2011-02-13  Bruno Haible  <bruno@clisp.org>
12787
12788         Consistent macro naming for macros that use GCC __attribute__.
12789         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12790         _ATTRIBUTE_NONNULL_.
12791         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12792         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12793         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12794         ATTRIBUTE_DEPRECATED.
12795         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12796         ATTRIBUTE_NORETURN.
12797         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12798         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12799         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12800         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12801         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12802         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12803         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12804         ATTRIBUTE_SENTINEL.
12805         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12806         ATTRIBUTE_RETURN_CHECK.
12807         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12808         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12809         ATTRIBUTE_NORETURN.
12810         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12811         Reported by Paul Eggert.
12812
12813 2011-02-13  Bruno Haible  <bruno@clisp.org>
12814
12815         Don't interfere with a program's definition of __attribute__.
12816         * lib/argp.h (__attribute__): Remove definition.
12817         (_GL_ATTRIBUTE_FORMAT): New macro.
12818         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12819         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12820         (_GL_ATTRIBUTE_FORMAT): New macro.
12821         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12822         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12823         GCC 3 or newer.
12824         * lib/error.h (__attribute__): Remove definition.
12825         (_GL_ATTRIBUTE_FORMAT): New macro.
12826         (error, error_at_line): Use it.
12827         * lib/hash.h (__attribute__): Remove definition.
12828         (ATTRIBUTE_WUR): Update definition. Define always.
12829         * lib/openat.h (__attribute__): Remove definition.
12830         (ATTRIBUTE_NORETURN): Update definition. Define always.
12831         * lib/sigpipe-die.h (__attribute__): Remove definition.
12832         (ATTRIBUTE_NORETURN): Update definition. Define always.
12833         * lib/vasnprintf.h (__attribute__): Remove definition.
12834         (_GL_ATTRIBUTE_FORMAT): New macro.
12835         (asnprintf, vasnprintf): Use it.
12836         * lib/xalloc.h (__attribute__): Remove definition.
12837         (ATTRIBUTE_NORETURN): Update definition. Define always.
12838         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12839         * lib/xmemdup0.h (__attribute__): Remove definition.
12840         (ATTRIBUTE_NORETURN): Update definition. Define always.
12841         * lib/xprintf.h (__attribute__): Remove definition.
12842         (_GL_ATTRIBUTE_FORMAT): New macro.
12843         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12844         * lib/xstrtol.h (__attribute__): Remove definition.
12845         (ATTRIBUTE_NORETURN): Update definition. Define always.
12846         * lib/xvasprintf.h (__attribute__): Remove definition.
12847         (_GL_ATTRIBUTE_FORMAT): New macro.
12848         (xasprintf, xvasprintf): Use it.
12849         * tests/test-argmatch.c (__attribute__): Remove definition.
12850         (ATTRIBUTE_NORETURN): Update definition. Define always.
12851         * tests/test-exclude.c (__attribute__): Remove definition.
12852         (ATTRIBUTE_NORETURN): Update definition. Define always.
12853         Reported by Paul Eggert.
12854
12855 2011-02-13  Bruno Haible  <bruno@clisp.org>
12856
12857         mbrtowc: Add more tests for native Windows platforms.
12858         * tests/test-mbrtowc-w32-1.sh: New file.
12859         * tests/test-mbrtowc-w32-2.sh: New file.
12860         * tests/test-mbrtowc-w32-3.sh: New file.
12861         * tests/test-mbrtowc-w32-4.sh: New file.
12862         * tests/test-mbrtowc-w32-5.sh: New file.
12863         * tests/test-mbrtowc-w32.c: New file.
12864         * modules/mbrtowc-tests (Files): Add them.
12865         (Makefile.am): Arrange to run these tests.
12866         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12867         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12868
12869 2011-02-13  Bruno Haible  <bruno@clisp.org>
12870
12871         mbrtowc: Work around native Windows bug.
12872         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12873         guess when no suitable locale for testing was found.
12874         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12875
12876 2011-02-13  Bruno Haible  <bruno@clisp.org>
12877
12878         mbsinit: Work around mingw bug.
12879         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12880         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12881         Windows.
12882         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12883
12884 2011-02-13  Bruno Haible  <bruno@clisp.org>
12885
12886         mbsinit: Don't crash for a NULL argument.
12887         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12888         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12889
12890 2011-02-13  Bruno Haible  <bruno@clisp.org>
12891
12892         Don't interfere with a program's definition of __attribute__.
12893         * lib/stdio.in.h (__attribute__): Remove definition.
12894         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12895         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12896         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12897         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12898         * lib/string.in.h (__attribute__): Remove definition.
12899         Reported by Paul Eggert.
12900
12901 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12902
12903         stdlib: don't get in the way of non-GCC __attribute__
12904         See thread starting at
12905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12906         Revert previous stdlib change, installing the following instead:
12907         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12908         to get in the way of a non-GCC compiler that supports __attribute__.
12909         (_GL_ATTRIBUTE_RETURN): New macro.
12910         (_Exit): Use it instead of __attribute__.
12911
12912 2011-02-12  Bruno Haible  <bruno@clisp.org>
12913
12914         quotearg test: Avoid test failure on mingw.
12915         * tests/test-quotearg.sh: Convert the locale identifier from native
12916         Windows syntax to Unix syntax.
12917
12918 2011-02-12  Bruno Haible  <bruno@clisp.org>
12919
12920         setlocale: Prefer gnulib's override over libintl's override.
12921         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12922         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12923         GNULIB_defined_setlocale is set.
12924
12925 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12926
12927         stdlib: support non-GCC __attribute__
12928
12929         Fix a serious and tricky problem encountered when attempting to
12930         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12931         5.5, but it crashed due to memory corruption on Solaris 10 with
12932         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12933         bits that are otherwise zero.  This tagging is optional inside
12934         Emacs but is preferred and is used when __attribute__ ((__aligned
12935         (8))) works, as it does with both recent-enough GCC and with Sun C
12936         5.11.  However, Sun C 5.11 is not GCC and does not #define
12937         __GNUC__ and __GNUC_MINOR__.
12938
12939         When I added the getloadavg module to Emacs, it brought in
12940         stdlib.in.h, which contained this fragment:
12941
12942            #ifndef __attribute__
12943            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12944            #  define __attribute__(Spec)   /* empty */
12945            # endif
12946            #endif
12947
12948         When files that include <stdlib.h> were compiled with Sun C 5.11,
12949         the above code disabled __attribute__ ((__aligned (8))), which
12950         caused variables to not be properly aligned, which eventually led
12951         to the pointer corruption mentioned above.  (This was a bit hard
12952         to diagnose, unfortunately.)
12953
12954         Several "#define __attribute__(X) /* empty */" code snippets need
12955         to be eradicated from Gnulib to work with non-GCC compilers that
12956         support __attribute__.  The Autoconf way to do this is to test for
12957         each kind of attribute that we want support for, and selectively
12958         enable that in source code.
12959
12960         Fix this problem just for stdlib.h, by adding a test for the
12961         __noreturn__ attribute, and change stdlib.in.h to use that test
12962         when needed.  This technique can be easily generalized to the
12963         other *.in.h files and attributes, and a similar technique can be
12964         used for *.h and *.c files.  This patch is enough to solve the
12965         problem for Emacs + getloadavg, and I thought I'd publish it for
12966         feedback before undertaking further, similar fixes in other
12967         modules.
12968
12969         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12970         because it's not needed for stdlib.h.  It merely substitutes the
12971         value directly into stdlib.h.  We may well need to #define it, or
12972         similar symbols, for other modules, but it's nice to also have an
12973         option to not #define it for applications like Emacs that do not
12974         need it.
12975
12976         * lib/stdlib.in.h (__attribute__): Do not #define.
12977         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12978         be defined only if the _Exit module is also used.
12979         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12981         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12982         platforms.
12983         * modules/_Exit (Files): Add m4/attribute.m4.
12984         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12985         * m4/attribute.m4: New file.
12986
12987 2011-02-12  Bruno Haible  <bruno@clisp.org>
12988
12989         wcsrtombs: Work around bug on native Windows.
12990         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12991         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12992         instead of len.
12993         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12994
12995 2011-02-12  Bruno Haible  <bruno@clisp.org>
12996
12997         mbsrtowcs: Work around bug on native Windows.
12998         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12999         against mingw bug.
13000         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13001
13002 2011-02-12  Bruno Haible  <bruno@clisp.org>
13003
13004         Avoid setlocale bugs in tests.
13005         * modules/btowc (Dependencies): Add setlocale.
13006         * modules/c-strcase (Dependencies): Likewise.
13007         * modules/mbmemcasecmp (Dependencies): Likewise.
13008         * modules/mbmemcasecoll (Dependencies): Likewise.
13009         * modules/mbrtowc (Dependencies): Likewise.
13010         * modules/mbscasecmp (Dependencies): Likewise.
13011         * modules/mbscasestr (Dependencies): Likewise.
13012         * modules/mbschr (Dependencies): Likewise.
13013         * modules/mbscspn (Dependencies): Likewise.
13014         * modules/mbsinit (Dependencies): Likewise.
13015         * modules/mbsncasecmp (Dependencies): Likewise.
13016         * modules/mbsnrtowcs (Dependencies): Likewise.
13017         * modules/mbspbrk (Dependencies): Likewise.
13018         * modules/mbspcasecmp (Dependencies): Likewise.
13019         * modules/mbsrchr (Dependencies): Likewise.
13020         * modules/mbsrtowcs (Dependencies): Likewise.
13021         * modules/mbsspn (Dependencies): Likewise.
13022         * modules/mbsstr (Dependencies): Likewise.
13023         * modules/nl_langinfo (Dependencies): Likewise.
13024         * modules/quotearg (Dependencies): Likewise.
13025         * modules/unicase/locale-language (Dependencies): Likewise.
13026         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13027         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13028         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13029         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13030         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13031         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13032         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13033         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13034         * modules/vasnprintf-posix (Dependencies): Likewise.
13035         * modules/wcrtomb (Dependencies): Likewise.
13036         * modules/wcsnrtombs (Dependencies): Likewise.
13037         * modules/wcsrtombs (Dependencies): Likewise.
13038
13039 2011-02-12  Bruno Haible  <bruno@clisp.org>
13040
13041         setlocale: Workaround native Windows bug.
13042         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13043         succeeds but sets LC_CTYPE to "C", report a failure.
13044         * tests/test-setlocale2.sh: New file.
13045         * tests/test-setlocale2.c: New file.
13046         * modules/setlocale-tests (Files): Add the new files.
13047         (Makefile.am): Enable test-setlocale2.sh test.
13048         * doc/posix-functions/setlocale.texi: Mention workaround.
13049
13050 2011-02-11  Bruno Haible  <bruno@clisp.org>
13051
13052         Tests for module 'setlocale'.
13053         * modules/setlocale-tests: New file.
13054         * tests/test-setlocale1.sh: New file.
13055         * tests/test-setlocale1.c: New file.
13056
13057         New module 'setlocale'.
13058         * lib/locale.in.h (setlocale): New declaration.
13059         * lib/setlocale.c: New file, based on
13060         gettext/gettext-runtime/intl/setlocale.c.
13061         * m4/setlocale.m4: New file.
13062         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13063         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13064         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13065         REPLACE_SETLOCALE.
13066         * modules/setlocale: New file.
13067         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13068         * doc/posix-functions/setlocale.texi: Mention the new module.
13069
13070 2011-02-11  Bruno Haible  <bruno@clisp.org>
13071
13072         Prepare for locale dependent tests on mingw.
13073         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13074         because it has the wrong locale encoding.
13075         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13076         French_France.1252 instead of "fr".
13077         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13078         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13079         because it has the wrong locale encoding.
13080         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13081         native Windows, try Turkish_Turkey.65001.
13082         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13083         Chinese_China.54936.
13084
13085         Prepare for locale dependent tests on mingw.
13086         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13087         differently.
13088         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13089         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13090         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13091         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13092
13093 2011-02-11  Eric Blake  <eblake@redhat.com>
13094
13095         strptime: avoid compiler warnings
13096         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13097         compiler warnings about dead code.
13098         Reported by Daniel P. Berrange.
13099
13100 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13101
13102         doc: update users.txt
13103         * users.txt: Add rcs.
13104
13105 2011-02-10  John W. Eaton  <jwe@gnu.org>
13106
13107         doc: update users.txt
13108         * users.txt: Add octave.
13109
13110 2011-02-10  Jim Meyering  <meyering@redhat.com>
13111
13112         doc: update users.txt
13113         * users.txt: Add iwhd.
13114
13115 2011-02-09  Bruno Haible  <bruno@clisp.org>
13116
13117         gnulib-tool: Make copyright notice adjustment more robust.
13118         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13119         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13120         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13121         License".
13122         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13123
13124 2011-02-06  Bruno Haible  <bruno@clisp.org>
13125
13126         New module 'towctrans'.
13127         * modules/towctrans: New file.
13128         * lib/wctype.in.h (towctrans): New declaration.
13129         * lib/towctrans.c: New file.
13130         * lib/towctrans-impl.h: New file.
13131         * m4/towctrans.m4: New file.
13132         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13133         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13134         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13135         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13136         * doc/posix-functions/towctrans.texi: Mention the new module.
13137
13138 2011-02-06  Bruno Haible  <bruno@clisp.org>
13139
13140         New module 'wctrans'.
13141         * modules/wctrans: New file.
13142         * lib/wctype.in.h (wctrans): New declaration.
13143         * lib/wctrans.c: New file.
13144         * lib/wctrans-impl.h: New file.
13145         * m4/wctrans.m4: New file.
13146         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13147         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13148         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13149         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13150         * doc/posix-functions/wctrans.texi: Mention the new module.
13151
13152 2011-02-06  Bruno Haible  <bruno@clisp.org>
13153
13154         New module 'iswctype'.
13155         * modules/iswctype: New file.
13156         * lib/wctype.in.h (iswctype): New declaration.
13157         * lib/iswctype.c: New file.
13158         * lib/iswctype-impl.h: New file.
13159         * m4/iswctype.m4: New file.
13160         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13161         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13162         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13163         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13164         * doc/posix-functions/iswctype.texi: Mention the new module and the
13165         HP-UX 11.00 problem.
13166
13167 2011-02-06  Bruno Haible  <bruno@clisp.org>
13168
13169         New module 'wctype'.
13170         * modules/wctype: Change to represent the wctype() substitute.
13171         * lib/wctype.in.h (wctype): New declaration.
13172         * lib/wctype.c: New file.
13173         * lib/wctype-impl.h: New file.
13174         * m4/wctype.m4: New file.
13175         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13176         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13177         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13178         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13179         * doc/posix-functions/wctype.texi: Mention the new module and the
13180         HP-UX 11.00 problem.
13181
13182 2011-02-06  Bruno Haible  <bruno@clisp.org>
13183
13184         wctype-h: Ensure wctype_t and wctrans_t are defined.
13185         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13186         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13187         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13188         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13189         HAVE_WCTRANS_T.
13190         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13191
13192 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         flock: fix license typo
13195
13196         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13197         omitted.
13198
13199 2011-02-08  Bruno Haible  <bruno@clisp.org>
13200
13201         Split large sed scripts, for HP-UX sed.
13202         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13203         to avoid HP-UX limit of 99 commands, in the near future.
13204         * modules/stdlib (Makefile.am): Likewise.
13205         * modules/unistd (Makefile.am): Likewise.
13206         * modules/wchar (Makefile.am): Likewise.
13207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13208         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13210
13211 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13212             Bruno Haible  <bruno@clisp.org>
13213
13214         stdlib: improve random_r modularization
13215         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13216         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13217         you also need the random_r module to get this material right.
13218         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13219         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13220         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13221
13222 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13223
13224         stdlib: don't depend on stdint
13225         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13226         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13227         be independent of whether stdint.h is needed.
13228         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13229         here, instead of ...
13230         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13231         struct random_data should be using the random_r module, not just
13232         the stdlib module (which wouldn't make sense: what package needs
13233         just struct random_data without also needing random_r?).
13234         * modules/stdlib (Depends-on): Remove stdint.
13235
13236         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13237         See the thread rooted at
13238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13239         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13240         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13241         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13242         __VMS)); previously it was always included (via fcntl--.h).
13243         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13244         hand; this is good enough for load averages.  Also, do not use
13245         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13246         flags directly if available and don't bother otherwise.  (Packages
13247         that need the extra reliability should use the modules that define
13248         these flags on older platforms that lack them.)
13249         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13250         fcntl-safer.
13251
13252 2011-02-08  Jim Meyering  <meyering@redhat.com>
13253
13254         di-set.h, ino-map.h: add multiple-inclusion guard
13255         Technically, the guard is required only for ino-map.h, due to its
13256         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13257         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13258         * lib/ino-map.h: Likewise.
13259
13260 2011-02-06  Bruno Haible  <bruno@clisp.org>
13261
13262         iswblank: Ensure declaration on glibc systems.
13263         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13264         * modules/iswblank (Dependencies): Add 'extensions'.
13265         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13266
13267 2011-02-06  Bruno Haible  <bruno@clisp.org>
13268
13269         New module 'iswblank'.
13270         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13271         * modules/iswblank: New file.
13272         * modules/wctype-h (Files): Remove lib/iswblank.c.
13273         (Makefile.am): Substitute GNULIB_ISWBLANK.
13274         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13275         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13276         (gl_WCTYPE_H_DEFAULTS): New macro.
13277         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13278         * modules/iswblank-tests: New file.
13279         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13280         * tests/test-wctype-h.c (main): Remove iswblank tests.
13281         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13282         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13283         of 'wctype-h'.
13284         * NEWS: Mention the change.
13285         * modules/mbchar (Depends-on): Add iswblank.
13286
13287 2011-02-08  Bruno Haible  <bruno@clisp.org>
13288
13289         di-set tests: Refactor.
13290         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13291         unnecessary includes.
13292         (ASSERT): Remove macro.
13293         (main): Make C90 compliant by avoiding variable declaration after
13294         statement.
13295         * modules/di-set-tests (Files): Add tests/macros.h.
13296
13297 2011-02-08  Bruno Haible  <bruno@clisp.org>
13298
13299         ino-map tests: Refactor.
13300         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13301         unnecessary includes.
13302         (ASSERT): Remove macro.
13303         (main): Make C90 compliant by avoiding variable declaration after
13304         statement.
13305         * modules/ino-map-tests (Files): Add tests/macros.h.
13306
13307 2011-02-08  Jim Meyering  <meyering@redhat.com>
13308
13309         di-set: add "const" to a cast
13310         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13311         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13312
13313 2011-02-06  Bruno Haible  <bruno@clisp.org>
13314
13315         Rename module 'wctype' to 'wctype-h'.
13316         * modules/wctype-h: Renamed from modules/wctype.
13317         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13318         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13319         (Files, Depends-on, Makefile.am): Update.
13320         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13321         (Files, Makefile.am): Update.
13322         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13323         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13324         * doc/posix-headers/wctype.texi: Update.
13325         * doc/posix-functions/iswalnum.texi: Update.
13326         * doc/posix-functions/iswalpha.texi: Update.
13327         * doc/posix-functions/iswblank.texi: Update.
13328         * doc/posix-functions/iswcntrl.texi: Update.
13329         * doc/posix-functions/iswdigit.texi: Update.
13330         * doc/posix-functions/iswgraph.texi: Update.
13331         * doc/posix-functions/iswlower.texi: Update.
13332         * doc/posix-functions/iswprint.texi: Update.
13333         * doc/posix-functions/iswpunct.texi: Update.
13334         * doc/posix-functions/iswspace.texi: Update.
13335         * doc/posix-functions/iswupper.texi: Update.
13336         * doc/posix-functions/iswxdigit.texi: Update.
13337         * doc/posix-functions/towlower.texi: Update.
13338         * doc/posix-functions/towupper.texi: Update.
13339         * NEWS: Mention the change.
13340         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13341         * modules/mbchar (Dependencies): Likewise.
13342         * modules/mbswidth (Dependencies): Likewise.
13343         * modules/quotearg (Dependencies): Likewise.
13344         * modules/regex (Dependencies): Likewise.
13345         * modules/wcscasecmp (Dependencies): Likewise.
13346         * modules/wcsncasecmp (Dependencies): Likewise.
13347         * modules/wcwidth (Dependencies): Likewise.
13348
13349 2011-02-06  Bruno Haible  <bruno@clisp.org>
13350
13351         New module 'wcswidth'.
13352         * modules/wcswidth: New file.
13353         * lib/wchar.in.h (wcswidth): New declaration.
13354         * lib/wcswidth.c: New file.
13355         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13356         * m4/wcswidth.m4: New file.
13357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13359         REPLACE_WCSWIDTH.
13360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13361         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13362         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13363         * doc/posix-functions/wcswidth.texi: Mention the new module.
13364
13365 2011-02-06  Bruno Haible  <bruno@clisp.org>
13366
13367         New module 'wcstok'.
13368         * modules/wcstok: New file.
13369         * lib/wchar.in.h (wcstok): New declaration.
13370         * lib/wcstok.c: New file.
13371         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13372         * m4/wcstok.m4: New file.
13373         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13374         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13376         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13377         * doc/posix-functions/wcstok.texi: Mention the new module.
13378
13379 2011-02-06  Bruno Haible  <bruno@clisp.org>
13380
13381         New module 'wcsstr'.
13382         * modules/wcsstr: New file.
13383         * lib/wchar.in.h (wcsstr): New declaration.
13384         * lib/wcsstr.c: New file.
13385         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13386         * m4/wcsstr.m4: New file.
13387         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13388         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13389         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13390         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13391         * doc/posix-functions/wcsstr.texi: Mention the new module.
13392
13393 2011-02-06  Bruno Haible  <bruno@clisp.org>
13394
13395         New module 'wcspbrk'.
13396         * modules/wcspbrk: New file.
13397         * lib/wchar.in.h (wcspbrk): New declaration.
13398         * lib/wcspbrk.c: New file.
13399         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13400         * m4/wcspbrk.m4: New file.
13401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13403         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13404         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13405         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13406
13407 2011-02-06  Bruno Haible  <bruno@clisp.org>
13408
13409         New module 'wcsspn'.
13410         * modules/wcsspn: New file.
13411         * lib/wchar.in.h (wcsspn): New declaration.
13412         * lib/wcsspn.c: New file.
13413         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13414         * m4/wcsspn.m4: New file.
13415         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13416         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13418         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13419         * doc/posix-functions/wcsspn.texi: Mention the new module.
13420
13421 2011-02-06  Bruno Haible  <bruno@clisp.org>
13422
13423         New module 'wcscspn'.
13424         * modules/wcscspn: New file.
13425         * lib/wchar.in.h (wcscspn): New declaration.
13426         * lib/wcscspn.c: New file.
13427         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13428         * m4/wcscspn.m4: New file.
13429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13432         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13433         * doc/posix-functions/wcscspn.texi: Mention the new module.
13434
13435 2011-02-06  Bruno Haible  <bruno@clisp.org>
13436
13437         New module 'wcsrchr'.
13438         * modules/wcsrchr: New file.
13439         * lib/wchar.in.h (wcsrchr): New declaration.
13440         * lib/wcsrchr.c: New file.
13441         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13442         * m4/wcsrchr.m4: New file.
13443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13446         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13447         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13448
13449 2011-02-06  Bruno Haible  <bruno@clisp.org>
13450
13451         New module 'wcschr'.
13452         * modules/wcschr: New file.
13453         * lib/wchar.in.h (wcschr): New declaration.
13454         * lib/wcschr.c: New file.
13455         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13456         * m4/wcschr.m4: New file.
13457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13460         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13461         * doc/posix-functions/wcschr.texi: Mention the new module.
13462
13463 2011-02-06  Bruno Haible  <bruno@clisp.org>
13464
13465         New module 'wcsdup'.
13466         * modules/wcsdup: New file.
13467         * lib/wchar.in.h (wcsdup): New declaration.
13468         * lib/wcsdup.c: New file.
13469         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13470         * m4/wcsdup.m4: New file.
13471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13474         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13475         * doc/posix-functions/wcsdup.texi: Mention the new module.
13476
13477 2011-02-06  Bruno Haible  <bruno@clisp.org>
13478
13479         New module 'wcsxfrm'.
13480         * modules/wcsxfrm: New file.
13481         * lib/wchar.in.h (wcsxfrm): New declaration.
13482         * lib/wcsxfrm.c: New file.
13483         * lib/wcsxfrm-impl.h: New file.
13484         * m4/wcsxfrm.m4: New file.
13485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13488         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13489         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13490
13491 2011-02-06  Bruno Haible  <bruno@clisp.org>
13492
13493         New module 'wcscoll'.
13494         * modules/wcscoll: New file.
13495         * lib/wchar.in.h (wcscoll): New declaration.
13496         * lib/wcscoll.c: New file.
13497         * lib/wcscoll-impl.h: New file.
13498         * m4/wcscoll.m4: New file.
13499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13502         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13503         * doc/posix-functions/wcscoll.texi: Mention the new module.
13504
13505 2011-02-06  Bruno Haible  <bruno@clisp.org>
13506
13507         New module 'wcsncasecmp'.
13508         * modules/wcsncasecmp: New file.
13509         * lib/wchar.in.h (wcsncasecmp): New declaration.
13510         * lib/wcsncasecmp.c: New file.
13511         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13512         * m4/wcsncasecmp.m4: New file.
13513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13516         HAVE_WCSNCASECMP.
13517         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13518         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13519
13520 2011-02-06  Bruno Haible  <bruno@clisp.org>
13521
13522         New module 'wcscasecmp'.
13523         * modules/wcscasecmp: New file.
13524         * lib/wchar.in.h (wcscasecmp): New declaration.
13525         * lib/wcscasecmp.c: New file.
13526         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13527         * m4/wcscasecmp.m4: New file.
13528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13531         HAVE_WCSCASECMP.
13532         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13533         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13534
13535 2011-02-05  Bruno Haible  <bruno@clisp.org>
13536
13537         New module 'wcsncmp'.
13538         * modules/wcsncmp: New file.
13539         * lib/wchar.in.h (wcsncmp): New declaration.
13540         * lib/wcsncmp.c: New file.
13541         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13542         * m4/wcsncmp.m4: New file.
13543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13546         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13547         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13548
13549 2011-02-05  Bruno Haible  <bruno@clisp.org>
13550
13551         New module 'wcscmp'.
13552         * modules/wcscmp: New file.
13553         * lib/wchar.in.h (wcscmp): New declaration.
13554         * lib/wcscmp.c: New file.
13555         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13556         * m4/wcscmp.m4: New file.
13557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13560         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13561         * doc/posix-functions/wcscmp.texi: Mention the new module.
13562
13563 2011-02-05  Bruno Haible  <bruno@clisp.org>
13564
13565         New module 'wcsncat'.
13566         * modules/wcsncat: New file.
13567         * lib/wchar.in.h (wcsncat): New declaration.
13568         * lib/wcsncat.c: New file.
13569         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13570         * m4/wcsncat.m4: New file.
13571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13574         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13575         * doc/posix-functions/wcsncat.texi: Mention the new module.
13576
13577 2011-02-05  Bruno Haible  <bruno@clisp.org>
13578
13579         New module 'wcscat'.
13580         * modules/wcscat: New file.
13581         * lib/wchar.in.h (wcscat): New declaration.
13582         * lib/wcscat.c: New file.
13583         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13584         * m4/wcscat.m4: New file.
13585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13588         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13589         * doc/posix-functions/wcscat.texi: Mention the new module.
13590
13591 2011-02-05  Bruno Haible  <bruno@clisp.org>
13592
13593         New module 'wcpncpy'.
13594         * modules/wcpncpy: New file.
13595         * lib/wchar.in.h (wcpncpy): New declaration.
13596         * lib/wcpncpy.c: New file.
13597         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13598         * m4/wcpncpy.m4: New file.
13599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13601         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13602         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13603         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13604
13605 2011-02-05  Bruno Haible  <bruno@clisp.org>
13606
13607         New module 'wcsncpy'.
13608         * modules/wcsncpy: New file.
13609         * lib/wchar.in.h (wcsncpy): New declaration.
13610         * lib/wcsncpy.c: New file.
13611         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13612         * m4/wcsncpy.m4: New file.
13613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13616         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13617         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13618
13619 2011-02-05  Bruno Haible  <bruno@clisp.org>
13620
13621         New module 'wcpcpy'.
13622         * modules/wcpcpy: New file.
13623         * lib/wchar.in.h (wcpcpy): New declaration.
13624         * lib/wcpcpy.c: New file.
13625         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13626         * m4/wcpcpy.m4: New file.
13627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13629         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13630         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13631         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13632
13633 2011-02-05  Bruno Haible  <bruno@clisp.org>
13634
13635         New module 'wcscpy'.
13636         * modules/wcscpy: New file.
13637         * lib/wchar.in.h (wcscpy): New declaration.
13638         * lib/wcscpy.c: New file.
13639         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13640         * m4/wcscpy.m4: New file.
13641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13644         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13645         * doc/posix-functions/wcscpy.texi: Mention the new module.
13646
13647 2011-02-05  Bruno Haible  <bruno@clisp.org>
13648
13649         New module 'wcsnlen'.
13650         * modules/wcsnlen: New file.
13651         * lib/wchar.in.h (wcsnlen): New declaration.
13652         * lib/wcsnlen.c: New file.
13653         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13654         * m4/wcsnlen.m4: New file.
13655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13658         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13659         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13660
13661 2011-02-05  Bruno Haible  <bruno@clisp.org>
13662
13663         New module 'wcslen'.
13664         * modules/wcslen: New file.
13665         * lib/wchar.in.h (wcslen): New declaration.
13666         * lib/wcslen.c: New file.
13667         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13668         * m4/wcslen.m4: New file.
13669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13672         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13673         * doc/posix-functions/wcslen.texi: Mention the new module.
13674
13675 2011-02-05  Bruno Haible  <bruno@clisp.org>
13676
13677         New module 'wmemset'.
13678         * modules/wmemset: New file.
13679         * lib/wchar.in.h (wmemset): New declaration.
13680         * lib/wmemset.c: New file.
13681         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13682         * m4/wmemset.m4: New file.
13683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13685         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13686         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13687         * doc/posix-functions/wmemset.texi: Mention the new module.
13688
13689 2011-02-05  Bruno Haible  <bruno@clisp.org>
13690
13691         New module 'wmemmove'.
13692         * modules/wmemmove: New file.
13693         * lib/wchar.in.h (wmemmove): New declaration.
13694         * lib/wmemmove.c: New file.
13695         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13696         * m4/wmemmove.m4: New file.
13697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13699         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13700         HAVE_WMEMMOVE.
13701         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13702         * doc/posix-functions/wmemmove.texi: Mention the new module.
13703
13704 2011-02-05  Bruno Haible  <bruno@clisp.org>
13705
13706         New module 'wmemcpy'.
13707         * modules/wmemcpy: New file.
13708         * lib/wchar.in.h (wmemcpy): New declaration.
13709         * lib/wmemcpy.c: New file.
13710         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13711         * m4/wmemcpy.m4: New file.
13712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13714         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13715         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13716         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13717
13718 2011-02-05  Bruno Haible  <bruno@clisp.org>
13719
13720         New module 'wmemcmp'.
13721         * modules/wmemcmp: New file.
13722         * lib/wchar.in.h (wmemcmp): New declaration.
13723         * lib/wmemcmp.c: New file.
13724         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13725         * m4/wmemcmp.m4: New file.
13726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13728         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13729         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13730         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13731
13732 2011-02-07  Jim Meyering  <meyering@redhat.com>
13733
13734         di-set, ino-map: new modules, from coreutils
13735         * lib/di-set.c: New file.
13736         * lib/di-set.h: Likewise.
13737         * lib/ino-map.c: Likewise.
13738         * lib/ino-map.h: Likewise.
13739         * modules/di-set: Likewise.
13740         * modules/di-set-tests: Likewise.
13741         * modules/ino-map: Likewise.
13742         * modules/ino-map-tests: Likewise.
13743         * tests/test-di-set.c: Likewise.
13744         * tests/test-ino-map.c: Likewise.
13745
13746 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13747
13748         getloadavg: merge minor changes from Emacs
13749
13750         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13751         (getloadavg): Use memset, not bzero.
13752
13753         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13754         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13755         clash (bug#86).
13756
13757 2010-11-14  Bruno Haible  <bruno@clisp.org>
13758
13759         Allow multiple gnulib generated replacements to coexist.
13760         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13761         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13762         * lib/langinfo.in.h (nl_item): Likewise.
13763         * lib/math.in.h (_NaN, NAN): Likewise.
13764         * lib/netdb.in.h (struct addrinfo): Likewise.
13765         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13766         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13767         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13768         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13769         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13770         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13771         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13772         pthread_mutexattr_init, pthread_mutexattr_settype,
13773         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13774         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13775         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13776         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13777         * lib/sched.in.h (struct sched_param): Likewise.
13778         * lib/se-selinux.in.h (security_class_t, security_context_t,
13779         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13780         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13781         lsetfilecon, fsetfilecon, security_check_context,
13782         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13783         Likewise.
13784         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13785         Likewise.
13786         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13787         _gl_function_taking_int_returning_void_t, union sigval,
13788         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13789         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13790         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13791         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13792         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13793         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13794         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13795         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13796         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13797         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13798         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13799         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13800         socklen_t, rpl_fd_isset): Likewise.
13801         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13802         * lib/sys_time.in.h (struct timeval): Likewise.
13803         * lib/sys_times.in.h (struct tms): Likewise.
13804         * lib/sys_utsname.in.h (struct utsname):
13805         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13806         * lib/unistd.in.h (getpagesize): Likewise.
13807         * lib/wchar.in.h (mbstate_t): Likewise.
13808         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13809         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13810         towlower, towupper): Likewise.
13811         Reported by Sam Steingold <sds@gnu.org>.
13812
13813 2011-02-05  Eric Blake  <eblake@redhat.com>
13814
13815         unsetenv: work around Haiku issues
13816         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13817         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13818
13819 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13820
13821         libposix: avoid calling error() within libposix
13822         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13823         is defined.
13824
13825 2011-02-05  Eric Blake  <eblake@redhat.com>
13826
13827         strerror_r-posix: port to cygwin
13828         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13829         implementation.
13830         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13831         * tests/test-strerror_r.c (main): Fix test.
13832         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13833         issue.
13834
13835 2011-02-05  Bruno Haible  <bruno@clisp.org>
13836
13837         New module 'wmemchr'.
13838         * modules/wmemchr: New file.
13839         * lib/wchar.in.h (wmemchr): New declaration.
13840         * lib/wmemchr.c: New file.
13841         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13842         * m4/wmemchr.m4: New file.
13843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13845         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13846         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13847         * doc/posix-functions/wmemchr.texi: Mention the new module.
13848
13849 2011-02-04  Eric Blake  <eblake@redhat.com>
13850
13851         fdopendir: detect FreeBSD bug
13852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13853         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13854
13855 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13856
13857         stdbool: do not define HAVE_STDBOOL_H
13858         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13859         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13860         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13861         imported from the latest Autoconf git.  It was motivated by Emacs,
13862         which uses gnulib but does not need HAVE_STDBOOL_H.
13863
13864 2011-02-04  Bruno Haible  <bruno@clisp.org>
13865
13866         wcsnrtombs: Prepare for new module wwcsnrtombs.
13867         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13868         * lib/wcsnrtombs.c: Include it.
13869         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13870
13871         wcsrtombs: Prepare for new module wwcsrtombs.
13872         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13873         * lib/wcsrtombs.c: Include it.
13874         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13875
13876         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13877         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13878         * lib/mbsnrtowcs.c: Include it.
13879         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13880
13881         mbsrtowcs: Prepare for new module mbsrtowwcs.
13882         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13883         * lib/mbsrtowcs.c: Include it.
13884         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13885
13886 2011-02-04  Bruno Haible  <bruno@clisp.org>
13887
13888         vasnprintf: Reduce use of malloc for small format strings.
13889         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13890         (arguments): Add room for the first 7 arguments.
13891         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13892         (char_directives, u8_directives, u16_directives, u32_directives): Add
13893         room for the first 7 directives.
13894         * lib/printf-parse.c: Include <string.h>.
13895         (PRINTF_PARSE): Change memory handling code so that it uses the first
13896         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13897         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13898         Reported by Pádraig Brady <P@draigbrady.com>.
13899
13900 2011-01-31  Eric Blake  <eblake@redhat.com>
13901
13902         dup2: work around Haiku bug
13903         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13904         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13905         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13906         * tests/test-dup2.c (main): Enhance test.
13907
13908 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13909
13910         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13911         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13912         declared by eglibc 2.11.2.
13913         * lib/stdio.in.h: Likewise.
13914
13915 2011-01-31  Eric Blake  <eblake@redhat.com>
13916
13917         ignore-value: add missing test dependency
13918         * tests/test-ignore-value.c: Revert previous change; stdio.h
13919         provides off_t.
13920         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13921
13922 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         mktime: clarify long_int width checking
13925         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13926         the top level, to make it clearer that the assumption about
13927         long_int width is being checked.  See
13928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13929
13930 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13931
13932         ignore-value: Fix self-test.
13933         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13934
13935 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13936
13937         TYPE_MAXIMUM: avoid theoretically undefined behavior
13938         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13939         negative number, which the C Standard says has undefined behavior.
13940         In practice this is not a problem, but might as well do it by the book.
13941         Reported by Rich Felker and Eric Blake; see
13942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13943         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13944         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13945         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13946         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13948         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13949
13950         mktime: #undef mktime before #defining it
13951         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13952
13953         mktime: systematically normalize tm_isdst comparisons
13954         * lib/mktime.c (isdst_differ): New function.
13955         (__mktime_internal): Use it systematically for all isdst comparisons.
13956         This completes the fix for libc BZ #6723, and removes the need for
13957         normalizing tm_isdst.  See
13958         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13959         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13960
13961         mktime: fix some integer overflow issues and sidestep the rest
13962
13963         This was prompted by a bug report by Benjamin Lindner for MinGW
13964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13965         His bug is due to signed integer overflow (0 - INT_MIN), and I
13966         I scanned through mktime.c looking for other integer overflow
13967         problems, fixing all the bugs I found.
13968
13969         Although the C Standard says the resulting code is still not safe
13970         in the presence of integer overflow, in practice it should be good
13971         enough for all real-world two's-complement implementations, except
13972         for debugging environments that deliberately trap on integer
13973         overflow (e.g., gcc -ftrapv).
13974
13975         * lib/mktime.c (WRAPV): New macro.
13976         (SHR): Also check that long_int and time_t shift right in the
13977         usual way, before using the fast-but-unportable method.
13978         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13979         used.  The code already assumed two's complement, so there's
13980         no need to test for alternatives.  All uses removed.
13981         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13982         the C standard.  Problem reported by Rich Felker in
13983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13984         (twos_complement_arithmetic): Also check long_int and time_t.
13985         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13986         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13987         (__mktime_internal): Avoid integer overflow with unary subtraction
13988         in two instances where -1 - X is an adequate replacement for -X,
13989         since the calculations are approximate.
13990
13991 2011-01-29  Eric Blake  <eblake@redhat.com>
13992
13993         mktime: avoid infinite loop
13994         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13995         type; behavior is still undefined but portable to all known targets.
13996         Reported by Rich Felker.
13997
13998 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13999
14000         rename, unlink, same-inode: Relicense.
14001         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14002         * modules/unlink (License): Likewise.
14003         * modules/same-inode (License): Likewise.
14004
14005 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14006
14007         mktime: avoid problems on NetBSD 5 / i386
14008         * lib/mktime.c (long_int): New type.  This works around a problem
14009         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14010         but time_t is 64 bits, and where I expect the existing code is
14011         wrong in some cases.
14012         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14013         (ydhms_diff): Bring back the compile-time check for wide-enough
14014         year and yday.
14015
14016         mktime: fix misspelling in comment
14017         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14018         This merges all recent glibc changes of importance.
14019
14020 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14021
14022         move-if-change: cope with concurrent mv of identical file.
14023         * build-aux/move-if-change (CMPPROG): Accept environment
14024         variable as an override for `cmp'.
14025         (usage): Document CMPPROG.
14026         Adjust comparison to drop stdout.  Cope with failure of mv if
14027         the target file exists and is identical to the source, for
14028         parallel builds.
14029         Report from H.J. Lu against binutils in PR binutils/12283.
14030
14031 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14032
14033         * users.txt: Mention sharutils.
14034
14035 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14036
14037         * users.txt: Mention OATH Toolkit.
14038
14039 2011-01-27  Bruno Haible  <bruno@clisp.org>
14040
14041         Prepare for supporting FreeBSD 10.
14042         * build-aux/config.libpath: Remove handling of freebsd1*.
14043
14044 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14045
14046         Prepare for supporting FreeBSD 10.
14047         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14048         match FreeBSD 10.0.
14049
14050 2011-01-27  Bruno Haible  <bruno@clisp.org>
14051
14052         vma-iter, get-rusage-as: Add OpenBSD support.
14053         * modules/vma-iter (configure.ac): Test for mquery.
14054         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14055         * lib/vma-iter.c: Include <sys/mman.h>.
14056         (vma_iterate): Add an implementation based on mquery().
14057         * lib/resource-ext.h (get_rusage_as): Update comments.
14058         * lib/get-rusage-as.c: Likewise.
14059         * lib/get-rusage-data.c: Likewise.
14060
14061 2011-01-26  Karl Berry  <karl@gnu.org>
14062
14063         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14064         variables to make it easier to override the makeinfo program used.
14065
14066 2011-01-26  Eric Blake  <eblake@redhat.com>
14067
14068         fcntl: work around Haiku F_DUPFD bugs
14069         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14070         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14071         cloexec bit on duplication.
14072         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14073
14074 2011-01-26  Bruno Haible  <bruno@clisp.org>
14075
14076         Enable memory leak tests on AIX.
14077         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14078         * tests/test-fprintf-posix3.c (main): Likewise.
14079
14080 2011-01-26  Bruno Haible  <bruno@clisp.org>
14081
14082         Tests for module 'get-rusage-data'.
14083         * modules/get-rusage-data-tests: New file.
14084         * tests/test-get-rusage-data.c: New file.
14085
14086         New module 'get-rusage-data'.
14087         * lib/resource-ext.h (get_rusage_data): New declaration.
14088         * lib/get-rusage-data.c: New file.
14089         * modules/get-rusage-data: New file.
14090
14091 2011-01-25  Bruno Haible  <bruno@clisp.org>
14092
14093         get-rusage-as: Allow for easier testing.
14094         * lib/resource-ext.h (get_rusage_as): Add comment.
14095         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14096         (main): New function for interactive testing.
14097
14098 2011-01-25  Bruno Haible  <bruno@clisp.org>
14099
14100         vma-iter: Treat Haiku like BeOS.
14101         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14102         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14103
14104 2011-01-25  Eric Blake  <eblake@redhat.com>
14105
14106         c-stack: fix regression on cygwin when libsigsegv is present
14107         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14108
14109 2011-01-24  Bruno Haible  <bruno@clisp.org>
14110
14111         vma-iter: Avoid empty intervals.
14112         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14113         on an empty interval.
14114
14115 2011-01-24  Jim Meyering  <meyering@redhat.com>
14116
14117         u64: remove unnecessary #include
14118         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14119
14120 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14121
14122         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14123         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14124
14125 2011-01-23  Bruno Haible  <bruno@clisp.org>
14126
14127         New module 'vma-iter'.
14128         * lib/vma-iter.h: New file.
14129         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14130         * modules/vma-iter: New file.
14131         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14132         for get_rusage_as_via_iterator.
14133         (vma_iterate_callback): New function.
14134         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14135         * modules/get-rusage-as (Depends-on): Add vma-iter.
14136
14137 2011-01-23  Bruno Haible  <bruno@clisp.org>
14138
14139         uninorm: Tweak includes.
14140         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14141         Reported by Jim Meyering.
14142
14143 2011-01-23  Bruno Haible  <bruno@clisp.org>
14144
14145         get-rusage-as: Improve on NetBSD.
14146         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14147         /proc, like on FreeBSD.
14148
14149 2011-01-23  Jim Meyering  <meyering@redhat.com>
14150
14151         xreadlink.h: remove unnecessary #include
14152         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14153
14154         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14155         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14156
14157 2011-01-23  Bruno Haible  <bruno@clisp.org>
14158
14159         get-rusage-as: Fix bug.
14160         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14161         original limit when aborting the first loop.
14162
14163 2011-01-23  Bruno Haible  <bruno@clisp.org>
14164
14165         wctype: Ensure valid C syntax.
14166         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14167         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14168
14169 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14170
14171         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14173         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14174         as they are needed only for configure's test case.
14175         This removes two unnecessary symbols from config.h.
14176
14177         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14178         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14180         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14181         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14182         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14183         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14184         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14185         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14186         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14187         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14188         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14189         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14190         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14191         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14192         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14193         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14194         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14195
14196 2011-01-21  Eric Blake  <eblake@redhat.com>
14197
14198         maintainer-makefile: work with older git for submodule check
14199         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14200         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14201         Reported by Matthias Bolte.
14202
14203         bootstrap: minor portability fixes
14204         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14205         (usage): Omit leading capital and trailing . on help phrases, per
14206         GNU Coding Standards.
14207         (check_versions, top level): Prefix messages with script name.
14208
14209 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14210
14211         bootstrap: support --no-git option
14212         * build-aux/bootstrap: Add --no-git option, to be used when
14213         --gnulib-srcdir points to the exact desired checkout.
14214
14215 2011-01-21  Eric Blake  <eblake@redhat.com>
14216
14217         strerror_r-posix: work with glibc 2.13
14218         * lib/strerror_r.c (strerror_r): Fix return type.
14219
14220 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14221             Bruno Haible  <bruno@clisp.org>
14222
14223         uN_strstr: New unit tests.
14224         * modules/unistr/u8-strstr-tests: New file.
14225         * modules/unistr/u16-strstr-tests: New file.
14226         * modules/unistr/u32-strstr-tests: New file.
14227         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14228         * tests/unistr/test-u8-strstr.c: New file.
14229         * tests/unistr/test-u16-strstr.c: New file.
14230         * tests/unistr/test-u32-strstr.c: New file.
14231
14232 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14233             Bruno Haible  <bruno@clisp.org>
14234
14235         Make uN_strstr functions O(n) worst-case.
14236         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14237         16-bit and 32-bit unit cases, use the unibyte algorithm from
14238         lib/mbsstr.c.
14239         * lib/unistr/u8-strstr.c: Include <string.h>.
14240         (UNIT_IS_UINT8_T): New macro.
14241         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14242         (U_STRLEN, U_STRNLEN): New macros.
14243         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14244         (U_STRLEN, U_STRNLEN): New macros.
14245         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14246         (configure.ac): Update required libunistring version.
14247         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14248         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14249         malloca.
14250         (configure.ac): Update required libunistring version.
14251         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14252         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14253         malloca.
14254         (configure.ac): Update required libunistring version.
14255
14256 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14257             Bruno Haible  <bruno@clisp.org>
14258
14259         Prepare for faster uN_strstr functions.
14260         * lib/str-kmp.h: Support definable UNITs.
14261         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14262         needle_len argument.
14263         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14264         * lib/mbscasestr.c (mbscasestr): Likewise.
14265
14266 2011-01-21  Pádraig Brady <P@draigBrady.com>
14267
14268         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14269         * tests/test-malloca.c (main): Unset the environment variable
14270         to greatly speed up the test.
14271         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14272         * modules/malloca-tests: Depend on unsetenv.
14273
14274 2011-01-21  Pádraig Brady <P@draigBrady.com>
14275
14276         ignore-value: remove stdint dependency
14277         * lib/ignore-value.h: Remove <stdint.h>
14278         * modules/ignore-value: Remove stdint dependency.
14279
14280 2011-01-21  Jim Meyering  <meyering@redhat.com>
14281
14282         maint.mk: adjust variable name to be consistent with other gl_ vars
14283         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14284         to be lower case.
14285
14286 2011-01-20  Jim Meyering  <meyering@redhat.com>
14287
14288         maint.mk: make "check" depend on public-submodule-commit by default
14289         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14290
14291 2011-01-20  Bruno Haible  <bruno@clisp.org>
14292
14293         mbfile, mbiter: Complete change from 2008-12-21.
14294         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14295         * m4/mbiter.m4 (gl_MBITER): Likewise.
14296
14297 2011-01-20  Jim Meyering  <meyering@redhat.com>
14298
14299         init.sh: insert space between each function name and "()"
14300         * tests/init.sh: Make it a little easier to see that a function's
14301         name is "warn_", and not "warn" when looking at the first part of
14302         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14303
14304 2011-01-20  Jim Meyering  <meyering@redhat.com>
14305
14306         mountlist: clean up code formatting
14307         * lib/mountlist.c (read_file_system_list): Split a long line,
14308         correct bracing style, use NULL in place of "(struct statfs *)0",
14309         don't parenthesize return value, add spaces around "=" and after
14310         ";-in-for-stmt".
14311
14312 2011-01-14  Markus Duft <mduft@gentoo.org>
14313
14314         mountlist: add support for Interix
14315         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14316         Apply statvfs to all entries of /dev/fs.
14317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14318         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14319
14320 2011-01-20  Jim Meyering  <meyering@redhat.com>
14321
14322         maint.mk: improve the public-submodule-commit rule
14323         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14324         to suppress printing of its commands... unless V=1.
14325         Add git submodule's --quiet option to suppress printing of e.g.,
14326         "Entering gnulib" output.
14327         "cd" into $(srcdir) before running git submodule.
14328
14329 2011-01-20  Bruno Haible  <bruno@clisp.org>
14330
14331         include_next: Fix bug introduced on 2011-01-18.
14332         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14333         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14334         ac_cv_header_... variable if the second argument is not 'check'.
14335         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14336         gl_NEXT_HEADERS_INTERNAL.
14337
14338 2011-01-20  Bruno Haible  <bruno@clisp.org>
14339
14340         Allow the user to avoid the GNULIB_TEST_* macros.
14341         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14342         Suggested by Paul Eggert.
14343
14344 2011-01-14  Jim Meyering  <meyering@redhat.com>
14345
14346         bootstrap: avoid failure when there is no .gitmodules file
14347         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14348         has been assigned to, even when its value is the empty string.
14349         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14350         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14351         Reported by John W. Eaton <jwe@gnu.org>.
14352
14353 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14354
14355         assume <ctype.h>, ..., <time.h> exist
14356         For years gnulib has been assuming the existence of the headers
14357         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14358         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14359         them, since they don't appear to be needed.
14360         * README (Portability guidelines): Document this.
14361         * lib/flock.c: Assume <fcntl.h> exists.
14362         * lib/regex_internal.h: Assume <locale.h> exists.
14363         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14364         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14365         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14366         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14367         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14368         * m4/regex.m4 (gl_REGEX): Likewise.
14369         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14370         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14371         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14372         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14373         * tests/test-argp.c: Likewise.
14374         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14375
14376         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14377         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14378         AA_APPLE_UNIVERSAL_BUILD.  See
14379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14380         * NEWS: Document this.
14381
14382 2011-01-19  Eric Blake  <eblake@redhat.com>
14383
14384         c-stack: assume stack overflow if SA_SIGINFO unsupported
14385         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14386         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14387         sigaction will work.
14388         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14389         behavior match Linux.
14390         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14391
14392         stdbool-tests: accomodate Haiku
14393         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14394
14395         binary-io: fix O_TEXT on Haiku
14396         * modules/binary-io (Depends-on): Add fcntl-h.
14397         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14398         than blindly undefining O_TEXT.
14399         Reported by Scott McCreary.
14400
14401 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14402
14403         include_next: do not check for standard headers like stddef.h
14404
14405         I found this problem when modifying Emacs to use gnulib.
14406         I noticed that it added HAVE_STDDEF_H to config.h, even though
14407         gnulib always assumes <stddef.h> exists as per README and this
14408         symbol is unnecessary.
14409         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14410         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14411         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14412         faster for headers like stddef.h that are known to exist.
14413         (gl_CHECK_NEXT_HEADERS): Use it.
14414         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14415         rather than gl_CHECK_NEXT_HEADERS.
14416         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14417         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14418
14419 2011-01-18  Eric Blake  <eblake@redhat.com>
14420
14421         ansi-c++-opt: skip C++ dependency style if C++ is unused
14422         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14423         tests when we know C++ compilation is not desired.
14424         Reported by Scott McCreary.
14425
14426 2011-01-18  Bruno Haible  <bruno@clisp.org>
14427
14428         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14429         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14430         (main): Perform test also when getrlimit and setrlimit don't exist or
14431         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14432         limiting the address space size using setrlimit, compare the address
14433         space size before and after the the test.
14434         * tests/test-dprintf-posix2.c: Likewise.
14435         * tests/test-fprintf-posix3.sh: Update skip messages.
14436         * tests/test-dprintf-posix2.sh: Likewise.
14437         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14438         * modules/dprintf-posix-tests (Depends-on): Likewise.
14439         Reported by Bruce Korb <bkorb@gnu.org> and
14440         Gary V. Vaughan <gary@gnu.org>.
14441
14442 2011-01-18  Bruno Haible  <bruno@clisp.org>
14443
14444         get-rusage-as: Improvement for Cygwin.
14445         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14446         areas that are merely reserved.
14447
14448 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14449
14450         strftime: remove dependencies on multibyte modules
14451
14452         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14453         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14454         only if __osf__ is defined, and I suspect OSF doesn't need these
14455         other modules.  If my guess is wrong, we'll need to come up with a
14456         variant of strftime that doesn't need the multibyte modules.
14457
14458         I discovered this problem when attempting modify Emacs to use the
14459         strftime module.  With the previous gnulib, this caused Emacs to
14460         need 31 new files, ranging from lib/config.charset to
14461         m4/wint_t.m4.  This was overkill and I expect would be offputting
14462         to the Emacs maintainers.  After this change, only 6 new files are
14463         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14464         stdbool.m4, and tm_gmtoff.m4.
14465
14466         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14467         Suggested by Bruno Haible in
14468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14470         and do not check for wchar.h.
14471         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14472         (Depends-on): Remove mbrlen, mbsinit, wchar.
14473
14474 2011-01-18  Bruno Haible  <bruno@clisp.org>
14475
14476         Tests for module 'get-rusage-as'.
14477         * modules/get-rusage-as-tests: New file.
14478         * tests/test-get-rusage-as.c: New file.
14479
14480         New module 'get-rusage-as'.
14481         * modules/get-rusage-as: New file.
14482         * lib/resource-ext.h: New file.
14483         * lib/get-rusage-as.c: New file.
14484
14485 2011-01-17  Eric Blake  <eblake@redhat.com>
14486
14487         sigaction: relax license from LGPLv3+ to LGPLv2+
14488         * modules/sigaction (License): Relax to LGPLv2+.
14489
14490 2011-01-14  Bruno Haible  <bruno@clisp.org>
14491
14492         filemode: Make function declarations usable in C++ mode.
14493         * lib/filemode.h: Enclose function declarations in extern "C" block.
14494         Reported by John W. Eaton <jwe@gnu.org>.
14495
14496 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14497
14498         save-cwd: no longer include "xgetcwd.h"
14499         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14500         This avoids a compilation failure in projects that use save-cwd
14501         without also using the xgetcwd module.
14502
14503 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14504
14505         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14506         This is so that a program like Emacs, which needs only dtoastr,
14507         does not have to bother with distributing and compiling ftoastr
14508         and ldtoastr.
14509         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14510         * modules/dtoastr, modules/ldtoastr: New files.
14511         * modules/ftoastr: Now works just for 'float'.
14512         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14513         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14514         dtoastr.c, ldtoastr.c.
14515
14516 2011-01-11  Jim Meyering  <meyering@redhat.com>
14517
14518         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14519         There is no need to work around the lack of the fchdir function,
14520         since gnulib can now provide a replacement when required.
14521         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14522         * modules/save-cwd (Depends-on): Add fchdir.
14523
14524 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14525
14526         openat, save-cwd: avoid xmalloc
14527
14528         This removes a direct (but undocumented) dependency of openat on
14529         xalloc, along with an indirect dependency via save-cwd.  It also
14530         removes a dependency of save-cwd on xgetcwd, and thereby
14531         indirectly on xalloc.  This change causes the openat substitute
14532         to fall back on save_cwd when memory is tight, and for save_cwd to
14533         fail instead of dying when memory is tight, but that's good enough.
14534         Problem and initial idea for fix reported by Bastien Roucaries in
14535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14536
14537         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14538         xalloc.h (for xmalloc).
14539         (openat_proc_name): Use malloc, not xmalloc.
14540         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14541         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14542
14543         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14544         This avoids heap allocation for file names whose lengths are in
14545         the range 512..1023, with the upper bound increasing to at most
14546         4031 depending on the platform's PATH_MAX.  (We do not want
14547         pathmax.h here as it might supply a non-constant PATH_MAX.)
14548         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14549         Perhaps they should be moved to malloca.h?
14550         (OPENAT_BUFFER_SIZE): Use them.
14551
14552 2011-01-10  Bruno Haible  <bruno@clisp.org>
14553
14554         doc: Update users.txt.
14555         * users.txt: Add recutils.
14556
14557 2011-01-09  Karl Berry  <karl@gnu.org>
14558
14559         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14560
14561         * doc/configmake.texi: New file.
14562         * doc/gnulib.texi: Include it.
14563         * modules/configmake: Move documentation from here.
14564
14565 2011-01-09  Bruno Haible  <bruno@clisp.org>
14566
14567         Update to Unicode 6.0.0.
14568         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14569         (get_lbp): Update for Unicode 6.0.0.
14570         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14571         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14572         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14573         U+11001, U+11038..U+11046. Remove U+06DE.
14574         (uc_width): Fix bounds of planes.
14575         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14576         lib/uniwidth/width.c.
14577         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14578         trailing whitespace removed.
14579         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14580         without comments, but with the original copyright notice.
14581         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14582         * lib/unicase/ignorable.h: Likewise.
14583         * lib/unicase/tocasefold.h: Likewise.
14584         * lib/unicase/tolower.h: Likewise.
14585         * lib/unicase/totitle.h: Likewise.
14586         * lib/unicase/toupper.h: Likewise.
14587         * lib/unictype/bidi_of.h: Likewise.
14588         * lib/unictype/blocks.h: Likewise.
14589         * lib/unictype/categ_C.h: Likewise.
14590         * lib/unictype/categ_Cn.h: Likewise.
14591         * lib/unictype/categ_L.h: Likewise.
14592         * lib/unictype/categ_Ll.h: Likewise.
14593         * lib/unictype/categ_Lm.h: Likewise.
14594         * lib/unictype/categ_Lo.h: Likewise.
14595         * lib/unictype/categ_Lu.h: Likewise.
14596         * lib/unictype/categ_M.h: Likewise.
14597         * lib/unictype/categ_Mc.h: Likewise.
14598         * lib/unictype/categ_Me.h: Likewise.
14599         * lib/unictype/categ_Mn.h: Likewise.
14600         * lib/unictype/categ_N.h: Likewise.
14601         * lib/unictype/categ_Nd.h: Likewise.
14602         * lib/unictype/categ_No.h: Likewise.
14603         * lib/unictype/categ_P.h: Likewise.
14604         * lib/unictype/categ_Po.h: Likewise.
14605         * lib/unictype/categ_S.h: Likewise.
14606         * lib/unictype/categ_Sc.h: Likewise.
14607         * lib/unictype/categ_Sk.h: Likewise.
14608         * lib/unictype/categ_Sm.h: Likewise.
14609         * lib/unictype/categ_So.h: Likewise.
14610         * lib/unictype/categ_of.h: Likewise.
14611         * lib/unictype/combining.h: Likewise.
14612         * lib/unictype/ctype_alnum.h: Likewise.
14613         * lib/unictype/ctype_alpha.h: Likewise.
14614         * lib/unictype/ctype_graph.h: Likewise.
14615         * lib/unictype/ctype_lower.h: Likewise.
14616         * lib/unictype/ctype_print.h: Likewise.
14617         * lib/unictype/ctype_punct.h: Likewise.
14618         * lib/unictype/ctype_upper.h: Likewise.
14619         * lib/unictype/decdigit.h: Likewise.
14620         * lib/unictype/digit.h: Likewise.
14621         * lib/unictype/numeric.h: Likewise.
14622         * lib/unictype/pr_alphabetic.h: Likewise.
14623         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14624         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14625         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14626         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14627         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14628         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14629         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14630         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14631         * lib/unictype/pr_case_ignorable.h: Likewise.
14632         * lib/unictype/pr_cased.h: Likewise.
14633         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14634         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14635         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14636         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14637         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14638         * lib/unictype/pr_combining.h: Likewise.
14639         * lib/unictype/pr_composite.h: Likewise.
14640         * lib/unictype/pr_currency_symbol.h: Likewise.
14641         * lib/unictype/pr_decimal_digit.h: Likewise.
14642         * lib/unictype/pr_deprecated.h: Likewise.
14643         * lib/unictype/pr_format_control.h: Likewise.
14644         * lib/unictype/pr_grapheme_base.h: Likewise.
14645         * lib/unictype/pr_grapheme_extend.h: Likewise.
14646         * lib/unictype/pr_grapheme_link.h: Likewise.
14647         * lib/unictype/pr_id_continue.h: Likewise.
14648         * lib/unictype/pr_id_start.h: Likewise.
14649         * lib/unictype/pr_ideographic.h: Likewise.
14650         * lib/unictype/pr_lowercase.h: Likewise.
14651         * lib/unictype/pr_math.h: Likewise.
14652         * lib/unictype/pr_numeric.h: Likewise.
14653         * lib/unictype/pr_other_alphabetic.h: Likewise.
14654         * lib/unictype/pr_other_id_continue.h: Likewise.
14655         * lib/unictype/pr_other_math.h: Likewise.
14656         * lib/unictype/pr_punctuation.h: Likewise.
14657         * lib/unictype/pr_sentence_terminal.h: Likewise.
14658         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14659         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14660         * lib/unictype/pr_unified_ideograph.h: Likewise.
14661         * lib/unictype/pr_uppercase.h: Likewise.
14662         * lib/unictype/pr_xid_continue.h: Likewise.
14663         * lib/unictype/pr_xid_start.h: Likewise.
14664         * lib/unictype/scripts.h: Likewise.
14665         * lib/unictype/scripts_byname.gperf: Likewise.
14666         * lib/unictype/sy_java_ident.h: Likewise.
14667         * lib/unigbrk/gbrkprop.h: Likewise.
14668         * lib/unilbrk/lbrkprop1.h: Likewise.
14669         * lib/unilbrk/lbrkprop2.h: Likewise.
14670         * lib/uninorm/decomposition-table2.h: Likewise.
14671         * lib/uniwbrk/wbrkprop.h: Likewise.
14672         * tests/unicase/test-cased.c: Likewise.
14673         * tests/unicase/test-ignorable.c: Likewise.
14674         * tests/unicase/test-uc_tolower.c: Likewise.
14675         * tests/unicase/test-uc_totitle.c: Likewise.
14676         * tests/unicase/test-uc_toupper.c: Likewise.
14677         * tests/unictype/test-categ_C.c: Likewise.
14678         * tests/unictype/test-categ_Cn.c: Likewise.
14679         * tests/unictype/test-categ_L.c: Likewise.
14680         * tests/unictype/test-categ_Ll.c: Likewise.
14681         * tests/unictype/test-categ_Lm.c: Likewise.
14682         * tests/unictype/test-categ_Lo.c: Likewise.
14683         * tests/unictype/test-categ_Lu.c: Likewise.
14684         * tests/unictype/test-categ_M.c: Likewise.
14685         * tests/unictype/test-categ_Mc.c: Likewise.
14686         * tests/unictype/test-categ_Me.c: Likewise.
14687         * tests/unictype/test-categ_Mn.c: Likewise.
14688         * tests/unictype/test-categ_N.c: Likewise.
14689         * tests/unictype/test-categ_Nd.c: Likewise.
14690         * tests/unictype/test-categ_No.c: Likewise.
14691         * tests/unictype/test-categ_P.c: Likewise.
14692         * tests/unictype/test-categ_Po.c: Likewise.
14693         * tests/unictype/test-categ_S.c: Likewise.
14694         * tests/unictype/test-categ_Sc.c: Likewise.
14695         * tests/unictype/test-categ_Sk.c: Likewise.
14696         * tests/unictype/test-categ_Sm.c: Likewise.
14697         * tests/unictype/test-categ_So.c: Likewise.
14698         * tests/unictype/test-ctype_alnum.c: Likewise.
14699         * tests/unictype/test-ctype_alpha.c: Likewise.
14700         * tests/unictype/test-ctype_graph.c: Likewise.
14701         * tests/unictype/test-ctype_lower.c: Likewise.
14702         * tests/unictype/test-ctype_print.c: Likewise.
14703         * tests/unictype/test-ctype_punct.c: Likewise.
14704         * tests/unictype/test-ctype_upper.c: Likewise.
14705         * tests/unictype/test-decdigit.h: Likewise.
14706         * tests/unictype/test-digit.h: Likewise.
14707         * tests/unictype/test-numeric.h: Likewise.
14708         * tests/unictype/test-pr_alphabetic.c: Likewise.
14709         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14710         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14711         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14712         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14713         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14714         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14715         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14716         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14717         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14718         * tests/unictype/test-pr_cased.c: Likewise.
14719         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14720         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14721         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14722         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14723         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14724         * tests/unictype/test-pr_combining.c: Likewise.
14725         * tests/unictype/test-pr_composite.c: Likewise.
14726         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14727         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14728         * tests/unictype/test-pr_deprecated.c: Likewise.
14729         * tests/unictype/test-pr_format_control.c: Likewise.
14730         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14731         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14732         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14733         * tests/unictype/test-pr_id_continue.c: Likewise.
14734         * tests/unictype/test-pr_id_start.c: Likewise.
14735         * tests/unictype/test-pr_ideographic.c: Likewise.
14736         * tests/unictype/test-pr_lowercase.c: Likewise.
14737         * tests/unictype/test-pr_math.c: Likewise.
14738         * tests/unictype/test-pr_numeric.c: Likewise.
14739         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14740         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14741         * tests/unictype/test-pr_other_math.c: Likewise.
14742         * tests/unictype/test-pr_punctuation.c: Likewise.
14743         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14744         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14745         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14746         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14747         * tests/unictype/test-pr_uppercase.c: Likewise.
14748         * tests/unictype/test-pr_xid_continue.c: Likewise.
14749         * tests/unictype/test-pr_xid_start.c: Likewise.
14750         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14751         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14752         changes.
14753         * lib/unictype/categ_Cc.h: Likewise.
14754         * lib/unictype/categ_Cf.h: Likewise.
14755         * lib/unictype/categ_Co.h: Likewise.
14756         * lib/unictype/categ_Cs.h: Likewise.
14757         * lib/unictype/categ_Lt.h: Likewise.
14758         * lib/unictype/categ_Nl.h: Likewise.
14759         * lib/unictype/categ_Pc.h: Likewise.
14760         * lib/unictype/categ_Pd.h: Likewise.
14761         * lib/unictype/categ_Pe.h: Likewise.
14762         * lib/unictype/categ_Pf.h: Likewise.
14763         * lib/unictype/categ_Pi.h: Likewise.
14764         * lib/unictype/categ_Ps.h: Likewise.
14765         * lib/unictype/categ_Z.h: Likewise.
14766         * lib/unictype/categ_Zl.h: Likewise.
14767         * lib/unictype/categ_Zp.h: Likewise.
14768         * lib/unictype/categ_Zs.h: Likewise.
14769         * lib/unictype/ctype_blank.h: Likewise.
14770         * lib/unictype/ctype_cntrl.h: Likewise.
14771         * lib/unictype/ctype_digit.h: Likewise.
14772         * lib/unictype/ctype_space.h: Likewise.
14773         * lib/unictype/ctype_xdigit.h: Likewise.
14774         * lib/unictype/mirror.h: Likewise.
14775         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14776         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14777         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14778         * lib/unictype/pr_bidi_control.h: Likewise.
14779         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14780         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14781         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14782         * lib/unictype/pr_bidi_pdf.h: Likewise.
14783         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14784         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14785         * lib/unictype/pr_dash.h: Likewise.
14786         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14787         * lib/unictype/pr_diacritic.h: Likewise.
14788         * lib/unictype/pr_extender.h: Likewise.
14789         * lib/unictype/pr_hex_digit.h: Likewise.
14790         * lib/unictype/pr_hyphen.h: Likewise.
14791         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14792         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14793         * lib/unictype/pr_ignorable_control.h: Likewise.
14794         * lib/unictype/pr_iso_control.h: Likewise.
14795         * lib/unictype/pr_join_control.h: Likewise.
14796         * lib/unictype/pr_left_of_pair.h: Likewise.
14797         * lib/unictype/pr_line_separator.h: Likewise.
14798         * lib/unictype/pr_logical_order_exception.h: Likewise.
14799         * lib/unictype/pr_non_break.h: Likewise.
14800         * lib/unictype/pr_not_a_character.h: Likewise.
14801         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14802         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14803         * lib/unictype/pr_other_id_start.h: Likewise.
14804         * lib/unictype/pr_other_lowercase.h: Likewise.
14805         * lib/unictype/pr_other_uppercase.h: Likewise.
14806         * lib/unictype/pr_paired_punctuation.h: Likewise.
14807         * lib/unictype/pr_paragraph_separator.h: Likewise.
14808         * lib/unictype/pr_pattern_syntax.h: Likewise.
14809         * lib/unictype/pr_pattern_white_space.h: Likewise.
14810         * lib/unictype/pr_private_use.h: Likewise.
14811         * lib/unictype/pr_quotation_mark.h: Likewise.
14812         * lib/unictype/pr_radical.h: Likewise.
14813         * lib/unictype/pr_soft_dotted.h: Likewise.
14814         * lib/unictype/pr_space.h: Likewise.
14815         * lib/unictype/pr_titlecase.h: Likewise.
14816         * lib/unictype/pr_variation_selector.h: Likewise.
14817         * lib/unictype/pr_white_space.h: Likewise.
14818         * lib/unictype/pr_zero_width.h: Likewise.
14819         * lib/unictype/sy_c_ident.h: Likewise.
14820         * lib/unictype/sy_c_whitespace.h: Likewise.
14821         * lib/unictype/sy_java_whitespace.h: Likewise.
14822         * lib/uninorm/composition-table.gperf: Likewise.
14823         * lib/uninorm/decomposition-table1.h: Likewise.
14824         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14825         LB8.
14826         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14827         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14828         * modules/unictype/*: Bump version number of expected libunistring
14829         version.
14830
14831 2011-01-09  Bruno Haible  <bruno@clisp.org>
14832
14833         Update to Unicode 5.2.0.
14834         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14835         trailing whitespace removed.
14836
14837 2011-01-09  Bruno Haible  <bruno@clisp.org>
14838
14839         New Unicode character properties, from Unicode 5.2.0.
14840         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14841         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14842         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14843         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14844         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14845         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14846         uc_is_property_cased, uc_is_property_case_ignorable,
14847         uc_is_property_changes_when_lowercased,
14848         uc_is_property_changes_when_uppercased,
14849         uc_is_property_changes_when_titlecased,
14850         uc_is_property_changes_when_casefolded,
14851         uc_is_property_changes_when_casemapped): New declarations.
14852         * lib/unictype/pr_byname.gperf: Add the new properties.
14853         * modules/unictype/property-byname (Depends-on): Depend on the new
14854         properties modules.
14855         * modules/unictype/property-all (Depends-on): Likewise.
14856         * MODULES.html.sh (Unicode string functions): Add
14857         unictype/property-case-ignorable, unictype/property-cased,
14858         unictype/property-changes-when-casefolded,
14859         unictype/property-changes-when-casemapped,
14860         unictype/property-changes-when-lowercased,
14861         unictype/property-changes-when-titlecased,
14862         unictype/property-changes-when-uppercased.
14863
14864         New module 'unictype/property-changes-when-casemapped'.
14865         * modules/unictype/property-changes-when-casemapped: New file.
14866         * lib/unictype/pr_changes_when_casemapped.c: New file.
14867         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14868         generated by gen-uni-tables.
14869         * modules/unictype/property-changes-when-casemapped-tests: New file.
14870         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14871         automatically generated by gen-uni-tables.
14872
14873         New module 'unictype/property-changes-when-casefolded'.
14874         * modules/unictype/property-changes-when-casefolded: New file.
14875         * lib/unictype/pr_changes_when_casefolded.c: New file.
14876         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14877         generated by gen-uni-tables.
14878         * modules/unictype/property-changes-when-casefolded-tests: New file.
14879         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14880         automatically generated by gen-uni-tables.
14881
14882         New module 'unictype/property-changes-when-titlecased'.
14883         * modules/unictype/property-changes-when-titlecased: New file.
14884         * lib/unictype/pr_changes_when_titlecased.c: New file.
14885         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14886         generated by gen-uni-tables.
14887         * modules/unictype/property-changes-when-titlecased-tests: New file.
14888         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14889         automatically generated by gen-uni-tables.
14890
14891         New module 'unictype/property-changes-when-uppercased'.
14892         * modules/unictype/property-changes-when-uppercased: New file.
14893         * lib/unictype/pr_changes_when_uppercased.c: New file.
14894         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14895         generated by gen-uni-tables.
14896         * modules/unictype/property-changes-when-uppercased-tests: New file.
14897         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14898         automatically generated by gen-uni-tables.
14899
14900         New module 'unictype/property-changes-when-lowercased'.
14901         * modules/unictype/property-changes-when-lowercased: New file.
14902         * lib/unictype/pr_changes_when_lowercased.c: New file.
14903         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14904         generated by gen-uni-tables.
14905         * modules/unictype/property-changes-when-lowercased-tests: New file.
14906         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14907         automatically generated by gen-uni-tables.
14908
14909         New module 'unictype/property-case-ignorable'.
14910         * modules/unictype/property-case-ignorable: New file.
14911         * lib/unictype/pr_case_ignorable.c: New file.
14912         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14913         by gen-uni-tables.
14914         * modules/unictype/property-case-ignorable-tests: New file.
14915         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14916         generated by gen-uni-tables.
14917
14918         New module 'unictype/property-cased'.
14919         * modules/unictype/property-cased: New file.
14920         * lib/unictype/pr_cased.c: New file.
14921         * lib/unictype/pr_cased.h: New file, automatically generated by
14922         gen-uni-tables.
14923         * modules/unictype/property-cased-tests: New file.
14924         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14925         gen-uni-tables.
14926
14927 2011-01-09  Bruno Haible  <bruno@clisp.org>
14928
14929         Update to Unicode 5.2.0.
14930         * lib/gen-uni-tables.c (output_predicate, output_category,
14931         output_combclass, output_bidi_category, output_decimal_digit_test,
14932         output_decimal_digit, output_digit_test, output_digit,
14933         output_numeric_test, output_numeric, output_mirror, output_scripts,
14934         output_scripts_byname, output_blocks, output_ident_category): Fix
14935         comment header.
14936         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14937         get_wbp.
14938         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14939         items.
14940         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14941         Changes_When_Lowercased, Changes_When_Uppercased,
14942         Changes_When_Titlecased, Changes_When_Casefolded,
14943         Changes_When_Casemapped.
14944         (is_property_alphabetic, is_property_default_ignorable_code_point):
14945         Update for Unicode 5.2.0.
14946         (is_property_cased, is_property_case_ignorable,
14947         is_property_changes_when_lowercased,
14948         is_property_changes_when_uppercased,
14949         is_property_changes_when_titlecased,
14950         is_property_changes_when_casefolded,
14951         is_property_changes_when_casemapped): New functions.
14952         (output_properties): Output also the properties cased, case_ignorable,
14953         changes_when_lowercased, changes_when_uppercased,
14954         changes_when_titlecased, changes_when_casefolded,
14955         changes_when_casemapped.
14956         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14957         Unicode TR#11 revision 17 -> 19.
14958         (LBP_CP): New enumeration value.
14959         (LBP_*): Adjust values accordingly.
14960         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14961         TR#14 revision 22 -> 24.
14962         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14963         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14964         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14965         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14966         is_WBP_MIDLETTER.
14967         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14968         the code1 and code2 of each composition rule.
14969         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14970         * lib/unicase/ignorable.h: Likewise.
14971         * lib/unicase/tocasefold.h: Likewise.
14972         * lib/unicase/tolower.h: Likewise.
14973         * lib/unicase/totitle.h: Likewise.
14974         * lib/unicase/toupper.h: Likewise.
14975         * lib/unictype/bidi_of.h: Likewise.
14976         * lib/unictype/blocks.h: Likewise.
14977         * lib/unictype/categ_C.h: Likewise.
14978         * lib/unictype/categ_Cf.h: Likewise.
14979         * lib/unictype/categ_Cn.h: Likewise.
14980         * lib/unictype/categ_L.h: Likewise.
14981         * lib/unictype/categ_Ll.h: Likewise.
14982         * lib/unictype/categ_Lm.h: Likewise.
14983         * lib/unictype/categ_Lo.h: Likewise.
14984         * lib/unictype/categ_Lu.h: Likewise.
14985         * lib/unictype/categ_M.h: Likewise.
14986         * lib/unictype/categ_Mc.h: Likewise.
14987         * lib/unictype/categ_Mn.h: Likewise.
14988         * lib/unictype/categ_N.h: Likewise.
14989         * lib/unictype/categ_Nd.h: Likewise.
14990         * lib/unictype/categ_Nl.h: Likewise.
14991         * lib/unictype/categ_No.h: Likewise.
14992         * lib/unictype/categ_P.h: Likewise.
14993         * lib/unictype/categ_Pd.h: Likewise.
14994         * lib/unictype/categ_Po.h: Likewise.
14995         * lib/unictype/categ_S.h: Likewise.
14996         * lib/unictype/categ_Sc.h: Likewise.
14997         * lib/unictype/categ_So.h: Likewise.
14998         * lib/unictype/categ_of.h: Likewise.
14999         * lib/unictype/combining.h: Likewise.
15000         * lib/unictype/ctype_alnum.h: Likewise.
15001         * lib/unictype/ctype_alpha.h: Likewise.
15002         * lib/unictype/ctype_graph.h: Likewise.
15003         * lib/unictype/ctype_lower.h: Likewise.
15004         * lib/unictype/ctype_print.h: Likewise.
15005         * lib/unictype/ctype_punct.h: Likewise.
15006         * lib/unictype/ctype_upper.h: Likewise.
15007         * lib/unictype/decdigit.h: Likewise.
15008         * lib/unictype/digit.h: Likewise.
15009         * lib/unictype/numeric.h: Likewise.
15010         * lib/unictype/pr_alphabetic.h: Likewise.
15011         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15012         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15013         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15014         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15015         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15016         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15017         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15018         * lib/unictype/pr_combining.h: Likewise.
15019         * lib/unictype/pr_composite.h: Likewise.
15020         * lib/unictype/pr_currency_symbol.h: Likewise.
15021         * lib/unictype/pr_dash.h: Likewise.
15022         * lib/unictype/pr_decimal_digit.h: Likewise.
15023         * lib/unictype/pr_deprecated.h: Likewise.
15024         * lib/unictype/pr_diacritic.h: Likewise.
15025         * lib/unictype/pr_extender.h: Likewise.
15026         * lib/unictype/pr_grapheme_base.h: Likewise.
15027         * lib/unictype/pr_grapheme_extend.h: Likewise.
15028         * lib/unictype/pr_grapheme_link.h: Likewise.
15029         * lib/unictype/pr_id_continue.h: Likewise.
15030         * lib/unictype/pr_id_start.h: Likewise.
15031         * lib/unictype/pr_ideographic.h: Likewise.
15032         * lib/unictype/pr_ignorable_control.h: Likewise.
15033         * lib/unictype/pr_logical_order_exception.h: Likewise.
15034         * lib/unictype/pr_lowercase.h: Likewise.
15035         * lib/unictype/pr_numeric.h: Likewise.
15036         * lib/unictype/pr_other_alphabetic.h: Likewise.
15037         * lib/unictype/pr_punctuation.h: Likewise.
15038         * lib/unictype/pr_sentence_terminal.h: Likewise.
15039         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15040         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15041         * lib/unictype/pr_unified_ideograph.h: Likewise.
15042         * lib/unictype/pr_uppercase.h: Likewise.
15043         * lib/unictype/pr_xid_continue.h: Likewise.
15044         * lib/unictype/pr_xid_start.h: Likewise.
15045         * lib/unictype/pr_zero_width.h: Likewise.
15046         * lib/unictype/scripts.h: Likewise.
15047         * lib/unictype/scripts_byname.gperf: Likewise.
15048         * lib/unictype/sy_java_ident.h: Likewise.
15049         * lib/unigbrk/gbrkprop.h: Likewise.
15050         * lib/unilbrk/lbrkprop1.h: Likewise.
15051         * lib/unilbrk/lbrkprop2.h: Likewise.
15052         * lib/unilbrk/lbrktables.h: Likewise.
15053         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15054         LBP_CP. Implement rule LB30.
15055         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15056         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15057         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15058         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15059         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15060         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15061         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15062         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15063         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15064         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15065         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15066         bits instead of 16 bits in the code1 and code2 of each composition
15067         rule.
15068         (uc_composition): Update for Unicode 5.2.0.
15069         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15070         * lib/uninorm/decomposition-table2.h: Likewise.
15071         * lib/uniwbrk/wbrkprop.h: Likewise.
15072         * tests/unicase/test-cased.c: Likewise.
15073         * tests/unicase/test-ignorable.c: Likewise.
15074         * tests/unicase/test-uc_tolower.c: Likewise.
15075         * tests/unicase/test-uc_totitle.c: Likewise.
15076         * tests/unicase/test-uc_toupper.c: Likewise.
15077         * tests/unictype/test-categ_C.c: Likewise.
15078         * tests/unictype/test-categ_Cf.c: Likewise.
15079         * tests/unictype/test-categ_Cn.c: Likewise.
15080         * tests/unictype/test-categ_L.c: Likewise.
15081         * tests/unictype/test-categ_Ll.c: Likewise.
15082         * tests/unictype/test-categ_Lm.c: Likewise.
15083         * tests/unictype/test-categ_Lo.c: Likewise.
15084         * tests/unictype/test-categ_Lu.c: Likewise.
15085         * tests/unictype/test-categ_M.c: Likewise.
15086         * tests/unictype/test-categ_Mc.c: Likewise.
15087         * tests/unictype/test-categ_Mn.c: Likewise.
15088         * tests/unictype/test-categ_N.c: Likewise.
15089         * tests/unictype/test-categ_Nd.c: Likewise.
15090         * tests/unictype/test-categ_Nl.c: Likewise.
15091         * tests/unictype/test-categ_No.c: Likewise.
15092         * tests/unictype/test-categ_P.c: Likewise.
15093         * tests/unictype/test-categ_Pd.c: Likewise.
15094         * tests/unictype/test-categ_Po.c: Likewise.
15095         * tests/unictype/test-categ_S.c: Likewise.
15096         * tests/unictype/test-categ_Sc.c: Likewise.
15097         * tests/unictype/test-categ_So.c: Likewise.
15098         * tests/unictype/test-ctype_alnum.c: Likewise.
15099         * tests/unictype/test-ctype_alpha.c: Likewise.
15100         * tests/unictype/test-ctype_graph.c: Likewise.
15101         * tests/unictype/test-ctype_lower.c: Likewise.
15102         * tests/unictype/test-ctype_print.c: Likewise.
15103         * tests/unictype/test-ctype_punct.c: Likewise.
15104         * tests/unictype/test-ctype_upper.c: Likewise.
15105         * tests/unictype/test-decdigit.h: Likewise.
15106         * tests/unictype/test-digit.h: Likewise.
15107         * tests/unictype/test-numeric.h: Likewise.
15108         * tests/unictype/test-pr_alphabetic.c: Likewise.
15109         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15110         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15111         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15112         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15113         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15114         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15115         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15116         * tests/unictype/test-pr_combining.c: Likewise.
15117         * tests/unictype/test-pr_composite.c: Likewise.
15118         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15119         * tests/unictype/test-pr_dash.c: Likewise.
15120         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15121         * tests/unictype/test-pr_deprecated.c: Likewise.
15122         * tests/unictype/test-pr_diacritic.c: Likewise.
15123         * tests/unictype/test-pr_extender.c: Likewise.
15124         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15125         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15126         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15127         * tests/unictype/test-pr_id_continue.c: Likewise.
15128         * tests/unictype/test-pr_id_start.c: Likewise.
15129         * tests/unictype/test-pr_ideographic.c: Likewise.
15130         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15131         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15132         * tests/unictype/test-pr_lowercase.c: Likewise.
15133         * tests/unictype/test-pr_numeric.c: Likewise.
15134         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15135         * tests/unictype/test-pr_punctuation.c: Likewise.
15136         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15137         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15138         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15139         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15140         * tests/unictype/test-pr_uppercase.c: Likewise.
15141         * tests/unictype/test-pr_xid_continue.c: Likewise.
15142         * tests/unictype/test-pr_xid_start.c: Likewise.
15143         * tests/unictype/test-pr_zero_width.c: Likewise.
15144         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15145         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15146         changed behaviour: line breaking is now disallowed between a letter
15147         or '=' and '('.
15148         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15149         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15150         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15151         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15152         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15153         lib/uniwidth/width.c.
15154         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15155         without comments, but with the original copyright notice.
15156         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15157         changes.
15158         * lib/unictype/categ_Cc.h: Likewise.
15159         * lib/unictype/categ_Co.h: Likewise.
15160         * lib/unictype/categ_Cs.h: Likewise.
15161         * lib/unictype/categ_Lt.h: Likewise.
15162         * lib/unictype/categ_Me.h: Likewise.
15163         * lib/unictype/categ_Pc.h: Likewise.
15164         * lib/unictype/categ_Pe.h: Likewise.
15165         * lib/unictype/categ_Pf.h: Likewise.
15166         * lib/unictype/categ_Pi.h: Likewise.
15167         * lib/unictype/categ_Ps.h: Likewise.
15168         * lib/unictype/categ_Sk.h: Likewise.
15169         * lib/unictype/categ_Sm.h: Likewise.
15170         * lib/unictype/categ_Z.h: Likewise.
15171         * lib/unictype/categ_Zl.h: Likewise.
15172         * lib/unictype/categ_Zp.h: Likewise.
15173         * lib/unictype/categ_Zs.h: Likewise.
15174         * lib/unictype/ctype_blank.h: Likewise.
15175         * lib/unictype/ctype_cntrl.h: Likewise.
15176         * lib/unictype/ctype_digit.h: Likewise.
15177         * lib/unictype/ctype_space.h: Likewise.
15178         * lib/unictype/ctype_xdigit.h: Likewise.
15179         * lib/unictype/mirror.h: Likewise.
15180         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15181         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15182         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15183         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15184         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15185         * lib/unictype/pr_bidi_control.h: Likewise.
15186         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15187         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15188         * lib/unictype/pr_bidi_pdf.h: Likewise.
15189         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15190         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15191         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15192         * lib/unictype/pr_format_control.h: Likewise.
15193         * lib/unictype/pr_hex_digit.h: Likewise.
15194         * lib/unictype/pr_hyphen.h: Likewise.
15195         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15196         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15197         * lib/unictype/pr_iso_control.h: Likewise.
15198         * lib/unictype/pr_join_control.h: Likewise.
15199         * lib/unictype/pr_left_of_pair.h: Likewise.
15200         * lib/unictype/pr_line_separator.h: Likewise.
15201         * lib/unictype/pr_math.h: Likewise.
15202         * lib/unictype/pr_non_break.h: Likewise.
15203         * lib/unictype/pr_not_a_character.h: Likewise.
15204         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15205         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15206         * lib/unictype/pr_other_id_continue.h: Likewise.
15207         * lib/unictype/pr_other_id_start.h: Likewise.
15208         * lib/unictype/pr_other_lowercase.h: Likewise.
15209         * lib/unictype/pr_other_math.h: Likewise.
15210         * lib/unictype/pr_other_uppercase.h: Likewise.
15211         * lib/unictype/pr_paired_punctuation.h: Likewise.
15212         * lib/unictype/pr_paragraph_separator.h: Likewise.
15213         * lib/unictype/pr_pattern_syntax.h: Likewise.
15214         * lib/unictype/pr_pattern_white_space.h: Likewise.
15215         * lib/unictype/pr_private_use.h: Likewise.
15216         * lib/unictype/pr_quotation_mark.h: Likewise.
15217         * lib/unictype/pr_radical.h: Likewise.
15218         * lib/unictype/pr_soft_dotted.h: Likewise.
15219         * lib/unictype/pr_space.h: Likewise.
15220         * lib/unictype/pr_titlecase.h: Likewise.
15221         * lib/unictype/pr_variation_selector.h: Likewise.
15222         * lib/unictype/pr_white_space.h: Likewise.
15223         * lib/unictype/sy_c_ident.h: Likewise.
15224         * lib/unictype/sy_c_whitespace.h: Likewise.
15225         * lib/unictype/sy_java_whitespace.h: Likewise.
15226         * modules/uni*/*: Bump version number of expected libunistring version.
15227         Reported by Simon Josefsson.
15228
15229 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15230
15231         useless-if-before-free: fix typo in --help and make the internal,
15232         automatic version date update process work once again.
15233         --help output contained a NUL character instead of the
15234         backslash-zero that was intended.  Also, the "must lie within
15235         the first 8 lines" line is on line 9, and hence not getting
15236         automatically updated.
15237         * build-aux/useless-if-before-free: Fix the former by adding a
15238         backslash, and the latter by condensing the three lines of what-it-does
15239         to a single line, leaving one line of slack for the future.
15240
15241 2011-01-09  Bruno Haible  <bruno@clisp.org>
15242
15243         uniwidth/width: Fix width of U+1D173..U+1D17A.
15244         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15245         symbolic_width, output_width_property_test): New functions.
15246         (main): Invoke output_nonspacing_property, output_width_property_test.
15247         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15248         U+1D173..U+1D17A.
15249         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15250         1.
15251         * modules/uniwidth/*: Bump version number of expected libunistring
15252         version.
15253         * modules/unilbrk/*: Likewise.
15254
15255 2011-01-08  Bruno Haible  <bruno@clisp.org>
15256
15257         uninorm tests: Preserve copyright of Unicode data file.
15258         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15259         Mention modifications.
15260
15261 2011-01-08  Bruno Haible  <bruno@clisp.org>
15262
15263         gen-uni-tables: Prepare for Unicode 5.2.0.
15264         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15265         (debug_output_lbp, output_lbp): Update.
15266
15267 2011-01-08  Bruno Haible  <bruno@clisp.org>
15268
15269         unilbrk: Clarify gen-uni-tables.c code.
15270         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15271         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15272         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15273
15274 2011-01-07  Bruno Haible  <bruno@clisp.org>
15275
15276         strtod: Restore errno when successfully parsing Infinity or NaN.
15277         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15278         restore the original errno.
15279
15280 2011-01-07  Bruno Haible  <bruno@clisp.org>
15281
15282         remove test: Avoid failure on HP-UX 11.
15283         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15284
15285 2011-01-07  Bruno Haible  <bruno@clisp.org>
15286
15287         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15288         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15289         error code.
15290
15291 2011-01-07  Pádraig Brady <P@draigBrady.com>
15292
15293         ignore-value: fixup comments, and add Eric Blake
15294         as an author since he rewrote the macros.
15295         * lib/ignore-value.h (ignore_value):  State that
15296         we now support aggregates.  Also specify exactly
15297         when the GCC warn_unused_result feature was added.
15298
15299 2011-01-06  Eric Blake  <eblake@redhat.com>
15300
15301         ignore-value: support aggregate types
15302         * lib/ignore-value.h (ignore_value): Provide separate gcc
15303         definition.
15304         * modules/ignore-value-tests: New test module.
15305         * tests/test-ignore-value.c: New test.
15306
15307         maint.mk: improve sc_prohibit_strcmp regex
15308         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15309         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15310         definition of STRNEQ.
15311
15312         signal: work around Haiku issue with SIGBUS
15313         * lib/siglist.h: Add comment.
15314         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15315         strsignal's favoring of SIGSEGV.
15316         * tests/test-signal.c (main): Avoid test failure.
15317         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15318         Reported by Scott McCreary.
15319
15320         maint.mk: add pre-release check to ensure submodule commits are public
15321         * top/maint.mk (public-submodule-commit): New rule.
15322         (submodule-checks): New variable.
15323         (alpha beta stable): Depend on the variable.
15324
15325 2011-01-05  Pádraig Brady <P@draigBrady.com>
15326         and Jim Meyering  <meyering@redhat.com>
15327
15328         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15329         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15330         (ATTRIBUTE_DEPRECATED): Define.
15331         (_ignore_case): New function.
15332         (ignore_value): New macro, to replace the old function.
15333         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15334         * modules/ignore-value (Depends-on): Add stdint.
15335
15336 2011-01-04  Eric Blake  <eblake@redhat.com>
15337
15338         doc: regenerate INSTALL
15339         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15340         @firstparagraphindent support, now that autoconf dropped it.
15341         (INSTALL_PRELUDE): Reinstate old macro.
15342         * doc/install.texi: Resync from autoconf.
15343         * doc/INSTALL: Reflect recent autoconf update.
15344         * doc/INSTALL.ISO: Likewise.
15345         * doc/INSTALL.UTF-8: Likewise.
15346         Reported by Karl Berry.
15347
15348 2011-01-04  Bruce Korb  <address@hidden>
15349
15350         git-version-gen: avoid a sub-shell
15351         * build-aux/git-version-gen: Redirect stderr in `...` via
15352         "exec 2>...", rather than via an added sub-shell.
15353
15354 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15355
15356         git-version-gen: use (...) rather than sh -c '...'
15357         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15358         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15359
15360 2011-01-03  Jim Meyering  <meyering@redhat.com>
15361
15362         git-version-gen: convert leading TABs to spaces
15363         * build-aux/git-version-gen: Expand leading TABs.
15364
15365         git-version-gen: handle failed "git rev-list"
15366         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15367         from git and proceeding as if it had succeeded but printed no SHA1
15368         checksums, suppress the diagnostic and handle the failure.
15369         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15370
15371         git-version-gen: include command name in one more diagnostic
15372         * build-aux/git-version-gen: When the required .tarball-version file
15373         was missing or unreadable, you might see the diagnostic from "cat",
15374         but no trace of the name of the invoking script.  Now, you still see
15375         the diagnostic from cat, but also get one from "git-version-gen: ".
15376         Inspired by a patch from Bruce Korb.
15377
15378         update-copyright: adjust test to match changed code
15379         * tests/test-update-copyright.sh: Change test's expected output
15380         to match new actual output.
15381
15382 2011-01-02  Bruno Haible  <bruno@clisp.org>
15383
15384         getlogin_r: Avoid test failure on HP-UX 11.
15385         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15386         ERANGE when the second argument is zero.
15387         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15388         portability problem.
15389
15390 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15391
15392         * build-aux/update-copyright: doc Simon's changes
15393
15394 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15395
15396         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15397         environment variable.
15398
15399 2011-01-02  Bruno Haible  <bruno@clisp.org>
15400
15401         unigbrk: Avoid gcc warnings.
15402         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15403         unused variable.
15404         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15405         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15406         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15407         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15408         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15409         Change type of first argument to 'const char *'.
15410         (main): Remove unused variable.
15411         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15412         type of first argument to 'const char *'.
15413         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15414         Likewise.
15415         (main): Change type of variable 's'.
15416         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15417         to 'int'.
15418
15419 2011-01-02  Bruno Haible  <bruno@clisp.org>
15420
15421         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15422         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15423         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15424         bug.
15425         * lib/pwrite.c: Undo 2010-12-31 patch.
15426         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15427
15428 2011-01-02  Bruno Haible  <bruno@clisp.org>
15429
15430         pread: Fix test whether it works.
15431         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15432
15433 2011-01-02  Bruno Haible  <bruno@clisp.org>
15434
15435         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15436         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15437         ends in "6". Don't require a specific month name. Try also the locale
15438         names found on HP-UX 11 and Solaris 7.
15439
15440 2011-01-02  Bruno Haible  <bruno@clisp.org>
15441
15442         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15443         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15444         C linkage.
15445         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15446
15447 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15448
15449         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15450         for consistency, since the "cluster" term is not used elsewhere.
15451         * lib/unigbrk.in.h: Update name.
15452         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15453         * lib/unigbrk/u16-grapheme-next.c: Update name.
15454         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15455         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15456         * lib/unigbrk/u32-grapheme-next.c: Update name.
15457         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15458         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15459         * lib/unigbrk/u8-grapheme-next.c: Update name.
15460         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15461         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15462         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15463         Suggested by Bruno Haible.
15464
15465 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15466
15467         Remove module 'u8-grapheme-len' as too redundant with
15468         'u8-grapheme-next'.
15469         * modules/unigbrk/u8-grapheme-len: Delete file.
15470         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15471         * lib/unigbrk.in.h: Remove prototype for deleted function.
15472         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15473         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15474
15475         Remove module 'u16-grapheme-len' as too redundant with
15476         'u16-grapheme-next'.
15477         * modules/unigbrk/u16-grapheme-len: Delete file.
15478         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15479         * lib/unigbrk.in.h: Remove prototype for deleted function.
15480         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15481         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15482
15483         Remove module 'u32-grapheme-len' as too redundant with
15484         'u32-grapheme-next'.
15485         * modules/unigbrk/u32-grapheme-len: Delete file.
15486         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15487         * lib/unigbrk.in.h: Remove prototype for deleted function.
15488         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15489         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15490
15491         Suggested by Bruno Haible.
15492
15493 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15494
15495         * unigbrk.in.h: Fix typo: "ben" => "been".
15496         Reported by Bruno Haible.
15497
15498 2011-01-01  Jim Meyering  <meyering@redhat.com>
15499
15500         maint: update almost all copyright ranges to include 2011
15501         Run the new "make update-copyright" rule.
15502
15503 2011-01-01  Jim Meyering  <meyering@redhat.com>
15504
15505         maint: update-copyright: exempt doc/INSTALL*
15506         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15507         since they are generated.  Suggested by Bruno Haible.
15508
15509 2011-01-01  Jim Meyering  <meyering@redhat.com>
15510
15511         maint: refine the update-copyright rule
15512         * Makefile (update-copyright): Also exclude any file that includes
15513         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15514         code that merely generates the comment.
15515
15516 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15517
15518         New module 'u8-grapheme-len'.
15519         * modules/unigbrk/u8-grapheme-len: New file.
15520         * modules/unigbrk/u8-grapheme-len-tests: New file.
15521         * lib/unigbrk.in.h: Add prototype for new function.
15522         * lib/unigbrk/u8-grapheme-len.c: New file.
15523         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15524
15525         New module 'u16-grapheme-len'.
15526         * modules/unigbrk/u16-grapheme-len: New file.
15527         * modules/unigbrk/u16-grapheme-len-tests: New file.
15528         * lib/unigbrk.in.h: Add prototype for new function.
15529         * lib/unigbrk/u16-grapheme-len.c: New file.
15530         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15531
15532         New module 'u32-grapheme-len'.
15533         * modules/unigbrk/u32-grapheme-len: New file.
15534         * modules/unigbrk/u32-grapheme-len-tests: New file.
15535         * lib/unigbrk.in.h: Add prototype for new function.
15536         * lib/unigbrk/u32-grapheme-len.c: New file.
15537         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15538
15539         New module 'u8-grapheme-next'.
15540         * modules/unigbrk/u8-grapheme-next: New file.
15541         * modules/unigbrk/u8-grapheme-next-tests: New file.
15542         * lib/unigbrk.in.h: Add prototype for new function.
15543         * lib/unigbrk/u8-grapheme-next.c: New file.
15544         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15545
15546         New module 'u16-grapheme-next'.
15547         * modules/unigbrk/u16-grapheme-next: New file.
15548         * modules/unigbrk/u16-grapheme-next-tests: New file.
15549         * lib/unigbrk.in.h: Add prototype for new function.
15550         * lib/unigbrk/u16-grapheme-next.c: New file.
15551         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15552
15553         New module 'u32-grapheme-next'.
15554         * modules/unigbrk/u32-grapheme-next: New file.
15555         * modules/unigbrk/u32-grapheme-next-tests: New file.
15556         * lib/unigbrk.in.h: Add prototype for new function.
15557         * lib/unigbrk/u32-grapheme-next.c: New file.
15558         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15559
15560         New module 'u8-grapheme-prev'.
15561         * modules/unigbrk/u8-grapheme-prev: New file.
15562         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15563         * lib/unigbrk.in.h: Add prototype for new function.
15564         * lib/unigbrk/u8-grapheme-prev.c: New file.
15565         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15566
15567         New module 'u16-grapheme-prev'.
15568         * modules/unigbrk/u16-grapheme-prev: New file.
15569         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15570         * lib/unigbrk.in.h: Add prototype for new function.
15571         * lib/unigbrk/u16-grapheme-prev.c: New file.
15572         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15573
15574         New module 'u32-grapheme-prev'.
15575         * modules/unigbrk/u32-grapheme-prev: New file.
15576         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15577         * lib/unigbrk.in.h: Add prototype for new function.
15578         * lib/unigbrk/u32-grapheme-prev.c: New file.
15579         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15580
15581         New module 'u8-grapheme-breaks'.
15582         * modules/unigbrk/u8-grapheme-breaks: New file.
15583         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15584         * lib/unigbrk.in.h: Add prototype for new function.
15585         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15586         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15587
15588         New module 'u16-grapheme-breaks'.
15589         * modules/unigbrk/u16-grapheme-breaks: New file.
15590         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15591         * lib/unigbrk.in.h: Add prototype for new function.
15592         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15593         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15594
15595         New module 'u32-grapheme-breaks'.
15596         * modules/unigbrk/u32-grapheme-breaks: New file.
15597         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15598         * lib/unigbrk.in.h: Add prototype for new function.
15599         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15600         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15601
15602         New module 'ulc-grapheme-breaks'.
15603         * modules/unigbrk/ulc-grapheme-breaks: New file.
15604         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15605         * m4/locale-ar.m4: New file.
15606         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15607         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15608         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15609
15610 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15611
15612         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15613         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15614         modified how this file was generated before I initially submitted
15615         the module, but failed to regenerate it.  This meant that several
15616         of the level2 entries were wrong.
15617         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15618         Remove the division-by-2 that is folded into the table now that
15619         gbrkprop.h has been regenerated properly.  Now -1 entries are
15620         handled correctly.
15621
15622         New module 'unigbrk/uc-gbrk-prop-tests'.
15623         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15624         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15625         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15626         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15627
15628 2011-01-01  Bruno Haible  <bruno@clisp.org>
15629
15630         Avoid use of hexadecimal escapes.
15631         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15632         instead of hexadecimal escapes.
15633
15634 2011-01-01  Jim Meyering  <meyering@redhat.com>
15635
15636         maint: new rule to update copyright year ranges
15637         * Makefile (update-copyright): New rule.
15638
15639         maint: indent with TABs in Makefile
15640         * Makefile: Expand leading sequences of spaces to TABs
15641
15642         version-etc: update the copyright year it reports
15643         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15644
15645 2010-12-31  Bruno Haible  <bruno@clisp.org>
15646
15647         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15648         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15649         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15650         zero.
15651
15652 2010-12-31  Bruno Haible  <bruno@clisp.org>
15653
15654         pwrite: Work around HP-UX 11.11 bug.
15655         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15656         works and set REPLACE_PWRITE if not.
15657         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15658         function.
15659         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15660
15661 2010-12-31  Bruno Haible  <bruno@clisp.org>
15662
15663         pread: Work around HP-UX 11 bugs.
15664         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15665         and set REPLACE_PREAD if not.
15666         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15667
15668 2010-12-31  Eric Blake  <eblake@redhat.com>
15669
15670         nl_langinfo: fix YESEXPR on Irix 6.5
15671         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15672         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15673         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15674         it.
15675
15676 2010-12-31  Bruno Haible  <bruno@clisp.org>
15677
15678         iconv: Document HP-UX 11 bug.
15679         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15680
15681 2010-12-31  Bruno Haible  <bruno@clisp.org>
15682
15683         ldexpl: Fix link error on HP-UX 11.
15684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15685         LDEXPL_LIBM, using $ISNANL_LIBM.
15686
15687 2010-12-31  Eric Blake  <eblake@redhat.com>
15688
15689         ftello: avoid compilation failure with SunStudio c89
15690         * lib/ftello.c (ftello): Use lseek, not llseek.
15691
15692         tests: avoid failing coreutils tests on cygwin
15693         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15694         (create_exe_shims_): Return 0 when skipping.
15695
15696 2010-12-31  Bruno Haible  <bruno@clisp.org>
15697
15698         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15699         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15700
15701 2010-12-31  Bruno Haible  <bruno@clisp.org>
15702
15703         waitpid: Fix link error in C++ mode.
15704         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15705
15706 2010-12-31  Bruno Haible  <bruno@clisp.org>
15707
15708         isnan: Use GCC built-ins when possible.
15709         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15710         __builtin_isnan.
15711         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15712         (isnan): Define using GCC built-ins for GCC >= 4.0.
15713
15714 2010-12-31  Bruno Haible  <bruno@clisp.org>
15715
15716         isnand: Fix mistake.
15717         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15718         __builtin_isnand.
15719
15720 2010-12-31  Bruno Haible  <bruno@clisp.org>
15721
15722         open: Avoid C++ error on HP-UX 11.
15723         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15724
15725 2010-12-31  Bruno Haible  <bruno@clisp.org>
15726
15727         time_r: Add missing declarations on HP-UX 11.
15728         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15729         instead of HAVE_LOCALTIME_R.
15730         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15731         HAVE_LOCALTIME_R always.
15732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15733         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15734         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15735         HAVE_LOCALTIME_R.
15736         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15737         * doc/posix-functions/localtime_r.texi: Likewise.
15738
15739 2010-12-29  Eric Blake  <eblake@redhat.com>
15740
15741         mountlist: tweak previous commit
15742         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15743         Reported by Paul Eggert.
15744
15745         mountlist: fix local drive detection on cygwin
15746         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15747         that works for cygwin.
15748
15749 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15750
15751         ftoastr, snprintf: ftoastr + snprintf module
15752         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15753         since the snprintf module now should be good enough here.
15754         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15755         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15756         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15757         GNULIB_SNPRINTF only for the test directory, and the latter
15758         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15759         seems to suffice by itself.
15760
15761 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         alloca: one step towards thread-safety
15764         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15765         need for a static variable.  All callers changed.  This does not
15766         make the alloca replacement thread-safe, but it's one step.
15767
15768         tests: minor indenting change
15769         * tests/init.sh: Sync from coreutils housekeeping patch
15770         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15771         to keep lines within 80 columns.
15772
15773 2010-12-28  Jim Meyering  <meyering@redhat.com>
15774
15775         regex: don't infloop on persistent failing calloc
15776         * lib/regexec.c (build_trtable): Return failure indication upon
15777         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15778         In glibc, this was fixed for version 2.13:
15779         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15780
15781 2010-12-28  Bruno Haible  <bruno@clisp.org>
15782             Paul Eggert <eggert@cs.ucla.edu>
15783
15784         linkat: Make implementation robust against system behaviour variations.
15785         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15786         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15787         way, and to -2 if it needs a generic runtime test.
15788         * lib/linkat.c (solaris_optimized_link_immediate,
15789         solaris_optimized_link_follow): New functions.
15790         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15791         (check_same_link): Use it.
15792
15793 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15794
15795         New module 'unigbrk/base'.
15796         * modules/unigbrk/base: New file.
15797         * lib/unigbrk.in.h: New file.
15798
15799         New module 'unigbrk/uc-gbrk-prop'.
15800         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15801         * modules/unigbrk/uc-gbrk-prop: New file.
15802         * lib/unigbrk/gbrkprop.h: New file.
15803         * lib/unigbrk/uc-gbrk-prop.c: New file.
15804
15805         New module 'unigbrk/uc-is-grapheme-break'.
15806         * modules/unigbrk/uc-is-grapheme-break: New file.
15807         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15808         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15809         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15810         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15811         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15812
15813         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15814
15815 2010-12-27  Bruno Haible  <bruno@clisp.org>
15816
15817         linkat test: Avoid failure on Solaris 11 2010-11.
15818         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15819
15820 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15821
15822         utimens: work around glibc rounding bug on more platforms
15823         * lib/utimens.c (fdutimens): Work around rounding bug even if
15824         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15826
15827 2010-12-27  Bruno Haible  <bruno@clisp.org>
15828
15829         select tests: Improve comments.
15830         * tests/test-select.c (do_select): Add comments.
15831
15832 2010-12-27  Bruno Haible  <bruno@clisp.org>
15833
15834         select tests: Safer way of handling timeout.
15835         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15836         at every invocation.
15837
15838 2010-12-27  Bruno Haible  <bruno@clisp.org>
15839
15840         select tests: Use 'bool' where appropriate.
15841         * tests/test-select.c (connect_to_socket): Change argument type to
15842         'bool'.
15843
15844 2010-12-27  Bruno Haible  <bruno@clisp.org>
15845
15846         select tests: Use existing modules.
15847         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15848         (configure.ac): Don't test for unistd.h.
15849         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15850         declared in <unistd.h>.
15851
15852 2010-12-27  Bruno Haible  <bruno@clisp.org>
15853
15854         mbrtowc: Work around a Solaris 7 bug.
15855         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15856         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15857         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15858         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15859         MBRTOWC_NULL_ARG1_BUG.
15860         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15861         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15862         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15863         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15864
15865 2010-12-27  Jim Meyering  <meyering@redhat.com>
15866
15867         read-file.c: tweak syntax
15868         * lib/read-file.c (fread_file): Remove space after "*" in function
15869         definitions.
15870
15871 2010-12-27  Bruno Haible  <bruno@clisp.org>
15872
15873         times test: Avoid gcc warnings on OSF/1.
15874         * tests/test-times.c (main): Cast printf arguments from clock_t to
15875         'long int'.
15876
15877 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15878
15879         utimens: work around glibc rounding bug on older Linux kernels
15880         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15881         on Linux with a glibc whose utimes might not work, then work
15882         around a longstanding glibc bug involving rounding rather than
15883         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15884         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15885
15886 2010-12-26  Bruno Haible  <bruno@clisp.org>
15887
15888         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15889         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15890         _GL_CXXALIAS_SYS.
15891         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15892
15893 2010-12-26  Bruno Haible  <bruno@clisp.org>
15894
15895         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15896         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15897         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15898         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15899         looking for the declaration.
15900         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15901         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15902         problem.
15903         * doc/posix-functions/inet_pton.texi: Likewise.
15904
15905 2010-12-26  Bruno Haible  <bruno@clisp.org>
15906
15907         arpa_inet: Use the common idioms with C++ support.
15908         * lib/arpa_inet.in.h: Include c++defs.h.
15909         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15910         support.
15911         * modules/arpa_inet (Depends-on): Add c++defs.
15912         (Makefile.am): Substitute the contents of c++defs.h.
15913         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15914         * modules/arpa_inet-c++-tests: New file.
15915         * tests/test-arpa_inet-c++.cc: New file.
15916
15917 2010-12-25  Bruno Haible  <bruno@clisp.org>
15918
15919         Fix more C++ link errors on Solaris 8.
15920         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15921         $(LIB_EACCESS).
15922         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15923         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15924         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15925         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15926         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15927
15928 2010-12-25  Bruno Haible  <bruno@clisp.org>
15929
15930         printf-posix: Fix link error when a non-GCC compiler is used.
15931         * lib/stdio.in.h (printf): When not using GCC, override printf
15932         correctly.
15933         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15934
15935 2010-12-25  Bruno Haible  <bruno@clisp.org>
15936
15937         strerror_r-posix: Update doc.
15938         * doc/posix-functions/strerror_r.texi: Update doc about the return
15939         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15940
15941 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15942
15943         utimens: simplify the logic of the previous change
15944         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15945         This should not affect whether the test succeeds or fails.
15946
15947         utimens: configure better on hosts with NFS clock skew
15948         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15949         uses the clock of the local host.  It might use the clock of the
15950         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15952
15953 2010-12-25  Bruno Haible  <bruno@clisp.org>
15954
15955         ptsname test: Avoid failure on Solaris.
15956         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15957         open a pseudo-terminal; don't use BSD-style ptys.
15958         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15959
15960 2010-12-25  Bruno Haible  <bruno@clisp.org>
15961
15962         ptsname: Avoid ERANGE failure on some systems.
15963         * lib/ptsname.c (buffer): Increase size.
15964
15965 2010-12-25  Bruno Haible  <bruno@clisp.org>
15966
15967         rename, renameat: Avoid test failures at NFS mounted locations.
15968         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15969         so that subsequent mkdir calls succeed.
15970
15971 2010-12-25  Bruno Haible  <bruno@clisp.org>
15972
15973         iswblank: Fix C++ link error on Solaris 8.
15974         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15975         _GL_FUNCDECL_SYS.
15976
15977 2010-12-25  Bruno Haible  <bruno@clisp.org>
15978
15979         unistd: Fix C++ link error on Solaris 8.
15980         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15981
15982 2010-12-25  Bruno Haible  <bruno@clisp.org>
15983
15984         readlink doc: Mention an old glibc bug.
15985         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15986
15987 2010-12-25  Bruno Haible  <bruno@clisp.org>
15988
15989         fcntl-h: Fix for use of C++ on glibc systems.
15990         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15991         also on glibc systems in C++ mode.
15992         Reported by Gary V. Vaughan <gary@gnu.org>.
15993
15994 2010-12-25  Bruno Haible  <bruno@clisp.org>
15995
15996         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15997         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15998
15999 2010-12-25  Bruno Haible  <bruno@clisp.org>
16000
16001         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16002         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16003         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16004         test whether truncl works according to ISO C 99 with IEC 60559.
16005         * m4/truncl-ieee.m4: New file.
16006         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16007         m4/signbit.m4.
16008         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16009
16010 2010-12-25  Bruno Haible  <bruno@clisp.org>
16011
16012         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16013         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16014         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16015         test whether ceill works according to ISO C 99 with IEC 60559.
16016         * m4/ceill-ieee.m4: New file.
16017         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16018         m4/signbit.m4.
16019         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16020
16021 2010-12-25  Bruno Haible  <bruno@clisp.org>
16022
16023         Ensure all prerequisites of <wchar.h> are included.
16024         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16025         before <wchar.h>.
16026         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16027         gl_MBRLEN_NUL_RETVAL): Likewise.
16028         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16029         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16030         AC_FUNC_MBRTOWC): Likewise.
16031         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16032         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16034         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16035         Likewise.
16036         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16037         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16038         (gl_WCHAR_H): Improve comments.
16039         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16040
16041 2010-12-25  Bruno Haible  <bruno@clisp.org>
16042
16043         strtok_r: Fix C syntax error in autoconf macro.
16044         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16045         characters in test program.
16046
16047 2010-12-24  Bruno Haible  <bruno@clisp.org>
16048
16049         ceil, trunc, round: Fix gcc warnings.
16050         * lib/ceil.c (MIN): Undefine before redefining.
16051         * lib/trunc.c (MIN): Likewise.
16052         * lib/round.c (MIN): Likewise.
16053         Include <math.h> first.
16054
16055 2010-12-24  Bruno Haible  <bruno@clisp.org>
16056
16057         select tests: Avoid failures on OSF/1 5.1.
16058         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16059         failure of closing the last socket; it may fail with ECONNRESET.
16060
16061 2010-12-24  Eric Blake  <eblake@redhat.com>
16062
16063         stdint: avoid HP-UX 10.20 preprocessor bug
16064         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16065         than #if.
16066         * tests/test-floor2.c (main): Likewise.
16067         Reported by Peter O'Gorman.
16068
16069         pipe: make obsoletion transition easier
16070         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16071         * modules/pipe (Files): Include revived file.
16072         (Include): Drop reference, to mirror getdate's behavior.
16073
16074 2010-12-24  Bruno Haible  <bruno@clisp.org>
16075
16076         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16077         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16078         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16079         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16080
16081 2010-12-24  Bruno Haible  <bruno@clisp.org>
16082
16083         gethostname: Ensure declaration on NonStop Kernel.
16084         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16085         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16086
16087 2010-12-24  Bruno Haible  <bruno@clisp.org>
16088
16089         sys_select: Ensure all necessary types on NonStop Kernel.
16090         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16091         include <sys/time.h>.
16092         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16093         NonStop Kernel.
16094         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16095
16096 2010-12-24  Bruno Haible  <bruno@clisp.org>
16097
16098         sys_select: Remove unneeded include.
16099         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16100         have <sys/select.h>.
16101
16102 2010-12-24  Bruno Haible  <bruno@clisp.org>
16103
16104         gethostname: Provide a fallback for HOST_NAME_MAX.
16105         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16106         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16107         instead.
16108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16109
16110 2010-12-24  Bruno Haible  <bruno@clisp.org>
16111
16112         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16113         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16114         (SA_RESTART): Likewise.
16115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16116
16117 2010-12-24  Bruno Haible  <bruno@clisp.org>
16118
16119         signal: Define NSIG.
16120         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16121         * tests/test-signal.c (nsig): New variable.
16122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16123
16124 2010-12-24  Bruno Haible  <bruno@clisp.org>
16125
16126         rename, renameat: Avoid test failures on OSF/1 5.1.
16127         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16128         alternative error codes.
16129         * tests/test-renameat.c (main): Likewise.
16130
16131 2010-12-24  Bruno Haible  <bruno@clisp.org>
16132
16133         *printf: Detect large precisions bug on Solaris 10/SPARC.
16134         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16135         by Paul Eggert.
16136         * tests/test-snprintf-posix.h (test_function): Add this test code here
16137         too.
16138         * tests/test-sprintf-posix.h (test_function): Likewise.
16139         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16140         * tests/test-vasprintf-posix.c (test_function): Likewise.
16141         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16142         around by gnulib.
16143         * doc/posix-functions/printf.texi: Likewise.
16144         * doc/posix-functions/snprintf.texi: Likewise.
16145         * doc/posix-functions/sprintf.texi: Likewise.
16146         * doc/posix-functions/vfprintf.texi: Likewise.
16147         * doc/posix-functions/vprintf.texi: Likewise.
16148         * doc/posix-functions/vsnprintf.texi: Likewise.
16149         * doc/posix-functions/vsprintf.texi: Likewise.
16150         * doc/posix-functions/dprintf.texi: Undo last commit.
16151         * doc/posix-functions/vdprintf.texi: Likewise.
16152
16153 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16154
16155         tests: port test-fdutimensat.c to Solaris 8
16156         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16157         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16158         On Solaris 8, it fails with errno == ENOSYS, because there is no
16159         futimens (so it can't use the fd), and there is no lutimens (so it
16160         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16161
16162         vsnprintf: make more consistent with snprintf; doc fixes
16163
16164         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16165         the byte count return problem was promoted from the snprintf-posix
16166         to the snprintf module.
16167         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16168         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16169         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16170         * tests/test-snprintf.c (main): Check the byte count returned.
16171         * tests/test-vsnprintf.c (main): Likewise.
16172
16173 2010-12-23  Eric Blake  <eblake@redhat.com>
16174
16175         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16176         * modules/sigpipe (License): Relax license.
16177
16178 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16179
16180         doc: document Solaris printf bug with large float precisions
16181         * doc/posix-functions/dprintf.texi (dprintf):
16182         * doc/posix-functions/fprintf.texi (fprintf):
16183         * doc/posix-functions/printf.texi (printf):
16184         * doc/posix-functions/snprintf.texi (snprintf):
16185         * doc/posix-functions/sprintf.texi (sprintf):
16186         * doc/posix-functions/vdprintf.texi (vdprintf):
16187         * doc/posix-functions/vfprintf.texi (vfprintf):
16188         * doc/posix-functions/vprintf.texi (vprintf):
16189         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16190         * doc/posix-functions/vsprintf.texi (vsprintf):
16191         Mention that these functions mishandle large floating point
16192         precisions on Solaris 10.  The same bug is also present in Solaris
16193         8, and I assume earlier.  This causes "cd gnulib-tests; make
16194         check" to fail on Solaris 8 (and I assume, later) when building
16195         the latest coreutils, in test-vasprintf-posix's call to
16196         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16197         the wide flavors (e.g., wprintf) so this patch just updates the
16198         documentation for the narrow ones.
16199
16200         test-posixtm.c: add two tests
16201         * tests/test-posixtm.c: Add two tests, to highlight the
16202         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16203         around this bug; this is merely to document it.
16204
16205 2010-12-22  Bruno Haible  <bruno@clisp.org>
16206
16207         getlogin_r: Work around portability problem on OSF/1.
16208         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16209         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16210         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16211         test for a truncated result.
16212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16213         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16214         * modules/getlogin_r (Depends-on): Add memchr.
16215         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16216
16217 2010-12-22  Bruno Haible  <bruno@clisp.org>
16218
16219         ptsname: Avoid test failure on OSF/1 5.1.
16220         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16221         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16222         (same_slave): New function.
16223         (main): Use it to compare ptsname's result with the expected file name.
16224
16225 2010-12-22  Bruno Haible  <bruno@clisp.org>
16226
16227         Port extended stdio modules to HP NonStop Kernel.
16228         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16229         macros.
16230         * lib/fbufmode.c: Update comments.
16231         * lib/fflush.c: Likewise.
16232         * lib/fpurge.c: Likewise.
16233         * lib/freadable.c: Likewise.
16234         * lib/freadahead.c: Likewise.
16235         * lib/freading.c: Likewise.
16236         * lib/freadptr.c: Likewise.
16237         * lib/freadseek.c: Likewise.
16238         * lib/fseeko.c: Likewise.
16239         * lib/fseterr.c: Likewise.
16240         * lib/fwritable.c: Likewise.
16241         * lib/fwriting.c: Likewise.
16242         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16243
16244 2010-12-22  Bruno Haible  <bruno@clisp.org>
16245
16246         ttyname_r: Work around bug on OSF/1 5.1.
16247         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16248         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16249         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16250         present.
16251         * lib/ttyname_r.c (ttyname_r): Update comments.
16252
16253 2010-12-22  Bruno Haible  <bruno@clisp.org>
16254
16255         round: Implement result sign according to IEEE 754.
16256         * lib/round.c (MIN, MINUS_ZERO): New macros.
16257         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16258         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16259         * tests/test-round-ieee.c (main): Likewise.
16260         * tests/test-roundl-ieee.c (main): Likewise.
16261
16262         trunc: Implement result sign according to IEEE 754.
16263         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16264         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16265         * tests/test-trunc2.c: Include minus-zero.h.
16266         (MINUS_ZERO): New macro.
16267         (trunc_reference): Keep in sync with lib/trunc.c.
16268         * tests/test-truncf2.c: Include minus-zero.h.
16269         (MINUS_ZERO): New macro.
16270         (truncf_reference): Keep in sync with lib/trunc.c.
16271         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16272         * tests/test-trunc-ieee.c (main): Likewise.
16273         * tests/test-truncl-ieee.c (main): Likewise.
16274
16275         ceil: Implement result sign according to IEEE 754.
16276         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16277         (FUNC): Return -0.0 for -1 < x < 0.
16278         * tests/test-ceil2.c: Include minus-zero.h.
16279         (MINUS_ZERO): New macro.
16280         (ceil_reference): Keep in sync with lib/ceil.c.
16281         * tests/test-ceilf2.c: Include minus-zero.h.
16282         (MINUS_ZERO): New macro.
16283         (ceilf_reference): Keep in sync with lib/ceil.c.
16284         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16285         * tests/test-ceil-ieee.c (main): Likewise.
16286         * tests/test-ceill-ieee.c (main): Likewise.
16287
16288         floor: Implement result sign according to IEEE 754.
16289         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16290         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16291         * tests/test-floorf2.c (floorf_reference): Likewise.
16292         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16293         * tests/test-floor-ieee.c (main): Likewise.
16294         * tests/test-floorl-ieee.c (main): Likewise.
16295
16296 2010-12-22  Bruno Haible  <bruno@clisp.org>
16297
16298         getaddrinfo: Update doc.
16299         * doc/posix-functions/gai_strerror.texi: Return type is also different
16300         on AIX and HP-UX.
16301
16302 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16303
16304         getaddrinfo, inet_ntop: Update doc for Solaris.
16305         * doc/posix-functions/gai_strerror.texi: Return type is also an
16306         issue on Solaris 9 and earlier.
16307         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16308         on Solaris 10 and earlier.
16309
16310 2010-12-21  Bruno Haible  <bruno@clisp.org>
16311
16312         New module 'roundl-ieee'.
16313         * modules/roundl-ieee: New file.
16314         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16315         test whether roundl works according to ISO C 99 with IEC 60559.
16316         * m4/roundl-ieee.m4: New file.
16317         * modules/roundl-ieee-tests: New file.
16318         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16319         * tests/test-roundl.c (main): Remove signbit tests.
16320         * modules/roundl-tests (Depends-on): Remove signbit.
16321         * doc/posix-functions/roundl.texi: Mention the new module.
16322
16323 2010-12-21  Bruno Haible  <bruno@clisp.org>
16324
16325         New module 'truncl-ieee'.
16326         * modules/truncl-ieee: New file.
16327         * modules/truncl-ieee-tests: New file.
16328         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16329         * tests/test-truncl.c (main): Remove signbit tests.
16330         * modules/truncl-tests (Depends-on): Remove signbit.
16331         * doc/posix-functions/truncl.texi: Mention the new module.
16332
16333 2010-12-21  Bruno Haible  <bruno@clisp.org>
16334
16335         New module 'ceill-ieee'.
16336         * modules/ceill-ieee: New file.
16337         * modules/ceill-ieee-tests: New file.
16338         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16339         * tests/test-ceill.c (main): Remove signbit tests.
16340         * modules/ceill-tests (Depends-on): Remove signbit.
16341         * doc/posix-functions/ceill.texi: Mention the new module.
16342
16343 2010-12-21  Bruno Haible  <bruno@clisp.org>
16344
16345         New module 'floorl-ieee'.
16346         * modules/floorl-ieee: New file.
16347         * modules/floorl-ieee-tests: New file.
16348         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16349         * tests/test-floorl.c (main): Remove signbit tests.
16350         * modules/floorl-tests (Depends-on): Remove signbit.
16351         * doc/posix-functions/floorl.texi: Mention the new module.
16352
16353 2010-12-21  Bruno Haible  <bruno@clisp.org>
16354
16355         New module 'round-ieee'.
16356         * modules/round-ieee: New file.
16357         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16358         whether round works according to ISO C 99 with IEC 60559.
16359         * m4/round-ieee.m4: New file.
16360         * modules/round-ieee-tests: New file.
16361         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16362         * tests/test-round1.c (main): Remove signbit tests.
16363         * modules/round-tests (Depends-on): Remove 'signbit'.
16364         * doc/posix-functions/round.texi: Mention the new module.
16365
16366 2010-12-21  Bruno Haible  <bruno@clisp.org>
16367
16368         New module 'trunc-ieee'.
16369         * modules/trunc-ieee: New file.
16370         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16371         whether trunc works according to ISO C 99 with IEC 60559.
16372         * m4/trunc-ieee.m4: New file.
16373         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16375         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16376         * modules/trunc-ieee-tests: New file.
16377         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16378         * tests/test-trunc1.c (main): Remove signbit tests.
16379         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16380         * doc/posix-functions/trunc.texi: Mention the new module.
16381
16382 2010-12-21  Bruno Haible  <bruno@clisp.org>
16383
16384         New module 'ceil-ieee'.
16385         * modules/ceil-ieee: New file.
16386         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16387         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16388         ISO C 99 with IEC 60559.
16389         * m4/ceil-ieee.m4: New file.
16390         * modules/ceil (Files): Add lib/ceil.c.
16391         (Depends-on): Add 'float'.
16392         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16393         * lib/math.in.h (ceil): New declaration.
16394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16395         REPLACE_CEIL.
16396         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16397         * modules/ceil-ieee-tests: New file.
16398         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16399         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16400         * doc/posix-functions/ceil.texi: Mention the new module.
16401
16402 2010-12-21  Bruno Haible  <bruno@clisp.org>
16403
16404         New module 'floor-ieee'.
16405         * modules/floor-ieee: New file.
16406         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16407         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16408         ISO C 99 with IEC 60559.
16409         * m4/floor-ieee.m4: New file.
16410         * modules/floor (Files): Add lib/floor.c.
16411         (Depends-on): Add 'float'.
16412         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16413         * lib/math.in.h (floor): New declaration.
16414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16415         REPLACE_FLOOR.
16416         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16417         * modules/floor-ieee-tests: New file.
16418         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16419         * tests/test-math-c++.cc: Check the signature of 'floor'.
16420         * doc/posix-functions/floor.texi: Mention the new module.
16421
16422 2010-12-21  Bruno Haible  <bruno@clisp.org>
16423
16424         New module 'roundf-ieee'.
16425         * modules/roundf-ieee: New file.
16426         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16427         test whether roundf works according to ISO C 99 with IEC 60559.
16428         * m4/roundf-ieee.m4: New file.
16429         * modules/roundf-ieee-tests: New file.
16430         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16431         * tests/test-roundf1.c (main): Remove signbit tests.
16432         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16433         * doc/posix-functions/roundf.texi: Mention the new module.
16434
16435 2010-12-21  Bruno Haible  <bruno@clisp.org>
16436
16437         New module 'truncf-ieee'.
16438         * modules/truncf-ieee: New file.
16439         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16440         test whether truncf works according to ISO C 99 with IEC 60559.
16441         * m4/truncf-ieee.m4: New file.
16442         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16444         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16445         * modules/truncf-ieee-tests: New file.
16446         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16447         * tests/test-truncf1.c (main): Remove signbit tests.
16448         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16449         * doc/posix-functions/truncf.texi: Mention the new module.
16450
16451 2010-12-21  Bruno Haible  <bruno@clisp.org>
16452
16453         New module 'ceilf-ieee'.
16454         * modules/ceilf-ieee: New file.
16455         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16456         test whether ceilf works according to ISO C 99 with IEC 60559.
16457         * m4/ceilf-ieee.m4: New file.
16458         * modules/ceilf-ieee-tests: New file.
16459         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16460         * tests/test-ceilf1.c (main): Remove signbit tests.
16461         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16462         * doc/posix-functions/ceilf.texi: Mention the new module.
16463
16464 2010-12-21  Bruno Haible  <bruno@clisp.org>
16465
16466         New module 'floorf-ieee'.
16467         * modules/floorf-ieee: New file.
16468         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16469         test whether floorf works according to ISO C 99 with IEC 60559.
16470         * m4/floorf-ieee.m4: New file.
16471         * modules/floorf-ieee-tests: New file.
16472         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16473         * tests/test-floorf1.c (main): Remove signbit tests.
16474         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16475         * doc/posix-functions/floorf.texi: Mention the new module.
16476
16477 2010-12-21  Bruno Haible  <bruno@clisp.org>
16478
16479         Support for minus zero in autoconf macros.
16480         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16481         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16482         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16483         * tests/minus-zero.h: Update comments.
16484
16485 2010-12-21  Bruno Haible  <bruno@clisp.org>
16486
16487         Tests for module 'ceil'.
16488         * modules/ceil-tests: New file.
16489         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16490         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16491
16492 2010-12-21  Bruno Haible  <bruno@clisp.org>
16493
16494         Tests for module 'floor'.
16495         * modules/floor-tests: New file.
16496         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16497         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16498
16499 2010-12-21  Bruno Haible  <bruno@clisp.org>
16500
16501         math: Fix indentation.
16502         * lib/math.in.h (floorf): Fix indentation.
16503
16504 2010-12-21  Bruno Haible  <bruno@clisp.org>
16505
16506         Fix cross-compilation guesses on Solaris.
16507         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16508         not match "solaris2.10".
16509         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16510         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16511         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16512
16513 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16514
16515         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16516         This fixes a problem observed with the latest coreutils snapshot
16517         that caused a test to fail on Solaris 8.  src/csplit.c's call
16518         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16519         earlier, instead of returning the number of bytes that would have
16520         been generated; this causes csplit to incorrectly report memory
16521         exhaustion.
16522         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16523         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16524         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16525         comments to match.
16526         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16527         Fix typo in matching older versions of Solaris: "solaris2.10"
16528         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16529         only for guessing while cross-compiling.
16530         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16531
16532 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16533
16534         ftoastr: fix comment again
16535         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16537         Also, simplify example a bit by using flags = 0.
16538
16539 2010-12-20  Bruno Haible  <bruno@clisp.org>
16540
16541         round*, trunc*: Update documentation regarding glibc.
16542         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16543         * doc/posix-functions/round.texi: Likewise.
16544         * doc/posix-functions/roundl.texi: Likewise.
16545         * doc/posix-functions/truncf.texi: Likewise.
16546         * doc/posix-functions/trunc.texi: Likewise.
16547         * doc/posix-functions/truncl.texi: Likewise.
16548
16549 2010-12-20  Bruno Haible  <bruno@clisp.org>
16550
16551         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16552         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16553         * doc/posix-functions/round.texi: Likewise.
16554         * doc/posix-functions/roundl.texi: Likewise.
16555
16556 2010-12-20  Bruno Haible  <bruno@clisp.org>
16557
16558         ttyname_r: Add missing declaration on HP-UX 11.
16559         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16560         HAVE_TTYNAME_R.
16561         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16562         declared. Set HAVE_TTYNAME_R always.
16563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16564         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16565         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16566         HAVE_TTYNAME_R.
16567         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16568
16569 2010-12-20  Bruno Haible  <bruno@clisp.org>
16570
16571         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16572         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16573         * doc/posix-functions/getlogin_r.texi: Likewise.
16574         * tests/test-getlogin.c: Include <errno.h>.
16575         (main): Avoid test failure on HP-UX 11.11.
16576         * tests/test-getlogin_r.c (main): Likewise.
16577
16578 2010-12-20  Bruno Haible  <bruno@clisp.org>
16579
16580         getlogin_r: Add missing declaration on HP-UX 11.
16581         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16582         declared also when it exists as a function.
16583         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16584
16585 2010-12-20  Bruno Haible  <bruno@clisp.org>
16586
16587         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16588         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16589         through wcrtomb.
16590
16591 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         ftoastr: fix comment
16594         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16595         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16596
16597 2010-12-19  Bruno Haible  <bruno@clisp.org>
16598
16599         isnan: Ensure it is a macro.
16600         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16601         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16602         Solaris.
16603
16604 2010-12-19  Bruno Haible  <bruno@clisp.org>
16605
16606         ldexpl test: Fix link error on OSF/1 5.1.
16607         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16608
16609 2010-12-19  Bruno Haible  <bruno@clisp.org>
16610
16611         wctype: Make it work in C++ mode on OSF/1 5.1.
16612         * lib/wctype.in.h (iswblank): Declare but not define here.
16613         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16614         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16615         * modules/wctype (Files): Add lib/iswblank.c.
16616
16617 2010-12-19  Bruno Haible  <bruno@clisp.org>
16618
16619         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16620         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16621         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16622
16623 2010-12-19  Bruno Haible  <bruno@clisp.org>
16624
16625         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16626         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16627         _POSIX_PII_SOCKET.
16628         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16629         * doc/posix-functions/recvfrom.texi: Likewise.
16630         * doc/posix-functions/send.texi: Likewise.
16631         * doc/posix-functions/sendto.texi: Likewise.
16632
16633 2010-12-19  Bruno Haible  <bruno@clisp.org>
16634
16635         tcgetsid: Add missing declaration on OSF/1 5.1.
16636         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16637         HAVE_TCGETSID.
16638         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16639         Don't set HAVE_TCGETSID.
16640         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16641         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16642         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16643         HAVE_TCGETSID.
16644         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16645
16646 2010-12-19  Bruno Haible  <bruno@clisp.org>
16647
16648         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16649         * lib/stdio.in.h: During the include_next statement, let recursive
16650         includes of this file include only the system header file.
16651
16652 2010-12-19  Bruno Haible  <bruno@clisp.org>
16653
16654         iconv_open: Fix regression from 2010-12-04.
16655         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16656         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16657
16658 2010-12-19  Bruno Haible  <bruno@clisp.org>
16659
16660         stdbool test: Avoid a gcc warning.
16661         * tests/test-stdbool.c (main): Fail if e1 is false.
16662         Reported by Jim Meyering.
16663
16664 2010-12-19  Jim Meyering  <meyering@redhat.com>
16665
16666         setenv: restore to working order
16667         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16668         mistakenly removed.
16669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16670         HAVE_SETENV.
16671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16672         HAVE_SETENV.
16673
16674 2010-12-19  Bruno Haible  <bruno@clisp.org>
16675
16676         Document some different function declarations on OSF/1 5.1.
16677         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16678         * doc/posix-functions/inet_ntop.texi: Likewise.
16679         * doc/posix-functions/gethostname.texi: Likewise.
16680         * lib/unistd.in.h (gethostname): Update comment.
16681
16682 2010-12-19  Bruno Haible  <bruno@clisp.org>
16683
16684         doc: Mention vasprintf-posix module.
16685         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16686         the 'vasprintf-posix' module.
16687         * doc/glibc-functions/vasprintf.texi: Likewise.
16688
16689 2010-12-19  Bruno Haible  <bruno@clisp.org>
16690
16691         unsetenv: Add missing declaration on OSF/1 5.1.
16692         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16693         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16694         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16696         not HAVE_UNSETENV.
16697         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16698         HAVE_UNSETENV.
16699         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16700
16701 2010-12-19  Bruno Haible  <bruno@clisp.org>
16702
16703         setenv: Add missing declaration on OSF/1 5.1.
16704         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16705         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16706         declared. Don't set HAVE_SETENV.
16707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16708         not HAVE_SETENV.
16709         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16710         HAVE_SETENV.
16711         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16712
16713 2010-12-19  Bruno Haible  <bruno@clisp.org>
16714
16715         nl_langinfo tests: Avoid gcc warning.
16716         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16717
16718 2010-12-19  Bruno Haible  <bruno@clisp.org>
16719
16720         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16721         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16722         _GL_CXXALIAS_SYS.
16723
16724 2010-12-19  Bruno Haible  <bruno@clisp.org>
16725
16726         stdbool: Relax test.
16727         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16728         address to 'bool' work in static initializer, for compilers other than
16729         GCC.
16730
16731 2010-12-19  Bruno Haible  <bruno@clisp.org>
16732
16733         ftello: Add missing declaration on OSF/1 5.1.
16734         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16735         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16737         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16738         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16739
16740 2010-12-19  Bruno Haible  <bruno@clisp.org>
16741
16742         fseeko: Add missing declaration on OSF/1 5.1.
16743         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16744         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16746         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16747         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16748
16749 2010-12-19  Bruno Haible  <bruno@clisp.org>
16750
16751         fchdir: Add missing declaration on OSF/1 5.1.
16752         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16755         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16756         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16757
16758 2010-12-19  Bruno Haible  <bruno@clisp.org>
16759
16760         relocatable-prog-wrapper: Separate from relocatable-prog.
16761         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16762         uninstall-relocwrapper rule here.
16763         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16764         Reported by Ian Beckwith <ianb@erislabs.net>.
16765
16766 2010-12-19  Bruno Haible  <bruno@clisp.org>
16767
16768         unistr/u8-mbsnlen: Add missing dependency.
16769         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16770         Reported by Ian Beckwith <ianb@erislabs.net>.
16771
16772 2010-12-19  Bruno Haible  <bruno@clisp.org>
16773
16774         iconv: Make it possible again to use this module without 'iconv-h'.
16775         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16776         if it is not defined.
16777         Reported by Ian Beckwith <ianb@erislabs.net>.
16778
16779 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16780
16781         acl: port to Solaris 8 when copying from tmpfs to ufs
16782         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16783         error number.  Problem observed on Solaris 8 with latest
16784         coreutils, with "mv A B", where A is on a tmpfs file system and B
16785         is on a ufs file system.  This caused coreutils' mv/part-symlink
16786         test to fail.
16787
16788         tests: set fail=0 at start
16789         * tests/init.sh (setup_): Move fail=0 initialization here ...
16790         (mktempd_): ... from here, so that tests can rely on fail being
16791         set to 0 initially.  This fixes a problem in coreutils; see:
16792         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16793
16794 2010-12-18  Bruno Haible  <bruno@clisp.org>
16795
16796         memmem-simple: Stylistic changes.
16797         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16798         Fix preprocessor directive indentation.
16799
16800 2010-12-15  Pádraig Brady <P@draigBrady.com>
16801
16802         memmem, memmem-simple: reorganize and expand empty needle check
16803         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16804         functional checks to memmem-simple so that one has a fully functional
16805         memmem by using just this module.
16806         Restrict the performance only check to the memmem module.
16807         Also expand the empty needle check to ensure the correct
16808         pointer is returned, not just a non NULL pointer.
16809         * doc/glibc-functions/memmem.texi: Rearrange the portability
16810         documentation to correlate with the rearranged checks.
16811         Clarify exactly how the memmem and memmem-simple modules
16812         relate to each other.
16813
16814 2010-12-15  Pádraig Brady <P@draigBrady.com>
16815             Bruno Haible  <bruno@clisp.org>
16816
16817         Improve cross-compilation guesses for uClibc.
16818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16819         that uClibc does not have the glibc bug.
16820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16821         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16822
16823 2010-12-14  Eric Blake  <eblake@redhat.com>
16824
16825         configmake: provide fallbacks for oldest supported autotools
16826         * m4/configmake.m4: New file.
16827         * modules/configmake (Files): Ship it.
16828         (configure.ac): Use it to guarantee fallbacks.
16829
16830 2010-12-13  Pádraig Brady <P@draigBrady.com>
16831
16832         read-file: Improve handling of large files
16833         * lib/read-file.c (fread_file): Minimize realloc()s
16834         for regular files, and better manage sizes around SIZE_MAX.
16835
16836 2010-12-13  Eric Blake  <eblake@redhat.com>
16837
16838         cloexec, fcntl: relax license
16839         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16840         consent from all contributors.
16841         * modules/fcntl (License): Likewise.
16842
16843 2010-12-10  Bruno Haible  <bruno@clisp.org>
16844
16845         Tests for module 'pipe-posix'.
16846         * modules/pipe-posix-tests: New file.
16847         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16848
16849 2010-12-10  Bruno Haible  <bruno@clisp.org>
16850
16851         pipe-posix: Make it work in C++ mode.
16852         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16853         (pipe): Use common idiom, not a macro definition.
16854         * lib/pipe.c: New file.
16855         * m4/pipe.m4: New file.
16856         * modules/pipe-posix (Description): Enhance.
16857         (Files): Add lib/pipe.c, m4/pipe.m4.
16858         (configure.ac): Invoke gl_FUNC_PIPE.
16859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16860         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16861         * tests/test-unistd-c++.cc: Check the signature of pipe.
16862
16863 2010-12-10  Bruno Haible  <bruno@clisp.org>
16864
16865         Rename module 'pipe' to 'spawn-pipe'.
16866         * modules/spawn-pipe: New file, renamed from modules/pipe.
16867         (Files, configure.ac, Makefile.am): Update.
16868         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16869         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16870         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16871         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16872         "spawn-pipe.h" instead of "pipe.h".
16873         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16874         to gl_SPAWN_PIPE.
16875         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16876         (Files, Makefile.am): Update.
16877         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16878         Update.
16879         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16880         Include "spawn-pipe.h" instead of "pipe.h".
16881         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16882         * lib/javacomp.c: Likewise.
16883         * lib/javaversion.c: Likewise.
16884         * lib/pipe-filter-gi.c: Likewise.
16885         * lib/pipe-filter-ii.c: Likewise.
16886         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16887         * modules/javacomp (Depends-on): Likewise.
16888         * modules/javaversion (Depends-on): Likewise.
16889         * modules/pipe-filter-gi (Depends-on): Likewise.
16890         * modules/pipe-filter-ii (Depends-on): Likewise.
16891         * MODULES.html.sh (Executing programs): Update.
16892         * NEWS: Mention the change.
16893
16894 2010-12-10  Eric Blake  <eblake@redhat.com>
16895
16896         pipe-posix: new module
16897         * modules/pipe-posix: New file.
16898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16899         (gl_UNISTD_H): Check for declaration.
16900         * modules/unistd (Makefile.am): Substitute it.
16901         * lib/unistd.in.h (pipe): Provide it for mingw.
16902         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16903         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16904
16905 2010-12-07  Bruno Haible  <bruno@clisp.org>
16906
16907         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16908         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16909         u8_strcmp_gnu.
16910         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16911
16912 2010-12-06  Bruno Haible  <bruno@clisp.org>
16913
16914         Update internal documentation.
16915         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16916
16917 2010-12-04  Bruno Haible  <bruno@clisp.org>
16918
16919         Put more information about failed tests into the test return codes.
16920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16921         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16922         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16924         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16925         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16926         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16927         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16928         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16930         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16931         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16932         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16933         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16934         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16935         returns a bit mask.
16936         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16937         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16938         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16939         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16940         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16941         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16944         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16946         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16947         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16948         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16950         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16951         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16952         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16953         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16954         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16955         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16956         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16957         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16959         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16960         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16961         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16962         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16963         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16964         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16965         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16966         gl_PRINTF_PRECISION): Likewise.
16967         * m4/regex.m4 (gl_REGEX): Likewise.
16968         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16969         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16970         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16971         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16974         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16975         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16976         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16977         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16978         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16979         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16980         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16981         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16982         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16983         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16984         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16985         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16987         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16988         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16989         enumerated value.
16990         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16991
16992 2010-12-04  Bruno Haible  <bruno@clisp.org>
16993
16994         Update for Solaris 11 2010-11.
16995         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16996         Express, released in November 2010.
16997
16998 2010-12-04  Bruno Haible  <bruno@clisp.org>
16999
17000         nproc: Relax license.
17001         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17002         and Paul Eggert.
17003         Requested by Ludovic Courtès <ludo@gnu.org>.
17004
17005 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17006
17007         utimecmp: fine-grained src to nearby coarse-grained dest
17008
17009         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17010         and the source is on a file system with higher-resolution time
17011         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17012         not work, and the time stamps are close together, the algorithm to
17013         determine the exact resolution from the read-back mtime was buggy:
17014         it had a "!=" where it should have had an "==".  This bug has been
17015         in the code ever since it was introduced to gnulib.
17016         Problem reported by Dan Jacobson in
17017         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17018
17019 2010-11-30  Bruno Haible  <bruno@clisp.org>
17020
17021         strerror_r-posix: Fix autoconf test.
17022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17023
17024 2010-11-28  Bruno Haible  <bruno@clisp.org>
17025             Paul Eggert  <eggert@cs.ucla.edu>
17026
17027         Tests for module 'getdomainname'.
17028         * modules/getdomainname-tests: New file.
17029         * tests/test-getdomainname.c: New file, based on
17030         tests/test-gethostname.c.
17031
17032 2010-11-28  Bruno Haible  <bruno@clisp.org>
17033             Paul Eggert  <eggert@cs.ucla.edu>
17034
17035         getdomainname: Use the system function when possible.
17036         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17037         (getdomainname): Replace if needed. Provide the declaration if it is
17038         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17039         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17040         (getdomainname): When the system has getdomainname, call the system
17041         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17042         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17043         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17044         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17045         the function if its second argument is of type 'int' or if it is found
17046         in libnsl.
17047         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17048         <sys/systeminfo.h> and sysinfo().
17049         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17051         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17052         HAVE_GETDOMAINNAME.
17053         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17054         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17055         * doc/glibc-functions/getdomainname.texi: Document the problems with
17056         the getdomainname declaration.
17057
17058 2010-11-28  Bruno Haible  <bruno@clisp.org>
17059
17060         sys_socket: Ensure ss_family field on AIX.
17061         * lib/sys_socket.in.h (ss_family): New macro definition.
17062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17063         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17064         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17065         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17066         * modules/sys_socket (Makefile.am): Substitute
17067         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17068         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17069
17070 2010-11-27  Bruno Haible  <bruno@clisp.org>
17071
17072         readline: Improve configure output.
17073         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17074         "checking for readline..." result understandable.
17075
17076 2010-11-27  Bruno Haible  <bruno@clisp.org>
17077
17078         *printf-posix: Detect a bug on Solaris 10/x86.
17079         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17080         for floating-point output.
17081         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17082         directive.
17083         * tests/test-snprintf-posix.h (test_function): Likewise.
17084         * tests/test-sprintf-posix.h (test_function): Likewise.
17085         * tests/test-vasprintf-posix.c (test_function): Likewise.
17086         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17087         * doc/posix-functions/printf.texi: Likewise.
17088         * doc/posix-functions/snprintf.texi: Likewise.
17089         * doc/posix-functions/sprintf.texi: Likewise.
17090         * doc/posix-functions/vfprintf.texi: Likewise.
17091         * doc/posix-functions/vprintf.texi: Likewise.
17092         * doc/posix-functions/vsnprintf.texi: Likewise.
17093         * doc/posix-functions/vsprintf.texi: Likewise.
17094         * doc/glibc-functions/obstack_printf.texi: Likewise.
17095         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17096
17097 2010-11-27  Bruno Haible  <bruno@clisp.org>
17098
17099         Fix link error when module libunistring-optional is in use.
17100         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17101         * modules/striconveha-tests (Makefile.am): Likewise.
17102
17103 2010-11-27  Bruno Haible  <bruno@clisp.org>
17104
17105         regex: Mention link dependencies.
17106         * modules/regex (Link): New section.
17107         * modules/rpmatch (Link): Likewise.
17108         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17109
17110 2010-11-27  Bruno Haible  <bruno@clisp.org>
17111
17112         ftoastr: Fix compilation error on Solaris.
17113         * lib/ftoastr.c: Include <config.h>.
17114
17115 2010-11-27  Bruno Haible  <bruno@clisp.org>
17116
17117         getloadavg: Update documentation.
17118         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17119
17120 2010-11-27  Bruno Haible  <bruno@clisp.org>
17121
17122         sys_socket: Fix test whether the functions are declared.
17123         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17124         not <sys/select.h>.
17125
17126 2010-11-27  Bruno Haible  <bruno@clisp.org>
17127
17128         getpass: Make sure to get system declaration on some platforms.
17129         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17130         gl_USE_SYSTEM_EXTENSIONS.
17131         * modules/getpass (Depends-on): Add extensions.
17132
17133 2010-11-26  Bruno Haible  <bruno@clisp.org>
17134
17135         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17136         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17137         'iconv' module is present.
17138         (ICONV_CONST): New macro.
17139         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17140         ICONV_CONST.
17141         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17142         set ICONV_CONST.
17143         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17144         here.
17145         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17146         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17147         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17148         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17149         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17150         present.
17151
17152 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17153
17154         ftoastr: comment fix
17155         * lib/ftoastr.c: "little" -> "little or no" in comment
17156
17157 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17158
17159         stdint: port to GCC 4.3 + OSX + Octave
17160         On this platform, stdint.h is buggy and defines int64_t to long
17161         long int.  The replacement defined it to long int, causing
17162         problems with C++ style name mangling.  Instead, trust the system
17163         definition if INT64_MAX is defined, and likewise for the unsigned
17164         variant.   Problem reported by Jarno Rajahalme in
17165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17166         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17167         and don't mess with int64_t and INT64_MAX in this case.
17168         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17169
17170 2010-11-24  Bruno Haible  <bruno@clisp.org>
17171
17172         doc: Corrections regarding MacOS X 10.4 and 10.5.
17173         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17174         MacOS X.
17175         Reported by Simon Josefsson.
17176
17177 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17178
17179         Uninstall ".bin" files installed by relocwrapper.
17180         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17181         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17182         unless it is already there.
17183
17184 2010-11-21  Bruno Haible  <bruno@clisp.org>
17185
17186         Update for NetBSD 5.0.
17187         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17188         NetBSD; the test fails on NetBSD 5.0.
17189         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17190         about NetBSD.
17191
17192 2010-11-21  Bruno Haible  <bruno@clisp.org>
17193
17194         Update for HP-UX 11.23 and HP-UX 11.31.
17195         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17196         HP-UX.
17197
17198 2010-11-21  Bruno Haible  <bruno@clisp.org>
17199
17200         Update for MacOS X 10.5.
17201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17202         MacOS X; the test fails on MacOS X 10.5.8.
17203         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17204         about MacOS X.
17205
17206 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17207
17208         bootstrap: add bootstrap_sync option.
17209         See discussion at
17210         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17211         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17212         * build-aux/bootstrap: Accept --bootstrap-sync to update
17213         bootstrap if it is not identical to the local gnulib's
17214         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17215         enable this by default.  Accept --no-bootstrap-sync to disable
17216         it.
17217
17218 2010-11-20  Bruno Haible  <bruno@clisp.org>
17219
17220         Ensure that <features.h> is included before __GLIBC__ is tested.
17221         * lib/printf-parse.h: Include <features.h>.
17222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17223         Reported by Mike Frysinger <vapier@gentoo.org>.
17224
17225         Ensure that <features.h> is included before __GLIBC__ is tested.
17226         * lib/wchar.in.h: Include <features.h>.
17227         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17228         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17229         Reported by Mike Frysinger <vapier@gentoo.org>.
17230
17231         Ensure that <features.h> is included before __GLIBC__ is tested.
17232         * lib/arpa_inet.in.h: Include <features.h>.
17233         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17234         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17235         Reported by Mike Frysinger <vapier@gentoo.org>.
17236
17237         Ensure that <features.h> is included before __GLIBC__ is tested.
17238         * build-aux/link-warning.h: Include <features.h>.
17239         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17240         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17241         Reported by Mike Frysinger <vapier@gentoo.org>.
17242
17243         Ensure that <features.h> is included before __GLIBC__ is tested.
17244         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17245         Reported by Mike Frysinger <vapier@gentoo.org>.
17246
17247 2010-11-20  Bruno Haible  <bruno@clisp.org>
17248
17249         memmem: Fix autoconf test.
17250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17251
17252 2010-11-20  Bruno Haible  <bruno@clisp.org>
17253
17254         Port to uClibc.
17255         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17256         * lib/fcntl.in.h: Likewise.
17257         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17258         * lib/mbrtowc.c (mbrtowc): Likewise.
17259         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17260         * lib/strerror_r.c: Likewise.
17261         * lib/unistr/u8-strnlen.c: Likewise.
17262         * lib/vasnprintf.c (decimal_point_char): Likewise.
17263         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17264         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17266         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17267         * tests/test-sigaction.c (handler, main): Likewise.
17268         * lib/freading.h: Treat uClibc like a non-glibc platform.
17269         * lib/freading.c: Likewise.
17270         * lib/gettext.h: Likewise.
17271         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17272         Likewise.
17273         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17274         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17275         * lib/propername.c (proper_name_utf8): Likewise.
17276         * lib/spawn.in.h: Likewise.
17277         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17278         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17279         mem_cd_iconveh_internal): Likewise.
17280         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17281         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17282         strstr, strcasestr): Likewise.
17283         * lib/unicodeio.c (unicode_to_mb): Likewise.
17284         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17285         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17286         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17287         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17288         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17289         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17290         * lib/unistr/u8-stpncpy.c: Likewise.
17291         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17292         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17293         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17294         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17295         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17296         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17297         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17300         Likewise.
17301         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17302         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17303         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17306         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17307         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17308         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17309         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17310         * tests/test-striconveha.c (main): Likewise.
17311         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17312         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17313         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17314         * doc/posix-functions/getline.texi: Likewise.
17315         Reported by Mike Frysinger <vapier@gentoo.org>.
17316
17317 2010-11-20  Bruno Haible  <bruno@clisp.org>
17318
17319         nproc: Fix condition.
17320         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17321         HAVE_PTHREAD_AFFINITY_NP.
17322
17323 2010-11-20  Bruno Haible  <bruno@clisp.org>
17324
17325         Fix a comment.
17326         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17327
17328 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17329
17330         ftoastr: don't assume snprintf
17331         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17332         Implement a subset of snprintf here, by using sprintf safely.
17333         * modules/ftoastr (Depends-on): Remove snprintf.
17334
17335 2010-11-19  Jim Meyering  <meyering@redhat.com>
17336
17337         test-rename.h: fix compilation failure
17338         * tests/test-rename.h (test_rename): Add omitted "}".
17339
17340 2010-11-17  Jim Meyering  <meyering@redhat.com>
17341
17342         maint.mk: add a URL discussing the no-@acronym policy
17343         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17344
17345 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         ftoastr: depend on snprintf, improve comments
17348         * lib/ftoastr.c: Also mention Loitsch's draft.
17349         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17350         needed in the current implementation, but it might simplify
17351         speeding up the code later.
17352         * modules/ftoastr: Depend on snprintf; this improves portability.
17353         Suggested by Bruno Haible in the same email.
17354
17355         ftoastr: port to hosts lacking strtof and strtold
17356         Problem reported by Bruno Haible in
17357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17358         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17359         environment and strtold (and presumably strtof) are not available.
17360         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17361         (configure.ac): Require gl_C99_STRTOLD.
17362
17363 2010-11-18  Bruno Haible  <bruno@clisp.org>
17364
17365         c-strtold: Avoid link error on AIX 7.
17366         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17367         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17368         (gl_C_STRTOLD): Test whether strtold_l exists.
17369         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17370
17371 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17372
17373         intprops: new macro INT_BITS_STRLEN_BOUND
17374         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17375         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17376         not exposed.  Also, it uses a slightly tighter bound than before;
17377         though this makes no practical difference, we might as well be as
17378         tight as we easily can.
17379
17380         ftoastr: new module, for lossless conversion of floats to short strings
17381         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17382         * modules/ftoastr: New files.
17383
17384 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17385
17386         bootstrap: port to Solaris sed
17387         * build-aux/bootstrap (get_version): Port to Solaris sed.
17388         See Ralf Wildenhues's note in
17389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17390
17391 2010-11-14  Jim Meyering  <meyering@redhat.com>
17392
17393         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17394         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17395         and move definition closer to sole use.
17396
17397 2010-11-13  Jim Meyering  <meyering@redhat.com>
17398
17399         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17400         Now we require at least autoconf-2.59, which means the work-around
17401         is no longer needed.
17402         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17404         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17405         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17406         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17407
17408 2010-11-13  Bruno Haible  <bruno@clisp.org>
17409
17410         rename, renameat: Avoid test failures at NFS mounted locations.
17411         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17412         functions.
17413         (test_rename): Use assert_nonexistent.
17414         * tests/test-rename.c: Include <dirent.h>.
17415         * tests/test-renameat.c: Likewise.
17416         Reported by Gary V. Vaughan <gary@gnu.org>.
17417
17418         rename, renameat: Document Linux bug with NFS
17419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17420         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17421         * doc/posix-functions/renameat.texi: Likewise.
17422         Suggested by Eric Blake.
17423
17424 2010-11-13  Bruno Haible  <bruno@clisp.org>
17425
17426         rename test: Add comments.
17427         * tests/test-rename.h (test_rename): Add structure and comments.
17428
17429 2010-11-13  Eric Blake  <eblake@redhat.com>
17430
17431         maintainer-makefile: cover a few more files
17432         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17433         scripts generated within C files, for libvirt.
17434
17435 2010-11-13  Bruno Haible  <bruno@clisp.org>
17436
17437         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17438         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17439         character, return the number of bytes that belong together, not always
17440         1.
17441         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17442         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17443         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17444         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17445         number of bytes of an invalid character.
17446         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17447         (main): Invoke it.
17448         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17449         results.
17450         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17451         malformed byte sequences.
17452         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17453         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17454         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17455         Reported by Ben Pfaff and Paolo Bonzini.
17456
17457 2010-11-13  Bruno Haible  <bruno@clisp.org>
17458
17459         openat: Work around glibc bug with fchownat() and empty file names.
17460         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17461         (gl_FUNC_FCHOWNAT): Invoke it.
17462         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17463         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17464         Reported by Gary V. Vaughan <gary@gnu.org>.
17465
17466 2010-11-13  Bruno Haible  <bruno@clisp.org>
17467
17468         openat: Ensure autoconf macro ordering.
17469         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17470         gl_USE_SYSTEM_EXTENSIONS.
17471         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17472
17473 2010-11-13  Bruno Haible  <bruno@clisp.org>
17474
17475         Update comments.
17476         * lib/unistr/u8-check.c: Update file name in comments.
17477         * lib/unistr/u8-mblen.c: Likewise.
17478         * lib/unistr/u8-prev.c: Likewise.
17479         * lib/unistr/u8-strmblen.c: Likewise.
17480         * lib/unistr/u8-strmbtouc.c: Likewise.
17481
17482 2010-11-13  Jim Meyering  <meyering@redhat.com>
17483
17484         tests: avoid test failure on Solaris 10 due to lack of PATH export
17485         * tests/test-update-copyright.sh: Don't forget to export PATH.
17486
17487         init.sh: ensure that IFS is defined, just in case...
17488         * tests/init.sh (setup_): Ensure that IFS is defined,
17489         so that saving and restoring it works as expected.  This
17490         appears to be useful at least for an old version of dash
17491         from a long time ago (RH 6).  See here for details:
17492         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17493
17494         maint.mk: tighten "test a == b" check
17495         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17496         test to files that contain something like #!/bin/sh.
17497         Without this, coreutils would get two false positives in
17498         the comments of C source files.
17499
17500 2010-11-12  Eric Blake  <eblake@redhat.com>
17501
17502         bootstrap: fix typo in previous attempt
17503         * build-aux/bootstrap (buildreq): Correct the grouping.
17504         Reported by Paul Eggert.
17505
17506         maintainer-makefile: prohibit test x == x
17507         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17508         Based on a report by Matthias Bolte.
17509
17510         bootstrap: allow FreeBSD gzip
17511         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17512         which has no '.' and goes to stderr.
17513         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17514         Reported by Matthias Bolte.
17515
17516         maintainer-makefile: check for i18n setup
17517         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17518         will likely work.
17519
17520 2010-11-12  Bruno Haible  <bruno@clisp.org>
17521
17522         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17523         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17524         * lib/nanosleep.c (nanosleep): Likewise.
17525
17526 2010-11-11  Bruno Haible  <bruno@clisp.org>
17527
17528         fcntl-h: Fix for use of C++ on glibc systems.
17529         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17530         also on glibc systems in C++ mode.
17531         Reported by Gary V. Vaughan <gary@gnu.org>.
17532
17533 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17534
17535         mknod: avoid false failure with dash
17536         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17537
17538 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17539
17540         unlink: Fix "is it should" typo in diagnostic.
17541         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17542         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17543
17544 2010-11-11  Bruno Haible  <bruno@clisp.org>
17545
17546         Tests for module 'strerror_r-posix'.
17547         * modules/strerror_r-posix-tests: New file.
17548         * tests/test-strerror_r.c: New file.
17549         * tests/test-string-c++.cc: Check the signature of strerror_r.
17550
17551         New module 'strerror_r-posix'.
17552         * lib/string.in.h (strerror_r): New declaration.
17553         * lib/strerror_r.c: New file.
17554         * m4/strerror_r.m4: New file.
17555         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17556         of strerror_r.
17557         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17558         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17559         * modules/strerror_r-posix: New file.
17560         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17561         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17562         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17563         portability problems.
17564
17565 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17566
17567         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17568         line is also considered for output. Quoted function name in shell
17569         command, so temporary files for functions like MyClass::operator()
17570         are removed correctly without errors.
17571
17572 2010-11-09  Bruno Haible  <bruno@clisp.org>
17573
17574         * doc/posix-functions/strerror.texi: List more failing platforms.
17575
17576         * doc/posix-functions/strerror.texi: Add a comment.
17577
17578 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17579
17580         fdopendir: fix bug on MacOS X when low on file descriptors
17581
17582         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17583         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17584         All callers changed.
17585         (fdopendir): Invoke save_cwd at the top level, not after using
17586         multiple dup() calls to use up file descriptors.  Then retry
17587         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17588         less than the maximum number of open file descriptors, because
17589         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17590         on Mac OS X 10.6.4 for tar 1.24
17591         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17592         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17593         and for tar 1.25
17594         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17595
17596 2010-11-07  Bruno Haible  <bruno@clisp.org>
17597
17598         vasnprintf: Support I flag on glibc systems.
17599         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17600         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17601         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17602         snprintf function.
17603         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17604         glibc systems.
17605         * tests/test-vasnprintf-posix3.c: New file.
17606         * modules/vasnprintf-posix-tests (Files): Add it.
17607         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17608
17609 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17610
17611         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17612         * MODULES.html.sh: For compiler warnings, use name
17613         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17614
17615 2010-11-05  Eric Blake  <eblake@redhat.com>
17616
17617         ceil, floor: avoid spurious failure with icc
17618         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17619         [denormals-as-zero] when optimizing without -mieee-fp option.
17620         * tests/test-floorf2.c (floorf_reference): Likewise.
17621         * tests/test-ceilf1.c (dummy): New function.
17622         (main): Use it to outsmart icc's optimization.
17623         * tests/test-floorf1.c (dummy, main): Likewise.
17624
17625         tests: require working signbit
17626         * modules/ceilf-tests (Depends-on): Add signbit.
17627         * modules/ceill-tests (Depends-on): Likewise.
17628         * modules/floorf-tests (Depends-on): Likewise.
17629         * modules/floorl-tests (Depends-on): Likewise.
17630         * modules/round-tests (Depends-on): Likewise.
17631         * modules/roundf-tests (Depends-on): Likewise.
17632         * modules/roundl-tests (Depends-on): Likewise.
17633         * modules/trunc-tests (Depends-on): Likewise.
17634         * modules/truncf-tests (Depends-on): Likewise.
17635         * modules/truncl-tests (Depends-on): Likewise.
17636
17637         strtod: work around icc bug
17638         * lib/strtod.c (minus_zero): Define to working value.
17639         (strtod): Use it to avoid icc bug.
17640
17641         copysign: enhance tests
17642         * modules/copysign-tests (Files): Add minus-zero.h.
17643         * tests/test-copysign.c (main): Also test zeros.
17644
17645 2010-11-04  Eric Blake  <eblake@redhat.com>
17646
17647         ceil, floor, round, trunc: enhance tests of -0
17648         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17649         * tests/test-ceill.c (main): Likewise.
17650         * tests/test-floorf1.c (main): Likewise.
17651         * tests/test-floorl.c (main): Likewise.
17652         * tests/test-round1.c (main): Likewise.
17653         * tests/test-roundf1.c (main): Likewise.
17654         * tests/test-roundl.c (main): Likewise.
17655         * tests/test-trunc1.c (main): Likewise.
17656         * tests/test-truncf1.c (main): Likewise.
17657         * tests/test-truncl.c (main): Likewise.
17658
17659 2010-11-04  Eric Blake  <eblake@redhat.com>
17660
17661         frexp, tests: work around ICC bug with -zero
17662         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17663         works with more compilers.
17664         * tests/minus-zero.h: New file.
17665         * modules/ceilf-tests (Files): Include it.
17666         * modules/ceill-tests (Files): Likewise.
17667         * modules/floorf-tests (Files): Likewise.
17668         * modules/floorl-tests (Files): Likewise.
17669         * modules/frexp-nolibm-tests (Files): Likewise.
17670         * modules/frexp-tests (Files): Likewise.
17671         * modules/frexpl-nolibm-tests (Files): Likewise.
17672         * modules/frexpl-tests (Files): Likewise.
17673         * modules/isnan-tests (Files): Likewise.
17674         * modules/isnand-nolibm-tests (Files): Likewise.
17675         * modules/isnand-tests (Files): Likewise.
17676         * modules/isnanf-nolibm-tests (Files): Likewise.
17677         * modules/isnanf-tests (Files): Likewise.
17678         * modules/isnanl-nolibm-tests (Files): Likewise.
17679         * modules/isnanl-tests (Files): Likewise.
17680         * modules/round-tests (Files): Likewise.
17681         * modules/roundf-tests (Files): Likewise.
17682         * modules/roundl-tests (Files): Likewise.
17683         * modules/ldexpl-tests (Files): Likewise.
17684         * modules/signbit-tests (Files): Likewise.
17685         * modules/snprintf-posix-tests (Files): Likewise.
17686         * modules/sprintf-posix-tests (Files): Likewise.
17687         * modules/strtod-tests (Files): Likewise.
17688         * modules/trunc-tests (Files): Likewise.
17689         * modules/truncf-tests (Files): Likewise.
17690         * modules/truncl-tests (Files): Likewise.
17691         * modules/vsnprintf-posix-tests (Files): Likewise.
17692         * modules/vsprintf-posix-tests (Files): Likewise.
17693         * modules/vasnprintf-posix-tests (Files): Likewise.
17694         * modules/vasprintf-posix-tests (Files): Likewise.
17695         * tests/test-ceilf1.c (main): Use it.
17696         * tests/test-ceill.c (main): Likewise.
17697         * tests/test-floorf1.c (main): Likewise.
17698         * tests/test-floorl.c (main): Likewise.
17699         * tests/test-frexp.c (main): Likewise.
17700         * tests/test-frexpl.c (main): Likewise.
17701         * tests/test-isnan.c (main): Likewise.
17702         * tests/test-isnand.h (main): Likewise.
17703         * tests/test-isnanf.h (main): Likewise.
17704         * tests/test-isnanl.h (main): Likewise.
17705         * tests/test-ldexpl.c (main): Likewise.
17706         * tests/test-round.c (main): Likewise.
17707         * tests/test-roundf.c (main): Likewise.
17708         * tests/test-roundl.c (main): Likewise.
17709         * tests/test-signbit.c (test_signbitf, test_signbitd)
17710         (test_signbitl): Likewise.
17711         * tests/test-snprintf-posix.h (test_function): Likewise.
17712         * tests/test-sprintf-posix.h (test_function): Likewise.
17713         * tests/test-strtod.c (main): Likewise.
17714         * tests/test-trunc1.c (main): Likewise.
17715         * tests/test-truncf1.c (main): Likewise.
17716         * tests/test-truncl.c (main): Likewise.
17717
17718         isnanl: work around icc bug
17719         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17720
17721 2010-11-03  Eric Blake  <eblake@redhat.com>
17722
17723         tests: fix compiler warnings
17724         * tests/test-getopt.h (test_getopt): Fix condition.
17725         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17726         * tests/test-pipe2.c (main): Likewise.
17727         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17728
17729         utimens: fix broken m4 test
17730         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17731
17732 2010-10-28  Bruno Haible  <bruno@clisp.org>
17733
17734         posix_spawn*, getdtablesize: Relax license.
17735         * modules/posix_spawn (License): Change to LGPLv2+.
17736         * modules/posix_spawnp (License): Likewise.
17737         * modules/posix_spawn-internal (License): Likewise.
17738         * modules/posix_spawnattr_init (License): Likewise.
17739         * modules/posix_spawnattr_getflags (License): Likewise.
17740         * modules/posix_spawnattr_setflags (License): Likewise.
17741         * modules/posix_spawnattr_getpgroup (License): Likewise.
17742         * modules/posix_spawnattr_setpgroup (License): Likewise.
17743         * modules/posix_spawnattr_getschedparam (License): Likewise.
17744         * modules/posix_spawnattr_setschedparam (License): Likewise.
17745         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17746         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17747         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17748         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17749         * modules/posix_spawnattr_getsigmask (License): Likewise.
17750         * modules/posix_spawnattr_setsigmask (License): Likewise.
17751         * modules/posix_spawnattr_destroy (License): Likewise.
17752         * modules/posix_spawn_file_actions_init (License): Likewise.
17753         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17754         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17755         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17756         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17757         * modules/getdtablesize (License): Likewise.
17758         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17759
17760 2010-10-26  Bruno Haible  <bruno@clisp.org>
17761
17762         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17763         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17764         Cygwin and mingw.
17765         Suggested by Eric Blake.
17766
17767 2010-10-26  Bruno Haible  <bruno@clisp.org>
17768
17769         stdio: Work around compilation error due to renameat() on Solaris 10.
17770         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17771         * lib/renameat.c: Don't include <unistd.h> here.
17772         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17773         Reported by Paul Eggert and Eric Blake.
17774
17775 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17776
17777         renameat: port to Solaris 10, which declares renameat in unistd.h
17778
17779         * lib/renameat.c: Include unistd.h before stdio.h, because
17780         Solaris 10 declares renameat in unistd.h.  Problem encountered
17781         when building GNU tar 1.24 on Solaris 10.
17782
17783 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17784
17785         fdopendir: fix C89 compilation
17786         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17787         compilers.
17788
17789 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17790
17791         inttostr: simplify by removing unnecessary redundancy
17792         * lib/anytostr.c: Don't include verify.h.
17793         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17794         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17795         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17796         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17797         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17798         Likewise.
17799         * modules/inttostr (Depends-on): Remove 'verify'.
17800
17801 2010-10-23  Bruno Haible  <bruno@clisp.org>
17802
17803         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17804         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17805         Reported by Eric Blake.
17806
17807 2010-10-23  Bruno Haible  <bruno@clisp.org>
17808
17809         Tests: Fix LOCALE_JA on MirBSD 10.
17810         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17811         to an UTF-8 locale.
17812         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17813         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17814         Reported by Eric Blake.
17815
17816 2010-10-21  Bruno Haible  <bruno@clisp.org>
17817
17818         nl_langinfo test: Avoid test failure on NetBSD 5.
17819         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17820         Reported by Eric Blake.
17821
17822 2010-10-21  Eric Blake  <eblake@redhat.com>
17823
17824         c-stack: work around libsigsegv 2.8 bug
17825         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17826         overflow on at least PowerPC64.
17827
17828 2010-10-17  Bruno Haible  <bruno@clisp.org>
17829
17830         userspec: Drop redundant file.
17831         * modules/userspec (Files): Remove lib/inttostr.h.
17832
17833 2010-10-17  Bruno Haible  <bruno@clisp.org>
17834
17835         nl_langinfo tests: Silence some warnings.
17836         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17837         Reported by Jim Meyering.
17838
17839 2010-10-17  Bruno Haible  <bruno@clisp.org>
17840
17841         Make use of GCC's attribute __alloc_size__.
17842         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17843         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17844         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17845         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17846         __alloc_size__.
17847         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17848         Suggested by Jim Meyering.
17849
17850 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17851
17852         bootstrap: anchor .gitignore entries.
17853         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17854         with...
17855         (insert_vc_ignore): ... this new function, which prepends `/' to
17856         all .gitignore entries before passing them to
17857         insert_sorted_if_absent.
17858
17859 2010-10-16  Bruno Haible  <bruno@clisp.org>
17860
17861         nextafter: Fix configure check.
17862         * modules/nextafter (configure.ac): Correct expected prototype.
17863
17864 2010-10-16  Bruno Haible  <bruno@clisp.org>
17865
17866         termios: Update documentation.
17867         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17868
17869 2010-10-16  Bruno Haible  <bruno@clisp.org>
17870
17871         tests: Make them compile with TinyCC.
17872         * tests/test-strstr.c (main): Remove parentheses around array
17873         initializer.
17874
17875 2010-10-15  Eric Blake  <eblake@redhat.com>
17876
17877         ignore-value: make header idempotent
17878         * lib/ignore-value.h: Add double-inclusion guards.
17879         Reported by Stefan Berger.
17880
17881 2010-10-15  Jim Meyering  <meyering@redhat.com>
17882
17883         GNUmakefile: handle "stable" target, not "major"
17884         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17885         lists in maint.mk and announce-gen.  Without this, "make stable"
17886         would fail to ensure that $(VERSION) is up to date.
17887
17888 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17889
17890         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17891         & co.
17892
17893 2010-10-14  Bruno Haible  <bruno@clisp.org>
17894
17895         vasnprintf: Don't set errno to 0.
17896         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17897         block that sets it to 0.
17898         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17899
17900 2010-10-14  Bruno Haible  <bruno@clisp.org>
17901
17902         socketlib: Fix.
17903         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17904         gl_PREREQ_SYS_H_WINSOCK2.
17905         Reported by Ian Beckwith <ianb@erislabs.net>.
17906
17907 2010-10-13  Jim Meyering  <meyering@redhat.com>
17908
17909         test-select-stdin.c: avoid warn_unused_result warnings
17910         * tests/test-select-stdin.c: Include "macros.h".
17911         ASSERT that read and fflush succeed.
17912
17913 2010-10-13  Jim Meyering  <meyering@redhat.com>
17914
17915         git-version-gen: do require git-VC'd files in cwd
17916         * build-aux/git-version-gen: Reject a git version string
17917         if there are no commits associated with the current directory.
17918         This avoids an unlikely false-positive (unrelated dir whose parent
17919         repository also contains a tag matching v*), as pointed out
17920         by Giuseppe Scrivano in
17921         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17922
17923 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17924
17925         argv-iter: omit nonconforming declaration
17926         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17927         enum arg_iter_err declaration, which doesn't conform to C99.
17928         Solaris 10 cc warns about this.
17929
17930 2010-10-13  Eric Blake  <eblake@redhat.com>
17931
17932         termios: fix compilation on mingw
17933         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17934         (gl_TERMIOS_H): Adjust it on mingw.
17935         * modules/termios (Makefile.am): Substitute new key.
17936         * lib/termios.in.h (includes): Make include_next conditional.
17937         * doc/posix-headers/termios.texi (termios.h): Update
17938         documentation.
17939         Reported by Daniel P. Berrange.
17940
17941 2010-10-13  Jim Meyering  <meyering@redhat.com>
17942
17943         git-version-gen: don't require that .git/ be in the current dir
17944         * build-aux/git-version-gen: Adjust this script so that it works
17945         when run from any working directory beneath the top-level .git/-
17946         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17948
17949         test-select: avoid warn_unused_result warnings
17950         * tests/test-select.c: Include "macros.h".
17951         ASSERT that each call to read, write, and pipe succeeds.
17952         While not technically required, also check each "close".
17953         * modules/select-tests (Files): Add tests/macros.h.
17954
17955         test-symlinkat: remove declaration of unused local
17956         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17957
17958         test-inttostr: avoid shadowing warnings
17959         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17960         and use malloc rather than the stack for the same reason as
17961         mentioned in the comment justifying the other allocation.
17962
17963 2010-10-11  Bruno Haible  <bruno@clisp.org>
17964
17965         stdlib: Allow multiple gnulib generated replacements to coexist.
17966         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17967         Reported by Sam Steingold <sds@gnu.org>.
17968
17969 2010-10-11  Jim Meyering  <meyering@redhat.com>
17970
17971         fix a documentation typo
17972         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17973
17974 2010-10-11  Eric Blake  <eblake@redhat.com>
17975
17976         futimens: work around Solaris 11 bug
17977         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17978         * tests/test-futimens.h (test_futimens): Enhance, rather than
17979         weaken test.
17980         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17981
17982 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17983
17984         Indentation.
17985         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17986         higher-level operators more to the left.
17987
17988 2010-10-11  Jim Meyering  <meyering@redhat.com>
17989
17990         test-futimens: avoid unwarranted test failure on Solaris 5.11
17991         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17992         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17993         because it tries to dereference the NULL name argument.
17994
17995 2010-10-11  Bruno Haible  <bruno@clisp.org>
17996
17997         Indentation.
17998         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17999         indentation.
18000
18001 2010-10-11  Jim Meyering  <meyering@redhat.com>
18002
18003         spawn.in.h: make indentation consistent with parentheses
18004         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18005         Make indentation consistent with parentheses.
18006
18007 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18008
18009         Fix mismatched parens in previous commit
18010         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18011         parens.
18012
18013 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18014
18015         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18016
18017         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18018         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18019         * lib/malloca.c: Include "verify.h".
18020         (verify1): Remove, replacing with a verify call.
18021         * lib/relocwrapper.c (verify1): Likewise.
18022         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18023         Likewise.
18024         * modules/malloca (Depends-on): Add 'verify'.
18025         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18026         * modules/vasnprintf (Depends-on): Add 'verify'.
18027         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18028         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18029         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18030         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18031         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18032         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18033         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18034
18035         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18036
18037         Formerly the style was sometimes 2*X - 1, because the C standard
18038         was wrongly thought to disallow ?: in integral constant expressions.
18039         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18040         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18041         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18042         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18043         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18044         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18045         verify that time_t cannot be floating.
18046
18047 2010-10-08  Eric Blake  <eblake@redhat.com>
18048
18049         time: enforce recent POSIX ruling that time_t is integral
18050         * lib/time.in.h (__time_t_must_be_integral): Detect any
18051         problematic systems, allowing the rest of gnulib to assume POSIX.
18052
18053 2010-10-08  Jim Meyering  <meyering@redhat.com>
18054
18055         fdopendir: fix a bug on systems lacking openat and /proc support
18056         OpenBSD 4.7 is one such system.  The most noticeable effect was
18057         failure of any application making nontrivial use of fts: rm, du,
18058         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18059           ./rm: traversal failed: `a': Bad file descriptor
18060         Debugging that, you see that even though FD 6 was closed just
18061         prior to the opendir call in fd_clone_opendir, its resulting
18062         dir->dd_fd was 8, rather than the expected value of 6:
18063
18064         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18065         93                close (fd);
18066         (gdb) n
18067         94                dir = fd_clone_opendir (dupfd);
18068         (gdb) n
18069         95                saved_errno = errno;
18070         (gdb) p dir->dd_fd
18071         $11 = 8
18072
18073         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18074         The problem is that on OpenBSD, fd_clone_opendir has to resort
18075         to using the old-style save/restore CWD mechanism, due to its
18076         lack of openat/proc support, and *that* would steal the FD (6)
18077         that opendir was supposed to use.
18078
18079         The fix is to squirrel away the desired FD so that save_cwd uses a
18080         different one, and then free the dest FD right before calling opendir.
18081         That guarantees opendir will use the required file descriptor.
18082
18083         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18084
18085 2010-10-08  Bruno Haible  <bruno@clisp.org>
18086
18087         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18088         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18089
18090 2010-10-08  Bruno Haible  <bruno@clisp.org>
18091
18092         nanosleep: Make replacement POSIX compliant.
18093         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18094         is out of range.
18095         Reported by Jim Meyering.
18096
18097 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18098
18099         bootstrap: add hook for altering gnulib.mk, for Bison
18100         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18101         the Bison bootstrapping process can rewrite file names and variables
18102         in this file before later parts of 'bootstrap' use the file.
18103         Bison wants to include lib/gnulib.mk from the top-level makefile,
18104         so it needs the file names in this file to be relative to the top
18105         level, not relative to lib; plus it needs variable names to be
18106         rewritten.
18107         (slurp): Use the new function.
18108
18109         bootstrap: reformat for readability
18110         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18111
18112 2010-10-08  Eric Blake  <eblake@redhat.com>
18113
18114         docs: update cygwin progress
18115         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18116         1.7.7.
18117         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18118         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18119         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18120         * doc/posix-functions/carg.texi (carg): Likewise.
18121         * doc/posix-functions/cargf.texi (cargf): Likewise.
18122         * doc/posix-functions/casin.texi (casin): Likewise.
18123         * doc/posix-functions/casinf.texi (casinf): Likewise.
18124         * doc/posix-functions/casinh.texi (casinh): Likewise.
18125         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18126         * doc/posix-functions/catan.texi (catan): Likewise.
18127         * doc/posix-functions/catanf.texi (catanf): Likewise.
18128         * doc/posix-functions/catanh.texi (catanh): Likewise.
18129         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18130         * doc/posix-functions/ccos.texi (ccos): Likewise.
18131         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18132         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18133         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18134         * doc/posix-functions/cexp.texi (cexp): Likewise.
18135         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18136         * doc/posix-functions/cimag.texi (cimag): Likewise.
18137         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18138         * doc/posix-functions/clog.texi (clog): Likewise.
18139         * doc/posix-functions/clogf.texi (clogf): Likewise.
18140         * doc/posix-functions/conj.texi (conj): Likewise.
18141         * doc/posix-functions/conjf.texi (conjf): Likewise.
18142         * doc/posix-functions/cpow.texi (cpow): Likewise.
18143         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18144         * doc/posix-functions/cproj.texi (cproj): Likewise.
18145         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18146         * doc/posix-functions/creal.texi (creal): Likewise.
18147         * doc/posix-functions/crealf.texi (crealf): Likewise.
18148         * doc/posix-functions/csin.texi (csin): Likewise.
18149         * doc/posix-functions/csinf.texi (csinf): Likewise.
18150         * doc/posix-functions/csinh.texi (csinh): Likewise.
18151         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18152         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18153         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18154         * doc/posix-functions/ctan.texi (ctan): Likewise.
18155         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18156         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18157         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18158         * doc/posix-headers/complex.texi (complex.h): Likewise.
18159
18160 2010-10-07  Jim Meyering  <meyering@redhat.com>
18161
18162         parse-datetime: avoid compilation failure on OpenBSD 4.7
18163         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18164         This works around a compilation failure on OpenBSD 4.7:
18165         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18166
18167 2010-10-07  Eric Blake  <eblake@redhat.com>
18168
18169         docs: update cygwin progress
18170         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18171         1.7.6.
18172         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18173         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18174         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18175         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18176         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18177         Likewise.
18178         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18179         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18180         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18181         Likewise.
18182         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18183         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18184         Likewise.
18185         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18186         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18187         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18188         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18189         Likewise.
18190         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18191         Likewise.
18192         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18193
18194         docs: update parse-datetime history
18195         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18196         documentation of this function's history and alternatives.
18197
18198         cygwin: use more robust version check
18199         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18200         exclude an eventual cygwin 1.9.1.
18201         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18203         (gl_FUNC_STRCASESTR): Likewise.
18204         Reported by Bruno Haible.
18205
18206 2010-10-06  Bruno Haible  <bruno@clisp.org>
18207
18208         string, sys_select: Avoid #including large headers unless necessary.
18209         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18210         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18211         OSF/1, BeOS, Haiku.
18212         Reported by Jim Meyering.
18213
18214 2010-10-05  Eric Blake  <eblake@redhat.com>
18215
18216         memmem, strstr, strcasestr: fix bug with long periodic needle
18217         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18218         periodic needle having false positive.
18219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18220         and cygwin 1.7.7.
18221         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18223         (gl_FUNC_STRCASESTR): Likewise.
18224         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18225         * tests/test-memmem.c (main): Expose the bug.
18226         * tests/test-strcasestr.c (main): Likewise.
18227         * tests/test-strstr.c (main): Likewise.
18228         * tests/test-c-strcasestr.c (main): Likewise.
18229         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18230         * doc/posix-functions/strstr.texi (strstr): Likewise.
18231         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18232         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18233
18234 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18235
18236         parse-datetime: do some more renaming
18237         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18238         parse_datetime, not get_date.  Mention the renaming.
18239         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18240         in comments.
18241         * m4/bison.m4: Likewise.
18242
18243 2010-10-05  Eric Blake  <eblake@redhat.com>
18244
18245         parse-datetime: better name than get_date
18246         * NEWS: Reword the deprecation notice.
18247         * modules/get_date: Rename to modules/parse-datetime.
18248         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18249         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18250         * lib/get_date.y: Rename to lib/parse-datetime.y.
18251         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18252         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18253         * doc/getdate.texi: Provide fallback wrapper.
18254         * lib/getdate.h: Move guts, and wrap...
18255         * lib/parse-datetime.h: ...new file.
18256         * lib/parse-datetime.y (get_date): Rename...
18257         (parse_datetime): ...to this.
18258         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18259         (gl_PARSE_DATETIME): ...to this.
18260         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18261         documentation.
18262         * modules/getdate (Files): Provide fallback docs and header.
18263         (Notice, Depends-on): Update references.
18264         * tests/test-parse-datetime.c: Likewise.
18265         * DEPENDENCIES: Likewise.
18266         * MODULES.html.sh (Date and time <time.h>): Likewise.
18267         * doc/parse-datetime.texi (Date input formats)
18268         (Authors of parse_datetime): Likewise.
18269         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18270         (Include): Likewise.
18271         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18272         * gnulib-tool: Likewise.
18273         * m4/bison.m4 (gl_BISON): Likewise.
18274         Suggested by Bruno Haible.
18275
18276 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         more ports to Solaris tr, which needs [] around ranges
18279         * gnulib-tool: Solaris tr needs [] around ranges.
18280         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18281         * tests/test-pipe-filter-gi1.c (main): Likewise.
18282         * tests/test-pipe-filter-ii1.c (main): Likewise.
18283
18284 2010-10-05  Eric Blake  <eblake@redhat.com>
18285
18286         bootstrap: fix Solaris regression
18287         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18288         around ranges.
18289         Reported by Pádraig Brady.
18290
18291         bootstrap: work with pkg-config
18292         * build-aux/bootstrap (check_versions): Also transliterate - in
18293         prerequisite name.
18294         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18295         prerequisites that were already found, to avoid confusion.
18296         Reported by Justin Clift.
18297
18298         faccessat: remove unused wrappers
18299         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18300         presence of these wrappers dragged in -lgen on Solaris.
18301         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18302
18303 2010-10-05  Jim Meyering  <meyering@redhat.com>
18304
18305         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18306         * Makefile (sc_pragma_columns): New syntax-check rule.
18307
18308 2010-10-04  Bruno Haible  <bruno@clisp.org>
18309
18310         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18311         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18312         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18313         Reported by Bruce Korb and Eric Blake.
18314
18315 2010-10-04  Bruno Haible  <bruno@clisp.org>
18316
18317         threadlib: Make option --with-libpth-prefix work.
18318         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18319         use $LIBPTH, not just -lpth.
18320
18321 2010-10-04  Bruno Haible  <bruno@clisp.org>
18322
18323         Avoid line length limitation from HP NonStop system header files.
18324         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18325         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18326         * lib/ctype.in.h: Likewise.
18327         * lib/dirent.in.h: Likewise.
18328         * lib/errno.in.h: Likewise.
18329         * lib/fcntl.in.h: Likewise.
18330         * lib/float.in.h: Likewise.
18331         * lib/getopt.in.h: Likewise.
18332         * lib/iconv.in.h: Likewise.
18333         * lib/inttypes.in.h: Likewise.
18334         * lib/langinfo.in.h: Likewise.
18335         * lib/locale.in.h: Likewise.
18336         * lib/math.in.h: Likewise.
18337         * lib/netdb.in.h: Likewise.
18338         * lib/netinet_in.in.h: Likewise.
18339         * lib/poll.in.h: Likewise.
18340         * lib/pthread.in.h: Likewise.
18341         * lib/pty.in.h: Likewise.
18342         * lib/sched.in.h: Likewise.
18343         * lib/se-selinux.in.h: Likewise.
18344         * lib/search.in.h: Likewise.
18345         * lib/signal.in.h: Likewise.
18346         * lib/spawn.in.h: Likewise.
18347         * lib/stdarg.in.h: Likewise.
18348         * lib/stddef.in.h: Likewise.
18349         * lib/stdint.in.h: Likewise.
18350         * lib/stdio.in.h: Likewise.
18351         * lib/stdlib.in.h: Likewise.
18352         * lib/string.in.h: Likewise.
18353         * lib/strings.in.h: Likewise.
18354         * lib/sys_file.in.h: Likewise.
18355         * lib/sys_ioctl.in.h: Likewise.
18356         * lib/sys_select.in.h: Likewise.
18357         * lib/sys_socket.in.h: Likewise.
18358         * lib/sys_stat.in.h: Likewise.
18359         * lib/sys_time.in.h: Likewise.
18360         * lib/sys_times.in.h: Likewise.
18361         * lib/sys_utsname.in.h: Likewise.
18362         * lib/sys_wait.in.h: Likewise.
18363         * lib/sysexits.in.h: Likewise.
18364         * lib/termios.in.h: Likewise.
18365         * lib/time.in.h: Likewise.
18366         * lib/unistd.in.h: Likewise.
18367         * lib/wchar.in.h: Likewise.
18368         * lib/wctype.in.h: Likewise.
18369         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18370         * modules/ctype (Makefile.am): Likewise.
18371         * modules/dirent (Makefile.am): Likewise.
18372         * modules/errno (Makefile.am): Likewise.
18373         * modules/fcntl-h (Makefile.am): Likewise.
18374         * modules/float (Makefile.am): Likewise.
18375         * modules/getopt-posix (Makefile.am): Likewise.
18376         * modules/iconv-h (Makefile.am): Likewise.
18377         * modules/inttypes (Makefile.am): Likewise.
18378         * modules/langinfo (Makefile.am): Likewise.
18379         * modules/locale (Makefile.am): Likewise.
18380         * modules/math (Makefile.am): Likewise.
18381         * modules/netdb (Makefile.am): Likewise.
18382         * modules/netinet_in (Makefile.am): Likewise.
18383         * modules/poll-h (Makefile.am): Likewise.
18384         * modules/pthread (Makefile.am): Likewise.
18385         * modules/pty (Makefile.am): Likewise.
18386         * modules/sched (Makefile.am): Likewise.
18387         * modules/search (Makefile.am): Likewise.
18388         * modules/selinux-h (Makefile.am): Likewise.
18389         * modules/signal (Makefile.am): Likewise.
18390         * modules/spawn (Makefile.am): Likewise.
18391         * modules/stdarg (Makefile.am): Likewise.
18392         * modules/stddef (Makefile.am): Likewise.
18393         * modules/stdint (Makefile.am): Likewise.
18394         * modules/stdio (Makefile.am): Likewise.
18395         * modules/stdlib (Makefile.am): Likewise.
18396         * modules/string (Makefile.am): Likewise.
18397         * modules/strings (Makefile.am): Likewise.
18398         * modules/sys_file (Makefile.am): Likewise.
18399         * modules/sys_ioctl (Makefile.am): Likewise.
18400         * modules/sys_select (Makefile.am): Likewise.
18401         * modules/sys_socket (Makefile.am): Likewise.
18402         * modules/sys_stat (Makefile.am): Likewise.
18403         * modules/sys_time (Makefile.am): Likewise.
18404         * modules/sys_times (Makefile.am): Likewise.
18405         * modules/sys_utsname (Makefile.am): Likewise.
18406         * modules/sys_wait (Makefile.am): Likewise.
18407         * modules/sysexits (Makefile.am): Likewise.
18408         * modules/termios (Makefile.am): Likewise.
18409         * modules/time (Makefile.am): Likewise.
18410         * modules/unistd (Makefile.am): Likewise.
18411         * modules/wchar (Makefile.am): Likewise.
18412         * modules/wctype (Makefile.am): Likewise.
18413
18414 2010-10-04  Bruno Haible  <bruno@clisp.org>
18415
18416         read-file tests: Avoid a test failure on NonStop Kernel.
18417         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18418         a regular file.
18419         Reported by Joachim Schmitz <schmitz@hp.com>.
18420
18421 2010-10-03  Bruno Haible  <bruno@clisp.org>
18422
18423         gnulib-tool: Fixes for --create-testdir with --libtool.
18424         * gnulib-tool (func_get_automake_snippet): Don't augment
18425         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18426         an executable.
18427         (func_create_testdir): Handle module 'alloca' like func_import.
18428         Reported by Bruce Korb <bruce.korb@gmail.com>.
18429
18430 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18431
18432         Avoid some lines longer than 80 characters.
18433         * lib/stdint.in.h: Break long comment lines.
18434         * lib/math.in.h: Likewise.
18435         (_GL_NUM_UINT_WORDS): New macro, for readability.
18436         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18437         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18438         * lib/stdlib.in.h: Likewise.
18439         * lib/spawn.in.h: Likewise.
18440         * lib/sys_socket.in.h: Update an URL.
18441         * lib/sys_stat.in.h: Break long line.
18442
18443 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18444
18445         Improve pmccabe2html.
18446         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18447         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18448         when the sources change. Remove the line in the HTML about "Used
18449         ranges" (which implied that there might be other unused ranges),
18450         rename "Resume" to "Summary" (easier to understand for more users).
18451         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18452         styles, and some unnecessary blank lines.
18453
18454 2010-10-03  Bruno Haible  <bruno@clisp.org>
18455             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18456
18457         acl: Add support for ACLs on NonStop Kernel.
18458         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18459         Check whether the function aclsort() exists.
18460         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18461         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18462         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18463         (acl_nontrivial [HAVE_ACLSORT]: New function.
18464         (file_has_acl): Implement for NonStop Kernel.
18465         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18466         (qset_acl): Implement for NonStop Kernel.
18467         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18468         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18469         (main): Implement for NonStop Kernel.
18470         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18471         Kernel. Handle this flavor.
18472         * tests/test-set-mode-acl.sh: Likewise.
18473         * tests/test-copy-acl.sh: Likewise.
18474         * tests/test-copy-file.sh: Likewise.
18475
18476 2010-10-03  Bruno Haible  <bruno@clisp.org>
18477
18478         Info about ACLs on NonStop Kernel.
18479         * doc/acl-resources.txt: Add info about NonStop Kernel.
18480         References by Joachim Schmitz <schmitz@hp.com>.
18481
18482 2010-10-02  Bruno Haible  <bruno@clisp.org>
18483
18484         Define missing EDQUOT on NonStop Kernel.
18485         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18486         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18487         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18488         missing.
18489         * doc/posix-headers/errno.texi: Mention the NSK bug.
18490         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18491         Reported by Joachim Schmitz <schmitz@hp.com>.
18492
18493 2010-10-02  Bruno Haible  <bruno@clisp.org>
18494
18495         Update doc for POSIX:2008.
18496         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18497         Update URL of POSIX specification.
18498
18499 2010-10-02  Bruno Haible  <bruno@clisp.org>
18500
18501         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18502         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18503         from gnulib, not from Automake.
18504
18505 2010-10-02  Bruno Haible  <bruno@clisp.org>
18506
18507         New module 'system-posix'.
18508         * modules/system-posix: New file.
18509         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18510         module is present.
18511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18512         GNULIB_SYSTEM_POSIX.
18513         * modules/stdlib (Depends-on): Remove sys_wait.
18514         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18515         * doc/posix-functions/system.texi: Mention the new module.
18516         * doc/posix-headers/stdlib.texi: Likewise.
18517         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18518         define test_sys_wait_macros to a no-op.
18519         Reported by Sam Steingold <sds@gnu.org>.
18520
18521 2010-09-30  Bruno Haible  <bruno@clisp.org>
18522
18523         More renaming from 'getdate' to 'get_date'.
18524         * doc/get_date.texi: Renamed from doc/getdate.texi.
18525         * modules/get_date (Files): Update.
18526         * MODULES.html.sh (Date and time <time.h>): Update.
18527         * DEPENDENCIES: Update.
18528         * gnulib-tool: Update comment.
18529         * m4/bison.m4 (gl_BISON): Likewise.
18530         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18531
18532 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18533
18534         bootstrap: support ACLOCAL_FLAGS during aclocal
18535         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18536         can add additional -I dir for third-party .m4 files.
18537
18538 2010-09-30  Eric Blake  <eblake@redhat.com>
18539
18540         bootstrap: use glibtoolize on MacOS
18541         * build-aux/bootstrap (check_versions): Convert libtool into
18542         libtoolize.
18543         (tool search): Move libtool check earlier, and look for
18544         glibtoolize for MacOS.
18545         (gnulib_tool_options): Auto-add --libtool when appropriate.
18546         Reported by Justin Clift.
18547
18548         poll: fix typo that broke test on MacOS
18549         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18550         Reported by Justin Clift.
18551
18552         getdate: rename to get_date
18553         Note: getdate.h is not renamed, to minimize client impact.
18554         * modules/getdate: Mark obsolete.  Move old contents...
18555         * modules/get_date: ...to new module name.
18556         * modules/getdate-tests: Move...
18557         * modules/get_date-tests: ...here.
18558         * m4/getdate.m4: Move...
18559         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18560         * lib/getdate.y: Move...
18561         * lib/get_date.y: ...here.
18562         * tests/test-getdate.c: Move...
18563         * tests/test-get_date.c: ...here.
18564         * doc/posix-functions/getdate.texi (getdate): Update name.
18565         * NEWS: Mention the change.
18566
18567 2010-09-29  Bruno Haible  <bruno@clisp.org>
18568
18569         Separate the module 'waitpid' from the module 'sys_wait'.
18570         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18571         present.
18572         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18573         gl_MODULE_INDICATOR_FOR_TESTS.
18574         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18575         * modules/sys_wait (Depends-on): Remove waitpid.
18576         (Makefile.am): Substitute GNULIB_WAITPID.
18577         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18578         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18579         signature only if the 'waitpid' module is present.
18580         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18581         * NEWS: Mention the change.
18582         * modules/grantpt (Depends-on): Add waitpid.
18583         * modules/wait-process (Depends-on): Likewise.
18584
18585 2010-09-29  Bruno Haible  <bruno@clisp.org>
18586
18587         More tests for module 'sys_wait'.
18588         * modules/sys_wait-c++-tests: New file.
18589         * tests/test-sys_wait-c++.cc: New file.
18590         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18591         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18592
18593 2010-09-29  Bruno Haible  <bruno@clisp.org>
18594
18595         New module 'waitpid'.
18596         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18597         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18598         Don't include <process.h>.
18599         (waitpid): Declare only, using modern idiom.
18600         * m4/waitpid.m4: New file.
18601         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18602         * modules/waitpid: New file.
18603         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18604         (Makefile.am): Update.
18605         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18606
18607 2010-09-28  Bruno Haible  <bruno@clisp.org>
18608
18609         poll: Assume ANSI C.
18610         * lib/poll.c (poll): Use an ANSI C declaration.
18611
18612 2010-09-28  Bruno Haible  <bruno@clisp.org>
18613
18614         poll-h: Create poll.h on all platforms.
18615         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18616         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18617         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18618         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18619         (gl_REPLACE_POLL_H): Don't set POLL_H.
18620         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18621         * modules/poll-h (Depends-on): Add include_next.
18622         (Makefile.am): Create poll.h unconditionally. Substitute also
18623         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18624
18625 2010-09-28  Bruno Haible  <bruno@clisp.org>
18626
18627         Tests for module 'poll-h'.
18628         * modules/poll-h-c++-tests: New file.
18629         * tests/test-poll-h-c++.cc: New file.
18630
18631         Tests for module 'poll-h'.
18632         * modules/poll-h-tests: New file.
18633         * tests/test-poll-h.c: New file.
18634
18635 2010-09-28  Bruno Haible  <bruno@clisp.org>
18636
18637         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18638         * modules/poll-h (Depends-on): Add 'extensions'.
18639
18640 2010-09-28  Bruno Haible  <bruno@clisp.org>
18641
18642         New module 'poll-h'.
18643         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18644         (poll): Use modern idiom.
18645         * modules/poll-h: New file.
18646         * modules/poll (Files): Remove lib/poll.in.h.
18647         (Depends-on): Add poll-h.
18648         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18649         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18650         * m4/poll_h.m4: New file.
18651         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18652         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18653         and invoke gl_REPLACE_POLL_H.
18654         * lib/poll.c: Use common idiom.
18655         * tests/test-poll.c: Likewise.
18656         * doc/posix-headers/poll.texi: Mention the poll-h module.
18657         Suggested by Eric Blake.
18658
18659 2010-09-26  Bruno Haible  <bruno@clisp.org>
18660
18661         sys_wait: Implement WSTOPSIG.
18662         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18663         Reported by Simon Josefsson.
18664
18665 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18666
18667         stdlib, sys_wait: Avoid compilation error on mingw.
18668         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18669
18670 2010-09-26  Bruno Haible  <bruno@clisp.org>
18671
18672         stdlib tests: Avoid code duplication.
18673         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18674         * modules/sys_wait-tests (Files): Likewise.
18675         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18676         * tests/test-stdlib.c: Include test-sys_wait.h.
18677         (main): Invoke test_sys_wait_macros.
18678         * tests/test-sys_wait.c: Include test-sys_wait.h.
18679         (main): Invoke test_sys_wait_macros.
18680
18681 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18682
18683         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18684         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18685         sure Windows sockets are working before calling getaddrinfo.
18686         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18687         * doc/gnulib.texi (Windows sockets): Fix typo.
18688
18689 2010-09-25  Bruno Haible  <bruno@clisp.org>
18690
18691         Tests for module 'regex-quote'.
18692         * modules/regex-quote-tests: New file.
18693         * tests/test-regex-quote.c: New file.
18694
18695         New module 'regex-quote'.
18696         * lib/regex-quote.h: New file.
18697         * lib/regex-quote.c: New file.
18698         * modules/regex-quote: New file.
18699         Suggested by Reuben Thomas <rrt@sc3d.org>.
18700
18701 2010-09-24  Bruno Haible  <bruno@clisp.org>
18702
18703         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18704         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18705
18706 2010-09-23  Bruno Haible  <bruno@clisp.org>
18707
18708         setenv: Relax license.
18709         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18710         Blake.
18711         Requested by Eric Blake.
18712
18713 2010-09-22  Bruno Haible  <bruno@clisp.org>
18714
18715         termios: Relax license.
18716         * modules/termios (License): Change to LGPLv2+.
18717         Requested by Eric Blake.
18718
18719 2010-09-22  Bruno Haible  <bruno@clisp.org>
18720
18721         threadlib: Allow the package to change the default to 'no'.
18722         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18723         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18724         Reported by Paul Eggert.
18725
18726 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18727             Bruno Haible  <bruno@clisp.org>
18728
18729         Fix endless loop in mbmemcasecoll.
18730         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18731         byte.
18732         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18733
18734 2010-09-22  Bruno Haible  <bruno@clisp.org>
18735
18736         Tests for module 'memcoll'.
18737         * modules/memcoll-tests: New file.
18738         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18739
18740         memcoll, xmemcoll: Clarify size vs. length.
18741         * modules/memcoll.c (memcoll0): Clarify specification.
18742         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18743         passed to collate_error.
18744
18745 2010-09-22  Bruno Haible  <bruno@clisp.org>
18746
18747         Tests for module 'memcasecmp'.
18748         * modules/memcasecmp-tests: New file.
18749         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18750
18751 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18752
18753         * lib/pthread.in.h: Add split double-inclusion guard, and include
18754         system <pthread.h> if there is one.  Use @@-style as in other
18755         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18756         pthread.h doesn't.
18757         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18758         (pthread_mutexattr_settype, pthread_mutex_trylock):
18759         New static inline functions, if there's no system <pthread.h>.
18760         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18761         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18762         Approximate with mutexes if the system lacks spinlocks, as in
18763         MacOS.
18764         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18765         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18766         @@-style.  Check for spinlocks separately.
18767         (gl_PTHREAD_DEFAULTS): New macro.
18768         * modules/pthread: Redo to use a more typical style for in.h files.
18769
18770 2010-09-21  Eric Blake  <eblake@redhat.com>
18771
18772         net_if: enhance tests
18773         * tests/test-net_if.c (main): Move signature checks earlier.
18774         Print failures to stderr.
18775         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18776         Document the bug that we do not yet fix.
18777
18778 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18779
18780         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18781         about gnulib, not GSS.
18782
18783 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18784
18785         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18786         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18787         for Emacs.
18788         * build-aux/pmccabe2html: Make Makefile.am example code more
18789         cut-and-paste friendly.
18790
18791 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18792
18793         * tests/test-net_if.c: New file.
18794         * modules/net_if-tests: New file.
18795
18796 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18797
18798         pthread: add pthread_spin_destroy
18799         * lib/pthread.in.h (pthread_spin_destroy): New function.
18800
18801 2010-09-19  Bruno Haible  <bruno@clisp.org>
18802
18803         gnulib-tool: Fix --help output.
18804         * gnulib-tool (func_usage): Fix help message.
18805         Reported by Reuben Thomas <rrt@sc3d.org>.
18806
18807 2010-09-18  Jim Meyering  <meyering@redhat.com>
18808
18809         maint.mk: avoid unexpanded \n in two diagnostics
18810         * top/maint.mk (sc_prohibit_always_true_header_tests):
18811         Don't use a literal \n in a halt=... assignment.  It would not be
18812         expanded, and the two \n bytes would appear in the diagnostic output
18813         rather than the desired newline.  Use halt=$$(printf ... instead.
18814         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18815
18816 2010-09-18  Bruno Haible  <bruno@clisp.org>
18817
18818         netinet_in: Doc tweak.
18819         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18820         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18821
18822 2010-09-18  Jim Meyering  <meyering@redhat.com>
18823
18824         init.sh: correct an outdated comment
18825         * tests/init.sh (create_exe_shims_):  s/function/alias/
18826
18827         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18828         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18829         a file named "*.exe" is removed between the glob expansion and the
18830         processing of that oddly named file.
18831
18832 2010-09-17  Eric Blake  <eblake@redhat.com>
18833
18834         mirbsd: add some more support
18835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18836         in BSD family.
18837         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18838         devices as OpenBSD.
18839         * m4/host-os.m4 (mirbsd): Add MirBSD.
18840
18841         tests: fix unportable assumption on sys/wait.h
18842         * tests/test-sys_wait.c (main): Relax test.
18843         * tests/test-stdlib.c (main): Likewise.
18844
18845         init.sh: accomodate directory with no .exes
18846         * tests/init.sh: Accomodate directory containing only scripts.
18847
18848         tests: avoid compiler warning
18849         * tests/test-stdlib.c (main): Use the variable.
18850
18851         fdutimens, fdutimensat: update signature, again
18852         * lib/utimens.h (gl_futimens): Delete, and move signature...
18853         (fdutimens): ...here.
18854         (fdutimensat): Rearrange signature.
18855         (lutimensat): Rename variable for clarity.
18856         * lib/fdutimensat.c (fdutimensat): Update signature.
18857         * lib/utimens.c (fdutimens): Likewise.
18858         (gl_futimens): Delete.
18859         (utimens, lutimens): Update callers.
18860         * lib/futimens.c (futimens): Likewise.
18861         * tests/test-fdutimensat.c: Likewise.
18862         * tests/test-utimens.c: Likewise.
18863         * tests/test-futimens.h: Update comment.
18864         * NEWS: Mention this.
18865         Suggested by Paul Eggert.
18866
18867 2010-09-17  Bruno Haible  <bruno@clisp.org>
18868
18869         Take over the maintenance of some older macros from Autoconf.
18870         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18871         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18872         GNU Autoconf.
18873         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18874         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18875
18876 2010-09-17  Eric Blake  <eblake@redhat.com>
18877
18878         fdutimensat: drop atflag validation
18879         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18880         with valid fd, to close a race scenario where futimens is
18881         unsupported and FILE was replaced by a symlink.
18882         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18883         accordingly.
18884         Suggested by Paul Eggert.
18885
18886 2010-09-16  Bruno Haible  <bruno@clisp.org>
18887
18888         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18889         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18890
18891 2010-09-16  Bruno Haible  <bruno@clisp.org>
18892
18893         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18894         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18895         login_tty exists.
18896         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18897
18898 2010-09-16  Bruno Haible  <bruno@clisp.org>
18899
18900         login_tty: Make the replacement code work on BSD systems.
18901         * lib/login_tty.c: Include <sys/ioctl.h>.
18902         (login_tty): Use ioctl TIOCSCTTY when available.
18903         * modules/login_tty (Depends-on): Add sys_ioctl.
18904         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18905
18906 2010-09-16  Bruno Haible  <bruno@clisp.org>
18907
18908         login_tty: Stricter unit test.
18909         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18910         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18911         and tcgetsid() after login_tty.
18912         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18913
18914 2010-09-16  Bruno Haible  <bruno@clisp.org>
18915
18916         New module 'tcgetsid'.
18917         * lib/tcgetsid.c: New file.
18918         * m4/tcgetsid.m4: New file.
18919         * modules/tcgetsid: New file.
18920         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18921         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18922         GNULIB_TCGETSID, HAVE_TCGETSID.
18923         * lib/termios.in.h: Include <sys/types.h>.
18924         (tcgetsid): New declaration.
18925         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18926         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18927         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18928         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18929
18930 2010-09-16  Bruno Haible  <bruno@clisp.org>
18931
18932         Tests for module 'termios'.
18933         * modules/termios-c++-tests: New file.
18934         * modules/termios-tests: New file.
18935         * tests/test-termios-c++.cc: New file.
18936         * tests/test-termios.c: New file.
18937
18938         New module 'termios'.
18939         * modules/termios: New file.
18940         * lib/termios.in.h: New file.
18941         * m4/termios_h.m4: New file.
18942         * doc/posix-headers/termios.texi: Mention the new module.
18943
18944 2010-09-16  Eric Blake  <eblake@redhat.com>
18945
18946         fdutimensat: add an atflag parameter
18947         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18948         * lib/utimens.h (fdutimensat): Update prototype.
18949         * tests/test-fdutimensat.c: Adjust test to match.
18950         * NEWS: Document the change.
18951         Suggested by Paul Eggert.
18952
18953 2010-09-16  Bruno Haible  <bruno@clisp.org>
18954
18955         Fix typos in comments.
18956         * lib/striconveh.h: Fix typo in comment.
18957         * lib/login_tty.c (login_tty): Likewise.
18958
18959 2010-09-15  Bruno Haible  <bruno@clisp.org>
18960
18961         stdlib: clarify MirBSD WEXITSTATUS bug
18962         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18963         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18964
18965 2010-09-15  Eric Blake  <eblake@redhat.com>
18966
18967         stdlib: work around MirBSD WEXITSTATUS bug
18968         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18969         * modules/stdlib (Depends-on): Add sys_wait.
18970         * tests/test-sys_wait.c (main): Enhance test.
18971         * tests/test-stdlib.c (main): Likewise.
18972         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18973
18974         docs: mention MacOS issue with WEXITSTATUS(constant)
18975         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18976         issue.
18977         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18978
18979         strnlen: add tests
18980         * modules/strnlen-tests: New file.
18981         * tests/test-strnlen.c: Likewise.
18982
18983 2010-09-14  Bruno Haible  <bruno@clisp.org>
18984
18985         unistr/base: Avoid link errors when module 'libunistring' is also used.
18986         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18987         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18988         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18989         Declare also when HAVE_LIBUNISTRING is set.
18990         Reported by Pádraig Brady <P@draigbrady.com>.
18991
18992 2010-09-14  Eric Blake  <eblake@redhat.com>
18993
18994         test-rawmemchr: make more robust
18995         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18996         (Depends-on, configure.ac): Add needed prerequisites to use it.
18997         * modules/memchr-tests (Files, Depends-on, configure.ac):
18998         Likewise, to avoid implicit reliance on memchr module prereqs.
18999         * tests/test-memchr.c (main): Ensure proper masking.
19000         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19001         reads.
19002
19003         memchr: detect glibc Alpha bug
19004         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19005         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19006         Alpha.
19007         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19008         * tests/test-memchr.c (main): Enhance test.
19009         Reported by Nelson H. F. Beebe.
19010
19011 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19012
19013         fts, getcwd, glob: audit for dirfd returning -1
19014         * lib/fts.c (opendir): Remove #define; no longer used.
19015         (opendirat): New arg PDIR_FD.  All callers changed.
19016         (fts_build, _opendir2): Use new opendirat to avoid the need for
19017         dirfd, or for checking whether dirfd returns a negative value.
19018         Don't use opendir; always use openat followed by fdopendir.
19019         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19020         it.
19021         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19022         returns -1 here.
19023         * modules/fts (Depends-on): Remove dirfd.
19024         * modules/getcwd (Depends-on): Likewise.
19025
19026 2010-09-13  Eric Blake  <eblake@redhat.com>
19027
19028         float: fix broken MirBSD header
19029         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19030         * doc/posix-headers/float.texi (float.h): Document it.
19031
19032 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19033
19034         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19035         * lib/fts.c (opendirat): New arg extra_flags.
19036         (__opendir2): Use it to avoid following symlinks when opening
19037         a directory, if symlinks are not supposed to be followed.  See
19038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19039
19040         fdopendir: preserve argument fd before returning
19041         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19042         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19043         (fdopendir): Use them, arranging for FD to be open to the same
19044         directory that it was when it started.  (It might be temporarily
19045         closed while fdopendir is running, so this not thread- or
19046         signal-safe.)  Be careful to do the right thing even when file
19047         descriptors are scarce and dup fails with errno == EMFILE.  See
19048         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19049
19050 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19051
19052         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19053         * NEWS: Document change.
19054         * m4/regex.m4: Disable test for regoff_t size.
19055
19056 2010-09-13  Jim Meyering  <meyering@redhat.com>
19057
19058         fts: don't operate on an invalid file descriptor after failed dup
19059         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19060         negative file descriptor.
19061
19062 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19063
19064         savedir: add streamsavedir, deprecate fdsavedir
19065         * NEWS: Mention deprecation of fdsavedir.
19066         * lib/savedir.c (streamsavedir): New extern function, whose name
19067         ends in "savedir" to be consistent with the others.  This differs
19068         from savedirstream in that it doesn't close its argument.  The
19069         next version of GNU tar will use this instead of fdsavedir, to
19070         avoid some race conditions and conserve file descriptors.
19071         (savedirstream): Reimplement as a wrapper around streamsavedir.
19072         (fdsavedir): Add a comment deprecating this function.  As far as
19073         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19074         * lib/savedir.h (streamsavedir): New decl.
19075         (fdsavedir): Add a comment deprecating this.
19076
19077 2010-09-10  Bruno Haible  <bruno@clisp.org>
19078
19079         langinfo: Fix last commit.
19080         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19081         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19083
19084 2010-09-10  Bruno Haible  <bruno@clisp.org>
19085
19086         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19087         * lib/progreloc.c (O_EXEC): Define fallback.
19088
19089 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19090
19091         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19092         * NEWS: Document recent changes to fcntl-h.
19093         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19094         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19095         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19096         Similarly for O_SEARCH; this last was already true, but not documented.
19097         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19098         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19099         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19100         Likewise.
19101         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19102         is zero, not whether it is defined.
19103         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19104         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19105         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19106
19107 2010-09-10  Bruno Haible  <bruno@clisp.org>
19108
19109         langinfo, nl_langinfo: Fix for IRIX 5.3.
19110         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19111         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19112         HAVE_LANGINFO_YESEXPR.
19113         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19114         HAVE_LANGINFO_YESEXPR.
19115         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19116         HAVE_LANGINFO_T_FMT_AMPM is 0.
19117         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19118         HAVE_LANGINFO_YESEXPR is 0.
19119         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19120         NOEXPR.
19121         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19122         * doc/posix-functions/nl_langinfo.texi: Likewise.
19123         Reported by Eric Blake.
19124
19125 2010-09-10  Bruno Haible  <bruno@clisp.org>
19126
19127         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19128         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19129         on FreeBSD 8.0 and OpenBSD 4.6.
19130         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19131         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19132         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19133         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19134         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19135         ac_includes_default.
19136         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19137
19138 2010-09-09  Eric Blake  <eblake@redhat.com>
19139
19140         strsignal: work around NetBSD bug
19141         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19142         * lib/string.in.h (includes): Likewise.
19143         * doc/posix-functions/strsignal.texi (strsignal): Document the
19144         bug.
19145         Reported by Nelson H. F. Beebe.
19146
19147         gnulib-tool: work with NetBSD /bin/sh
19148         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19149         (func_get_description, func_get_comment, func_get_status)
19150         (func_get_notice, func_get_applicability, func_get_filelist)
19151         (func_get_dependencies, func_get_autoconf_early_snippet)
19152         (func_get_autoconf_snippet, func_get_automake_snippet)
19153         (func_get_include_directive, func_get_link_directive)
19154         (func_get_license, func_get_maintainer, func_import): Avoid
19155         shell syntax errors from parsing syntax extensions.
19156
19157 2010-09-09  Bruno Haible  <bruno@clisp.org>
19158
19159         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19160         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19161         a reliable way to determine whether the 'alias' command works.
19162
19163 2010-09-08  Jim Meyering  <meyering@redhat.com>
19164
19165         init.sh: penalize a set-x-impaired shell; don't disqualify it
19166         * tests/init.sh: Too many shells corrupt application stderr when
19167         you set -x, so we can't afford to disqualify them, since at least
19168         on Irix-6.5, that would disqualify all bourne shells.
19169         Instead, use a two-pass approach.
19170         On the first pass, try to find a shell that meets the stricter
19171         condition that set -x does not corrupt stderr.
19172         If no shell meets the stricter condition, retest each candidate
19173         shell, but without that extra condition.  Finally, when
19174         VERBOSE=yes is requested and set -x might cause trouble, simply
19175         issue a warning and refrain from enabling debug output.
19176
19177 2010-09-08  Eric Blake  <eblake@redhat.com>
19178
19179         unsetenv: fix OpenBSD bug
19180         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19181         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19182         documentation.
19183         Reported by Jim Meyering.
19184
19185         strtod: work around IRIX 6.5 bug
19186         * lib/strtod.c (strtod): Reparse number on shorter string if
19187         exponent parse was invalid.
19188         * tests/test-strtod.c (main): Add check for "0x1p 2".
19189         Reported by Tom G. Christensen.
19190
19191         getopt: optimize previous patch
19192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19193         empty variable.  Speed up awk script.
19194         Reported by Paolo Bonzini.
19195
19196 2010-09-08  Jim Meyering  <meyering@redhat.com>
19197
19198         test.sh: disqualify shells for which set -x corrupts stderr
19199         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19200         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19201         appear in stderr output.  For example, this command:
19202             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19203         prints "P=1" on those two systems:
19204
19205 2010-09-08  Bruno Haible  <bruno@clisp.org>
19206
19207         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19208         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19209         commands, because some shells ignore redirections when there is an
19210         error in the command lookup.
19211         Reported by Eric Blake.
19212
19213 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19214
19215         * lib/regex.h: Fix a mention of `regex_compile' (should be
19216         `re_compile_pattern').
19217         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19218         (re_set_registers): Correct name of parameter in comment.
19219
19220         * doc/regex.texi: Add documentation for missing syntax flags.
19221         Remove commented-out documentation of defunct syntax option
19222         RE_NO_EMPTY_ALTS.
19223         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19224         Add documentation of re_set_registers.
19225         Document trick to re-use a pattern buffer by setting fastmap manually.
19226         Update documentation of struct re_pattern_buffer per public members.
19227         Uncomment documentation of equivalence class operators and
19228         collating symbol operators, since they are now implemented,
19229         Explain leftmost-longest matching in relation to alternatives.
19230         Tidy documentation of substring matching.
19231         Remove POSIX documentation, which is done better in
19232         glibc, and refer the reader there. Keep BSD API documentation, as
19233         that is not readily available elsewhere.
19234
19235 2010-09-07  Eric Blake  <eblake@redhat.com>
19236
19237         getopt: handle POSIXLY_CORRECT set but not exported
19238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19239         export state of POSIXLY_CORRECT, due to bash set -o posix.
19240         Reported by Dustin J. Mitchell.
19241
19242 2010-09-05  Bruno Haible  <bruno@clisp.org>
19243
19244         gnulib-tool: Highlight the changed options.
19245         * gnulib-tool (func_usage): Display the --import, --add-import,
19246         --remove-import explanations in bold font.
19247
19248 2010-09-06  Karl Berry  <karl@gnu.org>
19249
19250         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19251
19252 2010-09-05  Bruno Haible  <bruno@clisp.org>
19253
19254         uniwidth/width: Update comment.
19255         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19256         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19257
19258 2010-09-05  Bruno Haible  <bruno@clisp.org>
19259
19260         isinf, isnan: Relax license.
19261         * modules/isinf (License): Change from GPL to LGPL, with consent from
19262         Ben Pfaff.
19263         * modules/isnan (License): Likewise.
19264         Requested by Ludovic Courtès.
19265
19266 2010-09-04  Bruno Haible  <bruno@clisp.org>
19267
19268         gnulib-tool: Help migration from --import to --add-import or --update.
19269         * gnulib-tool: Emit a verbose error message when --import is used
19270         without any module name.
19271
19272 2010-09-04  Bruno Haible  <bruno@clisp.org>
19273
19274         Update doc about gnulib-tool.
19275         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19276         'gnulib-tool --update' in more detail.
19277         Reported by Eric Blake.
19278
19279 2010-09-04  Bruno Haible  <bruno@clisp.org>
19280
19281         gnulib-tool: Change --import. New options --add/remove-import.
19282         * gnulib-tool: New options --add-import, --remove-import.
19283         (func_usage): Document them.
19284         (have_associative): Define always.
19285         (func_import): In import mode, don't merge the specified settings with
19286         the cached settings. Implement remove-import mode.
19287         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19288         Explain when to use them versus --import.
19289         (Simple update): Use --add-import instead of --import.
19290         * NEWS: Mention the change.
19291
19292 2010-09-04  Bruno Haible  <bruno@clisp.org>
19293
19294         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19295         separate gnulib.mk.
19296
19297 2010-09-04  Bruno Haible  <bruno@clisp.org>
19298
19299         gnulib-tool: Don't talk about CVS any more.
19300         * gnulib-tool (func_usage, func_import): Write "version control"
19301         instead of CVS.
19302
19303 2010-09-04  Jim Meyering  <meyering@redhat.com>
19304
19305         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19306         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19307         false positives (whose names may be ill-chosen) when searching
19308         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19309         would cause a false-positive.
19310
19311         avoid coreutils "make distcheck" failure
19312         Coreutils tests with an absolute build directory name that contains
19313         a space.  Not quoting this directory name caused a failure.
19314         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19315         * tests/test-vc-list-files-cvs.sh: Likewise.
19316
19317 2010-09-04  Bruno Haible  <bruno@clisp.org>
19318
19319         gnulib-tool: Avoid error when run in a package without Makefile.am.
19320         * gnulib-tool: When collecting the m4dirs in a package that does not
19321         have a Makefile.am, eliminate those directories that contain no
19322         gnulib-cache.m4. Fix expression that counts these directories.
19323
19324 2010-09-04  Bruno Haible  <bruno@clisp.org>
19325
19326         update-copyright test: Improve output when perl is missing or too old.
19327         * tests/test-update-copyright.sh: Move test of Perl version down after
19328         the test whether Perl exists. Provide an explanation relating Perl's
19329         error message to Automake's SKIP: message.
19330
19331 2010-09-04  Bruno Haible  <bruno@clisp.org>
19332
19333         Don't augment PATH in TESTS_ENVIRONMENT.
19334         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19335         set abs_aux_dir instead of augmenting PATH.
19336         * modules/vc-list-files-tests (Makefile.am): Likewise.
19337         * tests/test-update-copyright.sh: Augment PATH here.
19338         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19339         path_prepend_.
19340         * tests/test-vc-list-files-git.sh: Likewise.
19341
19342 2010-09-04  Jim Meyering  <meyering@redhat.com>
19343
19344         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19345         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19346
19347 2010-09-04  Bruno Haible  <bruno@clisp.org>
19348
19349         strdup: Fix compilation error in C++ mode.
19350         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19351         the macro.
19352
19353 2010-09-04  Bruno Haible  <bruno@clisp.org>
19354
19355         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19356         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19357         macro into a function.
19358         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19359
19360 2010-09-04  Bruno Haible  <bruno@clisp.org>
19361
19362         Set PATH_SEPARATOR the same way autoconf does.
19363         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19364         the value of PATH_SEPARATOR the same way autoconf-generated configure
19365         scripts do.
19366         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19367         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19368
19369 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19370
19371         Set PATH_SEPARATOR the same way autoconf does.
19372         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19373         the same way autoconf-generated configure scripts do.
19374         * posix-modules: Likewise.
19375
19376 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19377
19378         hash: fix safe_hasher const typo
19379         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19380         const; otherwise, there is a type error later.
19381
19382 2010-09-02  Jim Meyering  <meyering@redhat.com>
19383
19384         test-update-copyright.sh: require perl 5.8.0
19385         * tests/test-update-copyright.sh: Require 5.8.0,
19386         which Tom G. Christensen has confirmed is adequate,
19387         while 5.6.1 is not.
19388
19389 2010-09-02  Eric Blake  <eblake@redhat.com>
19390
19391         tests: init.sh improvements for re-exec'ing with zsh
19392         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19393         -vx through shell re-exec.
19394         Reported by Tom G. Christensen.
19395
19396         wctype: fix typo in previous commit
19397         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19398         Reported by Ludovic Courtès.
19399
19400 2010-09-02  Jim Meyering  <meyering@redhat.com>
19401
19402         test-update-copyright.sh: skip test if Perl is too old
19403         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19404         Reported by Tom G. Christensen.
19405
19406 2010-09-02  Bruno Haible  <bruno@clisp.org>
19407
19408         wctype: Avoid compilation error on IRIX 6.5.30.
19409         * lib/wctype.in.h (iswblank): Declare with a replacement if
19410         REPLACE_ISWBLANK is set.
19411         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19412         declared. Set REPLACE_ISWBLANK.
19413         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19414         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19415         * doc/posix-headers/wctype.texi: Likewise.
19416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19417
19418 2010-09-01  Bruno Haible  <bruno@clisp.org>
19419
19420         New module 'socketlib'.
19421         * modules/socketlib: New file.
19422         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19423         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19424         * modules/sockets (Depends-on): Add socketlib.
19425         Suggested by Sam Steingold <sds@gnu.org>.
19426
19427 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19428
19429         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19430
19431         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19432         when one needs search access to a directory but not read access.
19433         On systems where it is available, it works in some cases where
19434         O_RDONLY does not, namely on directories that are searchable but
19435         not readable, and which need only to be searchable.  If O_SEARCH
19436         is not available, fall back to the traditional method of using
19437         O_RDONLY.
19438
19439         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19440         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19441         when opening a directory that needs only to be searchable.
19442         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19443         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19444         * lib/openat-proc.c (openat_proc_name): Likewise.
19445         * lib/openat.c (openat_needs_fchdir): Likewise.
19446         * lib/save-cwd.c (save_cwd): Likewise.
19447         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19448
19449 2010-08-28  Bruno Haible  <bruno@clisp.org>
19450
19451         New module 'host-cpu-c-abi'.
19452         * modules/host-cpu-c-abi: New file.
19453         * m4/host-cpu-c-abi.m4: New file, based on part of
19454         clisp/src/m4/general.m4.
19455         Requested by Sam Steingold <sds@gnu.org>.
19456
19457 2010-08-31  Eric Blake  <eblake@redhat.com>
19458         and Jim Meyering  <meyering@redhat.com>
19459
19460         hash: factor, and guard against misbehaving hasher function
19461         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19462         of table->hasher's return value.  Also protect against a hash value
19463         so large that adding it to table->bucket results in a NULL pointer.
19464         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19465         Use it in place of open-coded check-and-abort.
19466
19467 2010-08-30  Bruno Haible  <bruno@clisp.org>
19468
19469         hash: silence spurious clang warning
19470         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19471         Reported by Eric Blake.
19472
19473 2010-08-30  Eric Blake  <eblake@redhat.com>
19474
19475         strstr, memmem, strcasestr: avoid leaked shell message
19476         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19477         FreeBSD.
19478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19480
19481         tests: silence clang warning
19482         * tests/test-malloca.c (do_allocation): Avoid dead store.
19483
19484 2010-08-29  Bruno Haible  <bruno@clisp.org>
19485
19486         gettext: Fix recent mistake.
19487         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19488
19489 2010-08-29  Bruno Haible  <bruno@clisp.org>
19490
19491         selinux-h: Offer a --without-selinux option.
19492         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19493         --without-selinux was specified, skip all tests and define
19494         HAVE_SELINUX_SELINUX_H to 0.
19495         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19496         set LIB_SELINUX to empty.
19497         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19498         gl_LIBSELINUX. If --without-selinux was specified, replace
19499         selinux/context.h.
19500         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19501
19502 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19503             Bruno Haible  <bruno@clisp.org>
19504
19505         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19506         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19507         of HAVE_REALLOC.
19508         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19509         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19510         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19511         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19512
19513 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19514             Bruno Haible  <bruno@clisp.org>
19515
19516         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19517         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19518         HAVE_CALLOC.
19519         * lib/xmalloc.c: Update accordingly.
19520         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19521         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19522         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19523
19524 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19525             Bruno Haible  <bruno@clisp.org>
19526
19527         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19528         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19529         HAVE_MALLOC.
19530         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19531         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19532         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19533
19534 2010-08-29  Bruno Haible  <bruno@clisp.org>
19535
19536         Update modules list.
19537         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19538         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19539         (String handling <string.h>): Add astrxfrm.
19540         (File system functions): Add readlinkat.
19541
19542 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19543
19544         Tests for module 'realloc-gnu'.
19545         * modules/realloc-gnu-tests: New file.
19546         * tests/test-realloc-gnu.c: New file.
19547
19548         Tests for module 'calloc-gnu'.
19549         * modules/calloc-gnu-tests: New file.
19550         * tests/test-calloc-gnu.c: New file.
19551
19552         Tests for module 'malloc-gnu'.
19553         * modules/malloc-gnu-tests: New file.
19554         * tests/test-malloc-gnu.c: New file.
19555
19556 2010-08-28  Bruno Haible  <bruno@clisp.org>
19557
19558         Rename module 'realloc' -> 'realloc-gnu'.
19559         * modules/realloc-gnu: New file, copied from modules/realloc.
19560         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19561         obsolete.
19562         * modules/mgetgroups (Depends-on): Update.
19563         * doc/posix-functions/realloc.texi: Update.
19564         * NEWS: Mention the change.
19565
19566         Rename module 'calloc' -> 'calloc-gnu'.
19567         * modules/calloc-gnu: New file, copied from modules/calloc.
19568         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19569         obsolete.
19570         * doc/posix-functions/calloc.texi: Update.
19571         * NEWS: Mention the change.
19572
19573         Rename module 'malloc' -> 'malloc-gnu'.
19574         * modules/malloc-gnu: New file, copied from modules/malloc.
19575         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19576         obsolete.
19577         * modules/argp (Depends-on): Update.
19578         * modules/regex (Depends-on): Update.
19579         * doc/posix-functions/malloc.texi: Update.
19580         * NEWS: Mention the change.
19581
19582 2010-08-28  Eric Blake  <eblake@redhat.com>
19583
19584         pread, pwrite: add missing dependency
19585         * modules/pread (Depends-on): Add extensions.
19586         * modules/pwrite (Depends-on): Likewise.
19587
19588 2010-08-28  Bruno Haible  <bruno@clisp.org>
19589
19590         unistr/u*-strchr: Fix tests dependencies.
19591         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19592         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19593         Reported by Ian Beckwith <ianb@erislabs.net>.
19594
19595 2010-08-28  Bruno Haible  <bruno@clisp.org>
19596
19597         read-file: Don't occupy too much unused memory.
19598         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19599
19600 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19601             Eric Blake  <eblake@redhat.com>
19602             Bruno Haible  <bruno@clisp.org>
19603
19604         read-file: Avoid memory reallocations with regular files.
19605         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19606         (fread_file): With regular files, use the remaining length as the
19607         initial buffer size.  Check against overflow.
19608         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19609         sys_stat.
19610
19611 2010-08-28  Bruno Haible  <bruno@clisp.org>
19612
19613         ftello: Relax license.
19614         * modules/ftello (License): Relax to LGPLv2+.
19615         Reported by Eric Blake.
19616
19617 2010-08-28  Bruno Haible  <bruno@clisp.org>
19618
19619         Avoid relocwrapper link errors due to gnulib replacement functions.
19620         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19621         function.
19622         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19623
19624 2010-08-28  Bruno Haible  <bruno@clisp.org>
19625
19626         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19627         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19628         defined.
19629         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19630         Suggested by Eric Blake.
19631
19632 2010-08-28  Bruno Haible  <bruno@clisp.org>
19633
19634         sys_socket, netdb: Ensure socklen_t gets defined.
19635         * modules/sys_socket (Depends-on): Add socklen.
19636         * modules/netdb (Depends-on): Likewise.
19637         * modules/getaddrinfo (Depends-on): Remove socklen.
19638         * modules/getsockopt (Depends-on): Likewise.
19639         * modules/setsockopt (Depends-on): Likewise.
19640         * tests/test-sys_socket.c: Check that socklen_t is defined.
19641         * tests/test-netdb.c: Likewise.
19642         * m4/socklen.m4: Update comments.
19643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19644
19645 2010-08-27  Eric Blake  <eblake@redhat.com>
19646
19647         login_tty: add missing dependency
19648         * modules/login_tty (Depends-on): Add pty.
19649
19650 2010-08-26  Eric Blake  <eblake@redhat.com>
19651
19652         lib-symbol-versions: fix m4 quoting
19653         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19654         format for AC_LINK_IFELSE.
19655
19656         glob: fix compile test
19657         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19658
19659         btowc: fix missing file
19660         * modules/btowc (Files): Also ship locale-fr.m4.
19661
19662         lseek: fix link test
19663         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19664         AC_LINK_IFELSE.
19665
19666         include_next: silence autoconf 2.68 warning
19667         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19668         AC_COMPILE_IFELSE as special.
19669         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19670         autoconf < 2.68.
19671
19672         acl: fix compilation test
19673         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19674         AC_COMPILE_IFELSE.
19675
19676 2010-08-26  Bruno Haible  <bruno@clisp.org>
19677
19678         Modernize AC_TRY_RUN invocations.
19679         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19680         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19681         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19682         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19683         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19684         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19687         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19688         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19689         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19690         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19691         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19692         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19694         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19695         gl_MBRLEN_NUL_RETVAL): Likewise.
19696         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19697         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19698         Likewise.
19699         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19700         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19701         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19702         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19703         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19704         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19705         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19706         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19707         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19708         Likewise.
19709         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19710         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19712         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19713         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19714         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19715         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19716         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19717         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19719
19720 2010-08-26  Bruno Haible  <bruno@clisp.org>
19721
19722         Modernize AC_TRY_LINK invocations.
19723         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19724         AC_TRY_LINK.
19725         * m4/argp.m4 (gl_ARGP): Likewise.
19726         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19727         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19728         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19729         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19730         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19731         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19732         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19733         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19734         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19735         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19736         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19737         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19738         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19739         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19740         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19741         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19742         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19743         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19744         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19745         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19746         Likewise.
19747         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19748         Likewise.
19749         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19750         Likewise.
19751         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19753         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19754         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19755         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19756         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19757         * m4/servent.m4 (gl_SERVENT): Likewise.
19758         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19759         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19760         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19761         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19762         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19763         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19764         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19765         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19766         * modules/tsearch-tests (configure.ac): Likewise.
19767
19768 2010-08-26  Bruno Haible  <bruno@clisp.org>
19769
19770         Modernize AC_TRY_COMPILE invocations.
19771         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19772         AC_TRY_COMPILE.
19773         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19774         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19775         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19776         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19777         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19778         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19779         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19780         * m4/lock.m4 (gl_LOCK): Likewise.
19781         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19782         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19783         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19784         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19785         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19786         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19787         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19789         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19790         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19791         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19792         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19793         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19794         extraneous semicolon.
19795
19796 2010-08-26  Jim Meyering  <meyering@redhat.com>
19797
19798         stat-time: relax license LGPL
19799         * modules/stat-time (License): Change from GPL to LGPL,
19800         with consent from all contributors, for use in libguile.
19801         Requested by Ludovic Courtès.
19802
19803 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19804
19805         poll: return immediately on POLLHUP.
19806         * lib/poll.c (poll): Always set timeout before wait_timeout is
19807         computed.
19808
19809 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19810
19811         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19812         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19813         rmdir ("dir/.//"), unlinkat.
19814
19815 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19816
19817         stdbool: avoid spurious failure with modern xlc
19818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19819
19820 2010-08-24  Bruno Haible  <bruno@clisp.org>
19821
19822         getloadavg: simplify code
19823         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19824         gl_have_func. Update comments.
19825
19826 2010-08-24  Eric Blake  <eblake@redhat.com>
19827
19828         getloadavg: don't define SVR4 on cygwin
19829         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19830         only define SVR4 when -lkvm is required.
19831         Reported by Yaakov Selkowitz.
19832
19833 2010-08-24  Bruno Haible  <bruno@clisp.org>
19834
19835         priv-set: fix comment
19836         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19837
19838 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19839
19840         priv-set: fix comments
19841         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19842         to match code, as suggested by David Bartley in:
19843         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19844
19845 2010-08-23  Eric Blake  <eblake@redhat.com>
19846
19847         stdbool: avoid rejecting clang
19848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19849         * tests/test-stdbool.c: Enable more tests if using the system
19850         <stdbool.h> instead of the gnulib replacement.
19851         (main): Move xlc bug test to a runtime test for all compilers.
19852         Reported by Anders Kaseorg.
19853
19854         argz: fix shell quoting issue
19855         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19856         Reported by Charles Wilson.
19857
19858 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19859             Erik Faye-Lund <kusmabite@gmail.com>
19860
19861         poll, select: handle ERROR_BROKEN_PIPE.
19862         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19863         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19864         * lib/select.c (win32_compute_revents): Do not mark a pipe
19865         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19866
19867 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19868
19869         fts: allow compilation with C++
19870         * lib/fts_.h: Specify extern "C" linkage with C++.
19871
19872 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19873
19874         Fix gnulib-tool sed script de-commentation for AIX sed.
19875         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19876         sed.
19877
19878 2010-08-17  Eric Blake  <eblake@redhat.com>
19879
19880         test-stddef: test for (some) offsetof bugs
19881         * tests/test-stddef.c: Enhance test to ensure correct type of
19882         offsetof.
19883         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19884         that we are not fixing at this time.
19885
19886 2010-08-15  Bruno Haible  <bruno@clisp.org>
19887
19888         stpncpy: Allow stpncpy to be defined as a macro.
19889         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19890         if it's already correctly declared.
19891         * lib/string.in.h (stpncpy): Undefine before redefining.
19892         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19893
19894 2010-08-14  Bruno Haible  <bruno@clisp.org>
19895
19896         Rename module 'memxfrm' to 'amemxfrm'.
19897         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19898         (amemxfrm): Renamed from memxfrm.
19899         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19900         (amemxfrm): Renamed from memxfrm.
19901         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19902         * NEWS: Mention the change.
19903         * MODULES.html.sh (String handling <string.h>): Update.
19904         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19905         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19906         * lib/unicase/u16-casexfrm.c: Likewise.
19907         * lib/unicase/u32-casexfrm.c: Likewise.
19908         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19909         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19910         * lib/uninorm/u16-normxfrm.c: Likewise.
19911         * lib/uninorm/u32-normxfrm.c: Likewise.
19912         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19913         memxfrm.
19914         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19915         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19916         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19917         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19918         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19919         Suggested by Paul Eggert.
19920
19921 2010-08-14  Bruno Haible  <bruno@clisp.org>
19922
19923         Tests for module 'astrxfrm'.
19924         * modules/astrxfrm-tests: New file.
19925         * tests/test-astrxfrm.c: New file.
19926
19927         New module 'astrxfrm'.
19928         * lib/astrxfrm.h: New file.
19929         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19930         * modules/astrxfrm: New file.
19931
19932 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19933
19934         regex: Tweak doc.
19935         * doc/regex.texi (Overview): Don't mention regex.c.
19936         (GNU Regular Expression Compiling): Likewise.
19937         (Match-end-of-line Operator): Mention 'not_eol'.
19938
19939 2010-08-14  Brian Gough  <bjg@gnu.org>
19940             Bruno Haible  <bruno@clisp.org>
19941
19942         git-merge-changelog: add doc relating to use with bzr and hg.
19943         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19944
19945 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19946
19947         pthread: fix pthread.h creation for srcdir != builddir
19948         * modules/pthread (Makefile.am): Fix the rule to work also in a
19949         non-srcdir build.
19950
19951 2010-08-13  Karl Berry  <karl@gnu.org>
19952
19953         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19954         * doc/posix-*/*: force line break before @url of POSIX
19955         specifications.
19956         Suggested by Werner Lemberg.
19957
19958 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19959
19960         strtod: fix const diagnostic
19961         * lib/strtod.c (strtod): Don't assign const char * to char *,
19962         as this elicits a warning from GCC when warnings are enabled.
19963
19964 2010-08-10  Pádraig Brady <P@draigbrady.com>
19965         and Eric Blake  <eblake@redhat.com>
19966
19967         copy-acl: ignore ENOTSUP on HP-UX
19968         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19969         so that it is available for HP-UX.
19970         * lib/copy-acl.c (qcopy_acl): Use it.
19971         Reported by Patrick M. Callahan.
19972
19973 2010-08-10  Eric Blake  <eblake@redhat.com>
19974
19975         open, chown: relax license
19976         * modules/open (License): Change to LGPLv2+, with consent by all
19977         authors, for use in augeas.
19978         * modules/chown (License): Likewise.
19979         * modules/lchown (Likewise): Likewise.
19980         Requested by Adam Stokes.
19981
19982 2010-08-09  Karl Berry  <karl@gnu.org>
19983
19984         * build-aux/ar-lib: new file, import from Automake.
19985         * config/srclist.txt: autocheck for updates.
19986
19987 2010-08-09  Eric Blake  <eblake@redhat.com>
19988
19989         readlinkat: adjust client modules
19990         * modules/areadlinkat (Depends-on): Use readlinkat, not
19991         symlinkat.
19992         * modules/areadlinkat-with-size (Depends-on): Likewise.
19993
19994         mknod: be more vocal about danger of running tests as root
19995         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19996         root, since that is just asking for problems.
19997         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19998
19999         readlinkat: split into its own module
20000         * modules/symlinkat: Split readlinkat...
20001         * modules/readlinkat: ...into separate module.
20002         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20003         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20004         * lib/symlinkat.c (readlinkat): Move...
20005         * lib/readlinkat.c: ...into new file.
20006         * modules/symlinkat-tests: Split readlinkat test...
20007         * modules/readlinkat-tests: ...into separate module.
20008         * tests/test-symlinkat.c: Split...
20009         * tests/test-readlinkat.c: ...into new file.
20010         * NEWS: Document the split.
20011         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20012         * lib/unistd.in.h (readlinkat): Likewise.
20013         Suggested by Bruno Haible.
20014
20015 2010-08-08  Bruno Haible  <bruno@clisp.org>
20016
20017         memxfrm: Speed up.
20018         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20019         that usually only one call to strxfrm is necessary for each string
20020         part.
20021         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20022
20023 2010-08-07  Karl Berry  <karl@gnu.org>
20024
20025         * doc/posix-headers/limits.texi,
20026         * doc/posix-functions/malloc.texi,
20027         * doc/posix-functions/strsignal.texi: missing @item.
20028         * doc/ld-version-script.texi: spurious leading i.
20029         * doc/regex.texi (Interval Operators): no commas inside @var.
20030
20031 2010-08-01  Bruno Haible  <bruno@clisp.org>
20032
20033         Integrate the regex documentation.
20034         * doc/gnulib.texi: Define 'cn' index.
20035         (Regular expressions): New a chapter that includes regex.texi and
20036         regexprops-generic.texi.
20037         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20038         syntax.
20039
20040         Whitespace cleanup.
20041         * doc/regex.texi: Remove trailing spaces.
20042
20043         Add regex documentation.
20044         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20045         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20046         Written by Kathy A. Hargreaves and Karl Berry.
20047
20048 2010-08-01  Bruno Haible  <bruno@clisp.org>
20049
20050         link: Update documentation.
20051         * doc/posix-functions/link.texi: Update regarding Solaris.
20052
20053 2010-07-31  Bruno Haible  <bruno@clisp.org>
20054
20055         Update modules list.
20056         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20057         (String handling <string.h>): Add memcmp2, memxfrm.
20058         (Container data structures): Add xlist, xsublist, xoset.
20059         (Core language properties): Add alignof, unused-parameter.
20060         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20061         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20062         (Unibyte characters <ctype.h>): New section.
20063         (String handling <string.h>): New section.
20064         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20065         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20066         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20067         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20068         tan, tanh, tanl, y0, y1, yn.
20069         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20070         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20071         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20072         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20073         unlockpt, vdprintf, vdprintf-posix.
20074         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20075         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20076         xconcat-filename.
20077         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20078         getdtablesize, pipe2, pipe2-safer.
20079         (Security): New section.
20080         (Networking functions): Add accept4.
20081         (Signal handling): Add sigpipe.
20082         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20083         mbmemcasecoll.
20084         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20085         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20086         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20087         pipe-filter-ii.
20088         (Misc): Add argp-version-etc, login_tty, parse-duration.
20089
20090 2010-07-31  Bruno Haible  <bruno@clisp.org>
20091
20092         Improve doc in MODULES.html.
20093         * modules/linkat (Description): Add the word "function".
20094         * modules/mkfifo (Description): Likewise.
20095         * modules/mknod (Description): Likewise.
20096         * modules/remove (Description): Likewise.
20097         * modules/renameat (Description): Likewise.
20098         * modules/stat (Description): Likewise.
20099         * modules/symlink (Description): Likewise.
20100         * modules/unlink (Description): Likewise.
20101
20102 2010-07-31  Bruno Haible  <bruno@clisp.org>
20103
20104         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20105         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20106         option --enable/disable-c++ instead of --enable/disable-cxx.
20107         * NEWS: Mention the change.
20108
20109 2010-07-31  Bruno Haible  <bruno@clisp.org>
20110
20111         readlink, areadlink: Relax test a bit.
20112         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20113         alternative to ENOTDIR.
20114         * tests/test-areadlink.h (test_areadlink): Likewise.
20115         Reported by Rainer Tammer.
20116
20117 2010-07-31  Bruno Haible  <bruno@clisp.org>
20118
20119         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20120         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20121         character, perform the search using U_STRCHR.
20122         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20123         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20124         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20125         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20126         Suggested by Paolo Bonzini.
20127
20128 2010-07-31  Bruno Haible  <bruno@clisp.org>
20129
20130         unistr/u*-strstr: Fix dependencies.
20131         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20132         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20133         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20134
20135 2010-07-31  Bruno Haible  <bruno@clisp.org>
20136
20137         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20138         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20139         the beginning of the loop.
20140         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20141         cases in 'switch' statement.
20142
20143         unistr/u8-strchr: Fix several bugs.
20144         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20145         the string. When not found, return NULL, not a pointer near the end.
20146
20147         More tests for unistr/u8-strchr.
20148         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20149         that the function does not read past the first occurrence of the byte
20150         being searched.
20151         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20152         * tests/unistr/test-u16-strchr.c (main): New function.
20153         * tests/unistr/test-u32-strchr.c (main): New function.
20154
20155 2010-07-31  Bruno Haible  <bruno@clisp.org>
20156
20157         posix-modules: Ignore backup files of documentation files.
20158         * posix-modules: grep only through files named *.texi.
20159
20160 2010-07-31  Bruno Haible  <bruno@clisp.org>
20161
20162         symlinkat: Fix documentation.
20163         * doc/posix-functions/readlinkat.texi: Fix module name.
20164
20165 2010-07-31  Bruno Haible  <bruno@clisp.org>
20166
20167         fchownat: Replace also when chown has the trailing slash bug.
20168         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20169         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20170         introduced on 2010-04-10.
20171         Reported by Rainer Tammer.
20172
20173 2010-07-31  Bruno Haible  <bruno@clisp.org>
20174
20175         linkat: Work around AIX 7.1 bug.
20176         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20177         whether linkat handles trailing slash correctly. If not, replace linkat
20178         and define LINKAT_TRAILING_SLASH_BUG.
20179         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20180         check whether (fd1,file1) points to a directory if file1 or file2 ends
20181         in a slash. Code taken from lib/link.c.
20182         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20183         Reported by Rainer Tammer.
20184
20185 2010-07-31  Bruno Haible  <bruno@clisp.org>
20186
20187         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20188         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20189         This disables an xlc optimization that was causing wrong test results.
20190         Reported by Rainer Tammer.
20191
20192 2010-07-31  Bruno Haible  <bruno@clisp.org>
20193
20194         iconv: Work around AIX 6.1..7.1 bug.
20195         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20196         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20197         cross-compiling, guess no on all versions of AIX.
20198         Reported by Rainer Tammer.
20199
20200 2010-07-31  Bruno Haible  <bruno@clisp.org>
20201
20202         readlink: Relax test a bit.
20203         * tests/test-readlink.h (test_readlink): Allow different errno value
20204         when readlink is called with a file name that ends in / and refers to
20205         a file.
20206         Suggested by Eric Blake.
20207         Reported by Rainer Tammer.
20208
20209 2010-07-31  Bruno Haible  <bruno@clisp.org>
20210
20211         copysign: Does not require -lm on glibc systems.
20212         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20213         gl_COMMON_DOUBLE_MATHFUNC.
20214         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20215
20216 2010-07-31  Bruno Haible  <bruno@clisp.org>
20217
20218         duplocale: Work around AIX 7.1 bug.
20219         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20220         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20221         * lib/duplocale.c (rpl_duplocale): Update comment.
20222         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20223         Reported by Rainer Tammer.
20224
20225 2010-07-30  Bruno Haible  <bruno@clisp.org>
20226
20227         dirfd: Avoid link error on AIX 7.1.
20228         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20229         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20230         exist, set REPLACE_DIRFD.
20231         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20232         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20233         * doc/posix-functions/dirfd.texi: Update.
20234         Reported by Rainer Tammer.
20235
20236 2010-07-30  Eric Blake  <eblake@redhat.com>
20237
20238         strtod: next round of AIX fixes
20239         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20240         exponent.
20241         * tests/test-strtod.c (main): Enhance tests.
20242         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20243         Reported by Rainer Tammer.
20244
20245         futimens: fix configure check
20246         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20247         Reported by Bruno Haible.
20248
20249 2010-07-30  Bruno Haible  <bruno@clisp.org>
20250
20251         getline: Update regarding AIX.
20252         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20253         Reported by Rainer Tammer.
20254
20255 2010-07-30  Bruno Haible  <bruno@clisp.org>
20256
20257         wcwidth: Drop replacement on AIX 7.
20258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20259         AIX 7.
20260         Reported by Rainer Tammer.
20261
20262 2010-07-30  Bruno Haible  <bruno@clisp.org>
20263
20264         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20265         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20266         a 'char *'.
20267         Reported by Rainer Tammer.
20268
20269 2010-07-30  Bruno Haible  <bruno@clisp.org>
20270
20271         unlink: Update regarding AIX.
20272         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20273         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20274         Reported by Rainer Tammer.
20275
20276 2010-07-30  Bruno Haible  <bruno@clisp.org>
20277
20278         symlink: Update regarding AIX.
20279         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20280         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20281         Reported by Rainer Tammer.
20282
20283 2010-07-30  Bruno Haible  <bruno@clisp.org>
20284
20285         strndup: Update regarding AIX.
20286         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20287         AIX 7.
20288         Reported by Rainer Tammer.
20289
20290 2010-07-30  Bruno Haible  <bruno@clisp.org>
20291
20292         stat: Update regarding AIX.
20293         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20294         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20295         Reported by Rainer Tammer.
20296
20297 2010-07-30  Bruno Haible  <bruno@clisp.org>
20298
20299         truncl: Fix autoconf test.
20300         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20301         whether truncl works.
20302         Reported by Rainer Tammer.
20303
20304 2010-07-30  Bruno Haible  <bruno@clisp.org>
20305
20306         round: Update regarding AIX.
20307         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20308         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20309         Reported by Rainer Tammer.
20310
20311 2010-07-30  Bruno Haible  <bruno@clisp.org>
20312
20313         rename: Update regarding AIX.
20314         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20315         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20316         Reported by Rainer Tammer.
20317
20318 2010-07-30  Bruno Haible  <bruno@clisp.org>
20319
20320         printf.m4: Update regarding AIX.
20321         * m4/printf.m4: Update comments regarding AIX.
20322         Reported by Rainer Tammer.
20323
20324 2010-07-30  Bruno Haible  <bruno@clisp.org>
20325
20326         iconv: Update regarding AIX.
20327         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20328         AIX 7.
20329         Reported by Rainer Tammer.
20330
20331 2010-07-30  Bruno Haible  <bruno@clisp.org>
20332
20333         getopt: Update regarding AIX.
20334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20335         no on AIX.
20336         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20337         Reported by Rainer Tammer.
20338
20339 2010-07-30  Bruno Haible  <bruno@clisp.org>
20340
20341         ldexpl; Update regarding AIX.
20342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20343         on AIX 7.
20344         Reported by Rainer Tammer.
20345
20346 2010-07-30  Bruno Haible  <bruno@clisp.org>
20347
20348         frexpl: Update regarding AIX.
20349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20350         on AIX 7.
20351         Reported by Rainer Tammer.
20352
20353 2010-07-30  Bruno Haible  <bruno@clisp.org>
20354
20355         open, fopen: Update regarding AIX.
20356         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20357         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20358         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20359         * doc/posix-functions/fopen.texi: Likewise.
20360         Reported by Rainer Tammer.
20361
20362 2010-07-30  Bruno Haible  <bruno@clisp.org>
20363
20364         chown: Update doc regarding AIX.
20365         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20366         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20367         Reported by Rainer Tammer.
20368
20369 2010-07-30  Eric Blake  <eblake@redhat.com>
20370
20371         strtod: fix bug in replacement function on AIX
20372         * lib/strtod.c (strtod): Special case broken "0x" parse in
20373         underlying strtod.
20374         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20375         * doc/posix-functions/strtod.texi (strtod): Likewise.
20376         Reported by Rainer Tammer.
20377
20378 2010-07-30  Bruno Haible  <bruno@clisp.org>
20379
20380         mbrlen: Fix cross-compilation guess for AIX.
20381         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20382         guess. Leftover from 2008-12-22.
20383
20384 2010-07-30  Bruno Haible  <bruno@clisp.org>
20385
20386         mbrtowc: Fix cross-compilation guess for AIX.
20387         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20388         guess. Leftover from 2008-12-21.
20389
20390 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20391
20392         init.sh: work around trap limitation of some shells
20393         * tests/init.sh (setup_): Move exit trap outside of shell function.
20394
20395 2010-07-29  Eric Blake  <eblake@redhat.com>
20396
20397         strtod: aid debugging
20398         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20399         understanding why strtod is rejected.
20400
20401 2010-07-28  Bruno Haible  <bruno@clisp.org>
20402
20403         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20404         * lib/unistr/u8-chr.c: Include <string.h>.
20405         * tests/unistr/test-u8-chr.c: Likewise.
20406         * tests/unistr/test-u16-chr.c: Likewise.
20407         * tests/unistr/test-u32-chr.c: Likewise.
20408         * tests/unistr/test-u8-strchr.c: Likewise.
20409         * tests/unistr/test-u16-strchr.c: Likewise.
20410         * tests/unistr/test-u32-strchr.c: Likewise.
20411         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20412         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20413         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20414         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20415
20416 2010-07-28  Bruno Haible  <bruno@clisp.org>
20417
20418         Use spaces for indentation, not tabs.
20419         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20420
20421 2010-07-27  Bruno Haible  <bruno@clisp.org>
20422
20423         mbspcasecmp: Fix function specification.
20424         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20425         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20426         Reported by Eric Blake <eblake@redhat.com>.
20427
20428 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20429
20430         timespec: use cast and not conditional, as truncation isn't possible
20431         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20432         instead of a conditional.  Comment about the situation in more detail.
20433         This undoes most of the 2009-10-29 patch.
20434
20435 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20436
20437         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20438         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20439         * lib/unistr/u8-strchr.c: Likewise.
20440         * modules/unistr/u8-chr: Depend on memchr.
20441
20442         unistr/u*-strchr: add tests
20443         * modules/unistr/u8-strchr-tests: New file.
20444         * modules/unistr/u16-strchr-tests: New file.
20445         * modules/unistr/u32-strchr-tests: New file.
20446         * tests/unistr/test-strchr.h: New file.
20447         * tests/unistr/test-u8-strchr.c: New file.
20448         * tests/unistr/test-u16-strchr.c: New file.
20449         * tests/unistr/test-u32-strchr.c: New file.
20450
20451         unistr/u*-chr: test multibyte sequences more
20452         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20453         test vector.
20454         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20455         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20456         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20457
20458         unistr/u*-chr: test multibyte sequences
20459         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20460
20461         unistr/u*-chr: prepare for multibyte tests
20462         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20463         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20464         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20465         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20466         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20467         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20468
20469 2010-07-18  Bruno Haible  <bruno@clisp.org>
20470
20471         unistr/u8-strchr: Optimize non-ASCII argument case.
20472         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20473         because the first byte often matches anyway.
20474         Reported by Pádraig Brady <P@draigbrady.com>.
20475
20476 2010-07-15  Karl Berry  <karl@gnu.org>
20477
20478         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20479
20480 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20481
20482         getcwd: on Solaris, work better if ancestors are inaccessible
20483         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20484         buffer and size, try again with a large buffer.  This works better
20485         on Solaris, since its getcwd succeeds even if the path to the root
20486         is inaccessible, and this is helpful in common cases such as .zfs
20487         hidden directories.  Problem reported by J Chapman Flack in
20488         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20489         Use system getcwd if it's declared, not merely if it's partly
20490         working; use the partly-working test only to avoid needless effort
20491         if the system getcwd fails.
20492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20493         comment that was already obsolete and is now even more obsolete.
20494         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20495         now might call strdup.
20496
20497 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20498
20499         pthread: Add enough so that coreutils/src/sort.c compiles.
20500         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20501         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20502         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20503         Include <sys/types.h>, in case it defines pthread_t.
20504         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20505         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20506         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20507         (pthread_rwlockattr_t, pthread_spinlock_t):
20508         New typedefs, if HAVE_PTHREAD_T is not defined.
20509         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20510         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20511         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20512         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20513         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20514         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20515         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20516         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20517         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20518         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20519         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20520         New macros.
20521         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20522         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20523         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20524         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20525         (pthread_spin_unlock): New dummy functions.
20526         (pthread_create): Return EAGAIN; don't set errno.
20527         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20528         require AC_C_INLINE.
20529         * modules/pthread (Depends-on): Add sched, time.
20530         (pthread.h): Use AM_V_GEN.
20531
20532 2010-07-13  Bruno Haible  <bruno@clisp.org>
20533
20534         striconveh: Don't malloc memory if the result buffer is sufficient.
20535         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20536         buffer if its size is sufficient.
20537         Reported by Ludovic Courtès <ludo@gnu.org>.
20538
20539 2010-07-13  Bruno Haible  <bruno@clisp.org>
20540
20541         strtod: Add safety check.
20542         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20543
20544 2010-07-12  Bruno Haible  <bruno@clisp.org>
20545
20546         Unify tests that set gl_cv_func_ldexpl_no_libm.
20547         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20548         gl_FUNC_LDEXPL.
20549         (gl_FUNC_LDEXPL): Invoke it.
20550         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20551
20552 2010-07-12  Bruno Haible  <bruno@clisp.org>
20553
20554         Unify tests that set gl_cv_func_ldexp_no_libm.
20555         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20556         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20557         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20558         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20559         * modules/strtod (Files): Add m4/ldexp.m4.
20560
20561 2010-07-12  Bruno Haible  <bruno@clisp.org>
20562
20563         Unify tests that set gl_cv_func_frexpl_no_libm.
20564         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20565         gl_FUNC_FREXPL_NO_LIBM.
20566         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20567         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20568
20569 2010-07-12  Bruno Haible  <bruno@clisp.org>
20570
20571         Unify tests that set gl_cv_func_frexp_no_libm.
20572         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20573         gl_FUNC_FREXP_NO_LIBM.
20574         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20575         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20576
20577 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20578
20579         memcoll: clarify sizes versus lengths, document better, and tweak perf
20580         * lib/memcoll.c (strcoll_loop, memcoll0):
20581         Improve quality of descriptive comments.  Name variables
20582         consistently as to whether they are lengths (which do not include
20583         terminating null) versus sizes (which do).
20584         * lib/xmemcoll.c (xmemcoll0): Likewise.
20585         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20586         returned when s1size == 0; this is easier to compile and saves
20587         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20588
20589 2010-07-12  Bruno Haible  <bruno@clisp.org>
20590
20591         Tests for module '_Exit'.
20592         * modules/_Exit-tests: New file.
20593         * tests/test-_Exit.sh: New file.
20594         * tests/test-_Exit.c: New file.
20595
20596         New module '_Exit'.
20597         * lib/stdlib.in.h (__attribute__): New macro.
20598         (_Exit): New declaration.
20599         * lib/_Exit.c: New file.
20600         * m4/_Exit.m4: New file.
20601         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20602         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20603         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20604         * modules/_Exit: New file.
20605         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20606         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20607
20608 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20609
20610         strtod: make it more-accurate typically, and don't require libm
20611         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20612         Include limits.h.  Don't include string.h.
20613         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20614         (locale_isspace): New function, so that no casts are needed to
20615         check whether *s is a space.
20616         (ldexp): Provide an unused dummy if not available.
20617         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20618         (strtod): Use them.  This implementation prefers to use the
20619         underlying strtod if available, falling back on our own code
20620         only to fix known bugs.  This is more likely to produce an
20621         accurate result.  Also, it avoids the use of libm functions.
20622         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20623         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20624         was absent, but it caused a test failure with coreutils.
20625         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20626         with libm.
20627         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20628         * modules/strtod-tests (Makefile.am): Likewise.
20629
20630 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20631             Bruno Haible  <bruno@clisp.org>
20632
20633         unistr/u8-strchr: Optimize ASCII argument case.
20634         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20635
20636 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20637
20638         (x)memcoll: minor tweaks
20639         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20640         is after the type that it qualifies.
20641         (memcoll0): Likewise.
20642         * lib/memcoll.h (memcoll0): Likewise.
20643         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20644         * lib/xmemcoll.h (xmemcoll0): Likewise.
20645         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20646         differs from memcoll in that the NUL byte is part of the argument.
20647         Omit the abort-checks, as performance is a real issue here.  Plus,
20648         the checks were wrong anyway (an off-by-one error).  Omit local
20649         variable 'diff', as it's a bit clearer that way.
20650         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20651         no longer needed.
20652
20653 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20654
20655         (x)memcoll: speedup when input is known to be NUL delimited
20656         * lib/memcoll.c: Include stdlib.
20657         (memcoll0): New function.
20658         (strcoll_loop): New function, refactored for use in both memcoll
20659         and memcoll0.
20660         * lib/memcoll.h (memcoll0): Add prototype.
20661         * lib/xmemcoll.c (xmemcoll0): New function.
20662         (collate_error): New function, refactored for use in both xmemcoll
20663         and xmemcoll0.
20664         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20665         * m4/memcoll.m4: add inline invocation.
20666
20667 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20668
20669         * build-aux/bootstrap: Remove any local translations
20670         from the translation project synchronization directory,
20671         so that local only translations are not distributed.
20672
20673 2010-07-04  Bruno Haible  <bruno@clisp.org>
20674
20675         fsusage: Clarify which code applies to which platforms.
20676         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20677         platform.
20678         * lib/fsusage.c (get_fs_usage): Likewise.
20679
20680 2010-07-04  Bruno Haible  <bruno@clisp.org>
20681
20682         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20683         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20684         Reported by Martin Lambers <marlam@marlam.de>.
20685
20686 2010-07-04  Jim Meyering  <meyering@redhat.com>
20687
20688         hash: once again explicitly disallow insertion of NULL
20689         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20690         inserting a NULL pointer cannot work with these functions.
20691         Add a comment with details.
20692         This reverts part of the 2010-07-01 commit, 5bef1a35
20693         "hash: extend module to deal with non-pointer keys".
20694
20695 2010-07-01  Bruno Haible  <bruno@clisp.org>
20696
20697         stdbool: Update doc.
20698         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20699         Info from Christian Weisgerber <naddy@mips.inka.de>.
20700
20701 2010-07-01  Jim Meyering  <meyering@redhat.com>
20702
20703         hash: extend module to deal with non-pointer keys
20704         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20705         but that allows insertion of non-pointer entries.
20706         Do not disallow an ENTRY value of NULL.
20707         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20708         * lib/hash.h (hash_insert0): Declare.
20709
20710 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20711
20712         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20713         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20714         not present (i.e. with autoconf 2.59 and when using gettextize, not
20715         gnulib), require AC_GNU_SOURCE instead.
20716
20717 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20718
20719         idpriv-drop: Fix tests.
20720         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20721         not to the test-idpriv-droptemp program.
20722
20723 2010-06-29  Bruno Haible  <bruno@clisp.org>
20724
20725         string: Fix syntax error with g++ 2.96.
20726         * lib/string.in.h (__pure__): Remove definition.
20727         (_GL_ATTRIBUTE_PURE): New macro.
20728         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20729         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20730         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20731
20732 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20733
20734         unitypes: Fix bug introduced on 2010-05-18.
20735         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20736
20737 2010-06-22  Eric Blake  <eblake@redhat.com>
20738
20739         memmem: slight optimization
20740         * lib/str-two-way.h (critical_factorization): Update comments.
20741         Reduce work during factorization phase.
20742         Reported by Carlos Bueno <carlos@bueno.org>.
20743
20744 2010-06-21  Bruno Haible  <bruno@clisp.org>
20745
20746         Fix HAVE_CALLOC_POSIX misnomer.
20747         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20748         !HAVE_CALLOC_POSIX.
20749         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20750         HAVE_CALLOC_POSIX.
20751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20752         instead of HAVE_CALLOC_POSIX.
20753         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20754         HAVE_CALLOC_POSIX.
20755
20756         Use modern idiom for calloc() replacement.
20757         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20758         AC_FUNC_CALLOC.
20759         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20760         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20761         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20762         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20763         (gl_REPLACE_CALLOC): New macro.
20764
20765 2010-06-21  Bruno Haible  <bruno@clisp.org>
20766
20767         Fix HAVE_REALLOC_POSIX misnomer.
20768         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20769         !HAVE_REALLOC_POSIX.
20770         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20771         HAVE_REALLOC_POSIX.
20772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20773         instead of HAVE_REALLOC_POSIX.
20774         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20775         HAVE_REALLOC_POSIX.
20776
20777         Use modern idiom for realloc() replacement.
20778         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20779         AC_FUNC_REALLOC.
20780         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20781         Autoconf's AC_FUNC_REALLOC.
20782         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20783         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20784         (gl_REPLACE_REALLOC): New macro.
20785         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20786
20787 2010-06-21  Bruno Haible  <bruno@clisp.org>
20788
20789         Fix HAVE_MALLOC_POSIX misnomer.
20790         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20791         !HAVE_MALLOC_POSIX.
20792         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20793         HAVE_MALLOC_POSIX.
20794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20795         instead of HAVE_MALLOC_POSIX.
20796         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20797         HAVE_MALLOC_POSIX.
20798
20799         Use modern idiom for malloc() replacement.
20800         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20801         AC_FUNC_MALLOC.
20802         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20803         Autoconf's AC_FUNC_MALLOC.
20804         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20805         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20806         (gl_REPLACE_MALLOC): New macro.
20807         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20808
20809 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20810
20811         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20812         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20813         This macro takes 3 arguments, not 4.
20814
20815 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20816
20817         ipv6: fix detection under mingw
20818         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20819         in6_addr.
20820
20821 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20822
20823         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20824         that strtod() works when cross-compiling to a glibc version known
20825         to work.
20826
20827 2010-06-15  Bruno Haible  <bruno@clisp.org>
20828
20829         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20830
20831 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20832
20833         select: Correct timeout.
20834         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20835
20836 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20837
20838         git-version-gen: init shell var to avoid env var influence
20839         * build-aux/git-version-gen (v): Init shell var to empty.
20840
20841 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20842
20843         priv-set: Don't assume that priv.h exists merely because getppriv does.
20844         See Jan Andersen's bug report about AIX 5L in
20845         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20846         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20847         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20848         * lib/priv-set.h: Likewise.
20849         * tests/test-priv-set.c: Likewise.
20850
20851 2010-06-13  Bruno Haible  <bruno@clisp.org>
20852
20853         relocatable: Make it easier to test whether to install wrappers.
20854         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20855         RELOCATABLE_VIA_WRAPPER.
20856
20857 2010-06-13  Bruno Haible  <bruno@clisp.org>
20858
20859         gnulib-tool: Display specified modules and dependencies differently.
20860         * gnulib-tool (func_show_module_list): New function.
20861         (func_import, func_create_testdir): Invoke it.
20862         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20863
20864 2010-06-13  Bruno Haible  <bruno@clisp.org>
20865
20866         gnulib-tool: Align code of func_import and func_create_testdir.
20867         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20868         specified_modules.
20869
20870 2010-06-12  Jim Meyering  <meyering@redhat.com>
20871
20872         test-inttostr: avoid spurious failure on Solaris 9
20873         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20874         to accept "%ju".  Reported by Bruno Haible.
20875
20876 2010-06-11  Jim Meyering  <meyering@redhat.com>
20877
20878         test-sys_socket: mark variables as used more readably
20879         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20880         as "used" explicitly via (void) statement casts.  This is more
20881         readable than using them in an artificial return expression.
20882         Suggestion from Bruno Haible.
20883
20884 2010-06-11  Bruno Haible  <bruno@clisp.org>
20885
20886         Avoid some more warnings from "gcc -Wwrite-strings".
20887         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20888         to 'const char *'.
20889         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20890         * tests/test-c-strcasestr.c (main): Likewise.
20891         * tests/test-mbscasestr1.c (main): Likewise.
20892         * tests/test-mbscasestr2.c (main): Likewise.
20893         * tests/test-memmem.c (main): Likewise.
20894         * tests/test-strstr.c (main): Likewise.
20895         * tests/test-strcasestr.c (main): Likewise.
20896
20897 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20898
20899         init.sh: change framework_failure_ to fail with status 99, not 1
20900         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20901         automake's parallel-tests rule that this is an unexpected failure,
20902         even if the test is listed in XFAIL_TESTS.
20903
20904 2010-06-11  Jim Meyering  <meyering@redhat.com>
20905
20906         test-inttostr: avoid warnings about 4-6KB literal strings
20907         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20908         Include "macros.h", for its definition of ASSERT.
20909         (CK): s/assert/ASSERT/
20910         * modules/inttostr-tests (Files): Add macros.h.
20911
20912         init.sh: don't use $ME_ or skip_ before they are defined
20913         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20914         their first uses.  Also hoist their companions: warn_, fail_,
20915         framework_failure_, $stderr_fileno.  Prompted by a patch from
20916         Stefano Lattarini.
20917
20918         test-sys_socket: avoid set-but-not-used warnings from gcc
20919         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20920         avoid warning about set-but-not-used variables.
20921
20922         test-xvasprintf: avoid 'const' discard warnings
20923         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20924         "const" when assigning from literal strings.
20925         (test_xasprintf): Add "void" in function argument list to placate
20926         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20927
20928         tests: avoid compilation warnings in argmatch and exclude tests...
20929         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20930         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20931         Since it always exits, declare with the "noreturn" attribute.
20932         * tests/test-argmatch.c: Likewise.
20933
20934         tests: avoid 'const' discard warnings in mbsstr tests
20935         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20936         * tests/test-mbsstr2.c (main): Likewise.
20937
20938         test-verify: avoid warning from gcc's -Wmissing-declarations
20939         * tests/test-verify.c (function): Declare to be static.
20940
20941         test-inttostr.c: include <string.h> for use of strcmp
20942         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20943
20944         test-linkat: avoid failed assertion on "other" architectures
20945         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20946         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20947         sparc: https://bugs.launchpad.net/bugs/591968
20948
20949 2010-06-11  Jim Meyering  <meyering@redhat.com>
20950
20951         printf.m4: avoid autoconf's "Expanded Before Required" warning
20952         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20953         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20954         autoconf warning.
20955
20956 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20957
20958         Replacement header templates are now named with ".in", not "_".
20959         * doc/gnulib-intro.texi: Correct.
20960
20961 2010-06-10  Jim Meyering  <meyering@redhat.com>
20962
20963         inttostr-tests: depend on snprintf, not snprintf-posix
20964         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20965         snprintf-posix, to avoid this aclocal failure:
20966           missing file gnulib-tests/vasnprintf.c
20967           configure.ac:45: error: expected source file, required through \
20968           AC_LIBSOURCES, not found
20969
20970 2010-06-10  Jim Meyering  <meyering@redhat.com>
20971
20972         inttostr: add a new function, inttostr, and tests
20973         The namesake function was not available.  The existence of the
20974         template file, inttostr.c makes its addition nontrivial.
20975         * lib/anytostr.c: Rename from inttostr.c.
20976         (anytostr): Rename from inttostr.
20977         * lib/inttostr.c: New file.
20978         * modules/inttostr (Files): Add anytostr.c.
20979         (Makefile.am): Set lib_SOURCES instead of ...
20980         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20981         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20982         * lib/offtostr.c: Likewise.
20983         * lib/uinttostr.c: Likewise.
20984         * lib/umaxtostr.c: Likewise.
20985         * modules/inttostr-tests: New file.
20986         * tests/test-inttostr.c: New file.  Test these functions.
20987
20988 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20989             Bruno Haible  <bruno@clisp.org>
20990
20991         Add "Extending Gnulib" chapter to manual.
20992         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20993         chapter.
20994         (Extending Gnulib): New chapter.
20995         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20996         chapter.
20997
20998 2010-06-09  Bruno Haible  <bruno@clisp.org>
20999
21000         Avoid relocwrapper link errors due to gnulib replacement functions.
21001         * lib/areadlink.c: Use the system's malloc, realloc functions.
21002         (areadlink): Set errno to ENOMEM explicitly.
21003         * modules/areadlink (Depends-on): Remove malloc-posix.
21004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21005
21006 2010-06-09  Bruno Haible  <bruno@clisp.org>
21007
21008         Avoid relocwrapper link errors due to gnulib replacement functions.
21009         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21010         * lib/malloca.c: Likewise.
21011         * lib/relocatable.c: Likewise.
21012         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21013         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21014         * lib/setenv.c: Use the system's malloc, realloc functions.
21015         * lib/strerror.c: Use the system's sprintf function.
21016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21017
21018 2010-06-04  Bruno Haible  <bruno@clisp.org>
21019
21020         Prefer documented low-level autoconf macro names.
21021         * m4/lib-link.m4: Use m4_translit instead of translit.
21022         * m4/environ.m4: Likewise.
21023         * m4/mathfunc.m4: Likewise.
21024         * m4/onceonly.m4: Likewise.
21025         * m4/stdint.m4: Likewise.
21026         Suggested by Eric Blake.
21027
21028 2010-06-04  Martin Lambers  <marlam@marlam.de>
21029             Bruno Haible  <bruno@clisp.org>
21030
21031         havelib: Allow library names with '+' characters.
21032         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21033         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21034
21035 2010-06-09  Bruno Haible  <bruno@clisp.org>
21036
21037         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21038         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21039         realloc failed.
21040
21041 2010-06-08  Peter Simons  <simons@cryp.to>
21042
21043         maint.mk: make the news-check rule more configurable
21044         * top/maint.mk (news-check-lines-spec): New variable.
21045         (news-check): Use "sed -n 1,10p" in place of "head".
21046
21047 2010-06-07  Jim Meyering  <meyering@redhat.com>
21048
21049         do-release-commit-and-tag: fix typo in --help
21050         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21051
21052         regex: avoid new dead-code warning with gcc-4.6.0
21053         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21054         if-block containing a while-loop.  It's been unused for at least
21055         5 years.
21056
21057 2010-06-05  Bruno Haible  <bruno@clisp.org>
21058
21059         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21060         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21061
21062 2010-06-04  Bruno Haible  <bruno@clisp.org>
21063
21064         Update to GNU gettext 0.18.1.
21065         * modules/gettext (configure.ac): Require gettext infrastructure from
21066         version 0.18.1.
21067
21068 2010-06-03  Bruno Haible  <bruno@clisp.org>
21069
21070         Don't use AC_LIBOBJ with file names in subdirectories.
21071         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21072         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21073         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21074         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21075         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21076         gl_LIBUNISTRING_LIBSOURCE.
21077         (Makefile.am): Augment lib_SOURCES here, conditionally.
21078         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21079
21080 2010-06-03  Bruno Haible  <bruno@clisp.org>
21081
21082         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21083         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21084         expansion does not end with a newline.
21085         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21086         unnecessary newline.
21087
21088 2010-06-03  Bruno Haible  <bruno@clisp.org>
21089
21090         Reduce dependencies.
21091         * tests/test-quotearg.h: New file, extracted from
21092         tests/test-quotearg.c.
21093         * tests/test-quotearg-simple.c: New file, extracted from
21094         tests/test-quotearg.c.
21095         * tests/test-quotearg.c: Don't include <ctype.h>.
21096         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21097         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21098         use_quote_double_quotes, use_quotearg_colon): Moved to
21099         tests/test-quotearg.h.
21100         (results_g, flag_results, custom_quotes, custom_results): Moved
21101         to tests/test-quotearg-simple.c.
21102         (main): Moved the part that does not depend on gettext to
21103         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21104         performed.
21105         * modules/quotearg-simple: New file.
21106         * modules/quotearg-simple-tests: New file.
21107         * modules/quotearg (Depends-on): Add quotearg-simple.
21108         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21109         (Files): Add tests/test-quotearg.h.
21110         Reported by Paolo Bonzini.
21111
21112 2010-06-03  Bruno Haible  <bruno@clisp.org>
21113
21114         Reduce dependencies.
21115         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21116
21117 2010-06-03  Bruno Haible  <bruno@clisp.org>
21118
21119         time: Undefine more broken macros.
21120         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21121         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21122         Reported by Eric Blake.
21123
21124 2010-06-03  Bruno Haible  <bruno@clisp.org>
21125
21126         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21127         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21128         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21129         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21130         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21131         Reported by Ludovic Courtès <ludo@gnu.org>.
21132
21133 2010-06-02  Eric Blake  <eblake@redhat.com>
21134
21135         time: work with mingw + pthreads-win32 library
21136         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21137         if timespec is defined only in pthread.h.
21138         * modules/time (Makefile.am): Substitute it.
21139         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21140         <pthread.h>, when needed.
21141         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21142         from the library.
21143
21144 2010-05-31  Bruno Haible  <bruno@clisp.org>
21145
21146         Avoid expanding two macros in the wrong order.
21147         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21148         gl_LIBUNISTRING if it is defined.
21149         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21150         autoconf >= 2.64.
21151         Reported by Ludovic Courtès <ludo@gnu.org>.
21152
21153 2010-05-27  Jim Meyering  <meyering@redhat.com>
21154
21155         maint.mk: also prohibit "#undef" of always-defined symbols
21156         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21157         Allow more than one space before the symbol name.
21158         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21159         the regexp uses alternation.
21160
21161 2010-05-26  Eric Blake  <eblake@redhat.com>
21162
21163         maint.mk: avoid echo -e
21164         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21165         Convert all uses of echo -* to printf.
21166         Reported by Matthias Bolte.
21167
21168 2010-05-25  Bruno Haible  <bruno@clisp.org>
21169
21170         Update to GNU gettext 0.18, part 2.
21171         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21172         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21173
21174 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21175
21176         Add missing include in test-pwrite.c.
21177         * tests/test-pwrite.c: Include string.h, for strcmp.
21178
21179 2010-05-24  Bruno Haible  <bruno@clisp.org>
21180
21181         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21182
21183 2010-05-24  Bruno Haible  <bruno@clisp.org>
21184
21185         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21186         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21187         iconveh_error argument.
21188         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21189         U_STRCONV_TO_LOCALE.
21190         * lib/unistr/u16-strcoll.c: Likewise.
21191         * lib/unistr/u32-strcoll.c: Likewise.
21192         * modules/unistr/u8-strcoll (Depends-on): Add
21193         uniconv/u8-strconv-to-enc, localcharset. Remove
21194         uniconv/u8-strconv-to-locale.
21195         (configure.ac): Bump version number.
21196         * modules/unistr/u16-strcoll (Depends-on): Add
21197         uniconv/u16-strconv-to-enc, localcharset. Remove
21198         uniconv/u16-strconv-to-locale.
21199         (configure.ac): Bump version number.
21200         * modules/unistr/u32-strcoll (Depends-on): Add
21201         uniconv/u32-strconv-to-enc, localcharset. Remove
21202         uniconv/u32-strconv-to-locale.
21203         (configure.ac): Bump version number.
21204
21205 2010-05-24  Bruno Haible  <bruno@clisp.org>
21206
21207         Avoid a test failure on NetBSD 5.0.
21208         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21209         an iconv() bug.
21210
21211 2010-05-24  Bruno Haible  <bruno@clisp.org>
21212
21213         Adjust #include directive style.
21214         * modules/regex (Includes): Recommend to write <regex.h>.
21215
21216 2010-05-24  Bruno Haible  <bruno@clisp.org>
21217
21218         regex: Don't require alloca.
21219         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21220         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21221         only inside if (0).
21222
21223 2010-05-23  Jim Meyering  <meyering@redhat.com>
21224
21225         test-renameat.c: include <sys/stat.h>
21226         * tests/test-renameat.c: Include <sys/stat.h>; required for
21227         definition of S_IS* macros.
21228
21229 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21230
21231         Update maintainer documentation for 'relocatable-prog' module.
21232         * doc/relocatable-maint.texi: Update.
21233         Comments by Bruno Haible.
21234
21235 2010-05-23  Bruno Haible  <bruno@clisp.org>
21236
21237         git-merge-changelog: Enable --split-merged-entry by default.
21238         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21239         (usage): Don't mention this option any more.
21240         Reported by Ralf Wildenhues.
21241
21242 2010-05-23  Jim Meyering  <meyering@redhat.com>
21243
21244         test-pwrite: do not leave behind a test file named "out"
21245         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21246         The trivial-looking use of init.sh is really necessary.
21247         It ensures that the temporary file, "out", is created in
21248         a temporary directory, and removed upon termination.
21249         * tests/test-pwrite.sh: Re-add file.
21250         * modules/pwrite-tests: Reference it.
21251
21252 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21253
21254         Fix output redirection buglet in init.sh.
21255         * tests/init.sh: Fix redirection of stderr.
21256
21257 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21258
21259         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21260
21261 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21262
21263         * modules/valgrind-tests: New file.
21264         * m4/valgrind-tests.m4: New file.
21265         * doc/valgrind-tests.texi: New file.
21266         * doc/gnulib.texi (Running self-tests under valgrind): New
21267         section.
21268
21269 2010-05-19  Bruno Haible  <bruno@clisp.org>
21270
21271         Clean up dead code in recent commit.
21272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21273         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21274         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21275         Suggested by Paolo Bonzini.
21276
21277 2010-05-19  Bruno Haible  <bruno@clisp.org>
21278
21279         Avoid valgrind error reports from libunistring.
21280         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21281         * modules/libunistring (Files): Add it.
21282         * modules/libunistring-optional (Files): Likewise.
21283
21284 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21285             Bruno Haible  <bruno@clisp.org>
21286
21287         New module 'libunistring-optional'.
21288         * modules/libunistring-optional: New file.
21289         * m4/libunistring-base.m4: New file.
21290         * m4/libunistring-optional.m4: New file.
21291         * lib/unicase.in.h: Renamed from lib/unicase.h.
21292         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21293         * lib/unictype.in.h: Renamed from lib/unictype.h.
21294         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21295         * lib/uniname.in.h: Renamed from lib/uniname.h.
21296         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21297         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21298         * lib/unistr.in.h: Renamed from lib/unistr.h.
21299         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21300         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21301         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21302         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21303         gl_LIBUNISTRING. If the library was found, determine the installed
21304         version and set LIBUNISTRING_VERSION.
21305         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21306         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21307         handle a configuration option --with-included-libunistring.
21308         * modules/libunistring (Files): Add m4/absolute-header.m4.
21309         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21310         Add m4/libunistring-base.m4.
21311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21312         (Makefile.am): Build unicase.h from unicase.in.h.
21313         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21314         Add m4/libunistring-base.m4.
21315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21316         (Makefile.am): Build uniconv.h from uniconv.in.h.
21317         * modules/unictype/base (Files): Use unictype.in.h instead of
21318         unictype.h. Add m4/libunistring-base.m4.
21319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21320         (Makefile.am): Build unictype.h from unictype.in.h.
21321         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21322         Add m4/libunistring-base.m4.
21323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21324         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21325         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21326         Add m4/libunistring-base.m4.
21327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21328         (Makefile.am): Build uniname.h from uniname.in.h.
21329         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21330         Add m4/libunistring-base.m4.
21331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21332         (Makefile.am): Build uninorm.h from uninorm.in.h.
21333         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21334         unistdio.h. Add m4/libunistring-base.m4.
21335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21336         (Makefile.am): Build unistdio.h from unistdio.in.h.
21337         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21338         Add m4/libunistring-base.m4.
21339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21340         (Makefile.am): Build unistr.h from unistr.in.h.
21341         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21342         Add m4/libunistring-base.m4.
21343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21344         (Makefile.am): Build unitypes.h from unitypes.in.h.
21345         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21346         Add m4/libunistring-base.m4.
21347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21348         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21349         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21350         uniwidth.h. Add m4/libunistring-base.m4.
21351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21352         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21353         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21354         instead of augmenting lib_SOURCES.
21355         * modules/unicase/empty-suffix-context: Likewise.
21356         * modules/unicase/locale-language: Likewise.
21357         * modules/unicase/tolower: Likewise.
21358         * modules/unicase/totitle: Likewise.
21359         * modules/unicase/toupper: Likewise.
21360         * modules/unicase/u8-casecmp: Likewise.
21361         * modules/unicase/u8-casecoll: Likewise.
21362         * modules/unicase/u8-casefold: Likewise.
21363         * modules/unicase/u8-casexfrm: Likewise.
21364         * modules/unicase/u8-ct-casefold: Likewise.
21365         * modules/unicase/u8-ct-tolower: Likewise.
21366         * modules/unicase/u8-ct-totitle: Likewise.
21367         * modules/unicase/u8-ct-toupper: Likewise.
21368         * modules/unicase/u8-is-cased: Likewise.
21369         * modules/unicase/u8-is-casefolded: Likewise.
21370         * modules/unicase/u8-is-lowercase: Likewise.
21371         * modules/unicase/u8-is-titlecase: Likewise.
21372         * modules/unicase/u8-is-uppercase: Likewise.
21373         * modules/unicase/u8-prefix-context: Likewise.
21374         * modules/unicase/u8-suffix-context: Likewise.
21375         * modules/unicase/u8-tolower: Likewise.
21376         * modules/unicase/u8-totitle: Likewise.
21377         * modules/unicase/u8-toupper: Likewise.
21378         * modules/unicase/u16-casecmp: Likewise.
21379         * modules/unicase/u16-casecoll: Likewise.
21380         * modules/unicase/u16-casefold: Likewise.
21381         * modules/unicase/u16-casexfrm: Likewise.
21382         * modules/unicase/u16-ct-casefold: Likewise.
21383         * modules/unicase/u16-ct-tolower: Likewise.
21384         * modules/unicase/u16-ct-totitle: Likewise.
21385         * modules/unicase/u16-ct-toupper: Likewise.
21386         * modules/unicase/u16-is-cased: Likewise.
21387         * modules/unicase/u16-is-casefolded: Likewise.
21388         * modules/unicase/u16-is-lowercase: Likewise.
21389         * modules/unicase/u16-is-titlecase: Likewise.
21390         * modules/unicase/u16-is-uppercase: Likewise.
21391         * modules/unicase/u16-prefix-context: Likewise.
21392         * modules/unicase/u16-suffix-context: Likewise.
21393         * modules/unicase/u16-tolower: Likewise.
21394         * modules/unicase/u16-totitle: Likewise.
21395         * modules/unicase/u16-toupper: Likewise.
21396         * modules/unicase/u32-casecmp: Likewise.
21397         * modules/unicase/u32-casecoll: Likewise.
21398         * modules/unicase/u32-casefold: Likewise.
21399         * modules/unicase/u32-casexfrm: Likewise.
21400         * modules/unicase/u32-ct-casefold: Likewise.
21401         * modules/unicase/u32-ct-tolower: Likewise.
21402         * modules/unicase/u32-ct-totitle: Likewise.
21403         * modules/unicase/u32-ct-toupper: Likewise.
21404         * modules/unicase/u32-is-cased: Likewise.
21405         * modules/unicase/u32-is-casefolded: Likewise.
21406         * modules/unicase/u32-is-lowercase: Likewise.
21407         * modules/unicase/u32-is-titlecase: Likewise.
21408         * modules/unicase/u32-is-uppercase: Likewise.
21409         * modules/unicase/u32-prefix-context: Likewise.
21410         * modules/unicase/u32-suffix-context: Likewise.
21411         * modules/unicase/u32-tolower: Likewise.
21412         * modules/unicase/u32-totitle: Likewise.
21413         * modules/unicase/u32-toupper: Likewise.
21414         * modules/unicase/ulc-casecmp: Likewise.
21415         * modules/unicase/ulc-casecoll: Likewise.
21416         * modules/unicase/ulc-casexfrm: Likewise.
21417         * modules/uniconv/u8-conv-from-enc: Likewise.
21418         * modules/uniconv/u8-conv-to-enc: Likewise.
21419         * modules/uniconv/u8-strconv-from-enc: Likewise.
21420         * modules/uniconv/u8-strconv-from-locale: Likewise.
21421         * modules/uniconv/u8-strconv-to-enc: Likewise.
21422         * modules/uniconv/u8-strconv-to-locale: Likewise.
21423         * modules/uniconv/u16-conv-from-enc: Likewise.
21424         * modules/uniconv/u16-conv-to-enc: Likewise.
21425         * modules/uniconv/u16-strconv-from-enc: Likewise.
21426         * modules/uniconv/u16-strconv-from-locale: Likewise.
21427         * modules/uniconv/u16-strconv-to-enc: Likewise.
21428         * modules/uniconv/u16-strconv-to-locale: Likewise.
21429         * modules/uniconv/u32-conv-from-enc: Likewise.
21430         * modules/uniconv/u32-conv-to-enc: Likewise.
21431         * modules/uniconv/u32-strconv-from-enc: Likewise.
21432         * modules/uniconv/u32-strconv-from-locale: Likewise.
21433         * modules/uniconv/u32-strconv-to-enc: Likewise.
21434         * modules/uniconv/u32-strconv-to-locale: Likewise.
21435         * modules/unictype/bidicategory-byname: Likewise.
21436         * modules/unictype/bidicategory-name: Likewise.
21437         * modules/unictype/bidicategory-of: Likewise.
21438         * modules/unictype/bidicategory-test: Likewise.
21439         * modules/unictype/block-list: Likewise.
21440         * modules/unictype/block-test: Likewise.
21441         * modules/unictype/category-C: Likewise.
21442         * modules/unictype/category-Cc: Likewise.
21443         * modules/unictype/category-Cf: Likewise.
21444         * modules/unictype/category-Cn: Likewise.
21445         * modules/unictype/category-Co: Likewise.
21446         * modules/unictype/category-Cs: Likewise.
21447         * modules/unictype/category-L: Likewise.
21448         * modules/unictype/category-Ll: Likewise.
21449         * modules/unictype/category-Lm: Likewise.
21450         * modules/unictype/category-Lo: Likewise.
21451         * modules/unictype/category-Lt: Likewise.
21452         * modules/unictype/category-Lu: Likewise.
21453         * modules/unictype/category-M: Likewise.
21454         * modules/unictype/category-Mc: Likewise.
21455         * modules/unictype/category-Me: Likewise.
21456         * modules/unictype/category-Mn: Likewise.
21457         * modules/unictype/category-N: Likewise.
21458         * modules/unictype/category-Nd: Likewise.
21459         * modules/unictype/category-Nl: Likewise.
21460         * modules/unictype/category-No: Likewise.
21461         * modules/unictype/category-P: Likewise.
21462         * modules/unictype/category-Pc: Likewise.
21463         * modules/unictype/category-Pd: Likewise.
21464         * modules/unictype/category-Pe: Likewise.
21465         * modules/unictype/category-Pf: Likewise.
21466         * modules/unictype/category-Pi: Likewise.
21467         * modules/unictype/category-Po: Likewise.
21468         * modules/unictype/category-Ps: Likewise.
21469         * modules/unictype/category-S: Likewise.
21470         * modules/unictype/category-Sc: Likewise.
21471         * modules/unictype/category-Sk: Likewise.
21472         * modules/unictype/category-Sm: Likewise.
21473         * modules/unictype/category-So: Likewise.
21474         * modules/unictype/category-Z: Likewise.
21475         * modules/unictype/category-Zl: Likewise.
21476         * modules/unictype/category-Zp: Likewise.
21477         * modules/unictype/category-Zs: Likewise.
21478         * modules/unictype/category-and: Likewise.
21479         * modules/unictype/category-and-not: Likewise.
21480         * modules/unictype/category-byname: Likewise.
21481         * modules/unictype/category-name: Likewise.
21482         * modules/unictype/category-none: Likewise.
21483         * modules/unictype/category-of: Likewise.
21484         * modules/unictype/category-or: Likewise.
21485         * modules/unictype/category-test: Likewise.
21486         * modules/unictype/combining-class: Likewise.
21487         * modules/unictype/ctype-alnum: Likewise.
21488         * modules/unictype/ctype-alpha: Likewise.
21489         * modules/unictype/ctype-blank: Likewise.
21490         * modules/unictype/ctype-cntrl: Likewise.
21491         * modules/unictype/ctype-digit: Likewise.
21492         * modules/unictype/ctype-graph: Likewise.
21493         * modules/unictype/ctype-lower: Likewise.
21494         * modules/unictype/ctype-print: Likewise.
21495         * modules/unictype/ctype-punct: Likewise.
21496         * modules/unictype/ctype-space: Likewise.
21497         * modules/unictype/ctype-upper: Likewise.
21498         * modules/unictype/ctype-xdigit: Likewise.
21499         * modules/unictype/decimal-digit: Likewise.
21500         * modules/unictype/digit: Likewise.
21501         * modules/unictype/mirror: Likewise.
21502         * modules/unictype/numeric: Likewise.
21503         * modules/unictype/property-alphabetic: Likewise.
21504         * modules/unictype/property-ascii-hex-digit: Likewise.
21505         * modules/unictype/property-bidi-arabic-digit: Likewise.
21506         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21507         * modules/unictype/property-bidi-block-separator: Likewise.
21508         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21509         * modules/unictype/property-bidi-common-separator: Likewise.
21510         * modules/unictype/property-bidi-control: Likewise.
21511         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21512         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21513         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21514         * modules/unictype/property-bidi-european-digit: Likewise.
21515         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21516         * modules/unictype/property-bidi-left-to-right: Likewise.
21517         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21518         * modules/unictype/property-bidi-other-neutral: Likewise.
21519         * modules/unictype/property-bidi-pdf: Likewise.
21520         * modules/unictype/property-bidi-segment-separator: Likewise.
21521         * modules/unictype/property-bidi-whitespace: Likewise.
21522         * modules/unictype/property-byname: Likewise.
21523         * modules/unictype/property-combining: Likewise.
21524         * modules/unictype/property-composite: Likewise.
21525         * modules/unictype/property-currency-symbol: Likewise.
21526         * modules/unictype/property-dash: Likewise.
21527         * modules/unictype/property-decimal-digit: Likewise.
21528         * modules/unictype/property-default-ignorable-code-point: Likewise.
21529         * modules/unictype/property-deprecated: Likewise.
21530         * modules/unictype/property-diacritic: Likewise.
21531         * modules/unictype/property-extender: Likewise.
21532         * modules/unictype/property-format-control: Likewise.
21533         * modules/unictype/property-grapheme-base: Likewise.
21534         * modules/unictype/property-grapheme-extend: Likewise.
21535         * modules/unictype/property-grapheme-link: Likewise.
21536         * modules/unictype/property-hex-digit: Likewise.
21537         * modules/unictype/property-hyphen: Likewise.
21538         * modules/unictype/property-id-continue: Likewise.
21539         * modules/unictype/property-id-start: Likewise.
21540         * modules/unictype/property-ideographic: Likewise.
21541         * modules/unictype/property-ids-binary-operator: Likewise.
21542         * modules/unictype/property-ids-trinary-operator: Likewise.
21543         * modules/unictype/property-ignorable-control: Likewise.
21544         * modules/unictype/property-iso-control: Likewise.
21545         * modules/unictype/property-join-control: Likewise.
21546         * modules/unictype/property-left-of-pair: Likewise.
21547         * modules/unictype/property-line-separator: Likewise.
21548         * modules/unictype/property-logical-order-exception: Likewise.
21549         * modules/unictype/property-lowercase: Likewise.
21550         * modules/unictype/property-math: Likewise.
21551         * modules/unictype/property-non-break: Likewise.
21552         * modules/unictype/property-not-a-character: Likewise.
21553         * modules/unictype/property-numeric: Likewise.
21554         * modules/unictype/property-other-alphabetic: Likewise.
21555         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21556         * modules/unictype/property-other-grapheme-extend: Likewise.
21557         * modules/unictype/property-other-id-continue: Likewise.
21558         * modules/unictype/property-other-id-start: Likewise.
21559         * modules/unictype/property-other-lowercase: Likewise.
21560         * modules/unictype/property-other-math: Likewise.
21561         * modules/unictype/property-other-uppercase: Likewise.
21562         * modules/unictype/property-paired-punctuation: Likewise.
21563         * modules/unictype/property-paragraph-separator: Likewise.
21564         * modules/unictype/property-pattern-syntax: Likewise.
21565         * modules/unictype/property-pattern-white-space: Likewise.
21566         * modules/unictype/property-private-use: Likewise.
21567         * modules/unictype/property-punctuation: Likewise.
21568         * modules/unictype/property-quotation-mark: Likewise.
21569         * modules/unictype/property-radical: Likewise.
21570         * modules/unictype/property-sentence-terminal: Likewise.
21571         * modules/unictype/property-soft-dotted: Likewise.
21572         * modules/unictype/property-space: Likewise.
21573         * modules/unictype/property-terminal-punctuation: Likewise.
21574         * modules/unictype/property-test: Likewise.
21575         * modules/unictype/property-titlecase: Likewise.
21576         * modules/unictype/property-unassigned-code-value: Likewise.
21577         * modules/unictype/property-unified-ideograph: Likewise.
21578         * modules/unictype/property-uppercase: Likewise.
21579         * modules/unictype/property-variation-selector: Likewise.
21580         * modules/unictype/property-white-space: Likewise.
21581         * modules/unictype/property-xid-continue: Likewise.
21582         * modules/unictype/property-xid-start: Likewise.
21583         * modules/unictype/property-zero-width: Likewise.
21584         * modules/unictype/scripts: Likewise.
21585         * modules/unictype/syntax-c-ident: Likewise.
21586         * modules/unictype/syntax-c-whitespace: Likewise.
21587         * modules/unictype/syntax-java-ident: Likewise.
21588         * modules/unictype/syntax-java-whitespace: Likewise.
21589         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21590         * modules/unilbrk/u8-width-linebreaks: Likewise.
21591         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21592         * modules/unilbrk/u16-width-linebreaks: Likewise.
21593         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21594         * modules/unilbrk/u32-width-linebreaks: Likewise.
21595         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21596         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21597         * modules/uniname/uniname: Likewise.
21598         * modules/uninorm/canonical-decomposition: Likewise.
21599         * modules/uninorm/composition: Likewise.
21600         * modules/uninorm/decomposing-form: Likewise.
21601         * modules/uninorm/decomposition: Likewise.
21602         * modules/uninorm/filter: Likewise.
21603         * modules/uninorm/nfc: Likewise.
21604         * modules/uninorm/nfd: Likewise.
21605         * modules/uninorm/nfkc: Likewise.
21606         * modules/uninorm/nfkd: Likewise.
21607         * modules/uninorm/u8-normalize: Likewise.
21608         * modules/uninorm/u8-normcmp: Likewise.
21609         * modules/uninorm/u8-normcoll: Likewise.
21610         * modules/uninorm/u8-normxfrm: Likewise.
21611         * modules/uninorm/u16-normalize: Likewise.
21612         * modules/uninorm/u16-normcmp: Likewise.
21613         * modules/uninorm/u16-normcoll: Likewise.
21614         * modules/uninorm/u16-normxfrm: Likewise.
21615         * modules/uninorm/u32-normalize: Likewise.
21616         * modules/uninorm/u32-normcmp: Likewise.
21617         * modules/uninorm/u32-normcoll: Likewise.
21618         * modules/uninorm/u32-normxfrm: Likewise.
21619         * modules/unistdio/u8-asnprintf: Likewise.
21620         * modules/unistdio/u8-asprintf: Likewise.
21621         * modules/unistdio/u8-snprintf: Likewise.
21622         * modules/unistdio/u8-sprintf: Likewise.
21623         * modules/unistdio/u8-u8-asnprintf: Likewise.
21624         * modules/unistdio/u8-u8-asprintf: Likewise.
21625         * modules/unistdio/u8-u8-snprintf: Likewise.
21626         * modules/unistdio/u8-u8-sprintf: Likewise.
21627         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21628         * modules/unistdio/u8-u8-vasprintf: Likewise.
21629         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21630         * modules/unistdio/u8-u8-vsprintf: Likewise.
21631         * modules/unistdio/u8-vasnprintf: Likewise.
21632         * modules/unistdio/u8-vasprintf: Likewise.
21633         * modules/unistdio/u8-vsnprintf: Likewise.
21634         * modules/unistdio/u8-vsprintf: Likewise.
21635         * modules/unistdio/u16-asnprintf: Likewise.
21636         * modules/unistdio/u16-asprintf: Likewise.
21637         * modules/unistdio/u16-snprintf: Likewise.
21638         * modules/unistdio/u16-sprintf: Likewise.
21639         * modules/unistdio/u16-u16-asnprintf: Likewise.
21640         * modules/unistdio/u16-u16-asprintf: Likewise.
21641         * modules/unistdio/u16-u16-snprintf: Likewise.
21642         * modules/unistdio/u16-u16-sprintf: Likewise.
21643         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21644         * modules/unistdio/u16-u16-vasprintf: Likewise.
21645         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21646         * modules/unistdio/u16-u16-vsprintf: Likewise.
21647         * modules/unistdio/u16-vasnprintf: Likewise.
21648         * modules/unistdio/u16-vasprintf: Likewise.
21649         * modules/unistdio/u16-vsnprintf: Likewise.
21650         * modules/unistdio/u16-vsprintf: Likewise.
21651         * modules/unistdio/u32-asnprintf: Likewise.
21652         * modules/unistdio/u32-asprintf: Likewise.
21653         * modules/unistdio/u32-snprintf: Likewise.
21654         * modules/unistdio/u32-sprintf: Likewise.
21655         * modules/unistdio/u32-u32-asnprintf: Likewise.
21656         * modules/unistdio/u32-u32-asprintf: Likewise.
21657         * modules/unistdio/u32-u32-snprintf: Likewise.
21658         * modules/unistdio/u32-u32-sprintf: Likewise.
21659         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21660         * modules/unistdio/u32-u32-vasprintf: Likewise.
21661         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21662         * modules/unistdio/u32-u32-vsprintf: Likewise.
21663         * modules/unistdio/u32-vasnprintf: Likewise.
21664         * modules/unistdio/u32-vasprintf: Likewise.
21665         * modules/unistdio/u32-vsnprintf: Likewise.
21666         * modules/unistdio/u32-vsprintf: Likewise.
21667         * modules/unistdio/ulc-asnprintf: Likewise.
21668         * modules/unistdio/ulc-asprintf: Likewise.
21669         * modules/unistdio/ulc-fprintf: Likewise.
21670         * modules/unistdio/ulc-snprintf: Likewise.
21671         * modules/unistdio/ulc-sprintf: Likewise.
21672         * modules/unistdio/ulc-vasnprintf: Likewise.
21673         * modules/unistdio/ulc-vasprintf: Likewise.
21674         * modules/unistdio/ulc-vfprintf: Likewise.
21675         * modules/unistdio/ulc-vsnprintf: Likewise.
21676         * modules/unistdio/ulc-vsprintf: Likewise.
21677         * modules/unistr/u8-check: Likewise.
21678         * modules/unistr/u8-chr: Likewise.
21679         * modules/unistr/u8-cmp: Likewise.
21680         * modules/unistr/u8-cmp2: Likewise.
21681         * modules/unistr/u8-cpy: Likewise.
21682         * modules/unistr/u8-cpy-alloc: Likewise.
21683         * modules/unistr/u8-endswith: Likewise.
21684         * modules/unistr/u8-mblen: Likewise.
21685         * modules/unistr/u8-mbsnlen: Likewise.
21686         * modules/unistr/u8-mbtouc: Likewise.
21687         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21688         * modules/unistr/u8-mbtoucr: Likewise.
21689         * modules/unistr/u8-move: Likewise.
21690         * modules/unistr/u8-next: Likewise.
21691         * modules/unistr/u8-prev: Likewise.
21692         * modules/unistr/u8-set: Likewise.
21693         * modules/unistr/u8-startswith: Likewise.
21694         * modules/unistr/u8-stpcpy: Likewise.
21695         * modules/unistr/u8-stpncpy: Likewise.
21696         * modules/unistr/u8-strcat: Likewise.
21697         * modules/unistr/u8-strchr: Likewise.
21698         * modules/unistr/u8-strcmp: Likewise.
21699         * modules/unistr/u8-strcoll: Likewise.
21700         * modules/unistr/u8-strcpy: Likewise.
21701         * modules/unistr/u8-strcspn: Likewise.
21702         * modules/unistr/u8-strdup: Likewise.
21703         * modules/unistr/u8-strlen: Likewise.
21704         * modules/unistr/u8-strmblen: Likewise.
21705         * modules/unistr/u8-strmbtouc: Likewise.
21706         * modules/unistr/u8-strncat: Likewise.
21707         * modules/unistr/u8-strncmp: Likewise.
21708         * modules/unistr/u8-strncpy: Likewise.
21709         * modules/unistr/u8-strnlen: Likewise.
21710         * modules/unistr/u8-strpbrk: Likewise.
21711         * modules/unistr/u8-strrchr: Likewise.
21712         * modules/unistr/u8-strspn: Likewise.
21713         * modules/unistr/u8-strstr: Likewise.
21714         * modules/unistr/u8-strtok: Likewise.
21715         * modules/unistr/u8-to-u16: Likewise.
21716         * modules/unistr/u8-to-u32: Likewise.
21717         * modules/unistr/u8-uctomb: Likewise.
21718         * modules/unistr/u16-check: Likewise.
21719         * modules/unistr/u16-chr: Likewise.
21720         * modules/unistr/u16-cmp: Likewise.
21721         * modules/unistr/u16-cmp2: Likewise.
21722         * modules/unistr/u16-cpy: Likewise.
21723         * modules/unistr/u16-cpy-alloc: Likewise.
21724         * modules/unistr/u16-endswith: Likewise.
21725         * modules/unistr/u16-mblen: Likewise.
21726         * modules/unistr/u16-mbsnlen: Likewise.
21727         * modules/unistr/u16-mbtouc: Likewise.
21728         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21729         * modules/unistr/u16-mbtoucr: Likewise.
21730         * modules/unistr/u16-move: Likewise.
21731         * modules/unistr/u16-next: Likewise.
21732         * modules/unistr/u16-prev: Likewise.
21733         * modules/unistr/u16-set: Likewise.
21734         * modules/unistr/u16-startswith: Likewise.
21735         * modules/unistr/u16-stpcpy: Likewise.
21736         * modules/unistr/u16-stpncpy: Likewise.
21737         * modules/unistr/u16-strcat: Likewise.
21738         * modules/unistr/u16-strchr: Likewise.
21739         * modules/unistr/u16-strcmp: Likewise.
21740         * modules/unistr/u16-strcoll: Likewise.
21741         * modules/unistr/u16-strcpy: Likewise.
21742         * modules/unistr/u16-strcspn: Likewise.
21743         * modules/unistr/u16-strdup: Likewise.
21744         * modules/unistr/u16-strlen: Likewise.
21745         * modules/unistr/u16-strmblen: Likewise.
21746         * modules/unistr/u16-strmbtouc: Likewise.
21747         * modules/unistr/u16-strncat: Likewise.
21748         * modules/unistr/u16-strncmp: Likewise.
21749         * modules/unistr/u16-strncpy: Likewise.
21750         * modules/unistr/u16-strnlen: Likewise.
21751         * modules/unistr/u16-strpbrk: Likewise.
21752         * modules/unistr/u16-strrchr: Likewise.
21753         * modules/unistr/u16-strspn: Likewise.
21754         * modules/unistr/u16-strstr: Likewise.
21755         * modules/unistr/u16-strtok: Likewise.
21756         * modules/unistr/u16-to-u32: Likewise.
21757         * modules/unistr/u16-to-u8: Likewise.
21758         * modules/unistr/u16-uctomb: Likewise.
21759         * modules/unistr/u32-check: Likewise.
21760         * modules/unistr/u32-chr: Likewise.
21761         * modules/unistr/u32-cmp: Likewise.
21762         * modules/unistr/u32-cmp2: Likewise.
21763         * modules/unistr/u32-cpy: Likewise.
21764         * modules/unistr/u32-cpy-alloc: Likewise.
21765         * modules/unistr/u32-endswith: Likewise.
21766         * modules/unistr/u32-mblen: Likewise.
21767         * modules/unistr/u32-mbsnlen: Likewise.
21768         * modules/unistr/u32-mbtouc: Likewise.
21769         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21770         * modules/unistr/u32-mbtoucr: Likewise.
21771         * modules/unistr/u32-move: Likewise.
21772         * modules/unistr/u32-next: Likewise.
21773         * modules/unistr/u32-prev: Likewise.
21774         * modules/unistr/u32-set: Likewise.
21775         * modules/unistr/u32-startswith: Likewise.
21776         * modules/unistr/u32-stpcpy: Likewise.
21777         * modules/unistr/u32-stpncpy: Likewise.
21778         * modules/unistr/u32-strcat: Likewise.
21779         * modules/unistr/u32-strchr: Likewise.
21780         * modules/unistr/u32-strcmp: Likewise.
21781         * modules/unistr/u32-strcoll: Likewise.
21782         * modules/unistr/u32-strcpy: Likewise.
21783         * modules/unistr/u32-strcspn: Likewise.
21784         * modules/unistr/u32-strdup: Likewise.
21785         * modules/unistr/u32-strlen: Likewise.
21786         * modules/unistr/u32-strmblen: Likewise.
21787         * modules/unistr/u32-strmbtouc: Likewise.
21788         * modules/unistr/u32-strncat: Likewise.
21789         * modules/unistr/u32-strncmp: Likewise.
21790         * modules/unistr/u32-strncpy: Likewise.
21791         * modules/unistr/u32-strnlen: Likewise.
21792         * modules/unistr/u32-strpbrk: Likewise.
21793         * modules/unistr/u32-strrchr: Likewise.
21794         * modules/unistr/u32-strspn: Likewise.
21795         * modules/unistr/u32-strstr: Likewise.
21796         * modules/unistr/u32-strtok: Likewise.
21797         * modules/unistr/u32-to-u16: Likewise.
21798         * modules/unistr/u32-to-u8: Likewise.
21799         * modules/unistr/u32-uctomb: Likewise.
21800         * modules/uniwbrk/u8-wordbreaks: Likewise.
21801         * modules/uniwbrk/u16-wordbreaks: Likewise.
21802         * modules/uniwbrk/u32-wordbreaks: Likewise.
21803         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21804         * modules/uniwbrk/wordbreak-property: Likewise.
21805         * modules/uniwidth/u8-strwidth: Likewise.
21806         * modules/uniwidth/u8-width: Likewise.
21807         * modules/uniwidth/u16-strwidth: Likewise.
21808         * modules/uniwidth/u16-width: Likewise.
21809         * modules/uniwidth/u32-strwidth: Likewise.
21810         * modules/uniwidth/u32-width: Likewise.
21811         * modules/uniwidth/width: Likewise.
21812         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21813         with $(LIBUNISTRING).
21814         * modules/unicase/ignorable-tests: Likewise.
21815         * modules/unicase/locale-language-tests: Likewise.
21816         * modules/unicase/tolower-tests: Likewise.
21817         * modules/unicase/totitle-tests: Likewise.
21818         * modules/unicase/toupper-tests: Likewise.
21819         * modules/unicase/u8-casecmp-tests: Likewise.
21820         * modules/unicase/u8-casecoll-tests: Likewise.
21821         * modules/unicase/u8-casefold-tests: Likewise.
21822         * modules/unicase/u8-is-cased-tests: Likewise.
21823         * modules/unicase/u8-is-casefolded-tests: Likewise.
21824         * modules/unicase/u8-is-lowercase-tests: Likewise.
21825         * modules/unicase/u8-is-titlecase-tests: Likewise.
21826         * modules/unicase/u8-is-uppercase-tests: Likewise.
21827         * modules/unicase/u8-tolower-tests: Likewise.
21828         * modules/unicase/u8-totitle-tests: Likewise.
21829         * modules/unicase/u8-toupper-tests: Likewise.
21830         * modules/unicase/u16-casecmp-tests: Likewise.
21831         * modules/unicase/u16-casecoll-tests: Likewise.
21832         * modules/unicase/u16-casefold-tests: Likewise.
21833         * modules/unicase/u16-is-cased-tests: Likewise.
21834         * modules/unicase/u16-is-casefolded-tests: Likewise.
21835         * modules/unicase/u16-is-lowercase-tests: Likewise.
21836         * modules/unicase/u16-is-titlecase-tests: Likewise.
21837         * modules/unicase/u16-is-uppercase-tests: Likewise.
21838         * modules/unicase/u16-tolower-tests: Likewise.
21839         * modules/unicase/u16-totitle-tests: Likewise.
21840         * modules/unicase/u16-toupper-tests: Likewise.
21841         * modules/unicase/u32-casecmp-tests: Likewise.
21842         * modules/unicase/u32-casecoll-tests: Likewise.
21843         * modules/unicase/u32-casefold-tests: Likewise.
21844         * modules/unicase/u32-is-cased-tests: Likewise.
21845         * modules/unicase/u32-is-casefolded-tests: Likewise.
21846         * modules/unicase/u32-is-lowercase-tests: Likewise.
21847         * modules/unicase/u32-is-titlecase-tests: Likewise.
21848         * modules/unicase/u32-is-uppercase-tests: Likewise.
21849         * modules/unicase/u32-tolower-tests: Likewise.
21850         * modules/unicase/u32-totitle-tests: Likewise.
21851         * modules/unicase/u32-toupper-tests: Likewise.
21852         * modules/unicase/ulc-casecmp-tests: Likewise.
21853         * modules/unicase/ulc-casecoll-tests: Likewise.
21854         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21855         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21856         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21857         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21858         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21859         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21860         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21861         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21862         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21863         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21864         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21865         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21866         * modules/unictype/bidicategory-byname-tests: Likewise.
21867         * modules/unictype/bidicategory-name-tests: Likewise.
21868         * modules/unictype/bidicategory-of-tests: Likewise.
21869         * modules/unictype/bidicategory-test-tests: Likewise.
21870         * modules/unictype/block-list-tests: Likewise.
21871         * modules/unictype/block-of-tests: Likewise.
21872         * modules/unictype/block-test-tests: Likewise.
21873         * modules/unictype/category-C-tests: Likewise.
21874         * modules/unictype/category-Cc-tests: Likewise.
21875         * modules/unictype/category-Cf-tests: Likewise.
21876         * modules/unictype/category-Cn-tests: Likewise.
21877         * modules/unictype/category-Co-tests: Likewise.
21878         * modules/unictype/category-Cs-tests: Likewise.
21879         * modules/unictype/category-L-tests: Likewise.
21880         * modules/unictype/category-Ll-tests: Likewise.
21881         * modules/unictype/category-Lm-tests: Likewise.
21882         * modules/unictype/category-Lo-tests: Likewise.
21883         * modules/unictype/category-Lt-tests: Likewise.
21884         * modules/unictype/category-Lu-tests: Likewise.
21885         * modules/unictype/category-M-tests: Likewise.
21886         * modules/unictype/category-Mc-tests: Likewise.
21887         * modules/unictype/category-Me-tests: Likewise.
21888         * modules/unictype/category-Mn-tests: Likewise.
21889         * modules/unictype/category-N-tests: Likewise.
21890         * modules/unictype/category-Nd-tests: Likewise.
21891         * modules/unictype/category-Nl-tests: Likewise.
21892         * modules/unictype/category-No-tests: Likewise.
21893         * modules/unictype/category-P-tests: Likewise.
21894         * modules/unictype/category-Pc-tests: Likewise.
21895         * modules/unictype/category-Pd-tests: Likewise.
21896         * modules/unictype/category-Pe-tests: Likewise.
21897         * modules/unictype/category-Pf-tests: Likewise.
21898         * modules/unictype/category-Pi-tests: Likewise.
21899         * modules/unictype/category-Po-tests: Likewise.
21900         * modules/unictype/category-Ps-tests: Likewise.
21901         * modules/unictype/category-S-tests: Likewise.
21902         * modules/unictype/category-Sc-tests: Likewise.
21903         * modules/unictype/category-Sk-tests: Likewise.
21904         * modules/unictype/category-Sm-tests: Likewise.
21905         * modules/unictype/category-So-tests: Likewise.
21906         * modules/unictype/category-Z-tests: Likewise.
21907         * modules/unictype/category-Zl-tests: Likewise.
21908         * modules/unictype/category-Zp-tests: Likewise.
21909         * modules/unictype/category-Zs-tests: Likewise.
21910         * modules/unictype/category-and-not-tests: Likewise.
21911         * modules/unictype/category-and-tests: Likewise.
21912         * modules/unictype/category-byname-tests: Likewise.
21913         * modules/unictype/category-name-tests: Likewise.
21914         * modules/unictype/category-none-tests: Likewise.
21915         * modules/unictype/category-of-tests: Likewise.
21916         * modules/unictype/category-or-tests: Likewise.
21917         * modules/unictype/category-test-withtable-tests: Likewise.
21918         * modules/unictype/combining-class-tests: Likewise.
21919         * modules/unictype/ctype-alnum-tests: Likewise.
21920         * modules/unictype/ctype-alpha-tests: Likewise.
21921         * modules/unictype/ctype-blank-tests: Likewise.
21922         * modules/unictype/ctype-cntrl-tests: Likewise.
21923         * modules/unictype/ctype-digit-tests: Likewise.
21924         * modules/unictype/ctype-graph-tests: Likewise.
21925         * modules/unictype/ctype-lower-tests: Likewise.
21926         * modules/unictype/ctype-print-tests: Likewise.
21927         * modules/unictype/ctype-punct-tests: Likewise.
21928         * modules/unictype/ctype-space-tests: Likewise.
21929         * modules/unictype/ctype-upper-tests: Likewise.
21930         * modules/unictype/ctype-xdigit-tests: Likewise.
21931         * modules/unictype/decimal-digit-tests: Likewise.
21932         * modules/unictype/digit-tests: Likewise.
21933         * modules/unictype/mirror-tests: Likewise.
21934         * modules/unictype/numeric-tests: Likewise.
21935         * modules/unictype/property-alphabetic-tests: Likewise.
21936         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21937         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21938         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21939         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21940         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21941         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21942         * modules/unictype/property-bidi-control-tests: Likewise.
21943         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21944         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21945         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21946         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21947         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21948         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21949         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21950         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21951         * modules/unictype/property-bidi-pdf-tests: Likewise.
21952         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21953         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21954         * modules/unictype/property-byname-tests: Likewise.
21955         * modules/unictype/property-combining-tests: Likewise.
21956         * modules/unictype/property-composite-tests: Likewise.
21957         * modules/unictype/property-currency-symbol-tests: Likewise.
21958         * modules/unictype/property-dash-tests: Likewise.
21959         * modules/unictype/property-decimal-digit-tests: Likewise.
21960         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21961         * modules/unictype/property-deprecated-tests: Likewise.
21962         * modules/unictype/property-diacritic-tests: Likewise.
21963         * modules/unictype/property-extender-tests: Likewise.
21964         * modules/unictype/property-format-control-tests: Likewise.
21965         * modules/unictype/property-grapheme-base-tests: Likewise.
21966         * modules/unictype/property-grapheme-extend-tests: Likewise.
21967         * modules/unictype/property-grapheme-link-tests: Likewise.
21968         * modules/unictype/property-hex-digit-tests: Likewise.
21969         * modules/unictype/property-hyphen-tests: Likewise.
21970         * modules/unictype/property-id-continue-tests: Likewise.
21971         * modules/unictype/property-id-start-tests: Likewise.
21972         * modules/unictype/property-ideographic-tests: Likewise.
21973         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21974         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21975         * modules/unictype/property-ignorable-control-tests: Likewise.
21976         * modules/unictype/property-iso-control-tests: Likewise.
21977         * modules/unictype/property-join-control-tests: Likewise.
21978         * modules/unictype/property-left-of-pair-tests: Likewise.
21979         * modules/unictype/property-line-separator-tests: Likewise.
21980         * modules/unictype/property-logical-order-exception-tests: Likewise.
21981         * modules/unictype/property-lowercase-tests: Likewise.
21982         * modules/unictype/property-math-tests: Likewise.
21983         * modules/unictype/property-non-break-tests: Likewise.
21984         * modules/unictype/property-not-a-character-tests: Likewise.
21985         * modules/unictype/property-numeric-tests: Likewise.
21986         * modules/unictype/property-other-alphabetic-tests: Likewise.
21987         * modules/unictype/property-other-default-ignorable-code-point-tests:
21988         Likewise.
21989         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21990         * modules/unictype/property-other-id-continue-tests: Likewise.
21991         * modules/unictype/property-other-id-start-tests: Likewise.
21992         * modules/unictype/property-other-lowercase-tests: Likewise.
21993         * modules/unictype/property-other-math-tests: Likewise.
21994         * modules/unictype/property-other-uppercase-tests: Likewise.
21995         * modules/unictype/property-paired-punctuation-tests: Likewise.
21996         * modules/unictype/property-paragraph-separator-tests: Likewise.
21997         * modules/unictype/property-pattern-syntax-tests: Likewise.
21998         * modules/unictype/property-pattern-white-space-tests: Likewise.
21999         * modules/unictype/property-private-use-tests: Likewise.
22000         * modules/unictype/property-punctuation-tests: Likewise.
22001         * modules/unictype/property-quotation-mark-tests: Likewise.
22002         * modules/unictype/property-radical-tests: Likewise.
22003         * modules/unictype/property-sentence-terminal-tests: Likewise.
22004         * modules/unictype/property-soft-dotted-tests: Likewise.
22005         * modules/unictype/property-space-tests: Likewise.
22006         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22007         * modules/unictype/property-test-tests: Likewise.
22008         * modules/unictype/property-titlecase-tests: Likewise.
22009         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22010         * modules/unictype/property-unified-ideograph-tests: Likewise.
22011         * modules/unictype/property-uppercase-tests: Likewise.
22012         * modules/unictype/property-variation-selector-tests: Likewise.
22013         * modules/unictype/property-white-space-tests: Likewise.
22014         * modules/unictype/property-xid-continue-tests: Likewise.
22015         * modules/unictype/property-xid-start-tests: Likewise.
22016         * modules/unictype/property-zero-width-tests: Likewise.
22017         * modules/unictype/scripts-tests: Likewise.
22018         * modules/unictype/syntax-c-ident-tests: Likewise.
22019         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22020         * modules/unictype/syntax-java-ident-tests: Likewise.
22021         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22022         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22023         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22024         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22025         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22026         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22027         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22028         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22029         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22030         * modules/uniname/uniname-tests: Likewise.
22031         * modules/uninorm/canonical-decomposition-tests: Likewise.
22032         * modules/uninorm/compat-decomposition-tests: Likewise.
22033         * modules/uninorm/composition-tests: Likewise.
22034         * modules/uninorm/decomposing-form-tests: Likewise.
22035         * modules/uninorm/decomposition-tests: Likewise.
22036         * modules/uninorm/filter-tests: Likewise.
22037         * modules/uninorm/nfc-tests: Likewise.
22038         * modules/uninorm/nfd-tests: Likewise.
22039         * modules/uninorm/nfkc-tests: Likewise.
22040         * modules/uninorm/nfkd-tests: Likewise.
22041         * modules/uninorm/u8-normcmp-tests: Likewise.
22042         * modules/uninorm/u8-normcoll-tests: Likewise.
22043         * modules/uninorm/u16-normcmp-tests: Likewise.
22044         * modules/uninorm/u16-normcoll-tests: Likewise.
22045         * modules/uninorm/u32-normcmp-tests: Likewise.
22046         * modules/uninorm/u32-normcoll-tests: Likewise.
22047         * modules/unistdio/u8-asnprintf-tests: Likewise.
22048         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22049         * modules/unistdio/u8-vasprintf-tests: Likewise.
22050         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22051         * modules/unistdio/u8-vsprintf-tests: Likewise.
22052         * modules/unistdio/u16-asnprintf-tests: Likewise.
22053         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22054         * modules/unistdio/u16-vasprintf-tests: Likewise.
22055         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22056         * modules/unistdio/u16-vsprintf-tests: Likewise.
22057         * modules/unistdio/u32-asnprintf-tests: Likewise.
22058         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22059         * modules/unistdio/u32-vasprintf-tests: Likewise.
22060         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22061         * modules/unistdio/u32-vsprintf-tests: Likewise.
22062         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22063         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22064         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22065         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22066         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22067         * modules/unistr/u8-check-tests: Likewise.
22068         * modules/unistr/u8-chr-tests: Likewise.
22069         * modules/unistr/u8-cmp-tests: Likewise.
22070         * modules/unistr/u8-cmp2-tests: Likewise.
22071         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22072         * modules/unistr/u8-cpy-tests: Likewise.
22073         * modules/unistr/u8-mblen-tests: Likewise.
22074         * modules/unistr/u8-mbsnlen-tests: Likewise.
22075         * modules/unistr/u8-mbtouc-tests: Likewise.
22076         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22077         * modules/unistr/u8-mbtoucr-tests: Likewise.
22078         * modules/unistr/u8-move-tests: Likewise.
22079         * modules/unistr/u8-next-tests: Likewise.
22080         * modules/unistr/u8-prev-tests: Likewise.
22081         * modules/unistr/u8-set-tests: Likewise.
22082         * modules/unistr/u8-stpcpy-tests: Likewise.
22083         * modules/unistr/u8-stpncpy-tests: Likewise.
22084         * modules/unistr/u8-strcat-tests: Likewise.
22085         * modules/unistr/u8-strcmp-tests: Likewise.
22086         * modules/unistr/u8-strcoll-tests: Likewise.
22087         * modules/unistr/u8-strcpy-tests: Likewise.
22088         * modules/unistr/u8-strdup-tests: Likewise.
22089         * modules/unistr/u8-strlen-tests: Likewise.
22090         * modules/unistr/u8-strmblen-tests: Likewise.
22091         * modules/unistr/u8-strmbtouc-tests: Likewise.
22092         * modules/unistr/u8-strncat-tests: Likewise.
22093         * modules/unistr/u8-strncmp-tests: Likewise.
22094         * modules/unistr/u8-strncpy-tests: Likewise.
22095         * modules/unistr/u8-strnlen-tests: Likewise.
22096         * modules/unistr/u8-to-u16-tests: Likewise.
22097         * modules/unistr/u8-to-u32-tests: Likewise.
22098         * modules/unistr/u8-uctomb-tests: Likewise.
22099         * modules/unistr/u16-check-tests: Likewise.
22100         * modules/unistr/u16-chr-tests: Likewise.
22101         * modules/unistr/u16-cmp-tests: Likewise.
22102         * modules/unistr/u16-cmp2-tests: Likewise.
22103         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22104         * modules/unistr/u16-cpy-tests: Likewise.
22105         * modules/unistr/u16-mblen-tests: Likewise.
22106         * modules/unistr/u16-mbsnlen-tests: Likewise.
22107         * modules/unistr/u16-mbtouc-tests: Likewise.
22108         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22109         * modules/unistr/u16-mbtoucr-tests: Likewise.
22110         * modules/unistr/u16-move-tests: Likewise.
22111         * modules/unistr/u16-next-tests: Likewise.
22112         * modules/unistr/u16-prev-tests: Likewise.
22113         * modules/unistr/u16-set-tests: Likewise.
22114         * modules/unistr/u16-stpcpy-tests: Likewise.
22115         * modules/unistr/u16-stpncpy-tests: Likewise.
22116         * modules/unistr/u16-strcat-tests: Likewise.
22117         * modules/unistr/u16-strcmp-tests: Likewise.
22118         * modules/unistr/u16-strcoll-tests: Likewise.
22119         * modules/unistr/u16-strcpy-tests: Likewise.
22120         * modules/unistr/u16-strdup-tests: Likewise.
22121         * modules/unistr/u16-strlen-tests: Likewise.
22122         * modules/unistr/u16-strmblen-tests: Likewise.
22123         * modules/unistr/u16-strmbtouc-tests: Likewise.
22124         * modules/unistr/u16-strncat-tests: Likewise.
22125         * modules/unistr/u16-strncmp-tests: Likewise.
22126         * modules/unistr/u16-strncpy-tests: Likewise.
22127         * modules/unistr/u16-strnlen-tests: Likewise.
22128         * modules/unistr/u16-to-u32-tests: Likewise.
22129         * modules/unistr/u16-to-u8-tests: Likewise.
22130         * modules/unistr/u16-uctomb-tests: Likewise.
22131         * modules/unistr/u32-check-tests: Likewise.
22132         * modules/unistr/u32-chr-tests: Likewise.
22133         * modules/unistr/u32-cmp-tests: Likewise.
22134         * modules/unistr/u32-cmp2-tests: Likewise.
22135         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22136         * modules/unistr/u32-cpy-tests: Likewise.
22137         * modules/unistr/u32-mblen-tests: Likewise.
22138         * modules/unistr/u32-mbsnlen-tests: Likewise.
22139         * modules/unistr/u32-mbtouc-tests: Likewise.
22140         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22141         * modules/unistr/u32-mbtoucr-tests: Likewise.
22142         * modules/unistr/u32-move-tests: Likewise.
22143         * modules/unistr/u32-next-tests: Likewise.
22144         * modules/unistr/u32-prev-tests: Likewise.
22145         * modules/unistr/u32-set-tests: Likewise.
22146         * modules/unistr/u32-stpcpy-tests: Likewise.
22147         * modules/unistr/u32-stpncpy-tests: Likewise.
22148         * modules/unistr/u32-strcat-tests: Likewise.
22149         * modules/unistr/u32-strcmp-tests: Likewise.
22150         * modules/unistr/u32-strcoll-tests: Likewise.
22151         * modules/unistr/u32-strcpy-tests: Likewise.
22152         * modules/unistr/u32-strdup-tests: Likewise.
22153         * modules/unistr/u32-strlen-tests: Likewise.
22154         * modules/unistr/u32-strmblen-tests: Likewise.
22155         * modules/unistr/u32-strmbtouc-tests: Likewise.
22156         * modules/unistr/u32-strncat-tests: Likewise.
22157         * modules/unistr/u32-strncmp-tests: Likewise.
22158         * modules/unistr/u32-strncpy-tests: Likewise.
22159         * modules/unistr/u32-strnlen-tests: Likewise.
22160         * modules/unistr/u32-to-u16-tests: Likewise.
22161         * modules/unistr/u32-to-u8-tests: Likewise.
22162         * modules/unistr/u32-uctomb-tests: Likewise.
22163         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22164         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22165         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22166         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22167         * modules/uniwidth/u8-strwidth-tests: Likewise.
22168         * modules/uniwidth/u8-width-tests: Likewise.
22169         * modules/uniwidth/u16-strwidth-tests: Likewise.
22170         * modules/uniwidth/u16-width-tests: Likewise.
22171         * modules/uniwidth/u32-strwidth-tests: Likewise.
22172         * modules/uniwidth/u32-width-tests: Likewise.
22173         * modules/uniwidth/width-tests: Likewise.
22174
22175 2010-05-18  Richard Jones  <rjones@redhat.com>
22176
22177         doc: users.txt: list hivex
22178         * users.txt: Add hivex.
22179
22180 2010-05-18  Richard Jones  <rjones@redhat.com>
22181
22182         doc: users.txt: list febootstrap
22183         * users.txt: Add febootstrap.
22184
22185 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22186
22187         bootstrap: fix an error when gnulib is not used as a git submodule
22188         * build-aux/bootstrap (gnulib_path): If its length is zero then
22189         assign "gnulib" to it.
22190         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22191
22192 2010-05-16  Bruno Haible  <bruno@clisp.org>
22193
22194         Avoid autoconf warnings about AM_ICONV.
22195         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22196         2.64.
22197
22198 2010-05-16  Bruno Haible  <bruno@clisp.org>
22199
22200         absolute-header: Make the macro usable in more situations.
22201         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22202         from gl_ABSOLUTE_HEADER.
22203         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22204
22205 2010-05-16  James Youngman  <jay@gnu.org>
22206
22207         doc: update users.txt
22208         * users.txt: Add CSSC.
22209
22210 2010-05-16  Jim Meyering  <meyering@redhat.com>
22211
22212         init.sh: fix an error in the previous change; add more comments
22213         * tests/init.sh: Compare exit code in loop against 9, not 2.
22214         Patch by Bruno Haible.
22215         Make the two tests more similar by adding an empty "then" clause.
22216         Add comments.
22217
22218         init.sh: avoid unnecessary shell re-exec
22219         * tests/init.sh: Improve the re-exec-required check to first test the
22220         current shell.  If it passes the test, do not search for a shell that
22221         does pass, and do not re-exec.  This test is particularly contorted to
22222         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22223         of $(...) evokes a syntax error and causes immediate shell exit with
22224         status 2.  Bruno Haible reported that the re-exec made it impossible
22225         to single-step through any init.sh-using script.
22226
22227 2010-05-16  Bruno Haible  <bruno@clisp.org>
22228
22229         Fix collision between gnulib's and libintl's printf replacements.
22230         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22231         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22232         (printf): When using GNU C, map the __printf__ function to rpl_printf
22233         via __asm__. When not using GNU C, define rpl_printf instead of
22234         __printf__.
22235         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22236         commit.
22237         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22238         commit.
22239         * m4/asm-underscore.m4: New file.
22240         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22241         * modules/stdio (Files): Add m4/asm-underscore.m4.
22242         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22243         Reported by Ben Pfaff.
22244
22245 2010-05-16  Bruno Haible  <bruno@clisp.org>
22246
22247         verify: Avoid skipping the test on openSUSE 11.0.
22248         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22249
22250 2010-05-13  Bruno Haible  <bruno@clisp.org>
22251
22252         Avoid useless warnings from G++.
22253         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22254         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22255         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22256
22257 2010-05-11  Jim Meyering  <meyering@redhat.com>
22258
22259         maint.mk: tweak preceding change
22260         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22261         regexps tighter by anchoring at EOL, and make the new group "shy"
22262         for slightly decreased overhead.
22263
22264 2010-05-11  Eric Blake  <eblake@redhat.com>
22265
22266         maint.mk: gnulib doesn't guarantee NSIG
22267         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22268
22269 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22270
22271         test-pwrite.c: Remove unused variable declaration.
22272         * tests/test-pwrite.c (main): Remove read_buf declaration.
22273
22274         Remove useless test-pwrite.sh file.
22275         * tests/test-pwrite.sh: Delete file.
22276         * modules/pwrite-tests: Remove references.
22277         Reported by Bruno Haible.
22278
22279 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22280
22281         init.sh: fix a typo
22282         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22283
22284 2010-05-10  Jim Meyering  <meyering@redhat.com>
22285
22286         maint.mk: avoid using a temporary file in the always-defined-macros check
22287         * top/maint.mk (.re-defmac): Remove rule.
22288         (gl_trap_): Remove definition.
22289         (sc_prohibit_always-defined_macros): Rewrite not to create and
22290         depend on a temporary file.  Instead, depend on GNU grep's ability
22291         to read a list of regular expressions from stdin when given "-f -".
22292
22293 2010-05-09  Bruno Haible  <bruno@clisp.org>
22294
22295         Update to GNU gettext 0.18, part 1.
22296         * m4/gettext.m4: Update to GNU gettext 0.18.
22297         * m4/intl.m4: Likewise.
22298         * m4/po.m4: Likewise.
22299         * modules/gettext (Files): Add m4/fcntl-o.m4.
22300         (configure.ac): Require gettext infrastructure from version 0.18.
22301
22302 2010-05-09  Jim Meyering  <meyering@redhat.com>
22303
22304         init.sh: enable MALLOC_PERTURB_
22305         * tests/init.sh: Enable glibc's malloc-perturbing option.
22306
22307         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22308         With my recent change in init.sh from the two-line form:
22309             -#   : ${srcdir=.}
22310             -#   . "$srcdir/init.sh"; path_prepend_ .
22311             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22312         I noticed that using the one-line form would cause this test
22313         to fail with a false-positive, or to stop working altogether,
22314         depending on whether help-version changed or all the tests did.
22315         * top/maint.mk (_hv_regex): Remove this definition.
22316         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22317         (_hv_regex_strong): Use a stronger regex to check for conformance.
22318         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22319         Give a separate diagnostic for lack of conforming use.
22320
22321         maint.mk: prohibit definition of symbols defined by gnulib
22322         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22323         definition of symbols defined by gnulib.
22324
22325 2010-05-09  Bruno Haible  <bruno@clisp.org>
22326
22327         acl: Avoid test failure on Cygwin-hosted mingw.
22328         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22329
22330 2010-05-09  Bruno Haible  <bruno@clisp.org>
22331
22332         error: Use system's fcntl function.
22333         * lib/error.c (fcntl): Undefine.
22334
22335 2010-05-09  Jim Meyering  <meyering@redhat.com>
22336
22337         verify: adjust formatting to be more consistent
22338         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22339         argument-list '('s, and after one comma.
22340
22341 2010-05-09  Bruno Haible  <bruno@clisp.org>
22342
22343         error: More reliable output on mingw.
22344         * lib/error.c: Include <windows.h>.
22345         (is_open): New function.
22346         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22347         defined.
22348
22349 2010-05-09  Bruno Haible  <bruno@clisp.org>
22350
22351         vasnprintf: Fix syntax errors in libintl build on mingw.
22352         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22353         pad_ourselves and prec_ourselves after use.
22354
22355 2010-05-08  Bruno Haible  <bruno@clisp.org>
22356
22357         * lib/config.charset: Update comments for Cygwin 1.7.
22358         * lib/localcharset.c: Likewise.
22359
22360 2010-05-07  Jim Meyering  <meyering@redhat.com>
22361
22362         init.sh: improve comments
22363         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22364         . "${srcdir=.}/init.sh"; path_prepend_ .
22365         Add a note about path_prepend_ and the alternative of using
22366         TESTS_ENVIRONMENT.
22367
22368 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22369
22370         exclude: Unescape hashed patterns in wildcard mode.
22371         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22372         to the hash list.
22373         * tests/test-exclude8.sh: New test case.
22374         * modules/exclude-tests: Add new test.
22375
22376 2010-05-05  Eric Blake  <eblake@redhat.com>
22377
22378         verify: automate tests
22379         * modules/verify-tests: New module.
22380         * tests/test-verify.sh: New file.
22381         * tests/test-verify.c: Guard each negative test with a unique id.
22382         Also avoid warning about unused left hand of comma expressions.
22383
22384 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22385
22386         Further improvements to verify.h, suggested by Eric Blake.
22387         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22388         the GL_* versions, to avoid collision with OpenGL.
22389         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22390         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22391         than testing merely whether it's defined.
22392
22393         Modify verify.h to pacify gcc -Wredundant_decls.
22394         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22395         These use the prefix "GL_" since they're likely to be useful elsewhere.
22396         We may need to break them out into a different .h file.
22397         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22398         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22399         of verify_function__.
22400
22401 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22402
22403         Tests for module pwrite.
22404         * modules/pwrite-tests: New file.
22405         * tests/test-pwrite.sh: New file.
22406         * tests/test-pwrite.c: New file.
22407
22408         New module pwrite.
22409         * lib/unistd.in.h (pwrite): New declaration.
22410         * lib/pwrite.c: New file, from glibc with modifications.
22411         * m4/pwrite.m4: New file.
22412         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22413         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22414         REPLACE_PWRITE.
22415         * modules/pwrite: New file.
22416         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22417         REPLACE_PWRITE.
22418         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22419         * doc/posix-functions/pwrite.texi: Mention the new module.
22420
22421 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22422
22423         pread: Update documentation.
22424         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22425
22426 2010-05-04  Eric Blake  <eblake@redhat.com>
22427
22428         docs: update cygwin progress
22429         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22430         this bug.
22431         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22432         Added in cygwin 1.7.2.
22433         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22434         Likewise.
22435         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22436         Likewise.
22437         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22438         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22439         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22440         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22441         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22442         Mention nproc module.
22443         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22444         bug in cygwin 1.7.5 addition.
22445         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22446         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22447         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22448         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22449         1.7.5.
22450         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22451         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22452         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22453         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22454         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22455         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22456         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22457         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22458         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22459         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22460         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22461         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22462         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22463         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22464         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22465         Likewise.
22466         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22467         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22468         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22469         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22470         Likewise.
22471         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22472         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22473         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22474         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22475         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22476         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22477         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22478         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22479         Likewise.
22480         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22481         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22482         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22483         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22484         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22485         Likewise.
22486         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22487         Likewise.
22488         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22489         Likewise.
22490         * doc/glibc-functions/xdrrec_endofrecord.texi
22491         (xdrrec_endofrecord): Likewise.
22492         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22493         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22494         Likewise.
22495         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22496         Likewise.
22497
22498 2010-05-04  Jim Meyering  <meyering@redhat.com>
22499
22500         gendocs.sh: make its "-s FILE" option more useful
22501         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22502         $PACKAGE to reflect the probably-different basename of "FILE".
22503
22504 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22505
22506         bootstrap: don't ignore download_po_files failure
22507         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22508         failure.
22509
22510 2010-05-03  Jim Meyering  <meyering@redhat.com>
22511
22512         maint.mk: allow to pass options to gendocs.sh
22513         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22514         (gendocs_options_): New overridable variable.
22515
22516         gnu-web-doc-update: don't ignore configure or build failure
22517         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22518
22519         announce-gen: backslash-escape '@'s in --help output
22520         * build-aux/announce-gen: Fix syntax errors.
22521
22522         maint.mk, announce-gen: allow project-specific announcement mail headers
22523         * top/maint.mk (translation_project_): Define default.
22524         (announcement_Cc_, announcement_mail_headers_): Likewise.
22525         (announcement): Invoke announce-gen with new --mail-headers option.
22526         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22527
22528         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22529         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22530         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22531         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22532         line in the "err2" output file when running "make check" in verbose
22533         mode (i.e., with set -x enabled).
22534
22535 2010-05-03  Bruno Haible  <bruno@clisp.org>
22536
22537         wctob: Fix for weird platforms.
22538         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22539         argument value.
22540
22541 2010-05-03  Jim Meyering  <meyering@redhat.com>
22542
22543         maint.mk: prohibit unwarranted use of <strings.h>
22544         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22545         strings.h in a file that does not also use strcasecmp, strncasecmp,
22546         ffs or ffsll.
22547
22548         maint.mk: remove obsolete comments
22549         * top/maint.mk: Remove stale, commented-out rules.
22550
22551 2010-05-02  Bruno Haible  <bruno@clisp.org>
22552
22553         wcwidth: Declare also when it's aliased.
22554         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22555         macro.
22556
22557 2010-05-02  Bruno Haible  <bruno@clisp.org>
22558
22559         Fix regression from 2010-04-25.
22560         * gnulib-tool (func_modules_transitive_closure): Check the status of
22561         all modules, not only of the tests that are of the form foo-tests where
22562         foo is a module.
22563
22564 2010-05-02  Bruno Haible  <bruno@clisp.org>
22565
22566         wctob: Work around nasty Cygwin 1.7.2 bug.
22567         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22568         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22569
22570 2010-05-01  Bruno Haible  <bruno@clisp.org>
22571
22572         fpurge: Sharper test.
22573         * tests/test-fpurge.c (main): Add one more ftell check.
22574         * modules/fpurge-tests (Depends-on): Add ftell.
22575         Suggested by Eric Blake.
22576
22577 2010-05-01  Bruno Haible  <bruno@clisp.org>
22578
22579         ftello: Another test.
22580         * tests/test-ftello3.c: New file.
22581         * modules/ftello-tests (Files): Add it.
22582         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22583         MOSTLYCLEANFILES.
22584
22585         ftell: Another test.
22586         * tests/test-ftell3.c: New file.
22587         * modules/ftell-tests (Files): Add it.
22588         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22589         MOSTLYCLEANFILES.
22590
22591 2010-05-01  Bruno Haible  <bruno@clisp.org>
22592
22593         ftell, ftello: Work around Solaris bug.
22594         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22595         * lib/ftello.c: Include stdio-impl.h.
22596         (ftello): On Solaris, when _IOWRT is set, compute the result without
22597         looking at _IOREAD.
22598         * modules/ftello (Files): Add lib/stdio-impl.h.
22599         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22600         * doc/posix-functions/ftello.texi: Likewise.
22601         Reported by Eric Blake.
22602
22603 2010-05-01  Bruno Haible  <bruno@clisp.org>
22604
22605         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22606         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22607         the _IOWRT flag is also set.
22608
22609 2010-05-01  Bruno Haible  <bruno@clisp.org>
22610
22611         Fix doc about a HP-UX stdio bug.
22612         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22613         * doc/posix-functions/ftello.texi: Likewise.
22614
22615 2010-05-01  Bruno Haible  <bruno@clisp.org>
22616
22617         lseek test: Fix failure on Solaris.
22618         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22619         output.
22620
22621 2010-04-30  Jim Meyering  <meyering@redhat.com>
22622
22623         bootstrap: don't ignore failure to generate po*/Makevars
22624         * build-aux/bootstrap (with_gettext): Don't ignore failure
22625         to create po/Makevars or runtime-po/Makevars.
22626
22627 2010-04-29  Eric Blake  <eblake@redhat.com>
22628
22629         headers: relax license to LGPLv2+
22630         * modules/fcntl-h (License): Relax license.
22631         * modules/getopt-posix (License): Likewise.
22632         * modules/locale (License): Likewise.
22633         * modules/math (License): Likewise.
22634         * modules/pty (License): Likewise.
22635         * modules/sched (License): Likewise.
22636         * modules/search (License): Likewise.
22637         * modules/spawn (License): Likewise.
22638         * modules/stdarg (License): Likewise.
22639         * modules/sysexits (License): Likewise.
22640
22641 2010-04-29  Jim Meyering  <meyering@redhat.com>
22642
22643         inttypes: relax license to LGPLv2+
22644         * modules/inttypes (License): Relax license.
22645
22646 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22647
22648         * top/maint.mk (indent): Run twice to produce idempotent results.
22649
22650 2010-04-28  Bruno Haible  <bruno@clisp.org>
22651
22652         getdate: Generate getdate.c in the source directory.
22653         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22654         MOSTLYCLEANFILES.
22655         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22656
22657 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22658
22659         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22660         is not declared as a const *; avoid warnings in that case.
22661
22662 2010-04-28  Eric Blake  <eblake@redhat.com>
22663
22664         canonicalize-lgpl: avoid compiler warning
22665         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22666         declaration' / 'extraneous semicolon' warning with some compilers.
22667         Reported by Andreas Gruenbacher.
22668
22669 2010-04-28  Jim Meyering  <meyering@redhat.com>
22670
22671         init.sh: ensure a more reliable exit status when exiting via trap
22672         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22673         Inspired by patches from Dmitry V. Levin.
22674         Also trap on signal 3 (SIGQUIT).
22675
22676 2010-04-27  Bruno Haible  <bruno@clisp.org>
22677
22678         Update doc about utimes().
22679         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22680         'utimens' module.
22681         Reported by Andreas Gruenbacher <agruen@suse.de>.
22682
22683 2010-04-27  Eric Blake  <eblake@redhat.com>
22684
22685         full-read, full-write: relax license
22686         * modules/full-read (License): Drop to LGPLv2+.
22687         * modules/full-write (License): Likewise.
22688         * modules/safe-read (License): Likewise.
22689         * modules/safe-write (License): Likewise.
22690
22691         pthread: mention library for linking
22692         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22693
22694 2010-04-27  Jim Meyering  <meyering@redhat.com>
22695
22696         maint.mk: fix a bug introduced in last change
22697         * top/maint.mk (gl_assured_headers_): Now that all names are on
22698         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22699         is not anchored to end of word, it should be adequate.
22700
22701         maint.mk: avoid side-effect in latest syntax-check
22702         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22703         to run commands via $(shell...), and hence to incur cost only when
22704         the new rule is actually run.
22705
22706         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22707         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22708         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22709         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22710         (gl_assured_headers_, az_, AZ_): Define.
22711         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22712
22713 2010-04-26  Jim Meyering  <jim@meyering.net>
22714             Bruno Haible  <bruno@clisp.org>
22715
22716         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22717         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22718         Prompted by an exchange with Gilles Espinasse.
22719
22720 2010-04-26  Jim Meyering  <meyering@redhat.com>
22721
22722         git-version-gen: aesthetic tweak
22723         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22724         so that the command remains on a single line.
22725
22726 2010-04-26  Eric Blake  <eblake@redhat.com>
22727
22728         git-version-gen: allow use on EBCDIC hosts
22729         * build-aux/git-version-gen (dirty): Use literal rather than tying
22730         ourselves to ascii.
22731         Reported by Steve Goetze.
22732
22733 2010-04-25  Bruno Haible  <bruno@clisp.org>
22734
22735         netdb: Add support for GNULIB_POSIXCHECK.
22736         * lib/netdb.in.h: Include warn-on-use.h.
22737         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22738         functions are used when GNULIB_POSIXCHECK is defined and the
22739         getaddrinfo module is not in use.
22740         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22741         freeaddrinfo, gai_strerror, getnameinfo are declared.
22742         * modules/netdb (Depends-on): Add warn-on-use.
22743         (Makefile.am): Include warn-on-use.h in netdb.h.
22744
22745 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22746
22747         build: avoid "make check" failure without .git/ directory
22748         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22749         there is no .git/ directory.
22750
22751 2010-04-25  Bruno Haible  <bruno@clisp.org>
22752
22753         ptsname: Fix misuse of ttyname_r.
22754         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22755         of errno.
22756
22757 2010-04-25  Bruno Haible  <bruno@clisp.org>
22758
22759         ttyname_r: Make it work on Solaris 10.
22760         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22761         if the system function has the POSIX declaration. Test whether the
22762         function fails if the buffer is less than 128 bytes large.
22763         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22764         system's ttyname_r function. Provide a reasonably large buffer.
22765         * modules/ttyname_r (Depends-on): Add extensions.
22766         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22767
22768 2010-04-25  Bruno Haible  <bruno@clisp.org>
22769
22770         Use the 'extensions' module for some more functions on Solaris.
22771         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22772         module.
22773         * doc/posix-functions/ctime_r.texi: Likewise.
22774         * doc/posix-functions/getgrgid_r.texi: Likewise.
22775         * doc/posix-functions/getgrnam_r.texi: Likewise.
22776         * doc/posix-functions/getpwnam_r.texi: Likewise.
22777         * doc/posix-functions/getpwuid_r.texi: Likewise.
22778         * doc/posix-functions/readdir_r.texi: Likewise.
22779         * doc/posix-functions/sigwait.texi: Likewise.
22780         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22781         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22782
22783 2010-04-25  Bruno Haible  <bruno@clisp.org>
22784
22785         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22786         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22787         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22788         * lib/ttyname_r.c: Include <limits.h>.
22789         (ttyname_r): Define using the system's ttyname_r function, if it exists
22790         and not on Solaris.
22791         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22792         set.
22793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22794         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22795         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22796         Reported by Simon Josefsson.
22797
22798 2010-04-25  Bruno Haible  <bruno@clisp.org>
22799
22800         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22801         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22802         * doc/posix-functions/ctime_r.texi: Likewise.
22803         * doc/posix-functions/getgrgid_r.texi: Likewise.
22804         * doc/posix-functions/getgrnam_r.texi: Likewise.
22805         * doc/posix-functions/getlogin_r.texi: Likewise.
22806         * doc/posix-functions/getpwnam_r.texi: Likewise.
22807         * doc/posix-functions/getpwuid_r.texi: Likewise.
22808         * doc/posix-functions/readdir_r.texi: Likewise.
22809         * doc/posix-functions/sigwait.texi: Likewise.
22810         * doc/posix-functions/ttyname_r.texi: Likewise.
22811         Reported by Simon Josefsson.
22812
22813 2010-04-25  Bruno Haible  <bruno@clisp.org>
22814
22815         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22816         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22817         also to --create-testdir.
22818         (func_acceptable): Don't consider the status of *-tests modules here.
22819         (func_modules_transitive_closure): Consider it here, before including a
22820         test module.
22821         (func_import, func_create_testdir): Set inc_all_direct_tests,
22822         inc_all_indirect_tests.
22823         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22824         --create-testdir and --create-megatestdir.
22825
22826 2010-04-25  Bruno Haible  <bruno@clisp.org>
22827
22828         gnulib-tool: Add --without-*-tests options.
22829         * gnulib-tool (func_usage): Document the --without-*-tests options.
22830         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22831         excl_unportable_tests): New variables.
22832         Fail if they are specified with --import or --update.
22833         (func_acceptable): Respect the excl_*_tests variables.
22834         (func_import): Set the excl_*_tests variables to empty.
22835
22836 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22837             Bruno Haible  <bruno@clisp.org>
22838
22839         Work around a MacOS X 10.4 bug with openpty.
22840         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22841         * tests/test-openpty.c (main): Close the master side explicitly.
22842
22843 2010-04-25  Bruno Haible  <bruno@clisp.org>
22844
22845         strnlen: Fix a C++ test error on MacOS X and Solaris.
22846         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22847         the function is not declared.
22848         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22849         Simon Josefsson.
22850
22851 2010-04-24  Bruno Haible  <bruno@clisp.org>
22852
22853         Avoid a gcc warning.
22854         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22855         of correct type for %08lx directive.
22856         Reported by Eric Blake.
22857
22858 2010-04-24  Bruno Haible  <bruno@clisp.org>
22859
22860         vasnprintf: Correct errno value in case of out-of-memory.
22861         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22862         or sprintf. Use the errno value from SNPRINTF or sprintf.
22863         Reported by Ian Beckwith <ianb@erislabs.net>.
22864
22865 2010-04-24  Bruno Haible  <bruno@clisp.org>
22866
22867         ansi-c++-opt: Find correct compiler when cross-compiling.
22868         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22869         AC_CHECK_PROGS.
22870         Reported by Simon Josefsson.
22871
22872 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22873
22874         vc-list-files: Add support for subversion
22875         * build-aux/vc-list-files: Use "svn list" to generate the list of
22876         files controlled by subversion.
22877
22878 2010-04-23  Jim Meyering  <meyering@redhat.com>
22879
22880         vc-list-files tests: convert to use init.sh
22881         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22882         path_prepend_.
22883         Use Exit, not exit.
22884         Use skip_ rather than open coding it.
22885         Remove trap set-up and compare definitions.
22886         * tests/test-vc-list-files-git.sh: Likewise.
22887         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22888
22889 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22890
22891         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22892         backup files.
22893
22894 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22895
22896         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22897
22898 2010-04-20  Eric Blake  <eblake@redhat.com>
22899
22900         tests: be robust to ignored SIGPIPE
22901         * tests/test-select-in.sh: Consume all output.
22902         * tests/test-lseek.sh: Check correct exit status, while avoiding
22903         EPIPE.
22904
22905 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22906             Bruno Haible  <bruno@clisp.org>
22907
22908         visibility: Don't use -fvisibility if it leads to a warning.
22909         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22910         yes, don't pretend that visibility works if it leads to a warning.
22911         Reported by Mike Gran <spk121@yahoo.com>.
22912
22913 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22914
22915         * build-aux/bootstrap: Use "git -h" for testing for supported options
22916         instead of "git --help".  The short-form option only shows a summary,
22917         and doesn't layout the full man page.  Grep for the full option name
22918         in the summary, too.
22919
22920 2010-04-19  Bruno Haible  <bruno@clisp.org>
22921
22922         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22923         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22924         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22925         mention of RELOCATABLE_STRIP.
22926         Reported by Sylvain Beucler <beuc@beuc.net>.
22927
22928 2010-04-19  Bruno Haible  <bruno@clisp.org>
22929
22930         * lib/diffseq.h: Fix typo in comment.
22931         Reported by Eric Blake.
22932
22933 2010-04-19  Bruno Haible  <bruno@clisp.org>
22934
22935         ioctl: Move autoconf macro to a .m4 file.
22936         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22937         * modules/ioctl (Files): Add it.
22938         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22939         Reported by Ian Beckwith <ianb@erislabs.net>.
22940
22941 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22942             Bruno Haible  <bruno@clisp.org>
22943
22944         diffseq: Accommodate use-case with abstract arrays.
22945         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22946         is not defined.
22947         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22948         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22949
22950 2010-04-18  Bruno Haible  <bruno@clisp.org>
22951
22952         * doc/posix-headers/stdbool.texi: More precise wording.
22953
22954 2010-04-17  Jim Meyering  <meyering@redhat.com>
22955
22956         maint.mk: use gnu-style indentation in an embedded perl script
22957         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22958         Rename variable: s/two/last_two_bytes/
22959
22960 2010-04-16  Eric Blake  <eblake@redhat.com>
22961
22962         test-stdbool: skip test that fails with Solaris CC
22963         * tests/test-stdbool.c (f): Skip test that causes compilation
22964         error under buggy C++ compiler.
22965         * lib/stdbool.in.h: Document the limitation.
22966         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22967
22968         setenv: allow compilation with C++
22969         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22970         register keyword.
22971
22972         stdint: allow test to pass with C++
22973         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22974
22975         getopt: allow compilation with C++
22976         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22977         struct.
22978         * lib/getopt.c (_getopt_internal_r): Use correct type.
22979         Reported by Dagobert Michelson, via Joel E. Denny.
22980
22981 2010-04-16  Bruno Haible  <bruno@clisp.org>
22982
22983         Override netdb.h always.
22984         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22985         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22986         Reported by Ludovic Courtès <ludo@gnu.org>.
22987
22988 2010-04-15  Bruno Haible  <bruno@clisp.org>
22989
22990         openpty: Fix mistake from 2010-03-21.
22991         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22992         Reported by Simon Josefsson.
22993
22994 2010-04-15  Eric Blake  <eblake@redhat.com>
22995
22996         test-forkpty: fix expected signature
22997         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22998         Reported by Simon Josefsson.
22999
23000 2010-04-15  Jim Meyering  <meyering@redhat.com>
23001
23002         maint.mk: texinfo_suffix_re_: correct the default regexp
23003         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23004
23005         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23006         make it configurable via texinfo_suffix_re_.
23007
23008 2010-04-14  Eric Blake  <eblake@redhat.com>
23009
23010         strtok_r: relax license to LGPLv2+
23011         * modules/strtok_r (License): Relax license.
23012         Reported by Matthias Bolte.
23013
23014 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23015
23016         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23017         version 1.4.4 by default instead of requiring the libgcrypt
23018         version used during build.  This makes it possible to use the
23019         application with older but still binary compatible libgcrypt
23020         versions.
23021
23022 2010-04-13  Eric Blake  <eblake@redhat.com>
23023
23024         getopt-gnu: match recent glibc fixes and posix ruling
23025         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23026         '+' handling, when requesting extensions.
23027         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23028         'W;' handling.
23029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23030         * doc/posix-functions/getopt.texi (getopt): Document this.
23031         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23032         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23033         Likewise.
23034
23035         getopt: merge bug fixes from glibc
23036         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23037         diagnostics.  Honor '+:' correctly.  Reject ';'.
23038
23039         getopt-posix: detect MacOS bug
23040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23041         optind when missing a required argument.
23042         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23043         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23044         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23045         Likewise.
23046
23047         getopt-posix: avoid spurious failure on Solaris
23048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23049         an indicator that setting optind=1 is sufficient for reset.
23050
23051         getopt-posix: avoid spurious failure on FreeBSD
23052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23053         in POSIX mode, since the m4 test uses it.
23054
23055         gnulib-tool: silence warning on BSD sh
23056         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23057
23058 2010-04-13  Jim Meyering  <meyering@redhat.com>
23059
23060         doc: users.txt: GNU patch now uses gnulib
23061         * users.txt: Add patch.
23062
23063 2010-04-12  Jim Meyering  <meyering@redhat.com>
23064
23065         maint.mk: generate more concise timing data for syntax-check rules
23066         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23067         " done" from each line that reports a syntax-check test duration.
23068
23069 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23070
23071         git-version-gen: use "git update-index..." rather than "git status"
23072         * build-aux/git-version-gen: Use git update-index --refresh, not
23073         "git status".  With some versions of git, "git status" would fail
23074         to update the index and result in an unwarranted "-dirty" suffix.
23075
23076 2010-04-11  Jim Meyering  <meyering@redhat.com>
23077
23078         openat: correct formatting (no semantic change)
23079         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23080         Suggested by Bruno Haible.
23081
23082 2010-04-11  Bruno Haible  <bruno@clisp.org>
23083
23084         Stricter declaration checking in testdirs.
23085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23086         If for_tests is true, augment AM_CPPFLAGS to define
23087         GNULIB_STRICT_CHECKING.
23088         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23089         GNULIB_STRICT_CHECKING is defined, verify that the function is
23090         declared.
23091
23092 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23093             Bruno Haible  <bruno@clisp.org>
23094
23095         libunistring: Improve configure output.
23096         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23097         Don't say "consider installing GNU libunistring" when checking again
23098         with libiconv.
23099
23100 2010-04-11  Bruno Haible  <bruno@clisp.org>
23101
23102         libunistring: Correct value of $LTLIBUNISTRING.
23103         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23104         correct the value of $LTLIBUNISTRING.
23105
23106 2010-04-11  Bruno Haible  <bruno@clisp.org>
23107
23108         havelib: Add static libraries to LIBS in the right order.
23109         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23110         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23111
23112 2010-04-11  Bruno Haible  <bruno@clisp.org>
23113
23114         libunistring: Detect libunistring also when it depends on libiconv.
23115         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23116         the second AC_LIB_HAVE_LINKFLAGS invocation.
23117
23118 2010-04-11  James Youngman  <jay@gnu.org>
23119
23120         close-stream: declare local scalars to be "const"
23121         * lib/close-stream.c (close_stream): Make boolean variables const
23122         to document the fact that we set but do not change them.
23123
23124 2010-04-11  Bruno Haible  <bruno@clisp.org>
23125
23126         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23127
23128 2010-04-11  Jim Meyering  <meyering@redhat.com>
23129
23130         maint.mk: don't include dist-check.mk
23131         * top/maint.mk: Remove bogus include directive.
23132
23133         maint.mk: improve empty-line-at-EOF check
23134         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23135         solution, rather than tail+Perl-based one.  The latter would read
23136         a few kilobytes from the end of each file, and did not handle empty
23137         files properly.
23138
23139         maint.mk: print the elapsed time for each syntax-check rule
23140         * top/maint.mk (sc_m_rules_): Save start time in a file.
23141         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23142         (local-check): Interpose the .z rules
23143
23144 2010-04-11  Jim Meyering  <meyering@redhat.com>
23145
23146         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23147         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23148         empty file with one that ends in an empty line.
23149
23150 2010-04-10  Bruno Haible  <bruno@clisp.org>
23151
23152         mkdir: Make it work on mingw64.
23153         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23154         * lib/mkdir.c: Update comment.
23155         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23156
23157 2010-04-10  Bruno Haible  <bruno@clisp.org>
23158
23159         Don't override improved macro from newer autoconf.
23160         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23161         autoconf >= 2.62.
23162         Reported by Joel E. Denny <jdenny@clemson.edu>.
23163
23164 2010-04-10  Jim Meyering  <meyering@redhat.com>
23165
23166         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23167         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23168
23169         maint.mk: correct a diagnostic
23170         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23171         in diagnostic; now use $prohibit.
23172
23173 2010-04-10  Bruno Haible  <address@hidden>
23174
23175         fchownat: Fix a C++ test error on Solaris 8.
23176         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23177         the function does not exist.
23178
23179 2010-04-10  Bruno Haible  <bruno@clisp.org>
23180
23181         vasnprintf: Add more tests.
23182         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23183         (test_function): Test converting an invalid wide string.
23184
23185         vasnprintf: Correct handling of unconvertible wide string arguments.
23186         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23187         VASNPRINTF.
23188         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23189         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23190         smaller than the expected maximum need for the directive. Set errno to
23191         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23192         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23194         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23195         * modules/vasnprintf (Files): Add m4/printf.m4.
23196         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23197
23198 2010-04-10  Bruno Haible  <bruno@clisp.org>
23199
23200         vasnprintf: Fix crash in %ls directive.
23201         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23202         string is passed as argument to %ls, with no precision and no width.
23203         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23204
23205 2010-04-10  Bruno Haible  <bruno@clisp.org>
23206
23207         vasnprintf: Fix multiple test failures on mingw.
23208         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23209         _snprintf, or snwprintf, not _snwprintf.
23210
23211 2010-04-10  Bruno Haible  <bruno@clisp.org>
23212
23213         write: Fix a C++ test error on mingw.
23214         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23215
23216 2010-04-10  Bruno Haible  <bruno@clisp.org>
23217
23218         vasnprintf test: Reduce code duplication.
23219         * tests/test-vasnprintf.c (test_function): New function, extracted from
23220         test_vasnprintf.
23221         (test_vasnprintf, test_asnprintf): Invoke it.
23222
23223 2010-04-10  Bruno Haible  <bruno@clisp.org>
23224
23225         strnlen: Fix warning in C++ mode on MacOS X.
23226         * lib/string.in.h (strnlen): Use the modern idiom.
23227         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23228         defining strnlen as a macro already in <config.h>.
23229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23230         REPLACE_STRNLEN.
23231         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23232         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23233
23234 2010-04-08  James Youngman  <jay@gnu.org>
23235
23236         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23237         the example.
23238
23239 2010-04-09  Jim Meyering  <meyering@redhat.com>
23240
23241         maint.mk: print better diagnostic when there is no $(_hv_file)
23242         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23243         announce that when $(_hv_file) (aka help-version) does not exist.
23244
23245         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23246         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23247         not try to interpret its random input bytes.  Jarno Rajahalme reported
23248         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23249         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23250         (mktempd_): Likewise, just in case.
23251
23252         ftruncate: add two years to projected module removal date: 2012
23253         * m4/ftruncate.m4: Adjust comments.
23254
23255         ftruncate: mark module as obsolete; even MinGW provides it, now
23256         * modules/ftruncate (Status): Obsolete.
23257         (Notice): Say that.
23258         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23259         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23260
23261 2010-04-08  Bruno Haible  <bruno@clisp.org>
23262
23263         Fix side effects from tests-related modules.
23264         * modules/dprintf-posix (Comment): New section.
23265         * modules/fprintf-posix (Comment): Likewise.
23266         * modules/obstack-printf-posix (Comment): Likewise.
23267         * modules/printf-posix (Comment): Likewise.
23268         * modules/snprintf-posix (Comment): Likewise.
23269         * modules/sprintf-posix (Comment): Likewise.
23270         * modules/vasnprintf-posix (Comment): Likewise.
23271         * modules/vasprintf-posix (Comment): Likewise.
23272         * modules/vdprintf-posix (Comment): Likewise.
23273         * modules/vfprintf-posix (Comment): Likewise.
23274         * modules/vprintf-posix (Comment): Likewise.
23275         * modules/vsnprintf-posix (Comment): Likewise.
23276         * modules/vsprintf-posix (Comment): Likewise.
23277         * modules/xprintf-posix (Comment): Likewise.
23278         * modules/xvasprintf-posix (Comment): Likewise.
23279         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23280         * modules/floorf-tests (Depends-on): Likewise.
23281         * modules/round-tests (Depends-on): Likewise.
23282         * modules/roundf-tests (Depends-on): Likewise.
23283         * modules/trunc-tests (Depends-on): Likewise.
23284         * modules/truncf-tests (Depends-on): Likewise.
23285         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23286         'fprintf-posix' module is not present.
23287         * tests/test-floorf2.c (check): Likewise.
23288         * tests/test-trunc2.c (check): Likewise.
23289         * tests/test-truncf2.c (check): Likewise.
23290         * tests/test-round2.c (equal): Likewise.
23291         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23292
23293 2010-04-07  Karl Berry  <karl@gnu.org>
23294
23295         * config/srclist.txt,
23296         * config/srclistvars.sh,
23297         * config/srclist-update: doc fixes.
23298
23299 2010-04-07  Jim Meyering  <meyering@redhat.com>
23300
23301         maint.mk: add a PATH crosschecking syntax-check rule
23302         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23303         Useful if you use a test like the one in help-version (coreutils,
23304         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23305         printed by prog --version.
23306
23307 2010-04-06  Bruno Haible  <bruno@clisp.org>
23308
23309         Fix link error on mingw.
23310         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23311         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23312
23313 2010-04-06  Bruno Haible  <bruno@clisp.org>
23314
23315         Assume rmdir exists.
23316         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23317
23318 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23319
23320         doc: update users.txt
23321         * users.txt: Add gcal.
23322
23323 2010-04-06  Jim Meyering  <meyering@redhat.com>
23324
23325         init.sh: simply unset TMPDIR rather than risking env -i
23326         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23327         although it probably works fine on all Unix-based systems, some
23328         systems (Cygwin?) cannot tolerate a totally cleared environment.
23329         Suggestion from Eric Blake.
23330
23331 2010-04-06  Jim Meyering  <meyering@redhat.com>
23332
23333         init.sh: portability fix: use env's POSIX-specified -i option not -u
23334         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23335         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23336
23337 2010-04-05  Bruno Haible  <bruno@clisp.org>
23338
23339         btowc: Work around Cygwin 1.7.2 bug.
23340         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23341         does not map NUL to 0.
23342         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23343
23344 2010-04-05  Bruno Haible  <bruno@clisp.org>
23345
23346         Make the multithread modules work on Cygwin 1.7.2.
23347         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23348         imported symbols can be declared weak, so that it returns "no" on
23349         Cygwin 1.7.2.
23350
23351 2010-04-05  Bruno Haible  <bruno@clisp.org>
23352
23353         Use the module 'strncat'.
23354         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23355
23356         Tests for module 'strncat'.
23357         * modules/strncat-tests: New file.
23358         * tests/test-strncat.c: New file.
23359
23360         New module 'strncat'.
23361         * lib/string.in.h (strncat): New declaration.
23362         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23363         * m4/strncat.m4: New file, based on m4/memchr.m4.
23364         * modules/strncat: New file.
23365         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23366         is declared.
23367         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23368         REPLACE_STRNCAT.
23369         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23370         REPLACE_STRNCAT.
23371         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23372         module.
23373         * tests/test-string-c++.cc: Check signature of strncat.
23374
23375 2010-04-05  Jim Meyering  <meyering@redhat.com>
23376
23377         xstrtoumax-tests: convert to use init.sh
23378         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23379         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23380         Use Exit, not exit.
23381         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23382
23383         xstrtoimax-tests: convert to use init.sh
23384         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23385         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23386         Use Exit, not exit.
23387         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23388
23389 2010-04-05  Bruno Haible  <bruno@clisp.org>
23390
23391         sys_socket: Avoid #define replacements in C++ mode.
23392         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23393         warning to the function if possible, rather than #defining the symbol
23394         to a dysfunctional alias.
23395
23396 2010-04-05  Bruno Haible  <bruno@clisp.org>
23397
23398         fseeko: Fix C++ test error on mingw.
23399         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23400         gl_FUNC_FSEEKO.
23401         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23402         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23403         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23404         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23405
23406 2010-04-05  Bruno Haible  <bruno@clisp.org>
23407
23408         duplocale: Improve test output.
23409         * tests/test-duplocale.c (main): Print reason for skipped test.
23410
23411 2010-04-05  Bruno Haible  <bruno@clisp.org>
23412
23413         Assume rmdir exists.
23414         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23415         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23416
23417 2010-04-05  Bruno Haible  <bruno@clisp.org>
23418
23419         Fix link error on Solaris 8 with cc.
23420         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23421
23422 2010-04-05  Bruno Haible  <bruno@clisp.org>
23423
23424         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23425         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23426
23427 2010-04-05  Bruno Haible  <bruno@clisp.org>
23428
23429         vasprintf: Update documentation.
23430         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23431
23432 2010-04-05  Bruno Haible  <bruno@clisp.org>
23433
23434         ptsname: Improve test.
23435         * tests/test-ptsname.c (main): Also try the various master names of BSD
23436         systems.
23437
23438 2010-04-05  Bruno Haible  <bruno@clisp.org>
23439
23440         memchr: Avoid a possible C++ test error.
23441         * lib/string.in.h (memchr): Provide declaration if function is missing.
23442         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23443         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23445         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23446
23447 2010-04-05  Bruno Haible  <bruno@clisp.org>
23448
23449         strtok_r: Improve idiom.
23450         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23451         AC_LIBOBJ is used.
23452
23453 2010-04-05  Bruno Haible  <bruno@clisp.org>
23454
23455         strdup: Improve idiom.
23456         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23457         AC_LIBOBJ is used.
23458         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23459         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23460         when AC_LIBOBJ is used.
23461
23462 2010-04-05  Bruno Haible  <bruno@clisp.org>
23463
23464         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23465         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23466         don't set REPLACE_MBSINIT to 1.
23467         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23468         don't set REPLACE_MBRTOWC to 1.
23469         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23470         exist, don't set REPLACE_MBSRTOWCS to 1.
23471         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23472         exist, don't set REPLACE_MBSNRTOWCS to 1.
23473         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23474         don't set REPLACE_WCRTOMB to 1.
23475         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23476         exist, don't set REPLACE_WCSRTOMBS to 1.
23477         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23478         exist, don't set REPLACE_WCSNRTOMBS to 1.
23479
23480 2010-04-05  Bruno Haible  <bruno@clisp.org>
23481
23482         ldexpl: Improve idiom.
23483         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23484         make sure to set HAVE_DECL_LDEXPL to 0.
23485
23486 2010-04-05  Jim Meyering  <meyering@redhat.com>
23487
23488         xstrtol-tests: convert to use init.sh
23489         * modules/xstrtol-tests (Files): Add tests/init.sh.
23490         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23491         Use Exit, not exit.
23492         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23493
23494         atexit-tests: convert to use init.sh
23495         * modules/atexit-tests (Files): Add tests/init.sh.
23496         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23497         Use Exit, not exit.
23498         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23499
23500         init.sh: fix typo
23501         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23502
23503         init.sh: make it easier for a test script to write to the tty, ...
23504         when using automake's parallel-tests mode.
23505         * tests/init.sh (stderr_fileno_): Define overridable variable.
23506         (warn_): New function, to use it.
23507         (fail_, skip_, framework_failure_): Use warn_.
23508
23509 2010-04-04  Bruno Haible  <bruno@clisp.org>
23510
23511         btowc: Avoid warning.
23512         * lib/btowc.c: Include <stdlib.h>.
23513         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23514
23515 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23516             Bruno Haible  <bruno@clisp.org>
23517
23518         wchar: Port to NetBSD 1.5.
23519         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23520         * lib/wctype.in.h (WEOF): Likewise.
23521
23522 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23523             Bruno Haible  <bruno@clisp.org>
23524
23525         Port extended stdio to NetBSD 1.5.
23526         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23527         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23528         older.
23529
23530 2010-04-04  Bruno Haible  <bruno@clisp.org>
23531
23532         string: Remove unused substitution.
23533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23534         HAVE_DECL_STRERROR.
23535         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23536
23537 2010-04-04  Bruno Haible  <bruno@clisp.org>
23538
23539         strtod: Avoid a possible C++ test error.
23540         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23541         set REPLACE_STRTOD.
23542
23543 2010-04-04  Bruno Haible  <bruno@clisp.org>
23544
23545         strerror: Update documentation.
23546         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23547
23548 2010-04-04  Bruno Haible  <bruno@clisp.org>
23549
23550         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23551         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23552         _GL_CXXALIAS_SYS_CAST.
23553
23554 2010-04-04  Bruno Haible  <bruno@clisp.org>
23555
23556         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23557         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23558         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23559         REPLACE_FREXPL to 1.
23560         * doc/posix-functions/frexpl.texi: Update documentation.
23561
23562 2010-04-04  Bruno Haible  <bruno@clisp.org>
23563
23564         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23565         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23566
23567 2010-04-04  Bruno Haible  <bruno@clisp.org>
23568
23569         Implement nanosleep for native Windows.
23570         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23571
23572 2010-04-04  Bruno Haible  <bruno@clisp.org>
23573
23574         math: Fix some C++ test errors on Solaris 8.
23575         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23576
23577 2010-04-04  Bruno Haible  <bruno@clisp.org>
23578
23579         math: Fix some C++ test errors on Cygwin.
23580         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23581         truncl): Provide declaration if the system does not have it.
23582         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23583         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23584         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23585         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23586         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23587         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23588         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23589         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23590         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23591         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23592         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23593         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23594         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23595         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23596         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23597         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23599         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23600         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23601         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23602         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23603         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23604
23605 2010-04-04  Bruno Haible  <bruno@clisp.org>
23606
23607         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23608         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23609         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23610         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23611         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23612         * m4/isinf.m4 (gl_ISINF): Likewise.
23613         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23614
23615 2010-04-04  Bruno Haible  <bruno@clisp.org>
23616
23617         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23618         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23619
23620 2010-04-04  Bruno Haible  <bruno@clisp.org>
23621
23622         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23623         * modules/tmpfile (configure.ac): Update.
23624
23625         tmpfile: Fix C++ test error on mingw.
23626         * lib/stdio.in.h (tmpfile): New declaration.
23627         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23628         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23629         * modules/tmpfile (Depends-on): Add stdio.
23630         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23631         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23632         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23633         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23634         REPLACE_TMPFILE.
23635         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23636
23637 2010-04-04  Bruno Haible  <bruno@clisp.org>
23638
23639         ioctl: Fix C++ test error on mingw.
23640         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23641         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23642         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23643
23644 2010-04-03  Bruno Haible  <bruno@clisp.org>
23645
23646         wcwidth: Fix C++ test error on mingw.
23647         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23649         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23650
23651 2010-04-03  Bruno Haible  <bruno@clisp.org>
23652
23653         nanosleep: Fix C++ test error on mingw.
23654         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23655         * lib/time.in.h (nanosleep): Use modern idiom.
23656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23657         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23658         REPLACE_NANOSLEEP to 1.
23659         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23660         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23661
23662 2010-04-03  Bruno Haible  <bruno@clisp.org>
23663
23664         strptime: Fix C++ test error on mingw.
23665         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23666         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23667         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23668         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23669         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23670         not REPLACE_STRPTIME.
23671         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23672         REPLACE_STRPTIME.
23673
23674 2010-04-03  Bruno Haible  <bruno@clisp.org>
23675
23676         timegm: Fix C++ test error on mingw.
23677         * lib/time.in.h (timegm): Use modern idiom.
23678         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23679         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23681         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23682
23683 2010-04-03  Bruno Haible  <bruno@clisp.org>
23684
23685         timegm: Assume declaration if function exists.
23686         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23687         if it exists. Don't clobber ac_cv_func_timegm.
23688
23689 2010-04-03  Bruno Haible  <bruno@clisp.org>
23690
23691         time_r: Fix C++ test error on mingw.
23692         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23693         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23694         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23695         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23696         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23697
23698 2010-04-03  Bruno Haible  <bruno@clisp.org>
23699
23700         time_r: Minor updates.
23701         * modules/time_r (Description): Mention the provided functions.
23702         * lib/time_r.c: Don't include <string.h>.
23703         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23704         * doc/posix-functions/localtime_r.texi: Likewise.
23705
23706 2010-04-03  Bruno Haible  <bruno@clisp.org>
23707
23708         time: Fix regression introduced on 2010-03-08.
23709         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23710         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23711
23712 2010-04-03  Jim Meyering  <meyering@redhat.com>
23713
23714         maint.mk: don't silently disable project-specific syntax-check rules
23715         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23716         that they need to convert their project-specific syntax-check rules
23717         to use the new _sc_search_regexp.
23718
23719 2010-04-03  Bruno Haible  <bruno@clisp.org>
23720
23721         fchdir: Fix regression introduced on 2010-03-08.
23722         * lib/unistd.in.h (fchdir): Fix declaration.
23723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23725         REPLACE_FCHDIR.
23726         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23727         REPLACE_FCHDIR.
23728
23729 2010-04-03  Bruno Haible  <bruno@clisp.org>
23730
23731         getpagesize: Fix C++ test error on mingw.
23732         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23733         system does not declare the function.
23734         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23735         declared.
23736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23737         HAVE_DECL_GETPAGESIZE.
23738         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23739
23740 2010-04-03  Bruno Haible  <bruno@clisp.org>
23741
23742         stdio: Make C++ tests work on mingw.
23743         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23744         does not declare the function.
23745
23746 2010-04-03  Bruno Haible  <bruno@clisp.org>
23747
23748         ftello: Fix C++ test error on mingw.
23749         * lib/stdio.in.h (ftello): Use modern idiom.
23750         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23751         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23752         is missing and that it needs to be replaced.
23753         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23755         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23756
23757 2010-04-03  Bruno Haible  <bruno@clisp.org>
23758
23759         fseeko: Fix C++ test error on mingw.
23760         * lib/stdio.in.h (fseeko): Use modern idiom.
23761         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23762         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23763         is missing and that it needs to be replaced.
23764         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23766         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23767
23768 2010-04-03  Bruno Haible  <bruno@clisp.org>
23769
23770         mkstemp: Fix C++ test error on mingw.
23771         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23773         function is missing and that it needs to be replaced.
23774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23775         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23776
23777 2010-04-03  Bruno Haible  <bruno@clisp.org>
23778
23779         stpncpy: Fix C++ test error on mingw.
23780         * lib/string.in.h (stpncpy): Use modern idiom.
23781         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23782         function is missing and that it needs to be replaced.
23783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23784         REPLACE_STPNCPY.
23785         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23786
23787 2010-04-03  Bruno Haible  <bruno@clisp.org>
23788
23789         sys_stat: Fix C++ test error on mingw.
23790         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23791         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23792
23793 2010-04-03  Bruno Haible  <bruno@clisp.org>
23794
23795         pty: Update doc.
23796         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23797
23798 2010-04-03  Bruno Haible  <bruno@clisp.org>
23799
23800         unistd: Fix C++ test error on mingw.
23801         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23802
23803 2010-04-03  Bruno Haible  <bruno@clisp.org>
23804
23805         Update doc regarding mingw.
23806         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23807         * doc/glibc-functions/login_tty.texi: Likewise.
23808         * doc/glibc-functions/forkpty.texi: Likewise.
23809
23810 2010-04-03  Bruno Haible  <bruno@clisp.org>
23811
23812         stdlib: Avoid compilation failure of c-strtold on mingw.
23813         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23814
23815 2010-04-03  Bruno Haible  <bruno@clisp.org>
23816
23817         locale: Make C++ tests work on Cygwin and mingw.
23818         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23819         cannot provide the function.
23820         Reported by Simon Josefsson.
23821
23822 2010-04-03  Bruno Haible  <bruno@clisp.org>
23823
23824         localename: Port to MacOS X 10.6.
23825         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23826         memory layout of the locales in MacOS X 10.6 as well.
23827         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23828
23829 2010-04-02  Bruno Haible  <bruno@clisp.org>
23830
23831         gnulib-tool: Ensure that long-running tests are executed last.
23832         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23833         running tests after the one for the other tests.
23834
23835 2010-04-02  Bruno Haible  <bruno@clisp.org>
23836
23837         gnulib-tool: Ensure the tests in the main directory are executed first.
23838         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23839         start with the current directory.
23840
23841 2010-04-02  Bruno Haible  <bruno@clisp.org>
23842
23843         Tests for module 'havelib', moved here from GNU gettext.
23844         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23845         modifications.
23846         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23847         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23848         with modifications.
23849         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23850         modifications.
23851         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23852         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23853         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23854         with modifications.
23855         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23856         with modifications.
23857         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23858         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23859         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23860         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23861         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23862         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23863         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23864         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23865         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23866         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23867         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23868         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23869         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23870         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23871         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23872         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23873         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23874         with modifications.
23875         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23876         with modifications.
23877         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23878         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23879         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23880         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23881         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23882         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23883         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23884         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23885         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23886         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23887         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23888         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23889         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23890         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23891         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23892         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23893         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23894         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23895         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23896         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23897         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23898         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23899         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23900         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23901         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23902         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23903         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23904         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23905         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23906         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23907         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23908         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23909         * tests/havelib/rpathx/rpathx.c: New file, from
23910         gettext/autoconf-lib-link.
23911         * tests/havelib/rpathx/Makefile.am: New file, from
23912         gettext/autoconf-lib-link.
23913         * tests/havelib/rpathx/configure.ac: New file, from
23914         gettext/autoconf-lib-link with modifications.
23915         * tests/havelib/rpathy/rpathy.c: New file, from
23916         gettext/autoconf-lib-link.
23917         * tests/havelib/rpathy/Makefile.am: New file, from
23918         gettext/autoconf-lib-link.
23919         * tests/havelib/rpathy/configure.ac: New file, from
23920         gettext/autoconf-lib-link with modifications.
23921         * tests/havelib/rpathz/rpathz.c: New file, from
23922         gettext/autoconf-lib-link.
23923         * tests/havelib/rpathz/Makefile.am: New file, from
23924         gettext/autoconf-lib-link.
23925         * tests/havelib/rpathz/configure.ac: New file, from
23926         gettext/autoconf-lib-link with modifications.
23927         * tests/havelib/rpathlx/usex.c: New file, from
23928         gettext/autoconf-lib-link.
23929         * tests/havelib/rpathlx/Makefile.am: New file, from
23930         gettext/autoconf-lib-link.
23931         * tests/havelib/rpathlx/configure.ac: New file, from
23932         gettext/autoconf-lib-link with modifications.
23933         * tests/havelib/rpathly/usey.c: New file, from
23934         gettext/autoconf-lib-link.
23935         * tests/havelib/rpathly/Makefile.am: New file, from
23936         gettext/autoconf-lib-link.
23937         * tests/havelib/rpathly/configure.ac: New file, from
23938         gettext/autoconf-lib-link with modifications.
23939         * tests/havelib/rpathlz/usez.c: New file, from
23940         gettext/autoconf-lib-link.
23941         * tests/havelib/rpathlz/Makefile.am: New file, from
23942         gettext/autoconf-lib-link.
23943         * tests/havelib/rpathlz/configure.ac: New file, from
23944         gettext/autoconf-lib-link with modifications.
23945         * tests/havelib/rpathlyx/usey.c: New file, from
23946         gettext/autoconf-lib-link.
23947         * tests/havelib/rpathlyx/Makefile.am: New file, from
23948         gettext/autoconf-lib-link.
23949         * tests/havelib/rpathlyx/configure.ac: New file, from
23950         gettext/autoconf-lib-link with modifications.
23951         * tests/havelib/rpathlzyx/usez.c: New file, from
23952         gettext/autoconf-lib-link.
23953         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23954         gettext/autoconf-lib-link.
23955         * tests/havelib/rpathlzyx/configure.ac: New file, from
23956         gettext/autoconf-lib-link with modifications.
23957         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23958         with modifications.
23959
23960 2010-04-02  Bruno Haible  <bruno@clisp.org>
23961
23962         gnulib-tool: Create distributed built sources also for the tests.
23963         * gnulib-tool (func_create_testdir): Also generate distributed built
23964         sources in the tests directory.
23965
23966 2010-04-02  Bruno Haible  <bruno@clisp.org>
23967
23968         gnulib-tool: Obey user's environment variables.
23969         * gnulib-tool (func_create_testdir): When creating built sources,
23970         respect the environment variables for autoconf, automake, etc. given by
23971         the user.
23972
23973 2010-04-02  Bruno Haible  <bruno@clisp.org>
23974
23975         gnulib-tool: Provide the value of --m4-base to modules.
23976         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23977         of gl_m4_base.
23978
23979 2010-04-02  Eric Blake  <eblake@redhat.com>
23980
23981         maint.mk: fix some fallout
23982         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23983         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23984
23985 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23986
23987         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23988         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23989         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23990         (sc_cast_of_x_alloc_return_value): Likewise.
23991         (sc_cast_of_alloca_return_value): Likewise.
23992         (sc_space_tab): Likewise.
23993         (sc_prohibit_atoi_atof): Likewise.
23994         (sc_prohibit_magic_number_exit): Likewise.
23995         (sc_error_exit_success): Likewise.
23996         (sc_file_system): Likewise.
23997         (sc_prohibit_have_config_h): Likewise.
23998         (sc_require_config_h): Likewise.
23999         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24000         (sc_obsolete_symbols): Likewise.
24001         (sc_changelog): Likewise.
24002         (sc_program_name): Likewise.
24003         (sc_the_the): Likewise.
24004         (sc_trailing_blank): Likewise.
24005         (sc_two_space_separator_in_usage): Likewise.
24006         (sc_useless_cpp_parens): Likewise.
24007         (sc_GPL_version): Likewise.
24008         (sc_GFDL_version): Likewise.
24009         (sc_texinfo_acronym): Likewise.
24010         (sc_prohibit_cvs_keyword): Likewise.
24011         (sc_prohibit_stat_st_blocks): Likewise.
24012         (sc_prohibit_S_IS_definition): Likewise.
24013         (sc_redundant_const): Likewise.
24014         (sc_makefile_TAB_only_indentation): Likewise.
24015         (sc_m4_quote_check): Likewise.
24016         (sc_makefile_path_separator_check): Likewise.
24017         (sc_copyright_check): Likewise.
24018         (sc_Wundef_boolean): Likewise.
24019         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24020
24021         maint.mk: match 0 or more whitespace-before-function-call '('
24022         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24023         that have zero or two-and-more spaces between the function name
24024         and the open parenthesis.
24025         (sc_error_message_warn_fatal): Likewise.
24026         (sc_error_message_uppercase): Likewise.
24027         (sc_error_message_period): Likewise.
24028
24029 2010-03-31  Eric Blake  <eblake@redhat.com>
24030
24031         maint.mk: check for [ as well as test
24032         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24033         Based on a libvirt report by Matthias Bolte.
24034
24035         gnumakefile: don't squelch _version output
24036         * top/GNUmakefile (_version): Create one-shot dependency rather
24037         than using $(shell) when version must be regenerated.
24038         (_autoreconf): Run verbosely, by default.
24039
24040         sys_time: avoid compiler warnings
24041         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24042         unconditional, fixing regression from 2010-03-29.
24043         Reported by Simon Josefsson.
24044
24045 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24046
24047         maint.mk: s/_header_without_use/_sc_header_without_use/
24048         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24049         (sc_prohibit_assert_without_use): Use the new name.
24050         (sc_prohibit_close_stream_without_use): Likewise.
24051         (sc_prohibit_getopt_without_use): Likewise.
24052         (sc_prohibit_quotearg_without_use): Likewise.
24053         (sc_prohibit_quote_without_use): Likewise.
24054         (sc_prohibit_long_options_without_use): Likewise.
24055         (sc_prohibit_inttostr_without_use): Likewise.
24056         (sc_prohibit_ignore_value_without_use): Likewise.
24057         (sc_prohibit_error_without_use): Likewise.
24058         (sc_prohibit_xalloc_without_use): Likewise.
24059         (sc_prohibit_hash_without_use): Likewise.
24060         (sc_prohibit_hash_pjw_without_use): Likewise.
24061         (sc_prohibit_safe_read_without_use): Likewise.
24062         (sc_prohibit_argmatch_without_use): Likewise.
24063         (sc_prohibit_canonicalize_without_use): Likewise.
24064         (sc_prohibit_root_dev_ino_without_use): Likewise.
24065         (sc_prohibit_openat_without_use): Likewise.
24066         (sc_prohibit_c_ctype_without_use): Likewise.
24067         (sc_prohibit_signal_without_use): Likewise.
24068         (sc_prohibit_intprops_without_use): Likewise.
24069
24070 2010-03-30  Eric Blake  <eblake@redhat.com>
24071
24072         maint: improve module indicators
24073         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24074         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24075         columns, and avoid extra macro expansion.
24076
24077         fdopendir: work around FreeBSD bug
24078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24079         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24080         * modules/dirent (Makefile.am): Substitute it.
24081         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24082         declaration.
24083         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24084         fix.
24085         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24086
24087 2010-03-29  Bruno Haible  <bruno@clisp.org>
24088
24089         Emit #pragma system_header after the inclusion guard, not before.
24090         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24091         guard that spans the entire file, not before. This enables an
24092         optimization in GCC's preprocessor.
24093         * lib/ctype.in.h: Likewise.
24094         * lib/dirent.in.h: Likewise.
24095         * lib/errno.in.h: Likewise.
24096         * lib/float.in.h: Likewise.
24097         * lib/getopt.in.h: Likewise.
24098         * lib/iconv.in.h: Likewise.
24099         * lib/langinfo.in.h: Likewise.
24100         * lib/locale.in.h: Likewise.
24101         * lib/math.in.h: Likewise.
24102         * lib/netdb.in.h: Likewise.
24103         * lib/netinet_in.in.h: Likewise.
24104         * lib/pty.in.h: Likewise.
24105         * lib/sched.in.h: Likewise.
24106         * lib/se-selinux.in.h: Likewise.
24107         * lib/search.in.h: Likewise.
24108         * lib/spawn.in.h: Likewise.
24109         * lib/stdarg.in.h: Likewise.
24110         * lib/stdint.in.h: Likewise.
24111         * lib/string.in.h: Likewise.
24112         * lib/strings.in.h: Likewise.
24113         * lib/sys_file.in.h: Likewise.
24114         * lib/sys_ioctl.in.h: Likewise.
24115         * lib/sys_time.in.h: Likewise.
24116         * lib/sys_times.in.h: Likewise.
24117         * lib/sys_utsname.in.h: Likewise.
24118         * lib/sys_wait.in.h: Likewise.
24119         * lib/sysexits.in.h: Likewise.
24120         * lib/wctype.in.h: Likewise.
24121
24122 2010-03-28  James Youngman  <jay@gnu.org>
24123
24124         save-cwd: don't leak a file descriptor when the caller execs.
24125         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24126         saved file descriptor.
24127         * modules/save-cwd (Depends-on): Depend on cloexec.
24128
24129 2010-03-29  Bruno Haible  <bruno@clisp.org>
24130
24131         Remove vestiges of fts-lgpl module.
24132         * lib/fts_.h: Assume GNULIB_FTS is 1.
24133         * lib/fts.c: Likewise.
24134         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24135
24136 2010-03-28  Bruno Haible  <bruno@clisp.org>
24137
24138         Fix definition of tests witness macro.
24139         * gnulib-tool (func_import): Fix definition of witness macro.
24140
24141 2010-03-28  Bruno Haible  <bruno@clisp.org>
24142
24143         Fix ioctl's protoype on glibc systems.
24144         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24145         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24146         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24147         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24148         signature. If not, arrange to replace the ioctl function.
24149         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24150         REPLACE_IOCTL.
24151         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24152         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24153         Reported by Ludovic Courtès <ludo@gnu.org>.
24154
24155 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24156
24157         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24158         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24159         made it so grep -r --include=GLOB* ... did not work.
24160
24161 2010-03-26  Jim Meyering  <meyering@redhat.com>
24162             Eric Blake  <eblake@redhat.com>
24163
24164         maint.mk: prohibit use of test's -o and -a operators
24165         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24166
24167 2010-03-28  Bruno Haible  <bruno@clisp.org>
24168
24169         Remove unused GNULIB_XYZ macro definitions.
24170         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24171         invocation.
24172
24173 2010-03-28  Bruno Haible  <bruno@clisp.org>
24174
24175         Mark privileged tests modules.
24176         * modules/idpriv-drop-tests (Status): New section.
24177         * modules/idpriv-droptemp-tests (Status): New section.
24178
24179 2010-03-28  Bruno Haible  <bruno@clisp.org>
24180
24181         Split C++ tests into separate tests modules.
24182         * modules/dirent-c++-tests: New file, extracted from
24183         modules/dirent-tests.
24184         * modules/dirent-tests: Depend on it.
24185         * modules/fcntl-h-c++-tests: New file, extracted from
24186         modules/fcntl-h-tests.
24187         * modules/fcntl-h-tests: Depend on it.
24188         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24189         * modules/glob-tests: Depend on it.
24190         * modules/iconv-h-c++-tests: New file, extracted from
24191         modules/iconv-h-tests.
24192         * modules/iconv-h-tests: Depend on it.
24193         * modules/langinfo-c++-tests: New file, extracted from
24194         modules/langinfo-tests.
24195         * modules/langinfo-tests: Depend on it.
24196         * modules/locale-c++-tests: New file, extracted from
24197         modules/locale-tests.
24198         * modules/locale-tests: Depend on it.
24199         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24200         * modules/math-tests: Depend on it.
24201         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24202         * modules/pty-tests: Depend on it.
24203         * modules/search-c++-tests: New file, extracted from
24204         modules/search-tests.
24205         * modules/search-tests: Depend on it.
24206         * modules/signal-c++-tests: New file, extracted from
24207         modules/signal-tests.
24208         * modules/signal-tests: Depend on it.
24209         * modules/spawn-c++-tests: New file, extracted from
24210         modules/spawn-tests.
24211         * modules/spawn-tests: Depend on it.
24212         * modules/stdio-c++-tests: New file, extracted from
24213         modules/stdio-tests.
24214         * modules/stdio-tests: Depend on it.
24215         * modules/stdlib-c++-tests: New file, extracted from
24216         modules/stdlib-tests.
24217         * modules/stdlib-tests: Depend on it.
24218         * modules/string-c++-tests: New file, extracted from
24219         modules/string-tests.
24220         * modules/string-tests: Depend on it.
24221         * modules/sys_ioctl-c++-tests: New file, extracted from
24222         modules/sys_ioctl-tests.
24223         * modules/sys_ioctl-tests: Depend on it.
24224         * modules/sys_select-c++-tests: New file, extracted from
24225         modules/sys_select-tests.
24226         * modules/sys_select-tests: Depend on it.
24227         * modules/sys_socket-c++-tests: New file, extracted from
24228         modules/sys_socket-tests.
24229         * modules/sys_socket-tests: Depend on it.
24230         * modules/sys_stat-c++-tests: New file, extracted from
24231         modules/sys_stat-tests.
24232         * modules/sys_stat-tests: Depend on it.
24233         * modules/sys_time-c++-tests: New file, extracted from
24234         modules/sys_time-tests.
24235         * modules/sys_time-tests: Depend on it.
24236         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24237         * modules/time-tests: Depend on it.
24238         * modules/unistd-c++-tests: New file, extracted from
24239         modules/unistd-tests.
24240         * modules/unistd-tests: Depend on it.
24241         * modules/wchar-c++-tests: New file, extracted from
24242         modules/wchar-tests.
24243         * modules/wchar-tests: Depend on it.
24244         * modules/wctype-c++-tests: New file, extracted from
24245         modules/wctype-tests.
24246         * modules/wctype-tests: Depend on it.
24247         Reported by Simon Josefsson.
24248
24249 2010-03-28  Bruno Haible  <bruno@clisp.org>
24250
24251         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24252         * gnulib-tool (func_exists_module): New function, extracted from
24253         func_verify_module.
24254         (func_verify_module): Use it.
24255         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24256         'foo' only if 'foo' exists.
24257         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24258         module.
24259
24260 2010-03-28  Bruno Haible  <bruno@clisp.org>
24261
24262         gnulib-tool: Add support for special categories of tests.
24263         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24264         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24265         (func_usage): Document them.
24266         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24267         inc_unportable_tests, inc_all_tests): New variables.
24268         (func_acceptable): Consider these variables.
24269         (func_modules_transitive_closure): Make it work when the 'Status' field
24270         consists of multiple words.
24271         (func_import): Store and restore the values of inc_cxx_tests,
24272         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24273         inc_all_tests in gnulib-comp.m4.
24274         (func_create_testdir): Set inc_all_tests to true.
24275         * doc/gnulib.texi (Extra tests modules): New section.
24276         Suggested by Jim Meyering.
24277
24278 2010-03-28  Bruno Haible  <bruno@clisp.org>
24279
24280         ansi-c++-opt: Allow turning off the C++ build by default.
24281         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24282         gl_CXX_CHOICE_DEFAULT_NO is defined.
24283         Requested by Eric Blake.
24284
24285 2010-03-28  Bruno Haible  <bruno@clisp.org>
24286
24287         unistd: Avoid #define replacements in C++ mode.
24288         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24289         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24290         setsockopt, shutdown, select): In C++, attach a warning to the function
24291         if possible, rather than #defining the symbol to a dysfunctional alias.
24292         Reported by John W. Eaton <jwe@gnu.org>.
24293
24294 2010-03-28  Bruno Haible  <bruno@clisp.org>
24295
24296         Fix link errors on mingw.
24297         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24298         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24299         $(LIBSOCKET).
24300         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24301         $(LIBSOCKET).
24302
24303 2010-03-28  Bruno Haible  <bruno@clisp.org>
24304             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24305
24306         lib-ignore: Determine different options for different compilers.
24307         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24308         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24309         Add comments.
24310         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24311         * NEWS: Mention the change.
24312
24313 2010-03-27  Bruno Haible  <bruno@clisp.org>
24314
24315         Remove unused GNULIB_XYZ macro definitions.
24316         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24317         * modules/fseek (configure.ac): Likewise.
24318         * modules/ioctl (configure.ac): Likewise.
24319         * modules/open (configure.ac): Likewise.
24320         * modules/stdlib-safer (configure.ac): Likewise.
24321
24322 2010-03-27  Bruno Haible  <bruno@clisp.org>
24323
24324         Add a remark about certain modules.
24325         * modules/malloc (Comment): New section.
24326         * modules/realloc (Comment): Likewise.
24327         * modules/sigpipe (Comment): Likewise.
24328
24329 2010-03-27  Bruno Haible  <bruno@clisp.org>
24330
24331         Resolve conflict between the two kinds of module indicators.
24332         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24333         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24334         * modules/canonicalize (configure.ac): Invoke
24335         gl_MODULE_INDICATOR_FOR_TESTS.
24336         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24337         GNULIB_XYZ.
24338         * tests/test-dirent-c++.cc: Likewise.
24339         * tests/test-dirent-safer.c: Likewise.
24340         * tests/test-dup2.c: Likewise.
24341         * tests/test-fchdir.c: Likewise.
24342         * tests/test-fcntl-h-c++.cc: Likewise.
24343         * tests/test-getopt.c: Likewise.
24344         * tests/test-getopt.h: Likewise.
24345         * tests/test-langinfo-c++.cc: Likewise.
24346         * tests/test-locale-c++.cc: Likewise.
24347         * tests/test-math-c++.cc: Likewise.
24348         * tests/test-pty-c++.cc: Likewise.
24349         * tests/test-search-c++.cc: Likewise.
24350         * tests/test-signal-c++.cc: Likewise.
24351         * tests/test-spawn-c++.cc: Likewise.
24352         * tests/test-stdio-c++.cc: Likewise.
24353         * tests/test-stdlib-c++.cc: Likewise.
24354         * tests/test-string-c++.cc: Likewise.
24355         * tests/test-sys_ioctl-c++.cc: Likewise.
24356         * tests/test-sys_select-c++.cc: Likewise.
24357         * tests/test-sys_socket-c++.cc: Likewise.
24358         * tests/test-sys_stat-c++.cc: Likewise.
24359         * tests/test-sys_time-c++.cc: Likewise.
24360         * tests/test-time-c++.cc: Likewise.
24361         * tests/test-unistd-c++.cc: Likewise.
24362         * tests/test-wchar-c++.cc: Likewise.
24363         * tests/uninorm/test-u8-nfc.c: Likewise.
24364         * tests/uninorm/test-u8-nfd.c: Likewise.
24365         * tests/uninorm/test-u8-nfkc.c: Likewise.
24366         * tests/uninorm/test-u8-nfkd.c: Likewise.
24367         * tests/uninorm/test-u16-nfc.c: Likewise.
24368         * tests/uninorm/test-u16-nfd.c: Likewise.
24369         * tests/uninorm/test-u16-nfkc.c: Likewise.
24370         * tests/uninorm/test-u16-nfkd.c: Likewise.
24371         * tests/uninorm/test-u32-nfc.c: Likewise.
24372         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24373         * tests/uninorm/test-u32-nfd.c: Likewise.
24374         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24375         * tests/uninorm/test-u32-nfkc.c: Likewise.
24376         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24377         * tests/uninorm/test-u32-nfkd.c: Likewise.
24378         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24379         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24380
24381 2010-03-27  Bruno Haible  <bruno@clisp.org>
24382
24383         Distinguish two kinds of module indicators.
24384         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24385         gl_MODULE_INDICATOR.
24386         (gl_MODULE_INDICATOR): New macro.
24387         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24388         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24389         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24390         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24391         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24392         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24393         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24394         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24395         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24396         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24397         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24398         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24400         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24401         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24402         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24403         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24404         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24405         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24406         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24407         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24408         * modules/cloexec (configure.ac): Likewise.
24409         * modules/getopt-gnu (configure.ac): Likewise.
24410         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24411         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24412         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24413         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24414
24415 2010-03-27  Bruno Haible  <bruno@clisp.org>
24416
24417         New module description field 'Comment'.
24418         * gnulib-tool: New option --extract-comment.
24419         (func_usage): Document it.
24420         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24421         (func_get_comment): New function.
24422         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24423
24424 2010-03-27  Bruno Haible  <bruno@clisp.org>
24425
24426         Addendum to 2010-02-07 commit.
24427         * gnulib-tool (func_usage): Document --extract-applicability option.
24428
24429 2010-03-27  Bruno Haible  <bruno@clisp.org>
24430
24431         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24432         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24433         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24434         rather than link errors.
24435
24436 2010-03-27  Bruno Haible  <bruno@clisp.org>
24437
24438         Avoid side effects from tests-related modules on the compilation of lib.
24439         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24440         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24441         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24442         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24443         macro.
24444         (func_import): Define a witness macro. Assign it a value that depends
24445         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24446         tests-related modules.
24447         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24448         Reported by Jim Meyering.
24449
24450 2010-03-27  Bruno Haible  <bruno@clisp.org>
24451
24452         Factorize common .m4 code.
24453         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24454         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24455         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24456         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24457         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24458         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24459         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24460         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24461         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24462         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24463         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24464         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24465         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24466         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24467         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24468         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24469         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24470         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24472         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24473         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24474         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24475         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24477         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24478         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24479         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24480         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24481         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24483         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24484         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24485
24486 2010-03-27  Bruno Haible  <bruno@clisp.org>
24487
24488         Fix a compilation error on Cygwin with g++ >= 4.3.
24489         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24490         if it is undefined or if we alias it to chmod.
24491         (lstat): Don't warn about the use of this function if it is undefined
24492         or if we alias it to stat.
24493         Reported by Simon Josefsson.
24494
24495 2010-03-27  Bruno Haible  <bruno@clisp.org>
24496
24497         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24498         * modules/getlogin (configure.ac): Update.
24499
24500         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24501         * modules/getlogin_r (configure.ac): Update.
24502
24503         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24505         * modules/inet_ntop (configure.ac): Update.
24506
24507         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24508         * modules/inet_pton (configure.ac): Update.
24509
24510         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24511         * modules/mbslen (configure.ac): Update.
24512
24513         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24514         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24515         * modules/forkpty (configure.ac): Update.
24516         * modules/openpty (configure.ac): Update.
24517
24518 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24519
24520         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24521         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24522
24523 2010-03-25  Eric Blake  <eblake@redhat.com>
24524
24525         maint: use pragma consistently across replacement headers
24526         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24527         * lib/dirent.in.h (system_header): Likewise.
24528         * lib/errno.in.h (system_header): Likewise.
24529         * lib/float.in.h (system_header): Likewise.
24530         * lib/getopt.in.h (system_header): Likewise.
24531         * lib/iconv.in.h (system_header): Likewise.
24532         * lib/inttypes.in.h (system_header): Likewise.
24533         * lib/langinfo.in.h (system_header): Likewise.
24534         * lib/locale.in.h (system_header): Likewise.
24535         * lib/math.in.h (system_header): Likewise.
24536         * lib/netdb.in.h (system_header): Likewise.
24537         * lib/netinet_in.in.h (system_header): Likewise.
24538         * lib/pty.in.h (system_header): Likewise.
24539         * lib/sched.in.h (system_header): Likewise.
24540         * lib/se-selinux.in.h (system_header): Likewise.
24541         * lib/search.in.h (system_header): Likewise.
24542         * lib/spawn.in.h (system_header): Likewise.
24543         * lib/stdarg.in.h (system_header): Likewise.
24544         * lib/stdint.in.h (system_header): Likewise.
24545         * lib/string.in.h (system_header): Likewise.
24546         * lib/strings.in.h (system_header): Likewise.
24547         * lib/sys_file.in.h (system_header): Likewise.
24548         * lib/sys_ioctl.in.h (system_header): Likewise.
24549         * lib/sys_socket.in.h (system_header): Likewise.
24550         * lib/sys_times.in.h (system_header): Likewise.
24551         * lib/sys_utsname.in.h (system_header): Likewise.
24552         * lib/sys_wait.in.h (system_header): Likewise.
24553         * lib/sysexits.in.h (system_header): Likewise.
24554         * lib/unistd.in.h (system_header): Likewise.
24555         * lib/wctype.in.h (system_header): Likewise.
24556
24557         arpa/inet: fix mingw compilation warning
24558         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24559         Reported by Matthew Bolte.
24560
24561 2010-03-25  Bruno Haible  <bruno@clisp.org>
24562
24563         Avoid collision between gnulib wrapper and libintl wrapper.
24564         * lib/printf.c (printf): Don't define if a printf wrapper is already
24565         defined in intl/printf.c.
24566         Reported by Michel Boaventura <michel@michelboaventura.com>.
24567
24568 2010-03-25  Bruno Haible  <bruno@clisp.org>
24569
24570         Use ANSI C.
24571         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24572
24573 2010-03-25  Bruno Haible  <bruno@clisp.org>
24574
24575         Minor formatting changes.
24576         * lib/acosl.c: Insert space before function argument list.
24577         * lib/argz.c: Likewise.
24578         * lib/asinl.c: Likewise.
24579         * lib/expl.c: Likewise.
24580         * lib/gen-uni-tables.c: Likewise.
24581         * lib/gettext.h: Likewise.
24582         * lib/glthread/lock.h: Likewise.
24583         * lib/tanl.c: Likewise.
24584         * lib/uniname/uniname.c: Likewise.
24585         * tests/test-idpriv-drop.c: Likewise.
24586         * tests/test-idpriv-droptemp.c: Likewise.
24587         * tests/test-lock.c: Likewise.
24588         * tests/test-tls.c: Likewise.
24589         * lib/argp-help.c: Insert space before function-like macro argument
24590         list.
24591         * lib/memcmp.c: Likewise.
24592         * tests/test-base64.c: Likewise.
24593         * lib/localename.c: Insert space before sizeof's argument list.
24594         * lib/safe-alloc.h: Likewise.
24595         * lib/file-set.h: Insert space before macro argument list.
24596         * tests/test-argp.c: Likewise.
24597         * lib/argp-namefrob.h: Insert space before function parameter list.
24598         * lib/getaddrinfo.c: Likewise.
24599         * lib/netdb.in.h: Likewise.
24600         * lib/parse-duration.h: Likewise.
24601         * lib/parse-duration.c: Likewise.
24602         * lib/poll.c: Likewise.
24603         * lib/select.c: Likewise.
24604         * lib/trim.h: Likewise.
24605         * tests/test-usleep.c: Likewise.
24606         * lib/ldexpl.c: Insert space before function parameter list and before
24607         function argument list.
24608         * lib/logl.c: Likewise.
24609         * lib/sqrtl.c: Likewise.
24610         * lib/trim.c: Likewise.
24611         * lib/cosl.c: Use GNU style indentation. Insert space before function
24612         argument list.
24613         * lib/sinl.c: Likewise.
24614         * lib/tsearch.c: Insert space after 'for'.
24615         Reported by Jim Meyering.
24616
24617 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24618
24619         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24620         config header before grepping, as it's not present before
24621         autoreconf/configure are run.  Reported by Simon Josefsson.
24622
24623 2010-03-23  Bruno Haible  <bruno@clisp.org>
24624
24625         pt_chown: Make it work with automake < 1.11.
24626         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24627         Reported by Simon Josefsson.
24628
24629 2010-03-23  Bruno Haible  <bruno@clisp.org>
24630
24631         pt_chown: Don't depend on GPLed modules.
24632         * lib/pt_chown.c: Don't include idpriv.h.
24633         (main): Don't drop privileges.
24634         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24635         Reported by Simon Josefsson.
24636
24637 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24638
24639         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24640         suggestions from karl@freefriends.org (Karl Berry).
24641
24642 2010-03-22  Eric Blake  <eblake@redhat.com>
24643
24644         gethostname: further tweaks
24645         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24646         are overriding gethostname.
24647         Suggested by Bruno Haible.
24648
24649 2010-03-21  Bruno Haible  <bruno@clisp.org>
24650
24651         Fix comments.
24652         * lib/forkpty.c (rpl_forkpty): Fix comment.
24653         * lib/openpty.c (rpl_openpty): Likewise.
24654         Reported by Eric Blake.
24655
24656 2010-03-22  Eric Blake  <eblake@redhat.com>
24657
24658         gethostname: fix build on mingw
24659         * lib/unistd.in.h (includes): Work around fact that mingw
24660         <winsock2.h> re-includes <unistd.h>, by avoiding any
24661         redeclarations if we are being included by <winsock2.h>.
24662         Reported by Matthias Bolte.
24663
24664 2010-03-21  Bruno Haible  <bruno@clisp.org>
24665
24666         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24667         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24668         modifications.
24669         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24670         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24671         provide the replacement.
24672         * modules/forkpty (Depends-on): Add openpty, login_tty.
24673         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24674         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24675         * doc/glibc-functions/forkpty.texi: More supported platforms.
24676         * config/srclist.txt: Add forkpty.c (commented).
24677
24678 2010-03-21  Bruno Haible  <bruno@clisp.org>
24679
24680         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24681         (Makefile.am): Verify that PTY_LIB is defined.
24682
24683         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24684
24685 2010-03-21  Bruno Haible  <bruno@clisp.org>
24686
24687         Tests for module 'login_tty'.
24688         * modules/login_tty-tests: New file.
24689         * tests/test-login_tty.c: New file.
24690
24691         New module 'login_tty'.
24692         * lib/login_tty.c: New file.
24693         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24694         * modules/login_tty: New file.
24695         * doc/glibc-functions/login_tty.texi: Mention the new module.
24696
24697 2010-03-21  Bruno Haible  <bruno@clisp.org>
24698
24699         login_tty: Documentation.
24700         * doc/glibc-functions/login_tty.texi: New file.
24701         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24702
24703 2010-03-21  Bruno Haible  <bruno@clisp.org>
24704
24705         pty: Consistent macro naming.
24706         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24707         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24708         * modules/pty (configure.ac): Update.
24709
24710 2010-03-21  Bruno Haible  <bruno@clisp.org>
24711
24712         Tests for openpty: Make stricter.
24713         * tests/test-openpty.c (main): Add test of canonical processing and
24714         erase.
24715         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24716
24717         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24718         * lib/openpty.c (openpty): New replacement function.
24719         * lib/pty.in.h: Include <termios.h>.
24720         (openpty): Update declaration. Add comments.
24721         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24722         is not declared, arrange to provide the replacement. Check for _getpty
24723         and posix_openpt.
24724         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24725         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24726         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24727         * modules/pty-tests (test_pty_c___LDADD): New variable.
24728         * doc/glibc-functions/openpty.texi: More supported platforms.
24729
24730 2010-03-21  Bruno Haible  <bruno@clisp.org>
24731
24732         setenv: Tweaks.
24733         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24734         the test program.
24735         * doc/posix-functions/setenv.texi: Update platforms list.
24736
24737 2010-03-21  Bruno Haible  <bruno@clisp.org>
24738
24739         New module 'unlockpt'.
24740         * lib/unlockpt.c: New file, from glibc with modifications.
24741         * m4/unlockpt.m4: New file.
24742         * modules/unlockpt: New file.
24743         * lib/stdlib.in.h (unlockpt): New declaration.
24744         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24745         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24746         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24747         HAVE_UNLOCKPT.
24748         * doc/posix-functions/unlockpt.texi: Mention the new module.
24749         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24750         * config/srclist.txt: Add unlockpt.c (commented).
24751
24752 2010-03-21  Jim Meyering  <meyering@redhat.com>
24753
24754         maint.mk: prohibit inclusion of "intprops.h" without use
24755         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24756
24757 2010-03-21  Bruno Haible  <bruno@clisp.org>
24758
24759         New module 'grantpt'.
24760         * lib/grantpt.c: New file, from glibc with modifications.
24761         * m4/grantpt.m4: New file.
24762         * modules/grantpt: New file.
24763         * lib/stdlib.in.h (grantpt): New declaration.
24764         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24765         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24766         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24767         HAVE_GRANTPT.
24768         * doc/posix-functions/grantpt.texi: Mention the new module.
24769         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24770         * config/srclist.txt: Add grantpt.c (commented).
24771
24772 2010-03-21  Bruno Haible  <bruno@clisp.org>
24773
24774         New module 'pt_chown'.
24775         * lib/pt_chown.c: New file, from glibc with modifications.
24776         * lib/pty-private.h: New file, from glibc with modifications.
24777         * modules/pt_chown: New file.
24778         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24779
24780 2010-03-21  Bruno Haible  <bruno@clisp.org>
24781
24782         Tests for module 'ptsname'.
24783         * modules/ptsname-tests: New file.
24784         * tests/test-ptsname.c: New file.
24785
24786         New module 'ptsname'.
24787         * lib/ptsname.c: New file, from glibc with modifications.
24788         * m4/ptsname.m4: New file.
24789         * modules/ptsname: New file.
24790         * lib/stdlib.in.h (ptsname): New declaration.
24791         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24792         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24793         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24794         HAVE_PTSNAME.
24795         * doc/posix-functions/ptsname.texi: Mention the new module.
24796         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24797         * config/srclist.txt: Add ptsname.c (commented).
24798
24799 2010-03-21  Bruno Haible  <bruno@clisp.org>
24800
24801         Tests for module 'ttyname_r'.
24802         * modules/ttyname_r-tests: New file.
24803         * tests/test-ttyname_r.c: New file.
24804
24805         New module 'ttyname_r'.
24806         * lib/ttyname_r.c: New file.
24807         * m4/ttyname_r.m4: New file.
24808         * modules/ttyname_r: New file.
24809         * lib/unistd.in.h (ttyname_r): New declaration.
24810         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24811         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24812         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24813         HAVE_TTYNAME_R.
24814         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24815         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24816
24817 2010-03-20  Bruno Haible  <bruno@clisp.org>
24818
24819         signal: Undefine macro definitions in C++ mode.
24820         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24821         sigfillset): Undefine macro definitions from the system header in C++
24822         mode.
24823         Reported by John W. Eaton <jwe@gnu.org>.
24824
24825 2010-03-20  Bruno Haible  <bruno@clisp.org>
24826
24827         Ensure no #include statements inside extern "C" { ... }.
24828         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24829         contain #include statements.
24830         * lib/time.in.h: Likewise.
24831
24832 2010-03-20  Bruno Haible  <bruno@clisp.org>
24833
24834         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24835         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24836         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24837         Reported by John W. Eaton <jwe@gnu.org>.
24838
24839 2010-03-20  Bruno Haible  <bruno@clisp.org>
24840
24841         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24842         Reported by Jim Meyering.
24843
24844 2010-03-20  Bruno Haible  <bruno@clisp.org>
24845
24846         pipe: Set errno upon failure.
24847         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24848         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24849         errno value in error message.
24850
24851 2010-03-20  Bruno Haible  <bruno@clisp.org>
24852             Jim Meyering  <meyering@redhat.com>
24853
24854         lchown: Avoid "unused variable" warning.
24855         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24856
24857 2010-03-20  Bruno Haible  <bruno@clisp.org>
24858
24859         Work around unlink() bug on MacOS X 10.5.6.
24860         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24861         attempting to unlink a parent directory.
24862         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24863         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24864         activate for the replacement function.
24865         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24866
24867 2010-03-20  Bruno Haible  <bruno@clisp.org>
24868
24869         Fix link errors on Solaris 8.
24870         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24871         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24872
24873 2010-03-19  Jim Meyering  <meyering@redhat.com>
24874
24875         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24876         The _LIBC implementation of build_range_exp correctly honors the
24877         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24878         However, the non-_LIBC implementation would ignore that syntax-bit
24879         flag and return REG_ERANGE unconditionally.
24880         This change makes it honor that flag.
24881         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24882         Make two pointer parameters "const".
24883         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24884         (parse_bracket_exp): Update caller.
24885
24886         regex.m4: correct the reversed range endpoint ([b-a]) test
24887         * m4/regex.m4: When requiring that [b-a] evoke failure,
24888         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24889         test pass once again for x86-based systems.
24890
24891 2010-03-19  Bruno Haible  <bruno@clisp.org>
24892
24893         scandir: Fix link error on Solaris 8.
24894         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24895         macros.
24896
24897 2010-03-19  Bruno Haible  <bruno@clisp.org>
24898
24899         getusershell: Fix documentation.
24900         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24901         module.
24902         * doc/glibc-functions/setusershell.texi: Likewise.
24903
24904         getusershell: Provide declaration, missing on Solaris 9.
24905         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24906         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24907         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24908         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24910         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24911         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24912         HAVE_GETUSERSHELL.
24913         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24914
24915 2010-03-19  Bruno Haible  <bruno@clisp.org>
24916
24917         wctype: Provide iswblank function.
24918         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24919         exists and is fine.
24920         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24921         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24922         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24923         * doc/posix-functions/iswblank.texi: Update.
24924
24925 2010-03-19  Bruno Haible  <bruno@clisp.org>
24926
24927         Tests of module 'pty' in C++ mode.
24928         * modules/pty-tests: New file.
24929         * tests/test-pty-c++.cc: New file.
24930         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24931
24932 2010-03-19  Eric Blake  <eblake@redhat.com>
24933
24934         logb: fix documentation
24935         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24936         1.5 declaration bug.
24937
24938         forkpty, openpty: prefer glibc's const-safe prototype
24939         * lib/forkpty.c (rpl_forkpty): New file.
24940         * lib/openpty.c (rpl_openpty): Likewise.
24941         * modules/forkpty (Files): Distribute it.
24942         * modules/openpty (Files): Likewise.
24943         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24944         check...
24945         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24946         replacement for for non-const BSD signature.
24947         * modules/pty (Makefile.am): Substitute witnesses.
24948         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24949         * tests/test-forkpty.c: Update signature check.
24950         * tests/test-openpty.c: Likewise.
24951         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24952         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24953
24954         forkpty, openpty: split functions into new modules
24955         * modules/pty (Makefile.am): Substitute new witnesses.
24956         (Libraries): Move library detection...
24957         * modules/forkpty: ...into new module.
24958         * modules/openpty: Another new module.
24959         * modules/pty-tests: Rename and split...
24960         * modules/forkpty-tests: ...to this...
24961         * modules/openpty-tests: ...and this.
24962         * tests/test-pty.c: Rename and split...
24963         * tests/test-forkpty.c: ...to this...
24964         * tests/test-openpty.c: ...and this.
24965         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24966         (gl_PTY): Split library searching...
24967         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24968         (gl_FORKPTY, gl_OPENPTY): New macros.
24969         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24970         * NEWS: Mention the split.
24971         * MODULES.html.sh (Misc): Document the modules.
24972         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24973         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24974
24975         pty: improve replacement header
24976         * lib/pty.in.h: New file.
24977         * modules/pty (Files): Ship it.
24978         (Makefile.am): Always build replacement.
24979         * m4/pty.m4: Rename...
24980         * m4/pty_h.m4: ...to this.
24981         (gl_PTY): Modernize setting of witness macros; update check of
24982         forkpty to take proper advantage of cache.
24983         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24984
24985         getopt: avoid compiler warning
24986         * lib/getopt.c (attribute_hidden): Remove unused macro.
24987
24988 2010-03-18  Bruno Haible  <bruno@clisp.org>
24989
24990         Fix link errors on Solaris 8.
24991         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24992         * modules/search-tests (test_search_c___LDADD): Likewise.
24993         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24994         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24995         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24996         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24997         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24998         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24999         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25000
25001 2010-03-18  Bruno Haible  <bruno@clisp.org>
25002
25003         Fix bug introduced on 2010-03-14.
25004         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25005         (gl_SPAWN_H): Require it.
25006         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25007         Reported by Simon Josefsson.
25008
25009 2010-03-18  Bruno Haible  <bruno@clisp.org>
25010
25011         Fix typo introduced on 2009-12-31.
25012         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25013         posix_spawn_file_actions_adddup2.
25014
25015 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25016         and Eric Blake  <eblake@redhat.com>
25017
25018         test-vc-list-files-git: make more robust
25019         * tests/test-vc-list-files-git.sh: Unset problematic environment
25020         variables.  Chain commands together.
25021
25022 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25023
25024         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25025         `AC_CHECK_DECL' invocation.
25026
25027 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25028
25029         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25030         appears before executable statements. Suggested by Petr Sumbera
25031         <Petr.Sumbera@Sun.COM>.
25032
25033 2010-03-14  Bruno Haible  <bruno@clisp.org>
25034
25035         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25036         portability problems. Instead use a simpler test.
25037         (main): Check that invalid arguments are rejected only on Linux.
25038
25039 2010-03-14  Bruno Haible  <bruno@clisp.org>
25040
25041         Fix bug introduced on 2009-12-31.
25042         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25043         gl_PREREQ_SYS_H_WINSOCK2 always.
25044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25045         SYS_SOCKET_H variable.
25046         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25047         Update comments.
25048         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25049         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25050         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25052         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25053
25054 2010-03-14  Bruno Haible  <bruno@clisp.org>
25055
25056         Fix values returned by sinl, cosl.
25057         * lib/trigl.h: Add specification comments.
25058         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25059         that combines the values from the precomputed table with the values of
25060         the Chebyshev polynomials.
25061
25062 2010-03-14  Bruno Haible  <bruno@clisp.org>
25063
25064         Fix compilation error when modules 'posix_spawn[p]' are not used.
25065         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25067
25068 2010-03-14  Bruno Haible  <bruno@clisp.org>
25069
25070         Fix compilation error on mingw when module 'time_r' is not used.
25071         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25072         is 1.
25073         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25074         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25075         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25077
25078 2010-03-14  Bruno Haible  <bruno@clisp.org>
25079
25080         Fix compilation error with Sun C.
25081         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25082         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25083         instead of GCC specific ULONG_LONG_MAX.
25084         * lib/xstrtoll.c: Likewise.
25085         * lib/xstrtoull.c: Likewise.
25086
25087 2010-03-13  Bruno Haible  <bruno@clisp.org>
25088
25089         Allow the user to disable C++ code and tests.
25090         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25091         (gl_PROG_ANSI_CXX): Require it.
25092
25093 2010-03-13  Bruno Haible  <bruno@clisp.org>
25094
25095         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25096         cases.
25097
25098 2010-03-13  Bruno Haible  <bruno@clisp.org>
25099
25100         Test that gnulib does not break the standard C++ headers.
25101         * tests/test-locale-c++2.cc: New file.
25102         * modules/locale-tests (Files): Add it.
25103         (Makefile.am): Compile it for test-locale-c++.
25104         * tests/test-math-c++2.cc: New file.
25105         * modules/math-tests (Files): Add it.
25106         (Makefile.am): Compile it for test-math-c++.
25107         * tests/test-signal-c++2.cc: New file.
25108         * modules/signal-tests (Files): Add it.
25109         (Makefile.am): Compile it for test-signal-c++.
25110         * tests/test-stdio-c++2.cc: New file.
25111         * modules/stdio-tests (Files): Add it.
25112         (Makefile.am): Compile it for test-stdio-c++.
25113         * tests/test-stdlib-c++2.cc: New file.
25114         * modules/stdlib-tests (Files): Add it.
25115         (Makefile.am): Compile it for test-stdlib-c++.
25116         * tests/test-string-c++2.cc: New file.
25117         * modules/string-tests (Files): Add it.
25118         (Makefile.am): Compile it for test-string-c++.
25119         * tests/test-time-c++2.cc: New file.
25120         * modules/time-tests (Files): Add it.
25121         (Makefile.am): Compile it for test-time-c++.
25122         Reported by John W. Eaton <jwe@gnu.org>.
25123
25124 2010-03-13  Bruno Haible  <bruno@clisp.org>
25125
25126         * gnulib-tool (func_usage): Clarify which options are available for
25127         --create-testdir and --create-megatestdir.
25128
25129 2010-03-13  Bruno Haible  <bruno@clisp.org>
25130
25131         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25132         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25133         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25134         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25135         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25136         when appropriate.
25137         Reported by Jim Meyering.
25138
25139 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25140
25141         * gnulib-tool (func_import): Explain origin of code.
25142
25143 2010-03-12  Bruno Haible  <bruno@clisp.org>
25144
25145         Fix problem with automake's definition of CXXLINK.
25146         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25147         Reported by Simon Josefsson and Ludovic Courtès.
25148
25149 2010-03-12  Bruno Haible  <bruno@clisp.org>
25150
25151         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25152         stable releases.
25153
25154 2010-03-11  Bruno Haible  <bruno@clisp.org>
25155
25156         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25157         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25158         whether the system provides one variant or multiple variants of the
25159         function.
25160         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25161         C++ compilers.
25162         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25163         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25164         Reported by Jim Meyering.
25165
25166 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25167
25168         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25169
25170 2010-03-08  Bruno Haible  <bruno@clisp.org>
25171
25172         gnulib-tool: Add support for --libtool in --create-testdir.
25173         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25174         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25175
25176 2010-03-08  Eric Blake  <eblake@redhat.com>
25177
25178         gnulib-tool.texi: mention possibility of git submodule
25179         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25180         submodules.
25181         * doc/.gitignore: Ignore another generated file.
25182
25183 2010-03-08  Karl Berry  <karl@gnu.org>
25184
25185         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25186         of committing gnulib files while skipping others.
25187
25188 2010-03-07  Bruno Haible  <bruno@clisp.org>
25189
25190         Tests of module 'wctype' in C++ mode.
25191         * tests/test-wctype-c++.cc: New file.
25192         * modules/wctype-tests (Files): Add it and tests/signature.h.
25193         (Depends-on): Add ansi-c++-opt.
25194         (Makefile.am): Arrange to compile and run test-wctype-c++.
25195
25196         Tests of module 'wchar' in C++ mode.
25197         * tests/test-wchar-c++.cc: New file.
25198         * modules/wchar-tests (Files): Add it and tests/signature.h.
25199         (Depends-on): Add ansi-c++-opt.
25200         (Makefile.am): Arrange to compile and run test-wchar-c++.
25201         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25202         gl_MODULE_INDICATOR.
25203
25204         Tests of module 'unistd' in C++ mode.
25205         * tests/test-unistd-c++.cc: New file.
25206         * modules/unistd-tests (Files): Add it and tests/signature.h.
25207         (Depends-on): Add ansi-c++-opt.
25208         (Makefile.am): Arrange to compile and run test-unistd-c++.
25209         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25210         gl_MODULE_INDICATOR.
25211
25212         Tests of module 'time' in C++ mode.
25213         * tests/test-time-c++.cc: New file.
25214         * modules/time-tests (Files): Add it and tests/signature.h.
25215         (Depends-on): Add ansi-c++-opt.
25216         (Makefile.am): Arrange to compile and run test-time-c++.
25217         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25218
25219         Tests of module 'sys_time' in C++ mode.
25220         * tests/test-sys_time-c++.cc: New file.
25221         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25222         (Depends-on): Add ansi-c++-opt.
25223         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25224         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25225         gl_MODULE_INDICATOR.
25226
25227         Tests of module 'sys_stat' in C++ mode.
25228         * tests/test-sys_stat-c++.cc: New file.
25229         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25230         (Depends-on): Add ansi-c++-opt.
25231         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25232         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25233         gl_MODULE_INDICATOR.
25234
25235         Tests of module 'sys_socket' in C++ mode.
25236         * tests/test-sys_socket-c++.cc: New file.
25237         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25238         (Depends-on): Add ansi-c++-opt.
25239         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25240         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25241         gl_MODULE_INDICATOR.
25242
25243         Tests of module 'sys_select' in C++ mode.
25244         * tests/test-sys_select-c++.cc: New file.
25245         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25246         (Depends-on): Add ansi-c++-opt.
25247         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25248         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25249         gl_MODULE_INDICATOR.
25250
25251         Tests of module 'sys_ioctl' in C++ mode.
25252         * tests/test-sys_ioctl-c++.cc: New file.
25253         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25254         (Depends-on): Add ansi-c++-opt.
25255         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25257         gl_MODULE_INDICATOR.
25258
25259         Tests of module 'string' in C++ mode.
25260         * tests/test-string-c++.cc: New file.
25261         * modules/string-tests (Files): Add it and tests/signature.h.
25262         (Depends-on): Add ansi-c++-opt.
25263         (Makefile.am): Arrange to compile and run test-string-c++.
25264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25265         gl_MODULE_INDICATOR.
25266
25267         Tests of module 'stdlib' in C++ mode.
25268         * tests/test-stdlib-c++.cc: New file.
25269         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25270         (Depends-on): Add ansi-c++-opt.
25271         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25272         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25273         gl_MODULE_INDICATOR.
25274
25275         Tests of module 'stdio' in C++ mode.
25276         * tests/test-stdio-c++.cc: New file.
25277         * modules/stdio-tests (Files): Add it and tests/signature.h.
25278         (Depends-on): Add ansi-c++-opt.
25279         (Makefile.am): Arrange to compile and run test-stdio-c++.
25280         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25281         gl_MODULE_INDICATOR.
25282
25283         Tests of module 'spawn' in C++ mode.
25284         * tests/test-spawn-c++.cc: New file.
25285         * modules/spawn-tests (Files): Add it and tests/signature.h.
25286         (Depends-on): Add ansi-c++-opt.
25287         (Makefile.am): Arrange to compile and run test-spawn-c++.
25288         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25289         gl_MODULE_INDICATOR.
25290
25291         Tests of module 'signal' in C++ mode.
25292         * tests/test-signal-c++.cc: New file.
25293         * modules/signal-tests (Files): Add it and tests/signature.h.
25294         (Depends-on): Add ansi-c++-opt.
25295         (Makefile.am): Arrange to compile and run test-signal-c++.
25296         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25297         gl_MODULE_INDICATOR.
25298
25299         Tests of module 'search' in C++ mode.
25300         * tests/test-search-c++.cc: New file.
25301         * modules/search-tests (Files): Add it and tests/signature.h.
25302         (Depends-on): Add ansi-c++-opt.
25303         (Makefile.am): Arrange to compile and run test-search-c++.
25304         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25305         gl_MODULE_INDICATOR.
25306
25307         Tests of module 'math' in C++ mode.
25308         * tests/test-math-c++.cc: New file.
25309         * modules/math-tests (Files): Add it and tests/signature.h.
25310         (Depends-on): Add ansi-c++-opt.
25311         (Makefile.am): Arrange to compile and run test-math-c++.
25312         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25313
25314         Tests of module 'locale' in C++ mode.
25315         * tests/test-locale-c++.cc: New file.
25316         * modules/locale-tests (Files): Add it and tests/signature.h.
25317         (Depends-on): Add ansi-c++-opt.
25318         (Makefile.am): Arrange to compile and run test-locale-c++.
25319         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25320         gl_MODULE_INDICATOR.
25321
25322         Tests of module 'langinfo' in C++ mode.
25323         * tests/test-langinfo-c++.cc: New file.
25324         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25325         (Depends-on): Add ansi-c++-opt.
25326         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25327         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25328         gl_MODULE_INDICATOR.
25329
25330         Tests of module 'iconv-h' in C++ mode.
25331         * tests/test-iconv-h-c++.cc: New file.
25332         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25333         (Depends-on): Add ansi-c++-opt.
25334         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25335
25336         Tests of module 'glob' in C++ mode.
25337         * tests/test-glob-c++.cc: New file.
25338         * modules/glob-tests (Files): Add it.
25339         (Depends-on): Add ansi-c++-opt.
25340         (Makefile.am): Arrange to compile and run test-glob-c++.
25341
25342         Tests of module 'fcntl-h' in C++ mode.
25343         * tests/test-fcntl-h-c++.cc: New file.
25344         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25345         (Depends-on): Add ansi-c++-opt.
25346         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25347         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25348         gl_MODULE_INDICATOR.
25349
25350         Tests of module 'dirent' in C++ mode.
25351         * tests/test-dirent-c++.cc: New file.
25352         * modules/dirent-tests (Files): Add it and tests/signature.h.
25353         (Depends-on): Add ansi-c++-opt.
25354         (Makefile.am): Arrange to compile and run test-dirent-c++.
25355         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25356         gl_MODULE_INDICATOR.
25357
25358         New module 'ansi-c++-opt'.
25359         * modules/ansi-c++-opt: New file.
25360         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25361
25362         Document C++ namespace mode.
25363         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25364
25365         wctype: Avoid #define replacements in C++ mode.
25366         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25367         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25368         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25369         In C++, define a namespaced alias symbol.
25370         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25371         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25372         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25373         rule.
25374
25375         wchar: Avoid #define replacements in C++ mode.
25376         * lib/wchar.in.h: Include c++defs.h.
25377         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25378         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25379         symbol.
25380         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25381         * modules/wchar (Depends-on): Add c++defs.
25382         (Makefile.am): Update wchar.h rule.
25383
25384         unistd: Avoid #define replacements in C++ mode.
25385         * lib/unistd.in.h: Include c++defs.h.
25386         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25387         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25388         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25389         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25390         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25391         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25392         symbol.
25393         (environ): Update.
25394         * modules/unistd (Depends-on): Add c++defs.
25395         (Makefile.am): Update unistd.h rule.
25396
25397         time: Avoid #define replacements in C++ mode.
25398         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25399         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25400         define a namespaced alias symbol.
25401         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25402         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25403         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25404         * modules/time (Depends-on): Add c++defs, warn-on-use.
25405         (Makefile.am): Update time.h rule.
25406         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25407         * modules/nanosleep (configure.ac): Likewise.
25408         * modules/strptime (configure.ac): Likewise.
25409         * modules/timegm (configure.ac): Likewise.
25410
25411         sys_time: Avoid #define replacements in C++ mode.
25412         * lib/sys_time.in.h: Include c++defs.h.
25413         (gettimeofday): In C++, define a namespaced alias symbol.
25414         * modules/sys_time (Depends-on): Add c++defs.
25415         (Makefile.am): Update sys/time.h rule.
25416
25417         sys_stat: Avoid #define replacements in C++ mode.
25418         * lib/sys_stat.in.h: Include c++defs.h.
25419         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25420         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25421         namespaced alias symbol.
25422         In C++, define a namespaced alias symbol.
25423         * modules/sys_stat (Depends-on): Add c++defs.
25424         (Makefile.am): Update sys/stat.h rule.
25425
25426         sys_socket: Avoid #define replacements in C++ mode.
25427         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25428         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25429         definitions also when the system has a <sys/socket.h>.
25430         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25431         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25432         In C++, define a namespaced alias symbol.
25433         * modules/sys_socket (Depends-on): Add c++defs.
25434         (Makefile.am): Update sys/socket.h rule.
25435
25436         sys_select: Avoid #define replacements in C++ mode.
25437         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25438         definitions also when the system has a <sys/select.h>.
25439         (select): In C++, define a namespaced alias symbol.
25440         * modules/sys_select (Depends-on): Add c++defs.
25441         (Makefile.am): Update sys/select.h rule.
25442
25443         sys_ioctl: Avoid #define replacements in C++ mode.
25444         * lib/sys_ioctl.in.h: Include c++defs.h.
25445         (ioctl): In C++, define a namespaced alias symbol.
25446         * modules/sys_ioctl (Depends-on): Add c++defs.
25447         (Makefile.am): Update sys/ioctl.h rule.
25448
25449         string: Avoid #define replacements in C++ mode.
25450         * lib/string.in.h: Include c++defs.h.
25451         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25452         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25453         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25454         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25455         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25456         * modules/string (Depends-on): Add c++defs.
25457         (Makefile.am): Update string.h rule.
25458
25459         stdlib: Avoid #define replacements in C++ mode.
25460         * lib/stdlib.in.h: Include c++defs.h.
25461         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25462         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25463         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25464         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25465         symbol.
25466         * modules/stdlib (Depends-on): Add c++defs.
25467         (Makefile.am): Update stdlib.h rule.
25468
25469         stdio: Avoid #define replacements in C++ mode.
25470         * lib/stdio.in.h: Include c++defs.h.
25471         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25472         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25473         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25474         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25475         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25476         namespaced alias symbol.
25477         * modules/stdio (Depends-on): Add c++defs.
25478         (Makefile.am): Update stdio.h rule.
25479
25480         spawn: Avoid #define replacements in C++ mode.
25481         * lib/spawn.in.h: Include c++defs.h.
25482         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25483         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25484         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25485         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25486         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25487         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25488         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25489         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25490         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25491         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25492         In C++, define a namespaced alias symbol.
25493         * modules/spawn (Depends-on): Add c++defs.
25494         (Makefile.am): Update spawn.h rule.
25495
25496         signal: Avoid #define replacements in C++ mode.
25497         * lib/signal.in.h: Include c++defs.h.
25498         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25499         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25500         namespaced alias symbol.
25501         * modules/signal (Depends-on): Add c++defs.
25502         (Makefile.am): Update signal.h rule.
25503
25504         search: Avoid #define replacements in C++ mode.
25505         * lib/search.in.h: Include c++defs.h.
25506         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25507         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25508         symbol.
25509         * modules/search (Depends-on): Add c++defs.
25510         (Makefile.am): Update search.h rule.
25511
25512         math: Avoid #define replacements in C++ mode.
25513         * lib/math.in.h: Include c++defs.h.
25514         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25515         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25516         trunc, truncl): In C++, define a namespaced alias symbol.
25517         * modules/math (Depends-on): Add c++defs.
25518         (Makefile.am): Update math.h rule.
25519
25520         locale: Avoid #define replacements in C++ mode.
25521         * lib/locale.in.h: Include c++defs.h.
25522         (duplocale): In C++, define a namespaced alias symbol.
25523         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25524         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25525         * modules/locale (Depends-on): Add c++defs.
25526         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25527
25528         langinfo: Avoid #define replacements in C++ mode.
25529         * lib/langinfo.in.h: Include c++defs.h.
25530         (nl_langinfo): In C++, define a namespaced alias symbol.
25531         * modules/langinfo (Depends-on): Add c++defs.
25532         (Makefile.am): Update langinfo.h rule.
25533
25534         iconv-h: Avoid #define replacements in C++ mode.
25535         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25536         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25537         symbol.
25538         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25539         whenever iconv is present.
25540         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25541         (Makefile.am): Update iconv.h rule.
25542
25543         glob: Avoid #define replacements in C++ mode.
25544         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25545         (_gl_glob_errfunc_fn): New type.
25546         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25547         symbol.
25548         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25549         (Makefile.am): Update glob.h rule.
25550
25551         fcntl-h: Avoid #define replacements in C++ mode.
25552         * lib/fcntl.in.h: Include c++defs.h.
25553         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25554         * modules/fcntl-h (Depends-on): Add c++defs.
25555         (Makefile.am): Update fcntl.h rule.
25556
25557         dirent: Avoid #define replacements in C++ mode.
25558         * lib/dirent.in.h: Include c++defs.h.
25559         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25560         namespaced alias symbol.
25561         (dirfd): Update declaration.
25562         * modules/dirent (Depends-on): Add c++defs.
25563         (Makefile.am): Update dirent.h rule.
25564
25565         ctype: Make it usable in C++ code.
25566         * lib/ctype.in.h: Include c++defs.h.
25567         (isblank): Declare as extern "C".
25568         * modules/ctype (Depends-on): Add c++defs.
25569         (Makefile.am): Update ctype.h rule.
25570
25571         New module 'c++defs'.
25572         * modules/c++defs: New file.
25573         * build-aux/c++defs.h: New file.
25574         Reported by John W. Eaton <jwe@gnu.org>.
25575
25576 2010-03-07  Bruno Haible  <bruno@clisp.org>
25577
25578         logb: Provide missing declaration for Cygwin.
25579         * lib/math.in.h (logb): New declaration.
25580         * m4/logb.m4: New file.
25581         * modules/logb (Files): Add m4/logb.m4.
25582         (Depends-on): Add math.
25583         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25584         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25586         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25587         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25588
25589 2010-03-07  Bruno Haible  <bruno@clisp.org>
25590
25591         Fix test-cond link error.
25592         * tests/test-cond.c: Include <stdio.h>.
25593
25594 2010-03-07  Bruno Haible  <bruno@clisp.org>
25595
25596         Fix test-dirent-safer link error.
25597         * modules/dirent-safer-tests (Makefile.am): Define
25598         test_dirent_safer_LDADD.
25599
25600 2010-03-07  Bruno Haible  <bruno@clisp.org>
25601
25602         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25603         among default module list.
25604
25605 2010-03-07  Bruno Haible  <bruno@clisp.org>
25606
25607         Fix link error on platforms with GNU libiconv.
25608         * modules/unistr/u8-strcoll-tests (Makefile): Define
25609         test_u8_strcoll_LDADD.
25610         * modules/unistr/u16-strcoll-tests (Makefile): Define
25611         test_u16_strcoll_LDADD.
25612         * modules/unistr/u32-strcoll-tests (Makefile): Define
25613         test_u32_strcoll_LDADD.
25614
25615 2010-03-07  Bruno Haible  <bruno@clisp.org>
25616
25617         Use POSIX declarations for socket functions.
25618         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25619         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25620         rpl_sendto): Change declaration to match POSIX.
25621         * lib/connect.c (rpl_connect): Likewise.
25622         * lib/accept.c (rpl_accept): Likewise.
25623         * lib/bind.c (rpl_bind): Likewise.
25624         * lib/getpeername.c (rpl_getpeername): Likewise.
25625         * lib/getsockname.c (rpl_getsockname): Likewise.
25626         * lib/recv.c (rpl_recv): Likewise.
25627         * lib/send.c (rpl_send): Likewise.
25628         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25629         * lib/sendto.c (rpl_sendto): Likewise.
25630
25631 2010-03-06  Bruno Haible  <bruno@clisp.org>
25632
25633         Clarify access, euidaccess, faccessat.
25634         * doc/posix-functions/faccessat.texi: Mention security problem under
25635         "Other problems", not "Portability problems".
25636         * doc/posix-functions/access.texi: Likewise. Mention a related security
25637         problem.
25638         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25639         * lib/euidaccess.c: Add comments about platforms.
25640         * lib/unistd.in.h (access, euidaccess): Add warnings.
25641
25642 2010-03-07  Bruno Haible  <bruno@clisp.org>
25643
25644         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25645         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25646         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25647         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25648         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25649         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25650         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25651         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25652         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25653         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25654         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25655         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25656         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25657         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25658         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25659         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25660         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25661         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25662         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25663         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25664         Likewise.
25665         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25666         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25667         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25668         Likewise.
25669         * tests/test-spawn.c (main): Make it work when
25670         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25671
25672 2010-03-07  Bruno Haible  <bruno@clisp.org>
25673
25674         Fix incorrect Makefile.am generation in German locale.
25675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25676         Execute sed command with character range in C locale.
25677
25678 2010-03-06  Bruno Haible  <bruno@clisp.org>
25679
25680         Tests for module 'iconv-h'.
25681         * modules/iconv-h-tests: New file.
25682         * tests/test-iconv-h.c: New file.
25683
25684         New module 'iconv-h'.
25685         * modules/iconv-h: New file.
25686         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25687         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25688         (configure.ac): Remove gl_ICONV_H.
25689         (Makefile.am): Remove rule for iconv.h.
25690
25691 2010-03-06  Bruno Haible  <bruno@clisp.org>
25692
25693         More consistent naming of *.m4 files.
25694         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25695         * modules/wctype (Files): Update.
25696
25697         More consistent naming of *.m4 files.
25698         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25699         * modules/wchar (Files): Update.
25700
25701 2010-03-06  Jim Meyering  <meyering@redhat.com>
25702
25703         euidaccess: relax license to LGPLv2+
25704         * modules/euidaccess (License): Relax to LGPLv2+.
25705
25706 2010-03-06  Bruno Haible  <bruno@clisp.org>
25707
25708         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25709         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25710         (Makefile.am): Augment lib_SOURCES instead.
25711
25712 2010-03-04  Jim Meyering  <meyering@redhat.com>
25713
25714         utime: remove obsolete module
25715         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25716         unnecessary for years, and has been marked as obsolete for 10 months.
25717         * modules/utime: Remove file.
25718         * lib/utime.c: Remove file.
25719         * m4/utime.m4: Remove file.
25720         * m4/utimes-null.m4: Remove file.
25721         * doc/posix-functions/utime.texi (utime): Remove reference to
25722         the module.  Move the sole "fixed by gnulib" item into the
25723         "problems not fixed by Gnulib" list.
25724         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25725
25726 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25727
25728         * modules/exit (License): Relax license to LGPLv2+.
25729         (Status): Mark as obsolete.
25730         * NEWS: Mention deprecated 'exit' module.
25731         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25732         of now obsolete 'exit'.
25733
25734 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25735
25736         fts-lgpl: remove unused module
25737         * modules/fts-lgpl: Remove.
25738         * MODULES.html.sh (func_all_modules): Adjust.
25739         * check-module (find_included_lib_files): Adjust.
25740         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25741
25742 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25743
25744         copy-acl: enhance Solaris ACL error handling
25745         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25746         * lib/set-mode-acl.c (qset_acl): Likewise.
25747
25748 2010-03-02  Bruno Haible  <bruno@clisp.org>
25749
25750         spawn: Don't override the system defined values on FreeBSD 8.
25751         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25752         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25753         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25754         if HAVE_POSIX_SPAWN is 1.
25755         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25756
25757 2010-03-01  Bruno Haible  <bruno@clisp.org>
25758
25759         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25760         regarding Automake.
25761
25762 2010-02-25  Bruno Haible  <bruno@clisp.org>
25763
25764         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25765         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25766         setting, not afterwards.
25767         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25768
25769 2010-02-24  Eric Blake  <eblake@redhat.com>
25770
25771         bootstrap, git-version-gen: use timestamp
25772         * build-aux/git-version-gen (scriptversion): Force UTC.
25773         * build-aux/bootstrap (scriptversion): New variable.
25774
25775         bootstrap: allow older git
25776         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25777         older than 1.6.4.  Requested by the libvirt project.
25778
25779 2010-02-23  Eric Blake  <eblake@redhat.com>
25780
25781         warn-on-use: work with old autoconf
25782         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25783         AS_VAR semantics of autoconf 2.60.
25784         Reported by Bruno Haible.
25785
25786         bootstrap: improve some comments
25787         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25788         clarification comments.
25789
25790         gettimeofday: provide correct function
25791         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25792         when replacement is declared, otherwise provide gettimeofday.
25793         Reported by Michael Goffioul.
25794
25795 2010-02-23  Jim Meyering  <meyering@redhat.com>
25796
25797         lib-ignore: relax license to "unlimited", not LGPLv2+
25798         * modules/lib-ignore (License): Relax to "unlimited".
25799
25800 2010-02-23  Jim Meyering  <meyering@redhat.com>
25801
25802         lib-ignore: relax license to LGPLv2+
25803         * modules/lib-ignore (License): Relax to LGPLv2+.
25804
25805 2010-02-22  Eric Blake  <eblake@redhat.com>
25806
25807         lseek: avoid bash 3.2 broken pipe bug
25808         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25809         warning from bash 3.2.
25810         Reported by Ben Pfaff, with analysis from Bruno Haible.
25811
25812         bootstrap: support non-FSF copyright holder
25813         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25814         bootstrap.conf override of COPYRIGHT_HOLDER.
25815         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25816
25817         bootstrap: interoperate with gettext 0.14.1
25818         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25819
25820         bootstrap: allow for alternate submodule location
25821         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25822         hardcoding submodule location.
25823         (gnulib_mk): Allow direct use of Makefile.am.
25824
25825         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25826         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25827         rather than reconfiguring where the submodule points.
25828
25829         gettimeofday: restore support for platforms that lack function
25830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25831         replacement if function is missing.
25832         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25833         * modules/sys_time (Makefile.am): Substitute it.
25834         * lib/sys_time.in.h (gettimeofday): Check it.
25835         Reported by Michael Goffioul.
25836
25837 2010-02-21  Bruno Haible  <bruno@clisp.org>
25838
25839         * lib/stdio.in.h (obstack_printf): Fix typo.
25840
25841 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25842
25843         vc-list-files: use bzr ls's -R option
25844         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25845         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25846
25847 2010-02-21  Jim Meyering  <meyering@redhat.com>
25848
25849         init.sh: fix EXEEXT shims to work also for names like test-prog
25850         * tests/init.sh: Re-exec a better shell, when needed.
25851         If the current shell lacks support for posix $(...), an init.sh-using
25852         test will now try to find a shell that supports that.  If EXEEXT is
25853         nonempty, we also require support for hyphen-in-alias-name and shell
25854         substitutions like ${var#glob}.  Failure to find such a shell results
25855         in a skipped test.
25856
25857 2010-02-21  Bruno Haible  <bruno@clisp.org>
25858
25859         Really work around around "broken pipe" error message from bash 3.2.
25860         * gnulib-tool (func_reset_sigpipe): Remove function.
25861         (echo): In bash 3.2, define to a function that uses printf.
25862         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25863
25864 2010-02-20  Bruno Haible  <bruno@clisp.org>
25865
25866         Restore support for automake 1.9.6 with autoconf 2.61.
25867         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25868         Reported by James Youngman <jay@gnu.org>.
25869
25870 2010-02-20  Bruno Haible  <bruno@clisp.org>
25871
25872         Improve *printf warning condition.
25873         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25874         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25875         and the function is overridden due to SIGPIPE emulation.
25876
25877 2010-02-20  Bruno Haible  <bruno@clisp.org>
25878
25879         * lib/stdio.in.h: Tweak comments.
25880
25881 2010-02-19  Bruno Haible  <bruno@clisp.org>
25882
25883         Make it easier to find modules. New gnulib-tool option '--find'.
25884         * gnulib-tool: New option --find.
25885         (func_usage): Document it.
25886         (func_sanitize_modulelist): New function, extracted from
25887         func_all_modules.
25888         (func_all_modules): Invoke it.
25889         * doc/gnulib-tool.texi (Which modules?): New node.
25890
25891 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25892
25893         * lib/sys_select.in.h: Provide select replacement even if
25894         sys/select.h exists on a system, for Interix.
25895
25896 2010-02-18  Jim Meyering  <meyering@redhat.com>
25897
25898         init.sh: don't use $(...) just yet
25899         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25900         to accommodate e.g., Solaris' /bin/sh.
25901
25902 2010-02-17  Bruno Haible  <bruno@clisp.org>
25903
25904         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25905         Reported by Ludovic Courtès <ludo@gnu.org>.
25906
25907 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25908
25909         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25910         linking with -lintl.
25911
25912 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25913
25914         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25915         if not provided by the system's netdb.h.  Reported by
25916         ludo@gnu.org (Ludovic Courtès).
25917
25918 2010-02-15  Jim Meyering  <meyering@redhat.com>
25919
25920         init.sh: improve portability and efficiency
25921         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25922         "dummy" in a for loop.
25923         Use '!', not '^' to select the complement of a character set used
25924         in a "case" statement.
25925         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25926         Suggestions from Eric Blake.
25927
25928         init.sh: automatically accommodate programs with the .exe suffix
25929         Automatically arrange for an invocation of "prog" to execute the
25930         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25931         may use the simpler "prog", yet still work when built on a system
25932         that requires specifying the added suffix.
25933         Do this by constructing a function named "prog" that invokes
25934         "prog.exe" for each .exe file in selected directories.
25935         * tests/init.sh (find_exe_basenames_): New function.
25936         (create_exe_shim_functions_): New function.
25937         (path_prepend_): Use it.
25938
25939         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25940         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25941         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25942
25943 2010-02-14  Jim Meyering  <meyering@redhat.com>
25944
25945         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25946         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25947         (sc_prohibit_hash_pjw_without_use): New rule.
25948
25949         maint.mk: allow the default upload destination dir to be overridden
25950         * top/maint.mk (upload_dest_dir_): Define with a default that
25951         preserves the status quo.
25952         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25953         Reported by Peter Simons.
25954
25955         maint.mk: prohibit inclusion of "hash.h" without_use
25956         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25957
25958 2010-02-10  Jim Meyering  <meyering@redhat.com>
25959
25960         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25961         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25962
25963 2010-02-09  Eric Blake  <ebb9@byu.net>
25964         and Bruno Haible  <bruno@clisp.org>
25965
25966         obstack-printf-posix: ensure declaration
25967         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25968         extracted from gl_FUNC_OBSTACK_PRINTF.
25969         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25970         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25971         Likewise.
25972         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25973         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25974         0.
25975
25976 2010-02-08  Bruno Haible  <bruno@clisp.org>
25977
25978         gnulib-tool: Fix typo in 2010-02-07 commit.
25979         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25980         Reported by Eric Blake.
25981
25982 2010-02-07  Bruno Haible  <bruno@clisp.org>
25983
25984         gnulib-tool: Fix up caching patches.
25985         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25986         option --no-cache. Use associative arrays when supported by the shell.
25987         (sed_comments): New variable.
25988         (modcache): Renamed from do_cache.
25989         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25990         abbreviate unnecessarily.
25991         (have_associative): New variable.
25992         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25993         way also for ksh and zsh.
25994         (func_init_sed_convert_to_cache_statements): New function, extracted
25995         from func_cache_lookup_module. Add support for associative arrays.
25996         Don't set the c_MODULE_cached variable here. Ignore all lines before
25997         the first field header. Remove only the final newline, not all trailing
25998         newlines. Support empty fields correctly. Limit the use of 'eval' to
25999         assignments.
26000         (func_get_description, func_get_status, func_get_notice,
26001         func_get_applicability, func_get_filelist, func_get_dependencies,
26002         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26003         func_get_automake_snippet, func_get_include_directive,
26004         func_get_link_directive, func_get_license, func_get_maintainer):
26005         Update documentation. List the unoptimized code first. Add support for
26006         associative arrays. Limit the use of 'eval' to assignments.
26007         (func_get_applicability): Undo stylistic pessimisations.
26008         (func_get_automake_snippet, func_get_include_directive): Reduce code
26009         duplication.
26010         (func_modules_transitive_closure, func_modules_add_dummy,
26011         func_modules_notice, func_modules_to_filelist, func_add_file,
26012         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26013         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26014         func_create_testdir, func_create_megatestdir): Update documentation.
26015
26016 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26017
26018         * gnulib-tool (func_cache_lookup_module): Store the module name
26019         belonging to the cache variable; error out if two different
26020         module names map to the same cache variable name.
26021
26022 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26023
26024         gnulib-tool: Make caching optional.
26025         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26026         Update matching short versions of --no-changelog.
26027         (func_usage): Update.
26028         (sed_extract_cache_prog): Renamed from ...
26029         (sed_extract_prog): ... this; revert to old extraction script.
26030         (func_get_description, func_get_status)
26031         (func_get_notice, func_get_applicability, func_get_filelist)
26032         (func_get_dependencies, func_get_autoconf_early_snippet)
26033         (func_get_autoconf_snippet, func_get_automake_snippet)
26034         (func_get_include_directive, func_get_link_directive)
26035         (func_get_license, func_get_maintainer): If $do_cache is false,
26036         use old, non-caching extraction scripts.
26037         Suggestion by Bruno Haible.
26038
26039 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26040
26041         gnulib-tool: cache module metainformation.
26042         * gnulib-tool (sed_extract_prog): Match newline before each
26043         header, and rewrite header to a shell variable suffix.
26044         (func_cache_var, func_cache_lookup_module): New functions,
26045         to turn a module name into a cache variable prefix, and to
26046         look up and cache module metainformation.
26047         (func_get_description, func_get_status)
26048         (func_get_notice, func_get_applicability, func_get_filelist)
26049         (func_get_dependencies, func_get_autoconf_early_snippet)
26050         (func_get_autoconf_snippet, func_get_automake_snippet)
26051         (func_get_include_directive, func_get_link_directive)
26052         (func_get_license, func_get_maintainer): Use
26053         func_cache_lookup_module.
26054
26055 2010-02-07  Bruno Haible  <bruno@clisp.org>
26056
26057         fnctl: Fix missing dependency.
26058         * modules/fcntl (Depends-on): Add getdtablesize.
26059         Reported by John W. Eaton <jwe@gnu.org>.
26060
26061 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26062
26063         Argp: fix recognition of short alias options.
26064
26065         * lib/argp-parse.c (convert_options): Fix improper use of
26066         `|' between character values.
26067         * tests/test-argp.c (group1_option): New alias option
26068         --read (-r).
26069         (group1_parser): Special handling for 'r'.
26070         (test15): New test case.
26071         (test_fun): Add test15.
26072         * tests/test-argp-2.sh: Update expected --help and --usage
26073         outputs.
26074
26075 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26076
26077         * tests/test-argp.c: Fix indentation.
26078
26079 2010-02-04  Eric Blake  <ebb9@byu.net>
26080
26081         gettimeofday: expose type of second argument
26082         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26083         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26084         * tests/test-gettimeofday.c: Use it to silence warning.
26085         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26086         the issue.
26087
26088 2010-02-03  Jim Meyering  <meyering@redhat.com>
26089
26090         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26091         * lib/regcomp.c (TYPE_SIGNED): Define.
26092         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26093
26094         regcomp.c: avoid a new -Wshadow warning
26095         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26096
26097 2010-02-01  Jim Meyering  <meyering@redhat.com>
26098
26099         removing useless parentheses in cpp #define directives
26100         For motivation, see commit c0221df4, "define STREQ(a,b)
26101         consistently, removing useless parentheses"
26102         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26103         * lib/mountlist.c (MNT_IGNORE): Likewise.
26104         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26105
26106 2010-02-01  Eric Blake  <ebb9@byu.net>
26107
26108         sys_time: use link-warning
26109         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26110         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26111         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26112         * modules/sys_time (Depends-on): Add warn-on-use.
26113         (Makefile.am): Always build replacement.
26114         (configure.ac): Update substitutions.
26115         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26116         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26117         bother with SYS_TIME_H.
26118         * modules/gettimeofday (configure.ac): Declare indicator.
26119         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26120         in use.
26121
26122         closein-tests: silence compiler warning
26123         * tests/test-closein.c (main): Ignore fread result.
26124         * modules/closein-tests (Depends-on): Add ignore-value.
26125
26126         tests: silence warning about system return
26127         * tests/test-areadlink-with-size.c (main): Ignore system result.
26128         * tests/test-areadlink.c (main): Likewise.
26129         * tests/test-areadlinkat-with-size.c (main): Likewise.
26130         * tests/test-areadlinkat.c (main): Likewise.
26131         * tests/test-canonicalize-lgpl.c (main): Likewise.
26132         * tests/test-canonicalize.c (main): Likewise.
26133         * tests/test-chown.c (main): Likewise.
26134         * tests/test-fchownat.c (main): Likewise.
26135         * tests/test-fdutimensat.c (main): Likewise.
26136         * tests/test-fstatat.c (main): Likewise.
26137         * tests/test-futimens.c (main): Likewise.
26138         * tests/test-lchown.c (main): Likewise.
26139         * tests/test-link.c (main): Likewise.
26140         * tests/test-linkat.c (main): Likewise.
26141         * tests/test-lstat.c (main): Likewise.
26142         * tests/test-mkdir.c (main): Likewise.
26143         * tests/test-mkdirat.c (main): Likewise.
26144         * tests/test-mkfifo.c (main): Likewise.
26145         * tests/test-mkfifoat.c (main): Likewise.
26146         * tests/test-mknod.c (main): Likewise.
26147         * tests/test-readlink.c (main): Likewise.
26148         * tests/test-remove.c (main): Likewise.
26149         * tests/test-rename.c (main): Likewise.
26150         * tests/test-renameat.c (main): Likewise.
26151         * tests/test-rmdir.c (main): Likewise.
26152         * tests/test-symlink.c (main): Likewise.
26153         * tests/test-symlinkat.c (main): Likewise.
26154         * tests/test-unlink.c (main): Likewise.
26155         * tests/test-unlinkat.c (main): Likewise.
26156         * tests/test-utimens.c (main): Likewise.
26157         * tests/test-utimensat.c (main): Likewise.
26158         * modules/areadlink-tests (Depends-on): Add ignore-value.
26159         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26160         * modules/areadlinkat-tests (Depends-on): Likewise.
26161         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26162         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26163         * modules/canonicalize-tests (Depends-on): Likewise.
26164         * modules/chown-tests (Depends-on): Likewise.
26165         * modules/fdutimensat-tests (Depends-on): Likewise.
26166         * modules/futimens-tests (Depends-on): Likewise.
26167         * modules/lchown-tests (Depends-on): Likewise.
26168         * modules/link-tests (Depends-on): Likewise.
26169         * modules/linkat-tests (Depends-on): Likewise.
26170         * modules/lstat-tests (Depends-on): Likewise.
26171         * modules/mkdir-tests (Depends-on): Likewise.
26172         * modules/mkfifo-tests (Depends-on): Likewise.
26173         * modules/mkfifoat-tests (Depends-on): Likewise.
26174         * modules/mknod-tests (Depends-on): Likewise.
26175         * modules/openat-tests (Depends-on): Likewise.
26176         * modules/readlink-tests (Depends-on): Likewise.
26177         * modules/remove-tests (Depends-on): Likewise.
26178         * modules/rename-tests (Depends-on): Likewise.
26179         * modules/renameat-tests (Depends-on): Likewise.
26180         * modules/rmdir-tests (Depends-on): Likewise.
26181         * modules/symlink-tests (Depends-on): Likewise.
26182         * modules/symlinkat-tests (Depends-on): Likewise.
26183         * modules/unlink-tests (Depends-on): Likewise.
26184         * modules/utimens-tests (Depends-on): Likewise.
26185         * modules/utimensat-tests (Depends-on): Likewise.
26186
26187 2010-01-31  Bruno Haible  <bruno@clisp.org>
26188
26189         Perform the same test for many <math.h> functions.
26190         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26191         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26192         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26193         of gl_MATHFUNC.
26194         * modules/acos (configure.ac): Likewise.
26195         * modules/asin (configure.ac): Likewise.
26196         * modules/atan (configure.ac): Likewise.
26197         * modules/atan2 (configure.ac): Likewise.
26198         * modules/cbrt (configure.ac): Likewise.
26199         * modules/copysign (configure.ac): Likewise.
26200         * modules/cos (configure.ac): Likewise.
26201         * modules/cosh (configure.ac): Likewise.
26202         * modules/erf (configure.ac): Likewise.
26203         * modules/erfc (configure.ac): Likewise.
26204         * modules/exp (configure.ac): Likewise.
26205         * modules/fmod (configure.ac): Likewise.
26206         * modules/hypot (configure.ac): Likewise.
26207         * modules/j0 (configure.ac): Likewise.
26208         * modules/j1 (configure.ac): Likewise.
26209         * modules/jn (configure.ac): Likewise.
26210         * modules/lgamma (configure.ac): Likewise.
26211         * modules/log (configure.ac): Likewise.
26212         * modules/log10 (configure.ac): Likewise.
26213         * modules/log1p (configure.ac): Likewise.
26214         * modules/pow (configure.ac): Likewise.
26215         * modules/remainder (configure.ac): Likewise.
26216         * modules/sin (configure.ac): Likewise.
26217         * modules/sinh (configure.ac): Likewise.
26218         * modules/tan (configure.ac): Likewise.
26219         * modules/tanh (configure.ac): Likewise.
26220         * modules/y0 (configure.ac): Likewise.
26221         * modules/y1 (configure.ac): Likewise.
26222         * modules/yn (configure.ac): Likewise.
26223         Suggested by Paolo Bonzini.
26224
26225 2010-01-31  Bruno Haible  <bruno@clisp.org>
26226
26227         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26228
26229 2010-01-31  Bruno Haible  <bruno@clisp.org>
26230
26231         Work around getdelim() bug on FreeBSD 8.0.
26232         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26233         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26234         not work.
26235         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26236         is 1.
26237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26238         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26239         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26240         a non-zero size.
26241         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26242
26243 2010-01-31  Bruno Haible  <bruno@clisp.org>
26244
26245         Work around getline() bug on FreeBSD 8.0.
26246         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26247         and a non-zero size.
26248         * tests/test-getline.c (main): Likewise.
26249         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26250         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26251
26252 2010-01-28  Eric Blake  <ebb9@byu.net>
26253
26254         regex: fix build failure
26255         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26256         platforms.
26257
26258 2010-01-28  Jim Meyering  <meyering@redhat.com>
26259
26260         regex: do not ignore memory allocation failure
26261         * lib/regex_internal.c (create_cd_newstate): Detect
26262         re_node_set_init_copy failure.   Extracted from glibc commit
26263         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26264
26265         regex: sync more white-space changes from libc
26266         * lib/regex_internal.c: White-space only changes.
26267         * lib/regexec.c: Likewise.
26268
26269         regex: add many uses of __attribute_warn_unused_result__
26270         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26271         * lib/regexec.c: Likewise.
26272         Extracted from a messy glibc commit.
26273
26274         regcomp.c: spelling and merge-artifact from glibc
26275         * lib/regcomp.c: Merge remainder of glibc's
26276         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26277
26278         regcomp.c: sync white-space changes from glibc
26279         * lib/regcomp.c: Merge to accommodate white space
26280         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26281
26282         regcomp.c: do not ignore internal return values
26283         * lib/regcomp.c: Do not ignore internal return values.
26284         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26285         but without its white-space changes and spelling fixes.
26286
26287         regex_internal.h: define __attribute_warn_unused_result__
26288         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26289
26290         maint: add a syntax-check rule to check for vulnerable Makefile.in
26291         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26292
26293 2010-01-27  Jim Meyering  <meyering@redhat.com>
26294
26295         ncftpput-ftp: clean up spaces
26296         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26297         Remove trailing blanks.
26298
26299 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26300
26301         * build-aux/git-version-gen: Fix copyright statement.
26302         * build-aux/gnupload: Likewise.
26303         * tests/test-arcfour.c: Likewise.
26304         * tests/test-arctwo.c: Likewise.
26305         * tests/test-count-one-bits.c: Likewise.
26306         * tests/test-crc.c: Likewise.
26307         * tests/test-des.c: Likewise.
26308         * tests/test-gc-arcfour.c: Likewise.
26309         * tests/test-gc-arctwo.c: Likewise.
26310         * tests/test-gc-des.c: Likewise.
26311         * tests/test-gc-hmac-md5.c: Likewise.
26312         * tests/test-gc-hmac-sha1.c: Likewise.
26313         * tests/test-gc-md2.c: Likewise.
26314         * tests/test-gc-md4.c: Likewise.
26315         * tests/test-gc-md5.c: Likewise.
26316         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26317         * tests/test-gc-rijndael.c: Likewise.
26318         * tests/test-gc-sha1.c: Likewise.
26319         * tests/test-gc.c: Likewise.
26320         * tests/test-gethostname.c: Likewise.
26321         * tests/test-gettimeofday.c: Likewise.
26322         * tests/test-hash.c: Likewise.
26323         * tests/test-hmac-md5.c: Likewise.
26324         * tests/test-hmac-sha1.c: Likewise.
26325         * tests/test-md2.c: Likewise.
26326         * tests/test-md4.c: Likewise.
26327         * tests/test-md5.c: Likewise.
26328         * tests/test-memchr.c: Likewise.
26329         * tests/test-memchr2.c: Likewise.
26330         * tests/test-memcmp.c: Likewise.
26331         * tests/test-memmem.c: Likewise.
26332         * tests/test-memrchr.c: Likewise.
26333         * tests/test-rawmemchr.c: Likewise.
26334         * tests/test-read-file.c: Likewise.
26335         * tests/test-rijndael.c: Likewise.
26336         * tests/test-sockets.c: Likewise.
26337         * tests/test-strchrnul.c: Likewise.
26338         * tests/test-strstr.c: Likewise.
26339         * tests/test-strtod.c: Likewise.
26340         * build-aux/ncftpput-ftp: Likewise.
26341
26342 2010-01-26  Eric Blake  <ebb9@byu.net>
26343
26344         ignore-value: update recommended header name
26345         * modules/ignore-value (Include): Only use <> for headers that
26346         exist in glibc.
26347
26348 2010-01-26  Jim Meyering  <meyering@redhat.com>
26349
26350         test-userspec.c: avoid compiler warnings
26351         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26352         and "initialization discards qualifiers..." warnings.
26353         Put the first "uid" in its own scope, and make char* members "const".
26354
26355 2010-01-25  Bruno Haible  <bruno@clisp.org>
26356
26357         gnulib-tool: Make warning diagnostics consistent.
26358         * gnulib-tool (func_warning): New function.
26359         Use it everywhere where gnulib-tool produces output to stderr and it is
26360         not a fatal error.
26361
26362 2010-01-25  Bruno Haible  <bruno@clisp.org>
26363
26364         Fix test dependencies.
26365         * modules/xstrtol-tests (Depends-on): Add inttypes.
26366         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26367
26368 2010-01-25 Pádraig Brady <P@draigBrady.com>
26369
26370         syntax-check: detect incorrect boolean macro values in config.h
26371         * modules/maintainer-makefile (configure.ac): Parameterize the location
26372         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26373         The logic is from Eric Blake and the location indicated by Jim Meyering.
26374         Note the more natural CONFIG_HEADER name is prohibited by automake
26375         for backwards compatibility reasons.
26376         * top/maint.mk (sc_Wundef_boolean): New rule.
26377
26378 2010-01-25  Jim Meyering  <meyering@redhat.com>
26379
26380         bootstrap: detect MacOS 10.6's shasum, too
26381         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26382         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26383
26384 2010-01-23  Jim Meyering  <meyering@redhat.com>
26385
26386         xstrtoll: new module
26387         * modules/xstrtoll: New file.
26388         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26389         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26390         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26391         ./configure fails if you use this module and lack "long long".
26392         * modules/xstrtoll-tests: New module.
26393         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26394         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26395         new init.sh-based test framework.
26396
26397 2010-01-24  Bruno Haible  <bruno@clisp.org>
26398
26399         Tests for module 'yn'.
26400         * modules/yn-tests: New file.
26401         * tests/test-yn.c: New file.
26402
26403         Tests for module 'y1'.
26404         * modules/y1-tests: New file.
26405         * tests/test-y1.c: New file.
26406
26407         Tests for module 'y0'.
26408         * modules/y0-tests: New file.
26409         * tests/test-y0.c: New file.
26410
26411         Tests for module 'tanh'.
26412         * modules/tanh-tests: New file.
26413         * tests/test-tanh.c: New file.
26414
26415         Tests for module 'tan'.
26416         * modules/tan-tests: New file.
26417         * tests/test-tan.c: New file.
26418
26419         Tests for module 'sqrt'.
26420         * modules/sqrt-tests: New file.
26421         * tests/test-sqrt.c: New file.
26422
26423         Tests for module 'sinh'.
26424         * modules/sinh-tests: New file.
26425         * tests/test-sinh.c: New file.
26426
26427         Tests for module 'sin'.
26428         * modules/sin-tests: New file.
26429         * tests/test-sin.c: New file.
26430
26431         Tests for module 'rint'.
26432         * modules/rint-tests: New file.
26433         * tests/test-rint.c: New file.
26434
26435         Tests for module 'remainder'.
26436         * modules/remainder-tests: New file.
26437         * tests/test-remainder.c: New file.
26438
26439         Tests for module 'pow'.
26440         * modules/pow-tests: New file.
26441         * tests/test-pow.c: New file.
26442
26443         Tests for module 'nextafter'.
26444         * modules/nextafter-tests: New file.
26445         * tests/test-nextafter.c: New file.
26446
26447         Tests for module 'modf'.
26448         * modules/modf-tests: New file.
26449         * tests/test-modf.c: New file.
26450
26451         Tests for module 'logb'.
26452         * modules/logb-tests: New file.
26453         * tests/test-logb.c: New file.
26454
26455         Tests for module 'log1p'.
26456         * modules/log1p-tests: New file.
26457         * tests/test-log1p.c: New file.
26458
26459         Tests for module 'log10'.
26460         * modules/log10-tests: New file.
26461         * tests/test-log10.c: New file.
26462
26463         Tests for module 'log'.
26464         * modules/log-tests: New file.
26465         * tests/test-log.c: New file.
26466
26467         Tests for module 'lgamma'.
26468         * modules/lgamma-tests: New file.
26469         * tests/test-lgamma.c: New file.
26470
26471         Tests for module 'ldexp'.
26472         * modules/ldexp-tests: New file.
26473         * tests/test-ldexp.c: New file.
26474
26475         Tests for module 'jn'.
26476         * modules/jn-tests: New file.
26477         * tests/test-jn.c: New file.
26478
26479         Tests for module 'j1'.
26480         * modules/j1-tests: New file.
26481         * tests/test-j1.c: New file.
26482
26483         Tests for module 'j0'.
26484         * modules/j0-tests: New file.
26485         * tests/test-j0.c: New file.
26486
26487         Tests for module 'hypot'.
26488         * modules/hypot-tests: New file.
26489         * tests/test-hypot.c: New file.
26490
26491         Tests for module 'fmod'.
26492         * modules/fmod-tests: New file.
26493         * tests/test-fmod.c: New file.
26494
26495         Tests for module 'fabs'.
26496         * modules/fabs-tests: New file.
26497         * tests/test-fabs.c: New file.
26498
26499         Tests for module 'exp'.
26500         * modules/exp-tests: New file.
26501         * tests/test-exp.c: New file.
26502
26503         Tests for module 'erfc'.
26504         * modules/erfc-tests: New file.
26505         * tests/test-erfc.c: New file.
26506
26507         Tests for module 'erf'.
26508         * modules/erf-tests: New file.
26509         * tests/test-erf.c: New file.
26510
26511         Tests for module 'cosh'.
26512         * modules/cosh-tests: New file.
26513         * tests/test-cosh.c: New file.
26514
26515         Tests for module 'cos'.
26516         * modules/cos-tests: New file.
26517         * tests/test-cos.c: New file.
26518
26519         Tests for module 'copysign'.
26520         * modules/copysign-tests: New file.
26521         * tests/test-copysign.c: New file.
26522
26523         Tests for module 'cbrt'.
26524         * modules/cbrt-tests: New file.
26525         * tests/test-cbrt.c: New file.
26526
26527         Tests for module 'atan2'.
26528         * modules/atan2-tests: New file.
26529         * tests/test-atan2.c: New file.
26530
26531         Tests for module 'atan'.
26532         * modules/atan-tests: New file.
26533         * tests/test-atan.c: New file.
26534
26535         Tests for module 'asin'.
26536         * modules/asin-tests: New file.
26537         * tests/test-asin.c: New file.
26538
26539         Tests for module 'acos'.
26540         * modules/acos-tests: New file.
26541         * tests/test-acos.c: New file.
26542
26543 2010-01-24  Bruno Haible  <bruno@clisp.org>
26544
26545         Fix tests for common <math.h> functions.
26546         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26547         code snippet that references the function pointer, rather than merely
26548         calling the function. Substitute the FUNC_LIBM variable.
26549         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26550         * modules/acos (configure.ac): Likewise.
26551         * modules/asin (configure.ac): Likewise.
26552         * modules/atan (configure.ac): Likewise.
26553         * modules/atan2 (configure.ac): Likewise.
26554         * modules/cbrt (configure.ac): Likewise.
26555         * modules/copysign (configure.ac): Likewise.
26556         * modules/cos (configure.ac): Likewise.
26557         * modules/cosh (configure.ac): Likewise.
26558         * modules/erf (configure.ac): Likewise.
26559         * modules/erfc (configure.ac): Likewise.
26560         * modules/exp (configure.ac): Likewise.
26561         * modules/fabs (configure.ac): Likewise.
26562         * modules/fmod (configure.ac): Likewise.
26563         * modules/hypot (configure.ac): Likewise.
26564         * modules/j0 (configure.ac): Likewise.
26565         * modules/j1 (configure.ac): Likewise.
26566         * modules/jn (configure.ac): Likewise.
26567         * modules/ldexp (configure.ac): Likewise.
26568         * modules/lgamma (configure.ac): Likewise.
26569         * modules/log (configure.ac): Likewise.
26570         * modules/log10 (configure.ac): Likewise.
26571         * modules/log1p (configure.ac): Likewise.
26572         * modules/logb (configure.ac): Likewise.
26573         * modules/modf (configure.ac): Likewise.
26574         * modules/nextafter (configure.ac): Likewise.
26575         * modules/pow (configure.ac): Likewise.
26576         * modules/remainder (configure.ac): Likewise.
26577         * modules/rint (configure.ac): Likewise.
26578         * modules/sin (configure.ac): Likewise.
26579         * modules/sinh (configure.ac): Likewise.
26580         * modules/tan (configure.ac): Likewise.
26581         * modules/tanh (configure.ac): Likewise.
26582         * modules/y0 (configure.ac): Likewise.
26583         * modules/y1 (configure.ac): Likewise.
26584         * modules/yn (configure.ac): Likewise.
26585
26586 2010-01-24  Bruno Haible  <bruno@clisp.org>
26587
26588         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26589         * tests/test-acosl.c (x): New variable.
26590         (main): Store argument in x and fetch it from x.
26591         * tests/test-asinl.c (x): New variable.
26592         (main): Store argument in x and fetch it from x.
26593         * tests/test-atanl.c (x): New variable.
26594         (main): Store argument in x and fetch it from x.
26595         * tests/test-cosl.c (x): New variable.
26596         (main): Store argument in x and fetch it from x.
26597         * tests/test-expl.c (x): New variable.
26598         (main): Store argument in x and fetch it from x.
26599         * tests/test-logl.c (x): New variable.
26600         (main): Store argument in x and fetch it from x.
26601         * tests/test-sinl.c (x): New variable.
26602         (main): Store argument in x and fetch it from x.
26603         * tests/test-sqrtl.c (x): New variable.
26604         (main): Store argument in x and fetch it from x.
26605         * tests/test-tanl.c (x): New variable.
26606         (main): Store argument in x and fetch it from x.
26607
26608 2010-01-24  Bruno Haible  <bruno@clisp.org>
26609
26610         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26611         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26612         assignments to the initial TESTS_ENVIRONMENT.
26613         * doc/gnulib.texi (Unit test modules): Document it.
26614         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26615         TESTS_ENVIRONMENT.
26616         * modules/btowc-tests (Makefile.am): Likewise.
26617         * modules/c-stack-tests (Makefile.am): Likewise.
26618         * modules/c-strcase-tests (Makefile.am): Likewise.
26619         * modules/copy-file-tests (Makefile.am): Likewise.
26620         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26621         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26622         * modules/mbrtowc-tests (Makefile.am): Likewise.
26623         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26624         * modules/mbscasestr-tests (Makefile.am): Likewise.
26625         * modules/mbschr-tests (Makefile.am): Likewise.
26626         * modules/mbscspn-tests (Makefile.am): Likewise.
26627         * modules/mbsinit-tests (Makefile.am): Likewise.
26628         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26629         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26630         * modules/mbspbrk-tests (Makefile.am): Likewise.
26631         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26632         * modules/mbsrchr-tests (Makefile.am): Likewise.
26633         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26634         * modules/mbsspn-tests (Makefile.am): Likewise.
26635         * modules/mbsstr-tests (Makefile.am): Likewise.
26636         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26637         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26638         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26639         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26640         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26641         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26642         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26643         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26644         * modules/wcrtomb-tests (Makefile.am): Likewise.
26645         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26646         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26647         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26648         assignments from TESTS_ENVIRONMENT.
26649         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26650         augmentation.
26651         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26652         * modules/atexit-tests (Makefile.am): Likewise.
26653         * modules/binary-io-tests (Makefile.am): Likewise.
26654         * modules/closein-tests (Makefile.am): Likewise.
26655         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26656         * modules/exclude-tests (Makefile.am): Likewise.
26657         * modules/fflush-tests (Makefile.am): Likewise.
26658         * modules/fpending-tests (Makefile.am): Likewise.
26659         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26660         * modules/freadahead-tests (Makefile.am): Likewise.
26661         * modules/freadptr-tests (Makefile.am): Likewise.
26662         * modules/freadseek-tests (Makefile.am): Likewise.
26663         * modules/fseek-tests (Makefile.am): Likewise.
26664         * modules/fseeko-tests (Makefile.am): Likewise.
26665         * modules/ftell-tests (Makefile.am): Likewise.
26666         * modules/ftello-tests (Makefile.am): Likewise.
26667         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26668         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26669         * modules/lseek-tests (Makefile.am): Likewise.
26670         * modules/parse-duration-tests (Makefile.am): Likewise.
26671         * modules/perror-tests (Makefile.am): Likewise.
26672         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26673         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26674         * modules/pipe-tests (Makefile.am): Likewise.
26675         * modules/pread-tests (Makefile.am): Likewise.
26676         * modules/printf-posix-tests (Makefile.am): Likewise.
26677         * modules/select-tests (Makefile.am): Likewise.
26678         * modules/sigpipe-tests (Makefile.am): Likewise.
26679         * modules/tsearch-tests (Makefile.am): Likewise.
26680         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26681         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26682         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26683         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26684         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26685         * modules/version-etc-tests (Makefile.am): Likewise.
26686         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26687         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26688         * modules/xalloc-die-tests (Makefile.am): Likewise.
26689         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26690         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26691         * modules/xstrtol-tests (Makefile.am): Likewise.
26692         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26693         * modules/yesno-tests (Makefile.am): Likewise.
26694         Suggested by Jim Meyering.
26695
26696 2010-01-24  Bruno Haible  <bruno@clisp.org>
26697
26698         More documentation.
26699         * doc/gnulib.texi (Writing modules): New chapter.
26700         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26701         the new chapter.
26702
26703 2010-01-24  Jim Meyering  <meyering@redhat.com>
26704
26705         maint.mk: do not prepend "./" after filtering
26706         * top/maint.mk (_prepend_srcdir_prefix): New variable
26707         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26708         "./" when $(srcdir) is ".".
26709
26710         define STREQ(a,b) consistently, removing useless parentheses
26711         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26712         since the only risk is that "a" or "b" contains an unparenthesized
26713         comma, but if either did that, STREQ would have 3 or more arguments.
26714         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26715         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26716         * lib/hash-triple.c (STREQ): Likewise.
26717         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26718         * lib/getugroups.c (STREQ): Likewise.
26719
26720 2010-01-23  Jim Meyering  <meyering@redhat.com>
26721
26722         maint.mk: fix syntax-check in a non-srcdir build directory
26723         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26724         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26725
26726 2010-01-22  Jim Meyering  <meyering@redhat.com>
26727
26728         userspec: add unit tests
26729         * tests/test-userspec.c: New file.
26730         * modules/userspec-tests: Likewise.
26731
26732 2010-01-21  Jim Meyering  <meyering@redhat.com>
26733
26734         maint.mk: handle source file names containing "." robustly
26735         * top/maint.mk (_dot_escaped_srcdir): Define.
26736         (VC_LIST): Use it in LHS of sed substitution.
26737
26738 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26739
26740         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26741         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26742         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26743         from a non-srcdir build.
26744
26745 2010-01-20  Eric Blake  <ebb9@byu.net>
26746
26747         warn-on-use: use instead of link-warning
26748         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26749         * modules/unistd (Depends-on, Makefile.am): Likewise.
26750         * modules/arpa_inet (Depends-on): Replace link-warning with
26751         warn-on-use.
26752         (Makefile.am): Update rules accordingly.
26753         * modules/ctype (Depends-on, Makefile.am): Likewise.
26754         * modules/dirent (Depends-on, Makefile.am): Likewise.
26755         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26756         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26757         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26758         * modules/locale (Depends-on, Makefile.am): Likewise.
26759         * modules/math (Depends-on, Makefile.am): Likewise.
26760         * modules/search (Depends-on, Makefile.am): Likewise.
26761         * modules/signal (Depends-on, Makefile.am): Likewise.
26762         * modules/spawn (Depends-on, Makefile.am): Likewise.
26763         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26764         * modules/string (Depends-on, Makefile.am): Likewise.
26765         * modules/strings (Depends-on, Makefile.am): Likewise.
26766         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26767         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26768         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26769         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26770         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26771         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26772         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26773         * modules/wchar (Depends-on, Makefile.am): Likewise.
26774         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26775         should be poisoned.
26776         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26777         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26778         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26779         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26780         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26781         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26782         * m4/math_h.m4 (gl_MATH_H): Likewise.
26783         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26784         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26785         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26786         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26787         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26788         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26789         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26790         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26792         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26794         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26795         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26796         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26797         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26798         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26799         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26800         GL_LINK_WARNING.
26801         * lib/ctype.in.h: Likewise.
26802         * lib/dirent.in.h: Likewise.
26803         * lib/fcntl.in.h: Likewise.
26804         * lib/inttypes.in.h: Likewise.
26805         * lib/langinfo.in.h: Likewise.
26806         * lib/locale.in.h: Likewise.
26807         * lib/math.in.h: Likewise.
26808         * lib/search.in.h: Likewise.
26809         * lib/signal.in.h: Likewise.
26810         * lib/spawn.in.h: Likewise.
26811         * lib/stdio.in.h: Likewise.
26812         * lib/stdlib.in.h: Likewise.
26813         * lib/string.in.h: Likewise.
26814         * lib/strings.in.h: Likewise.
26815         * lib/sys_file.in.h: Likewise.
26816         * lib/sys_ioctl.in.h: Likewise.
26817         * lib/sys_select.in.h: Likewise.
26818         * lib/sys_socket.in.h: Likewise.
26819         * lib/sys_stat.in.h: Likewise.
26820         * lib/sys_times.in.h: Likewise.
26821         * lib/sys_utsname.in.h: Likewise.
26822         * lib/unistd.in.h: Likewise.
26823         * lib/wchar.in.h: Likewise.
26824
26825 2010-01-20  Bruno Haible  <bruno@clisp.org>
26826
26827         Avoid duplicate -lm.
26828         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26829         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26830         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26831         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26832         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26833         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26834         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26835         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26836         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26837         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26838         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26839         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26840         Reported by Paolo Bonzini.
26841
26842 2010-01-19  Bruno Haible  <bruno@clisp.org>
26843
26844         langinfo, nl_langinfo: Relicense under LGPLv2+.
26845         * modules/langinfo (License): Change to LGPLv2+.
26846         * modules/nl_langinfo (License): Likewise.
26847         Patch by David Lutterkort <lutter@redhat.com>.
26848
26849 2010-01-19  Bruno Haible  <bruno@clisp.org>
26850
26851         Avoid compilation error with cc on OSF/1 5.1.
26852         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26853         statement, not before.
26854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26855
26856 2010-01-18  Bruno Haible  <bruno@clisp.org>
26857
26858         Avoid a link error due to the __printf__ symbol.
26859         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26860         and 2.6.x.
26861         (__format__, __printf__): Remove definitions.
26862         * lib/argp-fmtstream.h: Likewise.
26863         * lib/argp.h: Likewise.
26864         * lib/error.h: Likewise.
26865         * lib/vasnprintf.h: Likewise.
26866         * lib/xprintf.h: Likewise.
26867         * lib/xvasprintf.h: Likewise.
26868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26869
26870 2010-01-18  Bruno Haible  <bruno@clisp.org>
26871
26872         Tests for module 'tanl'.
26873         * modules/tanl-tests: New file.
26874         * tests/test-tanl.c: New file.
26875
26876         Tests for module 'sqrtl'.
26877         * modules/sqrtl-tests: New file.
26878         * tests/test-sqrtl.c: New file.
26879
26880         Tests for module 'sinl'.
26881         * modules/sinl-tests: New file.
26882         * tests/test-sinl.c: New file.
26883
26884         Tests for module 'logl'.
26885         * modules/logl-tests: New file.
26886         * tests/test-logl.c: New file.
26887
26888         Tests for module 'expl'.
26889         * modules/expl-tests: New file.
26890         * tests/test-expl.c: New file.
26891
26892         Tests for module 'cosl'.
26893         * modules/cosl-tests: New file.
26894         * tests/test-cosl.c: New file.
26895
26896         Tests for module 'atanl'.
26897         * modules/atanl-tests: New file.
26898         * tests/test-atanl.c: New file.
26899
26900         Tests for module 'asinl'.
26901         * modules/asinl-tests: New file.
26902         * tests/test-asinl.c: New file.
26903
26904         Tests for module 'acosl'.
26905         * modules/acosl-tests: New file.
26906         * tests/test-acosl.c: New file.
26907
26908         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26909         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26910         tanl): Use the standard gnulib idiom.
26911         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26912         * lib/sinl.c: Likewise.
26913         * lib/tanl.c: Don't include trigl.c.
26914         (kernel_tanl): Make static.
26915         * lib/sincosl.c: Include trigl.h first.
26916         * lib/trigl.c: Likewise.
26917         * m4/acosl.m4: New file.
26918         * m4/asinl.m4: New file.
26919         * m4/atanl.m4: New file.
26920         * m4/cosl.m4: New file.
26921         * m4/expl.m4: New file.
26922         * m4/logl.m4: New file.
26923         * m4/sinl.m4: New file.
26924         * m4/sqrtl.m4: New file.
26925         * m4/tanl.m4: New file.
26926         * m4/mathl.m4: Remove file.
26927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26928         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26929         Don't initialize GNULIB_MATHL.
26930         * modules/acosl: New file.
26931         * modules/asinl: New file.
26932         * modules/atanl: New file.
26933         * modules/cosl: New file.
26934         * modules/expl: New file.
26935         * modules/logl: New file.
26936         * modules/sinl: New file.
26937         * modules/sqrtl: New file.
26938         * modules/tanl: New file.
26939         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26940         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26941         substitute GNULIB_MATHL.
26942         * modules/mathl: Rewritten.
26943         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26944         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26945         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26946         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26947         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26948         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26949         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26950         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26951         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26952
26953 2010-01-18  Bruno Haible  <bruno@clisp.org>
26954
26955         sqrt: Make gl_FUNC_SQRT requirable.
26956         * m4/sqrt.m4: New file.
26957         * modules/sqrt (Files): Add it.
26958         (configure.ac): Invoke gl_FUNC_SQRT.
26959
26960 2010-01-18  Bruno Haible  <bruno@clisp.org>
26961
26962         New modules for common <math.h> functions.
26963         * m4/mathfunc.m4: New file.
26964         * modules/acos: New file.
26965         * modules/asin: New file.
26966         * modules/atan: New file.
26967         * modules/atan2: New file.
26968         * modules/cbrt: New file.
26969         * modules/copysign: New file.
26970         * modules/cos: New file.
26971         * modules/cosh: New file.
26972         * modules/erf: New file.
26973         * modules/erfc: New file.
26974         * modules/exp: New file.
26975         * modules/fabs: New file.
26976         * modules/fmod: New file.
26977         * modules/hypot: New file.
26978         * modules/j0: New file.
26979         * modules/j1: New file.
26980         * modules/jn: New file.
26981         * modules/ldexp: New file.
26982         * modules/lgamma: New file.
26983         * modules/log: New file.
26984         * modules/log10: New file.
26985         * modules/log1p: New file.
26986         * modules/logb: New file.
26987         * modules/modf: New file.
26988         * modules/nextafter: New file.
26989         * modules/pow: New file.
26990         * modules/remainder: New file.
26991         * modules/rint: New file.
26992         * modules/sin: New file.
26993         * modules/sinh: New file.
26994         * modules/sqrt: New file.
26995         * modules/tan: New file.
26996         * modules/tanh: New file.
26997         * modules/y0: New file.
26998         * modules/y1: New file.
26999         * modules/yn: New file.
27000         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27001         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27002         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27003         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27004         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27005         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27006         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27007         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27008         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27009         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27010         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27011         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27012         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27013         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27014         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27015         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27016         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27017         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27018         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27019         * doc/posix-functions/log.texi: Mention the 'log' module.
27020         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27021         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27022         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27023         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27024         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27025         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27026         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27027         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27028         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27029         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27030         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27031         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27032         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27033         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27034         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27035         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27036
27037 2010-01-18  Jim Meyering  <meyering@redhat.com>
27038
27039         ignore-value: relax license to LGPLv2+
27040         * modules/ignore-value (License): Relax to LGPLv2+.
27041
27042         getdate: don't leak when TZ contains two or more '"'s
27043         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27044         double quote in TZ after the first one.
27045
27046         readtokens: do not leak internal token_lengths buffer
27047         * lib/readtokens.c (readtokens): Free the local, lengths,
27048         when the supplied "token_lengths" parameter is NULL.
27049
27050 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27051
27052         Fix a couple of missing LIBTHREAD link failures on AIX.
27053         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27054         $(LIBTHREAD).
27055         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27056
27057         Link test-poll against INET_PTON_LIB.
27058         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27059         for inet_pton on Solaris 10.
27060
27061 2010-01-17  Bruno Haible  <bruno@clisp.org>
27062
27063         unistdio/*-sprintf: Fix typo in module description.
27064         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27065         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27066         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27067         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27068         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27069         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27070         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27072
27073 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27074
27075         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27076         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27077         variables in shell case patterns, for AIX and HP-UX ksh.
27078
27079         Split large sed scripts, for HP-UX sed.
27080         * modules/stdio: Split sed scripts around 50 sed commands,
27081         to avoid HP-UX limit of 99 commands, in the near future.
27082         * modules/string: Likewise.
27083         * modules/unistd: Likewise.
27084
27085         gnulib-tool: avoid writing in the current directory.
27086         * gnulib-tool (func_emit_lib_Makefile_am)
27087         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27088         not in the current directory, so concurrent gnulib-tool
27089         instances do not interfere.
27090
27091 2010-01-16  Jim Meyering  <meyering@redhat.com>
27092
27093         doc: update users.txt
27094         * users.txt: Add grep.
27095         (diffutils, gzip): Update URLs.
27096
27097 2010-01-12  Bruno Haible  <bruno@clisp.org>
27098
27099         posix_spawn: Avoid test failure on Cygwin.
27100         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27101         characters.
27102         Reported by Simon Josefsson.
27103
27104 2010-01-12  Bruno Haible  <bruno@clisp.org>
27105
27106         * tests/test-cond.c (main): When skipping the test, show the reason.
27107
27108 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27109
27110         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27111
27112 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27113
27114         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27115         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27116
27117 2010-01-12  Eric Blake  <ebb9@byu.net>
27118
27119         build: guarantee AS_VAR_IF
27120         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27121         (gl_AS_VAR_IF): Move...
27122         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27123         Reported by Simon Josefsson.
27124
27125 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27126
27127         * lib/stdio.in.h: Fix typo.
27128
27129 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27130
27131         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27132         libgpg-error.
27133
27134 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27135
27136         * tests/test-xalloc-die.sh: Use $EXEEXT.
27137
27138 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27139             Bruno Haible  <bruno@clisp.org>
27140
27141         getlogin, getlogin_r: Avoid test failure.
27142         * tests/test-getlogin.c: Include <stdio.h>.
27143         (main): Skip the test when the function fails because stdin is not a
27144         tty.
27145         * tests/test-getlogin_r.c: Include <stdio.h>.
27146         (main): Skip the test when the function fails because stdin is not a
27147         tty.
27148
27149 2010-01-11  Eric Blake  <ebb9@byu.net>
27150
27151         tests: avoid more large file warnings
27152         * tests/test-fflush.c: Avoid warning about ftell use.
27153         * tests/test-fseek.c: Avoid warning about fseek use.
27154
27155 2010-01-10  Bruno Haible  <bruno@clisp.org>
27156
27157         nproc: Work better on Linux when /proc and /sys are not mounted.
27158         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27159         as lower bound when, on glibc/Linux systems,
27160         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27161         Suggested by Pádraig Brady <P@draigbrady.com>.
27162         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27163
27164         nproc: Refactor.
27165         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27166         extracted from num_processors.
27167         (num_processors): Call it.
27168
27169 2010-01-11  Jim Meyering  <meyering@redhat.com>
27170
27171         utimecmp: avoid new warning from upcoming gcc-4.5.0
27172         * lib/utimecmp.c (BILLION): Define using #define rather than an
27173         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27174
27175 2010-01-11  Eric Blake  <ebb9@byu.net>
27176
27177         math: add portability warnings for classification macros
27178         * modules/math (Depends-on): Add warn-on-use.
27179         (Makefile.am): Provide new substitutions.
27180         * m4/math_h.m4 (gl_MATH_H): Require inline.
27181         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27182         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27183         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27184         implement warnings.
27185
27186         unistd: warn on use of environ without module
27187         * modules/unistd (Depends-on): Add warn-on-use.
27188         (Makefile.am): Provide new substitutions.
27189         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27190         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27191
27192         stdio: warn on suspicious uses
27193         * modules/stdio (Depends-on): Add warn-on-use.
27194         (Makefile.am): Provide new substitutions.
27195         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27196         fseeko.
27197         * lib/stdio.in.h (gets): Always warn on use.
27198         (fseek, ftell): Adjust when warnings are issued, and honor
27199         _GL_NO_LARGE_FILES as a way to silence the warning.
27200         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27201         any warning about large file offsets.
27202         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27203         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27204         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27205         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27206         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27207         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27208         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27209         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27210
27211         warn-on-use: new module
27212         * modules/warn-on-use: New file.
27213         * build-aux/warn-on-use.h: Likewise.
27214         * m4/warn-on-use.m4: Likewise.
27215         * MODULES.html.sh (Support for building): Mention it.
27216
27217 2010-01-10  Bruno Haible  <bruno@clisp.org>
27218
27219         Tests for module 'unistr/u32-strdup'.
27220         * modules/unistr/u32-strdup-tests: New file.
27221         * tests/unistr/test-u32-strdup.c: New file.
27222
27223         Tests for module 'unistr/u16-strdup'.
27224         * modules/unistr/u16-strdup-tests: New file.
27225         * tests/unistr/test-u16-strdup.c: New file.
27226
27227         Tests for module 'unistr/u8-strdup'.
27228         * modules/unistr/u8-strdup-tests: New file.
27229         * tests/unistr/test-u8-strdup.c: New file.
27230         * tests/unistr/test-strdup.h: New file.
27231
27232         Tests for module 'unistr/u32-strncmp'.
27233         * modules/unistr/u32-strncmp-tests: New file.
27234         * tests/unistr/test-u32-strncmp.c: New file.
27235
27236         Tests for module 'unistr/u16-strncmp'.
27237         * modules/unistr/u16-strncmp-tests: New file.
27238         * tests/unistr/test-u16-strncmp.c: New file.
27239
27240         Tests for module 'unistr/u8-strncmp'.
27241         * modules/unistr/u8-strncmp-tests: New file.
27242         * tests/unistr/test-u8-strncmp.c: New file.
27243         * tests/unistr/test-strncmp.h: New file.
27244
27245         Tests for module 'unistr/u32-strcoll'.
27246         * modules/unistr/u32-strcoll-tests: New file.
27247         * tests/unistr/test-u32-strcoll.c: New file.
27248
27249         Tests for module 'unistr/u16-strcoll'.
27250         * modules/unistr/u16-strcoll-tests: New file.
27251         * tests/unistr/test-u16-strcoll.c: New file.
27252
27253         Tests for module 'unistr/u8-strcoll'.
27254         * modules/unistr/u8-strcoll-tests: New file.
27255         * tests/unistr/test-u8-strcoll.c: New file.
27256
27257         Tests for module 'unistr/u32-strcmp'.
27258         * modules/unistr/u32-strcmp-tests: New file.
27259         * tests/unistr/test-u32-strcmp.c: New file.
27260         * tests/unistr/test-u32-strcmp.h: New file.
27261
27262         Tests for module 'unistr/u16-strcmp'.
27263         * modules/unistr/u16-strcmp-tests: New file.
27264         * tests/unistr/test-u16-strcmp.c: New file.
27265         * tests/unistr/test-u16-strcmp.h: New file.
27266
27267         Tests for module 'unistr/u8-strcmp'.
27268         * modules/unistr/u8-strcmp-tests: New file.
27269         * tests/unistr/test-u8-strcmp.c: New file.
27270         * tests/unistr/test-u8-strcmp.h: New file.
27271         * tests/unistr/test-strcmp.h: New file.
27272
27273         Tests for module 'unistr/u32-strncat'.
27274         * modules/unistr/u32-strncat-tests: New file.
27275         * tests/unistr/test-u32-strncat.c: New file.
27276
27277         Tests for module 'unistr/u16-strncat'.
27278         * modules/unistr/u16-strncat-tests: New file.
27279         * tests/unistr/test-u16-strncat.c: New file.
27280
27281         Tests for module 'unistr/u8-strncat'.
27282         * modules/unistr/u8-strncat-tests: New file.
27283         * tests/unistr/test-u8-strncat.c: New file.
27284         * tests/unistr/test-strncat.h: New file.
27285
27286         Tests for module 'unistr/u32-strcat'.
27287         * modules/unistr/u32-strcat-tests: New file.
27288         * tests/unistr/test-u32-strcat.c: New file.
27289
27290         Tests for module 'unistr/u16-strcat'.
27291         * modules/unistr/u16-strcat-tests: New file.
27292         * tests/unistr/test-u16-strcat.c: New file.
27293
27294         Tests for module 'unistr/u8-strcat'.
27295         * modules/unistr/u8-strcat-tests: New file.
27296         * tests/unistr/test-u8-strcat.c: New file.
27297         * tests/unistr/test-strcat.h: New file.
27298
27299         Tests for module 'unistr/u32-stpncpy'.
27300         * modules/unistr/u32-stpncpy-tests: New file.
27301         * tests/unistr/test-u32-stpncpy.c: New file.
27302
27303         Tests for module 'unistr/u16-stpncpy'.
27304         * modules/unistr/u16-stpncpy-tests: New file.
27305         * tests/unistr/test-u16-stpncpy.c: New file.
27306
27307         Tests for module 'unistr/u8-stpncpy'.
27308         * modules/unistr/u8-stpncpy-tests: New file.
27309         * tests/unistr/test-u8-stpncpy.c: New file.
27310         * tests/unistr/test-stpncpy.h: New file.
27311
27312         Tests for module 'unistr/u32-strncpy'.
27313         * modules/unistr/u32-strncpy-tests: New file.
27314         * tests/unistr/test-u32-strncpy.c: New file.
27315
27316         Tests for module 'unistr/u16-strncpy'.
27317         * modules/unistr/u16-strncpy-tests: New file.
27318         * tests/unistr/test-u16-strncpy.c: New file.
27319
27320         Tests for module 'unistr/u8-strncpy'.
27321         * modules/unistr/u8-strncpy-tests: New file.
27322         * tests/unistr/test-u8-strncpy.c: New file.
27323         * tests/unistr/test-strncpy.h: New file.
27324
27325         Tests for module 'unistr/u32-stpcpy'.
27326         * modules/unistr/u32-stpcpy-tests: New file.
27327         * tests/unistr/test-u32-stpcpy.c: New file.
27328
27329         Tests for module 'unistr/u16-stpcpy'.
27330         * modules/unistr/u16-stpcpy-tests: New file.
27331         * tests/unistr/test-u16-stpcpy.c: New file.
27332
27333         Tests for module 'unistr/u8-stpcpy'.
27334         * modules/unistr/u8-stpcpy-tests: New file.
27335         * tests/unistr/test-u8-stpcpy.c: New file.
27336         * tests/unistr/test-stpcpy.h: New file.
27337
27338         Tests for module 'unistr/u32-strcpy'.
27339         * modules/unistr/u32-strcpy-tests: New file.
27340         * tests/unistr/test-u32-strcpy.c: New file.
27341
27342         Tests for module 'unistr/u16-strcpy'.
27343         * modules/unistr/u16-strcpy-tests: New file.
27344         * tests/unistr/test-u16-strcpy.c: New file.
27345
27346         Tests for module 'unistr/u8-strcpy'.
27347         * modules/unistr/u8-strcpy-tests: New file.
27348         * tests/unistr/test-u8-strcpy.c: New file.
27349         * tests/unistr/test-strcpy.h: New file.
27350
27351         Tests for module 'unistr/u32-strnlen'.
27352         * modules/unistr/u32-strnlen-tests: New file.
27353         * tests/unistr/test-u32-strnlen.c: New file.
27354
27355         Tests for module 'unistr/u16-strnlen'.
27356         * modules/unistr/u16-strnlen-tests: New file.
27357         * tests/unistr/test-u16-strnlen.c: New file.
27358
27359         Tests for module 'unistr/u8-strnlen'.
27360         * modules/unistr/u8-strnlen-tests: New file.
27361         * tests/unistr/test-u8-strnlen.c: New file.
27362         * tests/unistr/test-strnlen.h: New file.
27363
27364         Tests for module 'unistr/u32-strlen'.
27365         * modules/unistr/u32-strlen-tests: New file.
27366         * tests/unistr/test-u32-strlen.c: New file.
27367
27368         Tests for module 'unistr/u16-strlen'.
27369         * modules/unistr/u16-strlen-tests: New file.
27370         * tests/unistr/test-u16-strlen.c: New file.
27371
27372         Tests for module 'unistr/u8-strlen'.
27373         * modules/unistr/u8-strlen-tests: New file.
27374         * tests/unistr/test-u8-strlen.c: New file.
27375
27376         Tests for module 'unistr/u32-prev'.
27377         * modules/unistr/u32-prev-tests: New file.
27378         * tests/unistr/test-u32-prev.c: New file.
27379
27380         Tests for module 'unistr/u16-prev'.
27381         * modules/unistr/u16-prev-tests: New file.
27382         * tests/unistr/test-u16-prev.c: New file.
27383
27384         Tests for module 'unistr/u8-prev'.
27385         * modules/unistr/u8-prev-tests: New file.
27386         * tests/unistr/test-u8-prev.c: New file.
27387
27388         Tests for module 'unistr/u32-next'.
27389         * modules/unistr/u32-next-tests: New file.
27390         * tests/unistr/test-u32-next.c: New file.
27391
27392         Tests for module 'unistr/u16-next'.
27393         * modules/unistr/u16-next-tests: New file.
27394         * tests/unistr/test-u16-next.c: New file.
27395
27396         Tests for module 'unistr/u8-next'.
27397         * modules/unistr/u8-next-tests: New file.
27398         * tests/unistr/test-u8-next.c: New file.
27399
27400         Tests for module 'unistr/u32-strmbtouc'.
27401         * modules/unistr/u32-strmbtouc-tests: New file.
27402         * tests/unistr/test-u32-strmbtouc.c: New file.
27403
27404         Tests for module 'unistr/u16-strmbtouc'.
27405         * modules/unistr/u16-strmbtouc-tests: New file.
27406         * tests/unistr/test-u16-strmbtouc.c: New file.
27407
27408         Tests for module 'unistr/u8-strmbtouc'.
27409         * modules/unistr/u8-strmbtouc-tests: New file.
27410         * tests/unistr/test-u8-strmbtouc.c: New file.
27411
27412         Tests for module 'unistr/u32-strmblen'.
27413         * modules/unistr/u32-strmblen-tests: New file.
27414         * tests/unistr/test-u32-strmblen.c: New file.
27415
27416         Tests for module 'unistr/u16-strmblen'.
27417         * modules/unistr/u16-strmblen-tests: New file.
27418         * tests/unistr/test-u16-strmblen.c: New file.
27419
27420         Tests for module 'unistr/u8-strmblen'.
27421         * modules/unistr/u8-strmblen-tests: New file.
27422         * tests/unistr/test-u8-strmblen.c: New file.
27423
27424         Tests for module 'unistr/u32-cpy-alloc'.
27425         * modules/unistr/u32-cpy-alloc-tests: New file.
27426         * tests/unistr/test-u32-cpy-alloc.c: New file.
27427
27428         Tests for module 'unistr/u16-cpy-alloc'.
27429         * modules/unistr/u16-cpy-alloc-tests: New file.
27430         * tests/unistr/test-u16-cpy-alloc.c: New file.
27431
27432         Tests for module 'unistr/u8-cpy-alloc'.
27433         * modules/unistr/u8-cpy-alloc-tests: New file.
27434         * tests/unistr/test-u8-cpy-alloc.c: New file.
27435         * tests/unistr/test-cpy-alloc.h: New file.
27436
27437         Tests for module 'unistr/u32-mbsnlen'.
27438         * modules/unistr/u32-mbsnlen-tests: New file.
27439         * tests/unistr/test-u32-mbsnlen.c: New file.
27440
27441         Tests for module 'unistr/u16-mbsnlen'.
27442         * modules/unistr/u16-mbsnlen-tests: New file.
27443         * tests/unistr/test-u16-mbsnlen.c: New file.
27444
27445         Tests for module 'unistr/u8-mbsnlen'.
27446         * modules/unistr/u8-mbsnlen-tests: New file.
27447         * tests/unistr/test-u8-mbsnlen.c: New file.
27448
27449         Tests for module 'unistr/u32-chr'.
27450         * modules/unistr/u32-chr-tests: New file.
27451         * tests/unistr/test-u32-chr.c: New file.
27452
27453         Tests for module 'unistr/u16-chr'.
27454         * modules/unistr/u16-chr-tests: New file.
27455         * tests/unistr/test-u16-chr.c: New file.
27456
27457         Tests for module 'unistr/u8-chr'.
27458         * modules/unistr/u8-chr-tests: New file.
27459         * tests/unistr/test-u8-chr.c: New file.
27460         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27461
27462         Tests for module 'unistr/u32-cmp2'.
27463         * modules/unistr/u32-cmp2-tests: New file.
27464         * tests/unistr/test-u32-cmp2.c: New file.
27465
27466         Tests for module 'unistr/u16-cmp2'.
27467         * modules/unistr/u16-cmp2-tests: New file.
27468         * tests/unistr/test-u16-cmp2.c: New file.
27469
27470         Tests for module 'unistr/u8-cmp2'.
27471         * modules/unistr/u8-cmp2-tests: New file.
27472         * tests/unistr/test-u8-cmp2.c: New file.
27473         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27474
27475         Tests for module 'unistr/u32-cmp'.
27476         * modules/unistr/u32-cmp-tests: New file.
27477         * tests/unistr/test-u32-cmp.c: New file.
27478
27479         Tests for module 'unistr/u16-cmp'.
27480         * modules/unistr/u16-cmp-tests: New file.
27481         * tests/unistr/test-u16-cmp.c: New file.
27482
27483         Tests for module 'unistr/u8-cmp'.
27484         * modules/unistr/u8-cmp-tests: New file.
27485         * tests/unistr/test-u8-cmp.c: New file.
27486         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27487
27488         Tests for module 'unistr/u32-set'.
27489         * modules/unistr/u32-set-tests: New file.
27490         * tests/unistr/test-u32-set.c: New file.
27491
27492         Tests for module 'unistr/u16-set'.
27493         * modules/unistr/u16-set-tests: New file.
27494         * tests/unistr/test-u16-set.c: New file.
27495
27496         Tests for module 'unistr/u8-set'.
27497         * modules/unistr/u8-set-tests: New file.
27498         * tests/unistr/test-u8-set.c: New file.
27499         * tests/unistr/test-set.h: New file.
27500
27501         Tests for module 'unistr/u32-move'.
27502         * modules/unistr/u32-move-tests: New file.
27503         * tests/unistr/test-u32-move.c: New file.
27504
27505         Tests for module 'unistr/u16-move'.
27506         * modules/unistr/u16-move-tests: New file.
27507         * tests/unistr/test-u16-move.c: New file.
27508
27509         Tests for module 'unistr/u8-move'.
27510         * modules/unistr/u8-move-tests: New file.
27511         * tests/unistr/test-u8-move.c: New file.
27512         * tests/unistr/test-move.h: New file.
27513
27514         Tests for module 'unistr/u32-cpy'.
27515         * modules/unistr/u32-cpy-tests: New file.
27516         * tests/unistr/test-u32-cpy.c: New file.
27517
27518         Tests for module 'unistr/u16-cpy'.
27519         * modules/unistr/u16-cpy-tests: New file.
27520         * tests/unistr/test-u16-cpy.c: New file.
27521
27522         Tests for module 'unistr/u8-cpy'.
27523         * modules/unistr/u8-cpy-tests: New file.
27524         * tests/unistr/test-u8-cpy.c: New file.
27525         * tests/unistr/test-cpy.h: New file.
27526
27527 2010-01-09  Bruno Haible  <bruno@clisp.org>
27528
27529         Tests for module 'unistr/u32-uctomb'.
27530         * modules/unistr/u32-uctomb-tests: New file.
27531         * tests/unistr/test-u32-uctomb.c: New file.
27532
27533         Tests for module 'unistr/u16-uctomb'.
27534         * modules/unistr/u16-uctomb-tests: New file.
27535         * tests/unistr/test-u16-uctomb.c: New file.
27536
27537         Tests for module 'unistr/u8-uctomb'.
27538         * modules/unistr/u8-uctomb-tests: New file.
27539         * tests/unistr/test-u8-uctomb.c: New file.
27540
27541         Tests for module 'unistr/u32-mbtoucr'.
27542         * modules/unistr/u32-mbtoucr-tests: New file.
27543         * tests/unistr/test-u32-mbtoucr.c: New file.
27544
27545         Tests for module 'unistr/u16-mbtoucr'.
27546         * modules/unistr/u16-mbtoucr-tests: New file.
27547         * tests/unistr/test-u16-mbtoucr.c: New file.
27548
27549         Tests for module 'unistr/u8-mbtoucr'.
27550         * modules/unistr/u8-mbtoucr-tests: New file.
27551         * tests/unistr/test-u8-mbtoucr.c: New file.
27552
27553         Tests for module 'unistr/u32-mbtouc'.
27554         * modules/unistr/u32-mbtouc-tests: New file.
27555         * tests/unistr/test-u32-mbtouc.c: New file.
27556
27557         Tests for module 'unistr/u16-mbtouc'.
27558         * modules/unistr/u16-mbtouc-tests: New file.
27559         * tests/unistr/test-u16-mbtouc.c: New file.
27560
27561         Tests for module 'unistr/u8-mbtouc'.
27562         * modules/unistr/u8-mbtouc-tests: New file.
27563         * tests/unistr/test-u8-mbtouc.c: New file.
27564
27565         Tests for module 'unistr/u32-mbtouc-unsafe'.
27566         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27567         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27568         * tests/unistr/test-u32-mbtouc.h: New file.
27569
27570         Tests for module 'unistr/u16-mbtouc-unsafe'.
27571         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27572         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27573         * tests/unistr/test-u16-mbtouc.h: New file.
27574
27575         Tests for module 'unistr/u8-mbtouc-unsafe'.
27576         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27577         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27578         * tests/unistr/test-u8-mbtouc.h: New file.
27579
27580         Tests for module 'unistr/u32-mblen'.
27581         * modules/unistr/u32-mblen-tests: New file.
27582         * tests/unistr/test-u32-mblen.c: New file.
27583
27584         Tests for module 'unistr/u16-mblen'.
27585         * modules/unistr/u16-mblen-tests: New file.
27586         * tests/unistr/test-u16-mblen.c: New file.
27587
27588         Tests for module 'unistr/u8-mblen'.
27589         * modules/unistr/u8-mblen-tests: New file.
27590         * tests/unistr/test-u8-mblen.c: New file.
27591
27592         Tests for module 'unistr/u32-to-u16'.
27593         * modules/unistr/u32-to-u16-tests: New file.
27594         * tests/unistr/test-u32-to-u16.c: New file.
27595
27596         Tests for module 'unistr/u32-to-u8'.
27597         * modules/unistr/u32-to-u8-tests: New file.
27598         * tests/unistr/test-u32-to-u8.c: New file.
27599
27600         Tests for module 'unistr/u16-to-u32'.
27601         * modules/unistr/u16-to-u32-tests: New file.
27602         * tests/unistr/test-u16-to-u32.c: New file.
27603
27604         Tests for module 'unistr/u16-to-u8'.
27605         * modules/unistr/u16-to-u8-tests: New file.
27606         * tests/unistr/test-u16-to-u8.c: New file.
27607
27608         Tests for module 'unistr/u8-to-u32'.
27609         * modules/unistr/u8-to-u32-tests: New file.
27610         * tests/unistr/test-u8-to-u32.c: New file.
27611
27612         Tests for module 'unistr/u8-to-u16'.
27613         * modules/unistr/u8-to-u16-tests: New file.
27614         * tests/unistr/test-u8-to-u16.c: New file.
27615
27616         Tests for module 'unistr/u32-check'.
27617         * modules/unistr/u32-check-tests: New file.
27618         * tests/unistr/test-u32-check.c: New file.
27619
27620         Tests for module 'unistr/u16-check'.
27621         * modules/unistr/u16-check-tests: New file.
27622         * tests/unistr/test-u16-check.c: New file.
27623
27624         Tests for module 'unistr/u8-check'.
27625         * modules/unistr/u8-check-tests: New file.
27626         * tests/unistr/test-u8-check.c: New file.
27627
27628         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27629         (category_equals): New function.
27630         (main): Add more tests.
27631         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27632
27633         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27634
27635 2010-01-10  Bruno Haible  <bruno@clisp.org>
27636
27637         unistr/u*-strcoll: Try harder to distinguish different strings.
27638         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27639         compare s1 and s2 to see if they are different.
27640
27641 2010-01-10  Bruno Haible  <bruno@clisp.org>
27642
27643         unistr/u*-stpncpy: Fix the return value.
27644         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27645         description of the return value consistent with stpncpy in glibc.
27646         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27647         written non-NUL unit.
27648
27649 2010-01-10  Bruno Haible  <bruno@clisp.org>
27650
27651         unistr/u*-next: Add missing dependencies.
27652         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27653         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27654         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27655
27656 2010-01-10  Bruno Haible  <bruno@clisp.org>
27657
27658         unistr/u8-mbsnlen: Fix return value for incomplete character.
27659         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27660         u8_mblen.
27661         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27662         Remove unistr/u8-mblen.
27663         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27664         u16_mblen.
27665         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27666         Remove unistr/u16-mblen.
27667
27668 2010-01-10  Bruno Haible  <bruno@clisp.org>
27669
27670         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27671         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27672         Reported by Brian Gough <bjg@gnu.org> and
27673         Chris Clayton <chris2553@googlemail.com> via
27674         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27675
27676 2010-01-09  Bruno Haible  <bruno@clisp.org>
27677
27678         unistr/u16-to-u32: Reject invalid input.
27679         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27680         u16_mbtouc.
27681         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27682         Remove unistr/u16-mbtouc.
27683
27684         unistr/u16-to-u8: Reject invalid input.
27685         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27686         u16_mbtouc.
27687         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27688         Remove unistr/u16-mbtouc.
27689
27690         unistr/u8-to-u32: Reject invalid input.
27691         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27692         u8_mbtouc.
27693         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27694         Remove unistr/u8-mbtouc.
27695
27696         unistr/u8-to-u16: Reject invalid input.
27697         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27698         u8_mbtouc.
27699         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27700         Remove unistr/u8-mbtouc.
27701
27702 2010-01-09  Bruno Haible  <bruno@clisp.org>
27703
27704         Tests for module 'getlogin'.
27705         * modules/getlogin-tests: New file.
27706         * tests/test-getlogin.c: New file.
27707
27708         New module 'getlogin'.
27709         * lib/unistd.in.h (getlogin): New declaration.
27710         * lib/getlogin.c: New file.
27711         * m4/getlogin.m4: New file.
27712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27713         HAVE_GETLOGIN.
27714         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27715         HAVE_GETLOGIN.
27716         * modules/getlogin: New file.
27717         * doc/posix-functions/getlogin.texi: Mention the new module.
27718         Reported by John W. Eaton <jwe@gnu.org>.
27719
27720 2010-01-09  Bruno Haible  <bruno@clisp.org>
27721
27722         getlogin_r: Support for native Windows.
27723         * lib/getlogin_r.c: Include <windows.h>
27724         (getlogin_r): Implement for native Windows.
27725         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27726         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27727         via John W. Eaton <jwe@gnu.org>.
27728
27729 2010-01-09  Bruno Haible  <bruno@clisp.org>
27730
27731         getlogin_r: Small fixes.
27732         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27733         succeeds.
27734         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27735         before testing whether getlogin_r is declared. No need to set
27736         HAVE_DECL_GETLOGIN_R to 1.
27737         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27738
27739 2010-01-09  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/unistd.in.h (getlogin_r): Add comment.
27742
27743 2010-01-09  Bruno Haible  <bruno@clisp.org>
27744
27745         Tests for module 'getlogin_r'.
27746         * modules/getlogin_r-tests: New file.
27747         * tests/test-getlogin_r.c: New file.
27748
27749 2010-01-09  Jim Meyering  <meyering@redhat.com>
27750
27751         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27752         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27753         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27754
27755 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27756
27757         * lib/dup2.c (rpl_dup2): Improve comment.
27758
27759 2010-01-08  Eric Blake  <ebb9@byu.net>
27760
27761         maint.mk: allow packages to add makefile @@ exceptions
27762         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27763         (sc_makefile_check): Rename...
27764         (sc_makefile_at_at_check): ...to this, and use hook.
27765
27766         dup2: work around mingw bug
27767         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27768         Reported by Simon Josefsson.
27769
27770 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27771
27772         glob: Fix C++ compilation.
27773         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27774         C++.
27775
27776 2010-01-07  Bruno Haible  <bruno@clisp.org>
27777
27778         Fix indentation of wctype.in.h, broken since 2007-01-06.
27779         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27780
27781 2010-01-07  Bruno Haible  <bruno@clisp.org>
27782
27783         mbslen: Avoid collision with system function.
27784         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27785         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27786         * m4/mbslen.m4: New file.
27787         * modules/mbslen (Files): Add it.
27788         (configure.ac): Invoke gl_MBSLEN.
27789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27790         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27791         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27792         via Ian Beckwith <ianb@erislabs.net>.
27793
27794 2010-01-07  Bruno Haible  <bruno@clisp.org>
27795
27796         dirent: Document the last fix.
27797         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27798
27799 2010-01-07  Bruno Haible  <bruno@clisp.org>
27800
27801         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27802         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27803         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27804         va_list are defined.
27805         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27806         Reported by Eric Blake.
27807
27808 2010-01-07  Bruno Haible  <bruno@clisp.org>
27809
27810         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27811         * modules/xlist (Depends-on): Add 'list',
27812         * modules/xoset (Depends-on): Add 'oset'.
27813         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27814
27815 2010-01-07  Bruno Haible  <bruno@clisp.org>
27816
27817         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27818         * doc/posix-functions/strncasecmp.texi: Likewise.
27819
27820 2010-01-07  Bruno Haible  <bruno@clisp.org>
27821
27822         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27823
27824 2010-01-07  John W. Eaton  <jwe@octave.org>
27825
27826         wctype: allow C++ use
27827         * lib/wctype.in.h: Add extern "C" block for C++.
27828
27829 2010-01-06  Eric Blake  <ebb9@byu.net>
27830
27831         maint.mk: detect incorrect GFDL usage
27832         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27833
27834 2010-01-06  Jim Meyering  <meyering@redhat.com>
27835         and Eric Blake  <ebb9@byu.net>
27836
27837         maint.mk: ignore multi-line copyright in NEWS
27838         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27839
27840 2010-01-06  Eric Blake  <ebb9@byu.net>
27841
27842         select: add missing dependency
27843         * modules/select-tests (Depends-on): Move sockets dependency...
27844         * modules/select (Depends-on): ...here.
27845         Reported by Ian Beckwith.
27846
27847         doc: regenerate INSTALL
27848         * doc/INSTALL: Reflect recent autoconf update.
27849         * doc/INSTALL.ISO: Likewise.
27850         * doc/INSTALL.UTF-8: Likewise.
27851
27852         pread: fix compilation on glibc
27853         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27854         Reported by Ralf Wildenhues.
27855
27856         dirent: fix test failure
27857         * lib/dirent.in.h (includes): Guarantee ino_t.
27858         Reported by Ralf Wildenhues.
27859
27860 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27861
27862         linkat, renameat: avoid bad free
27863         * lib/at-func2.c (at_func2): Fix typo.
27864         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27865
27866 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27867
27868         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27869         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27870         to avoid failure of symlink test later.
27871
27872 2010-01-06  Eric Blake  <ebb9@byu.net>
27873
27874         stdio, unistd: guarantee ssize_t
27875         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27876         2008 are exposed when needed.
27877         * lib/stdio.in.h (includes): Likewise.
27878         Reported by Ralf Wildenhues.
27879
27880 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27881
27882         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27883         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27884         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27885
27886 2010-01-06  Jim Meyering  <meyering@redhat.com>
27887
27888         readtokens: this module *does* require xalloc.h
27889         It uses only functions that were omitted by the old syntax-check rule.
27890         * lib/readtokens.c: Include "xalloc.h" once again.
27891         * modules/readtokens (Depends-on): Add xalloc.
27892         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27893
27894 2010-01-05  Eric Blake  <ebb9@byu.net>
27895
27896         maint: support 'make announcement' from a VPATH build
27897         * top/maint.mk (announcement): Look for correct NEWS file.
27898
27899 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27900
27901         utimens (fdutimens): ignore a negative FD, per contract
27902         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27903         when we have a valid file descriptor.  Otherwise, using a brand
27904         new glibc (with just-patched futimens that now fails with EBADF)
27905         would cause this function to fail with ENOSYS.
27906         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27907         See also http://bugzilla.redhat.com/552320.
27908
27909 2010-01-05  Eric Blake  <ebb9@byu.net>
27910
27911         strcase: document what it provides
27912         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27913         gnulib module.
27914         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27915         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27916
27917 2010-01-05  Jim Meyering  <meyering@redhat.com>
27918
27919         maint: remove useless inclusions of "xalloc.h"
27920         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27921         * lib/readtokens.c: Likewise.
27922         * lib/same.c: Likewise.
27923         * modules/getloadavg (Depends-on): Remove xalloc.
27924         * modules/readtokens: Likewise.
27925         * modules/same: Likewise.
27926
27927         maint.mk: include 4 more function names in alloca.h-checking regexp
27928         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27929         regexp.  Before, we would give a false-positive (saying alloca.h
27930         is included unnecessarily) when the only uses involved omitted symbols.
27931
27932         xalloc.h: use consistent formatting
27933         * lib/xalloc.h: Move declarations to start in the first column.
27934
27935 2010-01-05  Eric Blake  <ebb9@byu.net>
27936
27937         mkdir: avoid xalloc
27938         * lib/mkdir.c (includes): Drop unused header.
27939         Reported by John W. Eaton.
27940
27941 2010-01-04  Jim Meyering  <meyering@redhat.com>
27942
27943         nl_langinfo: avoid configure-time syntax error
27944         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27945         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27946         the empty string.  Don't let that provoke a shell syntax error.
27947
27948         regcomp, regexec, fnmatch: avoid array bounds read error
27949         * lib/regcomp.c (build_equiv_class): From glibc:
27950         Use only the low 24 bits of a findidx return value as an index
27951         into the weights array.  Patch by Ulrich Drepper:
27952         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27953         * lib/regexec.c (check_node_accept_bytes): Likewise.
27954         * lib/fnmatch_loop.c (FCT): Likewise.
27955
27956         regcomp: skip collseq lookup when there are no rules
27957         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27958         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27959
27960         regcomp: recognize ill-formed { } expressions
27961         * lib/regcomp.c (parse_dup_op): From glibc:
27962         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27963
27964         regcomp: fix typo in comment
27965         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27966         s/satisfy/satisfies/.
27967
27968         regcomp: sync from glibc: remove dead store
27969         * lib/regcomp.c (duplicate_node_closure): Remove useless
27970         search_duplicated_node call and dead store.
27971
27972         regcomp: sync from glibc; always use nl_langinfo
27973         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27974         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27975         * modules/regex (Depends-on): Add nl_langinfo.
27976
27977 2010-01-04  Eric Blake  <ebb9@byu.net>
27978
27979         fdopendir: fix configure test
27980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27981
27982 2010-01-01  Bruno Haible  <bruno@clisp.org>
27983
27984         wchar: Remove unused configure check.
27985         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27986
27987 2010-01-01  Eric Blake  <ebb9@byu.net>
27988
27989         headers: make check of system header explicit
27990         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27991         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27992         ourselves.
27993         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27995         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27996         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27997         internals.
27998         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27999         missing.
28000         Suggested by Bruno Haible.
28001
28002 2010-01-01  Jim Meyering  <meyering@redhat.com>
28003
28004         ChangeLog: tweak to eliminate unnecessary copyright line
28005         * ChangeLog: Remove a copyright line that was mistakenly updated
28006         by today's update-copyright run.  Reported by Eric Blake.
28007
28008         test-update-copyright: don't let envvar setting cause test failure
28009         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28010
28011 2010-01-01  Bruno Haible  <bruno@clisp.org>
28012
28013         localename: Avoid gcc warning.
28014         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28015         function if it is not used.
28016
28017 2010-01-01  Jim Meyering  <meyering@redhat.com>
28018
28019         update nearly all FSF copyright year lists to include 2010
28020         Use the same procedure as for 2009, outlined in
28021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28022
28023         version-etc: set COPYRIGHT_YEAR to 2010
28024         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28025
28026 2009-12-31  Eric Blake  <ebb9@byu.net>
28027
28028         doc: correct availability of cygwin 1.5.x getopt
28029         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28030         variables.
28031         * doc/posix-functions/opterr.texi (opterr): Likewise.
28032         * doc/posix-functions/optind.texi (optind): Likewise.
28033         * doc/posix-functions/optopt.texi (optopt): Likewise.
28034         * doc/posix-functions/tzname.texi (tzname): Likewise.
28035
28036         openat: update maintainer
28037         * modules/openat (Maintainer): Add myself.
28038
28039         utimens: avoid shadowing warning
28040         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28041         buffers into one, to avoid shadowing, as well as avoiding a
28042         redundant stat.
28043         Reported by Jim Meyering.
28044
28045         test-dup2: avoid compiler warning
28046         * tests/test-dup2.c (is_inheritable): Only define if used.
28047
28048 2010-01-01  Bruno Haible  <bruno@clisp.org>
28049
28050         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28051         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28052         defined, use wctomb instead of wcrtomb.
28053
28054 2010-01-01  Bruno Haible  <bruno@clisp.org>
28055
28056         iconv: Reject native Solaris iconv.
28057         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28058         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28059
28060 2009-12-31  Bruno Haible  <bruno@clisp.org>
28061
28062         * tests/test-signal.c (main): Remove test of 'SIG'.
28063
28064 2009-12-31  Bruno Haible  <bruno@clisp.org>
28065
28066         spawn: Fix incomplete fix.
28067         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28068         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28069         warnings for GNULIB_POSIXCHECK again.
28070         Reported by Eric Blake.
28071
28072 2009-12-31  Bruno Haible  <bruno@clisp.org>
28073
28074         Avoid namespace pollution on glibc systems.
28075         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28076         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28077         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28078         glibc systems.
28079
28080 2009-12-31  Bruno Haible  <bruno@clisp.org>
28081
28082         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28083         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28084         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28085         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28086         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28087         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28088         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28089
28090 2009-12-31  Bruno Haible  <bruno@clisp.org>
28091
28092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28093         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28094         afterwards.
28095
28096 2009-12-31  Bruno Haible  <bruno@clisp.org>
28097
28098         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28099         SYS_UTSNAME_H.
28100
28101 2009-12-31  Bruno Haible  <bruno@clisp.org>
28102
28103         spawn: Fix misapplied patch.
28104         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28105         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28106         warnings for GNULIB_POSIXCHECK.
28107
28108 2009-12-31  Bruno Haible  <bruno@clisp.org>
28109
28110         times: Update after sys_times changed.
28111         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28112         * modules/times (Files): Add it.
28113         (configure.ac): Invoke gl_FUNC_TIMES.
28114
28115 2009-12-31  Bruno Haible  <bruno@clisp.org>
28116
28117         Use AC_C_INLINE where necessary.
28118         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28119         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28121         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28122         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28123         * m4/mbiter.m4 (gl_MBITER): Likewise.
28124         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28125         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28126         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28127         * modules/u64 (configure.ac): Likewise.
28128
28129 2009-12-31  Bruno Haible  <bruno@clisp.org>
28130
28131         Use AC_C_INLINE instead of module 'inline' where possible.
28132         * modules/inline (Description): Clarify purpose.
28133         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28134         * modules/count-one-bits (Depends-on): Remove inline.
28135         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28136         * modules/openat (Depends-on): Remove inline.
28137         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28138         instead of depending on module 'inline'.
28139         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28140         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28141         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28142         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28143         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28144         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28145         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28146         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28147         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28148         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28149         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28150         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28151         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28152         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28153         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28154         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28155         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28156         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28157         Likewise.
28158         * modules/unictype/property-ascii-hex-digit (Depends-on,
28159         configure.ac): Likewise.
28160         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28161         configure.ac): Likewise.
28162         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28163         configure.ac): Likewise.
28164         * modules/unictype/property-bidi-block-separator (Depends-on,
28165         configure.ac): Likewise.
28166         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28167         configure.ac): Likewise.
28168         * modules/unictype/property-bidi-common-separator (Depends-on,
28169         configure.ac): Likewise.
28170         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28171         Likewise.
28172         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28173         configure.ac): Likewise.
28174         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28175         configure.ac): Likewise.
28176         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28177         configure.ac): Likewise.
28178         * modules/unictype/property-bidi-european-digit (Depends-on,
28179         configure.ac): Likewise.
28180         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28181         configure.ac): Likewise.
28182         * modules/unictype/property-bidi-left-to-right (Depends-on,
28183         configure.ac): Likewise.
28184         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28185         configure.ac): Likewise.
28186         * modules/unictype/property-bidi-other-neutral (Depends-on,
28187         configure.ac): Likewise.
28188         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28189         Likewise.
28190         * modules/unictype/property-bidi-segment-separator (Depends-on,
28191         configure.ac): Likewise.
28192         * modules/unictype/property-bidi-whitespace (Depends-on,
28193         configure.ac): Likewise.
28194         * modules/unictype/property-combining (Depends-on, configure.ac):
28195         Likewise.
28196         * modules/unictype/property-composite (Depends-on, configure.ac):
28197         Likewise.
28198         * modules/unictype/property-currency-symbol (Depends-on,
28199         configure.ac): Likewise.
28200         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28201         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28202         Likewise.
28203         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28204         configure.ac): Likewise.
28205         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28206         Likewise.
28207         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28208         Likewise.
28209         * modules/unictype/property-extender (Depends-on, configure.ac):
28210         Likewise.
28211         * modules/unictype/property-format-control (Depends-on, configure.ac):
28212         Likewise.
28213         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28214         Likewise.
28215         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28216         Likewise.
28217         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28218         Likewise.
28219         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28220         Likewise.
28221         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28222         Likewise.
28223         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28224         Likewise.
28225         * modules/unictype/property-id-start (Depends-on, configure.ac):
28226         Likewise.
28227         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28228         Likewise.
28229         * modules/unictype/property-ids-binary-operator (Depends-on,
28230         configure.ac): Likewise.
28231         * modules/unictype/property-ids-trinary-operator (Depends-on,
28232         configure.ac): Likewise.
28233         * modules/unictype/property-ignorable-control (Depends-on,
28234         configure.ac): Likewise.
28235         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28236         Likewise.
28237         * modules/unictype/property-join-control (Depends-on, configure.ac):
28238         Likewise.
28239         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28240         Likewise.
28241         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28242         Likewise.
28243         * modules/unictype/property-logical-order-exception (Depends-on,
28244         configure.ac): Likewise.
28245         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28246         Likewise.
28247         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28248         * modules/unictype/property-non-break (Depends-on, configure.ac):
28249         Likewise.
28250         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28251         Likewise.
28252         * modules/unictype/property-numeric (Depends-on, configure.ac):
28253         Likewise.
28254         * modules/unictype/property-other-alphabetic (Depends-on,
28255         configure.ac): Likewise.
28256         * modules/unictype/property-other-default-ignorable-code-point
28257         (Depends-on, configure.ac): Likewise.
28258         * modules/unictype/property-other-grapheme-extend (Depends-on,
28259         configure.ac): Likewise.
28260         * modules/unictype/property-other-id-continue (Depends-on,
28261         configure.ac): Likewise.
28262         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28263         Likewise.
28264         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28265         Likewise.
28266         * modules/unictype/property-other-math (Depends-on, configure.ac):
28267         Likewise.
28268         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28269         Likewise.
28270         * modules/unictype/property-paired-punctuation (Depends-on,
28271         configure.ac): Likewise.
28272         * modules/unictype/property-paragraph-separator (Depends-on,
28273         configure.ac): Likewise.
28274         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28275         Likewise.
28276         * modules/unictype/property-pattern-white-space (Depends-on,
28277         configure.ac): Likewise.
28278         * modules/unictype/property-private-use (Depends-on, configure.ac):
28279         Likewise.
28280         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28281         Likewise.
28282         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28283         Likewise.
28284         * modules/unictype/property-radical (Depends-on, configure.ac):
28285         Likewise.
28286         * modules/unictype/property-sentence-terminal (Depends-on,
28287         configure.ac): Likewise.
28288         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28289         Likewise.
28290         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28291         * modules/unictype/property-terminal-punctuation (Depends-on,
28292         configure.ac): Likewise.
28293         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28294         Likewise.
28295         * modules/unictype/property-unassigned-code-value (Depends-on,
28296         configure.ac): Likewise.
28297         * modules/unictype/property-unified-ideograph (Depends-on,
28298         configure.ac): Likewise.
28299         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28300         Likewise.
28301         * modules/unictype/property-variation-selector (Depends-on,
28302         configure.ac): Likewise.
28303         * modules/unictype/property-white-space (Depends-on, configure.ac):
28304         Likewise.
28305         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28306         Likewise.
28307         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28308         Likewise.
28309         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28310         Likewise.
28311         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28312         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28313         Likewise.
28314
28315 2009-12-31  Bruno Haible  <bruno@clisp.org>
28316
28317         Remove unnecessary AC_C_INLINE invocation.
28318         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28319         since 2009-08-21.
28320
28321 2009-12-31  Jim Meyering  <meyering@redhat.com>
28322
28323         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28324         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28325         With this change, we can all remove the gpg_key_ID = ... definition
28326         from our respective cfg.mk files.
28327
28328         maint.mk: create announcement template in ~/, not in /tmp
28329         * top/maint.mk (emit_upload_commands): Adjust.
28330         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28331         Remove temporary file, .ci-msg.
28332
28333 2009-12-31  Eric Blake  <ebb9@byu.net>
28334
28335         link-warning: always build headers with link warnings
28336         * modules/arpa_inet (Makefile.am): Always build replacement
28337         header.
28338         * modules/ctype (Makefile.am): Likewise.
28339         * modules/dirent (Makefile.am): Likewise.
28340         * modules/inttypes (Makefile.am): Likewise.
28341         * modules/langinfo (Makefile.am): Likewise.
28342         * modules/locale (Makefile.am): Likewise.
28343         * modules/spawn (Makefile.am): Likewise.
28344         * modules/sys_file (Makefile.am): Likewise.
28345         * modules/sys_ioctl (Makefile.am): Likewise.
28346         * modules/sys_select (Makefile.am): Likewise.
28347         * modules/sys_socket (Makefile.am): Likewise.
28348         * modules/sys_times (Makefile.am): Likewise.
28349         * modules/sys_utsname (Makefile.am): Likewise.
28350         * modules/sys_wait (Makefile.am): Likewise.
28351         * modules/wchar (Makefile.am): Likewise.
28352         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28353         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28354         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28355         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28356         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28357         Likewise.
28358         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28359         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28360         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28361         Likewise.
28362         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28363         Likewise.
28364         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28365         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28366         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28368         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28369         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28370         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28371         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28372         (gl_WCHAR_H_DEFAULTS): Likewise.
28373
28374 2009-12-31  Eric Blake  <ebb9@byu.net>
28375
28376         signal, spawn: use link warnings
28377         * lib/signal.in.h (sigset_t): Make unconditional.
28378         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28379         (sigpending, sigprocmask, sigaction): Add link warnings.
28380         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28381         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28382         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28383         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28384         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28385         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28386         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28387         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28388         (posix_spawn_file_actions_destroy)
28389         (posix_spawn_file_actions_addopen)
28390         (posix_spawn_file_actions_addclose)
28391         (posix_spawn_file_actions_adddup2): Likewise.
28392         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28393         * tests/test-signal.c (main): Enhance test.
28394
28395         spawn: improve wrapper support
28396         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28397         (gl_SPAWN_H_DEFAULTS): New defaults.
28398         * modules/spawn (Makefile.am): Substitute them.
28399         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28400         Only declare if missing or broken.
28401
28402         sys_times, sys_utsname: use include_next
28403         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28404         header.
28405         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28407         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28408         * modules/sys_times (Depends-on): Add include_next.
28409         (Makefile.am): Substitute additional values.
28410         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28411         * lib/sys_times.in.h (includes): Include native header, if
28412         available.
28413         * lib/sys_utsname.in.h (includes): Likewise.
28414         * tests/test-sys_times.c (main): Enhance test.
28415
28416         fdutimensat: revert prior patch
28417         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28418         utimens.h.
28419         Reported by Bruno Haible.
28420
28421 2009-12-30  Eric Blake  <ebb9@byu.net>
28422
28423         sys_wait: drop link-warning dependency
28424         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28425         link-warning efforts.
28426         * lib/sys_wait.in.h: Likewise.
28427
28428         fdutimensat: remove bogus dependency
28429         * modules/fdutimensat (Depends-on): Drop inline.
28430
28431         unistd: fix typo
28432         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28433
28434 2009-12-30  Bruno Haible  <bruno@clisp.org>
28435
28436         Fix compilation error with Solaris cc.
28437         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28438         * lib/unicase/u16-is-invariant.c: Likewise.
28439         * lib/unicase/u32-is-invariant.c: Likewise.
28440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28441
28442 2009-12-30  Bruno Haible  <bruno@clisp.org>
28443
28444         Fix test crash.
28445         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28446         locales.
28447         Reported by Simon Josefsson <simon@josefsson.org>.
28448
28449 2009-12-30  Bruno Haible  <bruno@clisp.org>
28450
28451         Fix compilation error on most platforms.
28452         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28453         Reported by Simon Josefsson <simon@josefsson.org>
28454         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28455
28456 2009-12-30  Eric Blake  <ebb9@byu.net>
28457
28458         futimens, utimensat: work around ntfs-3g bug
28459         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28460         a ctime bug is present, and expand workaround to cover ntfs-3g.
28461         * lib/utimens.c (fdutimens, lutimens): Likewise.
28462         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28463         (validate_timespec): Adjust return value.
28464         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28465         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28466         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28467
28468 2009-12-29  Eric Blake  <ebb9@byu.net>
28469
28470         link-warning: make usage consistent
28471         * modules/ctype (Depends-on): Add link-warning.
28472         (Makefile.am): Update rules accordingly.
28473         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28474         * modules/locale (Depends-on, Makefile.am): Likewise.
28475         * modules/sys_file (Makefile.am): Likewise.
28476         * modules/getopt-posix (Makefile.am): Delete unused link warning
28477         efforts.
28478         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28479         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28480         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28481         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28482
28483         stdio: remove unused variables
28484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28486         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28487
28488         tests: test more substitute headers
28489         * modules/ctype-tests: New file.
28490         * modules/dirent-tests: Likewise.
28491         * modules/spawn-tests: Likewise.
28492         * modules/sys_file-tests: Likewise.
28493         * modules/sys_ioctl-tests: Likewise.
28494         * modules/sys_wait-tests: Likewise.
28495         * tests/test-ctype.c: Likewise.
28496         * tests/test-dirent.c: Likewise.
28497         * tests/test-spawn.c: Likewise.
28498         * tests/test-sys_file.c: Likewise.
28499         * tests/test-sys_ioctl.c: Likewise.
28500         * tests/test-sys_wait.c: Likewise.
28501         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28502         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28503         whether or not flock is in use.
28504
28505         tests: remove License section from module
28506         * modules/arpa_inet-tests: Remove unneeded section.
28507         * modules/byteswap-tests: Likewise.
28508         * modules/ceilf-tests: Likewise.
28509         * modules/ceill-tests: Likewise.
28510         * modules/crypto/des-tests: Likewise.
28511         * modules/crypto/gc-arcfour-tests: Likewise.
28512         * modules/crypto/gc-arctwo-tests: Likewise.
28513         * modules/crypto/gc-des-tests: Likewise.
28514         * modules/crypto/gc-hmac-md5-tests: Likewise.
28515         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28516         * modules/crypto/gc-md2-tests: Likewise.
28517         * modules/crypto/gc-md4-tests: Likewise.
28518         * modules/crypto/gc-md5-tests: Likewise.
28519         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28520         * modules/crypto/gc-rijndael-tests: Likewise.
28521         * modules/crypto/gc-sha1-tests: Likewise.
28522         * modules/crypto/gc-tests: Likewise.
28523         * modules/crypto/md2-tests: Likewise.
28524         * modules/crypto/md4-tests: Likewise.
28525         * modules/fcntl-h-tests: Likewise.
28526         * modules/floorf-tests: Likewise.
28527         * modules/floorl-tests: Likewise.
28528         * modules/frexp-nolibm-tests: Likewise.
28529         * modules/frexp-tests: Likewise.
28530         * modules/frexpl-nolibm-tests: Likewise.
28531         * modules/frexpl-tests: Likewise.
28532         * modules/getaddrinfo-tests: Likewise.
28533         * modules/inttypes-tests: Likewise.
28534         * modules/isfinite-tests: Likewise.
28535         * modules/isinf-tests: Likewise.
28536         * modules/ldexpl-tests: Likewise.
28537         * modules/locale-tests: Likewise.
28538         * modules/math-tests: Likewise.
28539         * modules/netdb-tests: Likewise.
28540         * modules/netinet_in-tests: Likewise.
28541         * modules/printf-frexp-tests: Likewise.
28542         * modules/printf-frexpl-tests: Likewise.
28543         * modules/priv-set-tests: Likewise.
28544         * modules/random_r-tests: Likewise.
28545         * modules/round-tests: Likewise.
28546         * modules/roundf-tests: Likewise.
28547         * modules/roundl-tests: Likewise.
28548         * modules/search-tests: Likewise.
28549         * modules/select-tests: Likewise.
28550         * modules/signal-tests: Likewise.
28551         * modules/stdbool-tests: Likewise.
28552         * modules/stddef-tests: Likewise.
28553         * modules/stdint-tests: Likewise.
28554         * modules/stdio-tests: Likewise.
28555         * modules/stdlib-tests: Likewise.
28556         * modules/string-tests: Likewise.
28557         * modules/strings-tests: Likewise.
28558         * modules/sys_select-tests: Likewise.
28559         * modules/sys_socket-tests: Likewise.
28560         * modules/sys_stat-tests: Likewise.
28561         * modules/sys_time-tests: Likewise.
28562         * modules/sys_utsname-tests: Likewise.
28563         * modules/sysexits-tests: Likewise.
28564         * modules/time-tests: Likewise.
28565         * modules/trunc-tests: Likewise.
28566         * modules/truncf-tests: Likewise.
28567         * modules/truncl-tests: Likewise.
28568         * modules/tsearch-tests: Likewise.
28569         * modules/unistd-tests: Likewise.
28570         * modules/wchar-tests: Likewise.
28571         * modules/wctype-tests: Likewise.
28572
28573         tests: fix license on several tests
28574         * tests/test-des.c: Update to GPLv3+.
28575         * tests/test-flock.c: Likewise.
28576         * tests/test-fsync.c: Likewise.
28577         * tests/test-futimens.h: Likewise.
28578         * tests/test-gc-arcfour.c: Likewise.
28579         * tests/test-gc-arctwo.c: Likewise.
28580         * tests/test-gc-des.c: Likewise.
28581         * tests/test-gc-hmac-md5.c: Likewise.
28582         * tests/test-gc-hmac-sha1.c: Likewise.
28583         * tests/test-gc-md2.c: Likewise.
28584         * tests/test-gc-md4.c: Likewise.
28585         * tests/test-gc-md5.c: Likewise.
28586         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28587         * tests/test-gc-rijndael.c: Likewise.
28588         * tests/test-gc-sha1.c: Likewise.
28589         * tests/test-gc.c: Likewise.
28590         * tests/test-getcwd.c: Likewise.
28591         * tests/test-link.c: Likewise.
28592         * tests/test-link.h: Likewise.
28593         * tests/test-lutimens.h: Likewise.
28594         * tests/test-md2.c: Likewise.
28595         * tests/test-md4.c: Likewise.
28596         * tests/test-mkdir.h: Likewise.
28597         * tests/test-rename.c: Likewise.
28598         * tests/test-rename.h: Likewise.
28599         * tests/test-safe-alloc.c: Likewise.
28600         * tests/test-utimens-common.h: Likewise.
28601         * tests/test-utimens.h: Likewise.
28602
28603         maint: sync license texts
28604         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28605         * doc/gpl-3.0.texi: Revert copyright year update.
28606         * doc/lgpl-3.0.texi: Likewise.
28607
28608 2009-12-29  Jim Meyering  <meyering@redhat.com>
28609
28610         update nearly all FSF copyright year lists to include 2009
28611         The files named by the following are exempted:
28612             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28613               test -f "$dst" && { echo "$dst"; continue; }
28614               test -d "$dst" || continue
28615               echo "$dst"/$(basename "$src")
28616             done > exempt
28617             git ls-files tests/unictype >> exempt
28618         In the remaining files, convert to all-interval notation if
28619         - there is already at least one year interval like 2000-2003
28620         - the file is maintained by me
28621         - the file is in lib/uni*/, where that style already prevails
28622         Otherwise, use update-copyright's default.
28623
28624 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28625         and Eric Blake  <ebb9@byu.net>
28626
28627         tests: don't require debug system() to pass
28628         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28629         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28630         * tests/test-unlink.h (test_unlink_func): Likewise.
28631         * tests/test-fstatat.c (main): ...into callers.
28632         * tests/test-lstat.c (main): Likewise.
28633         * tests/test-rmdir.c (main): Likewise.
28634         * tests/test-unlink.c (main): Likewise.
28635         * tests/test-unlinkat.c (main): Likewise.
28636         * tests/test-areadlink-with-size.c (main): Don't require a
28637         debug-only system call to pass, aiding cross-testing to mingw.
28638         * tests/test-areadlink.c (main): Likewise.
28639         * tests/test-areadlinkat-with-size.c (main): Likewise.
28640         * tests/test-areadlinkat.c (main): Likewise.
28641         * tests/test-canonicalize-lgpl.c (main): Likewise.
28642         * tests/test-canonicalize.c (main): Likewise.
28643         * tests/test-chown.c (main): Likewise.
28644         * tests/test-fchownat.c (main): Likewise.
28645         * tests/test-lchown.c (main): Likewise.
28646         * tests/test-fdutimensat.c (main): Likewise.
28647         * tests/test-futimens.c (main): Likewise.
28648         * tests/test-link.c (main): Likewise.
28649         * tests/test-linkat.c (main): Likewise.
28650         * tests/test-mkdir.c (main): Likewise.
28651         * tests/test-mkdirat.c (main): Likewise.
28652         * tests/test-mkfifo.c (main): Likewise.
28653         * tests/test-mkfifoat.c (main): Likewise.
28654         * tests/test-mknod.c (main): Likewise.
28655         * tests/test-readlink.c (main): Likewise.
28656         * tests/test-remove.c (main): Likewise.
28657         * tests/test-rename.c (main): Likewise.
28658         * tests/test-renameat.c (main): Likewise.
28659         * tests/test-symlink.c (main): Likewise.
28660         * tests/test-symlinkat.c (main): Likewise.
28661         * tests/test-utimens.c (main): Likewise.
28662         * tests/test-utimensat.c (main): Likewise.
28663
28664 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28665
28666         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28667         on $(UNUSED_PARAMETER_H) to avoid build failure.
28668
28669 2009-12-28  Jim Meyering  <meyering@redhat.com>
28670
28671         update-copyright: you may specify a max. line length other than 72
28672         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28673
28674         maint: use consistent FSF copyright line syntax
28675         * lib/posixtm.c: Add missing comma in FSF copyright line.
28676         * lib/posixtm.h: Likewise.
28677         * lib/getugroups.c: Add missing ", Inc.".
28678
28679         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28680         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28681         FSF copyright line.  Remove trailing blanks.
28682
28683 2009-12-28  Eric Blake  <ebb9@byu.net>
28684
28685         test-dup2: reduce dependencies
28686         * modules/cloexec (Configure.ac): Set witness.
28687         * modules/dup2-tests (Depends-on): Drop cloexec.
28688         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28689         not present.
28690         Suggested by Bruno Haible.
28691
28692 2009-12-26  Bruno Haible  <bruno@clisp.org>
28693
28694         Remove an unneeded dependency.
28695         * modules/fseterr (Depends-on): Remove dup2.
28696
28697 2009-12-26  Eric Blake  <ebb9@byu.net>
28698
28699         tests: use macros.h in more places
28700         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28701         (ASSERT_STREAM): Provide default of stderr.
28702         * tests/test-dirent-safer.c: Include macros.h, using alternate
28703         stream for assertions.
28704         * tests/test-dup-safer.c: Likewise.
28705         * tests/test-freopen-safer.c: Likewise.
28706         * tests/test-getopt.c: Likewise.
28707         * tests/test-openat-safer.c: Likewise.
28708         * tests/test-pipe.c: Likewise.
28709         * tests/test-popen-safer.c: Likewise.
28710         * modules/dirent-safer-tests (Files): Include macros.h.
28711         * modules/unistd-safer-tests (Files): Likewise.
28712         * modules/freopen-safer-tests (Files): Likewise.
28713         * modules/getopt-posix-tests (Files): Likewise.
28714         * modules/openat-safer-tests (Files): Likewise.
28715         * modules/pipe-tests (Files): Likewise.
28716
28717 2009-12-26  Bruno Haible  <bruno@clisp.org>
28718
28719         javacomp: Portability fix.
28720         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28721         that it also works on Solaris.
28722
28723 2009-12-26  Bruno Haible  <bruno@clisp.org>
28724
28725         localename: Fix storage allocation of gl_locale_name_thread's result.
28726         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28727         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28728         all platforms that have 'uselocale'.
28729         (gl_locale_name_thread_unsafe): New function, extracted from
28730         gl_locale_name_thread.
28731         (gl_locale_name_thread): Call struniq on all platforms that have
28732         'uselocale'.
28733         * tests/test-localename.c (test_locale_name_thread): Check that the
28734         resulting strings are permanently allocated.
28735         * modules/localename-tests (Depends-on): Add strdup.
28736
28737 2009-12-26  Bruno Haible  <bruno@clisp.org>
28738
28739         * tests/test-localename.c (categories): Fill in the strings.
28740
28741 2009-12-26  Jim Meyering  <meyering@redhat.com>
28742
28743         isdir: complete the removal of m4/isdir.m4
28744         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28745
28746         isdir: clean up, since at least grep still uses it
28747         * lib/isdir.c: Include "isdir.h".
28748         (S_ISDIR): Remove now-unneeded definition.
28749         * modules/isdir (Files): Add lib/isdir.h.
28750         * lib/isdir.h: New file, with declaration.
28751         * m4/isdir.m4: Remove file -- unneeded.
28752
28753 2009-12-25  Bruno Haible  <bruno@clisp.org>
28754
28755         selinux-h: Make generated .h files standalone.
28756         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28757         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28758         * lib/se-selinux.in.h: Likewise.
28759         * modules/selinux-h (Depends-on): Add unused-parameter.
28760         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28761         selinux/selinux.h and selinux/context.h.
28762         Suggested by Eric Blake.
28763
28764 2009-12-25  Bruno Haible  <bruno@clisp.org>
28765
28766         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28767         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28768         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28769         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28770         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28771
28772 2009-12-24  Bruno Haible  <bruno@clisp.org>
28773
28774         openat: Fix warning.
28775         * lib/openat-proc.c: Include <unistd.h>.
28776
28777 2009-12-24  Bruno Haible  <bruno@clisp.org>
28778
28779         New module 'unused-parameter'.
28780         * build-aux/unused-parameter.h: New file, extracted from earlier
28781         gnulib-common.m4.
28782         * modules/unused-parameter: New file.
28783         * lib/unistr.h: Include unused-parameter.h.
28784         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28785         _GL_UNUSED.
28786         * modules/unistr/base (Depends-on): Add unused-parameter.
28787
28788 2009-12-24  Bruno Haible  <bruno@clisp.org>
28789
28790         Add missing dependencies to 'extensions' module.
28791         * m4/extensions.m4: Add comment.
28792         * modules/accept4 (Depends-on): Add extensions.
28793         * modules/dup3 (Depends-on): Likewise.
28794         * modules/fcntl (Depends-on): Likewise.
28795         * modules/futimens (Depends-on): Likewise.
28796         * modules/mknod (Depends-on): Likewise.
28797         * modules/pipe2 (Depends-on): Likewise.
28798         * modules/stat-time (Depends-on): Likewise.
28799         * modules/strcasestr-simple (Depends-on): Likewise.
28800         * modules/strsignal (Depends-on): Likewise.
28801         * modules/utimensat (Depends-on): Likewise.
28802         * modules/localcharset (Depends-on): Likewise. Needed because of
28803         gl_FCNTL_O_FLAGS.
28804         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28805         AC_TYPE_MBSTATE_T.
28806         * modules/wcsnrtombs (Depends-on): Likewise.
28807         * modules/wcsrtombs (Depends-on): Likewise.
28808
28809 2009-12-24  Bruno Haible  <bruno@clisp.org>
28810
28811         binary-io: Avoid gcc warning due to SET_BINARY.
28812         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28813         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28814
28815 2009-12-24  Bruno Haible  <bruno@clisp.org>
28816
28817         Avoid future namespace pollution on glibc systems.
28818         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28819         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28820         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28821         glibc systems.
28822
28823 2009-12-24  Bruno Haible  <bruno@clisp.org>
28824
28825         Refactor common macros used in tests.
28826         * tests/macros.h: New file.
28827         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28828         and/or <stdlib.h>, if appropriate.
28829         (ASSERT, SIZEOF): Remove macros.
28830         * tests/test-areadlink-with-size.c: Likewise.
28831         * tests/test-areadlinkat.c: Likewise.
28832         * tests/test-areadlinkat-with-size.c: Likewise.
28833         * tests/test-argmatch.c: Likewise.
28834         * tests/test-argv-iter.c: Likewise.
28835         * tests/test-array-mergesort.c: Likewise.
28836         * tests/test-array_list.c: Likewise.
28837         * tests/test-array_oset.c: Likewise.
28838         * tests/test-avltree_list.c: Likewise.
28839         * tests/test-avltree_oset.c: Likewise.
28840         * tests/test-avltreehash_list.c: Likewise.
28841         * tests/test-base64.c: Likewise.
28842         * tests/test-binary-io.c: Likewise.
28843         * tests/test-bitrotate.c: Likewise.
28844         * tests/test-btowc.c: Likewise.
28845         * tests/test-byteswap.c: Likewise.
28846         * tests/test-c-ctype.c: Likewise.
28847         * tests/test-c-stack.c: Likewise.
28848         * tests/test-c-strcasecmp.c: Likewise.
28849         * tests/test-c-strcasestr.c: Likewise.
28850         * tests/test-c-strncasecmp.c: Likewise.
28851         * tests/test-c-strstr.c: Likewise.
28852         * tests/test-canonicalize-lgpl.c: Likewise.
28853         * tests/test-canonicalize.c: Likewise.
28854         * tests/test-carray_list.c: Likewise.
28855         * tests/test-ceilf1.c: Likewise.
28856         * tests/test-ceilf2.c: Likewise.
28857         * tests/test-ceill.c: Likewise.
28858         * tests/test-chown.c: Likewise.
28859         * tests/test-cloexec.c: Likewise.
28860         * tests/test-copy-acl.c: Likewise.
28861         * tests/test-copy-file.c: Likewise.
28862         * tests/test-count-one-bits.c: Likewise.
28863         * tests/test-dprintf-posix.c: Likewise.
28864         * tests/test-dup2.c: Likewise.
28865         * tests/test-dup3.c: Likewise.
28866         * tests/test-duplocale.c: Likewise.
28867         * tests/test-fbufmode.c: Likewise.
28868         * tests/test-fchdir.c: Likewise.
28869         * tests/test-fchownat.c: Likewise.
28870         * tests/test-fcntl-safer.c: Likewise.
28871         * tests/test-fcntl.c: Likewise.
28872         * tests/test-fdopendir.c: Likewise.
28873         * tests/test-fdutimensat.c: Likewise.
28874         * tests/test-fflush2.c: Likewise.
28875         * tests/test-file-has-acl.c: Likewise.
28876         * tests/test-filevercmp.c: Likewise.
28877         * tests/test-flock.c: Likewise.
28878         * tests/test-floorf1.c: Likewise.
28879         * tests/test-floorf2.c: Likewise.
28880         * tests/test-floorl.c: Likewise.
28881         * tests/test-fnmatch.c: Likewise.
28882         * tests/test-fopen.h: Likewise.
28883         * tests/test-fpending.c: Likewise.
28884         * tests/test-fprintf-posix.c: Likewise.
28885         * tests/test-fpurge.c: Likewise.
28886         * tests/test-freadable.c: Likewise.
28887         * tests/test-freadahead.c: Likewise.
28888         * tests/test-freading.c: Likewise.
28889         * tests/test-freadptr.c: Likewise.
28890         * tests/test-freadptr2.c: Likewise.
28891         * tests/test-freadseek.c: Likewise.
28892         * tests/test-freopen.c: Likewise.
28893         * tests/test-frexp.c: Likewise.
28894         * tests/test-frexpl.c: Likewise.
28895         * tests/test-fseek.c: Likewise.
28896         * tests/test-fseeko.c: Likewise.
28897         * tests/test-fstatat.c: Likewise.
28898         * tests/test-fstrcmp.c: Likewise.
28899         * tests/test-fsync.c: Likewise.
28900         * tests/test-ftell.c: Likewise.
28901         * tests/test-ftello.c: Likewise.
28902         * tests/test-func.c: Likewise.
28903         * tests/test-futimens.c: Likewise.
28904         * tests/test-fwritable.c: Likewise.
28905         * tests/test-fwriting.c: Likewise.
28906         * tests/test-getcwd.c: Likewise.
28907         * tests/test-getdate.c: Likewise.
28908         * tests/test-getdelim.c: Likewise.
28909         * tests/test-getdtablesize.c: Likewise.
28910         * tests/test-getgroups.c: Likewise.
28911         * tests/test-getline.c: Likewise.
28912         * tests/test-getndelim2.c: Likewise.
28913         * tests/test-glob.c: Likewise.
28914         * tests/test-hash.c: Likewise.
28915         * tests/test-i-ring.c: Likewise.
28916         * tests/test-iconv-utf.c: Likewise.
28917         * tests/test-iconv.c: Likewise.
28918         * tests/test-idpriv-drop.c: Likewise.
28919         * tests/test-idpriv-droptemp.c: Likewise.
28920         * tests/test-inet_ntop.c: Likewise.
28921         * tests/test-inet_pton.c: Likewise.
28922         * tests/test-isblank.c: Likewise.
28923         * tests/test-isfinite.c: Likewise.
28924         * tests/test-isinf.c: Likewise.
28925         * tests/test-isnan.c: Likewise.
28926         * tests/test-isnand.h: Likewise.
28927         * tests/test-isnanf.h: Likewise.
28928         * tests/test-isnanl.h: Likewise.
28929         * tests/test-lchown.c: Likewise.
28930         * tests/test-ldexpl.c: Likewise.
28931         * tests/test-link.c: Likewise.
28932         * tests/test-linkat.c: Likewise.
28933         * tests/test-linked_list.c: Likewise.
28934         * tests/test-linkedhash_list.c: Likewise.
28935         * tests/test-localename.c: Likewise.
28936         * tests/test-lseek.c: Likewise.
28937         * tests/test-lstat.c: Likewise.
28938         * tests/test-mbmemcasecmp.c: Likewise.
28939         * tests/test-mbmemcasecoll.c: Likewise.
28940         * tests/test-mbrtowc.c: Likewise.
28941         * tests/test-mbscasecmp.c: Likewise.
28942         * tests/test-mbscasestr1.c: Likewise.
28943         * tests/test-mbscasestr2.c: Likewise.
28944         * tests/test-mbscasestr3.c: Likewise.
28945         * tests/test-mbscasestr4.c: Likewise.
28946         * tests/test-mbschr.c: Likewise.
28947         * tests/test-mbscspn.c: Likewise.
28948         * tests/test-mbsinit.c: Likewise.
28949         * tests/test-mbsncasecmp.c: Likewise.
28950         * tests/test-mbsnrtowcs.c: Likewise.
28951         * tests/test-mbspbrk.c: Likewise.
28952         * tests/test-mbspcasecmp.c: Likewise.
28953         * tests/test-mbsrchr.c: Likewise.
28954         * tests/test-mbsrtowcs.c: Likewise.
28955         * tests/test-mbsspn.c: Likewise.
28956         * tests/test-mbsstr1.c: Likewise.
28957         * tests/test-mbsstr2.c: Likewise.
28958         * tests/test-mbsstr3.c: Likewise.
28959         * tests/test-memchr.c: Likewise.
28960         * tests/test-memchr2.c: Likewise.
28961         * tests/test-memcmp.c: Likewise.
28962         * tests/test-memmem.c: Likewise.
28963         * tests/test-memrchr.c: Likewise.
28964         * tests/test-mkdir.c: Likewise.
28965         * tests/test-mkdirat.c: Likewise.
28966         * tests/test-mkfifo.c: Likewise.
28967         * tests/test-mkfifoat.c: Likewise.
28968         * tests/test-mknod.c: Likewise.
28969         * tests/test-nanosleep.c: Likewise.
28970         * tests/test-nl_langinfo.c: Likewise.
28971         * tests/test-obstack-printf.c: Likewise.
28972         * tests/test-open.c: Likewise.
28973         * tests/test-openat.c: Likewise.
28974         * tests/test-pipe-filter-gi1.c: Likewise.
28975         * tests/test-pipe-filter-gi2-main.c: Likewise.
28976         * tests/test-pipe-filter-ii1.c: Likewise.
28977         * tests/test-pipe-filter-ii2-main.c: Likewise.
28978         * tests/test-pipe2.c: Likewise.
28979         * tests/test-popen.h: Likewise.
28980         * tests/test-posixtm.c: Likewise.
28981         * tests/test-pread.c: Likewise.
28982         * tests/test-printf-frexp.c: Likewise.
28983         * tests/test-printf-frexpl.c: Likewise.
28984         * tests/test-printf-posix.c: Likewise.
28985         * tests/test-priv-set.c: Likewise.
28986         * tests/test-quotearg.c: Likewise.
28987         * tests/test-random_r.c: Likewise.
28988         * tests/test-rawmemchr.c: Likewise.
28989         * tests/test-rbtree_list.c: Likewise.
28990         * tests/test-rbtree_oset.c: Likewise.
28991         * tests/test-rbtreehash_list.c: Likewise.
28992         * tests/test-readlink.c: Likewise.
28993         * tests/test-remove.c: Likewise.
28994         * tests/test-rename.c: Likewise.
28995         * tests/test-renameat.c: Likewise.
28996         * tests/test-rmdir.c: Likewise.
28997         * tests/test-round1.c: Likewise.
28998         * tests/test-roundf1.c: Likewise.
28999         * tests/test-roundl.c: Likewise.
29000         * tests/test-safe-alloc.c: Likewise.
29001         * tests/test-sameacls.c: Likewise.
29002         * tests/test-set-mode-acl.c: Likewise.
29003         * tests/test-setenv.c: Likewise.
29004         * tests/test-sigaction.c: Likewise.
29005         * tests/test-signbit.c: Likewise.
29006         * tests/test-sleep.c: Likewise.
29007         * tests/test-snprintf-posix.c: Likewise.
29008         * tests/test-snprintf.c: Likewise.
29009         * tests/test-sprintf-posix.c: Likewise.
29010         * tests/test-stat-time.c: Likewise.
29011         * tests/test-stat.c: Likewise.
29012         * tests/test-strcasestr.c: Likewise.
29013         * tests/test-strchrnul.c: Likewise.
29014         * tests/test-strerror.c: Likewise.
29015         * tests/test-striconv.c: Likewise.
29016         * tests/test-striconveh.c: Likewise.
29017         * tests/test-striconveha.c: Likewise.
29018         * tests/test-strsignal.c: Likewise.
29019         * tests/test-strstr.c: Likewise.
29020         * tests/test-strtod.c: Likewise.
29021         * tests/test-strverscmp.c: Likewise.
29022         * tests/test-symlink.c: Likewise.
29023         * tests/test-symlinkat.c: Likewise.
29024         * tests/test-trunc1.c: Likewise.
29025         * tests/test-trunc2.c: Likewise.
29026         * tests/test-truncf1.c: Likewise.
29027         * tests/test-truncf2.c: Likewise.
29028         * tests/test-truncl.c: Likewise.
29029         * tests/test-uname.c: Likewise.
29030         * tests/test-unlink.c: Likewise.
29031         * tests/test-unlinkat.c: Likewise.
29032         * tests/test-unsetenv.c: Likewise.
29033         * tests/test-usleep.c: Likewise.
29034         * tests/test-utimens.c: Likewise.
29035         * tests/test-utimensat.c: Likewise.
29036         * tests/test-vasnprintf-posix.c: Likewise.
29037         * tests/test-vasnprintf-posix2.c: Likewise.
29038         * tests/test-vasnprintf.c: Likewise.
29039         * tests/test-vasprintf-posix.c: Likewise.
29040         * tests/test-vasprintf.c: Likewise.
29041         * tests/test-vdprintf-posix.c: Likewise.
29042         * tests/test-vfprintf-posix.c: Likewise.
29043         * tests/test-vprintf-posix.c: Likewise.
29044         * tests/test-vsnprintf-posix.c: Likewise.
29045         * tests/test-vsnprintf.c: Likewise.
29046         * tests/test-vsprintf-posix.c: Likewise.
29047         * tests/test-wcrtomb.c: Likewise.
29048         * tests/test-wcsnrtombs.c: Likewise.
29049         * tests/test-wcsrtombs.c: Likewise.
29050         * tests/test-wctype.c: Likewise.
29051         * tests/test-wcwidth.c: Likewise.
29052         * tests/test-xfprintf-posix.c: Likewise.
29053         * tests/test-xmemdup0.c: Likewise.
29054         * tests/test-xprintf-posix.c: Likewise.
29055         * tests/test-xvasprintf.c: Likewise.
29056         * tests/unicase/test-locale-language.c: Likewise.
29057         * tests/unicase/test-mapping-part1.h: Likewise.
29058         * tests/unicase/test-predicate-part1.h: Likewise.
29059         * tests/unicase/test-u8-casecmp.c: Likewise.
29060         * tests/unicase/test-u8-casecoll.c: Likewise.
29061         * tests/unicase/test-u8-casefold.c: Likewise.
29062         * tests/unicase/test-u8-is-cased.c: Likewise.
29063         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29064         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29065         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29066         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29067         * tests/unicase/test-u8-tolower.c: Likewise.
29068         * tests/unicase/test-u8-totitle.c: Likewise.
29069         * tests/unicase/test-u8-toupper.c: Likewise.
29070         * tests/unicase/test-u16-casecmp.c: Likewise.
29071         * tests/unicase/test-u16-casecoll.c: Likewise.
29072         * tests/unicase/test-u16-casefold.c: Likewise.
29073         * tests/unicase/test-u16-is-cased.c: Likewise.
29074         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29075         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29076         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29077         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29078         * tests/unicase/test-u16-tolower.c: Likewise.
29079         * tests/unicase/test-u16-totitle.c: Likewise.
29080         * tests/unicase/test-u16-toupper.c: Likewise.
29081         * tests/unicase/test-u32-casecmp.c: Likewise.
29082         * tests/unicase/test-u32-casecoll.c: Likewise.
29083         * tests/unicase/test-u32-casefold.c: Likewise.
29084         * tests/unicase/test-u32-is-cased.c: Likewise.
29085         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29086         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29087         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29088         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29089         * tests/unicase/test-u32-tolower.c: Likewise.
29090         * tests/unicase/test-u32-totitle.c: Likewise.
29091         * tests/unicase/test-u32-toupper.c: Likewise.
29092         * tests/unicase/test-ulc-casecmp.c: Likewise.
29093         * tests/unicase/test-ulc-casecoll.c: Likewise.
29094         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29095         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29096         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29097         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29098         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29099         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29100         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29101         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29102         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29103         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29104         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29105         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29106         * tests/unictype/test-bidi_byname.c: Likewise.
29107         * tests/unictype/test-bidi_name.c: Likewise.
29108         * tests/unictype/test-bidi_of.c: Likewise.
29109         * tests/unictype/test-bidi_test.c: Likewise.
29110         * tests/unictype/test-block_list.c: Likewise.
29111         * tests/unictype/test-block_of.c: Likewise.
29112         * tests/unictype/test-block_test.c: Likewise.
29113         * tests/unictype/test-categ_and.c: Likewise.
29114         * tests/unictype/test-categ_and_not.c: Likewise.
29115         * tests/unictype/test-categ_byname.c: Likewise.
29116         * tests/unictype/test-categ_name.c: Likewise.
29117         * tests/unictype/test-categ_none.c: Likewise.
29118         * tests/unictype/test-categ_of.c: Likewise.
29119         * tests/unictype/test-categ_or.c: Likewise.
29120         * tests/unictype/test-categ_test_withtable.c: Likewise.
29121         * tests/unictype/test-combining.c: Likewise.
29122         * tests/unictype/test-decdigit.c: Likewise.
29123         * tests/unictype/test-digit.c: Likewise.
29124         * tests/unictype/test-mirror.c: Likewise.
29125         * tests/unictype/test-numeric.c: Likewise.
29126         * tests/unictype/test-pr_byname.c: Likewise.
29127         * tests/unictype/test-pr_test.c: Likewise.
29128         * tests/unictype/test-predicate-part1.h: Likewise.
29129         * tests/unictype/test-scripts.c: Likewise.
29130         * tests/unictype/test-sy_c_ident.c: Likewise.
29131         * tests/unictype/test-sy_java_ident.c: Likewise.
29132         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29133         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29134         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29135         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29136         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29137         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29138         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29139         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29140         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29141         * tests/uninorm/test-compat-decomposition.c: Likewise.
29142         * tests/uninorm/test-composition.c: Likewise.
29143         * tests/uninorm/test-decomposing-form.c: Likewise.
29144         * tests/uninorm/test-decomposition.c: Likewise.
29145         * tests/uninorm/test-u8-nfc.c: Likewise.
29146         * tests/uninorm/test-u8-nfd.c: Likewise.
29147         * tests/uninorm/test-u8-nfkc.c: Likewise.
29148         * tests/uninorm/test-u8-nfkd.c: Likewise.
29149         * tests/uninorm/test-u8-normcmp.c: Likewise.
29150         * tests/uninorm/test-u8-normcoll.c: Likewise.
29151         * tests/uninorm/test-u16-nfc.c: Likewise.
29152         * tests/uninorm/test-u16-nfd.c: Likewise.
29153         * tests/uninorm/test-u16-nfkc.c: Likewise.
29154         * tests/uninorm/test-u16-nfkd.c: Likewise.
29155         * tests/uninorm/test-u16-normcmp.c: Likewise.
29156         * tests/uninorm/test-u16-normcoll.c: Likewise.
29157         * tests/uninorm/test-u32-nfc.c: Likewise.
29158         * tests/uninorm/test-u32-nfd.c: Likewise.
29159         * tests/uninorm/test-u32-nfkc.c: Likewise.
29160         * tests/uninorm/test-u32-nfkd.c: Likewise.
29161         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29162         * tests/uninorm/test-u32-normcmp.c: Likewise.
29163         * tests/uninorm/test-u32-normcoll.c: Likewise.
29164         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29165         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29166         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29167         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29168         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29169         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29170         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29171         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29172         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29173         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29174         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29175         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29176         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29177         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29178         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29179         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29180         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29181         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29182         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29183         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29184         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29185         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29186         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29187         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29188         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29189         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29190         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29191         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29192         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29193         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29194         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29195         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29196         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29197         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29198         * tests/uniwidth/test-u8-width.c: Likewise.
29199         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29200         * tests/uniwidth/test-u16-width.c: Likewise.
29201         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29202         * tests/uniwidth/test-u32-width.c: Likewise.
29203         * tests/uniwidth/test-uc_width.c: Likewise.
29204         * tests/uniwidth/test-uc_width2.c: Likewise.
29205         * modules/acl-tests (Files): Add tests/macros.h.
29206         * modules/areadlink-tests (Files): Likewise.
29207         * modules/areadlink-with-size-tests (Files): Likewise.
29208         * modules/areadlinkat-tests (Files): Likewise.
29209         * modules/areadlinkat-with-size-tests (Files): Likewise.
29210         * modules/argmatch-tests (Files): Likewise.
29211         * modules/argv-iter-tests (Files): Likewise.
29212         * modules/array-list-tests (Files): Likewise.
29213         * modules/array-mergesort-tests (Files): Likewise.
29214         * modules/array-oset-tests (Files): Likewise.
29215         * modules/avltree-list-tests (Files): Likewise.
29216         * modules/avltree-oset-tests (Files): Likewise.
29217         * modules/avltreehash-list-tests (Files): Likewise.
29218         * modules/base64-tests (Files): Likewise.
29219         * modules/binary-io-tests (Files): Likewise.
29220         * modules/bitrotate-tests (Files): Likewise.
29221         * modules/btowc-tests (Files): Likewise.
29222         * modules/byteswap-tests (Files): Likewise.
29223         * modules/c-ctype-tests (Files): Likewise.
29224         * modules/c-stack-tests (Files): Likewise.
29225         * modules/c-strcase-tests (Files): Likewise.
29226         * modules/c-strcasestr-tests (Files): Likewise.
29227         * modules/c-strstr-tests (Files): Likewise.
29228         * modules/canonicalize-lgpl-tests (Files): Likewise.
29229         * modules/canonicalize-tests (Files): Likewise.
29230         * modules/carray-list-tests (Files): Likewise.
29231         * modules/ceilf-tests (Files): Likewise.
29232         * modules/ceill-tests (Files): Likewise.
29233         * modules/chown-tests (Files): Likewise.
29234         * modules/cloexec-tests (Files): Likewise.
29235         * modules/copy-file-tests (Files): Likewise.
29236         * modules/count-one-bits-tests (Files): Likewise.
29237         * modules/dprintf-posix-tests (Files): Likewise.
29238         * modules/dup2-tests (Files): Likewise.
29239         * modules/dup3-tests (Files): Likewise.
29240         * modules/duplocale-tests (Files): Likewise.
29241         * modules/fbufmode-tests (Files): Likewise.
29242         * modules/fchdir-tests (Files): Likewise.
29243         * modules/fcntl-safer-tests (Files): Likewise.
29244         * modules/fcntl-tests (Files): Likewise.
29245         * modules/fdopendir-tests (Files): Likewise.
29246         * modules/fdutimensat-tests (Files): Likewise.
29247         * modules/fflush-tests (Files): Likewise.
29248         * modules/filevercmp-tests (Files): Likewise.
29249         * modules/flock-tests (Files): Likewise.
29250         * modules/floorf-tests (Files): Likewise.
29251         * modules/floorl-tests (Files): Likewise.
29252         * modules/fnmatch-tests (Files): Likewise.
29253         * modules/fopen-safer-tests (Files): Likewise.
29254         * modules/fopen-tests (Files): Likewise.
29255         * modules/fpending-tests (Files): Likewise.
29256         * modules/fprintf-posix-tests (Files): Likewise.
29257         * modules/fpurge-tests (Files): Likewise.
29258         * modules/freadable-tests (Files): Likewise.
29259         * modules/freadahead-tests (Files): Likewise.
29260         * modules/freading-tests (Files): Likewise.
29261         * modules/freadptr-tests (Files): Likewise.
29262         * modules/freadseek-tests (Files): Likewise.
29263         * modules/freopen-tests (Files): Likewise.
29264         * modules/frexp-nolibm-tests (Files): Likewise.
29265         * modules/frexp-tests (Files): Likewise.
29266         * modules/frexpl-nolibm-tests (Files): Likewise.
29267         * modules/frexpl-tests (Files): Likewise.
29268         * modules/fseek-tests (Files): Likewise.
29269         * modules/fseeko-tests (Files): Likewise.
29270         * modules/fstrcmp-tests (Files): Likewise.
29271         * modules/fsync-tests (Files): Likewise.
29272         * modules/ftell-tests (Files): Likewise.
29273         * modules/ftello-tests (Files): Likewise.
29274         * modules/func-tests (Files): Likewise.
29275         * modules/futimens-tests (Files): Likewise.
29276         * modules/fwritable-tests (Files): Likewise.
29277         * modules/fwriting-tests (Files): Likewise.
29278         * modules/getcwd-tests (Files): Likewise.
29279         * modules/getdate-tests (Files): Likewise.
29280         * modules/getdelim-tests (Files): Likewise.
29281         * modules/getdtablesize-tests (Files): Likewise.
29282         * modules/getgroups-tests (Files): Likewise.
29283         * modules/getline-tests (Files): Likewise.
29284         * modules/getndelim2-tests (Files): Likewise.
29285         * modules/glob-tests (Files): Likewise.
29286         * modules/hash-tests (Files): Likewise.
29287         * modules/i-ring-tests (Files): Likewise.
29288         * modules/iconv-tests (Files): Likewise.
29289         * modules/iconv_open-utf-tests (Files): Likewise.
29290         * modules/idpriv-drop-tests (Files): Likewise.
29291         * modules/idpriv-droptemp-tests (Files): Likewise.
29292         * modules/inet_ntop-tests (Files): Likewise.
29293         * modules/inet_pton-tests (Files): Likewise.
29294         * modules/isblank-tests (Files): Likewise.
29295         * modules/isfinite-tests (Files): Likewise.
29296         * modules/isinf-tests (Files): Likewise.
29297         * modules/isnan-tests (Files): Likewise.
29298         * modules/isnand-nolibm-tests (Files): Likewise.
29299         * modules/isnand-tests (Files): Likewise.
29300         * modules/isnanf-nolibm-tests (Files): Likewise.
29301         * modules/isnanf-tests (Files): Likewise.
29302         * modules/isnanl-nolibm-tests (Files): Likewise.
29303         * modules/isnanl-tests (Files): Likewise.
29304         * modules/lchown-tests (Files): Likewise.
29305         * modules/ldexpl-tests (Files): Likewise.
29306         * modules/link-tests (Files): Likewise.
29307         * modules/linkat-tests (Files): Likewise.
29308         * modules/linked-list-tests (Files): Likewise.
29309         * modules/linkedhash-list-tests (Files): Likewise.
29310         * modules/localename-tests (Files): Likewise.
29311         * modules/lseek-tests (Files): Likewise.
29312         * modules/lstat-tests (Files): Likewise.
29313         * modules/mbmemcasecmp-tests (Files): Likewise.
29314         * modules/mbmemcasecoll-tests (Files): Likewise.
29315         * modules/mbrtowc-tests (Files): Likewise.
29316         * modules/mbscasecmp-tests (Files): Likewise.
29317         * modules/mbscasestr-tests (Files): Likewise.
29318         * modules/mbschr-tests (Files): Likewise.
29319         * modules/mbscspn-tests (Files): Likewise.
29320         * modules/mbsinit-tests (Files): Likewise.
29321         * modules/mbsncasecmp-tests (Files): Likewise.
29322         * modules/mbsnrtowcs-tests (Files): Likewise.
29323         * modules/mbspbrk-tests (Files): Likewise.
29324         * modules/mbspcasecmp-tests (Files): Likewise.
29325         * modules/mbsrchr-tests (Files): Likewise.
29326         * modules/mbsrtowcs-tests (Files): Likewise.
29327         * modules/mbsspn-tests (Files): Likewise.
29328         * modules/mbsstr-tests (Files): Likewise.
29329         * modules/memchr-tests (Files): Likewise.
29330         * modules/memchr2-tests (Files): Likewise.
29331         * modules/memcmp-tests (Files): Likewise.
29332         * modules/memmem-tests (Files): Likewise.
29333         * modules/memrchr-tests (Files): Likewise.
29334         * modules/mkdir-tests (Files): Likewise.
29335         * modules/mkfifo-tests (Files): Likewise.
29336         * modules/mkfifoat-tests (Files): Likewise.
29337         * modules/mknod-tests (Files): Likewise.
29338         * modules/nanosleep-tests (Files): Likewise.
29339         * modules/nl_langinfo-tests (Files): Likewise.
29340         * modules/obstack-printf-tests (Files): Likewise.
29341         * modules/open-tests (Files): Likewise.
29342         * modules/openat-tests (Files): Likewise.
29343         * modules/pipe-filter-gi-tests (Files): Likewise.
29344         * modules/pipe-filter-ii-tests (Files): Likewise.
29345         * modules/pipe2-tests (Files): Likewise.
29346         * modules/popen-safer-tests (Files): Likewise.
29347         * modules/popen-tests (Files): Likewise.
29348         * modules/posixtm-tests (Files): Likewise.
29349         * modules/pread-tests (Files): Likewise.
29350         * modules/printf-frexp-tests (Files): Likewise.
29351         * modules/printf-frexpl-tests (Files): Likewise.
29352         * modules/printf-posix-tests (Files): Likewise.
29353         * modules/priv-set-tests (Files): Likewise.
29354         * modules/quotearg-tests (Files): Likewise.
29355         * modules/random_r-tests (Files): Likewise.
29356         * modules/rawmemchr-tests (Files): Likewise.
29357         * modules/rbtree-list-tests (Files): Likewise.
29358         * modules/rbtree-oset-tests (Files): Likewise.
29359         * modules/rbtreehash-list-tests (Files): Likewise.
29360         * modules/readlink-tests (Files): Likewise.
29361         * modules/remove-tests (Files): Likewise.
29362         * modules/rename-tests (Files): Likewise.
29363         * modules/renameat-tests (Files): Likewise.
29364         * modules/rmdir-tests (Files): Likewise.
29365         * modules/round-tests (Files): Likewise.
29366         * modules/roundf-tests (Files): Likewise.
29367         * modules/roundl-tests (Files): Likewise.
29368         * modules/safe-alloc-tests (Files): Likewise.
29369         * modules/setenv-tests (Files): Likewise.
29370         * modules/sigaction-tests (Files): Likewise.
29371         * modules/signbit-tests (Files): Likewise.
29372         * modules/sleep-tests (Files): Likewise.
29373         * modules/snprintf-posix-tests (Files): Likewise.
29374         * modules/snprintf-tests (Files): Likewise.
29375         * modules/sprintf-posix-tests (Files): Likewise.
29376         * modules/stat-tests (Files): Likewise.
29377         * modules/stat-time-tests (Files): Likewise.
29378         * modules/strcasestr-tests (Files): Likewise.
29379         * modules/strchrnul-tests (Files): Likewise.
29380         * modules/strerror-tests (Files): Likewise.
29381         * modules/striconv-tests (Files): Likewise.
29382         * modules/striconveh-tests (Files): Likewise.
29383         * modules/striconveha-tests (Files): Likewise.
29384         * modules/strsignal-tests (Files): Likewise.
29385         * modules/strstr-tests (Files): Likewise.
29386         * modules/strtod-tests (Files): Likewise.
29387         * modules/strverscmp-tests (Files): Likewise.
29388         * modules/symlink-tests (Files): Likewise.
29389         * modules/symlinkat-tests (Files): Likewise.
29390         * modules/trunc-tests (Files): Likewise.
29391         * modules/truncf-tests (Files): Likewise.
29392         * modules/truncl-tests (Files): Likewise.
29393         * modules/uname-tests (Files): Likewise.
29394         * modules/unicase/cased-tests (Files): Likewise.
29395         * modules/unicase/ignorable-tests (Files): Likewise.
29396         * modules/unicase/locale-language-tests (Files): Likewise.
29397         * modules/unicase/tolower-tests (Files): Likewise.
29398         * modules/unicase/totitle-tests (Files): Likewise.
29399         * modules/unicase/toupper-tests (Files): Likewise.
29400         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29401         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29402         * modules/unicase/u8-casefold-tests (Files): Likewise.
29403         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29404         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29405         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29406         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29407         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29408         * modules/unicase/u8-tolower-tests (Files): Likewise.
29409         * modules/unicase/u8-totitle-tests (Files): Likewise.
29410         * modules/unicase/u8-toupper-tests (Files): Likewise.
29411         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29412         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29413         * modules/unicase/u16-casefold-tests (Files): Likewise.
29414         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29415         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29416         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29417         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29418         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29419         * modules/unicase/u16-tolower-tests (Files): Likewise.
29420         * modules/unicase/u16-totitle-tests (Files): Likewise.
29421         * modules/unicase/u16-toupper-tests (Files): Likewise.
29422         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29423         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29424         * modules/unicase/u32-casefold-tests (Files): Likewise.
29425         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29426         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29427         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29428         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29429         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29430         * modules/unicase/u32-tolower-tests (Files): Likewise.
29431         * modules/unicase/u32-totitle-tests (Files): Likewise.
29432         * modules/unicase/u32-toupper-tests (Files): Likewise.
29433         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29434         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29435         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29436         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29437         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29438         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29439         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29440         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29441         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29442         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29443         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29444         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29445         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29446         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29447         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29448         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29449         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29450         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29451         * modules/unictype/block-list-tests (Files): Likewise.
29452         * modules/unictype/block-of-tests (Files): Likewise.
29453         * modules/unictype/block-test-tests (Files): Likewise.
29454         * modules/unictype/category-C-tests (Files): Likewise.
29455         * modules/unictype/category-Cc-tests (Files): Likewise.
29456         * modules/unictype/category-Cf-tests (Files): Likewise.
29457         * modules/unictype/category-Cn-tests (Files): Likewise.
29458         * modules/unictype/category-Co-tests (Files): Likewise.
29459         * modules/unictype/category-Cs-tests (Files): Likewise.
29460         * modules/unictype/category-L-tests (Files): Likewise.
29461         * modules/unictype/category-Ll-tests (Files): Likewise.
29462         * modules/unictype/category-Lm-tests (Files): Likewise.
29463         * modules/unictype/category-Lo-tests (Files): Likewise.
29464         * modules/unictype/category-Lt-tests (Files): Likewise.
29465         * modules/unictype/category-Lu-tests (Files): Likewise.
29466         * modules/unictype/category-M-tests (Files): Likewise.
29467         * modules/unictype/category-Mc-tests (Files): Likewise.
29468         * modules/unictype/category-Me-tests (Files): Likewise.
29469         * modules/unictype/category-Mn-tests (Files): Likewise.
29470         * modules/unictype/category-N-tests (Files): Likewise.
29471         * modules/unictype/category-Nd-tests (Files): Likewise.
29472         * modules/unictype/category-Nl-tests (Files): Likewise.
29473         * modules/unictype/category-No-tests (Files): Likewise.
29474         * modules/unictype/category-P-tests (Files): Likewise.
29475         * modules/unictype/category-Pc-tests (Files): Likewise.
29476         * modules/unictype/category-Pd-tests (Files): Likewise.
29477         * modules/unictype/category-Pe-tests (Files): Likewise.
29478         * modules/unictype/category-Pf-tests (Files): Likewise.
29479         * modules/unictype/category-Pi-tests (Files): Likewise.
29480         * modules/unictype/category-Po-tests (Files): Likewise.
29481         * modules/unictype/category-Ps-tests (Files): Likewise.
29482         * modules/unictype/category-S-tests (Files): Likewise.
29483         * modules/unictype/category-Sc-tests (Files): Likewise.
29484         * modules/unictype/category-Sk-tests (Files): Likewise.
29485         * modules/unictype/category-Sm-tests (Files): Likewise.
29486         * modules/unictype/category-So-tests (Files): Likewise.
29487         * modules/unictype/category-Z-tests (Files): Likewise.
29488         * modules/unictype/category-Zl-tests (Files): Likewise.
29489         * modules/unictype/category-Zp-tests (Files): Likewise.
29490         * modules/unictype/category-Zs-tests (Files): Likewise.
29491         * modules/unictype/category-and-not-tests (Files): Likewise.
29492         * modules/unictype/category-and-tests (Files): Likewise.
29493         * modules/unictype/category-byname-tests (Files): Likewise.
29494         * modules/unictype/category-name-tests (Files): Likewise.
29495         * modules/unictype/category-none-tests (Files): Likewise.
29496         * modules/unictype/category-of-tests (Files): Likewise.
29497         * modules/unictype/category-or-tests (Files): Likewise.
29498         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29499         * modules/unictype/combining-class-tests (Files): Likewise.
29500         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29501         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29502         * modules/unictype/ctype-blank-tests (Files): Likewise.
29503         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29504         * modules/unictype/ctype-digit-tests (Files): Likewise.
29505         * modules/unictype/ctype-graph-tests (Files): Likewise.
29506         * modules/unictype/ctype-lower-tests (Files): Likewise.
29507         * modules/unictype/ctype-print-tests (Files): Likewise.
29508         * modules/unictype/ctype-punct-tests (Files): Likewise.
29509         * modules/unictype/ctype-space-tests (Files): Likewise.
29510         * modules/unictype/ctype-upper-tests (Files): Likewise.
29511         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29512         * modules/unictype/decimal-digit-tests (Files): Likewise.
29513         * modules/unictype/digit-tests (Files): Likewise.
29514         * modules/unictype/mirror-tests (Files): Likewise.
29515         * modules/unictype/numeric-tests (Files): Likewise.
29516         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29517         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29518         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29519         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29520         Likewise.
29521         * modules/unictype/property-bidi-block-separator-tests (Files):
29522         Likewise.
29523         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29524         Likewise.
29525         * modules/unictype/property-bidi-common-separator-tests (Files):
29526         Likewise.
29527         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29528         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29529         Likewise.
29530         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29531         Likewise.
29532         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29533         Likewise.
29534         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29535         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29536         Likewise.
29537         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29538         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29539         Likewise.
29540         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29541         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29542         * modules/unictype/property-bidi-segment-separator-tests (Files):
29543         Likewise.
29544         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29545         * modules/unictype/property-byname-tests (Files): Likewise.
29546         * modules/unictype/property-combining-tests (Files): Likewise.
29547         * modules/unictype/property-composite-tests (Files): Likewise.
29548         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29549         * modules/unictype/property-dash-tests (Files): Likewise.
29550         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29551         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29552         Likewise.
29553         * modules/unictype/property-deprecated-tests (Files): Likewise.
29554         * modules/unictype/property-diacritic-tests (Files): Likewise.
29555         * modules/unictype/property-extender-tests (Files): Likewise.
29556         * modules/unictype/property-format-control-tests (Files): Likewise.
29557         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29558         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29559         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29560         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29561         * modules/unictype/property-hyphen-tests (Files): Likewise.
29562         * modules/unictype/property-id-continue-tests (Files): Likewise.
29563         * modules/unictype/property-id-start-tests (Files): Likewise.
29564         * modules/unictype/property-ideographic-tests (Files): Likewise.
29565         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29566         * modules/unictype/property-ids-trinary-operator-tests (Files):
29567         Likewise.
29568         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29569         * modules/unictype/property-iso-control-tests (Files): Likewise.
29570         * modules/unictype/property-join-control-tests (Files): Likewise.
29571         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29572         * modules/unictype/property-line-separator-tests (Files): Likewise.
29573         * modules/unictype/property-logical-order-exception-tests (Files):
29574         Likewise.
29575         * modules/unictype/property-lowercase-tests (Files): Likewise.
29576         * modules/unictype/property-math-tests (Files): Likewise.
29577         * modules/unictype/property-non-break-tests (Files): Likewise.
29578         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29579         * modules/unictype/property-numeric-tests (Files): Likewise.
29580         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29581         * modules/unictype/property-other-default-ignorable-code-point-tests
29582         (Files): Likewise.
29583         * modules/unictype/property-other-grapheme-extend-tests (Files):
29584         Likewise.
29585         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29586         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29587         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29588         * modules/unictype/property-other-math-tests (Files): Likewise.
29589         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29590         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29591         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29592         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29593         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29594         * modules/unictype/property-private-use-tests (Files): Likewise.
29595         * modules/unictype/property-punctuation-tests (Files): Likewise.
29596         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29597         * modules/unictype/property-radical-tests (Files): Likewise.
29598         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29599         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29600         * modules/unictype/property-space-tests (Files): Likewise.
29601         * modules/unictype/property-terminal-punctuation-tests (Files):
29602         Likewise.
29603         * modules/unictype/property-test-tests (Files): Likewise.
29604         * modules/unictype/property-titlecase-tests (Files): Likewise.
29605         * modules/unictype/property-unassigned-code-value-tests (Files):
29606         Likewise.
29607         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29608         * modules/unictype/property-uppercase-tests (Files): Likewise.
29609         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29610         * modules/unictype/property-white-space-tests (Files): Likewise.
29611         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29612         * modules/unictype/property-xid-start-tests (Files): Likewise.
29613         * modules/unictype/property-zero-width-tests (Files): Likewise.
29614         * modules/unictype/scripts-tests (Files): Likewise.
29615         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29616         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29617         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29618         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29619         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29620         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29621         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29622         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29623         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29624         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29625         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29626         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29627         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29628         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29629         * modules/uninorm/composition-tests (Files): Likewise.
29630         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29631         * modules/uninorm/decomposition-tests (Files): Likewise.
29632         * modules/uninorm/filter-tests (Files): Likewise.
29633         * modules/uninorm/nfc-tests (Files): Likewise.
29634         * modules/uninorm/nfd-tests (Files): Likewise.
29635         * modules/uninorm/nfkc-tests (Files): Likewise.
29636         * modules/uninorm/nfkd-tests (Files): Likewise.
29637         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29638         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29639         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29640         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29641         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29642         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29643         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29644         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29645         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29646         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29647         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29648         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29649         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29650         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29651         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29652         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29653         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29654         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29655         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29656         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29657         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29658         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29659         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29660         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29661         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29662         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29663         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29664         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29665         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29666         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29667         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29668         * modules/uniwidth/u8-width-tests (Files): Likewise.
29669         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29670         * modules/uniwidth/u16-width-tests (Files): Likewise.
29671         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29672         * modules/uniwidth/u32-width-tests (Files): Likewise.
29673         * modules/uniwidth/width-tests (Files): Likewise.
29674         * modules/unlink-tests (Files): Likewise.
29675         * modules/unsetenv-tests (Files): Likewise.
29676         * modules/usleep-tests (Files): Likewise.
29677         * modules/utimens-tests (Files): Likewise.
29678         * modules/utimensat-tests (Files): Likewise.
29679         * modules/vasnprintf-posix-tests (Files): Likewise.
29680         * modules/vasnprintf-tests (Files): Likewise.
29681         * modules/vasprintf-posix-tests (Files): Likewise.
29682         * modules/vasprintf-tests (Files): Likewise.
29683         * modules/vdprintf-posix-tests (Files): Likewise.
29684         * modules/vfprintf-posix-tests (Files): Likewise.
29685         * modules/vprintf-posix-tests (Files): Likewise.
29686         * modules/vsnprintf-posix-tests (Files): Likewise.
29687         * modules/vsnprintf-tests (Files): Likewise.
29688         * modules/vsprintf-posix-tests (Files): Likewise.
29689         * modules/wcrtomb-tests (Files): Likewise.
29690         * modules/wcsnrtombs-tests (Files): Likewise.
29691         * modules/wcsrtombs-tests (Files): Likewise.
29692         * modules/wctype-tests (Files): Likewise.
29693         * modules/wcwidth-tests (Files): Likewise.
29694         * modules/xmemdup0-tests (Files): Likewise.
29695         * modules/xprintf-posix-tests (Files): Likewise.
29696         * modules/xvasprintf-tests (Files): Likewise.
29697
29698 2009-12-24  Eric Blake  <ebb9@byu.net>
29699
29700         test-nanosleep: fix typo
29701         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29702         patch.
29703         Reported by Bruno Haible.
29704
29705 2009-12-24  Bruno Haible  <bruno@clisp.org>
29706
29707         Reduce namespace pollution on glibc systems.
29708         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29709         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29710         systems.
29711         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29712         <getopt.h> on glibc systems.
29713         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29714         systems.
29715         * lib/fcntl.c: Include <unistd.h> here instead.
29716
29717 2009-12-24  Bruno Haible  <bruno@clisp.org>
29718
29719         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29720
29721 2009-12-24  Eric Blake  <ebb9@byu.net>
29722
29723         tests: add signature checks
29724         * tests/signature.h (SIGNATURE_CHECK): New file.
29725         * modules/atexit-tests (Files): Use it.
29726         * modules/btowc-tests (Files): Likewise.
29727         * modules/canonicalize-lgpl-tests (Files): Likewise.
29728         * modules/ceilf-tests (Files): Likewise.
29729         * modules/ceill-tests (Files): Likewise.
29730         * modules/chown-tests (Files): Likewise.
29731         * modules/dprintf-posix-tests (Files): Likewise.
29732         * modules/dup2-tests (Files): Likewise.
29733         * modules/dup3-tests (Files): Likewise.
29734         * modules/duplocale-tests (Files): Likewise.
29735         * modules/fchdir-tests (Files): Likewise.
29736         * modules/fcntl-tests (Files): Likewise.
29737         * modules/fdopendir-tests (Files): Likewise.
29738         * modules/fflush-tests (Files): Likewise.
29739         * modules/flock-tests (Files): Likewise.
29740         * modules/floorf-tests (Files): Likewise.
29741         * modules/floorl-tests (Files): Likewise.
29742         * modules/fnmatch-tests (Files): Likewise.
29743         * modules/fopen-tests (Files): Likewise.
29744         * modules/fprintf-posix-tests (Files): Likewise.
29745         * modules/freopen-tests (Files): Likewise.
29746         * modules/frexp-nolibm-tests (Files): Likewise.
29747         * modules/frexp-tests (Files): Likewise.
29748         * modules/frexpl-nolibm-tests (Files): Likewise.
29749         * modules/frexpl-tests (Files): Likewise.
29750         * modules/fseek-tests (Files): Likewise.
29751         * modules/fseeko-tests (Files): Likewise.
29752         * modules/fsync-tests (Files): Likewise.
29753         * modules/ftell-tests (Files): Likewise.
29754         * modules/ftello-tests (Files): Likewise.
29755         * modules/futimens-tests (Files): Likewise.
29756         * modules/getaddrinfo-tests (Files): Likewise.
29757         * modules/getcwd-tests (Files): Likewise.
29758         * modules/getdelim-tests (Files): Likewise.
29759         * modules/getdtablesize-tests (Files): Likewise.
29760         * modules/getgroups-tests (Files): Likewise.
29761         * modules/gethostname-tests (Files): Likewise.
29762         * modules/getline-tests (Files): Likewise.
29763         * modules/getopt-posix-tests (Files): Likewise.
29764         * modules/gettimeofday-tests (Files): Likewise.
29765         * modules/glob-tests (Files): Likewise.
29766         * modules/iconv-tests (Files): Likewise.
29767         * modules/inet_ntop-tests (Files): Likewise.
29768         * modules/inet_pton-tests (Files): Likewise.
29769         * modules/isblank-tests (Files): Likewise.
29770         * modules/lchown-tests (Files): Likewise.
29771         * modules/ldexpl-tests (Files): Likewise.
29772         * modules/link-tests (Files): Likewise.
29773         * modules/linkat-tests (Files): Likewise.
29774         * modules/lseek-tests (Files): Likewise.
29775         * modules/lstat-tests (Files): Likewise.
29776         * modules/mbrtowc-tests (Files): Likewise.
29777         * modules/mbsinit-tests (Files): Likewise.
29778         * modules/mbsnrtowcs-tests (Files): Likewise.
29779         * modules/mbsrtowcs-tests (Files): Likewise.
29780         * modules/memchr-tests (Files): Likewise.
29781         * modules/memcmp-tests (Files): Likewise.
29782         * modules/memmem-tests (Files): Likewise.
29783         * modules/memrchr-tests (Files): Likewise.
29784         * modules/mkdir-tests (Files): Likewise.
29785         * modules/mkfifo-tests (Files): Likewise.
29786         * modules/mkfifoat-tests (Files): Likewise.
29787         * modules/mknod-tests (Files): Likewise.
29788         * modules/nanosleep-tests (Files): Likewise.
29789         * modules/nl_langinfo-tests (Files): Likewise.
29790         * modules/obstack-printf-tests (Files): Likewise.
29791         * modules/open-tests (Files): Likewise.
29792         * modules/openat-tests (Files): Likewise.
29793         * modules/perror-tests (Files): Likewise.
29794         * modules/pipe2-tests (Files): Likewise.
29795         * modules/poll-tests (Files): Likewise.
29796         * modules/popen-tests (Files): Likewise.
29797         * modules/posix_spawn-tests (Files): Likewise.
29798         * modules/posix_spawnp-tests (Files): Likewise.
29799         * modules/pread-tests (Files): Likewise.
29800         * modules/printf-posix-tests (Files): Likewise.
29801         * modules/pty-tests (Files): Likewise.
29802         * modules/random_r-tests (Files): Likewise.
29803         * modules/rawmemchr-tests (Files): Likewise.
29804         * modules/readlink-tests (Files): Likewise.
29805         * modules/remove-tests (Files): Likewise.
29806         * modules/rename-tests (Files): Likewise.
29807         * modules/renameat-tests (Files): Likewise.
29808         * modules/rmdir-tests (Files): Likewise.
29809         * modules/round-tests (Files): Likewise.
29810         * modules/roundf-tests (Files): Likewise.
29811         * modules/roundl-tests (Files): Likewise.
29812         * modules/select-tests (Files): Likewise.
29813         * modules/setenv-tests (Files): Likewise.
29814         * modules/sigaction-tests (Files): Likewise.
29815         * modules/sleep-tests (Files): Likewise.
29816         * modules/snprintf-posix-tests (Files): Likewise.
29817         * modules/snprintf-tests (Files): Likewise.
29818         * modules/sprintf-posix-tests (Files): Likewise.
29819         * modules/stat-tests (Files): Likewise.
29820         * modules/strcasestr-tests (Files): Likewise.
29821         * modules/strchrnul-tests (Files): Likewise.
29822         * modules/strerror-tests (Files): Likewise.
29823         * modules/strsignal-tests (Files): Likewise.
29824         * modules/strstr-tests (Files): Likewise.
29825         * modules/strtod-tests (Files): Likewise.
29826         * modules/strverscmp-tests (Files): Likewise.
29827         * modules/symlink-tests (Files): Likewise.
29828         * modules/symlinkat-tests (Files): Likewise.
29829         * modules/times-tests (Files): Likewise.
29830         * modules/trunc-tests (Files): Likewise.
29831         * modules/truncf-tests (Files): Likewise.
29832         * modules/truncl-tests (Files): Likewise.
29833         * modules/tsearch-tests (Files): Likewise.
29834         * modules/uname-tests (Files): Likewise.
29835         * modules/unlink-tests (Files): Likewise.
29836         * modules/unsetenv-tests (Files): Likewise.
29837         * modules/usleep-tests (Files): Likewise.
29838         * modules/utimensat-tests (Files): Likewise.
29839         * modules/vasprintf-tests (Files): Likewise.
29840         * modules/vdprintf-posix-tests (Files): Likewise.
29841         * modules/vfprintf-posix-tests (Files): Likewise.
29842         * modules/vprintf-posix-tests (Files): Likewise.
29843         * modules/vsnprintf-posix-tests (Files): Likewise.
29844         * modules/vsnprintf-tests (Files): Likewise.
29845         * modules/vsprintf-posix-tests (Files): Likewise.
29846         * modules/wcrtomb-tests (Files): Likewise.
29847         * modules/wcsnrtombs-tests (Files): Likewise.
29848         * modules/wcsrtombs-tests (Files): Likewise.
29849         * modules/wcwidth-tests (Files): Likewise.
29850         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29851         * tests/test-isinf.c (isinf): Likewise.
29852         * tests/test-isnan.c (isnan): Likewise.
29853         * tests/test-signbit.c (signbit): Likewise.
29854         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29855         declaration, either as macro or with correct signature.
29856         (select): Ensure function under test is declared with correct
29857         signature in correct header.
29858         * tests/test-atexit.c (atexit): Likewise.
29859         * tests/test-btowc.c (btowc): Likewise.
29860         * tests/test-canonicalize-lgpl.c (realpath)
29861         (canonicalize_file_name): Likewise.
29862         * tests/test-ceilf1.c (ceilf): Likewise.
29863         * tests/test-ceill.c (ceill): Likewise.
29864         * tests/test-chown.c (chown): Likewise.
29865         * tests/test-dprintf-posix.c (dprintf): Likewise.
29866         * tests/test-dup2.c (dup2): Likewise.
29867         * tests/test-dup3.c (dup3): Likewise.
29868         * tests/test-duplocale.c (duplocale): Likewise.
29869         * tests/test-fchdir.c (fchdir): Likewise.
29870         * tests/test-fchownat.c (fchownat): Likewise.
29871         * tests/test-fcntl.c (fcntl): Likewise.
29872         * tests/test-fdopendir.c (fdopendir): Likewise.
29873         * tests/test-fflush.c (fflush): Likewise.
29874         * tests/test-flock.c (flock): Likewise.
29875         * tests/test-floorf1.c (floorf): Likewise.
29876         * tests/test-floorl.c (floorl): Likewise.
29877         * tests/test-fnmatch.c (fnmatch): Likewise.
29878         * tests/test-fopen.c (fopen): Likewise.
29879         * tests/test-fprintf-posix.c (fprintf): Likewise.
29880         * tests/test-freopen.c (freopen): Likewise.
29881         * tests/test-frexp.c (frexp): Likewise.
29882         * tests/test-frexpl.c (frexpl): Likewise.
29883         * tests/test-fseek.c (fseek): Likewise.
29884         * tests/test-fseeko.c (fseeko): Likewise.
29885         * tests/test-fstatat.c (fstatat): Likewise.
29886         * tests/test-fsync.c (fsync): Likewise.
29887         * tests/test-ftell.c (ftell): Likewise.
29888         * tests/test-ftello.c (ftello): Likewise.
29889         * tests/test-futimens.c (futimens): Likewise.
29890         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29891         (gai_strerror): Likewise.
29892         * tests/test-getcwd.c (getcwd): Likewise.
29893         * tests/test-getdelim.c (getdelim): Likewise.
29894         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29895         * tests/test-getgroups.c (getgroups): Likewise.
29896         * tests/test-gethostname.c (gethostname): Likewise.
29897         * tests/test-getline.c (getline): Likewise.
29898         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29899         Likewise.
29900         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29901         * tests/test-glob.c (glob, globfree): Likewise.
29902         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29903         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29904         * tests/test-inet_pton.c (inet_pton): Likewise.
29905         * tests/test-isblank.c (isblank): Likewise.
29906         * tests/test-lchown.c (lchown): Likewise.
29907         * tests/test-ldexpl.c (ldexpl): Likewise.
29908         * tests/test-link.c (link): Likewise.
29909         * tests/test-linkat.c (linkat): Likewise.
29910         * tests/test-lseek.c (lseek): Likewise.
29911         * tests/test-lstat.c (lstat): Likewise.
29912         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29913         * tests/test-mbsinit.c (mbsinit): Likewise.
29914         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29915         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29916         * tests/test-memchr.c (memchr): Likewise.
29917         * tests/test-memcmp.c (memcmp): Likewise.
29918         * tests/test-memmem.c (memmem): Likewise.
29919         * tests/test-memrchr.c (memrchr): Likewise.
29920         * tests/test-mkdir.c (mkdir): Likewise.
29921         * tests/test-mkdirat.c (mkdirat): Likewise.
29922         * tests/test-mkfifo.c (mkfifo): Likewise.
29923         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29924         * tests/test-mknod.c (mknod): Likewise.
29925         * tests/test-nanosleep.c (nanosleep): Likewise.
29926         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29927         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29928         Likewise.
29929         * tests/test-open.c (open): Likewise.
29930         * tests/test-openat.c (openat): Likewise.
29931         * tests/test-perror.c (perror): Likewise.
29932         * tests/test-pipe2.c (pipe2): Likewise.
29933         * tests/test-poll.c (poll): Likewise.
29934         * tests/test-popen.c (popen, pclose): Likewise.
29935         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29936         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29937         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29938         (posix_spawn_file_actions_destroy)
29939         (posix_spawn_file_actions_addclose)
29940         (posix_spawn_file_actions_addopen)
29941         (posix_spawn_file_actions_adddup2): Likewise.
29942         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29943         * tests/test-pread.c (pread): Likewise.
29944         * tests/test-printf-posix.c (printf): Likewise.
29945         * tests/test-pty.c (openpty, forkpty): Likewise.
29946         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29947         (random_r): Likewise.
29948         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29949         * tests/test-readlink.c (readlink): Likewise.
29950         * tests/test-remove.c (remove): Likewise.
29951         * tests/test-rename.c (rename): Likewise.
29952         * tests/test-renameat.c (renameat): Likewise.
29953         * tests/test-rmdir.c (rmdir): Likewise.
29954         * tests/test-round1.c (round): Likewise.
29955         * tests/test-roundf1.c (roundf): Likewise.
29956         * tests/test-roundl.c (roundl): Likewise.
29957         * tests/test-setenv.c (setenv): Likewise.
29958         * tests/test-sigaction.c (sigaction): Likewise.
29959         * tests/test-sleep.c (sleep): Likewise.
29960         * tests/test-snprintf.c (snprintf): Likewise.
29961         * tests/test-sprintf-posix.c (sprintf): Likewise.
29962         * tests/test-stat.c (stat): Likewise.
29963         * tests/test-stpncpy.c (stpncpy): Likewise.
29964         * tests/test-strcasestr.c (strcasestr): Likewise.
29965         * tests/test-strchrnul.c (strchrnul): Likewise.
29966         * tests/test-strerror.c (strerror): Likewise.
29967         * tests/test-strsignal.c (strsignal): Likewise.
29968         * tests/test-strstr.c (strstr): Likewise.
29969         * tests/test-strtod.c (strtod): Likewise.
29970         * tests/test-strverscmp.c (strverscmp): Likewise.
29971         * tests/test-symlink.c (symlink): Likewise.
29972         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29973         * tests/test-times.c (times): Likewise.
29974         * tests/test-trunc1.c (trunc): Likewise.
29975         * tests/test-truncf1.c (truncf): Likewise.
29976         * tests/test-truncl.c (truncl): Likewise.
29977         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29978         Likewise.
29979         * tests/test-uname.c (uname): Likewise.
29980         * tests/test-unlink.c (unlink): Likewise.
29981         * tests/test-unlinkat.c (unlinkat): Likewise.
29982         * tests/test-unsetenv.c (unsetenv): Likewise.
29983         * tests/test-usleep.c (usleep): Likewise.
29984         * tests/test-utimensat.c (utimensat): Likewise.
29985         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29986         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29987         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29988         * tests/test-vprintf-posix.c (vprintf): Likewise.
29989         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29990         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29991         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29992         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29993         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29994         * tests/test-wcwidth.c (wcwidth): Likewise.
29995
29996         build: pull in conditional headers during GNULIB_POSIXCHECK
29997         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29998         definitions from any conditionally-included headers.
29999         * lib/stdlib.in.h (includes): Likewise.
30000         * lib/unistd.in.h (includes): Likewise.
30001
30002 2009-12-24  Bruno Haible  <bruno@clisp.org>
30003
30004         * tests/test-argv-iter.c: Include header file being tested immediately
30005         after config.h.
30006         * tests/test-base64.c: Likewise.
30007         * tests/test-flock.c: Likewise.
30008         * tests/test-fsync.c: Likewise.
30009         * tests/test-getdate.c: Likewise.
30010         * tests/test-getndelim2.c: Likewise.
30011         * tests/test-isfinite.c: Likewise.
30012         * tests/test-isinf.c: Likewise.
30013         * tests/test-strerror.c: Likewise.
30014         * tests/test-strsignal.c: Likewise.
30015
30016 2009-12-23  Eric Blake  <ebb9@byu.net>
30017
30018         unistd: work around cygwin bug
30019         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30020         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30021         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30022
30023 2009-12-23  Bruno Haible  <bruno@clisp.org>
30024
30025         localename: More tests.
30026         * tests/test-localename.c (SIZEOF): New macro.
30027         (categories): New variable.
30028         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30029         test_locale_name_default): Add test w.r.t. thread locale.
30030         (test_locale_name_thread): New function.
30031         (main): Invoke it.
30032
30033         localename: Make aware of thread locale.
30034         * lib/localename.h (gl_locale_name_thread): New declaration.
30035         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30036         behaviour with respect to thread locale.
30037         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30038         <langinfo.h>, glthread/lock.h.
30039         (SIZE_BITS): New macro.
30040         (string_hash): New function.
30041         (struct hash_node): New type.
30042         (HASH_TABLE_SIZE): New macro.
30043         (struniq_hash_table, struniq_lock): New variables.
30044         (struniq): New function.
30045         (gl_locale_name_thread): New function.
30046         (gl_locale_name): Invoke it.
30047         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30048         * modules/localename (Depends-on): Add lock.
30049         Reported by Mike Gran <spk121@yahoo.com>.
30050
30051 2009-12-23  Eric Blake  <ebb9@byu.net>
30052
30053         va-args: new module
30054         * modules/va-args: New file.
30055         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30056         * MODULES.html.sh (Core language properties): Mention it.
30057
30058         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30059         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30060         named alias for __attribute__((__unused__)).
30061         * lib/chown.c: Update client.
30062         * lib/fchmodat.c: Likewise.
30063         * lib/fts.c: Likewise.
30064         * lib/getdate.y: Likewise.
30065         * lib/getgroups.c: Likewise.
30066         * lib/getopt.c: Likewise.
30067         * lib/getugroups.c: Likewise.
30068         * lib/mkdir.c: Likewise.
30069         * lib/mkfifo.c: Likewise.
30070         * lib/mkfifoat.c: Likewise.
30071         * lib/mknod.c: Likewise.
30072         * lib/mknodat.c: Likewise.
30073         * lib/readlink.c: Likewise.
30074         * lib/se-context.in.h: Likewise.
30075         * lib/se-selinux.in.h: Likewise.
30076         * lib/sockets.c: Likewise.
30077         * lib/symlink.c: Likewise.
30078         * lib/symlinkat.c: Likewise.
30079         * lib/unicodeio.c: Likewise.
30080         * lib/unistr.h: Likewise.
30081         * tests/test-areadlink.c: Likewise.
30082         * tests/test-areadlinkat.c: Likewise.
30083         * tests/test-filenamecat.c: Likewise.
30084         * tests/test-fseeko.c: Likewise.
30085         * tests/test-ftello.c: Likewise.
30086         * tests/test-getdate.c: Likewise.
30087         * tests/test-getgroups.c: Likewise.
30088         * tests/test-gethostname.c: Likewise.
30089         * tests/test-quotearg.c: Likewise.
30090         * tests/test-version-etc.c: Likewise.
30091         * tests/test-xalloc-die.c: Likewise.
30092         * tests/test-xfprintf-posix.c: Likewise.
30093         * tests/test-xprintf-posix.c: Likewise.
30094         * tests/test-xvasprintf.c: Likewise.
30095
30096         tests: avoid compiler warnings
30097         * tests/test-fcntl.c (main): Delete unused parameters.
30098         * tests/test-freopen-safer.c (main): Likewise.
30099         * tests/test-xalloc-die.c (main): Mark unused parameters.
30100         * tests/test-fseeko.c (main): Likewise.
30101         * tests/test-ftello.c (main): Likewise.
30102         * tests/test-nanosleep.c (main): Avoid declaration warning.
30103         * tests/test-sleep.c (main): Likewise.
30104         * tests/test-unsetenv.c (main): Silence warning about string
30105         literal.
30106         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30107
30108 2009-12-23  Bruno Haible  <bruno@clisp.org>
30109
30110         * tests/test-localename.c (test_locale_name): New function, extracted
30111         from main. Also test mixed situations.
30112         (test_locale_name_posix, test_locale_name_environ,
30113         test_locale_name_default): New functions.
30114         (main): Invoke them all.
30115         * modules/localename-tests (configure.ac): Test for newlocale.
30116
30117 2009-12-23  Bruno Haible  <bruno@clisp.org>
30118
30119         unistd: Ensure getcwd gets declared before being overridden.
30120         * lib/unistd.in.h: Conditionally include <io.h>.
30121
30122 2009-12-22  Bruno Haible  <bruno@clisp.org>
30123
30124         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30125         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30126         (gl_WCHAR_H): Invoke it.
30127         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30128         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30129         Reported by Karl Berry <karl@freefriends.org>.
30130
30131 2009-12-22  Eric Blake  <ebb9@byu.net>
30132
30133         math, unistd: avoid redundant includes
30134         * lib/math.in.h (isnan): No need to re-include <math.h>.
30135         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30136
30137         getsubopt: work around cygwin bug
30138         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30139         avoid conflicting with system getsubopt.
30140         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30141         bug.
30142
30143         getopt: synchronize from glibc
30144         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30145         parameter order.  Adjust all callers.
30146         (_getopt_internal_r, main): Adjust quoting in error messages.
30147         Drop considerations for outdated POSIX 1003.2 error message.
30148         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30149         callers.
30150         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30151
30152         test-getopt: test stderr behavior
30153         * modules/getopt-posix-tests (Depends-on): Add dup2.
30154         * tests/test-getopt.c (ASSERT): Avoid stderr.
30155         (main): Move stderr to a temporary file.
30156         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30157         Instead, add parameter to inform caller if output occurred.
30158         (test_getopt): Adjust all existing tests to expect silence, and
30159         add new tests of leading ":".
30160         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30161         glibc shortcomings with leading "-:" or "+:" in optstring.
30162         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30163         Likewise.
30164         * doc/posix-functions/getopt.texi (getopt): Likewise.
30165
30166         test-getopt: enhance test
30167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30168         supports optind=0.
30169         * tests/test-getopt.c (OPTIND_MIN): Move...
30170         * tests/test-getopt.h (OPTIND_MIN): ...here.
30171         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30172         Require that optind=0 works, since modern BSD supports it in
30173         addition to optreset, and since coreutils expects it.
30174         (test_getopt_long_only): New test.
30175         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30176         glibc shortcomings with 'W;', and enforcement of optind=0.
30177         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30178         Likewise.
30179
30180 2009-12-21  Bruno Haible  <bruno@clisp.org>
30181
30182         localename: Improvements for MacOS X and Cygwin.
30183         * lib/localename.h (gl_locale_name_environ): New declaration.
30184         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30185         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30186         (gl_locale_name_posix): Invoke it.
30187         (gl_locale_name_default): Add comments. Use Windows native API also on
30188         Cygwin.
30189
30190 2009-12-21  Bruno Haible  <bruno@clisp.org>
30191
30192         Update list of Win32 locale ids.
30193         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30194         (LANG_SAMI): Renamed from LANG_SAAMI.
30195         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30196         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30197         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30198         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30199         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30200         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30201         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30202         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30203         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30204         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30205         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30206         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30207         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30208         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30209         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30210         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30211         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30212         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30213         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30214         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30215         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30216         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30217         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30218         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30219         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30220         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30221         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30222         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30223         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30224         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30225         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30226         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30227         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30228         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30229         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30230         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30231         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30232         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30233         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30234         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30235         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30236         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30237         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30238         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30239         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30240         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30241         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30242         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30243         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30244         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30245         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30246         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30247         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30248         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30249         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30250         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30251         Add more languages and countries for Sami, Sorbian. Add more countries
30252         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30253         for Pashto. Change country for Syriac, Tswana.
30254
30255 2009-12-21  Eric Blake  <ebb9@byu.net>
30256
30257         test-utimens: avoid spurious failure
30258         * tests/test-chown.h (nap): Factor...
30259         * tests/nap.h: ...into new file.
30260         * tests/test-lchown.h (nap): Avoid duplication.
30261         * tests/test-utimens-common.h (nap): Use shared implementation,
30262         necessary on file systems with 1-second resolution.
30263         * modules/chown-tests (Files): Include new file.
30264         * modules/fdutimensat-tests (Files): Likewise.
30265         * modules/futimens-tests (Files): Likewise.
30266         * modules/lchown-tests (Files): Likewise.
30267         * modules/openat-tests (Files): Likewise.
30268         * modules/utimens-tests (Files): Likewise.
30269         * modules/utimensat-tests (Files): Likewise.
30270
30271 2009-12-19  Eric Blake  <ebb9@byu.net>
30272
30273         futimens, utimensat: work around Linux bug
30274         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30275         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30276         * lib/utimensat.c (rpl_utimensat): Work around it.
30277         * lib/futimens.c (rpl_futimens): Adjust comment.
30278
30279         utimens: work around Linux ctime bug
30280         * lib/utimens.c (detect_ctime_bug): New helper function.
30281         (update_timespec): Differentiate between workaround needed for
30282         this bug vs. what is needed for systems that lack utimensat.
30283         (fdutimens, lutimens): Work around bug.
30284
30285         utimens: check for ctime update
30286         * tests/test-utimens-common.h (check_ctime): Define.
30287         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30288         * tests/test-futimens.h (test_futimens): Likewise.
30289         * tests/test-lutimens.h (test_lutimens): Likewise.
30290         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30291         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30292
30293 2009-12-19  Bruno Haible  <bruno@clisp.org>
30294
30295         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30296         * tests/test-dprintf-posix2.sh: New file.
30297         * tests/test-dprintf-posix2.c: New file.
30298         * modules/dprintf-posix-tests (Files): Add them.
30299         (configure.ac): Check for getrlimit and setrlimit.
30300         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30301
30302 2009-12-19  Bruno Haible  <bruno@clisp.org>
30303
30304         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30305         * tests/test-fprintf-posix3.sh: New file.
30306         * tests/test-fprintf-posix3.c: New file.
30307         * modules/fprintf-posix-tests (Files): Add them.
30308         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30309
30310 2009-12-19  Eric Blake  <ebb9@byu.net>
30311
30312         dirfd: fix prototype
30313         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30314         * lib/dirfd.c (dirfd): Likewise.
30315
30316         canonicalize: reduce memory usage
30317         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30318         allocation to size.
30319         Reported by Solar Designer <solar@openwall.com>.
30320
30321 2009-12-19  Bruno Haible  <bruno@clisp.org>
30322
30323         New module attribute 'Applicability'.
30324         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30325         * gnulib-tool: New option --extract-applicability.
30326         (func_usage): Document it.
30327         (sed_extract_prog): Recognize it.
30328         (func_get_applicability): New function.
30329         (func_import): Generalize handling of 'link-warning' module.
30330         * modules/link-warning (Applicability): New section.
30331         * modules/arg-nonnull (Applicability): New section.
30332         Repoted by Simon Josefsson <simon@josefsson.org>.
30333
30334 2009-12-19  Bruno Haible  <bruno@clisp.org>
30335
30336         fflush: tweak
30337         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30338         * lib/fseeko.c (rpl_fseeko): Likewise.
30339
30340 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30341
30342         * lib/gl_list.h: Fix typo in comment.
30343
30344 2009-12-16  Eric Blake  <ebb9@byu.net>
30345
30346         fcntl: use to simplify other modules
30347         * modules/cloexec (Depends-on): Add fcntl.
30348         * modules/fchdir (Depends-on): Likewise.
30349         * modules/fd-safer-flag (Depends-on): Likewise.
30350         * modules/unistd-safer (Depends-on): Likewise.
30351         * modules/dup3 (configure.ac): Set module indicator.
30352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30353         missing.
30354         * lib/fchdir.c (_gl_register_dup): Fix comment.
30355         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30356         * lib/dup-safer.c (dup_safer): Likewise.
30357         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30358         * lib/dup3.c (dup3): Likewise.
30359         * tests/test-fchdir.c (main): Enhance test.
30360         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30361
30362         fcntl: port portions of fcntl to mingw
30363         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30364         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30365         replacement for mingw.
30366         * modules/fcntl (Description): Update.
30367         (Depends-on): Add dup2.
30368         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30369         * modules/fcntl-h (Makefile.am): Substitute it.
30370         * lib/fcntl.in.h (fcntl): Update declaration.
30371         (F_DUPFD, F_GETFD): New macros, when needed.
30372         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30373         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30374         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30375         we now guarantee.
30376
30377         fcntl: work around cygwin bug in F_DUPFD
30378         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30379         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30380         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30381         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30382         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30383
30384         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30385         * modules/fcntl (Files): List new files.
30386         (configure.ac): Run a test.
30387         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30388         * lib/fcntl.c (rpl_fcntl): Likewise.
30389         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30390         (gl_FCNTL_H): Always replace fcntl.h.
30391         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30392         * lib/fcntl.in.h (fcntl): Declare replacement.
30393         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30394         needed, plus a witness.
30395         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30396         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30397         * tests/test-fcntl.c: New file.
30398         * modules/fcntl-tests: Likewise.
30399
30400         binary-io: avoid potential compilation warning
30401         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30402         directives.
30403
30404         fflush: avoid compilation error on NetBSD
30405         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30406         between off_t and fpos_t, since the latter is sometimes a struct.
30407         * lib/fseeko.c (rpl_fseeko): Likewise.
30408         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30409
30410 2009-12-15  Eric Blake  <ebb9@byu.net>
30411
30412         fcntl-h, stdio, sys_ioctl: fix declarations
30413         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30414         function must not take arguments.
30415         * lib/sys_ioctl.in.h (ioctl): Likewise.
30416         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30417         (open): Add a link warning.
30418
30419 2009-12-15  Jim Meyering  <meyering@redhat.com>
30420
30421         areadlink, areadlink-with-size: relax license to LGPLv2+
30422         * modules/areadlink (License): Relax to LGPLv2+.
30423         * modules/areadlink-with-size (License): Likewise.
30424
30425 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30426             Bruno Haible  <bruno@clisp.org>
30427
30428         *printf: Fix memory leak.
30429         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30430         * lib/vfprintf.c (vfprintf): Likewise.
30431         * lib/dprintf.c (dprintf): Likewise.
30432         * lib/vdprintf.c (vdprintf): Likewise.
30433
30434 2009-12-14  Eric Blake  <ebb9@byu.net>
30435
30436         accept4: adjust module dependencies
30437         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30438
30439         utimens: one more try at avoiding compiler warning
30440         * lib/utimens.c (lutimens): Lower scope of result.
30441
30442 2009-12-13  Bruno Haible  <bruno@clisp.org>
30443
30444         Move the malloc checking from module 'list' to new module 'xlist'.
30445         * modules/xlist: New file.
30446         * lib/gl_xlist.h: New file.
30447         * lib/gl_xlist.c: New file.
30448         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30449         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30450         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30451         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30452         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30453         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30454         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30455         gl_sortedlist_nx_add): New declarations.
30456         (struct gl_list_implementation): Rename and change methods accordingly.
30457         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30458         (gl_list_nx_create): Renamed from gl_list_create.
30459         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30460         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30461         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30462         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30463         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30464         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30465         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30466         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30467         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30468         gl_list_create_empty.
30469         (gl_list_nx_create): Renamed from gl_list_create.
30470         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30471         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30472         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30473         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30474         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30475         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30476         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30477         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30478         * lib/gl_array_list.c: Don't include xalloc.h.
30479         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30480         NULL upon out-of-memory.
30481         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30482         out-of-memory.
30483         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30484         Change return type to 'int'.
30485         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30486         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30487         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30488         upon out-of-memory.
30489         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30490         upon out-of-memory.
30491         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30492         upon out-of-memory.
30493         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30494         upon out-of-memory.
30495         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30496         out-of-memory.
30497         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30498         Update.
30499         (gl_array_list_implementation): Update.
30500         * lib/gl_carray_list.c: Don't include xalloc.h.
30501         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30502         Return NULL upon out-of-memory.
30503         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30504         out-of-memory.
30505         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30506         Change return type to 'int'.
30507         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30508         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30509         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30510         upon out-of-memory.
30511         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30512         upon out-of-memory.
30513         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30514         out-of-memory.
30515         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30516         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30517         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30518         Update.
30519         (gl_carray_list_implementation): Update.
30520         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30521         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30522         gl_linked_create_empty. Return NULL upon out-of-memory.
30523         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30524         out-of-memory.
30525         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30526         Change return type to 'int'. Return -1 upon out-of-memory.
30527         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30528         out-of-memory.
30529         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30530         upon out-of-memory.
30531         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30532         upon out-of-memory.
30533         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30534         NULL upon out-of-memory.
30535         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30536         upon out-of-memory.
30537         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30538         out-of-memory.
30539         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30540         Update.
30541         * lib/gl_linked_list.c: Don't include xalloc.h.
30542         (gl_linked_list_implementation): Update.
30543         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30544         (add_to_bucket): Change return type to 'int'.
30545         (gl_linkedhash_list_implementation): Update.
30546         * lib/gl_anytree_list1.h (free_subtree): New function.
30547         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30548         gl_tree_create_empty. Return NULL upon out-of-memory.
30549         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30550         Change return type to 'int'. Return -1 upon out-of-memory.
30551         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30552         out-of-memory.
30553         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30554         (gl_tree_remove_node): New function, moved here from
30555         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30556         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30557         Update.
30558         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30559         malloc, not xmalloc. Return NULL upon out-of-memory.
30560         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30561         out-of-memory.
30562         (gl_tree_remove_node_from_tree): New function, extracted from
30563         gl_tree_remove_node.
30564         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30565         upon out-of-memory.
30566         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30567         out-of-memory.
30568         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30569         upon out-of-memory.
30570         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30571         upon out-of-memory.
30572         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30573         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30574         not xmalloc. Return NULL upon out-of-memory.
30575         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30576         out-of-memory.
30577         (gl_tree_remove_node_from_tree): New function, extracted from
30578         gl_tree_remove_node.
30579         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30580         upon out-of-memory.
30581         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30582         out-of-memory.
30583         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30584         upon out-of-memory.
30585         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30586         upon out-of-memory.
30587         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30588         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30589         gl_anytree_list1.h before gl_anyavltree_list2.h.
30590         (gl_avltree_list_implementation): Update.
30591         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30592         gl_anytree_list1.h before gl_anyavltree_list2.h.
30593         (gl_rbtree_list_implementation): Update.
30594         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30595         Change return type to 'int'. Return -1 upon out-of-memory. Use
30596         __builtin_expect.
30597         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30598         (gl_avltreehash_list_implementation): Update.
30599         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30600         (gl_rbtreehash_list_implementation): Update.
30601         * modules/array-list (Depends-on): Remove xalloc.
30602         * modules/carray-list (Depends-on): Likewise.
30603         * modules/linked-list (Depends-on): Likewise.
30604         * modules/linkedhash-list (Depends-on): Likewise.
30605         * modules/avltree-list (Depends-on): Likewise.
30606         * modules/rbtree-list (Depends-on): Likewise.
30607         * modules/avltreehash-list (Depends-on): Likewise.
30608         * modules/rbtreehash-list (Depends-on): Likewise.
30609
30610         * modules/xsublist: New file.
30611         * lib/gl_xsublist.h: New file.
30612         * lib/gl_xsublist.c: New file.
30613         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30614         (gl_sublist_nx_create): New declaration.
30615         * lib/gl_sublist.c: Don't include xalloc.h.
30616         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30617         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30618         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30619         Change return type to 'int'. Return -1 upon out-of-memory.
30620         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30621         upon out-of-memory.
30622         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30623         NULL upon out-of-memory.
30624         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30625         upon out-of-memory.
30626         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30627         NULL upon out-of-memory.
30628         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30629         NULL upon out-of-memory.
30630         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30631         upon out-of-memory.
30632         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30633         (gl_sublist_list_implementation): Update.
30634         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30635         upon out-of-memory.
30636         * modules/sublist (Depends-on): Remove xalloc.
30637
30638         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30639         * tests/test-carray_list.c: Likewise.
30640         * tests/test-linked_list.c: Likewise.
30641         * tests/test-linkedhash_list.c: Likewise.
30642         * tests/test-avltree_list.c: Likewise.
30643         * tests/test-rbtree_list.c: Likewise.
30644         * tests/test-avltreehash_list.c: Likewise.
30645         * tests/test-rbtreehash_list.c: Likewise.
30646         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30647         * modules/carray-list-tests (Makefile.am): Likewise.
30648         * modules/linked-list-tests (Makefile.am): Likewise.
30649         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30650         * modules/avltree-list-tests (Makefile.am): Likewise.
30651         * modules/rbtree-list-tests (Makefile.am): Likewise.
30652         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30653         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30654
30655         * NEWS: Mention the changes.
30656
30657         * lib/clean-temp.c: Include gl_xlist.h.
30658         * modules/clean-temp (Depends-on): Add xlist.
30659
30660         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30661         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30662
30663         * tests/test-array_oset.c: Include gl_xlist.h.
30664         * modules/array-oset-tests (Depends-on): Add xlist.
30665
30666         Reported by José E. Marchesi <jemarch@gnu.org>.
30667
30668 2009-12-13  Bruno Haible  <bruno@clisp.org>
30669
30670         Move the malloc checking from module 'oset' to new module 'xoset'.
30671         * modules/xoset: New file.
30672         * lib/gl_xoset.h: New file.
30673         * lib/gl_xoset.c: New file.
30674         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30675         declarations.
30676         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30677         (struct gl_oset_implementation): Rename and change methods accordingly.
30678         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30679         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30680         'int'. Mark as __warn_unused_result__.
30681         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30682         gl_oset_create_empty.
30683         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30684         'int'.
30685         * lib/gl_array_oset.c: Don't include xalloc.h.
30686         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30687         malloc, not xmalloc.
30688         (grow): Change return type to 'int'. Don't call xalloc_die.
30689         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30690         to 'int'.
30691         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30692         'int'.
30693         (gl_array_oset_implementation): Update.
30694         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30695         gl_tree_create_empty.
30696         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30697         'int'.
30698         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30699         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30700         xmalloc.
30701         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30702         not xmalloc.
30703         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30704         xmalloc.
30705         (gl_avltree_oset_implementation): Update.
30706         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30707         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30708         xmalloc.
30709         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30710         not xmalloc.
30711         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30712         xmalloc.
30713         (gl_rbtree_oset_implementation): Update.
30714         * modules/array-oset (Depends-on): Remove xalloc.
30715         * modules/avltree-oset (Depends-on): Likewise.
30716         * modules/rbtree-oset (Depends-on): Likewise.
30717         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30718         * tests/test-avltree_oset.c: Likewise.
30719         * tests/test-rbtree_oset.c: Likewise.
30720         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30721         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30722         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30723         * NEWS: Mention the change.
30724
30725 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30726
30727         maint.mk: allow a project to override release-prep commands
30728         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30729         commands into a new rule.
30730         (release-prep): New rule.
30731         (release-prep-hook): New overridable variable.
30732
30733 2009-12-13  Bruno Haible  <bruno@clisp.org>
30734
30735         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30736
30737 2009-12-13  Jim Meyering  <meyering@redhat.com>
30738
30739         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30740         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30741
30742 2009-12-12  Bruno Haible  <bruno@clisp.org>
30743
30744         duplocale: Tweak.
30745         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30746
30747 2009-12-12  Karl Berry  <karl@gnu.org>
30748
30749         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30750
30751 2009-12-12  Bruno Haible  <bruno@clisp.org>
30752
30753         * m4/po.m4: Undo incorrect untabification.
30754
30755 2009-12-12  Bruno Haible  <bruno@clisp.org>
30756
30757         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30758         * modules/c-strtod (Depends-on): Add locale.
30759         * modules/c-strtold (Depends-on): Likewise.
30760
30761 2009-12-12  Bruno Haible  <bruno@clisp.org>
30762
30763         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30764
30765 2009-12-11  Eric Blake  <ebb9@byu.net>
30766
30767         setenv: relax requirement in light of POSIX ruling
30768         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30769         not NULL.
30770         * tests/test-setenv.c (main): Relax test.
30771         * tests/test-unsetenv.c (main): Likewise.
30772         * doc/posix-functions/setenv.texi (setenv): Document this.
30773         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30774
30775 2009-12-11  Bruno Haible  <bruno@clisp.org>
30776
30777         New module 'fd-safer-flag'.
30778         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30779         * lib/dup-safer.c (dup_safer_flag): Remove function.
30780         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30781         * lib/fd-safer.c (fd_safer_flag): Remove function.
30782         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30783         * modules/cloexec (configure.ac): Drop indicator macro.
30784         * modules/fd-safer-flag: New file.
30785         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30786         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30787         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30788
30789 2009-12-11  Bruno Haible  <bruno@clisp.org>
30790
30791         Tests for module 'nl_langinfo'.
30792         * modules/nl_langinfo-tests: New file.
30793         * tests/test-nl_langinfo.sh: New file.
30794         * tests/test-nl_langinfo.c: New file.
30795
30796         New module 'nl_langinfo'.
30797         * lib/nl_langinfo.c: New file.
30798         * m4/nl_langinfo.m4: New file.
30799         * modules/nl_langinfo: New file.
30800         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30801
30802 2009-12-11  Bruno Haible  <bruno@clisp.org>
30803
30804         Tests for module 'langinfo'.
30805         * modules/langinfo-tests: New file.
30806         * tests/test-langinfo.c: New file.
30807
30808         New module 'langinfo'.
30809         * lib/langinfo.in.h: New file.
30810         * m4/langinfo_h.m4: New file.
30811         * modules/langinfo: New file.
30812         * doc/posix-headers/langinfo.texi: Mention the new module.
30813
30814 2009-12-11  Bruno Haible  <bruno@clisp.org>
30815
30816         * lib/config.charset: Untabify.
30817
30818 2009-12-11  Bruno Haible  <bruno@clisp.org>
30819
30820         * modules/unistd-safer (configure.ac): Drop indicator macro.
30821
30822 2009-12-11  Bruno Haible  <bruno@clisp.org>
30823
30824         Move pipe2-safer code to its own file.
30825         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30826         * lib/pipe-safer.c (pipe2_safer): Remove function.
30827         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30828         (Makefile.am): Add it to lib_SOURCES.
30829
30830 2009-12-10  Bruno Haible  <bruno@clisp.org>
30831
30832         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30833
30834 2009-12-10  Bruno Haible  <bruno@clisp.org>
30835
30836         Declare which arguments expect non-NULL values, for GCC and clang.
30837         * build-aux/arg-nonnull.h: New file.
30838         * modules/arg-nonnull: New file.
30839         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30840         (inet_ntop, inet_pton): Use it.
30841         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30842         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30843         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30844         (open, openat): Use it.
30845         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30846         (fnmatch): Use it.
30847         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30848         (getopt, getopt_long, getopt_long_only): Use it.
30849         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30850         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30851         Use it.
30852         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30853         (iconv_open): Use it.
30854         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30855         (strtoimax, strtoumax): Use it.
30856         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30857         (duplocale): Use it.
30858         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30859         (frexp, frexpl): Use it.
30860         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30861         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30862         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30863         (tsearch, tfind, tdelete, twalk): Use it.
30864         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30865         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30866         sigpending): Use it.
30867         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30868         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30869         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30870         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30871         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30872         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30873         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30874         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30875         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30876         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30877         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30878         Use it.
30879         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30880         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30881         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30882         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30883         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30884         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30885         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30886         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30887         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30888         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30889         strtoull, unsetenv): Use it.
30890         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30891         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30892         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30893         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30894         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30895         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30896         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30897         (strcasecmp, strncasecmp): Use it.
30898         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30899         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30900         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30901         rpl_setsockopt): Use it.
30902         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30903         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30904         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30905         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30906         (gettimeofday): Use it.
30907         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30908         (times): Use it.
30909         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30910         (uname): Use it.
30911         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30912         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30913         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30914         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30915         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30916         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30917         unlinkat, write): Use it.
30918         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30919         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30920         * lib/argv-iter.h: Include arg-nonnull.h.
30921         (_ATTRIBUTE_NONNULL_): Remove macro.
30922         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30923         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30924         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30925         optimization.
30926         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30927         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30928         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30929         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30930         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30931         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30932         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30933         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30934         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30935         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30936         * modules/dirent (Depends-on): Add arg-nonnull.
30937         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30938         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30939         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30940         * modules/fnmatch (Depends-on): Add arg-nonnull.
30941         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30942         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30943         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30944         * modules/glob (Depends-on): Add arg-nonnull.
30945         (Makefile.am): Insert arg-nonnull.h into glob.h.
30946         * modules/iconv_open (Depends-on): Add arg-nonnull.
30947         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30948         * modules/inttypes (Depends-on): Add arg-nonnull.
30949         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30950         * modules/locale (Depends-on): Add arg-nonnull.
30951         (Makefile.am): Insert arg-nonnull.h into locale.h.
30952         * modules/math (Depends-on): Add arg-nonnull.
30953         (Makefile.am): Insert arg-nonnull.h into math.h.
30954         * modules/netdb (Depends-on): Add arg-nonnull.
30955         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30956         * modules/search (Depends-on): Add arg-nonnull.
30957         (Makefile.am): Insert arg-nonnull.h into search.h.
30958         * modules/signal (Depends-on): Add arg-nonnull.
30959         (Makefile.am): Insert arg-nonnull.h into signal.h.
30960         * modules/spawn (Depends-on): Add arg-nonnull.
30961         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30962         * modules/stdio (Depends-on): Add arg-nonnull.
30963         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30964         * modules/stdlib (Depends-on): Add arg-nonnull.
30965         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30966         * modules/string (Depends-on): Add arg-nonnull.
30967         (Makefile.am): Insert arg-nonnull.h into string.h.
30968         * modules/strings (Depends-on): Add arg-nonnull.
30969         (Makefile.am): Insert arg-nonnull.h into strings.h.
30970         * modules/sys_socket (Depends-on): Add arg-nonnull.
30971         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30972         * modules/sys_stat (Depends-on): Add arg-nonnull.
30973         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30974         * modules/sys_time (Depends-on): Add arg-nonnull.
30975         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30976         * modules/sys_times (Depends-on): Add arg-nonnull.
30977         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30978         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30979         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30980         * modules/time (Depends-on): Add arg-nonnull.
30981         (Makefile.am): Insert arg-nonnull.h into time.h.
30982         * modules/unistd (Depends-on): Add arg-nonnull.
30983         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30984         * modules/wchar (Depends-on): Add arg-nonnull.
30985         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30986         * modules/argv-iter (Depends-on): Add arg-nonnull.
30987         * tests/test-canonicalize.c (null_ptr): New function.
30988         (main): Use it.
30989         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30990         (main): Use it.
30991         * tests/test-memmem.c (null_ptr): New function.
30992         (main): Use it.
30993         Reported by Jim Meyering.
30994
30995 2009-12-10  Bruno Haible  <bruno@clisp.org>
30996
30997         Use spaces for indentation, not tabs.
30998         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30999         * m4/*.m4: Untabify.
31000         * build-aux/*.h: Untabify.
31001         * tests/**/*.[hc]: Untabify.
31002         * README: New section "Indent with spaces, not TABs", based on
31003         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31004         * NEWS: Mention the change.
31005
31006 2009-12-10  Bruno Haible  <bruno@clisp.org>
31007
31008         pty test: Fix link error.
31009         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31010         test_pty_LDADD.
31011
31012 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31013
31014         * modules/pty: New file.
31015         * modules/pty-tests: New file.
31016         * m4/pty.m4: New file.
31017         * tests/test-pty.c: New file.
31018         * doc/glibc-headers/pty.texi: Modified.
31019         * doc/glibc-functions/forkpty.texi: Modified.
31020         * doc/glibc-functions/openpty.texi: Modified.
31021
31022 2009-12-10  Bruno Haible  <bruno@clisp.org>
31023
31024         Avoid syntax error in C++ mode.
31025         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31026
31027 2009-12-10  Bruno Haible  <bruno@clisp.org>
31028
31029         Use sed with option -e.
31030         * gnulib-tool (func_version, func_emit_copyright_notice,
31031         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31032         option -e to sed.
31033         * modules/link-warning (Makefile.am): Likewise.
31034
31035 2009-12-10  Jim Meyering  <meyering@redhat.com>
31036
31037         mgetgroups: do not write bytes beyond end of malloc'd buffer
31038         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31039         username, we call getgroups with a one-element-shorter buffer,
31040         but still told it the length was original, max_n_groups.
31041
31042 2009-12-09  Eric Blake  <ebb9@byu.net>
31043
31044         cloexec: relax license
31045         * modules/cloexec (Maintainer): Add myself.
31046         (License): Use LGPL, not GPL.
31047
31048         link-warning: optimize generation
31049         * modules/link-warning (Makefile.am): Reduce process usage.
31050
31051 2009-12-09  Bruno Haible  <bruno@clisp.org>
31052
31053         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31054         workaround was added on 2009-11-17.
31055
31056 2009-12-09  Jim Meyering  <meyering@redhat.com>
31057             Bruno Haible  <bruno@clisp.org>
31058
31059         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31060         * modules/link-warning (Makefile.am): Make the comment-removing sed
31061         command more robust in the face of bootstrap-prepended comment lines.
31062
31063 2009-12-09  Bruno Haible  <bruno@clisp.org>
31064
31065         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31066         most one group.
31067
31068 2009-12-09  Simon Josefsson <simon@josefsson.org>
31069             Bruno Haible  <bruno@clisp.org>
31070
31071         * build-aux/link-warning.h: Add copyright notice.
31072         * modules/link-warning (Makefile.am): Generate link-warning.h from
31073         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31074         * NEWS: Mention change in link-warning module.
31075         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31076         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31077         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31078         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31079         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31080         * modules/math (Makefile.am): Add dependency to math.h.
31081         * modules/search (Makefile.am): Add dependency to search.h.
31082         * modules/signal (Makefile.am): Add dependency to signal.h.
31083         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31084         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31085         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31086         * modules/string (Makefile.am): Add dependency to string.h.
31087         * modules/strings (Makefile.am): Add dependency to strings.h.
31088         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31089         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31090         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31091         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31092         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31093         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31094         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31095         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31096         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31097
31098 2009-12-09  Bruno Haible  <bruno@clisp.org>
31099
31100         fchdir: Optimize away rpl_fstat when possible.
31101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31102         REPLACE_OPEN_DIRECTORY.
31103         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31104
31105 2009-12-09  Bruno Haible  <bruno@clisp.org>
31106
31107         * lib/fchdir.c: Update comment.
31108
31109 2009-12-09  Bruno Haible  <bruno@clisp.org>
31110
31111         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31112
31113 2009-12-08  Eric Blake  <ebb9@byu.net>
31114
31115         fchdir: avoid memory leak on re-registration.
31116         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31117
31118 2009-12-08  Jim Meyering  <meyering@redhat.com>
31119
31120         init.sh: avoid Solaris 10 /bin/sh portability problem
31121         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31122         sourced script:
31123           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31124           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31125           bar
31126         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31127         and two tests used that idiom.
31128         * tests/init.sh: Update suggested usage comments.
31129         (path_prepend_): New function, to be used in place
31130         of the --src-path=DIR option.
31131         (setup_): Move PATH-prepending code into path_prepend_.
31132         * tests/test-pread.sh: Adapt to new usage.
31133         * tests/test-xalloc-die.sh: Likewise.
31134
31135 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31136
31137         * doc/gnulib.texi (Glibc pty.h): Add.
31138         * doc/glibc-functions/forkpty.texi: Add.
31139         * doc/glibc-functions/openpty.texi: Add.
31140         Suggested by Bruno Haible.
31141
31142 2009-12-08  Eric Blake  <ebb9@byu.net>
31143
31144         fchdir: fix logic bugs
31145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31146         * tests/test-fchdir.c (main): Enhance test.
31147         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31148         is in use.
31149
31150         dup2: fix logic bugs
31151         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31152         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31153         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31154         exists.
31155         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31156
31157 2009-12-07  Eric Blake  <ebb9@byu.net>
31158
31159         unlink: fix m4 detection
31160         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31161
31162         unistd-safer: add unit test
31163         * modules/unistd-safer-tests: New file.
31164         * tests/test-dup-safer.c: Likewise.
31165         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31166         * tests/test-dup2.c (setmode): Likewise.
31167         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31168
31169         cloexec: preserve text vs. binary across dup_cloexec
31170         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31171         mode.
31172         * modules/dup2-tests (Depends-on): Add binary-io.
31173         * modules/cloexec-tests (Depends-on): Likewise.
31174         * tests/test-dup2.c (setmode, is_mode): New helpers.
31175         (main): Add tests that translation mode is preserved.
31176         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31177         Reported by Bruno Haible.
31178
31179         mgetgroups: reduce duplicate listings
31180         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31181         resulting array.
31182         * tests/test-chown.h (test_chown): Simplify client.
31183         * tests/test-lchown.h (test_lchown): Likewise.
31184
31185 2009-12-06  Bruno Haible  <bruno@clisp.org>
31186
31187         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31188         value.
31189
31190 2009-12-06  Bruno Haible  <bruno@clisp.org>
31191
31192         * lib/progname.c: Include stdio.h, stdlib.h.
31193         (set_program_name): Reject a NULL argument.
31194
31195 2009-12-05  Eric Blake  <ebb9@byu.net>
31196
31197         pipe2-safer: new module
31198         * modules/pipe2-safer: New file.
31199         * lib/unistd-safer.h (pipe2_safer): New prototype.
31200         * lib/unistd--.h (pipe2): New wrapper.
31201         * lib/pipe-safer.c (pipe2_safer): New function.
31202         * modules/pipe (Depends-on): Add pipe2-safer.
31203         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31204
31205         stdlib-safer: preserve cloexec flag for mkostemp[s]
31206         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31207         fd_safer_flag.
31208
31209         unistd-safer: allow preservation of cloexec status via flag
31210         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31211         prototypes.
31212         * lib/dup-safer.c (dup_safer_flag): New function.
31213         * lib/fd-safer.c (fd_safer_flag): Likewise.
31214         * modules/cloexec (configure.ac): Set witness.
31215
31216         test-dup2: enhance test
31217         * modules/dup2-tests (Depends-on): Add cloexec.
31218         * tests/test-dup2.c (main): Enhance test.
31219
31220         cloexec: add dup_cloexec
31221         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31222         header and comments.
31223         * lib/cloexec.c (set_cloexec_flag): Add comments.
31224         (dup_cloexec): New function, with mingw implementation borrowed
31225         from...
31226         * lib/w32spawn.h (dup_noinherit): ...here.
31227         * modules/execute (Depends-on): Add cloexec.
31228         * modules/pipe (Depends-on): Likewise.
31229         * modules/cloexec (Depends-on): Add dup2.
31230         * modules/cloexec-tests (Files): New file.
31231         * tests/test-cloexec.c: Likewise.
31232
31233         test-xalloc-die: fix test for mingw
31234         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31235         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31236         directory and .exe suffix off argv[0] output.
31237
31238         test-fseeko: fix test for mingw
31239         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31240         than undefining fseek, so test will pass on mingw.
31241
31242 2009-12-05  Bruno Haible  <bruno@clisp.org>
31243
31244         * lib/progname.h (set_program_name): Clarify specification.
31245         * lib/progname.c (set_program_name): Likewise.
31246         Reported by Jim Meyering.
31247
31248 2009-12-05  Jim Meyering  <meyering@redhat.com>
31249
31250         maint.mk: backslash-escape parens in default regexp
31251         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31252         backslash-escape the literal parentheses.
31253
31254         maint.mk: news-date-check: use grep -E
31255         * top/maint.mk (today): Define a Make variable, not a...
31256         (news-date-check): ...shell variable.
31257         (news-date-regexp): Use the Make variable.
31258         Use grep's -E option.  Change the failing diagnostic to mention
31259         the variable, $(news-date-regexp).
31260
31261 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31262
31263         maintainer-makefile: allow customization of NEWS entry format
31264         * top/maint.mk (news-date-regexp): New overridable variable.
31265         (news-date-check): Use it.
31266
31267 2009-12-04  Eric Blake  <ebb9@byu.net>
31268
31269         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31270         * lib/mgetgroups.h (xgetgroups): New prototype.
31271         * lib/mgetgroups.c (xgetgroups): New wrapper.
31272         (mgetgroups): Handle ENOSYS.
31273         * modules/mgetgroups (Depends-on): Add realloc.
31274         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31275
31276         mgetgroups: avoid argument promotion issues with -1
31277         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31278         for invalid gid_t.
31279         * tests/test-chown.h (getegid, test_chown): Likewise.
31280         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31281
31282 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31283
31284         exclude: Fix header file problems.
31285         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31286
31287 2009-12-01  Jim Meyering  <meyering@redhat.com>
31288
31289         fts: fts_open: do not let an empty string cause immediate failure
31290         This is required in support of GNU rm, for which the command
31291         "rm A '' B" must process and remove both A and B, in spite of
31292         the empty string argument.
31293         * lib/fts.c (fts_open): Do not let the presence of an empty string
31294         cause fts_open to fail immediately.  Most fts-using tools must be
31295         able to process all arguments, in order, and can be expected to
31296         diagnose such arguments themselves.
31297
31298 2009-11-30  Eric Blake  <ebb9@byu.net>
31299
31300         utimens: fix compilation error
31301         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31302         Declare variable at right scope.
31303
31304 2009-11-29  Jim Meyering  <meyering@redhat.com>
31305
31306         bootstrap: handle perl-5.11's changed --version output
31307         * build-aux/bootstrap (get_version): Handle perl separately,
31308         since perl-5.11's --version output is different.
31309
31310 2009-11-28  Jim Meyering  <meyering@redhat.com>
31311
31312         userspec: depend on the inttostr module, too
31313         * modules/userspec (Depends-on): Add inttostr.
31314
31315         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31316         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31317         number of MAXUID when it evaluates to (uid_t) -1.
31318         Likewise for group ID.  Reported by Matt McCutchen in
31319         <http://savannah.gnu.org/bugs/?28113>
31320
31321         userspec: reformat to use spaces, not TABs
31322         * lib/userspec.c: Expand TABs to spaces.
31323         Add Emacs' "indent-tabs-mode: nil" hint.
31324
31325 2009-11-27  Eric Blake  <ebb9@byu.net>
31326
31327         getopt-gnu: flush out another BSD bug
31328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31329         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31330         flush out BSD bug.
31331         * tests/test-getopt.h (test_getopt): End lists with NULL.
31332         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31333         (test_getopt_long_posix): Enhance test.
31334         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31335         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31336         getopt-gnu.
31337         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31338         Likewise.
31339
31340 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31341
31342         * modules/idpriv-droptemp-tests (Notice): Fix text.
31343
31344 2009-11-27  Jim Meyering  <meyering@redhat.com>
31345
31346         test-xalloc-die: avoid spurious failure due to libtool argv difference
31347         In a libtool-enabled project, this test would fail due to a difference
31348         in the emitted program name, e.g.,
31349         -test-xalloc-die: memory exhausted
31350         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31351         Use program to avoid that.
31352         * modules/xalloc-die-tests (Depends-on): Add progname.
31353         * tests/test-xalloc-die.c: Include progname.h".
31354         (program_name): Remove decl.
31355         (main): Call set_program_name.
31356         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31357
31358 2009-11-26  Richard Jones  <rjones@redhat.com>
31359
31360         w32sock: leave win32 error in place.
31361         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31362
31363 2009-11-26  Eric Blake  <ebb9@byu.net>
31364
31365         init.sh: suggest to use skip_ and fail_ functions in comments
31366         * tests/init.sh: Add a sentence.
31367
31368 2009-11-25  Bruno Haible  <bruno@clisp.org>
31369
31370         init.sh: add documentation in comments
31371         * tests/init.sh: Add some developer and user documentation.
31372
31373 2009-11-26  Jim Meyering  <meyering@redhat.com>
31374
31375         init.sh: accommodate even those who specify bogus srcdir manually
31376         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31377         configure-time tests to be sanitized, so that there is no need to
31378         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31379         (with no double quotes) suffices.  However, since tests may be
31380         invoked manually, and since you may explicitly set srcdir to the
31381         name of a directory containing spaces, do quote its uses here.
31382         * tests/test-pread.sh: Likewise.
31383         Suggested by Bruno Haible.
31384
31385         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31386         * tests/test-pread.sh: Write no data into the pipe, because
31387         test-pread actually reads none.  This avoids a diagnostic,
31388         "bash: echo: write error: Broken pipe", that arises in the unusual
31389         event something is ignoring SIGPIPE, and might be interpreted
31390         as some sort of failure.  Reported by Bruno Haible.
31391
31392 2009-11-25  Jim Meyering  <meyering@redhat.com>
31393
31394         test-pread: cover failure with ESPIPE and EINVAL
31395         * tests/test-pread.c (main): Test for failure, too.
31396         * tests/test-pread.sh: Invoke with stdin on a pipe.
31397         Suggested by Eric Blake.
31398
31399         pread: improvement and fix
31400         * modules/pread (Depends-on): Depend on lseek, for portability to
31401         e.g., mingw.  Suggested by Eric Blake.
31402         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31403
31404         unistd.in.h: correct declaration of pread
31405         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31406         Reported by Richard W.M. Jones.
31407
31408         test-pread.sh: distribute the test script
31409         * modules/pread-tests (Files): Include test-pread.sh.
31410
31411         test-pread.sh: clean up
31412         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31413         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31414         That is unnecessary, since it's always ".".
31415         Suggestion from Eric Blake.
31416
31417         test-pread.sh: make executable
31418         * tests/test-pread.sh: Set executable bit.
31419         Reported by Eric Blake.
31420
31421         correct typo in test-pread.sh
31422         * tests/test-pread.sh: Add #! line.
31423
31424         test pread
31425         * tests/test-pread.c: New file.
31426         * tests/test-pread.sh: Likewise.
31427         * modules/pread-tests: Likewise.
31428
31429         pread: new module
31430         * modules/pread: New file.
31431         * lib/unistd.in.h (pread): Define/declare.
31432         * lib/pread.c (pread): New file.
31433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31434         * modules/unistd (Makefile.am): Substitute witnesses.
31435         * doc/posix-functions/pread.texi (pread): Update.
31436         * MODULES.html.sh: Add pread.
31437
31438 2009-11-25  Jim Meyering  <meyering@redhat.com>
31439
31440         tests/init.sh: new file to be used via most *.sh tests
31441         * tests/init.sh: New file.
31442
31443 2009-11-25  Eric Blake  <ebb9@byu.net>
31444
31445         utimens: work around older Linux failure with symlinks
31446         * lib/utimens.c (lutimensat_works_really): New variable.
31447         (fdutimens, lutimens): Use it to manage kernels that support
31448         nanosecond times on files, but not on symlinks.
31449         Reported by OndÅ™ej Vašík.
31450
31451         utimes: fix configure grammar
31452         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31453
31454 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31455
31456         regex: Fix fastmap for multibyte character ranges.
31457         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31458         characters when a multibyte character range is included.
31459
31460 2009-11-22  Andy Wingo  <wingo@pobox.com>
31461
31462         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31463         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31464
31465 2009-11-24  Bruno Haible  <bruno@clisp.org>
31466
31467         doc: Most *_l functions exist in MacOS X 10.5.
31468         * doc/posix-functions/duplocale.texi: Update platforms list.
31469         * doc/posix-functions/freelocale.texi: Likewise.
31470         * doc/posix-functions/newlocale.texi: Likewise.
31471         * doc/posix-functions/uselocale.texi: Likewise.
31472         * doc/posix-functions/isalnum_l.texi: Likewise.
31473         * doc/posix-functions/isalpha_l.texi: Likewise.
31474         * doc/posix-functions/isblank_l.texi: Likewise.
31475         * doc/posix-functions/iscntrl_l.texi: Likewise.
31476         * doc/posix-functions/isdigit_l.texi: Likewise.
31477         * doc/posix-functions/isgraph_l.texi: Likewise.
31478         * doc/posix-functions/islower_l.texi: Likewise.
31479         * doc/posix-functions/isprint_l.texi: Likewise.
31480         * doc/posix-functions/ispunct_l.texi: Likewise.
31481         * doc/posix-functions/isspace_l.texi: Likewise.
31482         * doc/posix-functions/isupper_l.texi: Likewise.
31483         * doc/posix-functions/iswalnum_l.texi: Likewise.
31484         * doc/posix-functions/iswalpha_l.texi: Likewise.
31485         * doc/posix-functions/iswblank_l.texi: Likewise.
31486         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31487         * doc/posix-functions/iswctype_l.texi: Likewise.
31488         * doc/posix-functions/iswdigit_l.texi: Likewise.
31489         * doc/posix-functions/iswgraph_l.texi: Likewise.
31490         * doc/posix-functions/iswlower_l.texi: Likewise.
31491         * doc/posix-functions/iswprint_l.texi: Likewise.
31492         * doc/posix-functions/iswpunct_l.texi: Likewise.
31493         * doc/posix-functions/iswspace_l.texi: Likewise.
31494         * doc/posix-functions/iswupper_l.texi: Likewise.
31495         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31496         * doc/posix-functions/isxdigit_l.texi: Likewise.
31497         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31498         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31499         * doc/posix-functions/strcoll_l.texi: Likewise.
31500         * doc/posix-functions/strfmon_l.texi: Likewise.
31501         * doc/posix-functions/strftime_l.texi: Likewise.
31502         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31503         * doc/posix-functions/strxfrm_l.texi: Likewise.
31504         * doc/posix-functions/tolower_l.texi: Likewise.
31505         * doc/posix-functions/toupper_l.texi: Likewise.
31506         * doc/posix-functions/towctrans_l.texi: Likewise.
31507         * doc/posix-functions/towlower_l.texi: Likewise.
31508         * doc/posix-functions/towupper_l.texi: Likewise.
31509         * doc/posix-functions/wcscoll_l.texi: Likewise.
31510         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31511         * doc/posix-functions/wctrans_l.texi: Likewise.
31512         * doc/posix-functions/wctype_l.texi: Likewise.
31513         * doc/glibc-functions/strptime_l.texi: Likewise.
31514         * doc/glibc-functions/strtod_l.texi: Likewise.
31515         * doc/glibc-functions/strtof_l.texi: Likewise.
31516         * doc/glibc-functions/strtol_l.texi: Likewise.
31517         * doc/glibc-functions/strtold_l.texi: Likewise.
31518         * doc/glibc-functions/strtoll_l.texi: Likewise.
31519         * doc/glibc-functions/strtoul_l.texi: Likewise.
31520         * doc/glibc-functions/strtoull_l.texi: Likewise.
31521         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31522         * doc/glibc-functions/wcstod_l.texi: Likewise.
31523         * doc/glibc-functions/wcstof_l.texi: Likewise.
31524         * doc/glibc-functions/wcstol_l.texi: Likewise.
31525         * doc/glibc-functions/wcstold_l.texi: Likewise.
31526         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31527         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31528         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31529
31530 2009-11-24  Bruno Haible  <bruno@clisp.org>
31531
31532         duplocale: Fix logic bug.
31533         * lib/duplocale.c: Don't include <langinfo.h>.
31534         (_NL_LOCALE_NAME): Remove macro.
31535         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31536         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31537
31538 2009-11-23  Jim Meyering  <meyering@redhat.com>
31539
31540         test-update-copyright: don't hard-code /usr/bin/perl
31541         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31542         perl to print the current year.  Gilles Espinasse reported that
31543         the replaced use of perl was hard-coded as /usr/bin/perl.
31544
31545 2009-11-23  Bruno Haible  <bruno@clisp.org>
31546
31547         duplocale: Add support for glibc 2.3.x.
31548         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31549
31550 2009-11-22  Bruno Haible  <bruno@clisp.org>
31551
31552         vasnprintf: Tiny optimization.
31553         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31554         MacOS X.
31555
31556 2009-11-22  Bruno Haible  <bruno@clisp.org>
31557
31558         Tests for module 'duplocale'.
31559         * modules/duplocale-tests: New file.
31560         * tests/test-duplocale.c: New file.
31561
31562         New module 'duplocale'.
31563         * m4/duplocale.m4: New file.
31564         * lib/locale.in.h (duplocale): New declaration.
31565         * lib/duplocale.c: New file.
31566         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31567         gl_LOCALE_H_DEFAULTS): New macros.
31568         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31569         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31570         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31571         REPLACE_DUPLOCALE.
31572         * modules/duplocale: New file.
31573         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31574
31575 2009-11-22  Bruno Haible  <bruno@clisp.org>
31576
31577         * modules/locale-tests (configure.ac): Test for newlocale function.
31578         * tests/test-locale.c: When the system has extended locale functions,
31579         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31580
31581         locale: Make locale_t available when possible.
31582         * lib/locale.in.h: Include <xlocale.h> when it exists.
31583         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31584         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31585         * modules/locale (Depends-on): Add extensions.
31586         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31587         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31588
31589 2009-11-22  Bruno Haible  <bruno@clisp.org>
31590
31591         Add comments.
31592         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31593         invocation.
31594         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31595         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31596         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31597
31598 2009-11-22  Bruno Haible  <bruno@clisp.org>
31599
31600         error: account for the possibility of freopen (stdout).
31601         * lib/error.c: Include <unistd.h>.
31602         (flush_stdout): New function, extracted from error and error_at_line.
31603         Determine stdout's fd dynamically.
31604         (error, error_at_line): Invoke flush_stdout.
31605         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31606         * modules/error (Depends-on): Add unistd.
31607
31608 2009-11-22  Bruno Haible  <bruno@clisp.org>
31609
31610         diffseq: Add comment.
31611         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31612
31613 2009-11-22  Jim Meyering  <meyering@redhat.com>
31614
31615         c-stack: avoid defining an unused static function
31616         * lib/c-stack.c (find_stack_direction): Do not define this function
31617         when it will not be used.
31618
31619         diffseq: avoid spurious gcc warnings
31620         * lib/diffseq.h (IF_LINT2): Define.
31621         (compareseq): Use it to initialize two members of "part".
31622         This avoids two used-uninitialized warnings.
31623
31624 2009-11-21  Jim Meyering  <meyering@redhat.com>
31625
31626         c-stack: avoid "ignoring return value of `write'" warning
31627         * lib/c-stack.c: Include "ignore-value.h".
31628         (die): Explicitly ignore each write return value.
31629         * modules/c-stack (Depends-on): Add ignore-value.
31630
31631 2009-11-21  Bruno Haible  <bruno@clisp.org>
31632
31633         diffseq: reduce scope of variable 'best'.
31634         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31635         variable, earlier used for two different purposes.
31636
31637 2009-11-21  Jim Meyering  <meyering@redhat.com>
31638
31639         diffseq: remove useless assignment to "best"
31640         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31641         assignment.  At that point "best" is already guaranteed to be zero.
31642
31643 2009-11-20  Eric Blake  <ebb9@byu.net>
31644
31645         build: mention ftp redirector in release announcements
31646         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31647         values that used to come from cfg.mk; mention FTP redirect URL.
31648         * build-aux/announce-gen: Mention the mirror list.
31649         Suggested by Karl Berry.
31650
31651         nanosleep: improve port to mingw
31652         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31653         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31654         LIB_NANOSLEEP, but only when needed.
31655         * modules/select (Link): Document LIBSOCKET.
31656         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31657         enough.
31658
31659         nanosleep: work around cygwin bug
31660         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31661         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31662         bug.
31663         (getnow): Delete, not needed.
31664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31665         LIB_CLOCK_GETTIME.
31666         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31667         clock-time, gettime.
31668         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31669         bug.
31670         * modules/nanosleep-tests: New test.
31671         * tests/test-nanosleep.c: New file.
31672
31673         sleep: work around cygwin bug
31674         * lib/sleep.c (rpl_sleep): Work around the bug.
31675         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31676         (gl_PREREQ_SLEEP): Delete unused macro.
31677         * modules/sleep (Depends-on): Add verify.
31678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31679         * modules/unistd (Makefile.am): Substitute witness.
31680         * lib/unistd.in.h (sleep): Update prototype.
31681         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31682         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31683         * modules/sleep-tests (Depends-on): Check for alarm.
31684
31685 2009-11-20  Jim Meyering  <meyering@redhat.com>
31686
31687         maint.mk: improve sc_prohibit_magic_number_exit
31688         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31689         so it does not match uses like System.exit(1).
31690         Add comments showing how to correct all offenders.
31691
31692 2009-11-19  Eric Blake  <ebb9@byu.net>
31693
31694         xalloc-die-tests: add missing library
31695         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31696
31697         test-xvasprintf: silence compiler warnings
31698         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31699         empty string from gcc.
31700
31701 2009-11-19  Jim Meyering  <meyering@redhat.com>
31702
31703         xfreopen: new module, from coreutils
31704         * modules/xfreopen: New module.
31705         * lib/xfreopen.c: New file.
31706         * lib/xfreopen.h: New file.
31707         * MODULES.html.sh (File stream based Input/Output"): Add it.
31708
31709 2009-11-19  Eric Blake  <ebb9@byu.net>
31710
31711         manywarnings: depend on warnings
31712         * modules/manywarnings (Depends-on): Add warnings.
31713
31714         build: avoid compiler warnings
31715         * lib/select.c (rpl_select): Delete unused variable.
31716         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31717
31718 2009-11-18  Eric Blake  <ebb9@byu.net>
31719
31720         tests: avoid false negative with --with-packager
31721         * tests/test-version-etc.sh: Discard packager information.
31722         * tests/test-argp-version-etc-1.sh: Likewise.
31723         Reported by Mike Frysinger.
31724
31725         utimens: fix regression on Solaris
31726         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31727         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31728         can only change fd timestamps via futimesat.  Instead, use an
31729         additional witness macro to avoid BSD bug.
31730         Reported by Jim Meyering.
31731
31732 2009-11-17  Eric Blake  <ebb9@byu.net>
31733
31734         usleep: use it to simplify tests
31735         * modules/stat-time-tests (Depends-on): Add usleep.
31736         (configure.ac): Drop usleep check.
31737         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31738         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31739         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31740         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31741         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31742         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31743         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31744         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31745         Likewise.
31746         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31747         * tests/test-lchown.h (nap): Likewise.
31748         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31749         * tests/test-stat-time.c (nap): Likewise.
31750         * tests/test-utimens-common.h (nap): Update comments.
31751
31752         usleep: new module
31753         * modules/usleep: New file.
31754         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31755         * lib/usleep.c (usleep): Likewise.
31756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31757         * modules/unistd (Makefile.am): Substitute witnesses.
31758         * lib/unistd.in.h (usleep): Add declaration.
31759         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31760         * MODULES.html.sh (Date and time): Likewise.
31761         * modules/usleep-tests (Depends-on): New test.
31762         * tests/test-usleep.c: New file.
31763
31764         chown: work around OpenBSD bug
31765         * lib/chown.c (rpl_chown): Work around the bug.
31766         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31767         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31768         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31769         * modules/chown (Depends-on): Add stdbool.
31770         * modules/lchown (Depends-on): Likewise.
31771         * doc/posix-functions/chown.texi (chown): Document the bug.
31772         * doc/posix-functions/lchown.texi (lchown): Likewise.
31773         * tests/test-lchown.h (test_chown): Relax test.
31774
31775         mkstemp: avoid conflict with C++ keyword template
31776         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31777         * lib/mkostemp.c (mkostemp): Likewise.
31778         * lib/mkostemps.c (mkostemps): Likewise.
31779         * lib/mkstemp.c (mkstemp): Likewise.
31780         * lib/mkstemps.c (mkstemps): Likewise.
31781
31782         xalloc-die-tests: optimize
31783         * tests/test-xalloc-die.sh: Reduce number of processes.
31784
31785 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31786
31787         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31788         patch from ludo@gnu.org (Ludovic Courtès).
31789
31790 2009-11-17  Jim Meyering  <meyering@redhat.com>
31791
31792         version-etc: use proper license string
31793         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31794         * modules/version-etc-fsf: Likewise.
31795
31796 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31797
31798         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31799         printed to stdout.  Deal with EOL differences.
31800
31801 2009-11-17  Eric Blake  <ebb9@byu.net>
31802
31803         unsetenv: work around Solaris bug
31804         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31805         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31806         Reported by Jim Meyering.
31807
31808         vasnprintf: avoid compiler warnings
31809         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31810         variables.
31811         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31812
31813 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31814
31815         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31816         settings since xalloc-die is no longer the self test,
31817         xalloc-die.sh is.
31818
31819 2009-11-17  Jim Meyering  <meyering@redhat.com>
31820
31821         test-xalloc-die.sh: make the code agree with the commit log
31822         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31823         at the end, just in case you happen to have a test-xalloc-die
31824         program in some other PATH directory.
31825
31826         test-xalloc-die.sh: fix a portability bug
31827         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31828         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31829         Otherwise, argv[0] (as often seen in diagnostics) would be too
31830         system-dependent, sometimes with, and sometimes without the leading "./".
31831
31832         version-etc-fsf: relax license to LGPLv3+
31833         * modules/version-etc-fsf (License): Relax license.
31834
31835 2009-11-16  Eric Blake  <ebb9@byu.net>
31836
31837         xalloc-die-tests: avoid printing null pointer
31838         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31839         shell script.
31840         * tests/test-xalloc-die.c (program_name): Declare.
31841         * tests/test-xalloc-die.sh (tmpfiles): New file.
31842
31843         setenv, unsetenv: work around various bugs
31844         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31845         (setenv) [HAVE_SETENV]: Work around bugs.
31846         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31847         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31848         for bugs.
31849         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31850         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31852         * modules/stdlib (Makefile.am): Update substitutions.
31853         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31854         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31855         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31856         * modules/setenv-tests: New test.
31857         * modules/unsetenv-tests: Likewise.
31858         * tests/test-setenv.c: New file.
31859         * tests/test-unsetenv.c: Likewise.
31860
31861 2009-11-16  Jim Meyering  <meyering@redhat.com>
31862
31863         version-etc: relax license to LGPLv3+
31864         * modules/version-etc (License): Relax license.
31865
31866         better AC_REQUIRE expanded-before-required-warning avoidance
31867         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31868         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31869         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31870         which is no longer needed.
31871
31872 2009-11-16  Eric Blake  <ebb9@byu.net>
31873
31874         test-freading: clean up temporary file
31875         * tests/test-freading.c (main): Remove file on success, and use
31876         ASSERT more liberally.
31877         Reported by Jim Meyering.
31878
31879 2009-11-16  Jim Meyering  <meyering@redhat.com>
31880
31881         avoid new AC_REQUIRE expanded-before-required warnings
31882         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31883         merely using it.
31884         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31885         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31886
31887 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31888
31889         * tests/test-xalloc-die.c: New file.
31890         * modules/xalloc-die-tests: New file.
31891         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31892         XFAIL_TESTS so it can be appended by modules.
31893
31894 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31895
31896         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31897         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31898
31899 2009-11-14  Eric Blake  <ebb9@byu.net>
31900
31901         fnmatch: avoid compiler warning
31902         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31903         to silence compiler warning about mismatch signedness in ?:.
31904         Reported by Robert Millan.
31905
31906         intprops: add double-inclusion guard
31907         * lib/intprops.h: Allow idempotent includes.
31908         Suggested by Bruce Korb.
31909
31910         openat: detect Solaris fchownat bug
31911         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31912         penalizing glibc chownat when only lchownat is broken.
31913         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31914         trailing slash bugs.
31915         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31916         * modules/openat-tests (Files): Include more files.
31917         (Depends-on): Add mgetgroups, sleep, stat-time.
31918         (configure.ac): Add additional checks.
31919         (Makefile.am): Build new test.
31920         * tests/test-fchownat.c: New file.
31921
31922         lchown: detect Solaris and FreeBSD bug
31923         * lib/lchown.c (rpl_lchown): Work around bug.
31924         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31926         * modules/unistd (Makefile.am): Populate it.
31927         * lib/unistd.in.h (lchown): Update declaration.
31928         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31929         * modules/lchown-tests: New file.
31930         * tests/test-lchown.h (test_lchown): Likewise.
31931         * tests/test-lchown.c (main): Likewise.
31932
31933         chown: detect Solaris and FreeBSD bug
31934         * lib/chown.c (rpl_chown): Work around bug.
31935         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31936         (gl_PREREQ_CHOWN): Delete.
31937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31938         * modules/unistd (Makefile.am): Populate it.
31939         * lib/unistd.in.h (chown): Update declaration.
31940         * lib/lchown.c (chown): Update client.
31941         * modules/lchown (Depends-on): Add lstat.
31942         * doc/posix-functions/chown.texi (chown): Document the bug.
31943         * doc/posix-functions/getgroups.texi (getgroups): Document
31944         getgroups pitfall.
31945         * modules/chown-tests: New file.
31946         * tests/test-chown.h (test_chown): Likewise.
31947         * tests/test-chown.c (main): Likewise.
31948
31949 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31950
31951         gnulib-tool: correctly detect absence of m4 directories
31952         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31953
31954 2009-11-14  Jim Meyering  <meyering@redhat.com>
31955
31956         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31957         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31958
31959 2009-11-14  John W. Eaton  <jwe@gnu.org>
31960
31961         strftime.h: wrap funtion declaration in extern "C" block
31962         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31963
31964 2009-11-13  Eric Blake  <ebb9@byu.net>
31965
31966         getgroups: avoid compiler warning
31967         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31968
31969         getgroups: work around FreeBSD bug
31970         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31971         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31972         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31973         * tests/test-getgroups.c (main): Fix buffer overrun.
31974
31975         getgroups: avoid compilation failure
31976         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31977         * modules/getgroups (Depends-on): Add stdint.
31978
31979 2009-11-13  Jim Meyering  <meyering@redhat.com>
31980
31981         test-getgroups: avoid compilation failure
31982         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31983
31984 2009-11-13  Eric Blake  <ebb9@byu.net>
31985
31986         mgetgroups: new module, taken from coreutils
31987         * modules/mgetgroups: New file.
31988         * lib/mgetgroups.h: Likewise.
31989         * lib/mgetgroups.c (mgetgroups): Likewise.
31990         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31991         * MODULES.html.sh (Users and groups): Mention it.
31992
31993         getgroups: don't expose GETGROUPS_T to user
31994         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31995         an element at a time if GETGROUPS_T is wrong size.
31996         * lib/getugroups.h (getugroups): Change signature.
31997         * lib/unistd.in.h (getgroups): Likewise.
31998         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31999         signature needs fixing.
32000         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32001         AC_TYPE_GETGROUPS.
32002         * modules/group-member (Depends-on): Add getgroups.
32003         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32004         (group_member): Rely on getgroups replacement.
32005         * lib/getugroups.c (getugroups): Use gid_t.
32006         * tests/test-getgroups.c (main): Likewise.
32007         * NEWS: Mention the signature change.
32008         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32009         problem with signature.
32010         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32011         GETGROUPS_T is still useful for setgroups.
32012
32013         getgroups, getugroups: provide stubs for mingw
32014         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32015         * lib/getugroups.c (getugroups): Likewise.
32016         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32017         function.  Modernize replacement scheme.
32018         (gl_PREREQ_GETGROUPS): Delete.
32019         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32020         * modules/getgroups (configure.ac): Declare witness.
32021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32022         * modules/unistd (Depends-on): Substitute witness.
32023         * lib/unistd.in.h (getgroups): Declare replacement.
32024
32025         getgroups: avoid calling exit
32026         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32027         drop xalloc.
32028         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32029         dependencies.
32030         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32031         exiting, in the rare case of malloc failure.
32032
32033         getgroups: fix logic error
32034         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32035         has more than 20 groups.
32036         * modules/getgroups-tests: New test.
32037         * tests/test-getgroups.c: New file.
32038
32039 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32040
32041         * tests/test-base64.c: Improve.
32042
32043 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32044
32045         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32046         Blake <ebb9@byu.net>.
32047
32048 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32049
32050         * tests/test-xvasprintf.c: Add %s%s related checks.
32051
32052 2009-11-12  Eric Blake  <ebb9@byu.net>
32053
32054         version-etc: match standards.texi style
32055         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32056         and use <> only for URLs.
32057
32058 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32059
32060         fts: do not fail on a submount during traversal
32061         * lib/fts.c (fts_build): Read the stat info again after opening
32062         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32063         Original report at http://bugzilla.redhat.com/501848.
32064
32065 2009-11-12  Jim Meyering  <meyering@redhat.com>
32066
32067         bootstrap: sync from coreutils
32068         * build-aux/bootstrap (bootstrap_epilogue): New function.
32069         Use git_modules_config in one more place.  This make bootstrap's
32070         --gnulib-srcdir option more useful for testing.
32071
32072         bootstrap: generalize autoheader check
32073         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32074         AC_CONFIG_HEADERS.
32075
32076 2009-11-11  Eric Blake  <ebb9@byu.net>
32077
32078         mkfifoat: use new modules for Solaris and BSD bugs
32079         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32080         * lib/mkfifoat.c (mknodat): Split...
32081         * lib/mknodat.c (mknodat): ...into new file.
32082         * modules/mkfifoat (Files): Ship new file.
32083         (Depends-on): Add mkfifo, mknod.
32084         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32085         (Depends-on): Add symlink.
32086         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32087         redundant with test_mkfifo.h.
32088         (do_mkfifoat, do_mknodat): New helpers.
32089
32090         mknod: new module
32091         * modules/mknod: New file.
32092         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32093         * lib/mknod.c (mknod): Likewise.
32094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32095         defaults.
32096         * modules/sys_stat (Makefile.am): Substitute them.
32097         * lib/sys_stat.in.h (mknod): Declare replacement.
32098         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32099         Document it.
32100         * doc/posix-functions/mknod.texi (mknod): Likewise.
32101         * modules/mknod-tests: New test.
32102         * tests/test-mknod.c: Likewise.
32103
32104         mkfifo: new module
32105         * modules/mkfifo: New file.
32106         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32107         * lib/mkfifo.c (mkfifo): Likewise.
32108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32109         defaults.
32110         * modules/sys_stat (Makefile.am): Substitute them.
32111         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32112         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32113         Document it.
32114         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32115         * modules/mkfifo-tests: New test.
32116         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32117         from test-mkfifoat.c.
32118         * tests/test-mkfifo.c: New file.
32119
32120         readlink: detect FreeBSD bug
32121         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32122         slash on symlink.
32123         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32124         * tests/test-readlink.h (test_readlink): Enhance test.
32125
32126         symlink: detect FreeBSD bug
32127         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32128         slash on symlink.
32129         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32130         * tests/test-symlink.h (test_symlink): Enhance test.
32131
32132 2009-11-10  Eric Blake  <ebb9@byu.net>
32133
32134         link: detect FreeBSD bug
32135         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32136         symlink.
32137         * doc/posix-functions/link.texi (link): Document the bug.
32138         * tests/test-link.h (test_link): Enhance test.
32139         * tests/test-linkat.c (main): Update caller.
32140
32141         unlink, remove: detect FreeBSD bug
32142         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32143         slash on symlink.
32144         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32145         * doc/posix-functions/remove.texi (remove): Likewise.
32146         * tests/test-unlink.h (test_unlink): Enhance test.
32147         * tests/test-remove.c (main): Likewise.
32148
32149 2009-11-09  Eric Blake  <ebb9@byu.net>
32150
32151         rename: detect FreeBSD bug
32152         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32153         slash on symlink.
32154         * modules/renameat-tests (Depends-on): Add filenamecat.
32155         * tests/test-rename.h (test_rename): Allow one more errno.
32156         * tests/test-renameat.c (main): Likewise.
32157         * doc/posix-functions/rename.texi (rename): Document the bug.
32158
32159         open: detect FreeBSD bug
32160         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32161         symlink.
32162         * doc/posix-functions/open.texi (open): Document the bug.
32163         * doc/posix-functions/utimes.texi (utimes): Likewise.
32164         * tests/test-open.h (test_open): Add parameters, and test symlink
32165         handling.
32166         * tests/test-open.c (main): Adjust caller.
32167         * tests/test-fcntl-safer.c (main): Likewise.
32168         * modules/open-tests (Depends-on): Add stdbool, symlink.
32169         * modules/fcntl-safer-tests (Depends-on): Likewise.
32170         * tests/test-openat.c (main): Add test-open tests.
32171
32172         stat: detect FreeBSD bug
32173         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32174         symlink.
32175         * doc/posix-functions/stat.texi (stat): Document the bug.
32176         * tests/test-stat.h (test_stat_func): Add argument.
32177         * tests/test-stat.c (main): Adjust caller.
32178         * tests/test-fstatat.c (main): Likewise.
32179         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32180         Reported by Jim Meyering.
32181
32182 2009-11-09  James Youngman  <jay@gnu.org>
32183
32184         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32185         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32186
32187 2009-11-08  Jim Meyering  <meyering@redhat.com>
32188
32189         utimens: remove invalid futimesat call
32190         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32191         It used the file descriptor of the target file as the DIR_FD
32192         parameter and NULL as the file name.  That caused failure with
32193         errno == EFAULT on FreeBSD-8.0-rc2
32194
32195 2009-11-07  Eric Blake  <ebb9@byu.net>
32196
32197         fflush, freadseek: use fseeko, not fseek
32198         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32199         (clear_ungetc_buffer): Avoid potential problems on large files.
32200         * lib/freadseek.c (freadseek): Likewise.
32201         * modules/freadseek (Depends-on): Add fseeko.
32202         * modules/fseek (configure.ac): Set a witness.
32203         * tests/test-fflush.c (main): Use fseeko.
32204         * tests/test-fpurge.c (fseek): Disable link warning.
32205         * tests/test-freadable.c (fseek): Likewise.
32206         * tests/test-freading.c (fseek): Likewise.
32207         * tests/test-fseeko.c (fseek): Likewise.
32208         * tests/test-ftell.c (fseek): Likewise.
32209         * tests/test-ftello.c (fseek): Likewise.
32210         * tests/test-fwritable.c (fseek): Likewise.
32211         * tests/test-fwriting.c (fseek): Likewise.
32212
32213 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32214
32215         * modules/memchr (Depends-on): Drop getpagesize dependency.
32216
32217 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32218
32219         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32220         Reported by Ludovic Courtès.
32221         * build-aux/pmccabe2html: Improve example usage.
32222         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32223
32224 2009-11-06  Jim Meyering  <meyering@redhat.com>
32225
32226         do-release-commit-and-tag: New module.
32227         Automate the release-commit and tag process.
32228         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32229         * modules/do-release-commit-and-tag: New file.
32230         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32231
32232 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32233
32234         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32235         because test-select.c uses inet_pton.
32236
32237 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32238
32239         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32240         GETADDRINFO_LIB.  Bump serial number.
32241         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32242         Suggested by Eric Blake <ebb9@byu.net>.
32243
32244 2009-11-05  Eric Blake  <ebb9@byu.net>
32245
32246         strtod: detect darwin bug
32247         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32248         Reported by Leo Davis.
32249
32250         freopen-safer: new module
32251         * modules/freopen-safer: New module.
32252         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32253         * lib/freopen-safer.c (freopen_safer): New file.
32254         * lib/stdio-safer.h (freopen_safer): New declaration.
32255         * lib/stdio--.h (freopen): New override.
32256         * MODULES.html.sh (File stream based Input/Output): Mention it.
32257         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32258         freopen-safer module.
32259         * doc/posix-functions/stderr.texi (stderr): Likewise.
32260         * doc/posix-functions/stdin.texi (stdin): Likewise.
32261         * doc/posix-functions/stdout.texi (stdout): Likewise.
32262         * modules/freopen-safer-tests: New test.
32263         * tests/test-reopen-safer.c: New file.
32264
32265 2009-11-05  Jim Meyering  <meyering@redhat.com>
32266
32267         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32268         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32269
32270 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32271
32272         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32273
32274 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32275
32276         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32277
32278 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32279
32280         Fix link error.
32281         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32282         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32283
32284 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32285
32286         * tests/test-func.c: Also test value of __func__.
32287
32288 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32289
32290         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32291         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32292
32293 2009-11-05  Bruno Haible  <bruno@clisp.org>
32294
32295         Fix link error.
32296         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32297         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32298         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32299
32300 2009-11-05  Bruno Haible  <bruno@clisp.org>
32301
32302         Tests for module 'inet_pton'.
32303         * modules/inet_pton-tests: New file.
32304         * tests/test-inet_pton.c: New file.
32305
32306 2009-11-05  Bruno Haible  <bruno@clisp.org>
32307
32308         Tests for module 'inet_ntop'.
32309         * modules/inet_ntop-tests: New file.
32310         * tests/test-inet_ntop.c: New file.
32311
32312 2009-11-04  Eric Blake  <ebb9@byu.net>
32313
32314         stdlib-safer: wrap all mkstemp variants
32315         * modules/mkostemp (configure.ac): Set witness.
32316         * modules/mkostemps (configure.ac): Likewise.
32317         * modules/mkstemps (configure.ac): Likewise.
32318         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32319         (mkstemps_safer): Wrap more functions.
32320         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32321         wrapping.
32322         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32323         (mkstemps_safer): Implement the wrappers.
32324
32325         mkstemps, mkostemps: new modules
32326         * modules/mkostemps: New module.
32327         * modules/mkstemps: Likewise.
32328         * lib/mkostemps.c (mkostemps): New file.
32329         * lib/mkstemps.c (mkstemps): Likewise.
32330         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32331         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32333         * modules/stdlib (Makefile.am): Substitute them.
32334         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32335         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32336         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32337         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32338         * MODULES.html.sh (File system functions): Mention them.
32339
32340         tempname: resync from glibc
32341         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32342         same values for __GT_FILE as glibc.  Abort even when assertions
32343         are disabled.
32344         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32345         match its value otherwise.  Allow idempotent inclusion.
32346         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32347         * lib/mkostemp.c (mkostemp): Likewise.
32348         * lib/mkstemp.c (mkstemp): Likewise.
32349         * lib/tmpfile.c (tmpfile): Likewise.
32350         * NEWS: Document this.
32351
32352         utimens: fix use of futimens on older Linux
32353         * lib/utimens.c (fdutimens): Use updated, rather than original,
32354         timespec to avoid bug in older Linux kernel.
32355         Reported by Simon Josefsson.
32356
32357 2009-11-04  Bruno Haible  <bruno@clisp.org>
32358
32359         Make num_processors more flexible and consistent.
32360         * lib/nproc.h (enum nproc_query): New type.
32361         (num_processors): Add a 'query' argument.
32362         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32363         (num_processors): Add a 'query' argument. Test the value of the
32364         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32365         mingw, count the number of CPUs available for the current process.
32366         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32367         Check for sched_getaffinity and sched_getaffinity_np.
32368         * modules/nproc (Depends-on): Add c-ctype, extensions.
32369         * NEWS: Mention the change.
32370
32371 2009-11-03  Bruno Haible  <bruno@clisp.org>
32372
32373         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32374
32375 2009-11-03  Jim Meyering  <meyering@redhat.com>
32376
32377         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32378         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32379         if it is defined.
32380
32381 2009-11-02  Eric Blake  <ebb9@byu.net>
32382
32383         mktime, timegm: share common declaration
32384         * lib/mktime-internal.h: New file.
32385         * lib/mktime.c: Use it rather than open-coding a declaration.
32386         * lib/timegm.c: Likewise.
32387         * modules/mktime (Files): Ship it.
32388         * modules/timegm (Files): Likewise.
32389         Suggested by Bruno Haible.
32390
32391         test-update-copyright: update test to match script changes
32392         * tests/test-update-copyright.sh: Avoid hard-coding perl
32393         location.  Don't update *.bak created by earlier runs.
32394
32395 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32396             Simon Josefsson  <simon@josefsson.org>
32397             Bruno Haible  <bruno@clisp.org>
32398
32399         Fix link error on Solaris 8.
32400         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32401         also in libnsl. Define also INET_PTON_LIB.
32402         * modules/inet_pton (Link): New section.
32403
32404 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32405             Bruno Haible  <bruno@clisp.org>
32406
32407         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32408         * modules/inet_ntop (Link): New section.
32409         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32410
32411 2009-11-02  Eric Blake  <ebb9@byu.net>
32412
32413         maint: avoid compiler warnings in m4 macros
32414         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32415         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32416
32417 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32418
32419         * m4/pmccabe2html.m4: Remove file.
32420         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32421         function.  Change maintainer.
32422         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32423         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32424         Courtès).
32425
32426 2009-10-31  Eric Blake  <ebb9@byu.net>
32427
32428         fseeko: fix m4 regression
32429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32430         regression from 2009-10-27.
32431         Reported by Ralf Wildenhues.
32432
32433 2009-10-31  Jim Meyering  <meyering@redhat.com>
32434
32435         inttostr: aesthetics and improved (compile-time) safety
32436         Define inttype_is_signed rather than inttype_is_unsigned,
32437         since the sole use is via "#if inttype_is_signed".
32438         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32439         inttype_is_unsigned.
32440         * lib/offtostr.c (inttype_is_signed): Likewise.
32441         * lib/uinttostr.c (inttype_is_signed): Likewise.
32442         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32443         * lib/inttostr.c (inttostr): Use verify to cross-check the
32444         inttype_is_signed value and the signedness of the actual type.
32445         * modules/inttostr (Depends-on): Add verify.
32446
32447 2009-10-30  Eric Blake  <ebb9@byu.net>
32448
32449         build: avoid compiler warnings
32450         * lib/fchmodat.c (lchmod): Mark unused variables.
32451         * lib/getopt.c (_getopt_initialize): Likewise.
32452         * lib/mktime.c (__mktime_internal): Provide prototype.
32453         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32454         older gcc that do not understand #pragma GCC diagnostic.
32455         * lib/uinttostr.c (inttype_is_unsigned): Define.
32456         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32457
32458 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32459
32460         stat: fix compilation on AIX
32461         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32462         only see struct stat64.
32463
32464 2009-10-30  Eric Blake  <ebb9@byu.net>
32465
32466         exclude: make more robust
32467         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32468         rather than masking a coding bug.
32469         Suggested by Bruno Haible.
32470
32471 2009-10-30  Jim Meyering  <meyering@redhat.com>
32472
32473         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32474         Rather than putting #!/usr/bin/perl on the first line,
32475         start with a variant of what's recommended by "man perlrun" that
32476         invokes the first "perl" program from your shell's search path.
32477         * build-aux/gitlog-to-changelog: Replace #!... as above.
32478         Add a "Local Variables" perl mode setting.
32479         Prompted by a patch from Ludovic Courtès.
32480         Improved by Eric Blake.
32481         * build-aux/useless-if-before-free: Likewise.
32482         * build-aux/announce-gen: Likewise.
32483         * build-aux/update-copyright: Likewise.
32484
32485 2009-10-29  Eric Blake  <ebb9@byu.net>
32486
32487         filenamecat-lgpl: adjust clients
32488         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32489         filenamecat.
32490         * modules/renameat (Depends-on): Likewise.
32491
32492         filenamecat: split into filenamecat-lgpl
32493         * modules/filenamecat-lgpl: New module.
32494         * modules/filenamecat (Files): Move library-safe files into
32495         filenamecat-lgpl.
32496         (Depends-on): Add filenamecat-lgpl.
32497         (configure.ac): Declare witness.
32498         * lib/filenamecat.h (file_name_concat): Only declare when using
32499         GPL module.
32500         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32501         Move...
32502         * lib/filenamecat-lgpl.c: ...into new file.
32503         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32504         (gl_FILE_NAME_CONCAT): Use it.
32505         * MODULES.html.sh (File system functions): Mention new module.
32506
32507         argp: avoid memory leak
32508         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32509         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32510         base_name, since the latter malloc()s and can call exit().
32511         Leak introduced 2006-07-03.
32512
32513         dirname-lgpl: adjust clients that don't need full dirname
32514         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32515         * modules/filenamecat (Depends-on): Likewise.
32516         * modules/linkat (Depends-on): Likewise.
32517         * modules/mkancesdirs (Depends-on): Likewise.
32518         * modules/mkdir (Depends-on): Likewise.
32519         * modules/openat (Depends-on): Likewise.
32520         * modules/savewd (Depends-on): Likewise.
32521         * modules/rename (Depends-on): Likewise.
32522         (License): Relax license.
32523         * modules/mkdir-tests (Depends-on): Drop progname.
32524         (Makefile.am): Delete unneeded LDADD.
32525         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32526
32527         dirname: split into dirname-lgpl
32528         * modules/dirname-lgpl: New module.
32529         * modules/dirname (Files): Move library-safe files into
32530         dirname-lgpl.
32531         (Depends-on): Add dirname-lgpl.
32532         (configure.ac): Declare witness.
32533         * modules/double-slash-root (License): Relax license.
32534         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32535         module.
32536         * lib/dirname.c (dir_len, mdir_name): Move...
32537         * lib/dirname-lgpl.c: ...into new file.
32538         * lib/basename.c (last_component, base_len): Move...
32539         * lib/basename-lgpl.c: ...into new file.
32540         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32541         (gl_DIRNAME): Use it.
32542         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32543         Mention new module.
32544         * modules/dirname-tests (Depends-on): Add progname.
32545         * tests/test-dirname.c (program_name): Delete.
32546
32547         mkdir: make safe for libraries
32548         * modules/mkdir (Depends-on): Drop xalloc.
32549         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32550         exit.
32551
32552         tests: avoid some compiler warnings
32553         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32554         literals.
32555         * tests/test-memchr.c (main): Avoid type mismatch.
32556         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32557         * tests/test-base64.c (main): Likewise.
32558         * tests/test-getdelim.c (main): Likewise.
32559         * tests/test-gethostname.c (main): Likewise.
32560         * tests/test-getline.c (main): Likewise.
32561         * tests/test-netinet_in.c (main): Likewise.
32562         * tests/test-select.c (open_server_socket, main): Likewise.
32563         * tests/test-select-stdin.c (main): Likewise.
32564         * tests/test-sockets.c (main): Likewise.
32565         * tests/test-strsignal.c (main): Likewise.
32566         * tests/test-sys_select.c (main): Likewise.
32567         * tests/test-sys_socket.c (main): Likewise.
32568         * tests/test-u64.c (main): Likewise.
32569         * tests/test-xfprintf-posix.c (main): Likewise.
32570         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32571
32572         sockets: avoid compiler warning
32573         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32574
32575         maint: detect usage(1) and other suspicious exits
32576         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32577
32578 2009-10-29  Jim Meyering  <meyering@redhat.com>
32579
32580         timespec: long-to-int truncation could make timespec_cmp malfunction
32581         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32582         a multiple of 2^32 nanoseconds as no difference.
32583
32584 2009-10-28  Jim Meyering  <meyering@redhat.com>
32585
32586         fprintftime: wrap macro code argument in "do {...} while(0)"
32587         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32588         cpy macro must be a statement that can be followed by a semicolon.
32589         Now that the else clause contains a comment and is hence longer
32590         than one line, I require curly braces.  That in turn requires
32591         that we wrap this code block in the standard do...while(0).
32592
32593         fprintftime: remove stray semicolon from previous change
32594         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32595
32596         fprintftime: avoid a warning about ignored fwrite return value
32597         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32598         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32599         that is unsafe.
32600         * modules/fprintftime (Depends-on): Add ignore-value.
32601
32602         exclude: avoid an unwarranted warning
32603         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32604
32605 2009-10-27  Eric Blake  <ebb9@byu.net>
32606
32607         fseek: avoid compilation failure when fflush is replaced
32608         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32609         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32610         module is in use.
32611         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32612         module is not in use; since REPLACE_FSEEK worked otherwise.
32613         (GNULIB_FTELLO): Likewise for ftell.
32614         Reported by Ian Beckwith and others.
32615
32616 2009-10-27  Bruno Haible  <bruno@clisp.org>
32617
32618         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32619         Reported by Jim Meyering.
32620
32621 2009-10-27  Jim Meyering  <jim@meyering.net>
32622             Bruno Haible  <bruno@clisp.org>
32623
32624         Avoid warning despite dropping the return value of fwrite.
32625         * lib/unicodeio.c: Include ignore-value.h.
32626         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32627         * modules/unicodeio (Depends-on): Add ignore-value.
32628
32629 2009-10-26  Eric Blake  <ebb9@byu.net>
32630
32631         areadlinkat: fix fallback path
32632         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32633         pointer and zero.
32634
32635 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32636
32637         Use a better IO block size for modern systems
32638         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32639         * lib/md2.c: Likewise.
32640         * lib/md4.c: Likewise.
32641         * lib/md5.c: Likewise.
32642         * lib/sha1.c: Likewise.
32643         * lib/sha256.c: Likewise.
32644         * lib/sha512.c: Likewise.
32645
32646 2009-10-22  Eric Blake  <ebb9@byu.net>
32647
32648         tests: avoid several compiler warnings
32649         * tests/test-getcwd.c (main): Avoid buffer underflow.
32650         * tests/test-getdate.c (main): String literals are not safe with
32651         putenv, so use setenv.  Declare unused argument.
32652         * modules/getdate-tests (Depends-on): Add setenv.
32653         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32654         problems with string literals in char *.
32655         * tests/test-hash.c (main): Avoid shadowing declaration.
32656         (insert_new): Treat string literals as char const *.
32657         * tests/test-getopt.h (test_getopt): Likewise.
32658         (getopt_loop): Alter types to minimize casting elsewhere.
32659         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32660         (test_getopt_long_posix): Likewise.
32661         (do_getopt_long): Add wrapper to minimize casting.
32662         * tests/test-atexit.c (clear_temp_file): Use void.
32663         * tests/test-areadlink-with-size.c (main): Declare unused
32664         arguments.
32665         * tests/test-areadlink.c (main): Likewise.
32666         * tests/test-areadlinkat-with-size.c (main): Likewise.
32667         * tests/test-areadlinkat.c (main): Likewise.
32668         * tests/test-canonicalize-lgpl.c (main): Likewise.
32669         * tests/test-canonicalize.c (main): Likewise.
32670         * tests/test-dirent-safer.c (main): Likewise.
32671         * tests/test-dirname.c (main): Likewise.
32672         * tests/test-dup2.c (main): Likewise.
32673         * tests/test-fchdir.c (main): Likewise.
32674         * tests/test-fcntl-h.c (main): Likewise.
32675         * tests/test-fcntl-safer.c (main): Likewise.
32676         * tests/test-fdopendir.c (main): Likewise.
32677         * tests/test-fdutimensat.c (main): Likewise.
32678         * tests/test-fflush.c (main): Likewise.
32679         * tests/test-filenamecat.c (main): Likewise.
32680         * tests/test-filevercmp.c (main): Likewise.
32681         * tests/test-fopen-safer.c (main): Likewise.
32682         * tests/test-fopen.c (main): Likewise.
32683         * tests/test-fpending.c (main): Likewise.
32684         * tests/test-fpurge.c (main): Likewise.
32685         * tests/test-freading.c (main): Likewise.
32686         * tests/test-fstatat.c (main): Likewise.
32687         * tests/test-fsync.c (main): Likewise.
32688         * tests/test-futimens.c (main): Likewise.
32689         * tests/test-getndelim2.c (main): Likewise.
32690         * tests/test-gettimeofday.c (main): Likewise.
32691         * tests/test-getopt.c (main): Likewise.
32692         * tests/test-i-ring.c (main): Likewise.
32693         * tests/test-inttypes.c (main): Likewise.
32694         * tests/test-link.c (main): Likewise.
32695         * tests/test-lstat.c (main): Likewise.
32696         * tests/test-math.c (main): Likewise.
32697         * tests/test-md5.c (main): Likewise.
32698         * tests/test-memchr2.c (main): Likewise.
32699         * tests/test-memrchr.c (main): Likewise.
32700         * tests/test-mkdir.c (main): Likewise.
32701         * tests/test-mkdirat.c (main): Likewise.
32702         * tests/test-mkfifoat.c (main): Likewise.
32703         * tests/test-open.c (main): Likewise.
32704         * tests/test-openat-safer.c (main): Likewise.
32705         * tests/test-openat.c (main): Likewise.
32706         * tests/test-quotearg.c (main): Likewise.
32707         * tests/test-rawmemchr.c (main): Likewise.
32708         * tests/test-readlink.c (main): Likewise.
32709         * tests/test-remove.c (main): Likewise.
32710         * tests/test-rename.c (main): Likewise.
32711         * tests/test-renameat.c (main): Likewise.
32712         * tests/test-rmdir.c (main): Likewise.
32713         * tests/test-sha1.c (main): Likewise.
32714         * tests/test-signal.c (main): Likewise.
32715         * tests/test-sigaction.c (main): Likewise.
32716         * tests/test-stat.c (main): Likewise.
32717         * tests/test-stat-time.c (main): Likewise.
32718         * tests/test-stddef.c (main): Likewise.
32719         * tests/test-stdint.c (main): Likewise.
32720         * tests/test-stdio.c (main): Likewise.
32721         * tests/test-stdlib.c (main): Likewise.
32722         * tests/test-strchrnul.c (main): Likewise.
32723         * tests/test-strerror.c (main): Likewise.
32724         * tests/test-string.c (main): Likewise.
32725         * tests/test-strtod.c (main): Likewise.
32726         * tests/test-strverscmp.c (main): Likewise.
32727         * tests/test-symlink.c (main): Likewise.
32728         * tests/test-symlinkat.c (main): Likewise.
32729         * tests/test-sys_stat.c (main): Likewise.
32730         * tests/test-sys_time.c (main): Likewise.
32731         * tests/test-time.c (main): Likewise.
32732         * tests/test-unistd.c (main): Likewise.
32733         * tests/test-unlink.c (main): Likewise.
32734         * tests/test-unlinkat.c (main): Likewise.
32735         * tests/test-utimens.c (main): Likewise.
32736         * tests/test-utimensat.c (main): Likewise.
32737         * tests/test-version-etc.c (main): Likewise.
32738         * tests/test-wchar.c (main): Likewise.
32739         * tests/test-wctype.c (main): Likewise.
32740         * tests/test-xprintf-posix.c (main): Likewise.
32741         * tests/test-posixtm.c (main): Likewise.
32742         (STREQ): Delete unused macro.
32743         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32744         shadowed variables.
32745         * tests/test-memchr.c (main): Likewise.
32746
32747 2009-10-21  Eric Blake  <ebb9@byu.net>
32748
32749         areadlinkat: avoid failure on older glibc
32750         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32751         rather than mis-comparing 0 against FUNC_RESULT of char*.
32752
32753 2009-10-21  Bruno Haible  <bruno@clisp.org>
32754
32755         * modules/stpncpy (License): Relicense under LGPLv2+.
32756         Reported by David Lutterkort <lutter@redhat.com>.
32757
32758 2009-10-20  Eric Blake  <ebb9@byu.net>
32759
32760         utimensat: work around Solaris 9 bug
32761         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32762         has trailing slash bugs.
32763         * tests/test-lutimens.h (test_lutimens): Enhance test.
32764         * tests/test-utimens.h (test_utimens): Likewise.
32765         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32766         * doc/posix-functions/utimes.texi (utimes): Likewise.
32767         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32768         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32769         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32770         * doc/posix-functions/futimens.texi (futimens): Likewise.
32771
32772         fdutimensat: new module
32773         * modules/fdutimensat: New file.
32774         * lib/fdutimensat.c (fdutimensat): Likewise.
32775         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32776         * MODULES.html.sh (File system functions): Mention module.
32777         * modules/fdutimensat-tests: New test.
32778         * tests/test-fdutimensat.c: Likewise.
32779
32780         doc: regenerate INSTALL
32781         * doc/INSTALL: Reflect recent autoconf update.
32782         * doc/INSTALL.ISO: Likewise.
32783         * doc/INSTALL.UTF-8: Likewise.
32784
32785 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32786
32787         acl: warn if ACL support is not detected
32788         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32789
32790 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32791
32792         * lib/nproc.h: Add extern "C" block for C++.
32793
32794 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32795             Bruno Haible  <bruno@clisp.org>
32796
32797         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32798         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32799         * doc/posix-functions/isalpha.texi: Likewise.
32800         * doc/posix-functions/isblank.texi: Likewise.
32801         * doc/posix-functions/iscntrl.texi: Likewise.
32802         * doc/posix-functions/isdigit.texi: Likewise.
32803         * doc/posix-functions/isgraph.texi: Likewise.
32804         * doc/posix-functions/islower.texi: Likewise.
32805         * doc/posix-functions/isprint.texi: Likewise.
32806         * doc/posix-functions/ispunct.texi: Likewise.
32807         * doc/posix-functions/isspace.texi: Likewise.
32808         * doc/posix-functions/isupper.texi: Likewise.
32809         * doc/posix-functions/isxdigit.texi: Likewise.
32810
32811 2009-10-18  Bruno Haible  <bruno@clisp.org>
32812
32813         Tests for module 'isblank'.
32814         * modules/isblank-tests: New file.
32815         * tests/test-isblank.c: New file.
32816
32817         New module 'isblank'.
32818         * lib/isblank.c: New file.
32819         * m4/isblank.m4: New file.
32820         * modules/isblank: New file.
32821         * doc/posix-functions/isblank.texi: Mention the new module.
32822
32823 2009-10-18  Bruno Haible  <bruno@clisp.org>
32824
32825         New module 'ctype'.
32826         * lib/ctype.in.h: New file.
32827         * m4/ctype.m4: New file.
32828         * modules/ctype: New file.
32829         * doc/posix-headers/ctype.texi: Mention the new module.
32830
32831 2009-10-18  Jim Meyering  <meyering@redhat.com>
32832
32833         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32834         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32835         right after its initialization, rather than farther down.
32836         Keeping these in close proximity makes it easier to ensure
32837         that each such variable is initialized.  E.g.,
32838
32839             LIB_CLOCK_GETTIME=
32840             AC_SUBST([LIB_CLOCK_GETTIME])
32841
32842         This change also increments these serial numbers.
32843         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32844         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32846
32847 2009-10-18  Bruno Haible  <bruno@clisp.org>
32848
32849         Don't let environment variables perturb build.
32850         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32851         (gl_PREREQ_GETHRXTIME): ... not here.
32852
32853 2009-10-18  Bruno Haible  <bruno@clisp.org>
32854
32855         Avoid symlink attack in localcharset module.
32856         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32857         (O_NOFOLLOW): Define fallback.
32858         (get_charset_aliases): Don't open the file if it is a symbolic link.
32859         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32860         gl_FCNTL_H.
32861         (gl_FCNTL_H): Require it.
32862         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32863         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32864         Reported by Fergal Glynn <fglynn@veracode.com>.
32865
32866 2009-10-18  Bruno Haible  <bruno@clisp.org>
32867
32868         Implement nproc for mingw.
32869         * lib/nproc.c: Include <windows.h>
32870         (num_processors): On native Windows platforms, try GetSystemInfo.
32871
32872 2009-10-18  Bruno Haible  <bruno@clisp.org>
32873
32874         Implement nproc for IRIX.
32875         * lib/nproc.c: Include <sys/sysmp.h>.
32876         (num_processors): On IRIX systems, try sysmp.
32877         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32878
32879 2009-10-18  Bruno Haible  <bruno@clisp.org>
32880
32881         Implement nproc for HP-UX.
32882         * lib/nproc.c: Include <sys/pstat.h>
32883         (num_processors): On HP-UX systems, try pstat_getdynamic.
32884         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32885         pstat_getdynamic.
32886
32887 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32888             Bruno Haible  <bruno@clisp.org>
32889
32890         Implement nproc for NetBSD, OpenBSD.
32891         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32892         (ARRAY_SIZE): New macro.
32893         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32894         * m4/nproc.m4: New file.
32895         * modules/nproc (Files): Add m4/nproc.m4.
32896         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32897         (Makefile.am): Instead, augment lib_SOURCES.
32898
32899 2009-10-18  Bruno Haible  <bruno@clisp.org>
32900
32901         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32902         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32903         sys/param.h.
32904
32905 2009-10-16  Eric Blake  <ebb9@byu.net>
32906
32907         utimensat: new module
32908         * modules/utimensat: New file.
32909         * lib/utimensat.c (utimensat): Likewise.
32910         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32911         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32912         so we can work around Linux bugs.
32913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32914         * modules/sys_stat (Makefile.am): Substitute them.
32915         * lib/sys_stat.in.h (utimensat): Declare it.
32916         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32917         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32918         * modules/utimensat-tests: New test.
32919         * tests/test-utimensat.c: Likewise.
32920
32921         utimens: let lutimens work on non-symlinks
32922         * lib/utimens.c (lutimens): Fall back to utimens rather than
32923         failing with ENOSYS, when file is not a symlink.
32924         (utimens): Reduce redirection.
32925         * tests/test-lutimens.h (test_lutimens): Update test to cover
32926         non-symlinks.
32927         * tests/test-utimens.h (test_utimens): Update test to cover
32928         symlinks.
32929         * tests/test-utimens.c (main): Update caller.
32930
32931         utimens: cache whether utimensat syscall works
32932         * lib/utimens.c (utimensat_works_really): New cache variable.
32933         (fdutimens, lutimens): Use it to avoid failing syscall.
32934
32935         test-stat-time, test-utimens: improve portability
32936         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32937         ext4 on alpha, and for cygwin.
32938         * tests/test-utimens-common.h: New file.
32939         (nap): Factor delays into single function.
32940         * tests/test-lutimens.h (test_lutimens): Use new header.
32941         * tests/test-futimens.h (test_futimens): Likewise.
32942         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32943         timestamps to occur from same machine, as was done previously for
32944         test_utimens.
32945         * modules/utimens-tests (Files): Ship new file.
32946         * modules/futimens-tests (Files): Likewise.
32947         Reported in part by Jim Meyering.
32948
32949         sys_stat: sort replacement declarations
32950         * lib/sys_stat.in.h: Sort declarations.
32951         * lib/futimens.c (futimens): Fix typo.
32952
32953 2009-10-15  Jim Meyering  <meyering@redhat.com>
32954
32955         don't let environment settings perturb build
32956         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32957         could cause a configure-time and/or build-time malfunction.
32958         Typically, a configure-time function-in-library test is performed
32959         via code like this:
32960
32961           LIB_VAR=
32962           AC_SUBST([LIB_VAR])
32963           prefix_saved_LIBS=$LIBS
32964             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32965                        [test "$ac_cv_search_FUNC" = "none required" ||
32966                         LIB_VAR=$ac_cv_search_FUNC])
32967           LIBS=$prefix_saved_LIBS
32968
32969         However, in each of the files affected by this change, the LIB_VAR=
32970         initialization was omitted.  Thus, when set in the environment, its
32971         value would propagate into generated Makefiles when FUNC is not found
32972         in LIB_NAME.
32973         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32974         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32976
32977 2009-10-14  Eric Blake  <ebb9@byu.net>
32978
32979         fchdir: avoid infinite recursion in mingw
32980         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32981         recursing.
32982
32983         test-stat-time: port to mingw
32984         * tests/test-stat-time.c (force_unlink): Return a value.
32985         (test_ctime) [W32]: Fix compilation error.
32986         (nap): Don't call usleep with too large an argument.  Use
32987         force_unlink.
32988         * doc/pastposix-functions/usleep.texi (usleep): Document the
32989         portability issue.
32990
32991 2009-10-13  Jim Meyering  <meyering@redhat.com>
32992
32993         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32994         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32995         * modules/pipe-filter-ii: Likewise.
32996         * modules/sys_socket-tests: Likewise.
32997         * modules/tsearch-tests: Likewise.
32998         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32999         (check): Depend on it.
33000
33001 2009-10-12  Eric Blake  <ebb9@byu.net>
33002
33003         utimens-tests: port to NFS file systems
33004         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33005         comparisons to avoid spurious failures from timestamp drift
33006         between NFS machines.
33007
33008 2009-10-12  Eric Blake  <ebb9@byu.net>
33009
33010         stat-time-tests: minor cleanups
33011         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33012         * tests/test-stat-time.c (nap): Separate assignment from call.
33013         Suggested by Paolo Bonzini and Bruno Haible.
33014
33015         sys_stat: guarantee struct timespec
33016         * lib/sys_stat.in.h (includes): Always include <time.h>
33017         * modules/sys_stat (Depends-on): Add time.
33018         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33019         mode_t permission values.
33020         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33021         get at subsecond timestamps.
33022
33023 2009-10-10  Eric Blake  <ebb9@byu.net>
33024
33025         futimens: new module
33026         * modules/futimens: New file.
33027         * lib/futimens.c (futimens): Likewise.
33028         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33029         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33030         we can work around Linux bugs.
33031         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33032         * modules/sys_stat (Makefile.am): Substitute them.
33033         * lib/sys_stat.in.h (futimens): Declare it.
33034         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33035         * doc/posix-functions/futimens.texi (futimens): Likewise.
33036         * modules/futimens-tests: New test.
33037         * tests/test-futimens.c: Likewise.
33038
33039         utimens: introduce fdutimens
33040         * lib/utimens.h (fdutimens): New prototype.
33041         * lib/utimens.c (gl_futimens): Move guts...
33042         (fdutimens): ...to new interface.
33043         * tests/test-utimens.c (do_fdutimens): Use it.
33044
33045         utimens: add UTIME_NOW and UTIME_OMIT support
33046         * lib/utimens.c (validate_timespec, update_timespec): New helper
33047         functions.
33048         (gl_futimens, lutimens): Use them.
33049         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33050         stdbool, sys_stat.
33051         (Link): Mention resulting library dependency.
33052         * modules/utimecmp (Link): Likewise.
33053         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33054         (Makefile.am): Pick up library dependency.
33055         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33056         definition.
33057         * tests/test-sys_stat.c: Test the definitions.
33058         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33059         * NEWS: Document library dependency.
33060
33061         utimecmp: support symlink timestamps
33062         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33063         hashing when possible.  Use pathconf when available.
33064         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33065         * modules/utimecmp (Depends-on): Add lstat.
33066
33067         utimens: add lutimens interface
33068         * lib/utimens.c (lutimens): New function.
33069         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33070         * lib/utimens.h (lutimens): Declare new interface.
33071         * tests/test-utimens.c (main): Enhance test.
33072         * tests/test-lutimens.h (test_lutimens): New file.
33073         * modules/utimens-tests (Files): Distribute it.
33074         (Depends-on): Add symlink.
33075         (configure.ac): Check for usleep.
33076
33077         utimens: validate futimens usage
33078         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33079         fewer syscalls on failure later on.  Avoid compiler warning on
33080         mingw.
33081         * modules/utimens (Depends-on): Add dup2.
33082
33083         utimens: add test
33084         * modules/utimens-tests: New test.
33085         * tests/test-utimens.h: New file.
33086         * tests/test-futimens.h: Likewise.
33087         * tests/test-utimens.c: Likewise.
33088
33089         doc: mention timestamp portability issues
33090         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33091         instead.
33092         * doc/posix-functions/utime.texi (utime): Likewise.
33093         * doc/posix-functions/utimes.texi (utimes): Likewise.
33094         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33095         instead.
33096         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33097         module.
33098         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33099         Mention weakness with symlink timestamps.
33100         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33101         to utimensat/futimens instead.
33102         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33103
33104         test-dup2: enhance test
33105         * tests/test-dup2.c (main): Also check AT_FDCWD.
33106
33107         test-stat-time: avoid more spurious failures
33108         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33109         xfs; and avoid race if the two timestamps cross quantization edge.
33110
33111         relocatable: prefer 'file system' over 'filesystem'
33112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33113         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33114         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33115         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33116         * lib/relocatable.c (compute_curr_prefix): Likewise.
33117
33118 2009-10-10  Jim Meyering  <meyering@redhat.com>
33119
33120         stat-time-tests: check for the usleep function
33121         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33122
33123 2009-10-10  Bruno Haible  <bruno@clisp.org>
33124
33125         * modules/xnanosleep: Put the Link section after the Include section.
33126
33127 2009-10-09  Eric Blake  <ebb9@byu.net>
33128
33129         dup2: work around FreeBSD 6.1 bug
33130         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33131         * doc/posix-functions/dup2.texi (dup2): Document it.
33132         Reported by Nelson H. F. Beebe and Jim Meyering.
33133
33134         test-stat-time: port to buggy NFS clients
33135         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33136         (test_ctime): Also skip test if mtime and ctime are skewed.
33137
33138         maint: prefer 'file system' over 'filesystem'
33139         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33140         * doc/posix-functions/lstat.texi (lstat): Likewise.
33141         * lib/file-has-acl.c (file_has_acl): Likewise.
33142         * lib/fwriteerror.c [TEST]: Likewise.
33143         * tests/test-areadlink.h (test_areadlink): Likewise.
33144         * tests/test-areadlinkat-with-size.c (main): Likewise.
33145         * tests/test-areadlinkat.c (main): Likewise.
33146         * tests/test-canonicalize-lgpl.c (main): Likewise.
33147         * tests/test-canonicalize.c (main): Likewise.
33148         * tests/test-fstatat.c (main): Likewise.
33149         * tests/test-linkat.c (main): Likewise.
33150         * tests/test-lstat.h (test_lstat_func): Likewise.
33151         * tests/test-mkdir.h (test_mkdir): Likewise.
33152         * tests/test-readlink.h (test_readlink): Likewise.
33153         * tests/test-remove.c (main): Likewise.
33154         * tests/test-rename.h (test_rename): Likewise.
33155         * tests/test-renameat.c (main): Likewise.
33156         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33157         * tests/test-symlink.h (test_symlink): Likewise.
33158         * tests/test-symlinkat.c (main): Likewise.
33159         * tests/test-unlink.h (test_unlink_func): Likewise.
33160         * tests/test-unlinkat.c (main): Likewise.
33161
33162         maint: make realtime library usage explicit
33163         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33164         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33165         * modules/settime (Link): Likewise.
33166         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33167
33168         test-stat-time: speed up execution
33169         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33170         warning on mingw.
33171         (nap): New helper function.
33172         (prepare_test): Use it to reduce sleep time.
33173         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33174         execution.
33175         * modules/stat-time-tests (configure.ac): Check for usleep.
33176
33177 2009-10-09  Jim Meyering  <meyering@redhat.com>
33178
33179         selinux-h: always use getfilecon wrappers
33180         * lib/getfilecon.c: New file.
33181         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33182         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33183         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33184         (fgetfilecon): Provide a stub.
33185         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33186         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33187         file unconditionally.
33188         When <selinux/selinux.h> is found, arrange to use wrappers.
33189         * modules/selinux-h (Files): Add getfilecon.c.
33190         (Makefile.am): Substitute include-next-related bits
33191         into the now-always-generated selinux/selinux.h file.
33192         * doc/glibc-functions/lgetfilecon.texi: New file.
33193         * doc/glibc-functions/fgetfilecon.texi: New file.
33194         * doc/glibc-functions/getfilecon.texi: New file.
33195         * doc/glibc-functions/getfilecon-desc.texi: New file.
33196         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33197         which to pull in the new files.
33198         * MODULES.html.sh (Misc): Add selinux-h.
33199
33200 2009-10-08  Jim Meyering  <meyering@redhat.com>
33201
33202         unistd: fix comment typo
33203         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33204
33205 2009-10-08  Eric Blake  <ebb9@byu.net>
33206
33207         areadlink: use SIZE_MAX consistently
33208         * modules/areadlink (Depends-on): Add stdint.
33209         * modules/areadlink-with-size (Depends-on): Likewise.
33210         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33211         gives NULL; drop sys/types, since unistd gives size_t; and add
33212         stdint for SIZE_MAX.
33213         (SIZE_MAX): Rely on headers.
33214         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33215         and add stdint.
33216         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33217         (SIZE_MAX): Likewise.
33218         (INITIAL_BUF_SIZE): Turn into enum.
33219         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33220
33221 2009-10-08  Jim Meyering  <meyering@redhat.com>
33222
33223         areadlinkat: avoid compilation failure
33224         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33225         Fix typo in comment.
33226
33227 2009-10-07  Eric Blake  <ebb9@byu.net>
33228
33229         areadlinkat-with-size: new module
33230         * modules/areadlinkat-with-size: New module.
33231         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33232         * lib/areadlink.h (areadlinkat): Declare it.
33233         * MODULES.html.sh (File system functions): Mention it.
33234         * modules/areadlinkat-with-size-tests: New test.
33235         * tests/test-areadlinkat-with-size.c: New file.
33236
33237         xreadlinkat: new module
33238         * modules/xreadlinkat: New module.
33239         * lib/xreadlinkat.c (xreadlinkat): New file.
33240         * lib/xreadlink.h (xreadlinkat): Declare it.
33241         * MODULES.html.sh (File system functions): Mention it.
33242
33243         areadlinkat: new module
33244         * lib/at-func.c (FUNC_FAIL): New define.
33245         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33246         * modules/areadlinkat: New module.
33247         * lib/linkat.c (areadlinkat): Move...
33248         * lib/areadlinkat.c (areadlinkat): ...to new file.
33249         * lib/areadlink.h (areadlinkat): Declare it.
33250         * modules/linkat (Depends-on): Add areadlinkat.
33251         * MODULES.html.sh (File system functions): Mention it.
33252         * modules/areadlinkat-tests: New test.
33253         * tests/test-areadlinkat.c: New file.
33254
33255         areadlink, areadlink-with-size: add tests
33256         * modules/areadlink-tests: New test.
33257         * modules/areadlink-with-size-tests: Likewise.
33258         * tests/test-areadlink.h: New file.
33259         * tests/test-areadlink.c: Likewise.
33260         * tests/test-areadlink-with-size.c: Likewise.
33261
33262         maint: minor cleanups
33263         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33264         _UNUSED_PARAMETER_ instead.
33265         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33266         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33267         * modules/linkat-tests (Files): Distribute test-link.h.
33268
33269         openat, utimens: whitespace cleanup
33270         * lib/openat.c: Prefer space throughout, rather than mix of 8
33271         spaces vs. tabs.
33272         * lib/at-func.c: Likewise.
33273         * lib/utimens.c: Likewise.
33274
33275         openat: avoid using wrong fd
33276         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33277         working directory chooses same fd.
33278         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33279
33280         mkdir, mkdirat: fix cygwin 1.5.x bug
33281         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33282         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33283         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33284         bug.
33285         (gl_PREREQ_MKDIR): Delete unused macro.
33286         * modules/mkdir (Files): Track file rename.
33287         (configure.ac): Update macro name.
33288         * modules/openat (Depends-on): Add mkdir.
33289         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33290
33291         mkdir, mkdirat: add tests
33292         * modules/mkdir-tests: New test.
33293         * tests/test-mkdir.h: New file.
33294         * tests/test-mkdir.c: Likewise.
33295         * tests/test-mkdirat.c: Likewise.
33296         * modules/openat-tests (Files): Add new files.
33297         (Makefile.am): Run new test.
33298
33299 2009-10-06  Eric Blake  <ebb9@byu.net>
33300
33301         doc: tweak *at function documentation
33302         * doc/posix-functions/faccessat.texi (faccessat): Mention
33303         known issue with replacement.
33304         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33305         * doc/posix-functions/linkat.texi (linkat): Likewise.
33306         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33307         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33308         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33309         * doc/posix-functions/renameat.texi (renameat): Likewise.
33310         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33311
33312         openat: fix GNU/Hurd bug in unlinkat
33313         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33314         broken.
33315         * doc/posix-functions/unlink.texi (unlink): Document this.
33316         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33317
33318         fdopendir: fix GNU/Hurd bug
33319         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33320         allowing non-directory fds.
33321         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33323         * modules/dirent (Makefile.am): Substitute it.
33324         * lib/dirent.in.h (fdopendir): Declare replacement.
33325         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33326         * tests/test-fdopendir.c (main): Test something other than
33327         /dev/null, since on Hurd that behaves like a directory.
33328
33329         test-symlink: port to GNU/Hurd
33330         * tests/test-symlink.h (test_symlink): Relax expected errno.
33331
33332         doc: tweak more cygwin information
33333         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33334         now compatible with glibc.
33335         * doc/posix-functions/getopt.texi (getopt): Likewise.
33336
33337         getopt-gnu: add another test
33338         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33339         guarantee behavior relied on by m4.
33340         * tests/test-getopt.c (main): Use it.
33341         * modules/getopt-posix-tests (Depends-on): Add setenv.
33342         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33343
33344         getopt: fix compilation on darwin
33345         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33346         include.
33347         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33348         Reported by Ludovic Courtès.
33349
33350 2009-10-06  Bruno Haible  <bruno@clisp.org>
33351
33352         * modules/size_max (Description): Discourage its use.
33353         Reported by Simon Josefsson.
33354
33355 2009-10-06  Jim Meyering  <meyering@redhat.com>
33356
33357         linkat: avoid compilation failure
33358         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33359
33360 2009-10-05  Eric Blake  <ebb9@byu.net>
33361
33362         linkat: support Linux 2.6.17
33363         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33364         linkat on Linux, but allow cache variable override.
33365         * lib/linkat.c (rpl_linkat): Define override.
33366         * modules/linkat (Depends-on): Add symlinkat.
33367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33368         * modules/unistd (Makefile.am): Substitute it.
33369         * lib/unistd.in.h (linkat): Declare replacement.
33370         Reported by Pádraig Brady.
33371
33372         quotearg: port test to systems with C.UTF-8 locale
33373         * tests/test-quotearg.c (struct result_strings): Add another
33374         member, differentiating between C.ASCII and C.UTF-8 handling.
33375         (compare_strings): Add parameter.
33376         (main): Adjust all callers.
33377
33378         getopt: avoid clash with FreeBSD _getopt_internal
33379         * lib/getopt.in.h (_getopt_internal): Override the name.
33380         * lib/getopt_int.h (includes): Pick up any overrides.
33381         Reported by Reuben Thomas.
33382
33383         hash: allow C89 compilation
33384         * lib/hash.c (check_tuning): Move declaration before statement.
33385         Reported by Reuben Thomas.
33386
33387 2009-10-05  Karl Berry  <karl@gnu.org>
33388
33389         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33390
33391 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33392             Bruno Haible  <bruno@clisp.org>
33393
33394         * lib/uname.c (uname): Use a table-driven algorithm to compute
33395         Windows NT versions.
33396
33397 2009-10-04  Bruno Haible  <bruno@clisp.org>
33398
33399         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33400         program_invocation_short_name.
33401         * modules/progname (configure.ac): Test for presence of
33402         program_invocation_short_name.
33403         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33404
33405 2009-10-04  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/progname.c (set_program_name): Fix comment.
33408         Reported by Jim Meyering.
33409
33410 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33411             Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/uname.c: Include <string.h>.
33414         (uname): Do only one call to GetVersionEx in the common case.
33415
33416 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33417             Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33420         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33421         (uname): Add support for Windows CE and various non-x86 CPU types.
33422
33423 2009-10-03  Bruno Haible  <bruno@clisp.org>
33424
33425         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33426         invocation to tests/configure.ac.
33427         Reported by Ian Beckwith <ianb@erislabs.net>.
33428
33429 2009-10-02  Eric Blake  <ebb9@byu.net>
33430
33431         fchdir: avoid compiler warning
33432         * lib/fchdir.c (canonicalize_file_name)
33433         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33434
33435         test-open: support mingw errno values
33436         * tests/test-open.h (test_open): Relax test.
33437         * tests/test-fopen.h (test_fopen): Likewise.
33438         * tests/test-openat-safer.c (main): Likewise.
33439
33440         open: fix opening directory on mingw
33441         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33442
33443         test-open: on GNU/Hurd, /dev/null is a directory
33444         * tests/test-fopen.h (main): Rename...
33445         (test_fopen): ...to this.  Use a guaranteed non-directory when
33446         confirming open behavior on trailing slash.
33447         * tests/test-openat-safer.c (main): Likewise.
33448         * tests/test-open.h (main): Likewise....
33449         (test_open): ...to this.
33450         * tests/test-fopen.c (main): Adjust caller.
33451         * tests/test-fopen-safer.c (main): Likewise.
33452         * tests/test-open.c (main): Likewise.
33453         * tests/test-fcntl-safer.c (main): Likewise.
33454         Reported by Samuel Thibault.
33455
33456         rename, fchdir: don't ignore chdir failure
33457         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33458         * lib/rename.c (rpl_rename) [W32]: Likewise.
33459         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33460         an empty destination directory if source cannot be renamed,
33461         although there is still possibility for failure.
33462         * doc/posix-functions/rename.texi (rename): Document the race.
33463         Reported by Jim Meyering.
33464
33465         maint: cleanup whitespace in recent commits
33466         * lib/rename.c (rpl_rename): Remove tabs.
33467         * tests/test-link.h (test_link): Likewise.
33468         * lib/fchdir.c (get_name): Likewise.
33469         Reported by Jim Meyering.
33470
33471 2009-10-02  Ben Pfaff  <blp@gnu.org>
33472
33473         relocatable-prog-wrapper: Add missing dependency on
33474         double-slash-root.
33475         * modules/relocatable-prog-wrapper: Add dependency.
33476         Reported by Ian Beckwith <ianb@erislabs.net>.
33477
33478 2009-10-02  Eric Blake  <ebb9@byu.net>
33479
33480         renameat: fix Solaris bugs
33481         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33482         needed fixing.
33483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33484         * modules/stdio (Makefile.am): Substitute it.
33485         * lib/stdio.in.h (renameat): Declare replacement.
33486         * lib/renameat.c (rpl_renameat): Implement fix.
33487
33488         renameat: new module
33489         * modules/renameat: New file.
33490         * lib/renameat.c (renameat): Likewise.
33491         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33493         * modules/stdio (Makefile.am): Substitute them.
33494         * lib/stdio.in.h (renameat): Declare it.
33495         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33496         * doc/posix-functions/renameat.texi (renameat): Likewise.
33497         * modules/renameat-tests: New test.
33498         * tests/test-renameat.c: Likewise.
33499
33500         rename: fix mingw bugs
33501         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33502         directory overwrite bugs.
33503
33504         rename: fix another cygwin 1.5 bug
33505         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33506         checks.
33507         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33508         unnecessary cygwin workarounds.  Also work around bug with moving
33509         full directory onto an empty one.
33510         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33511
33512         rename-dest-slash: merge into rename module
33513         * modules/rename-dest-slash (Status): Mark obsolete.
33514         (Depends-on): Add rename.
33515         (Files): Let rename do it all.
33516         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33517         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33518         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33519         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33520         * lib/rename.c (rpl_rename): Update comments.
33521
33522         rename: fix cygwin 1.5.x bugs
33523         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33524         * lib/rename.c (rpl_rename): Work around them.
33525         * modules/rename (Depends-on): Add same-inode.
33526
33527         rename: fix Solaris 10 bug
33528         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33529         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33530         was the only bug.
33531
33532         rename: fix Solaris 9 bug
33533         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33534         on non-directory.  Avoid calling exit.
33535         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33536         strdup.
33537         * modules/rename-tests (Depends-on): Drop lstat.
33538         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33539         (gl_PREREQ_RENAME): Delete unused macro.
33540
33541         rename-dest-slash: fix NetBSD bug
33542         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33543         links.
33544         * modules/rename-dest-slash (Depends-on): Add same-inode.
33545
33546         rename-tests: new test, exposes several platform bugs
33547         * modules/rename-tests: New file.
33548         * tests/test-rename.h: Likewise.
33549         * tests/test-rename.c: Likewise.
33550         * doc/posix-functions/rename.texi (rename): Improve documentation,
33551         including bugs that will eventually be fixed in gnulib.
33552
33553 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33554
33555         * lib/uname.c: Include <stdlib.h>
33556         (uname): Assume version info is available.
33557
33558 2009-10-02  Jim Meyering  <meyering@redhat.com>
33559
33560         gnu-web-doc-update: correct --help output
33561         * build-aux/gnu-web-doc-update: Make --help output relevant.
33562
33563         gnu-web-doc-update: add standard options
33564         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33565
33566         gnu-web-doc-update: New module.
33567         Use this script to automatically update the on-line web documentation
33568         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33569         * modules/gnu-web-doc-update: New file, from coreutils.
33570         * build-aux/gnu-web-doc-update: New script.
33571
33572 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33573
33574         link: LoadLibrary is not needed.
33575         * lib/link.c: Use GetModuleHandle.
33576
33577 2009-10-01  Eric Blake  <ebb9@byu.net>
33578
33579         getopt: bump serial number
33580         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33581         change.
33582
33583         tests: tighten link, rmdir, and remove tests
33584         * tests/test-link.h (includes): No need to use <config.h> here.
33585         Clean up if directory hard link was created, otherwise test for
33586         trailing '.'.
33587         * tests/test-linkat.c (main): Simplify.
33588         * tests/test-remove.c (main): Enhance test for trailing '.'.
33589         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33590
33591 2009-10-01  Jim Meyering  <meyering@redhat.com>
33592
33593         maint.mk: requiring "make major" was annoying, for a "minor" release.
33594         What is intended is "stable", to contrast with alpha and beta,
33595         so require "make stable", not "make major".
33596         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33597         (get_tool_versions): Likewise.
33598         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33599
33600 2009-09-30  Ben Pfaff  <blp@gnu.org>
33601
33602         Fix broken build of replacement for Windows tmpfile().
33603         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33604         flags argument added along with the 'mkostemp' module.
33605
33606 2009-09-28  Bruno Haible  <bruno@clisp.org>
33607
33608         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33609         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33610         to 'remove_elt'.
33611         (gl_list_remove): Update.
33612         * lib/gl_list.c (gl_list_remove): Update.
33613         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33614         to 'remove_elt'.
33615         (gl_oset_remove): Update.
33616         * lib/gl_list.c (gl_oset_remove): Update.
33617         Reported by Eric Blake.
33618
33619 2009-09-28  Eric Blake  <ebb9@byu.net>
33620
33621         doc: mention yet more cygwin 1.7 status
33622         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33623         cygwin.
33624         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33625         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33626
33627         argp: fix test failure
33628         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33629         that are not upper-case.  Pass correct range to tolower.
33630
33631 2009-09-27  Jim Meyering  <meyering@redhat.com>
33632
33633         test-yesno: work around sparc-dash here-document infelicity
33634         Without this change, the literal \177 byte in a here document
33635         would make dash 0.5.5.1-3 access uninitialized memory.
33636         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33637         Instead, use a marker, "@", and filter through tr to create the desired
33638         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33639
33640 2009-09-27  Bruno Haible  <bruno@clisp.org>
33641
33642         Disable untested support for new flavours of ACLs on AIX.
33643         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33644         progress.
33645         * lib/set-mode-acl.c (qset_acl): Likewise.
33646
33647 2008-12-07  Bruno Haible  <bruno@clisp.org>
33648
33649         Add support for new flavours of ACLs on AIX. (Untested.)
33650         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33651         (file_has_acl): Add support for newer AIX.
33652         * lib/set-mode-acl.c (qset_acl): Likewise.
33653         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33654         Rainer Tammer <tammer@tammer.net>.
33655
33656 2009-09-26  Eric Blake  <ebb9@byu.net>
33657
33658         argp: fix compilation of getopt
33659         * lib/getopt.in.h (includes): Use different guard than glibc.
33660         Reported by Sergey Poznyakoff.
33661
33662         doc: mention more cygwin 1.7 status
33663         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33664         bug.
33665         * doc/posix-functions/execl.texi (execl): Likewise.
33666         * doc/posix-functions/execle.texi (execle): Likewise.
33667         * doc/posix-functions/execlp.texi (execlp): Likewise.
33668         * doc/posix-functions/execv.texi (execv): Likewise.
33669         * doc/posix-functions/execve.texi (execve): Likewise.
33670         * doc/posix-functions/execvp.texi (execvp): Likewise.
33671         * doc/glibc-functions/canonicalize_file_name.texi
33672         (canonicalize_file_name): Cygwin 1.7 now provides this.
33673         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33674         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33675         on AT_SYMLINK_NOFOLLOW.
33676
33677 2009-09-24  Eric Blake  <ebb9@byu.net>
33678
33679         test-linkat: make test more robust
33680         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33681
33682         getopt: fix inclusion guards for cygwin
33683         * modules/getopt-posix (Depends-on): Add include-next.
33684         (Makefile.am): Substitute more items in replacement header.
33685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33686         <getopt.h>.
33687         * lib/getopt.in.h (includes): Use split inclusion guard, and
33688         prefer <getopt.h> over include <unistd.h> when one is present.
33689         (option): Also override name of 'struct option'.
33690
33691         same-inode: revert prior change; it is not yet ready
33692         * NEWS: Undo mention of this change.
33693         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33694         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33695         * lib/cycle-check.c (cycle_check): Likewise.
33696         * lib/same.c (same_name): Likewise.
33697         * lib/at-func2.c (at_func2): Likewise.
33698
33699 2009-09-23  Eric Blake  <ebb9@byu.net>
33700
33701         linkat: new module
33702         * modules/linkat: New file.
33703         * lib/at-func2.c (at_func2): Likewise.
33704         * lib/linkat.c (linkat): Likewise.
33705         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33706         * lib/openat-priv.h (at_func2): Add declaration.
33707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33708         * modules/unistd (Makefile.am): Substitute them.
33709         * lib/unistd.in.h (linkat): Declare it.
33710         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33711         * doc/posix-functions/linkat.texi (linkat): Likewise.
33712         * doc/posix-functions/link.texi (link): Tweak wording.
33713         * tests/test-link.c (main): Move guts...
33714         * tests/test-link.h (test_link): ...into new file.
33715         * modules/linkat-tests: New test.
33716         * tests/test-linkat.c: Likewise.
33717         * modules/link-tests (Files): Ship new file.
33718         (Depends-on): Add stdbool.
33719
33720         dirname: add library-safe mdir_name
33721         * lib/dirname.h (mdir_name): New prototype.
33722         * lib/dirname.c (dir_name): Move guts...
33723         (mdir_name): ...to new function that avoids xalloc_die.
33724
33725         fchdir: another mingw fix
33726         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33727         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33728         on mingw (where it has not yet been ported), and make it optional
33729         elsewhere.
33730         (_gl_register_fd): Use it.
33731
33732         same-inode: make SAME_INODE tri-state, to port to mingw
33733         * NEWS: Mention this change.
33734         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33735         st_ino always being 0.
33736         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33737         * lib/cycle-check.c (cycle_check): Likewise.
33738         * lib/same.c (same_name): Likewise.
33739
33740         lstat: avoid mingw compilation error
33741         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33742         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33743         lstat ourselves.
33744         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33745         was adequate.
33746         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33747         the checks for lstat.
33748         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33749
33750         link: fix test failure on Solaris 9
33751         * lib/link.c (rpl_link): Don't assume link will catch bogus
33752         trailing slash on source.
33753
33754         test-symlinkat: enhance test
33755         * tests/test-readlink.c (main): Move guts...
33756         * tests/test-readlink.h (test_readlink): ...into new file.
33757         * tests/test-symlink.c (main): Move guts...
33758         * tests/test-symlink.h (test_symlink): ...into new file.
33759         * tests/test-symlinkat.c (main): Use new files for further
33760         coverage.
33761         (do_symlink, do_readlink): New helper functions.
33762         * modules/symlink-tests (Files): Ship new file.
33763         (Depends-on): Add stdbool.
33764         * modules/readlink-tests (Files): Ship new file.
33765         (Depends-on): Add stdbool.
33766         * modules/symlinkat-tests (Files): Use new files.
33767
33768 2009-09-23  Eric Blake  <ebb9@byu.net>
33769
33770         readlink: document portability issue with symlink length
33771         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33772         systems have bogus st_size on symlinks, and mention the
33773         areadlink-with-size module.
33774         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33775         * doc/posix-functions/readlink.texi (readlink): Mention the
33776         areadlink module, and ERANGE failure.
33777         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33778         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33779
33780         readlink: fix Solaris 9 bug with trailing slash
33781         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33782         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33783         * doc/posix-functions/readlink.texi (readlink): Document this.
33784         * modules/readlink-tests: New test.
33785         * tests/test-readlink.c: Likewise.
33786
33787         readlink: fix cygwin 1.5.x bug with return type
33788         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33789         * lib/unistd.in.h (readlink): Use ssize_t.
33790         * lib/readlink.c (readlink): Likewise.
33791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33792         * modules/unistd (Makefile.am): Substitute it.
33793         * lib/unistd.in.h (readlink): Declare replacement.
33794         * doc/posix-functions/readlink.texi (readlink): Document this.
33795
33796         symlink: use throughout gnulib
33797         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33798         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33799         symlink is not used.
33800         * modules/symlinkat (Depends-on): Add symlink.
33801         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33802         * modules/canonicalize-tests (Depends-on): Likewise.
33803         * modules/lstat-tests (Depends-on): Likewise.
33804         * modules/openat-tests (Depends-on): Likewise.
33805         * modules/remove-tests (Depends-on): Likewise.
33806         * modules/rmdir-tests (Depends-on): Likewise.
33807         * modules/unlink-tests (Depends-on): Likewise.
33808         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33809         * tests/test-canonicalize.c (symlink): Likewise.
33810         * tests/test-fstatat.c (symlink): Likewise.
33811         * tests/test-lstat.c (symlink): Likewise.
33812         * tests/test-remove.c (symlink): Likewise.
33813         * tests/test-rmdir.c (symlink): Likewise.
33814         * tests/test-unlink.c (symlink): Likewise.
33815         * tests/test-unlinkat.c (symlink): Likewise.
33816
33817         symlink: new module, for Solaris 9 bug
33818         * modules/symlink: New file.
33819         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33820         * lib/symlink.c: Likewise.
33821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33822         * modules/unistd (Makefile.am): Substitute them.
33823         * lib/unistd.in.h (symlink): Declare replacement.
33824         * MODULES.html.sh (File system functions): Mention it.
33825         * doc/posix-functions/symlink.texi (symlink): Likewise.
33826         * modules/symlink-tests: New test.
33827         * tests/test-symlink.c: Likewise.
33828
33829 2009-09-23  Bruno Haible  <bruno@clisp.org>
33830
33831         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33832         when needed.
33833         Test case: gnulib-tool --import --with-tests atexit inttypes.
33834         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33835
33836 2009-09-23  Bruno Haible  <bruno@clisp.org>
33837
33838         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33839         subcommand, not in a subshell.
33840
33841 2009-09-22  Eric Blake  <ebb9@byu.net>
33842
33843         unistd: sort replacement declarations
33844         * lib/unistd.in.h: Sort declarations.
33845
33846         open, openat: minor optimization
33847         * lib/open.c (open): If open succeeded, len is non-zero.
33848         * lib/openat.c (rpl_openat): Likewise.
33849
33850         link-follow: ensure correct result
33851         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33852         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33853         distinguish between possible failures.
33854
33855 2009-09-21  Eric Blake  <ebb9@byu.net>
33856
33857         fts: avoid compiler warning
33858         * lib/fts.c (dirent_inode_sort_may_be_useful)
33859         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33860
33861 2009-09-19  Bruno Haible  <bruno@clisp.org>
33862
33863         * lib/progreloc.c (canonicalize_file_name): New declaration.
33864
33865 2009-09-19  Eric Blake  <ebb9@byu.net>
33866
33867         link: fix quoting
33868         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33869
33870         openat: fix openat bugs on Solaris 9
33871         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33872         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33873         * modules/openat (Depends-on): Add open.
33874         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33875         * modules/fcntl-h (Makefile.am): Substitute it.
33876         * lib/fcntl.in.h (openat): Declare replacement.
33877         * doc/posix-functions/openat.texi (openat): Document this.
33878
33879         openat: move fstatat and unlinkat into correct files
33880         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33881         compiled.
33882         * lib/openat.c (fstatat, unlinkat): Move...
33883         * lib/fstatat.c (fstatat): ...into correct files.
33884         * lib/unlinkat.c (unlinkat): Likewise.
33885
33886         openat: fix unlinkat bugs on Solaris 9
33887         * lib/unlinkat.c (unlinkat): New file.
33888         * modules/openat (Depends-on): Add unlink.
33889         (Files): Distribute it.
33890         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33891         trailing slash behavior is broken.
33892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33893         * modules/unistd (Makefile.am): Substitute it.
33894         * lib/unistd.in.h (unlinkat): Declare replacement.
33895         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33896
33897         openat: fix fstatat bugs on Solaris 9
33898         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33899         stat.
33900         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33901
33902         test-unlinkat: enhance test, to expose Solaris 9 bug
33903         * tests/test-unlink.c (main): Factor guts...
33904         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33905         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33906         * tests/test-rmdir.c (main): Adjust caller.
33907         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33908         (unlinker): New helper function.
33909         (rmdirat): Enhance check.
33910         * modules/rmdir-tests (Depends-on): Add stdbool.
33911         * modules/unlink-tests (Depends-on): Likewise.
33912         (Files): Add test-unlink.h.
33913         * modules/openat-tests (Files): Likewise.
33914         (Depends-on): Add unlinkdir.
33915
33916         test-fstatat: new test, to expose Solaris 9 bugs
33917         * tests/test-stat.c (main): Factor guts...
33918         * tests/test-stat.h (test_stat_func): ...into new file.
33919         * tests/test-lstat.c (main): Factor guts...
33920         * tests/test-lstat.h (test_lstat_func): ...into new file.
33921         * tests/test-fstatat.c: New file.
33922         * modules/stat-tests (Files): Add test-stat.h.
33923         * modules/lstat-tests (Files): Add test-lstat.h.
33924         (Depends-on): Add stdbool.
33925         * modules/openat-tests (Depends-on): Add pathmax.
33926         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33927         (Makefile.am): Run new test.
33928
33929         remove: new module, for mingw and Solaris 9 bugs
33930         * modules/remove: New file.
33931         * lib/remove.c: Likewise.
33932         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33934         * modules/stdio (Makefile.am): Use them.
33935         * lib/stdio.in.h (remove): Declare replacement.
33936         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33937         * doc/posix-functions/remove.texi (remove): Likewise.
33938         * modules/remove-tests: New test.
33939         * tests/test-remove.c: Likewise.
33940
33941         unlink: new module, for Solaris 9 bug
33942         * modules/unlink: New file.
33943         * lib/unlink.c: Likewise.
33944         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33946         * modules/unistd (Makefile.am): Use them.
33947         * lib/unistd.in.h (stat): Declare replacement.
33948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33949         * doc/posix-functions/unlink.texi (unlink): Likewise.
33950         * modules/unlink-tests: New test.
33951         * tests/test-unlink.c: Likewise.
33952
33953         lstat: fix Solaris 9 bug
33954         * lib/lstat.c (lstat): Also check for trailing slash on
33955         non-symlink, non-directories.  Use stat module to simplify logic.
33956         * doc/posix-functions/lstat.texi (lstat): Document it.
33957         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33958         (configure.ac): Check for symlink.
33959         * tests/test-lstat.c (main): Add more tests.
33960
33961         stat: add as dependency to other modules
33962         * modules/chown (Depends-on): Add stat.
33963         * modules/euidaccess (Depends-on): Likewise.
33964         * modules/fchdir (Depends-on): Likewise.
33965         * modules/isdir (Depends-on): Likewise.
33966         * modules/link (Depends-on): Likewise.
33967         * modules/lstat (Depends-on): Likewise.
33968         * modules/mkdir-p (Depends-on): Likewise.
33969         * modules/modechange (Depends-on): Likewise.
33970         * modules/open (Depends-on): Likewise.
33971         * modules/readlink (Depends-on): Likewise.
33972         * modules/same (Depends-on): Likewise.
33973
33974         stat: fix Solaris 9 bug
33975         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33976         slash.
33977         * lib/stat.c (rpl_stat): Work around it.
33978         * doc/posix-functions/stat.texi (stat): Update documentation.
33979
33980         stat: new module, for mingw bug
33981         * modules/stat: New file.
33982         * lib/stat.c: Likewise.
33983         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33985         * modules/sys_stat (Makefile.am): Use them.
33986         * lib/sys_stat.in.h (stat): Declare replacement.
33987         * lib/openat.c (fstatat): Deal with lstat and stat being function
33988         macros.
33989         * modules/openat (Depends-on): Add inline.
33990         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33991         * doc/posix-functions/stat.texi (stat): Likewise.
33992         * modules/stat-tests: New test.
33993         * tests/test-stat.c: Likewise.
33994
33995 2009-09-19  Jim Meyering  <meyering@redhat.com>
33996
33997         syntax-check: detect unnecessary inclusion of canonicalize.h
33998         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33999
34000 2009-09-19  Eric Blake  <ebb9@byu.net>
34001
34002         canonicalize-lgpl: adjust clients to use correct header
34003         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34004         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34005         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34006         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34007         * lib/progreloc.c (includes): Likewise.
34008
34009 2009-09-19  Jim Meyering  <meyering@redhat.com>
34010
34011         test-posixtm.c: correct a comment
34012         * tests/test-posixtm.c: Correct first-line comment.
34013         Spotted by Eric Blake.
34014
34015 2009-09-16  Jim Meyering  <meyering@redhat.com>
34016
34017         posixtm-tests: make T const-correct; add a test case
34018         * tests/test-posixtm.c (T): Declare const.
34019         Add a test for -(2^31+1).
34020         Remove useless can-succeed-only-in-2002 test.
34021
34022         posixtm-tests: adjust the sole failing test
34023         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34024         expected output matches what mktime now produces.  Cross-checked via
34025         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34026
34027         posixtm: move #ifdef'd tests into a new module
34028         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34029         * tests/test-posixtm.c: ... this new file.
34030         * modules/posixtm-tests: New module.
34031
34032 2009-09-19  Eric Blake  <ebb9@byu.net>
34033
34034         openat: simplify use of at-func.c
34035         * lib/at-func.c (includes): Include prerequisites here, to
34036         simplify requirements on client files.
34037         * lib/openat-priv.h: Add double-inclusion guard.
34038         * lib/faccessat.c (includes): Simplify.
34039         * lib/fchmodat.c (includes): Likewise.
34040         * lib/fchownat.c (includes): Likewise.
34041         * lib/mkdirat.c (includes): Likewise.
34042         * lib/mkfifoat.c (includes): Likewise.
34043         * lib/symlinkat.c (includes): Likewise.
34044
34045         openat: allow return of fd 0
34046         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34047         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34048         unistd-safer.
34049         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34050         <fcntl.h>; this module does not leak fds.
34051         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34052         must be allowed to return 0, leaving openat_safer to add the
34053         safety.
34054         (openat_permissive): Avoid writing to just-opened fd 2 if
34055         restoring the current directory fails.
34056         * lib/openat-die.c (openat_restore_fail): Add comment.
34057         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34058         (save_cwd): Guarantee safe fd, but without use of open_safer.
34059         * tests/test-openat.c: New test.
34060         * modules/openat-tests (Files, Makefile.am): Distribute and build
34061         new file.
34062
34063         relocatable-prog-wrapper: fix build
34064         * modules/relocatable-prog-wrapper (Files): Update name of
34065         canonicalize m4 file, broken on 2009-09-17.
34066         Reported by emad hajjar <aleppos@hotmail.com>.
34067
34068 2009-09-19  Bruno Haible  <bruno@clisp.org>
34069
34070         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34071         * lib/safe-alloc.c: Likewise.
34072         Reported by Ian Beckwith <ianb@erislabs.net>.
34073
34074 2009-09-18  Bruno Haible  <bruno@clisp.org>
34075
34076         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34077         Reported by <erobles@sensacd.com.mx>.
34078
34079 2009-09-17  Eric Blake  <ebb9@byu.net>
34080
34081         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34082         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34083         slashes when checking if last component is missing.
34084         * tests/test-canonicalize.c (main): Test this.
34085
34086         canonicalize, canonicalize-lgpl: honor // if distinct from /
34087         * modules/canonicalize (Files): Add double-slash-root.m4.
34088         * modules/canonicalize-lgpl (Files): Likewise.
34089         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34090         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34091         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34092         fallback definition.
34093         (canonicalize_filename_mode): Use it to protect //.
34094         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34095         (__realpath): Likewise.
34096         * tests/test-canonicalize.c (main): Test this.
34097         * tests/test-canonicalize-lgpl.c (main): Likewise.
34098         * modules/canonicalize-tests (Depends-on): Add same-inode.
34099         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34100
34101         canonicalize-lgpl: fix glibc bug with trailing slash
34102         * m4/canonicalize-lgpl.m4: Move contents...
34103         * m4/canonicalize.m4: ...here.
34104         (gl_CANONICALIZE_LGPL): Factor realpath check...
34105         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34106         glibc 2.3.5 bug, fixed 2005-04-27.
34107         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34108         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34109         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34110         * modules/canonicalize-lgpl (Files): Manage file rename.
34111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34112         * modules/stdlib (Makefile.am): Substitute witness.
34113         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34114         is needed.
34115         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34116         replacement is required.
34117         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34118         * doc/glibc-functions/canonicalize_file_name.texi
34119         (canonicalize_file_name): Document this.
34120         * doc/posix-functions/realpath.texi (realpath): Likewise.
34121
34122         canonicalize-lgpl: reject non-directory with trailing slash
34123         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34124         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34125         catches failures in glibc 2.3.5.
34126         * tests/test-canonicalize.c (main): Likewise.
34127
34128         canonicalize-lgpl: use native realpath if it works
34129         * lib/canonicalize-lgpl.c (realpath): Guard with
34130         FUNC_REALPATH_WORKS.
34131         * lib/stdlib.in.h (realpath): Make declaration optional based on
34132         HAVE_REALPATH.
34133         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34134         native realpath works.
34135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34136         * modules/stdlib (Makefile.am): Substitute witness.
34137
34138         canonicalize, canonicalize-lgpl: use <stdlib.h>
34139         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34140         (Include): Mention <stdlib.h>.
34141         (configure.ac): Mention functions we provide.
34142         * modules/canonicalize (configure.ac): Likewise.
34143         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34144         realpath if canonicalize_file_name is missing.
34145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34146         * modules/stdlib (Makefile.am): Substitute witnesses.
34147         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34148         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34149         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34150         * NEWS: Document this.
34151         * doc/glibc-functions/canonicalize_file_name.texi
34152         (canonicalize_file_name): Likewise.
34153         * doc/posix-functions/realpath.texi (realpath): Likewise.
34154         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34155
34156         test-canonicalize: consolidate into single C program
34157         * tests/test-canonicalize.sh: Delete; move setup into...
34158         * tests/test-canonicalize.c (main): ...the program, making it
34159         easier to run in debugger.  Add some tests.
34160         * modules/canonicalize-tests (Files): Remove unused file.
34161         (Depends-on): Add progname.
34162         (configure.ac, Makefile.am): Simplify.
34163
34164         test-canonicalize-lgpl: consolidate into single C program
34165         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34166         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34167         easier to run in debugger.  Add some tests.
34168         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34169         (configure.ac, Makefile.am): Simplify.
34170
34171         canonicalize: avoid resolvepath
34172         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34173         unnecessary checks.
34174         * lib/canonicalize.c (includes): Simplify.
34175         (canonicalize_file_name): Drop resolvepath implementation.
34176         * modules/canonicalize (Depends-on): Drop filenamecat.
34177
34178         canonicalize: don't lose errno
34179         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34180         over calls to free.
34181
34182         canonicalize: simplify errno handling
34183         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34184         assignment.
34185
34186         canonicalize, canonicalize-lgpl: update module dependencies
34187         * modules/canonicalize (Depends-on): Add extensions, lstat,
34188         pathmax, stdlib.
34189         (Files): Drop pathmax.h.
34190         (configure.ac): Adjust macro name.
34191         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34192         lstat, stdlib, sys_stat.
34193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34194         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34195         extensions.
34196         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34197         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34198         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34199         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34200         declaration, if available.
34201         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34202         we can rely on the readlink module.
34203         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34204         (includes): Use <unistd.h> unconditionally.
34205
34206 2009-09-17  Eric Blake  <ebb9@byu.net>
34207
34208         maint: make Include sections of modules consistent
34209         * modules/alloca: Use only header name; no need to list #include.
34210         * modules/alloca-opt: Likewise.
34211         * modules/arpa_inet: Likewise.
34212         * modules/canon-host: Likewise.
34213         * modules/configmake: Likewise.
34214         * modules/dirent: Likewise.
34215         * modules/eealloc: Likewise.
34216         * modules/environ: Likewise.
34217         * modules/fchdir: Likewise.
34218         * modules/fcntl: Likewise.
34219         * modules/fcntl-h: Likewise.
34220         * modules/gethrxtime: Likewise.
34221         * modules/gettime: Likewise.
34222         * modules/ignore-value: Likewise.
34223         * modules/inet_ntop: Likewise.
34224         * modules/inet_pton: Likewise.
34225         * modules/inttypes: Likewise.
34226         * modules/isnand-nolibm: Likewise.
34227         * modules/isnanf-nolibm: Likewise.
34228         * modules/mbchar: Likewise.
34229         * modules/mbfile: Likewise.
34230         * modules/mbiter: Likewise.
34231         * modules/mbuiter: Likewise.
34232         * modules/netdb: Likewise.
34233         * modules/netinet_in: Likewise.
34234         * modules/nproc: Likewise.
34235         * modules/pagealign_alloc: Likewise.
34236         * modules/poll: Likewise.
34237         * modules/printf-frexp: Likewise.
34238         * modules/pthread: Likewise.
34239         * modules/putenv: Likewise.
34240         * modules/random_r: Likewise.
34241         * modules/relocatable-prog: Likewise.
34242         * modules/search: Likewise.
34243         * modules/select: Likewise.
34244         * modules/selinux-h: Likewise.
34245         * modules/settime: Likewise.
34246         * modules/signal: Likewise.
34247         * modules/size_max: Likewise.
34248         * modules/socklen: Likewise.
34249         * modules/ssize_t: Likewise.
34250         * modules/stdarg: Likewise.
34251         * modules/stdbool: Likewise.
34252         * modules/stddef: Likewise.
34253         * modules/stdint: Likewise.
34254         * modules/stdio: Likewise.
34255         * modules/stdlib: Likewise.
34256         * modules/string: Likewise.
34257         * modules/strings: Likewise.
34258         * modules/sys_file: Likewise.
34259         * modules/sys_ioctl: Likewise.
34260         * modules/sys_select: Likewise.
34261         * modules/sys_socket: Likewise.
34262         * modules/sys_stat: Likewise.
34263         * modules/sys_time: Likewise.
34264         * modules/sys_times: Likewise.
34265         * modules/sys_utsname: Likewise.
34266         * modules/sys_wait: Likewise.
34267         * modules/sysexits: Likewise.
34268         * modules/time: Likewise.
34269         * modules/times: Likewise.
34270         * modules/tmpfile: Likewise.
34271         * modules/trim: Likewise.
34272         * modules/unistd: Likewise.
34273         * modules/wchar: Likewise.
34274         * modules/wctype: Likewise.
34275
34276 2009-09-17  Bruno Haible  <bruno@clisp.org>
34277
34278         Make getdate.y compile on QNX and NetBSD 5 / i386.
34279         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34280         TIME_T_FITS_IN_LONG_INT.
34281         * lib/getdate.y (long_time_t): New type.
34282         (relative_time): Change type of 'seconds' field to long_time_t.
34283         (get_date): Update types of local variables. Check against overflow
34284         during conversion from long_time_t to time_t.
34285         Reported by Matt Kraai <kraai@ftbfs.org>
34286         and Hasso Tepper <hasso@netbsd.org>.
34287
34288 2009-09-17  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/COPYING: Update copyright years.
34291         * modules/README: Likeiwse.
34292         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34293         Reported by Ian Beckwith <ianb@erislabs.net>.
34294
34295 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34296
34297         * users.txt: Update references for gnuit package.
34298
34299 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34300
34301         * m4/getdelim.m4: Fix typo in copyright line.
34302
34303 2009-09-17  Bruno Haible  <bruno@clisp.org>
34304
34305         * lib/atoll.c: Use the standard header with GPL copyright.
34306         * lib/argz.in.h: Likewise.
34307         * lib/glob.c: Likewise.
34308         * lib/glob-libc.h: Likewise.
34309         * lib/random_r.c: Likewise.
34310         * lib/siglist.h: Likewise.
34311         * lib/strsignal.c: Likewise.
34312         Reported by Ian Beckwith <ianb@erislabs.net>.
34313
34314 2009-09-17  Eric Blake  <ebb9@byu.net>
34315
34316         rmdir: ensure correct dependency order
34317         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34318
34319 2009-09-17  Bruno Haible  <bruno@clisp.org>
34320
34321         Disable assertion that fails on NetBSD 5 / i386.
34322         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34323         Reported by Sam Steingold <sds@gnu.org>
34324         and Hasso Tepper <hasso@netbsd.org>.
34325
34326 2009-09-16  Eric Blake  <ebb9@byu.net>
34327
34328         unlinkdir: port to mingw
34329         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34330         on which no one can unlink a directory.
34331
34332         stdlib: sort witness names
34333         * modules/stdlib (Makefile.am): Sort replacements.
34334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34335         * lib/stdlib.in.h: Likewise.
34336
34337         parse-duration-tests: avoid link failure
34338         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34339         LIBINTL.
34340         Reported by Tom G. Christensen.
34341
34342         openat-tests: ensure unlinkat behaves like rmdir
34343         * tests/test-rmdir.c (main): Factor guts...
34344         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34345         * modules/rmdir-tests (Files): Ship new file.
34346         * modules/openat-tests: New test.
34347         * tests/test-unlinkat.c: Likewise.
34348
34349         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34350         * modules/rmdir-errno (Status, Notice): Now obsolete.
34351
34352         rmdir: work around cygwin 1.5.x and mingw bugs
34353         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34354         * lib/rmdir.c (rmdir): Work around it.
34355         * modules/rmdir (Status, Notice): No longer obsolete.
34356         (Files): Add dos.m4.
34357         (Depends-on): Add unistd.
34358         (configure.ac): Set witnesses.
34359         (License): Relax to LGPLv2+.
34360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34361         * modules/unistd (Makefile.am): Substitute witnesses.
34362         * lib/unistd.in.h (rmdir): Declare replacement.
34363         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34364         * modules/rmdir-tests: New tests.
34365         * tests/test-rmdir.c: Likewise.
34366
34367 2009-09-15  Eric Blake  <ebb9@byu.net>
34368
34369         fchdir: improve use of replacement functions
34370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34371         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34372         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34373         REPLACE_CLOSEDIR.
34374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34375         * modules/sys_stat (Makefile.am): Substitute correct witness.
34376         * modules/dirent (Makefile.am): Likewise.
34377         * modules/unistd (Makefile.am): Likewise.
34378         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34379         * lib/unistd.in.h (dup): Likewise.
34380         * lib/sys_stat.in.h (fstat): Likewise.
34381
34382         maint: ignore gnulib-tool temp files
34383         * .gitignore: Ignore files created during gnulib-tool --test.
34384
34385 2009-09-13  Jim Meyering  <meyering@redhat.com>
34386
34387         posixtm: don't reject a time that specify "60" as the number of seconds
34388         * lib/posixtm.c (posixtime): The code to reject invalid dates
34389         would also reject a time specified with the .60 suffix.
34390         But POSIX allows that, in order to accommodate leap seconds.
34391         So don't reject it.
34392         (main): Adjust tests accordingly.
34393         * modules/posixtm (Depends-on): Add stpcpy.
34394
34395 2009-09-11  Jim Meyering  <meyering@redhat.com>
34396
34397         announce-gen: include [$release_type] in emitted Subject:
34398         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34399         e.g., [stable] in the emitted Subject: line.
34400
34401 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34402
34403         Remove obsolete macros from several modules.
34404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34405         obsolete Autoconf macros with their modern counterparts.
34406         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34407         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34408         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34410         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34411         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34413         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34414         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34415         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34416         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34417         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34418         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34419         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34420         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34421         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34422         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34423         * m4/time_r.m4 (gl_TIME_R): Likewise.
34424         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34425         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34426         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34427
34428         Fix copyright header in build-aux scripts.
34429         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34430         recommendation.
34431         * build-aux/ncftpput-ftp: Likewise.
34432         * build-aux/update-copyright: Likewise.
34433
34434 2009-09-09  Eric Blake  <ebb9@byu.net>
34435
34436         test-link: allow Linux choice of errno
34437         * tests/test-link.c (main): Relax test for alternate error.
34438
34439         strndup: fix improper m4 caching
34440         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34441         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34442         (gl_PREREQ_STRNDUP): Delete.
34443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34444         * modules/string (Makefile.am): Substitute it.
34445         * lib/string.in.h (strndup): Modernize prototype.
34446
34447         getcwd: port to mingw
34448         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34449         different from the POSIX assumptions made throughout the getcwd
34450         module; fortunately, the mingw getcwd does not need replacement.
34451         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34452         * modules/getcwd-tests: New test.
34453         * tests/test-getcwd.c: Likewise.
34454
34455         link: fix platform bugs
34456         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34457         * lib/link.c (link): Work around them.  Fix related mingw bug.
34458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34459         * modules/unistd (Makefile.am): Substitute it.
34460         * lib/unistd.in.h (link): Declare replacement.
34461         * doc/posix-functions/link.texi (link): Document this.
34462         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34463
34464         test-link: consolidate into single C program, test more cases
34465         * tests/test-link.sh: Delete.
34466         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34467         at least Cygwin and Solaris.
34468         * modules/link-tests (Files): Remove unused file.
34469         (Depends-on): Add errno, sys_stat.
34470         (Makefile.am): Simplify.
34471
34472 2009-09-08  Bruno Haible  <bruno@clisp.org>
34473
34474         Work around towlower, towupper bug on mingw.
34475         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34476         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34477         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34478         * doc/posix-functions/towupper.texi: Likewise.
34479         Reported by Eric Blake.
34480
34481 2009-09-08  Jim Meyering  <meyering@redhat.com>
34482
34483         build: don't try to run autoheader if we don't use it
34484         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34485         is not used in configure.ac.
34486
34487 2009-09-08  Eric Blake  <ebb9@byu.net>
34488
34489         euidaccess: fix compilation error
34490         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34491
34492         rawmemchr: relax license
34493         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34494         okay.
34495         Reported by Jim Meyering.
34496
34497         mkfifoat: new module
34498         * modules/mkfifoat: New file.
34499         * lib/mkfifoat.c: Likewise.
34500         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34501         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34502         * modules/sys_stat (Makefile.am): Use them.
34503         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34504         * MODULES.html.sh (File system functions): Mention module.
34505         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34506         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34507         * modules/mkfifoat-tests: New test.
34508         * tests/test-mkfifoat.c: Likewise.
34509
34510         strchrnul: relax license
34511         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34512         okay.
34513         Reported by Jim Meyering.
34514
34515 2009-09-08  Eric Blake  <ebb9@byu.net>
34516
34517         fstatat: fix compilation on Solaris
34518         * lib/fstatat.c (includes): Add fcntl.h.
34519         Reported by Pádraig Brady.
34520
34521 2009-09-07  Eric Blake  <ebb9@byu.net>
34522
34523         rename: modernize replacement
34524         * modules/rename (Depends-on): Add stdio.
34525         (configure.ac): Declare witness.
34526         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34527         stdio take care of replacement.
34528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34529         * modules/stdio (Makefile.am): Substitute them.
34530         * lib/stdio.in.h (rename): Declare replacement.
34531         * lib/rename.c (includes): Allow cross-compilation to non-windows
34532         machines.
34533         * doc/posix-functions/rename.texi (rename): Improve
34534         documentation.
34535
34536         stdio: sort witness names
34537         * modules/stdio (Makefile.am): Sort replacements.
34538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34539         * lib/stdio.in.h: Likewise.
34540
34541         getcwd: minor cleanups
34542         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34543         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34544
34545         openat: provide more convenience names
34546         * modules/faccessat (configure.ac): Add C witness.
34547         * lib/unistd.in.h (readlinkat): Fix typo.
34548         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34549         convenience wrappers.
34550         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34551         wrappers in syntax checks.
34552
34553 2009-09-06  Eric Blake  <ebb9@byu.net>
34554
34555         doc: fix comments in recent patches
34556         * lib/faccessat.c: Mention correct function.
34557         * lib/fchmodat.c: Likewise.
34558         * lib/fchownat.c: Likewise.
34559         * lib/symlinkat.c: Likewise.
34560         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34561         constants.
34562
34563         faccessat, symlinkat: continue cleanup of previous patch
34564         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34565         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34566         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34568         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34569         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34570         set.
34571
34572 2009-09-06  Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34575         (fstatat): Declare if GNULIB_FSTATAT is set.
34576         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34577         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34578         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34579         * modules/fcntl-h (Files): Remove m4/openat.m4.
34580         * modules/sys_stat (Files): Remove m4/openat.m4.
34581         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34582         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34583         * modules/unistd (Files): Remove m4/openat.m4.
34584         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34585         GNULIB_OPENAT.
34586         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34587         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34589         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34590         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34591         gl_OPENAT_DEFAULTS.
34592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34593         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34594         Don't require gl_OPENAT_DEFAULTS.
34595         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34596         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34597         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34598         (gl_OPENAT_DEFAULTS): Remove macro.
34599
34600 2009-09-06  Bruno Haible  <bruno@clisp.org>
34601
34602         * modules/openat (configure.ac): Remove unneeded witness.
34603
34604 2009-09-06  Bruno Haible  <bruno@clisp.org>
34605
34606         Set errno to ENOSYS when a function is entirely unsupported.
34607         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34608         EOPNOTSUPP.
34609         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34610         * modules/chown (Depends-on): Remove errno.
34611
34612 2009-09-06  Bruno Haible  <bruno@clisp.org>
34613
34614         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34615
34616 2009-09-06  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34619
34620 2009-09-06  Ben Pfaff  <blp@gnu.org>
34621             Bruno Haible  <bruno@clisp.org>
34622
34623         Work around a glibc bug in strtok_r.
34624         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34625         Undefine if UNDEFINE_STRTOK_R is set.
34626         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34628         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34629         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34630         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34631         UNDEFINE_STRTOK_R.
34632         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34633
34634 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34635
34636         exclude: minor fix
34637         * lib/exclude.c: Include wctype.h
34638
34639 2009-09-06  Akim Demaille  <demaille@gostai.com>
34640
34641         bootstrap: improve error message
34642         * build-aux/bootstrap (find_tool): Upon failure, report the list
34643         of candidates.
34644         Honor the initial value of the envvar.
34645
34646 2009-09-05  Eric Blake  <ebb9@byu.net>
34647
34648         symlinkat: new module
34649         * modules/symlinkat: New file.
34650         * lib/symlinkat.c: Likewise.
34651         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34653         * modules/unistd (Makefile.am): Use them.
34654         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34655         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34656         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34657         * MODULES.html.sh (File system functions): Mention module.
34658         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34659         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34660         * modules/symlinkat-tests: New test.
34661         * tests/test-symlinkat.c: Likewise.
34662
34663         test-openat-safer: add more checks
34664         * tests/test-openat-safer.c (main): Check more code paths.
34665
34666 2009-09-05  Jim Meyering  <meyering@redhat.com>
34667
34668         syntax-check: detect unnecessary inclusion of openat.h
34669         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34670
34671 2009-09-05  Bruno Haible  <bruno@clisp.org>
34672
34673         Support towlower, towupper.
34674         * doc/posix-functions/towlower.texi: Mention module wctype.
34675         * doc/posix-functions/towupper.texi: Likewise.
34676         * lib/wctype.in.h (towlower, towupper): New functions.
34677         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34678         (ASSERT): New macro.
34679         (e): New variable.
34680         (main): Test also towlower, towupper. Test WEOF argument.
34681         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34682
34683 2009-09-05  Bruno Haible  <bruno@clisp.org>
34684
34685         Fix conversion behaviour when the input is invalid.
34686         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34687         mark occurring in first pass of indirect conversion.
34688         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34689         input.
34690         Found by clang's static analyzer.
34691
34692 2009-09-05  Bruno Haible  <bruno@clisp.org>
34693
34694         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34695         where direct conversion is possible.
34696
34697 2009-09-04  Eric Blake  <ebb9@byu.net>
34698
34699         openat: fail with ENOENT on empty name
34700         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34701         buffer.
34702
34703         link-follow: fix logic bug in prior patch
34704         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34705         reversed sense of yes and no in prior patch.  Avoid confusing
34706         compilation failure with desired semantics.
34707
34708         link-follow: accomodate mingw and cross-compilation
34709         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34710         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34711         cross-compilation results to -1, to make linkat easier to
34712         implement when cross-compiling.  Trivially support mingw.
34713         * modules/link-follow (configure.ac): Call new name.
34714         * NEWS: Mention this.
34715
34716 2009-09-03  Eric Blake  <ebb9@byu.net>
34717
34718         faccessat: compile replacement
34719         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34720         needed.
34721
34722         fts: fix compilation error
34723         * lib/fts.c (includes): Re-add "openat.h", for
34724         openat_needs_fchdir.
34725
34726         faccessat: new module
34727         * modules/faccessat: New file.
34728         * lib/faccessat.c: Likewise.
34729         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34731         * modules/unistd (Makefile.am): Use it.
34732         * lib/unistd.in.h (faccessat): Declare it.
34733         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34734         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34735         * MODULES.html.sh (File system functions): Mention it.
34736         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34737         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34738
34739         euidaccess: prefer POSIX over non-standard implementation
34740         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34741         * lib/euidaccess.c (euidaccess): Use it if available.
34742
34743         openat: make template easier to use
34744         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34745         AT_FUNC_F2 to be undefined.
34746         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34747         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34748         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34749         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34750         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34751         Likewise.
34752         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34753         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34754         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34755         Likewise.
34756
34757         openat: declare in POSIX headers
34758         * NEWS: Mention this.
34759         * modules/openat (configure.ac): Declare witnesses.
34760         (Depends-on): Add fcntl-h, sys_stat, unistd.
34761         (Include): Mention correct headers.
34762         * modules/fcntl-h (Depends-on): Add link-warning.
34763         (Files): Add openat.m4.
34764         (Makefile.am): Substitute witnesses.
34765         * modules/sys_stat (Files, Makefile.am): Likewise.
34766         * modules/unistd (Files, Makefile.am): Likewise.
34767         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34768         (gl_OPENAT_DEFAULTS): New macro.
34769         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34771         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34772         (SYS_STAT_H): Remove unused variable.
34773         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34774         * lib/fcntl--.h (includes): Remove unneeded header.
34775         * lib/openat-safer.c (includes): Likewise.
34776         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34777         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34778         appropriate headers.
34779         (__OPENAT_PREFIX): Delete.
34780         * lib/fcntl.in.h (openat): Provide declaration.
34781         (AT_FDCWD): Fix Solaris bug.
34782         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34783         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34784         * lib/fchmodat.c (includes):  Adjust to find declaration.
34785         * lib/fchownat.c (includes): Likewise.
34786         * lib/mkdirat.c (includes): Likewise.
34787         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34788         still visible.
34789
34790 2009-09-02  Eric Blake  <ebb9@byu.net>
34791
34792         errno: use consistently
34793         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34794         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34795         * lib/canonicalize.c (ELOOP): Likewise.
34796         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34797         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34798         * lib/lchown.c (EOPNOTSUPP): Likewise.
34799         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34800         * lib/savewd.c (ESTALE): Likewise.
34801         * lib/settime.c (ENOSYS): Likewise.
34802         * lib/utimens.c (ENOSYS): Likewise.
34803         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34804         * lib/chdir-safer.c (ELOOP): Likewise.
34805         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34806         * modules/c-stack (Depends-on): Add errno.
34807         * modules/canonicalize (Depends-on): Likewise.
34808         * modules/chdir-safer (Depends-on): Likewise.
34809         * modules/fdopendir (Depends-on): Likewise.
34810         * modules/inet_ntop (Depends-on): Likewise.
34811         * modules/inet_pton (Depends-on): Likewise.
34812         * modules/lchown (Depends-on): Likewise.
34813         * modules/openat (Depends-on): Likewise.
34814         * modules/savewd (Depends-on): Likewise.
34815         * modules/settime (Depends-on): Likewise.
34816         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34817
34818         fts: avoid leaking fds
34819         * modules/fts (Depends-on): Add cloexec.
34820         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34821         flag.
34822
34823         fts: make directory fds more robust
34824         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34825         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34826
34827         backupfile, chdir-long, fts, savedir: make safer
34828         * lib/backupfile.c (includes): Use "dirent--.h", since
34829         numbered_backup can write to stderr during readdir.
34830         * lib/savedir.c (includes): Likewise.
34831         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34832         emulation can write to stderr on failure.
34833         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34834         * lib/getcwd.c: Document why opendir_safer is unused.
34835         * lib/glob.c: Likewise.
34836         * lib/scandir.c: Likewise.
34837         * lib/openat-proc.c: Likewise, for open_safer.
34838         * modules/backupfile (Depends-on): Add dirent-safer.
34839         * modules/savedir (Depends-on): Likewise.
34840         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34841         * modules/chdir-long (Depends-on): Add openat-safer.
34842
34843         openat-safer: new module
34844         * modules/openat-safer: New file.
34845         * lib/openat-safer.c: Likewise.
34846         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34847         * lib/fcntl-safer.h (openat_safer): Declare.
34848         * lib/fcntl--.h (openat): Override.
34849         * MODULES.html.sh (File descriptor based I/O): Mention it.
34850         * lib/openat.h: Add double-inclusion guards.
34851         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34852         "fcntl--.h", so we can implement openat.
34853         * modules/openat-safer-tests: New test.
34854         * tests/test-openat-safer.c: New file.
34855
34856         dirent-safer: new module
34857         * modules/dirent-safer: New file.
34858         * lib/dirent--.h: Likewise.
34859         * lib/dirent-safer.h: Likewise.
34860         * lib/opendir-safer.c: Likewise.
34861         * m4/dirent-safer.m4: Likewise.
34862         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34863         * modules/dirent-safer-tests: New test.
34864         * tests/test-dirent-safer.c: New file.
34865         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34866
34867         fdopendir: optimize on mingw
34868         * lib/unistd.in.h (_gl_directory_name): New prototype.
34869         * lib/fchdir.c (_gl_directory_name): Implement it.
34870         (fchdir): Use it to simplify implementation.
34871         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34872         fchdir, when available, to avoid calling [f]chdir().
34873
34874         fdopendir: split into its own module
34875         * lib/openat.c (fdopendir): Move...
34876         * lib/fdopendir.c: ...into new file.
34877         * modules/fdopendir: New module.
34878         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34879         * modules/openat (Depends-on): Add fdopendir.
34880         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34881         fdopendir here.
34882         * modules/savedir (Depends-on): Only need fdopendir, not full
34883         openat.
34884         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34885         * lib/openat.h (fdopendir): Drop prototype.
34886         * lib/dirent.in.h (fdopendir): Provide prototype.
34887         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34888         * modules/dirent (Makefile.am): Substitute them.
34889         * MODULES.html.sh (File system functions): Mention it.
34890         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34891         * modules/fdopendir-tests: New file.
34892         * tests/test-fdopendir.c: Likewise.
34893
34894         fchdir: use more consistent macro convention
34895         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34896         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34897         REPLACE_FCHDIR, rather than relying on config.h macros.
34898         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34899         inside a single make-time REPLACE_FCHDIR block, rather than using
34900         the config.h FCHDIR_REPLACEMENT.
34901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34902         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34903         Manage fstat replacement.
34904         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34905         REPLACE_FCHDIR.
34906         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34907         (Makefile.am): Substitute REPLACE_FCHDIR.
34908         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34909         FCHDIR_REPLACEMENT.
34910         * lib/dup-safer.c (dup_safer): Likewise.
34911         * lib/dup2.c (rpl_dup2): Likewise.
34912         * lib/dup3.c (rpl_dup3): Likewise.
34913         * lib/open.c (rpl_open): Likewise.
34914
34915         fchdir: simplify error handling, and support dup3
34916         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34917         stdbool, malloc-posix, realloc-posix.
34918         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34919         (ensure_dirs_slot): Return false on allocation failure.
34920         (rpl_dup2): Delete.
34921         (_gl_register_dup): New function.
34922         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34923         (_gl_register_fd): Close fd on allocation failure.
34924         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34925         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34926         prototype.
34927         (rpl_dup2_fchdir): Delete prototype.
34928         * lib/open.c (open): Update caller.
34929         * lib/dup2.c (dup2): Track fchdir metadata.
34930         * lib/dup3.c (dup3): Likewise.
34931         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34933
34934 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34935
34936         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34937         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34938         don't pass arguments to AC_OUTPUT.
34939
34940 2009-09-02  Bruno Haible  <bruno@clisp.org>
34941
34942         * modules/mkdtemp (License): Relicense under LGPLv2+.
34943         Reported by Paolo Bonzini.
34944
34945 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34946
34947         Replace uses of obsolete autoconf macros in Jim's modules.
34948         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34949         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34950         can evoke a warning from autoconf when run with -Wobsolete
34951         enabled.  They were declared obsolete for good reasons (see
34952         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34953         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34954         should not continue using the deprecated macros.
34955         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34956         obsolete Autoconf macros with modern counterparts.
34957         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34958         * m4/dos.m4 (gl_AC_DOS): Likewise.
34959         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34961         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34962         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34963         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34964         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34965         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34966         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34967         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34968         Likewise.
34969         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34970         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34971         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34972         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34973         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34974         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34975
34976 2009-09-01  Eric Blake  <ebb9@byu.net>
34977
34978         fchdir: fix off-by-one bug in previous patch
34979         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34980         (_gl_unregister_fd): Delete useless if.
34981
34982 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34983
34984         maint.mk: sort the list of syntax-check rules
34985         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34986         easier to get a sense of progress when the rules are run sequentially
34987         and take a long time.
34988
34989 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34990
34991         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34992         * modules/netinet_in: Likewise.
34993         * modules/sys_file: Likewise.
34994         * modules/sys_ioctl: Likewise.
34995         * modules/sys_select: Likewise.
34996         * modules/sys_socket: Likewise.
34997         * modules/sys_stat: Likewise.
34998         * modules/sys_time: Likewise.
34999         * modules/sys_times: Likewise.
35000         * modules/sys_utsname: Likewise.
35001         * modules/sys_wait: Likewise.
35002
35003 2009-09-01  Jim Meyering  <meyering@redhat.com>
35004
35005         fts: help ensure that return values are not ignored
35006         * lib/fts_.h (__GNUC_PREREQ): Define.
35007         (__attribute_warn_unused_result__): Define.
35008         (fts_children, fts_close, fts_open, fts_read): Declare with
35009         __attribute_warn_unused_result__.
35010
35011         fts: fts_close now fails also when closing a dir file descriptor fails
35012         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35013         and propagate to caller, along with errno.
35014
35015         announce-gen: correct formatting in --help output
35016         * build-aux/announce-gen (usage): Move the one-line description in
35017         --help output "up", to where it belongs, just after Usage:.
35018
35019 2009-08-31  Eric Blake  <ebb9@byu.net>
35020
35021         fchdir: port to mingw
35022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35023         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35024         opened, then use a substitute.
35025         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35026         replacement.
35027         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35028         (_gl_register_fd): No need to check stat if open already filters
35029         all directories.
35030         (fchdir): Fix error condition to match POSIX.
35031         * modules/fchdir (Depends-on): Add sys_stat.
35032         * doc/posix-functions/open.texi (open): Document the limitation.
35033         * modules/fchdir-tests: New file.
35034         * tests/test-fchdir.c: Likewise.
35035
35036         canonicalize: allow cross-testing from cygwin to mingw
35037         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35038         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35039         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35040         Likewise.
35041         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35042         target does not support symlinks.
35043         * tests/test-canonicalize-lgpl.sh: Likewise.
35044
35045         chown: avoid compilation warning on mingw
35046         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35047         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35048         mingw.
35049         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35050         * modules/chown (Depends-on): Add errno.
35051
35052 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35053
35054         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35055         command.
35056
35057 2009-08-31  Jim Meyering  <meyering@redhat.com>
35058
35059         canonicalize: remove useless initialization
35060         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35061         initialization of local, "end".
35062
35063 2009-08-30  Bruno Haible  <bruno@clisp.org>
35064
35065         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35066         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35067         ENOSYS.
35068
35069 2009-08-30  Bruno Haible  <bruno@clisp.org>
35070
35071         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35072         /usr/xpg4/bin/tr when it exists.
35073         * tests/test-pipe-filter-gi1.sh: Likewise.
35074
35075 2009-08-30  Bruno Haible  <bruno@clisp.org>
35076
35077         Work around deficient /usr/bin/id program on Solaris.
35078         * tests/test-file-has-acl.sh (ID): New variable.
35079         * tests/test-set-mode-acl.sh (ID): Likewise.
35080         * tests/test-copy-acl.sh (ID): Likewise.
35081         * tests/test-copy-file.sh (ID): Likewise.
35082
35083 2009-08-30  Bruno Haible  <bruno@clisp.org>
35084
35085         New module 'xstriconveh'.
35086         * lib/xstriconveh.h: New file.
35087         * lib/xstriconveh.c: New file.
35088         * modules/xstriconveh: New file.
35089
35090 2009-08-30  Bruno Haible  <bruno@clisp.org>
35091
35092         Make it easier to use mem_cd_iconveh.
35093         * lib/striconveh.h (iconveh_t): New type.
35094         (iconveh_open, iconveh_close): New declarations.
35095         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35096         with a single 'const iconveh_t *' argument.
35097         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35098         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35099         with a single 'const iconveh_t *' argument.
35100         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35101         * tests/test-striconveh.c (main): Update.
35102         * NEWS: Mention the change.
35103
35104 2009-08-30  Bruno Haible  <bruno@clisp.org>
35105
35106         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35107         problem.
35108
35109 2009-08-30  Bruno Haible  <bruno@clisp.org>
35110
35111         Work around iconv_open problem on Solaris.
35112         * lib/iconv_open-solaris.gperf: New file.
35113         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35114         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35115         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35116         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35117         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35118         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35119
35120 2009-08-29  Jim Meyering  <meyering@redhat.com>
35121
35122         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35123         * top/maint.mk (cvs-check): Remove target; it was just an alias
35124         to the better-named vc-diff-check.
35125         (maintainer-distcheck): Remove rule.  It was used only from
35126         the (alpha/beta/major) target, and all of its commands but one
35127         were coreutils-specific.
35128         (vc-dist): Remove rule.
35129         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35130         Run vc-diff-check, not vc-dist.
35131         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35132
35133 2009-08-27  Bruno Haible  <bruno@clisp.org>
35134
35135         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35136         of 0.
35137
35138 2009-08-27  Bruno Haible  <bruno@clisp.org>
35139
35140         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35141         compilers.
35142         * doc/func.texi: Document the SunPRO C bug.
35143
35144 2009-08-27  Bruno Haible  <bruno@clisp.org>
35145
35146         Fix link error on Solaris.
35147         * tests/test-parse-duration.c (xstrdup): Remove function.
35148
35149 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35150
35151         ignore-value: handle pointer types, too
35152         * lib/ignore-value.h (__attribute__): Remove definition.
35153         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35154         of a more concise and more-often effective "(void) i" statement.
35155         (ignore_ptr): New function to suppress warnings from functions that
35156         return pointers, and to make it explicit that one function doesn't
35157         handle all cases.
35158
35159 2009-08-25  Bruno Haible  <bruno@clisp.org>
35160
35161         dup2: work around a Linux bug.
35162         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35163         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35164         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35165         Reported by Simon Josefsson.
35166
35167 2009-08-25  Jim Meyering  <meyering@redhat.com>
35168
35169         libguestfs uses gnulib
35170         * users.txt: Add libguestfs.
35171
35172 2009-08-24  Eric Blake  <ebb9@byu.net>
35173
35174         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35175         * lib/pipe2.c (includes): Add binary-io.h.
35176         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35177
35178 2009-08-24  Bruno Haible  <bruno@clisp.org>
35179
35180         Tolerate declared but missing accept4 syscall.
35181         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35182         available.
35183         * lib/sys_socket.in.h (accept4): If the function is already present,
35184         override it.
35185         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35186         * modules/accept4 (Makefile.am): Compile accept4.c always.
35187         Reported by Paolo Bonzini and Eric Blake.
35188
35189 2009-08-23  Bruno Haible  <bruno@clisp.org>
35190
35191         New module 'accept4'.
35192         * lib/sys_socket.in.h (accept4): New declaration.
35193         * lib/accept4.c: New file.
35194         * m4/accept4.m4: New file.
35195         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35196         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35197         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35198         HAVE_ACCEPT4.
35199         * modules/accept4: New file.
35200         * doc/glibc-functions/accept4.texi: Mention the new module.
35201
35202 2009-08-24  Jim Meyering  <meyering@redhat.com>
35203
35204         progname: also set global program_invocation_name, when possible
35205         Before this change, a libtool-enabled program that calls glibc's
35206         error function would report the program name as
35207         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35208         * modules/progname (configure.ac): Check for a declaration of
35209         program_invocation_name.
35210         * lib/progname.c:  Include <errno.h>.
35211         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35212         Set program_invocation_name.
35213
35214 2009-08-23  Bruno Haible  <bruno@clisp.org>
35215
35216         * lib/dup3.c: Include <string.h>.
35217
35218 2009-08-23  Bruno Haible  <bruno@clisp.org>
35219
35220         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35221         * lib/pipe2.c (pipe2): Likewise.
35222         Suggested by Eric Blake.
35223
35224 2009-08-23  Bruno Haible  <bruno@clisp.org>
35225
35226         Tolerate declared but missing dup3 syscall.
35227         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35228         * lib/unistd.in.h (dup3): If the function is already present,
35229         override it.
35230         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35231         * modules/dup3 (Makefile.am): Compile dup3.c always.
35232         Reported by Paolo Bonzini.
35233
35234 2009-08-23  Bruno Haible  <bruno@clisp.org>
35235
35236         Tolerate declared but missing pipe2 syscall.
35237         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35238         available.
35239         * lib/unistd.in.h (pipe2): If the function is already present,
35240         override it.
35241         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35242         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35243         Reported by Paolo Bonzini.
35244
35245 2009-08-23  Bruno Haible  <bruno@clisp.org>
35246
35247         * lib/pipe2.c (pipe2): Move #ifs inside function.
35248
35249 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35250
35251         quotearg: document limitations of quote_these_too
35252         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35253         those limitations are created.
35254         * lib/quotearg.h (set_char_quoting): Document that digits and
35255         letters that are special after backslash are not permitted.
35256         (quotearg_char): Cross-reference set_char_quoting documentation.
35257
35258 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35259
35260         quotearg: implement custom_quoting_style
35261         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35262         right_quote fields.
35263         (set_custom_quoting): New public function.
35264         (quotearg_buffer_restyled): Add left_quote and right_quote
35265         arguments, handle them very much like locale quoting, and update
35266         all uses.
35267         (quotearg_n_custom): New public function.
35268         (quotearg_n_custom_mem): New public function.
35269         (quotearg_custom): New public function.
35270         (quotearg_custom_mem): New public function.
35271         * lib/quotearg.h: Prototype and document new public functions.
35272         (enum quoting_style): For escape_quoting_style and
35273         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35274         ignored even though they're otherwise like c_quoting_style.
35275         Add custom_quoting_style member and document with comparison to
35276         clocale_quoting_style.
35277         * tests/test-quotearg.c (custom_quotes): New array.
35278         (custom_results): New array.
35279         (main): Extend to test custom quoting.
35280
35281 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35282
35283         quotearg: fix right quote escaping when it's in quote_these_too
35284         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35285         quote, be sure to prepend only one backslash.
35286         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35287         (main): Test it.
35288
35289 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35290
35291         quotearg-tests: test escaping of embedded locale quotes
35292         * tests/test-quotearg.c (struct result_strings): Add member for
35293         new input.
35294         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35295         (inputs): Add new input.
35296         (results_g): Add expected results.
35297         (flag_results): Likewise.
35298         (locale_results): Likewise.
35299         (compare_strings): Check those.
35300
35301 2009-08-23  Bruno Haible  <bruno@clisp.org>
35302
35303         Tests for module 'dup3'.
35304         * modules/dup3-tests: New file.
35305         * tests/test-dup3.c: New file.
35306
35307         New module 'dup3'.
35308         * lib/unistd.in.h (dup3): New declaration.
35309         * lib/dup3.c: New file.
35310         * m4/dup3.m4: New file.
35311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35312         HAVE_DUP3.
35313         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35314         * modules/dup3: New file.
35315         * doc/glibc-functions/dup3.texi: Mention the new module.
35316
35317 2009-08-23  Bruno Haible  <bruno@clisp.org>
35318
35319         Tweak the dup2 test.
35320         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35321         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35322         the test file is still empty. Fix argument order of lseek.
35323
35324 2009-08-23  Bruno Haible  <bruno@clisp.org>
35325
35326         Avoid test link errors when the modules getopt-gnu, gettext are used.
35327         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35329
35330 2009-08-23  Bruno Haible  <bruno@clisp.org>
35331
35332         Fix getdtablesize() on mingw.
35333         * lib/getdtablesize.c (getdtablesize): Implement differently.
35334         * lib/unistd.in.h (getdtablesize): Improve comment.
35335
35336 2009-08-23  Bruno Haible  <bruno@clisp.org>
35337
35338         New module 'mkostemp'.
35339         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35340         * lib/stdlib.in.h (mksotemp): New declaration.
35341         * lib/mkostemp.c: New file, from glibc with modifications.
35342         * lib/tempname.h (GT_FILE): Remove outdated comment.
35343         (gen_tempname): Add flags argument.
35344         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35345         (__GT_FILE): Map to 1.
35346         (small_open, large_open): Remove macros.
35347         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35348         * lib/mkstemp.c (mkstemp): Update.
35349         * lib/mkdtemp.c (mkdtemp): Likewise.
35350         * m4/mkostemp.m4: New file.
35351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35352         HAVE_MKOSTEMP.
35353         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35354         HAVE_MKOSTEMP.
35355         * modules/mkostemp: New file, based on modules/mkstemp.
35356         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35357         * NEWS: Mention the change.
35358
35359 2009-08-23  Bruno Haible  <bruno@clisp.org>
35360
35361         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35362         Reported by Eric Blake.
35363
35364 2009-08-23  Bruno Haible  <bruno@clisp.org>
35365
35366         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35367         Reported by Eric Blake.
35368
35369 2009-08-23  Bruno Haible  <bruno@clisp.org>
35370
35371         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35372         * modules/pipe2 (Depends-on): Likewise.
35373
35374 2009-08-23  Eric Blake  <ebb9@byu.net>
35375
35376         fcntl-h: add O_TTY_INIT support
35377         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35378         * tests/test-fcntl-h.c (o): Test it.
35379         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35380
35381         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35382         * modules/fcntl: Move <fcntl.h> header replacement...
35383         * modules/fcntl-h: ...to new name, so as not to collide with
35384         like-named function.
35385         * tests/test-fcntl.c: Rename...
35386         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35387         * modules/fcntl-tests: Rename...
35388         * modules/fcntl-h-tests: ...to this.  Update test file name.
35389         * modules/chdir-long (Depends-on): Update clients.
35390         * modules/chdir-safer (Depends-on): Likewise.
35391         * modules/fcntl-safer (Depends-on): Likewise.
35392         * modules/fts (Depends-on): Likewise.
35393         * modules/mkancesdirs (Depends-on): Likewise.
35394         * modules/mkdir-p (Depends-on): Likewise.
35395         * modules/open (Depends-on): Likewise.
35396         * modules/savewd (Depends-on): Likewise.
35397         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35398         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35399
35400 2009-08-22  Bruno Haible  <bruno@clisp.org>
35401
35402         * modules/binary-io (License): Relicense under LGPL.
35403         * modules/pipe2 (License): Likewise.
35404
35405 2009-08-22  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35408         return value.
35409         * lib/pipe-filter-gi.c (filter_init): Likewise.
35410         Reported by Eric Blake.
35411
35412 2009-08-22  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35415         * modules/pipe (Depends-on): Add pipe2.
35416
35417 2009-08-22  Bruno Haible  <bruno@clisp.org>
35418
35419         Tests for module 'pipe2'.
35420         * modules/pipe2-tests: New file.
35421         * tests/test-pipe2.c: New file.
35422
35423         New module 'pipe2'.
35424         * lib/unistd.in.h (pipe2): New declaration.
35425         * lib/pipe2.c: New file.
35426         * m4/pipe2.m4: New file.
35427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35428         HAVE_PIPE2.
35429         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35430         * modules/pipe2: New file.
35431         * doc/glibc-functions/pipe2.texi: Mention the new module.
35432
35433 2009-08-22  Bruno Haible  <bruno@clisp.org>
35434
35435         Reference some new glibc functions.
35436         * doc/glibc-functions/accept4.texi: New file.
35437         * doc/glibc-functions/dup3.texi: New file.
35438         * doc/glibc-functions/mkostemp.texi: New file.
35439         * doc/glibc-functions/pipe2.texi: New file.
35440         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35441         (Glibc sys/socket.h): Refer to accept4.
35442         (Glibc unistd.h): Refer to dup3, pipe2.
35443         Reported by Eric Blake.
35444
35445 2009-08-22  Jim Meyering  <meyering@redhat.com>
35446             Bruno Haible  <bruno@clisp.org>
35447
35448         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35449         This makes it so packages using automake-1.11's silent-rules option
35450         can print e.g., a single "GEN    configmake.h" line, rather than
35451         the 30+ statements that perform the job.  If you want to see the
35452         actual commands, you can still run "make V=1".
35453         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35454         so that make output is abbreviated when those variables are defined
35455         appropriately.
35456         * modules/argz: Likewise.
35457         * modules/arpa_inet: Likewise.
35458         * modules/byteswap: Likewise.
35459         * modules/configmake: Likewise.
35460         * modules/dirent: Likewise.
35461         * modules/errno: Likewise.
35462         * modules/fcntl: Likewise.
35463         * modules/float: Likewise.
35464         * modules/fnmatch: Likewise.
35465         * modules/getopt-posix: Likewise.
35466         * modules/glob: Likewise.
35467         * modules/iconv_open: Likewise.
35468         * modules/inttypes: Likewise.
35469         * modules/localcharset: Likewise.
35470         * modules/locale: Likewise.
35471         * modules/math: Likewise.
35472         * modules/netdb: Likewise.
35473         * modules/netinet_in: Likewise.
35474         * modules/poll: Likewise.
35475         * modules/posix_spawnp-tests: Likewise.
35476         * modules/sched: Likewise.
35477         * modules/search: Likewise.
35478         * modules/selinux-h: Likewise.
35479         * modules/signal: Likewise.
35480         * modules/spawn: Likewise.
35481         * modules/stdarg: Likewise.
35482         * modules/stdbool: Likewise.
35483         * modules/stddef: Likewise.
35484         * modules/stdint: Likewise.
35485         * modules/stdio: Likewise.
35486         * modules/stdlib: Likewise.
35487         * modules/string: Likewise.
35488         * modules/strings: Likewise.
35489         * modules/sys_file: Likewise.
35490         * modules/sys_ioctl: Likewise.
35491         * modules/sys_select: Likewise.
35492         * modules/sys_socket: Likewise.
35493         * modules/sys_stat: Likewise.
35494         * modules/sys_time: Likewise.
35495         * modules/sys_times: Likewise.
35496         * modules/sys_utsname: Likewise.
35497         * modules/sys_wait: Likewise.
35498         * modules/sysexits: Likewise.
35499         * modules/time: Likewise.
35500         * modules/unistd: Likewise.
35501         * modules/wchar: Likewise.
35502         * modules/wctype: Likewise.
35503
35504 2009-08-22  Jim Meyering  <meyering@redhat.com>
35505
35506         announce-gen: detect write failure
35507         * build-aux/announce-gen: Add Coda at end.
35508         Remove equivalent-but-more-verbose block at top.
35509
35510 2009-08-19  Akim Demaille  <demaille@gostai.com>
35511
35512         bootstrap: --help to stdout.
35513         * bootstrap (usage): Don't send --help to stderr.
35514         Use a here doc instead of a long string.
35515
35516 2009-08-21  Eric Blake  <ebb9@byu.net>
35517
35518         test-popen-safer: split from test-popen
35519         * tests/test-popen.c (main): Move...
35520         * tests/test-popen.h: ...into new file.
35521         * tests/test-popen-safer2.c: New file.
35522         * modules/popen-tests (Files): Add test-popen.h.
35523         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35524         Suggested by Bruno Haible.
35525
35526         test-fcntl-safer: split from test-open
35527         * tests/test-open.c (main): Move...
35528         * tests/test-open.h: ...into new file.
35529         * tests/test-fcntl-safer.c: New file.
35530         * modules/open-tests (Files): Add test-open.h.
35531         * modules/fcntl-safer-tests: New file.
35532         Suggested by Bruno Haible.
35533
35534         test-fopen-safer: split from test-fopen
35535         * tests/test-fopen.c (main): Move...
35536         * tests/test-fopen.h: ...into new file.
35537         * tests/test-fopen-safer.c: New file.
35538         * modules/fopen-tests (Files): Add test-fopen.h.
35539         * modules/fopen-safer-tests: New file.
35540         Suggested by Bruno Haible.
35541
35542 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35543
35544         popen-safer: test O_CLOEXEC at run-time.
35545         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35546
35547 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35548
35549         fcntl: move more flags to the header
35550         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35551         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35552         * lib/fcntl.in.h: Do both things here.
35553
35554 2009-08-21  Jim Meyering  <meyering@redhat.com>
35555
35556         consistently remove $@-t before redirecting to it
35557         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35558         * modules/alloca-opt: Likewise.
35559         * modules/byteswap: Likewise.
35560         * modules/fnmatch: Likewise.
35561         * modules/getopt-posix: Likewise.
35562         * modules/glob: Likewise.
35563         * modules/poll: Likewise.
35564         * modules/posix_spawnp-tests: Likewise.
35565         * modules/sys_socket: Likewise.
35566         * modules/sysexits: Likewise.
35567
35568 2009-08-21  Eric Blake  <ebb9@byu.net>
35569
35570         popen: simplify access to original popen
35571         * lib/popen.c (rpl_popen): No need to worry about popen being a
35572         macro.
35573         Reported by Bruno Haible.
35574
35575 2009-08-20  Eric Blake  <ebb9@byu.net>
35576
35577         build: avoid some compiler warnings
35578         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35579         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35580         type.
35581         (new_exclude_segment, excluded_file_pattern_p)
35582         (excluded_file_name_p): Reduce scope.
35583         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35584         old-style declaration.
35585
35586 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35587
35588         * tests/test-exclude1.sh: Handle Windows EOL.
35589         * tests/test-exclude2.sh: Likewise.
35590         * tests/test-exclude3.sh: Likewise.
35591         * tests/test-exclude4.sh: Likewise.
35592         * tests/test-exclude5.sh: Likewise.
35593         * tests/test-exclude6.sh: Likewise.
35594         * tests/test-exclude7.sh: Likewise.
35595
35596 2009-08-19  Akim Demaille  <demaille@gostai.com>
35597
35598         bootstrap: find sha1sum when named gsha1sum.
35599         * bootstrap (find_tool): New.
35600         ($SHA1SUM): New.
35601         Use it.
35602
35603 2009-08-20  Jim Meyering  <meyering@redhat.com>
35604
35605         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35606         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35607         expression that converts "." in a file name to "\." in the resulting
35608         regexp.  Start with a dummy statement, so that prior shell variable
35609         definitions are expanded portably.  Reported by Simon Josefsson.
35610
35611 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35612
35613         Fix polling for writeability of a screen buffer.
35614         * lib/poll.c: Distinguish input and screen buffers for the
35615         Win32 implementation.
35616         * lib/select.c: Likewise.
35617
35618 2009-08-19  Eric Blake  <ebb9@byu.net>
35619
35620         popen-safer: prevent popen from clobbering std descriptors
35621         * modules/popen-safer: New file.
35622         * lib/popen-safer.c: Likewise.
35623         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35624         * lib/stdio--.h (popen): Provide override.
35625         * lib/stdio-safer.h (popen_safer): Provide declaration.
35626         * tests/test-popen.c (includes): Partially test this.
35627         * modules/popen-safer-tests: New file, for more tests.
35628         * tests/test-popen-safer.c: Likewise.
35629         * MODULES.html.sh (file stream based Input/Output): Mention it.
35630
35631         tests: test some of the *-safer modules
35632         * modules/fopen-safer (Depends-on): Add fopen.
35633         * modules/fcntl-safer (Depends-on): Add fcntl.
35634         * modules/stdlib-safer (Depends-on): Add stdlib.
35635         (configure.ac): Set indicator.
35636         * modules/unistd-safer (configure.ac): Likewise.
35637         * modules/tmpfile-safer (configure.ac): Likewise.
35638         (Depends-on): Add tmpfile.
35639         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35640         active.
35641         * tests/test-fopen.c (includes): Test safer versions when they are
35642         in use.
35643         * tests/test-open.c (includes): Likewise.
35644
35645         popen: fix cygwin 1.5 bug when stdin closed
35646         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35647         * modules/popen: New file.
35648         * modules/popen-tests: Likewise.
35649         * tests/test-popen.c: Likewise.
35650         * m4/popen.m4: Likewise.
35651         * lib/popen.c: Likewise.
35652         * lib/stdio.in.h (popen): New declaration.
35653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35654         * modules/stdio (Makefile.am): Likewise.
35655         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35656
35657 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35658
35659         maint.mk: give full control over update-copyright exclusions
35660         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35661         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35662         (update-copyright): Don't force inclusion of top-level
35663         ChangeLog.  Don't force exclusion of all COPYING files, but make
35664         them the default exclusion instead.
35665
35666 2009-08-16  Bruno Haible  <bruno@clisp.org>
35667
35668         Fix test failures on Solaris 10.
35669         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35670         tests when Solaris iconv() is used.
35671         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35672         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35673         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35674         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35675         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35676
35677 2009-08-16  Bruno Haible  <bruno@clisp.org>
35678
35679         Fix test failures on Solaris 10.
35680         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35681         'tr' program and pass it as first argument.
35682         * tests/test-pipe-filter-gi1.sh: Likewise.
35683         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35684         program as first argument.
35685         * tests/test-pipe-filter-gi1.c (main): Likewise.
35686
35687 2009-08-16  Eric Blake  <ebb9@byu.net>
35688
35689         fpurge: fix previous commits
35690         * modules/fpurge (Makefile.am): Make replacement conditional,
35691         partially reverting 2007-04-29 change; missed in previous
35692         attempt.
35693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35694         is missing.
35695
35696 2009-08-16  Bruno Haible  <bruno@clisp.org>
35697
35698         Clarify fpurge's effect on the file position.
35699         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35700         * tests/test-fpurge.c (main): Make a second pass for checking the file
35701         position.
35702
35703 2009-08-16  Bruno Haible  <bruno@clisp.org>
35704
35705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35706         declaration of fpurge is missing.
35707         * tests/test-fpurge.c (main): Check that the file has not more contents
35708         than expected. Close the file before removing it.
35709
35710 2009-08-15  Eric Blake  <ebb9@byu.net>
35711
35712         fpurge: don't wrap working cygwin implementation
35713         * lib/fpurge.c (fpurge): Fix comment typo.
35714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35715         1.7 to avoid replacement.
35716         * tests/test-fpurge.c (main): Enhance test.
35717
35718 2009-08-15  Eric Blake  <ebb9@byu.net>
35719         and Jim Meyering  <meyering@redhat.com>
35720
35721         test-update-copyright: skip if perl is insufficient
35722         * tests/test-update-copyright.sh: Failure to run maintainer tool
35723         should not cause testsuite failure on cygwin 1.5.
35724
35725 2009-08-14  Eric Blake  <ebb9@byu.net>
35726
35727         doc: mention more functions added in cygwin 1.7.0
35728         * doc/posix-headers/limits.texi (limits.h): Update for recent
35729         cygwin additions.
35730         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35731         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35732         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35733         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35734         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35735
35736 2009-08-14  Eric Blake  <ebb9@byu.net>
35737
35738         maint.mk: simplify update-copyright rule
35739         * top/maint.mk (update-copyright-local): Delete, and document how
35740         to do it in cfg.mk instead.
35741         (update-copyright-exclude-regexp): Delete, and document how to do
35742         it in .x-update-copyright instead.
35743         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35744         exclude ChangeLog.
35745
35746 2009-08-14  Bruno Haible  <bruno@clisp.org>
35747
35748         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35749
35750 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35751
35752         maint.mk: support update-copyright-env
35753         * top/maint.mk (update-copyright-env): Define place-holder.
35754         (update-copyright): Expand $(update-copyright-env) before
35755         invoking update-copyright.
35756
35757 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35758
35759         update-copyright: implement forced reformatting
35760         * build-aux/update-copyright: Implement and document
35761         UPDATE_COPYRIGHT_FORCE.
35762         * tests/test-update-copyright.sh: Test it.
35763
35764 2009-08-14  Eric Blake  <ebb9@byu.net>
35765         and Bruno Haible  <bruno@clisp.org>
35766
35767         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35768         * tests/test-locale.c: Revert previous patch related to NULL.
35769         * tests/test-stdio.c: Likewise.
35770         * tests/test-stdlib.c: Likewise.
35771         * tests/test-string.c: Likewise.
35772         * tests/test-unistd.c: Likewise.
35773         * modules/time-tests (Depends-on): Add verify.
35774         * modules/wchar-tests (Depends-on): Likewise.
35775         * tests/test-time.c: Test for NULL compliance.
35776         * tests/test-wchar.c: Likewise.
35777         * modules/locale (Depends-on): Add stddef.
35778         * modules/stdio (Depends-on): Likewise.
35779         * modules/stdlib (Depends-on): Likewise.
35780         * modules/string (Depends-on): Likewise.
35781         * modules/time (Depends-on): Likewise.
35782         * modules/unistd (Depends-on): Likewise.
35783         * modules/wchar (Depends-on): Likewise.
35784         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35785         * lib/stdlib.in.h (includes): Likewise.
35786         * lib/string.in.h (includes): Likewise.
35787         * lib/time.in.h (includes): Likewise.
35788         * lib/unistd.in.h (includes): Likewise.
35789         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35790         replaced.
35791         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35792         * m4/stddef_h.m4: New file.
35793         * modules/stddef: Likewise.
35794         * lib/stddef.in.h: Likewise.
35795         * modules/stddef-tests: Likewise.
35796         * tests/test-stddef.c: Likewise.
35797         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35798         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35799         * doc/posix-headers/locale.texi (locale.h): Likewise.
35800         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35801         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35802         * doc/posix-headers/string.texi (string.h): Likewise.
35803         * doc/posix-headers/time.texi (time.h): Likewise.
35804         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35805         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35806
35807 2009-08-14  Eric Blake  <ebb9@byu.net>
35808
35809         doc: improve git diff of texinfo files
35810         * .gitattributes: Add rule for *.texi files, with hint on how to
35811         use it.
35812         Copied from m4, and based on a report by Bruno Haible.
35813
35814 2009-08-14  Bruno Haible  <bruno@clisp.org>
35815
35816         Disable multithread support by default on Cygwin 1.5.x for real.
35817         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35818
35819 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35820
35821         update-copyright: much ado about intervals
35822         * build-aux/update-copyright: Implement and document
35823         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35824         of copyright year intervals.
35825         Also, document UPDATE_COPYRIGHT_YEAR.
35826         * tests/test-update-copyright.sh: Test it.
35827
35828         update-copyright: convert 2-digit to 4-digit years
35829         * build-aux/update-copyright: Implement and document.
35830         * tests/test-update-copyright.sh: Update.
35831
35832 2009-08-14  Jim Meyering  <meyering@redhat.com>
35833
35834         test-exclude: avoid coreutils "make check" failure
35835         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35836         just as in test-argmatch.c.
35837
35838 2009-08-13  Eric Blake  <ebb9@byu.net>
35839
35840         test-dup2: fix bad assumption
35841         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35842         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35843
35844         test-version-etc: fix CRLF portability issue
35845         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35846         recognize \r.
35847         * tests/test-argp-version-etc-1.sh: Likewise.
35848
35849         getopt: update client modules
35850         * modules/argp (Depends-on): Use getopt-gnu.
35851         * modules/git-merge-changelog (Depends-on): Likewise.
35852         * modules/long-options (Depends-on): Likewise.
35853         * modules/xstrtol (Depends-on): Likewise.
35854
35855 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35856
35857         * tests/test-version-etc.sh: Don't fail on different
35858         project/version.  Don't fail on CRLF differences.  Rewrite to use
35859         multiple -e instead of multiple sed forks, suggested by Eric Blake
35860         <ebb9@byu.net>.
35861         * tests/test-argp-version-etc-1.sh: Likewise.
35862
35863 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35864
35865         * tests/test-version-etc.sh: Don't fail on different
35866         project/version.
35867
35868 2009-08-12  Bruno Haible  <bruno@clisp.org>
35869
35870         Tests for modules 'getopt-posix', 'getopt-gnu'.
35871         * modules/getopt-posix-tests: New file.
35872         * tests/test-getopt.c: New file.
35873         * tests/test-getopt.h: New file.
35874         * tests/test-getopt_long.h: New file.
35875
35876         New modules 'getopt-posix', 'getopt-gnu'.
35877         * modules/getopt-gnu: New file, renamed from modules/getopt.
35878         * modules/getopt-posix: New file.
35879         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35880         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35881         (gl_GETOPT): Remove macro.
35882         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35883         Disable the test against BSD systems that declare optreset. Test
35884         against mingw bug. Test against lack of support of optional arguments
35885         on many platforms.
35886         * doc/glibc-headers/getopt.texi: Update module name and list of
35887         relevant platforms.
35888         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35889         'getopt-gnu' and more portability problems.
35890         * NEWS: Mention the changes.
35891
35892 2009-08-12  Bruno Haible  <bruno@clisp.org>
35893
35894         Ensure that optarg etc. get declared by <unistd.h>.
35895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35896         AC_USE_SYSTEM_EXTENSIONS.
35897         * modules/getopt (Depends-on): Add 'extensions'.
35898
35899 2009-08-12  Bruno Haible  <bruno@clisp.org>
35900
35901         Avoid test link errors.
35902         * modules/pipe-filter-ii-tests (Makefile.am): Define
35903         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35904         * modules/pipe-filter-gi-tests (Makefile.am): Define
35905         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35907
35908 2009-08-12  Bruno Haible  <bruno@clisp.org>
35909
35910         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35911         gl_GETOPT_SUBSTITUTE before.
35912         (gl_GETOPT): Use it.
35913         * m4/argp.m4 (gl_ARGP): Update.
35914         Reported by Sergey Poznyakoff.
35915
35916         * m4/getopt.m4: Reorder macros.
35917         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35918         (gl_GETOPT_SUBSTITUTE): Remove macro.
35919
35920 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35921
35922         Minor improvement in gitlog-to-changelog
35923
35924         * build-aux/gitlog-to-changelog: New option `--format' makes
35925         output format string configurable.
35926
35927 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35928
35929         Optimize exclude: use hash tables for non-wildcard patterns.
35930
35931         * lib/exclude.c: Include hash.h and mbuiter.h
35932         (struct exclude_pattern, exclude_segment): New data types.
35933         (struct exclude): Rewrite.
35934         (fnmatch_pattern_has_wildcards): New function.
35935         (new_exclude_segment, free_exclude_segment): New functions.
35936         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35937         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35938         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35939         * modules/exclude: Depend on hash and mbuiter.
35940
35941         * modules/exclude-tests: New file.
35942         * tests/test-exclude.c: New file.
35943         * tests/test-exclude1.sh: New file.
35944         * tests/test-exclude2.sh: New file.
35945         * tests/test-exclude3.sh: New file.
35946         * tests/test-exclude4.sh: New file.
35947         * tests/test-exclude5.sh: New file.
35948         * tests/test-exclude6.sh: New file.
35949         * tests/test-exclude7.sh: New file.
35950
35951 2009-08-12  Bruno Haible  <bruno@clisp.org>
35952
35953         Ensure that getopt() gets declared by <unistd.h>.
35954         * lib/unistd.in.h: Conditionally include getopt.h.
35955         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35956         Set GNULIB_UNISTD_H_GETOPT.
35957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35958         GNULIB_UNISTD_H_GETOPT.
35959         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35960
35961 2009-08-12  Bruno Haible  <bruno@clisp.org>
35962
35963         Clarify logic.
35964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35965         gl_replace_getopt instead of GETOPT_H.
35966
35967 2009-08-12  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/getopt.m4: Add comments.
35970
35971 2009-08-12  Bruno Haible  <bruno@clisp.org>
35972
35973         Disable multithread support by default on Cygwin 1.5.x.
35974         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35975         set gl_use_threads=no if not specified otherwise.
35976
35977 2009-08-11  Bruno Haible  <bruno@clisp.org>
35978
35979         Avoid compilation error on NetBSD 5.0.
35980         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35981         * tests/test-stdio.c: Likewise.
35982         * tests/test-stdlib.c: Likewise.
35983         * tests/test-string.c: Likewise.
35984         * tests/test-unistd.c: Likewise.
35985         Reported by Greg Troxel <gdt@ir.bbn.com>
35986         at <https://savannah.gnu.org/support/?106973>.
35987
35988 2009-08-11  Bruno Haible  <bruno@clisp.org>
35989
35990         * modules/dup2-tests (Depends-on): Remove close.
35991
35992         Undo 2009-07-19 commit.
35993         * modules/acl-tests (Depends-on): Remove close.
35994         * modules/binary-io-tests (Depends-on): Likewise.
35995         * modules/closein-tests (Depends-on): Likewise.
35996         * modules/flock-tests (Depends-on): Likewise.
35997         * modules/fsync-tests (Depends-on): Likewise.
35998         * modules/lseek-tests (Depends-on): Likewise.
35999         * modules/pipe-tests (Depends-on): Likewise.
36000         * modules/posix_spawn-tests (Depends-on): Likewise.
36001         * modules/posix_spawnp-tests (Depends-on): Likewise.
36002         * modules/stat-time-tests (Depends-on): Likewise.
36003         * modules/yesno-tests (Depends-on): Likewise.
36004
36005 2009-08-10  Bruno Haible  <bruno@clisp.org>
36006
36007         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36008
36009 2009-08-10  Bruno Haible  <bruno@clisp.org>
36010
36011         Fix a gcc warning.
36012         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36013
36014 2009-08-10  Bruno Haible  <bruno@clisp.org>
36015
36016         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36017         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36018         not only the first time.
36019         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36020         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36021         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36022         is 1, not only the the first time.
36023
36024 2009-08-10  Bruno Haible  <bruno@clisp.org>
36025
36026         Make it possible to use module 'gethostname' without module 'close'.
36027         * lib/unistd.in.h (close): Evoke a link error only if
36028         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36030         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36031         * modules/unistd (Makefile.am): Substitute
36032         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36033         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36034         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36036         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36037         * modules/sys_ioctl (Makefile.am): Substitute
36038         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36039         * modules/socket (configure.ac): On native Windows, set
36040         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36041         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36042         Reported by Sam Steingold <sds@gnu.org>.
36043
36044 2009-08-10  Bruno Haible  <bruno@clisp.org>
36045
36046         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36047         * modules/ioctl (configure.ac): Likewise.
36048
36049 2009-08-10  Bruno Haible  <bruno@clisp.org>
36050
36051         Avoid collision between gnulib wrapper and libintl wrapper.
36052         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36053         already defined in intl/printf.c.
36054         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36055         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36056
36057 2009-08-09  Bruno Haible  <bruno@clisp.org>
36058
36059         Make <sys/select.h> really self-contained, also on Solaris 10.
36060         * lib/sys_select.in.h: Include <string.h>.
36061         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36062         Solaris 10 problem.
36063         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36064         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36065         Reported by Jim Meyering.
36066
36067 2009-08-09  Bruno Haible  <bruno@clisp.org>
36068
36069         Avoid warnings from 'aclocal' that are due to a use of macro name
36070         AM_XGETTEXT_OPTION that is not defined in automake.
36071         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36072         automake.
36073         * modules/error (configure.ac): Likewise.
36074         * modules/propername (configure.ac): Likewise.
36075         * modules/vasprintf (configure.ac): Likewise.
36076         * modules/verror (configure.ac): Likewise.
36077         * modules/xprintf (configure.ac): Likewise.
36078         * modules/xvasprintf (configure.ac): Likewise.
36079
36080 2009-08-08  Bruno Haible  <bruno@clisp.org>
36081
36082         Avoid compilation error in C++ mode.
36083         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36084         Reported by Sam Steingold <sds@gnu.org>.
36085
36086 2009-08-08  Bruno Haible  <bruno@clisp.org>
36087
36088         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36089         for the various Unix platforms.
36090         * doc/posix-headers/limits.texi: Update platforms list regarding
36091         HOST_NAME_MAX.
36092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36093
36094 2009-08-07  Jim Meyering  <meyering@redhat.com>
36095
36096         selinux-at: fix typo in a comment
36097         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36098         Spotted by Paolo Bonzini.
36099
36100         selinux-at: remove redundant m4 code, add documentation
36101         * modules/selinux-at (configure.ac): Remove redundant code.
36102         LIB_SELINUX is already set via the dependent module, selinux-h.
36103         (Include): Add quotes around selinux-at.h.
36104         * lib/selinux-at.h: Add documentation.
36105         Reported by Bruno Haible in
36106         http://marc.info/?l=gnulib-bug&m=124958988300749
36107
36108 2009-08-07  Bruno Haible  <bruno@clisp.org>
36109
36110         Avoid link error on MacOS X 10.3 and 10.4.
36111         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36112         on non-ELF systems.
36113         * lib/argp-pv.c (argp_program_version): Likewise.
36114         Reported by Simon Josefsson.
36115
36116 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36117
36118         * tests/test-version-etc.sh: Use $EXEEXT.
36119
36120 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36121
36122         update-copyright: update documentation to point to maint.mk
36123         * build-aux/update-copyright: Here.
36124
36125 2009-08-06  Jim Meyering  <meyering@redhat.com>
36126
36127         maint.mk: support update-copyright-local
36128         * top/maint.mk (update-copyright-local): Define place-holder.
36129         (update-copyright): Depend on $(update-copyright-local).
36130
36131 2009-08-06  Jim Meyering  <meyering@redhat.com>
36132
36133         selinux-at: new module
36134         Initially written for coreutils, this module will soon be
36135         used by findutils, too.
36136         * MODULES.html.sh [Misc]: Add selinux-at.
36137         * lib/selinux-at.h: New file, from coreutils.
36138         * lib/selinux-at.c: Likewise.
36139         * modules/selinux-at: Likewise.
36140         (License): Change from LGPL to GPL, since it depends
36141         on the GPL'd openat module.
36142
36143         doc: update README
36144         * README: Remove references to cogito.
36145         Remove cvs-repo-updating instructions from 2007.
36146         Don't imply that CVS is better if you have limited disk space.
36147
36148 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36149
36150         update-copyright: support C-style comments
36151         * build-aux/update-copyright: Implement and document.
36152         * tests/test-update-copyright.sh: Test.
36153
36154 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36155
36156         update-copyright: support omitted "(C)"
36157         * build-aux/update-copyright: Implement and document.  Also,
36158         allow variable whitespace before "(C)".
36159         * tests/test-update-copyright.sh: Test.
36160
36161 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36162
36163         update-copyright: don't trip on non-FSF copyright statements
36164         * build-aux/update-copyright: Fix so that the first correctly
36165         formatted FSF copyright statement is recognized no matter what
36166         appears before it.  Update documentation.
36167         * tests/test-update-copyright.sh: Test that.
36168
36169 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36170
36171         update-copyright: clean up code a little
36172         * build-aux/update-copyright: Append "_re" to the name of any
36173         variable holding a regular expression.
36174         Replace "old" and "new" with "stmt" in variable names.
36175         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36176         handled correctly.
36177         Format code more consistently.
36178
36179 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36180
36181         update-copyright-tests: improve portability
36182         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36183         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36184
36185 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36186
36187         update-copyright: support @copyright{} and &copy;
36188         * build-aux/update-copyright: Implement and document.
36189         * tests/test-update-copyright.sh: Test.
36190
36191 2009-08-04  Jim Meyering  <meyering@redhat.com>
36192
36193         update-copyright-tests: correctly test EOL=\r\n handling
36194         * tests/test-update-copyright.sh: Put \r at the end of some lines
36195         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36196
36197         maint.mk: make update-copyright exclusion list more configurable
36198         * top/maint.mk (update-copyright): Default to excluding COPYING,
36199         but allow an override, in case someone does want to update that file.
36200
36201         maint.mk: don't update copyright date in COPYING
36202         * top/maint.mk (update-copyright): Exclude COPYING.
36203
36204         maint.mk: add a copyright-updating rule
36205         * top/maint.mk (update-copyright): New rule.
36206         Derived from coreutils/Makefile.am.
36207
36208         update-copyright: rename some variables
36209         * build-aux/update-copyright: Rename a few variables for clarity.
36210         Tweak syntax.  List Joel E. Denny as coauthor.
36211
36212 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36213
36214         update-copyright: fix bug for 2-digit last year and add tests
36215         * build-aux/update-copyright: Fix bug.
36216         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36217         specified.
36218         * modules/update-copyright-tests: New
36219         * tests/test-update-copyright.sh: New.
36220
36221 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36222
36223         update-copyright: handle leading tabs in line prefix
36224         * build-aux/update-copyright: Count leading tabs as 8 spaces
36225         when computing margin.  This helps with the formatting of
36226         ChangeLogs, for example.
36227         Fix documentation a little.
36228
36229 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36230
36231         update-copyright: support EOL=\r\n
36232         * build-aux/update-copyright: Implement that.
36233
36234 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36235
36236         update-copyright: automatically format copyright statements
36237         * build-aux/update-copyright: Implement that.
36238         Also, be a little more predictable and safer by always failing
36239         when the full copyright format is not perfectly recognized as an
36240         unbroken whole.  Discussed at
36241         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36242         Rewrite documentation.
36243
36244 2009-08-03  Bruno Haible  <bruno@clisp.org>
36245
36246         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36247
36248 2009-08-02  Bruno Haible  <bruno@clisp.org>
36249
36250         Tests for module 'uname'.
36251         * modules/uname-tests: New file.
36252         * tests/test-uname.c: New file.
36253
36254         New module 'uname'.
36255         * lib/uname.c: New file.
36256         * m4/uname.m4: New file.
36257         * modules/uname: New file.
36258         * doc/posix-functions/uname.texi: Mention the new module.
36259
36260 2009-08-02  Bruno Haible  <bruno@clisp.org>
36261
36262         Tests for module 'sys_utsname'.
36263         * modules/sys_utsname-tests: New file.
36264         * tests/test-sys_utsname.c: New file.
36265
36266         New module 'sys_utsname'.
36267         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36268         * m4/sys_utsname_h.m4: New file.
36269         * modules/sys_utsname: New file.
36270         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36271
36272 2009-08-02  Bruno Haible  <bruno@clisp.org>
36273
36274         Implicitly initialize the sockets library.
36275         * lib/gethostname.c: Include sockets.h.
36276         (rpl_gethostname): Invoke gl_sockets_startup.
36277         * lib/socket.c: Include sockets.h.
36278         (rpl_socket): Invoke gl_sockets_startup.
36279         * modules/gethostname (Depends-on): Add sockets.
36280         * modules/socket (Depends-on): Likewise.
36281         * tests/test-poll.c: Don't include sockets.h.
36282         (main): Don't invoke gl_sockets_startup.
36283         * tests/test-select.c: Don't include sockets.h.
36284         (main): Don't invoke gl_sockets_startup.
36285
36286 2009-08-02  Bruno Haible  <bruno@clisp.org>
36287
36288         Allow multiple calls to gl_sockets_startup.
36289         * lib/sockets.c (initialized_sockets_version): New variable.
36290         (gl_sockets_startup): Do nothing if already called for this or a higher
36291         version.
36292         (gl_sockets_cleanup): Reset initialized_sockets_version.
36293
36294 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36295
36296         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36297         different project/version.
36298
36299 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36300             Bruno Haible  <bruno@clisp.org>
36301
36302         Tests for module 'pipe-filter-gi'.
36303         * modules/pipe-filter-gi-tests: New file.
36304         * tests/test-pipe-filter-gi1.sh: New file.
36305         * tests/test-pipe-filter-gi1.c: New file.
36306         * tests/test-pipe-filter-gi2.sh: New file.
36307         * tests/test-pipe-filter-gi2-main.c: New file.
36308         * tests/test-pipe-filter-gi2-child.c: New file.
36309
36310         New module 'pipe-filter-gi'.
36311         * lib/pipe-filter-gi.c: New file.
36312         * modules/pipe-filter-gi: New file.
36313
36314 2009-08-02  Bruno Haible  <bruno@clisp.org>
36315             Paolo Bonzini  <bonzini@gnu.org>
36316
36317         Tests for module 'pipe-filter-ii'.
36318         * modules/pipe-filter-ii-tests: New file.
36319         * tests/test-pipe-filter-ii1.sh: New file.
36320         * tests/test-pipe-filter-ii1.c: New file.
36321         * tests/test-pipe-filter-ii2.sh: New file.
36322         * tests/test-pipe-filter-ii2-main.c: New file.
36323         * tests/test-pipe-filter-ii2-child.c: New file.
36324
36325         New module 'pipe-filter-ii'.
36326         * lib/pipe-filter.h: New file.
36327         * lib/pipe-filter-ii.c: New file.
36328         * lib/pipe-filter-aux.h: New file.
36329         * modules/pipe-filter-ii: New file.
36330
36331 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36332
36333         * lib/gc-libgcrypt.c: Change copyright to FSF.
36334         * lib/gc-gnulib.c: Likewise.
36335
36336 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36337
36338         * lib/gethostname.c: Include limits.h.
36339
36340 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36341             Bruno Haible  <bruno@clisp.org>
36342
36343         Ensure HOST_NAME_MAX as part of the gethostname module.
36344         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36345         define also HOST_NAME_MAX.
36346         * tests/test-gethostname.c: Include <limits.h>.
36347         (main): Check also HOST_NAME_MAX.
36348         * doc/posix-headers/limits.texi: Document the mingw problem.
36349
36350 2009-08-02  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36353         Add comments.
36354
36355 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36356
36357         * lib/gethostname.c: Add Windows wrapper.
36358         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36359         * modules/gethostname: Depend on sys_socket & errno, for also
36360         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36361         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36362
36363 2009-07-31  Jim Meyering  <meyering@redhat.com>
36364
36365         getloadavg: fix symbol name in comment
36366         * lib/getloadavg.c: Correct a typo I introduced when adding
36367         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36368         Matt Kraai spotted the problem.
36369
36370 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36371
36372         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36373         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36374         code also if ! defined N_NAME_POINTER.
36375         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36376         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36377         but the n_name member is a 12-byte array.
36378
36379 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36380
36381         update-copyright: generalize comment handling
36382         * build-aux/update-copyright: Handle copyright statements
36383         within more comment styles.
36384         Document usage.
36385         Report any file with an external copyright holder or parse failure.
36386
36387 2009-07-29  Jim Meyering  <meyering@redhat.com>
36388
36389         mktime: correct setting of REPLACE_MKTIME
36390         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36391
36392         update-copyright: new module
36393         * modules/update-copyright: New file.
36394         * build-aux/update-copyright: New file.
36395         * MODULES.html.sh (maint+release support): Add update-copyright.
36396
36397 2009-07-27  Bruno Haible  <bruno@clisp.org>
36398
36399         Fix compilation error when <ctime> is used and mktime is replaced.
36400         * lib/time.in.h (mktime): New declaration.
36401         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36402         REPLACE_MKTIME instead of defining mktime in config.h.
36403         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36404         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36405         Reported by Ross McFarland <rwmcfa1@neces.com>.
36406
36407 2009-07-27  Bruno Haible  <bruno@clisp.org>
36408
36409         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36410         Reported by Matt Kraai <mkraai@beckman.com>.
36411
36412 2009-07-25  Jim Meyering  <meyering@redhat.com>
36413
36414         maint.mk: avoid warnings about missing files
36415         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36416         diagnostic when .prev-version does not exist.
36417         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36418         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36419         nonexistent cfg.mk.
36420         Suggestions from Simon Josefsson.
36421
36422 2009-07-25  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36425         defined as macros. Needed on QNX 6.4.1.
36426         Reported by Matt Kraai <mkraai@beckman.com>.
36427
36428 2009-07-23  Jim Meyering  <meyering@redhat.com>
36429
36430         maint.mk: invoke "make dist" with a working value of XZ_OPT
36431         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36432
36433 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36434
36435         Make fseeko.c compile on QNX.
36436         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36437
36438 2009-07-22  Peter Simons  <simons@cryp.to>
36439
36440         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36441         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36442         * lib/md4.h: Likewise.
36443         * lib/md5.h: Likewise.
36444         * lib/sha1.h: Likewise.
36445         * lib/sha256.h: Likewise.
36446         * lib/sha512.h: Likewise.
36447
36448         tests-sha1: don't assign literal string to 'char *' variable
36449         * tests/test-sha1.c (main): Declare locals with "const" to match
36450         attributes of the right hand side.
36451
36452 2009-07-21  Eric Blake  <ebb9@byu.net>
36453
36454         dup2: fix more mingw problems
36455         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36456         fd to itself.
36457         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36458         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36459         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36460         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36461         care of mingw bugs.
36462
36463 2009-07-21  Jim Meyering  <meyering@redhat.com>
36464
36465         vc-list-files: avoid failure when /bin/sh is dash
36466         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36467         On some Debian based systems, /bin/sh is a symlink to dash, and running
36468         this command would omit the "/" following each 'tests' prefix:
36469           dash -x build-aux/vc-list-files -C . tests
36470         That is because bash and dash work differently:
36471           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36472           bash ok
36473           dash odd
36474
36475 2009-07-21  Eric Blake  <ebb9@byu.net>
36476
36477         dup2-tests: test previous patch
36478         * modules/dup2-tests: New file.
36479         * tests/test-dup2.c: Likewise.
36480         * tests/test-open.c (main): Avoid unspecified behavior.
36481         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36482         test.
36483
36484         dup2: work around mingw and cygwin 1.5 bug
36485         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36487         * modules/unistd (Makefile.am): Substitute it.
36488         * lib/unistd.in.h (dup2): Declare the replacement.
36489         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36490         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36491         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36492         * modules/execute (Depends-on): Add dup2.
36493         * modules/fseterr (Depends-on): Likewise.
36494         * modules/pipe (Depends-on): Likewise.
36495         * modules/posix_spawn-internal (Depends-on): Likewise.
36496
36497 2009-07-21  Bruno Haible  <bruno@clisp.org>
36498
36499         * modules/.gitattributes: New file.
36500
36501 2009-07-20  Bruno Haible  <bruno@clisp.org>
36502
36503         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36504         (main): Use it.
36505
36506 2009-07-20  Eric Blake  <ebb9@byu.net>
36507
36508         test-pipe: make a bit more robust.
36509         * tests/test-pipe.c (myerr): Allow error messages regardless of
36510         what we do to stderr.
36511         (test_pipe): Rearrange to avoid deadlock.
36512         (child_main): Try a larger read, to ensure we avoided deadlock.
36513         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36514         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36515         if misused.
36516
36517 2009-07-19  Jim Meyering  <meyering@redhat.com>
36518
36519         fts: avoid false-positive cycle-detection
36520         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36521         for each new command line argument.
36522
36523 2009-07-19  Bruno Haible  <bruno@clisp.org>
36524
36525         Fix build error on mingw with the modules sys_select and unistd.
36526         * modules/acl-tests (Depends-on): Add close.
36527         * modules/binary-io-tests (Depends-on): Likewise.
36528         * modules/closein-tests (Depends-on): Likewise.
36529         * modules/flock-tests (Depends-on): Likewise.
36530         * modules/fsync-tests (Depends-on): Likewise.
36531         * modules/lseek-tests (Depends-on): Likewise.
36532         * modules/pipe-tests (Depends-on): Likewise.
36533         * modules/posix_spawn-tests (Depends-on): Likewise.
36534         * modules/posix_spawnp-tests (Depends-on): Likewise.
36535         * modules/stat-time-tests (Depends-on): Likewise.
36536         * modules/yesno-tests (Depends-on): Likewise.
36537
36538 2009-07-19  Bruno Haible  <bruno@clisp.org>
36539
36540         Unify conditionals.
36541         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36542         macros, not at the compiler macros.
36543         * lib/pipe.c: Likewise.
36544         * lib/execute.c: Likewise.
36545         * lib/spawni.c: Likewise.
36546
36547 2009-07-19  Bruno Haible  <bruno@clisp.org>
36548
36549         Fix handling of closed stdin/stdout/stderr on mingw.
36550         * lib/w32spawn.h: Include unistd.h.
36551         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36552         file descriptor with O_NOINHERIT flag.
36553         (fd_safer_noinherit): New function, based on fd-safer.c.
36554         (dup_safer_noinherit): New function, based on dup-safer.c.
36555         (undup_safer_noinherit): New function.
36556         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36557         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36558         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36559         instead of fd_safer.
36560         * tests/test-pipe.c: Include <windows.h>.
36561         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36562         result.
36563
36564         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36565         from main.
36566         (test_pipe): Pass an extra argument for disambiguation.
36567         (main): Invoke parent_main or child_main.
36568
36569         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36570         consistently.
36571
36572 2009-07-18  Eric Blake  <ebb9@byu.net>
36573
36574         test-pipe: fix mingw build
36575         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36576
36577 2009-07-18  Bruno Haible  <bruno@clisp.org>
36578
36579         * modules/pipe-tests (Makefile.am): Fix typo.
36580
36581 2009-07-18  Eric Blake  <ebb9@byu.net>
36582
36583         error: fix mingw build
36584         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36585         Reported by Bruno Haible.
36586
36587         error: avoid undefined use of stdout
36588         * lib/error.c (error, error_at_line): Check that fd 1 is open
36589         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36590         is handling faults and the close_stdout module wants to report the
36591         detection of closed stdout as an error.
36592
36593 2009-07-17  Eric Blake  <ebb9@byu.net>
36594
36595         pipe: be robust in face of closed fds
36596         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36597         should cause child to misbehave.
36598         * modules/pipe-tests: New module.
36599         * tests/test-pipe.c: New file.
36600         * tests/test-pipe.sh: New file.
36601         Reported by Akim Demaille.
36602
36603 2009-07-14  Bruno Haible  <bruno@clisp.org>
36604
36605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36606         Reported by anonymous kc.
36607
36608 2009-07-07  Jim Meyering  <meyering@redhat.com>
36609
36610         maint.mk: don't look for translatable strings in *.m4 or *.mk
36611         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36612         when searching for translatable strings.
36613
36614 2009-07-05  Jim Meyering  <meyering@redhat.com>
36615
36616         remove superfluous parentheses in STREQ definition
36617         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36618         * lib/getugroups.c (STREQ): Likewise.
36619         * lib/fnmatch.c (STREQ): Likewise.
36620         Spotted by Bruno Haible.
36621
36622 2009-07-04  Jim Meyering  <meyering@redhat.com>
36623
36624         argv-iter: new module
36625         * MODULES.html.sh: Add argv-iter.
36626         * lib/argv-iter.c, lib/argv-iter.h: New files.
36627         * modules/argv-iter: New file.
36628         * modules/argv-iter-tests: New file.
36629         * tests/test-argv-iter.c: Test it.
36630
36631 2009-07-04  Bruno Haible  <bruno@clisp.org>
36632
36633         Fix assertion.
36634         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36635         contains more exact copies of a given entry than file2, leave the extra
36636         copies unpaired rather than aborting.
36637         Reported by Eric Blake.
36638
36639 2009-07-02  Bruno Haible  <bruno@clisp.org>
36640
36641         Speedup git-merge-changelog for git cherry-pick.
36642         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36643         (entries_mapping_get): New function, extracted from compute_mapping.
36644         (entries_mapping_reverse_get): New function.
36645         (compute_mapping): Add a 'full' argument. Return the result in a
36646         'struct entries_mapping'.
36647         (main): Update. Access the mappings through entries_mapping_get.
36648         Reported by Eric Blake.
36649
36650 2009-07-02  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36653         best_i.
36654
36655 2009-07-02  Bruno Haible  <bruno@clisp.org>
36656
36657         Speed up approximate search for matching ChangeLog entries.
36658         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36659         argument. Call fstrcmp_bounded instead of fstrcmp.
36660         (compute_mapping, try_split_merged_entry, main): Update callers.
36661
36662 2009-07-02  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36665
36666 2009-06-30  Bruno Haible  <bruno@clisp.org>
36667
36668         Reduce the number of uc_is_cased calls.
36669         * lib/unicase.h (casing_suffix_context_t): Add
36670         'first_char_except_ignorable' field.
36671         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36672         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36673         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36674         Update initializer.
36675         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36676         case-ignorable characters.
36677         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36678         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36679         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36680         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36681         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36682
36683 2009-06-30  Bruno Haible  <bruno@clisp.org>
36684
36685         Tests for module 'unicase/ignorable'.
36686         * modules/unicase/ignorable-tests: New file.
36687         * tests/unicase/test-ignorable.c: New file, generated by
36688         gen-uni-tables.
36689
36690         Tests for module 'unicase/cased'.
36691         * modules/unicase/cased-tests: New file.
36692         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36693         * tests/unicase/test-predicate-part1.h: New file, derived from
36694         tests/unictype/test-predicate-part1.h.
36695         * tests/unicase/test-predicate-part2.h: New file, same as
36696         tests/unictype/test-predicate-part2.h.
36697
36698         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36699         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36700         (output_casing_properties): New function.
36701         (main): Call it.
36702         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36703         * lib/unicase/cased.c: Include unictype/bitmap.h.
36704         (uc_is_cased): Define through a bitmap lookup.
36705         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36706         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36707         (uc_is_case_ignorable): Define through a bitmap lookup.
36708         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36709         lib/unictype/bitmap.h.
36710         (Depends-on): Add inline. Clean up.
36711         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36712         lib/unictype/bitmap.h.
36713         (Depends-on): Add inline. Clean up.
36714         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36715         recognition.
36716         * tests/unicase/test-u16-tolower.c (main): Likewise.
36717         * tests/unicase/test-u32-tolower.c (main): Likewise.
36718
36719 2009-06-30  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36722         * lib/unicase/u16-casemap.c: Likewise.
36723         * lib/unicase/u32-casemap.c: Likewise.
36724
36725 2009-06-29  Bruno Haible  <bruno@clisp.org>
36726
36727         Define u32_casefold as a wrapper around u32_ct_casefold.
36728         * lib/unicase/u32-casefold.c: Update.
36729         * modules/unicase/u32-casefold (Depends-on): Add
36730         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36731         unicase/empty-suffix-context. Clean up.
36732
36733         Define u16_casefold as a wrapper around u16_ct_casefold.
36734         * lib/unicase/u16-casefold.c: Update.
36735         * modules/unicase/u16-casefold (Depends-on): Add
36736         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36737         unicase/empty-suffix-context. Clean up.
36738
36739         Define u8_casefold as a wrapper around u8_ct_casefold.
36740         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36741         * lib/unicase/u8-casefold.c: Update.
36742         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36743         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36744
36745         Define u32_totitle as a wrapper around u32_ct_totitle.
36746         * lib/unicase/u32-totitle.c: Update.
36747         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36748         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36749
36750         Define u16_totitle as a wrapper around u16_ct_totitle.
36751         * lib/unicase/u16-totitle.c: Update.
36752         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36753         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36754
36755         Define u8_totitle as a wrapper around u8_ct_totitle.
36756         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36757         functions.
36758         (FUNC): Delegate to U_CT_TOTITLE.
36759         * lib/unicase/u8-totitle.c: Update.
36760         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36761         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36762
36763         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36764         invocation.
36765         * modules/unicase/u32-tolower (Depends-on): Add
36766         unicase/empty-prefix-context, unicase/empty-suffix-context.
36767
36768         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36769         invocation.
36770         * modules/unicase/u16-tolower (Depends-on): Add
36771         unicase/empty-prefix-context, unicase/empty-suffix-context.
36772
36773         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36774         * modules/unicase/u8-tolower (Depends-on): Add
36775         unicase/empty-prefix-context, unicase/empty-suffix-context.
36776
36777         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36778         invocation.
36779         * modules/unicase/u32-toupper (Depends-on): Add
36780         unicase/empty-prefix-context, unicase/empty-suffix-context.
36781
36782         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36783         invocation.
36784         * modules/unicase/u16-toupper (Depends-on): Add
36785         unicase/empty-prefix-context, unicase/empty-suffix-context.
36786
36787         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36788         * modules/unicase/u8-toupper (Depends-on): Add
36789         unicase/empty-prefix-context, unicase/empty-suffix-context.
36790
36791         New module 'unicase/u32-ct-casefold'.
36792         * lib/unicase/u32-ct-casefold.c: New file.
36793         * modules/unicase/u32-ct-casefold: New file.
36794
36795         New module 'unicase/u16-ct-casefold'.
36796         * lib/unicase/u16-ct-casefold.c: New file.
36797         * modules/unicase/u16-ct-casefold: New file.
36798
36799         New module 'unicase/u8-ct-casefold'.
36800         * lib/unicase/u8-ct-casefold.c: New file.
36801         * lib/unicase/u-ct-casefold.h: New file, derived from
36802         lib/unicase/u-casefold.h.
36803         * modules/unicase/u8-ct-casefold: New file.
36804
36805         New module 'unicase/u32-ct-totitle'.
36806         * lib/unicase/u32-ct-totitle.c: New file.
36807         * modules/unicase/u32-ct-totitle: New file.
36808
36809         New module 'unicase/u16-ct-totitle'.
36810         * lib/unicase/u16-ct-totitle.c: New file.
36811         * modules/unicase/u16-ct-totitle: New file.
36812
36813         New module 'unicase/u8-ct-totitle'.
36814         * lib/unicase/u8-ct-totitle.c: New file.
36815         * lib/unicase/u-ct-totitle.h: New file, derived from
36816         lib/unicase/u-totitle.h.
36817         * modules/unicase/u8-ct-totitle: New file.
36818
36819         New module 'unicase/u32-ct-tolower'.
36820         * lib/unicase/u32-ct-tolower.c: New file.
36821         * modules/unicase/u32-ct-tolower: New file.
36822
36823         New module 'unicase/u16-ct-tolower'.
36824         * lib/unicase/u16-ct-tolower.c: New file.
36825         * modules/unicase/u16-ct-tolower: New file.
36826
36827         New module 'unicase/u8-ct-tolower'.
36828         * lib/unicase/u8-ct-tolower.c: New file.
36829         * modules/unicase/u8-ct-tolower: New file.
36830
36831         New module 'unicase/u32-ct-toupper'.
36832         * lib/unicase/u32-ct-toupper.c: New file.
36833         * modules/unicase/u32-ct-toupper: New file.
36834
36835         New module 'unicase/u16-ct-toupper'.
36836         * lib/unicase/u16-ct-toupper.c: New file.
36837         * modules/unicase/u16-ct-toupper: New file.
36838
36839         New module 'unicase/u8-ct-toupper'.
36840         * lib/unicase/u8-ct-toupper.c: New file.
36841         * modules/unicase/u8-ct-toupper: New file.
36842
36843         Add context arguments to u*_casemap functions.
36844         * lib/unicase/unicasemap.h: Include unicase.h.
36845         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36846         suffix_context arguments.
36847         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36848         functions.
36849         (FUNC): Add prefix_context and suffix_context arguments. Use
36850         uc_is_cased and uc_is_case_ignorable.
36851         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36852         * lib/unicase/u16-casemap.c: Likewise.
36853         * lib/unicase/u32-casemap.c: Likewise.
36854         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36855         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36856         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36857         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36858         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36859         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36860
36861         New module 'unicase/u32-suffix-context'.
36862         * lib/unicase/u32-suffix-context.c: New file.
36863         * modules/unicase/u32-suffix-context: New file.
36864
36865         New module 'unicase/u16-suffix-context'.
36866         * lib/unicase/u16-suffix-context.c: New file.
36867         * modules/unicase/u16-suffix-context: New file.
36868
36869         New module 'unicase/u8-suffix-context'.
36870         * lib/unicase/u8-suffix-context.c: New file.
36871         * lib/unicase/u-suffix-context.h: New file.
36872         * modules/unicase/u8-suffix-context: New file.
36873
36874         New module 'unicase/empty-suffix-context'.
36875         * lib/unicase/empty-suffix-context.c: New file.
36876         * modules/unicase/empty-suffix-context: New file.
36877
36878         New module 'unicase/u32-prefix-context'.
36879         * lib/unicase/u32-prefix-context.c: New file.
36880         * modules/unicase/u32-prefix-context: New file.
36881
36882         New module 'unicase/u16-prefix-context'.
36883         * lib/unicase/u16-prefix-context.c: New file.
36884         * modules/unicase/u16-prefix-context: New file.
36885
36886         New module 'unicase/u8-prefix-context'.
36887         * lib/unicase/u8-prefix-context.c: New file.
36888         * lib/unicase/u-prefix-context.h: New file.
36889         * lib/unicase/context.h: New file.
36890         * modules/unicase/u8-prefix-context: New file.
36891
36892         New module 'unicase/empty-prefix-context'.
36893         * lib/unicase/empty-prefix-context.c: New file.
36894         * modules/unicase/empty-prefix-context: New file.
36895
36896         New module 'unicase/ignorable'.
36897         * lib/unicase/ignorable.c: New file.
36898         * modules/unicase/ignorable: New file.
36899
36900         New module 'unicase/cased'.
36901         * lib/unicase/caseprop.h: New file.
36902         * lib/unicase/cased.c: New file.
36903         * modules/unicase/cased: New file.
36904
36905         New functions for case mapping of substrings.
36906         * lib/unicase.h (casing_prefix_context_t): New type.
36907         (unicase_empty_prefix_context): New variable.
36908         (u8_casing_prefix_context, u16_casing_prefix_context,
36909         u32_casing_prefix_context, u8_casing_prefixes_context,
36910         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36911         declarations.
36912         (casing_suffix_context_t): New type.
36913         (unicase_empty_suffix_context): New variable.
36914         (u8_casing_suffix_context, u16_casing_suffix_context,
36915         u32_casing_suffix_context, u8_casing_suffixes_context,
36916         u16_casing_suffixes_context, u32_casing_suffixes_context,
36917         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36918         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36919         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36920         declarations.
36921
36922 2009-06-28  Jim Meyering  <meyering@redhat.com>
36923
36924         boostrap: indent only with spaces
36925         * build-aux/bootstrap: Indent only with spaces, never TABs.
36926
36927         bootstrap: split long lines
36928         * build-aux/bootstrap: Keep line length < 80.
36929
36930         bootstrap: sync from coreutils
36931         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36932         just as autoreconf does.  Verify a list of prerequisite
36933         package-name,version-number pairs if defined in bootstrap.conf.
36934         Refer to README-prereq, if prerequisites are not satisfied.
36935
36936 2009-06-27  Eric Blake  <ebb9@byu.net>
36937
36938         tests: add test for bogus NULL definition
36939         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36940         * tests/test-stdlib.c: Likewise.
36941         * tests/test-string.c: Likewise.
36942         * tests/test-locale.c: Likewise.
36943         * tests/test-unistd.c: Likewise.
36944         * modules/stdio-tests (Depends-on): Add verify.
36945         * modules/stdlib-tests (Depends-on): Likewise.
36946         * modules/string-tests (Depends-on): Likewise.
36947         * modules/locale-tests (Depends-on): Likewise.
36948         * modules/unistd-tests (Depends-on): Likewise.
36949
36950 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36951
36952         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36953         self-explaining comment.
36954         * m4/selinux-selinux-h: Update serial.
36955         (gl_LIBSELINUX): New macro, adding a warning for missing development
36956         packages to code extracted from...
36957         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36958         Add warning for missing development packages here, too.
36959
36960 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36961
36962         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36963
36964 2009-06-25  Eric Blake  <ebb9@byu.net>
36965
36966         version-etc: fix regression
36967         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36968         gcc.
36969         (version_etc): Use it, to catch bugs with trailing NULL.
36970         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36971         (version_etc_va): Fix logic bug.
36972         * modules/version-etc-tests: Add test.
36973         * tests/test-version-etc.c: New file.
36974         * tests/test-version-etc.sh: Likewise.
36975
36976 2009-06-25  Sam Steingold  <sds@gnu.org>
36977
36978         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36979         mbtowc declaration.
36980
36981 2009-06-25  Eric Blake  <ebb9@byu.net>
36982
36983         fpurge: migrate into <stdio.h>
36984         * lib/fpurge.h: Delete...
36985         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36986         * lib/fpurge.c (fpurge): Change declaring header.
36987         * modules/fpurge (Files): Drop deleted file.
36988         (Depends-on): Add stdio.
36989         (configure.ac): Set witness.
36990         * modules/stdio (Makefile.am): Support fpurge macros.
36991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36992         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36993         * lib/fflush.c: Update client.
36994         * tests/test-fpurge.c: Likewise.
36995         * NEWS: Mention the change.
36996
36997 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36998
36999         * lib/argp-version-etc.c (program_authors): Add const
37000         qualifier.
37001         * lib/version-etc.c: Fix typos in the comments.
37002         * modules/argp-version-etc: Depends on version-etc.
37003
37004 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37005
37006         argp-version-etc: new module.
37007
37008         * lib/argp-version-etc.c: New file.
37009         * lib/argp-version-etc.h: New file.
37010         * modules/argp-version-etc: New file.
37011         * modules/argp-version-etc-tests: New file.
37012         * tests/test-argp-version-etc.c: New test.
37013         * tests/test-argp-version-etc-1.sh: New test.
37014
37015 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37016
37017         Provide additional interfaces and documentation for version-etc
37018         module.
37019
37020         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37021         interfaces.
37022         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37023         prototypes.
37024
37025 2009-06-24  Bruno Haible  <bruno@clisp.org>
37026
37027         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37028         HAVE_LIB${NAME} macro.
37029         Reported by Sam Steingold <sds@gnu.org>.
37030
37031 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37032
37033         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37034         needed.
37035
37036 2009-06-21  Bruno Haible  <bruno@clisp.org>
37037
37038         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37039         work.
37040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37041         together with LIB${NAME}, LTLIB${NAME}.
37042         Reported by Sam Steingold <sds@gnu.org>.
37043
37044 2009-06-20  Jim Meyering  <meyering@redhat.com>
37045
37046         tests: make sc_require_test_exit_idiom more generic
37047         * top/maint.mk (Exit_witness_file): New overridable variable.
37048         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37049         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37050
37051 2009-06-19  Jim Meyering  <meyering@redhat.com>
37052
37053         hash: reverse order of src/dst parameters in an internal interface
37054         * lib/hash.c (transfer_entries): Reverse order of parameters to
37055         put DST before SRC.  Adjust callers.
37056
37057         tests: test-hash: avoid wholesale duplication
37058         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37059         Instead, use a loop and add a single conditional.
37060
37061         tests: test-hash: allow seed selection via a command line argument
37062         * tests/test-hash.c (get_seed): New function.
37063         (main): Use it.
37064
37065 2009-06-19  Eric Blake  <ebb9@byu.net>
37066
37067         hash: avoid memory leak on allocation failure
37068         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37069         failure.  Factor repeated algorithm...
37070         (transfer_entries): ...into new helper routine.
37071         (hash_delete): React to hash_rehash return value.
37072
37073         hash: reduce memory pressure in hash_rehash no-op case
37074         * lib/hash.c (next_prime): Avoid overflow.
37075         (hash_initialize): Factor bucket size computation...
37076         (compute_bucket_size): ...into new helper function.
37077         (hash_rehash): Use new function and open coding to reduce memory
37078         pressure, and avoid a memory leak in USE_OBSTACK code.
37079         Reported by Jim Meyering.
37080
37081 2009-06-18  Eric Blake  <ebb9@byu.net>
37082
37083         hash: make rotation more obvious
37084         * modules/hash (Depends-on): Add bitrotate and stdint.
37085         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37086         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37087         (SIZE_MAX): Rely on headers for definition.
37088         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37089         (raw_hasher): Use rotr_sz.
37090         Suggested by Jim Meyering.
37091
37092         hash: fix memory leak in last patch
37093         * lib/hash.c (hash_rehash): Avoid memory leak.
37094
37095         hash: avoid no-op rehashing
37096         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37097
37098         hash: provide default callback functions
37099         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37100         (hash_initialize): Use them as defaults.
37101         * tests/test-hash.c (main): Test this.
37102
37103         hash: minor optimization
37104         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37105         when possible.
37106         (hash_initialize): Document this promise.
37107         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37108         * tests/test-hash.c (hash_compare_strings): Test this.
37109
37110 2009-06-18  Bruno Haible  <bruno@clisp.org>
37111
37112         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37113         going to be replaced anyway.
37114
37115 2009-06-18  Bruno Haible  <bruno@clisp.org>
37116
37117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37118         in one place.
37119         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37120         be replaced anyway.
37121
37122 2009-06-18  Eric Blake  <ebb9@byu.net>
37123
37124         hash: check for resize before insertion
37125         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37126         threshold before insertion, so that a pathological hash_rehash
37127         that fills every bucket can still trigger another rehash.
37128
37129 2009-06-18  Jim Meyering  <meyering@redhat.com>
37130
37131         hash-tests: add a loop around the small tests
37132         * tests/test-hash.c (main): Repeat small tests with selected
37133         small initial table sizes.
37134
37135 2009-06-17  Eric Blake  <ebb9@byu.net>
37136
37137         hash: minor cleanups
37138         * lib/hash.h (hash_entry): Make opaque, by moving...
37139         * lib/hash.c (hash_entry): ...here.
37140         (hash_insert): Clarify restrictions on what can be inserted.
37141         (hash_get_next): Clarify when it is safe to remove an element
37142         during traversal.
37143         (check_tuning): Skip verification when tuning is known safe.
37144         (hash_initialize): Clarify restrictions on tuning.
37145
37146 2009-06-17  Jim Meyering  <jim@meyering.net>
37147         and Eric Blake  <ebb9@byu.net>
37148
37149         hash-tests: new module
37150         * modules/hash-tests: New file.
37151         * tests/test-hash.c: New file.
37152
37153 2009-06-17  Eric Blake  <ebb9@byu.net>
37154
37155         strstr-simple: document new module
37156         * MODULES.html.sh: Document new module.
37157
37158         strstr, strcasestr: replace on platforms with broken memchr
37159         * modules/strstr: Split into...
37160         * modules/strstr-simple: ...new module that does not care about
37161         performance, but does care about glibc bug.
37162         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37163         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37164         if platform memchr is broken, per Debian bug 521737.
37165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37166         memchr.
37167         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37168         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37169         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37170         * modules/mountlist (Depends-on): Add strstr-simple.
37171         * modules/gen-uni-tables (Depends-on): Likewise.
37172         * modules/argz (Depends-on): Add strstr.
37173
37174 2009-06-17  Bruno Haible  <bruno@clisp.org>
37175
37176         * modules/posix_spawn-internal (Depends-on): Add errno.
37177
37178 2009-06-17  Bruno Haible  <bruno@clisp.org>
37179
37180         Define missing ESTALE on Interix 3.5.
37181         * lib/errno.in.h (ESTALE): Assign a value if missing.
37182         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37183         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37184         missing.
37185         * doc/posix-headers/errno.texi: Mention the Interix bug.
37186         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37187
37188 2009-06-15  Eric Blake  <ebb9@byu.net>
37189
37190         memchr, memchr2: add valgrind exception
37191         * lib/memchr.valgrind: New file.
37192         * lib/memchr2.valgrind: New file.
37193         * modules/memchr (Files): Distribute valgrind file.
37194         * modules/memchr2 (Files): Likewise.
37195
37196         docs: memchr is no longer obsolete
37197         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37198         * lib/string.in.h (memchr): Simplify logic.
37199
37200 2009-06-14  Jim Meyering  <meyering@redhat.com>
37201
37202         link-follow: fix the "checking..." message to not mention trailing slash
37203         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37204         never considered trailing slashes.
37205
37206 2009-06-14  Bruno Haible  <bruno@clisp.org>
37207
37208         * m4/memchr.m4: Mention also the bug on IA-64.
37209         * doc/posix-functions/memchr.texi: Likewise.
37210
37211 2009-06-12  Eric Blake  <ebb9@byu.net>
37212
37213         memchr: detect broken x86_64 and alpha implementations
37214         * modules/memchr-tests (Depends-on): Move mmap detection...
37215         * modules/memchr (Depends-on): ...here.
37216         (configure.ac): Set indicator.
37217         * lib/string.in.h (memchr): Declare replacement.
37218         * modules/string (Makefile.am): Trigger replacement.
37219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37220         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37221         bugs.
37222         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37223         * modules/getpagesize (License): Relax license.
37224
37225 2009-06-11  Bruno Haible  <bruno@clisp.org>
37226
37227         * lib/idpriv.h: Add more references.
37228
37229 2009-06-08  Bruno Haible  <bruno@clisp.org>
37230
37231         Tests for module 'idpriv-droptemp'.
37232         * modules/idpriv-droptemp-tests: New file.
37233         * tests/test-idpriv-droptemp.sh: New file.
37234         * tests/test-idpriv-droptemp.su.sh: New file.
37235         * tests/test-idpriv-droptemp.c: New file.
37236
37237         New module 'idpriv-droptemp'.
37238         * lib/idpriv-droptemp.c: New file.
37239         * modules/idpriv-droptemp: New file.
37240
37241 2009-06-08  Bruno Haible  <bruno@clisp.org>
37242
37243         Tests for module 'idpriv-drop'.
37244         * modules/idpriv-drop-tests: New file.
37245         * tests/test-idpriv-drop.sh: New file.
37246         * tests/test-idpriv-drop.su.sh: New file.
37247         * tests/test-idpriv-drop.c: New file.
37248
37249         New module 'idpriv-drop'.
37250         * lib/idpriv.h: New file.
37251         * lib-idpriv-drop.c: New file.
37252         * m4/idpriv.m4: New file.
37253         * modules/idpriv-drop: New file.
37254
37255 2009-06-08  Bruno Haible  <bruno@clisp.org>
37256
37257         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37258         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37259         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37260         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37263         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37264
37265 2009-06-08  Eric Blake  <ebb9@byu.net>
37266
37267         test-strstr: use memory fence, when possible
37268         * tests/test-strstr.c (main): Use memory fence, in order to be
37269         more likely to trigger Debian bug 521737.
37270         * modules/strstr-tests (Files): Pull in additional files.
37271
37272         memchr: no longer obsolete, for wider field testing
37273         * modules/memchr (Status, Notice): Delete, this module is no
37274         longer obsolete.
37275         * modules/vasnprintf (Depends-on): Add memchr.
37276
37277 2009-06-07  Jim Meyering  <meyering@redhat.com>
37278
37279         hash: declare some functions with the warn_unused_result attribute
37280         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37281
37282 2009-06-07  Bruno Haible  <bruno@clisp.org>
37283
37284         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37285         Reported by Eric Blake.
37286
37287 2009-06-06  Eric Blake  <ebb9@byu.net>
37288
37289         test-alignof: fix typo with long double
37290         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37291         compiler error.
37292
37293 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37294
37295         Escape non-texinfo { and }s.
37296         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37297         markup error.
37298
37299 2009-06-04  Jim Meyering  <meyering@redhat.com>
37300
37301         gitlog-to-changelog: don't infloop on an empty commit log
37302         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37303         Reported by Boris Petersen <transacid@centerim.org>.
37304
37305 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37306
37307         version-etc: extend for packagers
37308         Add three new configure options, intended for packagers:
37309           --with-packager="packager name"
37310           --with-packager-version="packager-specific version"
37311           --with-packager-bug-reports="packager bug reporting"
37312         An example with coreutils:
37313           $ ./configure \
37314             --with-packager=Gentoo \
37315             --with-packager-bug-report=http://bugs.gentoo.org/ \
37316             --with-packager-version="patchset 1.6"
37317           $ ./src/ls --version | head -n2
37318           ls (GNU coreutils) 7.1-dirty
37319           Packaged by Gentoo (patchset 1.6)
37320         Note that the bug reporting info via --help doesn't show up because
37321         coreutils uses its own custom emit_bug_reporting_address() implementation
37322         in src/system.h.  If it didn't, it'd look like:
37323           $ ./src/ls --help | tail -n4
37324           Report bugs to <bug-coreutils@gnu.org>.
37325           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37326           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37327           General help using GNU software: <http://www.gnu.org/gethelp/>.
37328         * lib/version-etc.c: Print new information, if provided.
37329         * m4/version-etc.m4: New file.
37330         * modules/version-etc (Files): Add m4/version-etc.m4.
37331         (configure.ac): Add gl_VERSION_ETC.
37332
37333 2009-05-31  Bruno Haible  <bruno@clisp.org>
37334
37335         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37336         and 'int64_t'.
37337         * modules/alignof-tests (Dependencies): Add stdint.
37338         Reported by Eric Blake.
37339
37340 2009-05-31  Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37343         restriction due to compiler bugs.
37344         Reported by Eric Blake.
37345
37346 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37347             Bruno Haible  <bruno@clisp.org>
37348
37349         Fix test-alignof failure.
37350         * lib/alignof.h (alignof_slot): New macro.
37351         (alignof_type): New macro, with the same semantics as the previous
37352         'alignof'.
37353         (alignof): Alias to alignof_slot.
37354         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37355         check that the results are usable as constant expressions.
37356
37357 2009-05-31  Bruno Haible  <bruno@clisp.org>
37358
37359         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37360         * tests/test-memchr.c (main): Check that memchr does not read past the
37361         first occurrence of the byte.
37362         * tests/test-strstr.c (main): Update comment.
37363         Suggested by Eric Blake.
37364
37365 2009-05-30  Bruno Haible  <bruno@clisp.org>
37366
37367         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37368         detail how to use dumpbin.
37369         Reported by David Byron <dbyron@dbyron.com>.
37370
37371 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37372
37373         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37374
37375 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37376
37377         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37378
37379 2009-05-28  Bruno Haible  <bruno@clisp.org>
37380
37381         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37382         build-aux/ files.
37383
37384 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37385
37386         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37387
37388 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37389
37390         * gnulib-tool (sed_transform_main_lib_file)
37391         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37392         regexps.
37393
37394 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37395
37396         * tests/test-strstr.c: Add another self-test.
37397         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37398         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37399
37400 2009-05-23  Bruno Haible  <bruno@clisp.org>
37401
37402         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37403         change.
37404
37405 2009-05-21  Bruno Haible  <bruno@clisp.org>
37406
37407         Simplify use of mode_t varargs.
37408         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37409         uses 'mode_t' or 'int'.
37410         * lib/openat.c (openat): Likewise.
37411         * lib/open-safer.c (open_safer): Likewise.
37412         * m4/mode_t.m4: New file.
37413         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37414         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37415         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37416         * modules/open (Files): Add m4/mode_t.m4.
37417         * modules/openat (Files): Likewise.
37418         * modules/fcntl-safer (Files): Likewise.
37419         Suggested by Eric Blake.
37420
37421 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37422
37423         * doc/glibc-functions/fallocate.texi: New file.
37424         * doc/gnulib.texi: Include it.
37425
37426 2009-05-21  Eric Blake  <ebb9@byu.net>
37427             Bruno Haible  <bruno@clisp.org>
37428
37429         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37430         invocations.
37431         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37432
37433 2009-05-21  Eric Blake  <ebb9@byu.net>
37434             Bruno Haible  <bruno@clisp.org>
37435
37436         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37437         include_next. Fix of 2008-11-20 commit.
37438         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37439         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37440         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37441         NEXT_MATH_H.
37442         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37443         instead of NEXT_MATH_H.
37444
37445 2009-05-21  Bruno Haible  <bruno@clisp.org>
37446
37447         Avoid redefinition warnings for SIZE_MAX.
37448         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37449         Reported by Simon Josefsson.
37450
37451 2009-05-21  Bruno Haible  <bruno@clisp.org>
37452
37453         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37454         AC_CACHE_VAL.
37455
37456 2009-05-20  Bruno Haible  <bruno@clisp.org>
37457
37458         Make zeroptr.h work on mingw.
37459         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37460         mprotect.
37461         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37462         * modules/memchr2-tests (configure.ac): Likewise.
37463         * modules/memcmp-tests (configure.ac): Likewise.
37464         * modules/memmem-tests (configure.ac): Likewise.
37465         * modules/memrchr-tests (configure.ac): Likewise.
37466         Reported by Simon Josefsson.
37467
37468 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37469
37470         * tests/test-glob.c: Include string.h for strcmp prototype.
37471
37472 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37473
37474         * modules/getdelim (Depends-on): Add explicit stdint, although it
37475         was implicitly already pulled in via realloc-posix.
37476         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37477
37478 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37479
37480         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37481         G. Christensen" <tgc@jupiterrise.com>.
37482         * m4/sys_socket_h.m4: Check for sa_family_t.
37483         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37484         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37485         * tests/test-sys_socket.c: Check that sa_family_t works.
37486
37487 2009-05-18  Eric Blake  <ebb9@byu.net>
37488
37489         maint.mk: allow gnulib_dir in VPATH build
37490         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37491
37492 2009-05-15  Jim Meyering  <meyering@redhat.com>
37493
37494         maint.mk: Give gnulib_dir a default definition.
37495         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37496         Thus, most packages no longer need to specify this variable in cfg.mk
37497
37498 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37499
37500         rename.m4: fix typos that would make non-mingw cross-configure fail
37501         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37502
37503 2009-05-13  Eric Blake  <ebb9@byu.net>
37504
37505         mmap-anon: avoid out-of-order autoconf expansion
37506         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37507         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37508         * modules/memchr-tests (Depends-on): Add extensions.
37509         * modules/memchr2-tests (Depends-on): Add extensions.
37510         * modules/memcmp-tests (Depends-on): Add extensions.
37511         * modules/memmem-tests (Depends-on): Add extensions.
37512         * modules/memrchr-tests (Depends-on): Add extensions.
37513
37514 2009-05-13  Bruno Haible  <bruno@clisp.org>
37515
37516         Make some tests ISO C 99 compliant.
37517         * tests/zerosize-ptr.h: New file.
37518         * tests/test-memchr.c: Include zerosize-ptr.h.
37519         (main): Use a zero-size object pointer instead of NULL.
37520         * tests/test-memchr2.c: Include zerosize-ptr.h.
37521         (main): Use a zero-size object pointer instead of NULL.
37522         * tests/test-memcmp.c: Include zerosize-ptr.h.
37523         (main): Use a zero-size object pointer instead of NULL.
37524         * tests/test-memmem.c: Include zerosize-ptr.h.
37525         (main): Use a zero-size object pointer instead of NULL.
37526         * tests/test-memrchr.c: Include zerosize-ptr.h.
37527         (main): Use a zero-size object pointer instead of NULL.
37528         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37529         m4/mmap-anon.m4.
37530         (Depends-on): Add getpagesize.
37531         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37532         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37533         m4/mmap-anon.m4.
37534         (Depends-on): Add getpagesize.
37535         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37536         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37537         m4/mmap-anon.m4.
37538         (Depends-on): Add getpagesize.
37539         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37540         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37541         m4/mmap-anon.m4.
37542         (Depends-on): Add getpagesize.
37543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37544         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37545         m4/mmap-anon.m4.
37546         (Depends-on): Add getpagesize.
37547         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37548
37549 2009-05-12  Bruno Haible  <bruno@clisp.org>
37550
37551         Tests for module 'alignof'.
37552         * modules/alignof-tests: New file.
37553         * tests/test-alignof.c: New file.
37554
37555 2009-05-12  Bruno Haible  <bruno@clisp.org>
37556
37557         Fix alignof macro.
37558         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37559         vendor compilers that are always correct.
37560
37561 2009-05-12  Bruno Haible  <bruno@clisp.org>
37562
37563         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37564         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37565         not whether its fully works.
37566
37567 2009-05-12  Bruno Haible  <bruno@clisp.org>
37568
37569         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37570
37571 2009-05-12  Jim Meyering  <meyering@redhat.com>
37572
37573         * top/maint.mk: Adjust backslash alignment.
37574
37575 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37576
37577         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37578
37579 2009-05-11  Eric Blake  <ebb9@byu.net>
37580
37581         argp: avoid undefined behavior
37582         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37583         macros.
37584
37585 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37586
37587         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37588         user.name to prevent git commit from complaining.
37589
37590 2009-05-10  Bruno Haible  <bruno@clisp.org>
37591
37592         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37593         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37594         it rewrites every file name only once.
37595         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37596
37597 2009-05-08  Bruno Haible  <bruno@clisp.org>
37598
37599         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37600         instead of 'max'.
37601
37602 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37603
37604         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37605         sockaddr_storage test.
37606
37607 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37608
37609         * modules/sys_socket (Makefile.am): Substitute
37610         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37611         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37612         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37613         * tests/test-sys_socket.c: Check sockaddr_storage.
37614
37615 2009-05-08  Bruno Haible  <bruno@clisp.org>
37616
37617         New module 'alignof'.
37618         * lib/alignof.h: New file.
37619         * modules/alignof: New file.
37620
37621 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37622             Bruno Haible  <bruno@clisp.org>
37623
37624         Fix test-file-has-acl on FreeBSD.
37625         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37626         mask is implicitly added.
37627         * tests/test-file-has-acl.c: Include <signal.h>.
37628         (main): Terminate the test after 5 seconds.
37629         * modules/acl-tests (configure.ac): Check for alarm function.
37630
37631 2009-05-04  Bruno Haible  <bruno@clisp.org>
37632
37633         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37634         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37635         * modules/errno (configure.ac): Drop AC_REQUIRE.
37636         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37637         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37638
37639 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37640
37641         * modules/glob-tests: New module.
37642         * tests/test-glob.c: Add.
37643
37644 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37645
37646         * modules/fnmatch-tests: New module.
37647         * tests/test-fnmatch.c: Add.
37648
37649 2009-05-04  Eric Blake  <ebb9@byu.net>
37650
37651         maint: make the new no-submodule-changes rule VPATH-safe
37652         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37653
37654 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37655             Bruno Haible  <bruno@clisp.org>
37656
37657         acl: Fix infinite loop on FreeBSD.
37658         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37659         of return value from acl_get_entry.
37660         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37661         Likewise.
37662
37663 2009-05-03  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/acl-internal.h (acl_entries): Clarify return value.
37666         * lib/acl_entries.c (acl_entries): Likewise.
37667
37668 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37669
37670         Bug fix in acl module.
37671         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37672
37673 2009-05-03  Bruno Haible  <bruno@clisp.org>
37674
37675         Create gperf-generated file in the source dir, not in the build dir.
37676         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37677         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37678         * modules/unicase/locale-language (unicase/locale-languages.h):
37679         Likewise.
37680         * modules/unicase/special-casing (unicase/special-casing-table.h):
37681         Likewise.
37682         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37683         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37684         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37685         Reported by Ralf Wildenhues.
37686
37687 2009-05-03  Bruno Haible  <bruno@clisp.org>
37688
37689         * modules/fnmatch (Description, configure.ac): Taken from
37690         fnmatch-posix.
37691         * modules/fnmatch-posix: Turn into a symbolic reference to the
37692         'fnmatch' module, and deprecate.
37693         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37694
37695 2009-05-03  Bruno Haible  <bruno@clisp.org>
37696
37697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37698         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37699         Reported by Ralf Wildenhues.
37700
37701 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37702
37703         * m4/fnmatch.m4: Fix fnmatch re-define.
37704
37705 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37706
37707         priv-set: new module and tests; adapt write-any-file
37708         * lib/priv-set.c: New file.
37709         * lib/priv-set.h: New file.
37710         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37711         * lib/write-any-file.c: Simplify by using priv-set module.
37712         * m4/priv-set.m4: New file.
37713         * modules/priv-set: New file.
37714         * modules/unlinkdir: Add dependency on priv-set module.
37715         * modules/write-any-file: Likewise.
37716
37717         Tests for module 'priv-set'.
37718         * modules/priv-set-tests: New file.
37719         * tests/test-priv-set.c: New file.
37720
37721 2009-05-03  Jim Meyering  <meyering@redhat.com>
37722             Bruno Haible  <bruno@clisp.org>
37723
37724         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37725         use the converted UTF-8 variant of the name instead.
37726
37727 2009-05-03  Jim Meyering  <meyering@redhat.com>
37728
37729         tests: tighten some getdate tests
37730         * tests/test-getdate.c (main): Tighten tests: require equality,
37731         not just greater than.  Set TZ envvar to UTC0.
37732
37733 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37734
37735         getdate: correctly interpret "next monday" when run on a Monday
37736         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37737         that e.g., "next tues" (when run on a tuesday) results in a date
37738         that is one week in the future, and not today's date.
37739         I.e., add a week when the wday is the same as the current one.
37740         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37741         and earlier by Martin Bernreuther and Jan Minář.
37742         * tests/test-getdate.c (main): Check that "next DAY" is always in
37743         the future and that "last DAY" is always in the past.
37744
37745 2009-05-02  Jim Meyering  <meyering@redhat.com>
37746
37747         build: ensure that a release build fails when a submodule is unclean
37748         * top/maint.mk (no-submodule-changes): New rule.
37749         (alpha beta major): Depend on it.
37750
37751 2009-05-02  Bruno Haible  <bruno@clisp.org>
37752
37753         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37754         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37755         shell variable gl_fnmatch_required to detect which variant is
37756         requested.
37757         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37758         gl_FUNC_FNMATCH_POSIX.
37759         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37760         exclude fnmatch-posix.
37761
37762 2009-05-02  Bruno Haible  <bruno@clisp.org>
37763
37764         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37765         * modules/mbsrtowcs (License): Change to LGPLv2+.
37766         * modules/strnlen1 (License): Likewise.
37767         Reported by Simon Josefsson.
37768
37769 2009-05-02  Bruno Haible  <bruno@clisp.org>
37770
37771         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37772         "cross".
37773         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37774         gnulib-tool was called with option --source-base=lib.
37775
37776 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37777
37778         Use automake *-local hooks without commands, for extensibility.
37779         * modules/localcharset (Makefile.am): Rename install-exec-local
37780         rule to install-exec-localcharset, and make it a prerequisite of
37781         install-exec-local.  Likewise, rename the uninstall-local rule to
37782         uninstall-localcharset, and make it a prerequisite of the former.
37783
37784 2009-05-01  Bruno Haible  <bruno@clisp.org>
37785
37786         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37787         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37788         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37790         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37791         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37792         m4/locale-zh.m4, m4/codeset.m4.
37793
37794         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37795         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37796         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37797         m4/locale-zh.m4.
37798
37799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37800         REPLACE_WCRTOMB if mbstate_t must be replaced.
37801         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37802         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37803
37804 2009-05-01  Bruno Haible  <bruno@clisp.org>
37805
37806         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37807         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37808         dngettext, dcngettext, textdomain, bindtextdomain,
37809         bind_textdomain_codeset): Undefine before redefining.
37810
37811 2009-04-30  Bruno Haible  <bruno@clisp.org>
37812
37813         Fix bug introduced on 2009-04-25.
37814         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37815         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37816         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37817         is defined.
37818         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37819         is defined.
37820         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37821         is defined.
37822         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37823
37824 2009-04-28  Bruno Haible  <bruno@clisp.org>
37825
37826         Comment tweaks.
37827         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37828         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37829         * lib/unicase.h (u*_casexfrm): Likewise.
37830         Reported by Paolo Bonzini.
37831
37832 2009-04-28  Bruno Haible  <bruno@clisp.org>
37833
37834         Fix a compilation error.
37835         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37836         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37837         Reported by Jim Meyering.
37838
37839 2009-04-27  Bruno Haible  <bruno@clisp.org>
37840
37841         New module 'libunistring'.
37842         * modules/libunistring: New file.
37843         * m4/libunistring.m4: New file.
37844         * MODULES.html.sh (Unicode string functions): Add it.
37845
37846 2009-04-27  Eric Blake  <ebb9@byu.net>
37847
37848         maint.mk: allow package-specific header to provide <config.h>
37849         * top/maint.mk (sc_require_config_h): New variable.
37850         (sc_require_config_h, sc_require_config_h_first): Use it.
37851
37852 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37853
37854         * top/maint.mk (sc_avoid_if_before_free): Except
37855         useless-if-before-free script.
37856
37857 2009-04-27  Eric Blake  <ebb9@byu.net>
37858
37859         maintainer-makefile: depend on all required helper scripts
37860         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37861         useless-if-before-free.
37862         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37863         version, rather than assuming gnulib checkout is available.
37864         Reported by Simen Josefsson.
37865
37866 2009-04-26  Bruno Haible  <bruno@clisp.org>
37867
37868         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37869         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37870         "../" or "..".
37871
37872 2009-04-26  Bruno Haible  <bruno@clisp.org>
37873
37874         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37875         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37876         AC_LIB_HAVE_LINKFLAGS.
37877
37878 2009-04-26  Bruno Haible  <bruno@clisp.org>
37879
37880         Simplify calling convention of u*_conv_from_encoding.
37881         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37882         u32_conv_from_encoding): Expect a resultbuf argument and return the
37883         result directly as a pointer.
37884         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37885         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37886         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37887         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37888         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37889         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37890         Update.
37891         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37892         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37893         * lib/vasnprintf.c (VASNPRINTF): Update.
37894         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37895         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37896         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37897         * NEWS: Mention the change.
37898
37899 2009-04-26  Bruno Haible  <bruno@clisp.org>
37900
37901         Simplify calling convention of u*_conv_to_encoding.
37902         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37903         u32_conv_to_encoding): Expect a resultbuf argument and return the
37904         result directly as a pointer.
37905         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37906         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37907         freeing scaled_offsets if mem_iconveha failed.
37908         * lib/unicase/u-casexfrm.h (FUNC): Update.
37909         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37910         * lib/vasnprintf.c (VASNPRINTF): Update.
37911         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37912         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37913         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37914         * NEWS: Mention the change.
37915
37916 2009-04-26  Bruno Haible  <bruno@clisp.org>
37917
37918         Avoid test failures on AIX and OSF/1.
37919         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37920         malloc(0).
37921         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37922         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37923         Likewise.
37924         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37925         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37926         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37927         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37928         * doc/posix-functions/malloc.texi: Document the portability problem
37929         related to malloc(0).
37930
37931 2009-04-26  Bruno Haible  <bruno@clisp.org>
37932
37933         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37934         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37935         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37936
37937 2009-04-25  Bruno Haible  <bruno@clisp.org>
37938
37939         Avoid link error when creating a namespace clean library.
37940         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37941         as macro with arguments if already defined as an alias.
37942         * lib/signbitf.c (gl_signbitf): Don't undefine.
37943         * lib/signbitd.c (gl_signbitd): Don't undefine.
37944         * lib/signbitl.c (gl_signbitl): Don't undefine.
37945
37946 2009-04-25  Jim Meyering  <meyering@redhat.com>
37947
37948         vc-list-files: fix another quoting bug
37949         * build-aux/vc-list-files: Avoid sed backslash expansion
37950         of pathological directory names.
37951
37952 2009-04-25  Eric Blake  <ebb9@byu.net>
37953
37954         vc-list-files: fix shell quoting error
37955         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37956         timestamp.
37957
37958 2009-04-25  Jim Meyering  <meyering@redhat.com>
37959
37960         vc-list-files: restore lost functionality with subdir argument
37961         * build-aux/vc-list-files: When given a non-"." sub-directory
37962         argument, substitute the $dir/ prefix back onto each resulting name.
37963         Otherwise, coreutils' root_tests check would fail.
37964
37965 2009-04-24  Eric Blake  <ebb9@byu.net>
37966
37967         vc-list-files: ignore git symlinks
37968         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37969         than ls-files, to ignore git symlinks.
37970
37971         maint.mk: import improvements from m4
37972         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37973         (move_if_change): Delete unused macro.
37974         (news-date-check, vc-diff-check): Support VPATH builds.
37975         (announcement): Likewise.  Split --bootstrap-tools list...
37976         (boostrap-tools): ...into separate list, which can be overridden
37977         in cfg.mk.
37978         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37979         requiring dependency on useless-if-before-free module.
37980         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37981         Support VPATH builds.
37982
37983 2009-04-24  Jim Meyering  <meyering@redhat.com>
37984
37985         maint.mk: remove coreutils-specific rules and variables
37986         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37987         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37988         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37989
37990         maint.mk: remove obsolete rule
37991         * top/maint.mk (rel-check): Remove rule.
37992         (WGET, WGETFLAGS): Remove now-unused variables.
37993
37994 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37995
37996         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37997         consistency.
37998
37999         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38000         '$(PATH_SEPARATOR)' instead of ':'.
38001
38002 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38003
38004         * lib/getopt1.c (main): Use 'const' for static array.
38005
38006 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38007
38008         * top/maint.mk: Sync with coreutils.
38009         * NEWS: Explain incompatibilities.
38010
38011 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38012             Bruno Haible  <bruno@clisp.org>
38013
38014         Fix cross-compilation results.
38015         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38016         statement, as third argument of AC_TRY_RUN.
38017         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38018         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38019         Likewise.
38020         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38021         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38022         Likewise.
38023         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38024         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38025         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38026
38027 2009-04-20  Bruno Haible  <bruno@clisp.org>
38028
38029         Avoid test failure on mingw.
38030         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38031
38032 2009-04-20  Bruno Haible  <bruno@clisp.org>
38033
38034         Avoid compilation error on mingw.
38035         * modules/localename-tests (Depends-on): Add locale.
38036
38037 2009-04-19  Bruno Haible  <bruno@clisp.org>
38038
38039         Support for building a shared library on Windows platforms.
38040         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38041         (main): Test the presence of UNINORM_NFC here.
38042         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38043         (main): Test the presence of UNINORM_NFD here.
38044         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38045         (main): Test the presence of UNINORM_NFKC here.
38046         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38047         (main): Test the presence of UNINORM_NFKD here.
38048
38049 2009-04-19  Bruno Haible  <bruno@clisp.org>
38050
38051         Avoid a compiler warning.
38052         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38053         Change type of variable 'sequence'.
38054
38055 2009-04-19  Bruno Haible  <bruno@clisp.org>
38056
38057         * modules/configmake (Makefile.am): When the contents of configmake.h
38058         does not change, arrange to preserve its modification time.
38059
38060 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38061
38062         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38063         gettext domain.
38064
38065 2009-04-16  Jim Meyering  <meyering@redhat.com>
38066
38067         useless-if-before-free: improve conversion code
38068         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38069         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38070
38071 2009-04-14  Bruno Haible  <bruno@clisp.org>
38072
38073         * modules/fcntl (Depends-on): Add extensions.
38074         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38075
38076 2009-04-12  Ben Pfaff  <blp@gnu.org>
38077
38078         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38079         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38080
38081 2009-03-20  Ben Pfaff  <blp@gnu.org>
38082
38083         Make rename replace existing destinations on Windows.
38084         * m4/rename.m4: Add test for Mingw.
38085         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38086         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38087         * doc/posix-functions/rename.texi: Document.
38088
38089 2009-04-10  Bruno Haible  <bruno@clisp.org>
38090
38091         New include file "iconveh.h".
38092         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38093         * lib/striconveh.h: Include it.
38094         (enum iconv_ilseq_handler): Remove definition.
38095         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38096         striconveh.h.
38097         * lib/striconveha.c: Include striconveh.h.
38098         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38099         * modules/striconveh (Files): Add lib/iconveh.h.
38100         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38101         lib/striconveh.h.
38102
38103 2009-04-10  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/uniconv.h: Update comment.
38106
38107 2009-04-10  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38110         always.
38111         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38112         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38113         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38114         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38115         "unistring-notinline.h", so that the function gets defined always.
38116         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38117         * lib/unistr/u8-uctomb.c: Likewise.
38118         * lib/unistr/u16-mbtouc.c: Likewise.
38119         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38120         * lib/unistr/u16-uctomb.c: Likewise.
38121         * lib/unistr/u32-mbtouc.c: Likewise.
38122         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38123         * lib/unistr/u32-uctomb.c: Likewise.
38124
38125 2009-04-10  Bruno Haible  <bruno@clisp.org>
38126
38127         Mark 'utime' obsolete.
38128         * modules/utime (Status, Notice): New sections.
38129         Suggested by Jim Meyering.
38130
38131         Fix cross-compile guess for utime test.
38132         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38133         autoconf.
38134         * doc/posix-functions/utime.texi: Give more precisions.
38135         Reported by Jan <ipif@ymail.com>.
38136
38137 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38138
38139         filevercmp: correct today's change
38140         * lib/filevercmp.c: Also handle coreutils' test inputs.
38141         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38142
38143         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38144         for reporting it.
38145         * lib/filevercmp.c: Special handle for "", "." and "..".
38146         * tests/test-filevercmp.c: Enlarge the set suite.
38147
38148 2009-04-07  Jim Meyering  <meyering@redhat.com>
38149
38150         useless-if-before-free: show how to remove braced useless free, too
38151         * build-aux/useless-if-before-free: still only in a comment, though.
38152
38153 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38154
38155         maint.mk: import changes to syntax-check macros from coreutils
38156         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38157         Use them in the relevant macros.
38158
38159 2009-04-06  Bruno Haible  <bruno@clisp.org>
38160
38161         Fix unportable use of bit-fields.
38162         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38163         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38164         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38165
38166 2009-04-06  Bruno Haible  <bruno@clisp.org>
38167
38168         Avoid test failures on AIX and OSF/1.
38169         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38170         that malloc(0) = NULL.
38171         * tests/unicase/test-u8-tolower.c (check): Likewise.
38172         * tests/unicase/test-u8-totitle.c (check): Likewise.
38173         * tests/unicase/test-u8-toupper.c (check): Likewise.
38174         * tests/unicase/test-u16-casefold.c (check): Likewise.
38175         * tests/unicase/test-u16-tolower.c (check): Likewise.
38176         * tests/unicase/test-u16-totitle.c (check): Likewise.
38177         * tests/unicase/test-u16-toupper.c (check): Likewise.
38178         * tests/unicase/test-u32-casefold.c (check): Likewise.
38179         * tests/unicase/test-u32-tolower.c (check): Likewise.
38180         * tests/unicase/test-u32-totitle.c (check): Likewise.
38181         * tests/unicase/test-u32-toupper.c (check): Likewise.
38182         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38183         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38184         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38185         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38186         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38187         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38188         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38189         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38190         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38191         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38192         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38193         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38194
38195 2009-04-05  Bruno Haible  <bruno@clisp.org>
38196
38197         Work around an autoconf limitation.
38198         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38199         comment line if it would be longer than 3 KB.
38200
38201 2009-04-05  Bruno Haible  <bruno@clisp.org>
38202
38203         Avoid test failure with libiconv-1.13.
38204         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38205         of the expected test results.
38206
38207 2009-04-05  Bruno Haible  <bruno@clisp.org>
38208
38209         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38210         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38211         that it should be installed.
38212
38213 2009-04-05  Bruno Haible  <bruno@clisp.org>
38214
38215         * gnulib-tool: New option --copy-file.
38216         (func_usage): Document it.
38217         (func_dest_tmpfilename): Moved out of func_import.
38218         (func_add_file, func_update_file): New functions, extracted from
38219         func_import.
38220         (func_import): Update.
38221
38222 2009-04-05  Karl Berry  <karl@gnu.org>
38223
38224         * README: prominently mention gnulib-tool.
38225         Rearrange sections so getting the code is near the top.
38226
38227 2009-04-05  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/unicase.h: Mention u*_cmp2.
38230         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38231         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38232         * lib/unicase/ulc-casecmp.c: Likewise.
38233         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38234         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38235         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38236         unistr/u8-cmp.
38237         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38238         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38239         unistr/u16-cmp.
38240         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38241         unistr/u32-cmp.
38242
38243         * lib/uninorm.h: Mention u*_cmp2.
38244         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38245         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38246         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38247         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38248         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38249         unistr/u8-cmp.
38250         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38251         unistr/u16-cmp.
38252         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38253         unistr/u32-cmp.
38254
38255         New module 'unistr/u32-cmp2'.
38256         * lib/unistr/u32-cmp2.c: New file.
38257         * modules/unistr/u32-cmp2: New file.
38258
38259         New module 'unistr/u16-cmp2'.
38260         * lib/unistr/u16-cmp2.c: New file.
38261         * modules/unistr/u16-cmp2: New file.
38262
38263         New module 'unistr/u8-cmp2'.
38264         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38265         * lib/unistr/u8-cmp2.c: New file.
38266         * lib/unistr/u-cmp2.h: New file.
38267         * modules/unistr/u8-cmp2: New file.
38268
38269 2009-04-05  Bruno Haible  <bruno@clisp.org>
38270
38271         * lib/unictype.h (uc_property_is_valid): New macro.
38272         * tests/unictype/test-pr_byname.c (main): Use it.
38273
38274         * lib/unistr.h: Doc fixes.
38275         * lib/uniconv.h: Doc fixes.
38276         * lib/unictype.h: Doc fixes.
38277
38278 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38279
38280         Port coreutils 7.2 to Solaris 8.
38281
38282         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38283         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38284         for Solaris 8.  This is a bit of a hack, as it means it's the
38285         caller's responsibility to add -lnsl if needed, but most likely it
38286         won't be needed since only getaddrinfo uses this and getaddrinfo
38287         isn't needed on Solaris 8.
38288
38289         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38290         problem to Solaris 8 encountered with coreutils 7.2, which
38291         resulted in a message "fnmatch.c:292: warning: passing argument 4
38292         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38293         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38294
38295 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38296
38297         * m4/ld-version-script.m4: Add FIXME comment.
38298
38299 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38300
38301         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38302         SOVERSION variable.
38303
38304 2009-04-02  Bruno Haible  <bruno@clisp.org>
38305
38306         * Makefile (info, html, dvi, pdf): Combine the rules.
38307         Suggested by Jim Meyering.
38308
38309 2009-04-01  Bruno Haible  <bruno@clisp.org>
38310
38311         * Makefile (info, html, dvi, pdf): New targets.
38312         Reported by Reuben Thomas <rrt@sc3d.org>.
38313
38314 2009-04-01  Bruno Haible  <bruno@clisp.org>
38315
38316         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38317         can be put into PATH.
38318         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38319
38320 2009-04-01  Bruno Haible  <bruno@clisp.org>
38321
38322         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38323
38324 2009-04-01  Bruno Haible  <bruno@clisp.org>
38325
38326         Rename module 'visibility'.
38327         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38328         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38329         * doc/gnulib.texi: Update.
38330         * MODULES.html.sh (Misc): Update.
38331         * NEWS: Mention the change.
38332
38333 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38334
38335         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38336         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38337         Eric Blake <ebb9@byu.net> for review.
38338         * MODULES.html.sh: Add lib-msvc-compat.
38339         * doc/gnulib.texi: Link to new section.
38340         * m4/ld-output-def.m4: New file.
38341         * doc/ld-output-def.texi: New file.
38342
38343 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38344
38345         Rename ld-version-script to lib-symbol-versions.  Suggested by
38346         Bruno Haible <bruno@clisp.org>.
38347         * modules/ld-version-script: Renamed to lib-symbol-versions.
38348         * doc/ld-version-script.texi: Fix module name.
38349         * MODULES.html.sh: Add lib-symbol-versions.
38350
38351 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38352
38353         * modules/u64-tests: New file.
38354         * tests/test-u64.c: New file.
38355
38356 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38357
38358         * MODULES.html.sh: Mention u64.
38359         * modules/u64: New module.
38360         * modules/crypto/sha512: Depend on u64 module instead of providing
38361         u64.h.
38362
38363 2009-03-27  Eric Blake  <ebb9@byu.net>
38364
38365         test-strerror: make debugging EAI_SYSTEM easier
38366         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38367         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38368         failure was EAI_SYSTEM.
38369
38370 2009-03-25  Bruno Haible  <bruno@clisp.org>
38371
38372         Fix a problem with --enable-relocatable on Solaris 7.
38373         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38374         since 2008-02-24.
38375
38376 2009-03-25  Eric Blake  <ebb9@byu.net>
38377
38378         test-sockets: avoid gcc warning
38379         * tests/test-sockets.c (main): Silence compiler warning.
38380
38381 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38382
38383         New modules nproc, pthread, contributed by Glen Lenker.
38384
38385         * MODULES.html.sh: Add pthread, nproc.
38386         * lib/nproc.c: New file.
38387         * lib/nproc.h: New file.
38388         * lib/pthread.in.h: New file.
38389         * m4/pthread.m4: New file.
38390         * modules/nproc: New file.
38391         * modules/pthread: New file.
38392
38393 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38394
38395         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38396         New variable.
38397
38398 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38399
38400         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38401         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38402         * tests/test-filevercmp.c: Add tests for backup suffixes.
38403
38404 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38405
38406         * modules/stdlib (Depends-on): Add stdint, needed when defining
38407         struct random_data on, for example, HP-UX 10.20.  Reported by
38408         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38409
38410 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38411
38412         * lib/readline.c (readline): Call fflush on stdout after printing
38413         prompt.
38414
38415 2009-03-20  Bruno Haible  <bruno@clisp.org>
38416
38417         Remove dependency from 'close' module to -lws2_32 on native Windows.
38418         * lib/close-hook.h: New file.
38419         * lib/close-hook.c: New file.
38420         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38421         w32sock.h.
38422         (_gl_close_fd_maybe_socket): Remove function.
38423         (rpl_close): Invoke execute_all_close_hooks instead of
38424         _gl_close_fd_maybe_socket.
38425         * lib/sockets.c: Include close-hook.h, w32sock.h.
38426         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38427         (close_sockets_hook): New variable.
38428         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38429         (gl_sockets_cleanup): Unregister it.
38430         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38431         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38432         * modules/close-hook: New file.
38433         * modules/close (Files): Remove lib/w32sock.h.
38434         (Depends-on): Add close-hook.
38435         (Link): Remove section.
38436         * modules/sockets (Files): Add lib/w32sock.h.
38437         (Depends-on): Add close-hook.
38438         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38439         invocation.
38440         * NEWS: Mention that LIB_CLOSE is gone.
38441
38442 2009-03-23  Eric Blake  <ebb9@byu.net>
38443
38444         signal-tests: test previous patch
38445         * tests/test-signal.c: New file.
38446         * modules/signal-tests: Likewise.
38447
38448         signal.h: always support 'volatile sig_atomic_t'
38449         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38450         (gl_SIGNAL_H_DEFAULTS): Add a default.
38451         * modules/signal (Makefile.am): Substitute if needed.
38452         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38453         users can blindly add volatile.
38454         * doc/posix-headers/signal.texi (signal.h): Document it.
38455         Reported by Matthew Woehlke.
38456
38457 2009-03-23  Jim Meyering  <meyering@redhat.com>
38458
38459         pathmax: PATH_MAX: use pathconf only when available
38460         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38461         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38462         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38463         This avoids a link failure in a PSP cross-compilation environment
38464         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38465
38466         * lib/vasnprintf.c (divide): Fix typo in comment.
38467
38468 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38469
38470         * gnulib-tool (func_filter_filelist): Fix comment.
38471
38472 2009-03-20  Bruno Haible  <bruno@clisp.org>
38473
38474         Make sockets.h self-contained.
38475         * lib/sockets.c: Include sockets.h first.
38476         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38477
38478 2009-03-19  Eric Blake  <ebb9@byu.net>
38479
38480         doc: mention more functions added in cygwin 1.7.0
38481         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38482         addition.
38483         * doc/posix-functions/log2f.texi: Likewise.
38484
38485 2009-03-19  Jim Meyering  <meyering@redhat.com>
38486
38487         fsusage: avoid syntax error due to statement-before-declaration
38488         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38489         after all declarations.  Reported by Matthew Woehlke in
38490         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38491
38492 2009-03-18  Eric Blake  <ebb9@byu.net>
38493
38494         build-aux/compile: sync from automake
38495         * build-aux/compile: New file, from automake.
38496         * config/srclist.txt: Mention build-aux/compile.
38497
38498 2009-03-17  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/git-merge-changelog.c: Fix typo in comment.
38501         Reported by Reuben Thomas <rrt@sc3d.org>.
38502
38503 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38504
38505         * m4/regex.m4: update and improve help for
38506         --without-included-regex.
38507
38508 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38509
38510         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38511         failure on missing include files.
38512
38513 2009-03-17  Eric Blake  <ebb9@byu.net>
38514
38515         doc: mention more functions added in cygwin 1.7.0
38516         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38517         addition.
38518         * doc/posix-functions/fwscanf.texi: Likewise.
38519         * doc/posix-functions/swprintf.texi: Likewise.
38520         * doc/posix-functions/swscanf.texi: Likewise.
38521         * doc/posix-functions/vfwprintf.texi: Likewise.
38522         * doc/posix-functions/vfwscanf.texi: Likewise.
38523         * doc/posix-functions/vswprintf.texi: Likewise.
38524         * doc/posix-functions/vswscanf.texi: Likewise.
38525         * doc/posix-functions/vwprintf.texi: Likewise.
38526         * doc/posix-functions/vwscanf.texi: Likewise.
38527         * doc/posix-functions/wcscasecmp.texi: Likewise.
38528         * doc/posix-functions/wcsdup.texi: Likewise.
38529         * doc/posix-functions/wcsftime.texi: Likewise.
38530         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38531         * doc/posix-functions/wprintf.texi: Likewise.
38532         * doc/posix-functions/wscanf.texi: Likewise.
38533         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38534
38535 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38536
38537         maint.mk: really add $(AM_MAKEFLAGS)
38538         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38539         was inadvertently omitted in the last commit.
38540         Spotted by Bruno Haible.
38541
38542         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38543         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38544         $(AM_MAKEFLAGS)' rather than plain `make'.
38545
38546         gnulib-tool: execute $MAKE not make
38547         * gnulib-tool: Default $MAKE to 'make'.
38548         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38549         than make.  Initialize $MAKE in the do-autobuild script.
38550
38551         gnulib-tool: use $MAKE not make in generated files
38552         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38553         make, in generated files.  Initialize $MAKE in the do-autobuild
38554         script.
38555
38556         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38557
38558         GNUmakefile: disable parallelism only for multiple, recursive targets
38559         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38560         additions in the Makefile.
38561         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38562         by Automake.
38563         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38564         are listed on the command line and at least one of them is
38565         listed in $(ALL_RECURSIVE_TARGETS).
38566
38567 2009-03-14  Bruno Haible  <bruno@clisp.org>
38568
38569         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38570         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38571         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38572         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38573         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38574         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38575         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38576         unistr/u8-uctomb.
38577         * modules/unistr/u8-strchr (Depends-on): Likewise.
38578         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38579         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38580         unistr/u16-uctomb.
38581         * modules/unistr/u16-strchr (Depends-on): Likewise.
38582         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38583
38584 2009-03-12  Bruno Haible  <bruno@clisp.org>
38585
38586         Work around select() bug on Interix 3.5.
38587         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38588         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38589         * m4/select.m4: New file.
38590         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38591         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38592         * modules/select (Files): Add m4/select.m4.
38593         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38594         * modules/nanosleep (Depends-on): Add select.
38595         * modules/poll (Depends-on): Likewise.
38596         * doc/posix-functions/select.texi: Mention the Interix bug.
38597         Reported by Markus Duft <mduft@gentoo.org>.
38598
38599         * lib/select.c: Renamed from lib/winsock-select.c.
38600         * modules/select (Files): Add lib/select.c, remove
38601         lib/winsock-select.c.
38602         (configure.ac): Update.
38603
38604 2009-03-12  Jim Meyering  <meyering@redhat.com>
38605
38606         avoid gcc warnings about unused macro definitions
38607         * lib/readtokens.c (STREQ): Remove unused definition.
38608         * lib/xmalloc.c (SIZE_MAX): Likewise.
38609         * lib/openat-die.c (N_): Likewise.
38610         * lib/mountlist.c (SIZE_MAX): Remove definition.
38611         Instead, include <stdint.h>.
38612         * lib/readutmp.c: Likewise.
38613         * modules/readutmp (Depends-on): Add stdint.
38614         * modules/mountlist (Depends-on): Add stdint.
38615         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38616
38617 2009-03-10  Bruno Haible  <bruno@clisp.org>
38618
38619         Tests for module 'mbmemcasecoll'.
38620         * modules/mbmemcasecoll-tests: New file.
38621         * tests/test-mbmemcasecoll1.sh: New file.
38622         * tests/test-mbmemcasecoll2.sh: New file.
38623         * tests/test-mbmemcasecoll3.sh: New file.
38624         * tests/test-mbmemcasecoll.c: New file.
38625
38626         New module 'mbmemcasecoll'.
38627         * lib/mbmemcasecoll.h: New file.
38628         * lib/mbmemcasecoll.c: New file.
38629         * modules/mbmemcasecoll: New file.
38630
38631         * tests/test-mbmemcasecmp.h: New file, extracted from
38632         tests/test-mbmemcasecmp.c.
38633         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38634         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38635         (main): Update.
38636         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38637
38638 2009-03-09  Bruno Haible  <bruno@clisp.org>
38639
38640         Tests for module 'mbmemcasecmp'.
38641         * modules/mbmemcasecmp-tests: New file.
38642         * tests/test-mbmemcasecmp1.sh: New file.
38643         * tests/test-mbmemcasecmp2.sh: New file.
38644         * tests/test-mbmemcasecmp3.sh: New file.
38645         * tests/test-mbmemcasecmp.c: New file.
38646
38647         New module 'mbmemcasecmp'.
38648         * lib/mbmemcasecmp.h: New file.
38649         * lib/mbmemcasecmp.c: New file.
38650         * modules/mbmemcasecmp: New file.
38651
38652 2009-03-09  Bruno Haible  <bruno@clisp.org>
38653
38654         Tests for module 'unicase/ulc-casecoll'.
38655         * modules/unicase/ulc-casecoll-tests: New file.
38656         * tests/unicase/test-ulc-casecoll1.sh: New file.
38657         * tests/unicase/test-ulc-casecoll2.sh: New file.
38658         * tests/unicase/test-ulc-casecoll.c: New file.
38659
38660         New module 'unicase/ulc-casecoll'.
38661         * lib/unicase.h (ulc_casecoll): New declaration.
38662         * lib/unicase/ulc-casecoll.c: New file.
38663         * modules/unicase/ulc-casecoll: New file.
38664
38665         New module 'unicase/ulc-casexfrm'.
38666         * lib/unicase.h (ulc_casexfrm): New declaration.
38667         * lib/unicase/ulc-casexfrm.c: New file.
38668         * modules/unicase/ulc-casexfrm: New file.
38669
38670 2009-03-09  Bruno Haible  <bruno@clisp.org>
38671
38672         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38673         invocations.
38674
38675         * m4/mbscasecmp.m4: Remove file.
38676         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38677         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38678
38679         * m4/mbscasestr.m4: Remove file.
38680         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38681         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38682
38683         * m4/mbschr.m4: Remove file.
38684         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38685         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38686
38687         * m4/mbscspn.m4: Remove file.
38688         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38689         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38690
38691         * m4/mbslen.m4: Remove file.
38692         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38693         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38694
38695         * m4/mbsncasecmp.m4: Remove file.
38696         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38697         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38698
38699         * m4/mbsnlen.m4: Remove file.
38700         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38701         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38702
38703         * m4/mbspbrk.m4: Remove file.
38704         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38705         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38706
38707         * m4/mbspcasecmp.m4: Remove file.
38708         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38709         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38710
38711         * m4/mbsrchr.m4: Remove file.
38712         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38713         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38714
38715         * m4/mbssep.m4: Remove file.
38716         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38717         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38718
38719         * m4/mbsspn.m4: Remove file.
38720         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38721         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38722
38723         * m4/mbsstr.m4: Remove file.
38724         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38725         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38726
38727         * m4/mbstok_r.m4: Remove file.
38728         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38729         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38730
38731         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38732
38733         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38734         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38735
38736         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38737
38738 2009-03-08  Bruno Haible  <bruno@clisp.org>
38739
38740         Tests for module 'unicase/ulc-casecmp'.
38741         * modules/unicase/ulc-casecmp-tests: New file.
38742         * tests/unicase/test-ulc-casecmp1.sh: New file.
38743         * tests/unicase/test-ulc-casecmp2.sh: New file.
38744         * tests/unicase/test-ulc-casecmp.c: New file.
38745
38746         New module 'unicase/ulc-casecmp'.
38747         * lib/unicase.h (ulc_casecmp): New declaration.
38748         * lib/unicase/ulc-casecmp.c: New file.
38749         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38750         'const SRC_UNIT *'.
38751         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38752         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38753         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38754         * modules/unicase/ulc-casecmp: New file.
38755
38756         Tests for module 'unicase/u32-is-cased'.
38757         * modules/unicase/u32-is-cased-tests: New file.
38758         * tests/unicase/test-u32-is-cased.c: New file.
38759
38760         Tests for module 'unicase/u16-is-cased'.
38761         * modules/unicase/u16-is-cased-tests: New file.
38762         * tests/unicase/test-u16-is-cased.c: New file.
38763
38764         Tests for module 'unicase/u8-is-cased'.
38765         * modules/unicase/u8-is-cased-tests: New file.
38766         * tests/unicase/test-u8-is-cased.c: New file.
38767         * tests/unicase/test-is-cased.h: New file.
38768
38769         New module 'unicase/u32-is-cased'.
38770         * lib/unicase/u32-is-cased.c: New file.
38771         * modules/unicase/u32-is-cased: New file.
38772
38773         New module 'unicase/u16-is-cased'.
38774         * lib/unicase/u16-is-cased.c: New file.
38775         * modules/unicase/u16-is-cased: New file.
38776
38777         New module 'unicase/u8-is-cased'.
38778         * lib/unicase/u8-is-cased.c: New file.
38779         * lib/unicase/u-is-cased.h: New file.
38780         * modules/unicase/u8-is-cased: New file.
38781
38782         Tests for module 'unicase/u32-is-casefolded'.
38783         * modules/unicase/u32-is-casefolded-tests: New file.
38784         * tests/unicase/test-u32-is-casefolded.c: New file.
38785
38786         Tests for module 'unicase/u16-is-casefolded'.
38787         * modules/unicase/u16-is-casefolded-tests: New file.
38788         * tests/unicase/test-u16-is-casefolded.c: New file.
38789
38790         Tests for module 'unicase/u8-is-casefolded'.
38791         * modules/unicase/u8-is-casefolded-tests: New file.
38792         * tests/unicase/test-u8-is-casefolded.c: New file.
38793         * tests/unicase/test-is-casefolded.h: New file.
38794
38795         New module 'unicase/u32-is-casefolded'.
38796         * lib/unicase/u32-is-casefolded.c: New file.
38797         * modules/unicase/u32-is-casefolded: New file.
38798
38799         New module 'unicase/u16-is-casefolded'.
38800         * lib/unicase/u16-is-casefolded.c: New file.
38801         * modules/unicase/u16-is-casefolded: New file.
38802
38803         New module 'unicase/u8-is-casefolded'.
38804         * lib/unicase/u8-is-casefolded.c: New file.
38805         * modules/unicase/u8-is-casefolded: New file.
38806
38807         Tests for module 'unicase/u32-is-titlecase'.
38808         * modules/unicase/u32-is-titlecase-tests: New file.
38809         * tests/unicase/test-u32-is-titlecase.c: New file.
38810
38811         Tests for module 'unicase/u16-is-titlecase'.
38812         * modules/unicase/u16-is-titlecase-tests: New file.
38813         * tests/unicase/test-u16-is-titlecase.c: New file.
38814
38815         Tests for module 'unicase/u8-is-titlecase'.
38816         * modules/unicase/u8-is-titlecase-tests: New file.
38817         * tests/unicase/test-u8-is-titlecase.c: New file.
38818         * tests/unicase/test-is-titlecase.h: New file.
38819
38820         New module 'unicase/u32-is-titlecase'.
38821         * lib/unicase/u32-is-titlecase.c: New file.
38822         * modules/unicase/u32-is-titlecase: New file.
38823
38824         New module 'unicase/u16-is-titlecase'.
38825         * lib/unicase/u16-is-titlecase.c: New file.
38826         * modules/unicase/u16-is-titlecase: New file.
38827
38828         New module 'unicase/u8-is-titlecase'.
38829         * lib/unicase/u8-is-titlecase.c: New file.
38830         * modules/unicase/u8-is-titlecase: New file.
38831
38832         Tests for module 'unicase/u32-is-lowercase'.
38833         * modules/unicase/u32-is-lowercase-tests: New file.
38834         * tests/unicase/test-u32-is-lowercase.c: New file.
38835
38836         Tests for module 'unicase/u16-is-lowercase'.
38837         * modules/unicase/u16-is-lowercase-tests: New file.
38838         * tests/unicase/test-u16-is-lowercase.c: New file.
38839
38840         Tests for module 'unicase/u8-is-lowercase'.
38841         * modules/unicase/u8-is-lowercase-tests: New file.
38842         * tests/unicase/test-u8-is-lowercase.c: New file.
38843         * tests/unicase/test-is-lowercase.h: New file.
38844
38845         New module 'unicase/u32-is-lowercase'.
38846         * lib/unicase/u32-is-lowercase.c: New file.
38847         * modules/unicase/u32-is-lowercase: New file.
38848
38849         New module 'unicase/u16-is-lowercase'.
38850         * lib/unicase/u16-is-lowercase.c: New file.
38851         * modules/unicase/u16-is-lowercase: New file.
38852
38853         New module 'unicase/u8-is-lowercase'.
38854         * lib/unicase/u8-is-lowercase.c: New file.
38855         * modules/unicase/u8-is-lowercase: New file.
38856
38857         Tests for module 'unicase/u32-is-uppercase'.
38858         * modules/unicase/u32-is-uppercase-tests: New file.
38859         * tests/unicase/test-u32-is-uppercase.c: New file.
38860
38861         Tests for module 'unicase/u16-is-uppercase'.
38862         * modules/unicase/u16-is-uppercase-tests: New file.
38863         * tests/unicase/test-u16-is-uppercase.c: New file.
38864
38865         Tests for module 'unicase/u8-is-uppercase'.
38866         * modules/unicase/u8-is-uppercase-tests: New file.
38867         * tests/unicase/test-u8-is-uppercase.c: New file.
38868         * tests/unicase/test-is-uppercase.h: New file.
38869
38870         New module 'unicase/u32-is-uppercase'.
38871         * lib/unicase/u32-is-uppercase.c: New file.
38872         * modules/unicase/u32-is-uppercase: New file.
38873
38874         New module 'unicase/u16-is-uppercase'.
38875         * lib/unicase/u16-is-uppercase.c: New file.
38876         * modules/unicase/u16-is-uppercase: New file.
38877
38878         New module 'unicase/u8-is-uppercase'.
38879         * lib/unicase/u8-is-uppercase.c: New file.
38880         * modules/unicase/u8-is-uppercase: New file.
38881
38882         New module 'unicase/u32-is-invariant'.
38883         * lib/unicase/u32-is-invariant.c: New file.
38884         * modules/unicase/u32-is-invariant: New file.
38885
38886         New module 'unicase/u16-is-invariant'.
38887         * lib/unicase/u16-is-invariant.c: New file.
38888         * modules/unicase/u16-is-invariant: New file.
38889
38890         New module 'unicase/u8-is-invariant'.
38891         * lib/unicase/u8-is-invariant.c: New file.
38892         * lib/unicase/invariant.h: New file.
38893         * lib/unicase/u-is-invariant.h: New file.
38894         * modules/unicase/u8-is-invariant: New file.
38895
38896         Tests for module 'unicase/u32-casecoll'.
38897         * modules/unicase/u32-casecoll-tests: New file.
38898         * tests/unicase/test-u32-casecoll.c: New file.
38899
38900         Tests for module 'unicase/u16-casecoll'.
38901         * modules/unicase/u16-casecoll-tests: New file.
38902         * tests/unicase/test-u16-casecoll.c: New file.
38903
38904         Tests for module 'unicase/u8-casecoll'.
38905         * modules/unicase/u8-casecoll-tests: New file.
38906         * tests/unicase/test-u8-casecoll.c: New file.
38907
38908         New module 'unicase/u32-casecoll'.
38909         * lib/unicase/u32-casecoll.c: New file.
38910         * modules/unicase/u32-casecoll: New file.
38911
38912         New module 'unicase/u16-casecoll'.
38913         * lib/unicase/u16-casecoll.c: New file.
38914         * modules/unicase/u16-casecoll: New file.
38915
38916         New module 'unicase/u8-casecoll'.
38917         * lib/unicase/u8-casecoll.c: New file.
38918         * lib/unicase/u-casecoll.h: New file.
38919         * modules/unicase/u8-casecoll: New file.
38920
38921         New module 'unicase/u32-casexfrm'.
38922         * lib/unicase/u32-casexfrm.c: New file.
38923         * modules/unicase/u32-casexfrm: New file.
38924
38925         New module 'unicase/u16-casexfrm'.
38926         * lib/unicase/u16-casexfrm.c: New file.
38927         * modules/unicase/u16-casexfrm: New file.
38928
38929         New module 'unicase/u8-casexfrm'.
38930         * lib/unicase/u8-casexfrm.c: New file.
38931         * lib/unicase/u-casexfrm.h: New file.
38932         * modules/unicase/u8-casexfrm: New file.
38933
38934         Tests for module 'unicase/u32-casecmp'.
38935         * modules/unicase/u32-casecmp-tests: New file.
38936         * tests/unicase/test-u32-casecmp.c: New file.
38937
38938         Tests for module 'unicase/u16-casecmp'.
38939         * modules/unicase/u16-casecmp-tests: New file.
38940         * tests/unicase/test-u16-casecmp.c: New file.
38941
38942         Tests for module 'unicase/u8-casecmp'.
38943         * modules/unicase/u8-casecmp-tests: New file.
38944         * tests/unicase/test-u8-casecmp.c: New file.
38945         * tests/unicase/test-casecmp.h: New file.
38946
38947         New module 'unicase/u32-casecmp'.
38948         * lib/unicase/u32-casecmp.c: New file.
38949         * modules/unicase/u32-casecmp: New file.
38950
38951         New module 'unicase/u16-casecmp'.
38952         * lib/unicase/u16-casecmp.c: New file.
38953         * modules/unicase/u16-casecmp: New file.
38954
38955         New module 'unicase/u8-casecmp'.
38956         * lib/unicase/u8-casecmp.c: New file.
38957         * lib/unicase/u-casecmp.h: New file.
38958         * modules/unicase/u8-casecmp: New file.
38959
38960         Tests for module 'unicase/u32-casefold'.
38961         * modules/unicase/u32-casefold-tests: New file.
38962         * tests/unicase/test-u32-casefold.c: New file.
38963
38964         Tests for module 'unicase/u16-casefold'.
38965         * modules/unicase/u16-casefold-tests: New file.
38966         * tests/unicase/test-u16-casefold.c: New file.
38967
38968         Tests for module 'unicase/u8-casefold'.
38969         * modules/unicase/u8-casefold-tests: New file.
38970         * tests/unicase/test-u8-casefold.c: New file.
38971
38972         New module 'unicase/u32-casefold'.
38973         * lib/unicase/u32-casefold.c: New file.
38974         * modules/unicase/u32-casefold: New file.
38975
38976         New module 'unicase/u16-casefold'.
38977         * lib/unicase/u16-casefold.c: New file.
38978         * modules/unicase/u16-casefold: New file.
38979
38980         New module 'unicase/u8-casefold'.
38981         * lib/unicase/u8-casefold.c: New file.
38982         * lib/unicase/u-casefold.h: New file.
38983         * modules/unicase/u8-casefold: New file.
38984
38985         New module 'unicase/tocasefold'.
38986         * lib/unicase/casefold.h: New file.
38987         * lib/unicase/tocasefold.c: New file.
38988         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38989         * modules/unicase/tocasefold: New file.
38990
38991         Tests for module 'unicase/u32-totitle'.
38992         * modules/unicase/u32-totitle-tests: New file.
38993         * tests/unicase/test-u32-totitle.c: New file.
38994
38995         Tests for module 'unicase/u16-totitle'.
38996         * modules/unicase/u16-totitle-tests: New file.
38997         * tests/unicase/test-u16-totitle.c: New file.
38998
38999         Tests for module 'unicase/u8-totitle'.
39000         * modules/unicase/u8-totitle-tests: New file.
39001         * tests/unicase/test-u8-totitle.c: New file.
39002
39003         New module 'unicase/u32-totitle'.
39004         * lib/unicase/u32-totitle.c: New file.
39005         * modules/unicase/u32-totitle: New file.
39006
39007         New module 'unicase/u16-totitle'.
39008         * lib/unicase/u16-totitle.c: New file.
39009         * modules/unicase/u16-totitle: New file.
39010
39011         New module 'unicase/u8-totitle'.
39012         * lib/unicase/u8-totitle.c: New file.
39013         * lib/unicase/u-totitle.h: New file.
39014         * modules/unicase/u8-totitle: New file.
39015
39016         Tests for module 'unicase/u32-tolower'.
39017         * modules/unicase/u32-tolower-tests: New file.
39018         * tests/unicase/test-u32-tolower.c: New file.
39019
39020         Tests for module 'unicase/u16-tolower'.
39021         * modules/unicase/u16-tolower-tests: New file.
39022         * tests/unicase/test-u16-tolower.c: New file.
39023
39024         Tests for module 'unicase/u8-tolower'.
39025         * modules/unicase/u8-tolower-tests: New file.
39026         * tests/unicase/test-u8-tolower.c: New file.
39027
39028         New module 'unicase/u32-tolower'.
39029         * lib/unicase/u32-tolower.c: New file.
39030         * modules/unicase/u32-tolower: New file.
39031
39032         New module 'unicase/u16-tolower'.
39033         * lib/unicase/u16-tolower.c: New file.
39034         * modules/unicase/u16-tolower: New file.
39035
39036         New module 'unicase/u8-tolower'.
39037         * lib/unicase/u8-tolower.c: New file.
39038         * modules/unicase/u8-tolower: New file.
39039
39040         Tests for module 'unicase/u32-toupper'.
39041         * modules/unicase/u32-toupper-tests: New file.
39042         * tests/unicase/test-u32-toupper.c: New file.
39043
39044         Tests for module 'unicase/u16-toupper'.
39045         * modules/unicase/u16-toupper-tests: New file.
39046         * tests/unicase/test-u16-toupper.c: New file.
39047
39048         Tests for module 'unicase/u8-toupper'.
39049         * modules/unicase/u8-toupper-tests: New file.
39050         * tests/unicase/test-u8-toupper.c: New file.
39051
39052         New module 'unicase/u32-toupper'.
39053         * lib/unicase/u32-toupper.c: New file.
39054         * modules/unicase/u32-toupper: New file.
39055
39056         New module 'unicase/u16-toupper'.
39057         * lib/unicase/u16-toupper.c: New file.
39058         * modules/unicase/u16-toupper: New file.
39059
39060         New module 'unicase/u8-toupper'.
39061         * lib/unicase/u8-toupper.c: New file.
39062         * modules/unicase/u8-toupper: New file.
39063
39064         New module 'unicase/u32-casemap'.
39065         * lib/unicase/u32-casemap.c: New file.
39066         * modules/unicase/u32-casemap: New file.
39067
39068         New module 'unicase/u16-casemap'.
39069         * lib/unicase/u16-casemap.c: New file.
39070         * modules/unicase/u16-casemap: New file.
39071
39072         New module 'unicase/u8-casemap'.
39073         * lib/unicase/unicasemap.h: New file.
39074         * lib/unicase/u8-casemap.c: New file.
39075         * lib/unicase/u-casemap.h: New file.
39076         * modules/unicase/u8-casemap: New file.
39077
39078         New module 'unicase/special-casing'.
39079         * lib/unicase/special-casing.h: New file.
39080         * lib/unicase/special-casing.c: New file.
39081         * lib/unicase/special-casing-table.gperf: New file, generated by
39082         gen-uni-tables.c.
39083         * modules/unicase/special-casing: New file.
39084
39085         Tests for module 'unicase/locale-language'.
39086         * modules/unicase/locale-language-tests: New file.
39087         * tests/unicase/test-locale-language.sh: New file.
39088         * tests/unicase/test-locale-language.c: New file.
39089
39090         New module 'unicase/locale-language'.
39091         * lib/unicase/locale-language.c: New file.
39092         * lib/unicase/locale-languages.gperf: New file.
39093         * modules/unicase/locale-language: New file.
39094
39095         Generate more tables for case conversion and case folding.
39096         * lib/gen-uni-tables.c (SCC_*): New enum items.
39097         (struct special_casing_rule): New type.
39098         (casing_rules, num_casing_rules, allocated_casing_rules): New
39099         variables.
39100         (add_casing_rule, fill_casing_rules): New functions.
39101         (struct casefold_rule): New type.
39102         (casefolding_rules, num_casefolding_rules,
39103         allocated_casefolding_rules): New variables.
39104         (fill_casefolding_rules): New function.
39105         (unicode_casefold): New variable.
39106         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39107         sort_casing_rules, output_casing_rules): New functions.
39108         (main): Accept to more arguments: SpecialCasing.txt and
39109         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39110         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39111         Output mapping for casefolding.
39112
39113         * lib/unicase.h: Include stdbool.h, uninorm.h.
39114         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39115         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39116         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39117         arguments.
39118         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39119         resultp arguments.
39120         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39121         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39122         resultp arguments.
39123         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39124         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39125         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39126         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39127         declarations.
39128         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39129
39130 2009-03-08  Bruno Haible  <bruno@clisp.org>
39131
39132         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39133         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39134         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39135         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39136
39137 2009-03-07  Bruno Haible  <bruno@clisp.org>
39138
39139         Adjust u*_normcmp, u*_normcoll API.
39140         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39141         u16_normcoll, u32_normcoll): Change failure conventions.
39142         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39143         errno and return -1.
39144         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39145
39146 2009-03-07  Bruno Haible  <bruno@clisp.org>
39147
39148         Tests for module 'uninorm/u32-normcoll'.
39149         * modules/uninorm/u32-normcoll-tests: New file.
39150         * tests/uninorm/test-u32-normcoll.c: New file.
39151
39152         Tests for module 'uninorm/u16-normcoll'.
39153         * modules/uninorm/u16-normcoll-tests: New file.
39154         * tests/uninorm/test-u16-normcoll.c: New file.
39155
39156         Tests for module 'uninorm/u8-normcoll'.
39157         * modules/uninorm/u8-normcoll-tests: New file.
39158         * tests/uninorm/test-u8-normcoll.c: New file.
39159
39160 2009-03-07  Bruno Haible  <bruno@clisp.org>
39161
39162         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39163         tests/uninorm/test-u32-normcmp.c.
39164         * tests/uninorm/test-u32-normcmp.c: Include it.
39165         (test_nonascii): New function, extracted from main. Add some more
39166         tests.
39167         (main): Invoke test_ascii and test_nonascii.
39168         * modules/uninorm/u32-normcmp-tests (Files): Add
39169         tests/uninorm/test-u32-normcmp.h.
39170         (Depends-on): Remove uninorm/u32-normcmp.
39171
39172         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39173         tests/uninorm/test-u16-normcmp.c.
39174         * tests/uninorm/test-u16-normcmp.c: Include it.
39175         (test_nonascii): New function, extracted from main. Add some more
39176         tests.
39177         (main): Invoke test_ascii and test_nonascii.
39178         * modules/uninorm/u16-normcmp-tests (Files): Add
39179         tests/uninorm/test-u16-normcmp.h.
39180         (Depends-on): Remove uninorm/u16-normcmp.
39181
39182         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39183         tests/uninorm/test-u8-normcmp.c.
39184         * tests/uninorm/test-u8-normcmp.c: Include it.
39185         (test_nonascii): New function, extracted from main. Add some more
39186         tests.
39187         (main): Invoke test_ascii and test_nonascii.
39188         * modules/uninorm/u8-normcmp-tests (Files): Add
39189         tests/uninorm/test-u8-normcmp.h.
39190         (Depends-on): Remove uninorm/u8-normcmp.
39191
39192 2009-03-07  Bruno Haible  <bruno@clisp.org>
39193
39194         New module 'uninorm/u32-normcoll'.
39195         * lib/uninorm/u32-normcoll.c: New file.
39196         * modules/uninorm/u32-normcoll: New file.
39197
39198         New module 'uninorm/u16-normcoll'.
39199         * lib/uninorm/u16-normcoll.c: New file.
39200         * modules/uninorm/u16-normcoll: New file.
39201
39202         New module 'uninorm/u8-normcoll'.
39203         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39204         declarations.
39205         * lib/uninorm/u8-normcoll.c: New file.
39206         * lib/uninorm/u-normcoll.h: New file.
39207         * modules/uninorm/u8-normcoll: New file.
39208
39209         New module 'uninorm/u32-normxfrm'.
39210         * lib/uninorm/u32-normxfrm.c: New file.
39211         * modules/uninorm/u32-normxfrm: New file.
39212
39213         New module 'uninorm/u16-normxfrm'.
39214         * lib/uninorm/u16-normxfrm.c: New file.
39215         * modules/uninorm/u16-normxfrm: New file.
39216
39217         New module 'uninorm/u8-normxfrm'.
39218         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39219         declarations.
39220         * lib/uninorm/u8-normxfrm.c: New file.
39221         * lib/uninorm/u-normxfrm.h: New file.
39222         * modules/uninorm/u8-normxfrm: New file.
39223
39224 2009-03-07  Bruno Haible  <bruno@clisp.org>
39225
39226         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39227         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39228         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39229
39230 2009-03-07  Bruno Haible  <bruno@clisp.org>
39231
39232         New module 'memxfrm'.
39233         * lib/memxfrm.h: New file.
39234         * lib/memxfrm.c: New file.
39235         * modules/memxfrm: New file.
39236
39237 2009-03-07  Bruno Haible  <bruno@clisp.org>
39238
39239         New module 'memcmp2'.
39240         * lib/memcmp2.h: New file.
39241         * lib/memcmp2.c: New file.
39242         * modules/memcmp2: New file.
39243
39244 2009-03-07  Bruno Haible  <bruno@clisp.org>
39245
39246         Tests for module 'uninorm/decomposing-form'.
39247         * modules/uninorm/decomposing-form-tests: New file.
39248         * tests/uninorm/test-decomposing-form.c: New file.
39249
39250         New module 'uninorm/decomposing-form'.
39251         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39252         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39253         Add 'decomposing_variant' field.
39254         * lib/uninorm/decomposing-form.c: New file.
39255         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39256         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39257         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39258         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39259         * modules/uninorm/decomposing-form: New file.
39260         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39261         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39262
39263 2009-03-07  Bruno Haible  <bruno@clisp.org>
39264
39265         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39266         strings.
39267
39268 2009-03-06  Bruno Haible  <bruno@clisp.org>
39269
39270         Tests for module 'uninorm/u32-normcmp'.
39271         * tests/uninorm/test-u32-normcmp.c: New file.
39272         * modules/uninorm/u32-normcmp-tests: New file.
39273
39274         Tests for module 'uninorm/u16-normcmp'.
39275         * tests/uninorm/test-u16-normcmp.c: New file.
39276         * modules/uninorm/u16-normcmp-tests: New file.
39277
39278         Tests for module 'uninorm/u8-normcmp'.
39279         * tests/uninorm/test-u8-normcmp.c: New file.
39280         * modules/uninorm/u8-normcmp-tests: New file.
39281
39282         New module 'uninorm/u32-normcmp'.
39283         * lib/uninorm/u32-normcmp.c: New file.
39284         * modules/uninorm/u32-normcmp: New file.
39285
39286         New module 'uninorm/u16-normcmp'.
39287         * lib/uninorm/u16-normcmp.c: New file.
39288         * modules/uninorm/u16-normcmp: New file.
39289
39290         New module 'uninorm/u8-normcmp'.
39291         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39292         declarations.
39293         * lib/uninorm/u8-normcmp.c: New file.
39294         * lib/uninorm/u-normcmp.h: New file.
39295         * modules/uninorm/u8-normcmp: New file.
39296
39297 2009-03-06  Bruno Haible  <bruno@clisp.org>
39298
39299         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39300         Reported by Eric Blake.
39301
39302 2009-03-06  Eric Blake  <ebb9@byu.net>
39303             Bruno Haible  <bruno@clisp.org>
39304
39305         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39306         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39307         condition.
39308         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39309         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39310         condition.
39311         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39312
39313 2009-03-06  Eric Blake  <ebb9@byu.net>
39314
39315         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39316         to avoid compiler warnings.
39317         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39318
39319 2009-03-05  Bruno Haible  <bruno@clisp.org>
39320
39321         * tests/test-ftell.c (main): Disable test beyond end of file on
39322         FreeMiNT.
39323         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39324
39325 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39326
39327         * lib/filevercmp.c: Move hidden files up in ordering.
39328         * tests/test-filevercmp.c: Add tests for hidden files.
39329
39330 2009-03-04  Bruno Haible  <bruno@clisp.org>
39331
39332         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39333         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39334         AM_CFLAGS.
39335         Reported by Simon Josefsson.
39336
39337 2009-03-03  Bruno Haible  <bruno@clisp.org>
39338
39339         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39340         Reported by Simon Josefsson.
39341
39342         * doc/ld-version-script.texi: Update node reference.
39343
39344 2009-03-03  Bruno Haible  <bruno@clisp.org>
39345
39346         * modules/visibility (License): Change to 'unlimited'.
39347         Suggested by Simon Josefsson.
39348
39349 2009-03-03  Jim Meyering  <meyering@redhat.com>
39350
39351         unlinkdir: cannot_unlink_dir may modify process state
39352         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39353         it's neither thread-safe nor appropriate for use in a library.
39354
39355 2009-03-03  Eric Blake  <ebb9@byu.net>
39356
39357         test-closein: silence test under Darwin
39358         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39359         care if it dies from EPIPE or EBADF.
39360
39361 2009-03-03  Bruno Haible  <bruno@clisp.org>
39362
39363         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39364         earlier.
39365         * doc/visibility.texi: Fix @node and @section.
39366
39367 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39368
39369         * doc/gnulib.texi: Link to sections for ld version script and
39370         visibility.
39371         * doc/visibility.texi: Add @node and @section.
39372         * modules/ld-version-script: New module.
39373         * m4/ld-version-script.m4: New file.
39374         * doc/ld-version-script.texi: New file.
39375
39376 2009-03-02  David Lutterkort  <lutter@redhat.com>
39377
39378         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39380
39381 2009-03-02  Bruno Haible  <bruno@clisp.org>
39382
39383         * doc/visibility.texi: Mention libtool's -export-symbols option.
39384
39385 2009-03-02  Jim Meyering  <meyering@redhat.com>
39386
39387         announce-gen: new option: --no-print-checksums
39388         * build-aux/announce-gen (usage): Describe it.
39389         (print_checksums): Print a newline here, not in the [*] footnote.
39390         (main): Honor it.
39391
39392 2009-03-01  Bruno Haible  <bruno@clisp.org>
39393
39394         Use socklen_t in the native Windows replacements prototypes.
39395         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39396         instead of 'int'.
39397         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39398         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39399         * modules/getsockopt (Depends-on): Add socklen.
39400         * modules/setsockopt (Depends-on): Add socklen.
39401
39402 2009-03-01  Bruno Haible  <bruno@clisp.org>
39403
39404         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39405         least 4.2.
39406
39407 2009-03-01  Eric Blake  <ebb9@byu.net>
39408             Bruno Haible  <bruno@clisp.org>
39409
39410         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39411         error messages.
39412         * lib/wait-process.c (wait_subprocess): Omit error message about
39413         deadly signal sent to the child of termsigp != NULL.
39414
39415 2009-03-01  Eric Blake  <ebb9@byu.net>
39416
39417         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39418
39419 2009-03-01  Bruno Haible  <bruno@clisp.org>
39420
39421         Avoid a gcc warning.
39422         * tests/test-sched.c (b): Make global.
39423         Reported by Eric Blake.
39424
39425 2009-01-19  Martin Lambers  <marlam@marlam.de>
39426
39427         Provide POSIX semantics for socket timeout options on W32.
39428         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39429         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39430         * modules/setsockopt: Depend on sys_time module for struct timeval.
39431         * modules/getsockopt: Depend on sys_time module for struct timeval.
39432
39433 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39434
39435         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39436         __USE_GNU, for consistency with netdb.in.h.
39437         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39438
39439 2009-03-01  Bruno Haible  <bruno@clisp.org>
39440
39441         More support for FreeMiNT.
39442         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39443         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39444
39445 2009-03-01  Bruno Haible  <bruno@clisp.org>
39446
39447         More support for FreeMiNT.
39448         * lib/fpurge.c (fpurge): Correct last commit.
39449         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39450
39451 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39452
39453         Fix unportable awk script in vc-list-files.
39454         * build-aux/vc-list-files: In the replacement awk script, use
39455         substr with a second argument of 1, not zero.
39456         Report by Simon Josefsson.
39457
39458 2009-02-28  Bruno Haible  <bruno@clisp.org>
39459
39460         More support for FreeMiNT.
39461         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39462         to FreeMiNT today.
39463         * lib/fwriting.c (fwriting): Likewise.
39464         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39465
39466 2009-02-28  Bruno Haible  <bruno@clisp.org>
39467
39468         * tests/test-freadseek.c (main): Disable test beyond end of file on
39469         FreeMiNT.
39470         * tests/test-ftello.c (main): Likewise.
39471         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39472
39473 2009-02-28  Bruno Haible  <bruno@clisp.org>
39474
39475         Add tentative support for FreeMiNT.
39476         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39477         * lib/fpurge.c (fpurge): Likewise.
39478         * lib/freadable.c (freadable): Likewise.
39479         * lib/freading.c (freading): Likewise.
39480         * lib/freadptr.c (freadptr): Likewise.
39481         * lib/freadseek.c (freadptrinc): Likewise.
39482         * lib/fseeko.c (rpl_fseeko): Likewise.
39483         * lib/fseterr.c (fseterr): Likewise.
39484         * lib/fwritable.c (fwritable): Likewise.
39485         * lib/fwriting.c (fwriting): Likewise.
39486         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39487         Hourihane.
39488         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39489
39490 2009-02-28  Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39493         SIGCHLD.
39494         Reported by Jim Meyering.
39495
39496 2009-02-28  Bruno Haible  <bruno@clisp.org>
39497
39498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39499         Mention the results of these tests on various platforms.
39500         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39501         order.
39502         * doc/posix-functions/printf.texi: Likewise.
39503         * doc/posix-functions/snprintf.texi: Likewise.
39504         * doc/posix-functions/sprintf.texi: Likewise.
39505         * doc/posix-functions/vfprintf.texi: Likewise.
39506         * doc/posix-functions/vprintf.texi: Likewise.
39507         * doc/posix-functions/vsnprintf.texi: Likewise.
39508         * doc/posix-functions/vsprintf.texi: Likewise.
39509         * doc/glibc-functions/obstack_printf.texi: Likewise.
39510         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39511
39512 2009-02-28  Bruno Haible  <bruno@clisp.org>
39513
39514         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39515         Reported by Loïc Minier <lool@dooz.org>.
39516
39517 2009-02-27  Bruno Haible  <bruno@clisp.org>
39518
39519         * gnulib-tool (func_import): Make the sed expression used to create the
39520         sed script for updating the .gitignore file POSIX compliant.
39521         Reported by Eric Blake.
39522
39523 2009-02-27  Bruno Haible  <bruno@clisp.org>
39524
39525         * gnulib-tool (sed): Don't alias as "sed --posix".
39526         Reported by Eric Blake.
39527
39528 2009-02-27  Bruno Haible  <bruno@clisp.org>
39529
39530         Avoid test link errors.
39531         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39532         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39533         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39534         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39536
39537 2009-02-27  Bruno Haible  <bruno@clisp.org>
39538
39539         Avoid spurious "(cached)" in configure output.
39540         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39541         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39542         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39543         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39544         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39545         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39546         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39547         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39548         Reported by Eric Blake.
39549
39550 2009-02-27  Eric Blake  <ebb9@byu.net>
39551
39552         printf: fix regression in previous patch
39553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39554
39555 2009-02-27  Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39558         value.
39559         * lib/stdint.in.h: Likewise.
39560         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39561
39562 2009-02-27  Eric Blake  <ebb9@byu.net>
39563
39564         doc: mention more functions added in cygwin 1.7.0
39565         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39566         addition.
39567         * doc/posix-functions/open_wmemstream.texi: Likewise.
39568         * doc/posix-functions/wcsnlen.texi: Likewise.
39569         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39570         * doc/posix-functions/wcstod.texi: Likewise.
39571         * doc/posix-functions/wcstof.texi: Likewise.
39572         * doc/posix-functions/wcstoimax.texi: Likewise.
39573         * doc/posix-functions/wcstok.texi: Likewise.
39574         * doc/posix-functions/wcstoumax.texi: Likewise.
39575
39576         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39578         * doc/posix-functions/fprintf.texi: Update.
39579         * doc/posix-functions/printf.texi: Update.
39580         * doc/posix-functions/snprintf.texi: Update.
39581         * doc/posix-functions/sprintf.texi: Update.
39582         * doc/posix-functions/vfprintf.texi: Update.
39583         * doc/posix-functions/vprintf.texi: Update.
39584         * doc/posix-functions/vsnprintf.texi: Update.
39585         * doc/posix-functions/vsprintf.texi: Update.
39586         * doc/glibc-functions/obstack_printf.texi: Update.
39587         * doc/glibc-functions/obstack_vprintf.texi: Update.
39588
39589 2009-02-26  Eric Blake  <ebb9@byu.net>
39590
39591         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39592         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39593         compilation bug by using runtime conversion.
39594         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39595         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39596         * modules/ceill-tests (Files): Use nan.h.
39597         * modules/floorl-tests (Files): Likewise.
39598         * modules/frexpl-tests (Files): Likewise.
39599         * modules/isnanl-tests (Files): Likewise.
39600         * modules/ldexpl-tests (Files): Likewise.
39601         * modules/roundl-tests (Files): Likewise.
39602         * modules/truncl-tests (Files): Likewise.
39603         * tests/test-ceill.c (main): Use a working NaN.
39604         * tests/test-floorl.c (main): Likewise.
39605         * tests/test-frexpl.c (main): Likewise.
39606         * tests/test-isnan.c (test_long_double): Likewise.
39607         * tests/test-isnanl.h (main): Likewise.
39608         * tests/test-ldexpl.h (main): Likewise.
39609         * tests/test-roundl.h (main): Likewise.
39610         * tests/test-truncl.h (main): Likewise.
39611         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39612
39613 2009-02-26  Eric Blake  <ebb9@byu.net>
39614             Bruno Haible  <bruno@clisp.org>
39615
39616         Work around a *printf bug with %ls on Solaris.
39617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39618         precision is specified, sprintf stops converting the wide string
39619         argument when the number of bytes that have been produced by this
39620         conversion equals or exceeds the precision.
39621         * doc/posix-functions/fprintf.texi: Update.
39622         * doc/posix-functions/printf.texi: Update.
39623         * doc/posix-functions/snprintf.texi: Update.
39624         * doc/posix-functions/sprintf.texi: Update.
39625         * doc/posix-functions/vfprintf.texi: Update.
39626         * doc/posix-functions/vprintf.texi: Update.
39627         * doc/posix-functions/vsnprintf.texi: Update.
39628         * doc/posix-functions/vsprintf.texi: Update.
39629         * doc/glibc-functions/obstack_printf.texi: Update.
39630         * doc/glibc-functions/obstack_vprintf.texi: Update.
39631
39632 2009-02-26  Eric Blake  <ebb9@byu.net>
39633
39634         stdlib: favor compiler check of random.h
39635         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39636         to avoid an ObjC random.h installed by Swarm.
39637
39638 2009-02-26  Bruno Haible  <bruno@clisp.org>
39639
39640         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39641         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39642         Reported by Gary V. Vaughan <gary@gnu.org>.
39643
39644 2009-02-26  Bruno Haible  <bruno@clisp.org>
39645
39646         Fix *printf behaviour regarding the %ls directive.
39647         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39648         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39649         NEED_PRINTF_DIRECTIVE_LS.
39650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39651         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39653         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39654         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39655         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39656         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39661         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39664         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39665         * doc/posix-functions/fprintf.texi: Update.
39666         * doc/posix-functions/printf.texi: Update.
39667         * doc/posix-functions/snprintf.texi: Update.
39668         * doc/posix-functions/sprintf.texi: Update.
39669         * doc/posix-functions/vfprintf.texi: Update.
39670         * doc/posix-functions/vprintf.texi: Update.
39671         * doc/posix-functions/vsnprintf.texi: Update.
39672         * doc/posix-functions/vsprintf.texi: Update.
39673         * doc/glibc-functions/obstack_printf.texi: Update.
39674         * doc/glibc-functions/obstack_vprintf.texi: Update.
39675         Reported by Eric Blake.
39676
39677 2009-02-25  Bruno Haible  <bruno@clisp.org>
39678
39679         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39680         with known value.
39681         Reported by Gary V. Vaughan <gary@gnu.org>.
39682
39683 2009-02-25  Bruno Haible  <bruno@clisp.org>
39684
39685         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39686         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39687         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39688         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39689         Reported by Gary V. Vaughan <gary@gnu.org>.
39690
39691 2009-02-25  Bruno Haible  <bruno@clisp.org>
39692
39693         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39694         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39695         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39696         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39697         Reported by Gary V. Vaughan <gary@gnu.org>.
39698
39699 2009-02-25  Eric Blake  <ebb9@byu.net>
39700
39701         tests: skip fseek/ftell tests if ungetc is broken
39702         * m4/ungetc.m4: New file.
39703         * modules/fseek-tests: Split test, so ungetc dependency is
39704         separate from rest of test.
39705         * modules/fseeko-tests: Likewise.
39706         * modules/ftell-tests: Likewise.
39707         * modules/ftello-tests: Likewise.
39708         * tests/test-fseek.c (main): Isolate ungetc dependency.
39709         * tests/test-fseeko.c (main): Likewise.
39710         * tests/test-ftell.c (main): Likewise.
39711         * tests/test-ftello.c (main): Likewise.
39712         * tests/test-fseek2.sh: New file.
39713         * tests/test-fseeko2.sh: Likewise.
39714         * tests/test-ftell2.sh: Likewise.
39715         * tests/test-ftello2.sh: Likewise.
39716
39717 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39718
39719         test-getaddrinfo: fix usage of skip return code 77
39720         * tests/test-gettaddrinfo.c: Return skip code 77 only
39721         for first occurance of skip (4x77 is not 77)
39722
39723 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39724
39725         strtod: avoid C99 decl-after-statement
39726         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39727
39728 2009-02-24  Eric Blake  <ebb9@byu.net>
39729
39730         strtod: detect HP-UX 11.31 bug
39731         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39732         Reported by Gary V. Vaughan.
39733
39734 2009-02-23  Bruno Haible  <bruno@clisp.org>
39735
39736         Fix invalid read past end of memory block.
39737         * lib/vasnprintf.c (DCHAR_SET): Define.
39738         (local_wcslen): Define only when needed.
39739         (local_strnlen, local_wcsnlen): New functions.
39740         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39741         directives that involve a conversion ourselves.
39742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39743         wcsnlen, mbrtowc, wcrtomb.
39744         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39745         * tests/test-vasprintf-posix.c (test_function): Likewise.
39746         * tests/test-snprintf-posix.h (test_function): Likewise.
39747         * tests/test-sprintf-posix.h (test_function): Likewise.
39748         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39749
39750 2009-02-22  Bruno Haible  <bruno@clisp.org>
39751
39752         Implement new clarified decomposition of Hangul syllables.
39753         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39754         of type LTV, return only a pairwise decomposition.
39755         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39756         Likewise.
39757         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39758         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39759         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39760
39761 2009-02-22  Bruno Haible  <bruno@clisp.org>
39762
39763         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39764         zero-length results and shrink excess allocated memory.
39765         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39766         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39767         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39768         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39769         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39770         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39771         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39772         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39773         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39774         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39775         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39776         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39777
39778 2009-02-21  Bruno Haible  <bruno@clisp.org>
39779
39780         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39781         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39782         spaces after a period. Put a space between a macro name and its
39783         argument list. Trivial rewordings.
39784         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39785         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39786         (main): Return 0 explicitly.
39787
39788 2009-02-21  Bruno Haible  <bruno@clisp.org>
39789
39790         Tests for module 'uninorm/filter'.
39791         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39792         * modules/uninorm/filter-tests: New file.
39793
39794         New module 'uninorm/filter'.
39795         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39796         uninorm_filter_flush, uninorm_filter_free): New declarations.
39797         * lib/uninorm/uninorm-filter.c: New file.
39798         * modules/uninorm/filter: New file.
39799
39800 2009-02-21  Bruno Haible  <bruno@clisp.org>
39801
39802         Tests for module 'uninorm/nfkc'.
39803         * tests/uninorm/test-nfkc.c: New file.
39804         * tests/uninorm/test-u8-nfkc.c: New file.
39805         * tests/uninorm/test-u16-nfkc.c: New file.
39806         * tests/uninorm/test-u32-nfkc.c: New file.
39807         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39808         * tests/uninorm/test-u32-nfkc-big.c: New file.
39809         * modules/uninorm/nfkc-tests: New file.
39810
39811         New module 'uninorm/nfkc'.
39812         * lib/uninorm/nfkc.c: New file.
39813         * modules/uninorm/nfkc: New file.
39814
39815         Tests for module 'uninorm/nfkd'.
39816         * tests/uninorm/test-nfkd.c: New file.
39817         * tests/uninorm/test-u8-nfkd.c: New file.
39818         * tests/uninorm/test-u16-nfkd.c: New file.
39819         * tests/uninorm/test-u32-nfkd.c: New file.
39820         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39821         * tests/uninorm/test-u32-nfkd-big.c: New file.
39822         * modules/uninorm/nfkd-tests: New file.
39823
39824         New module 'uninorm/nfkd'.
39825         * lib/uninorm/nfkd.c: New file.
39826         * modules/uninorm/nfkd: New file.
39827
39828         Tests for module 'uninorm/nfc'.
39829         * tests/uninorm/test-nfc.c: New file.
39830         * tests/uninorm/test-u8-nfc.c: New file.
39831         * tests/uninorm/test-u16-nfc.c: New file.
39832         * tests/uninorm/test-u32-nfc.c: New file.
39833         * tests/uninorm/test-u32-nfc-big.sh: New file.
39834         * tests/uninorm/test-u32-nfc-big.c: New file.
39835         * modules/uninorm/nfc-tests: New file.
39836
39837         New module 'uninorm/nfc'.
39838         * lib/uninorm/nfc.c: New file.
39839         * modules/uninorm/nfc: New file.
39840
39841         Tests for module 'uninorm/nfd'.
39842         * tests/uninorm/test-nfd.c: New file.
39843         * tests/uninorm/test-u8-nfd.c: New file.
39844         * tests/uninorm/test-u16-nfd.c: New file.
39845         * tests/uninorm/test-u32-nfd.c: New file.
39846         * tests/uninorm/test-u32-nfd-big.sh: New file.
39847         * tests/uninorm/test-u32-nfd-big.c: New file.
39848         * tests/uninorm/test-u32-normalize-big.h: New file.
39849         * tests/uninorm/test-u32-normalize-big.c: New file.
39850         * tests/uninorm/NormalizationTest.txt: New file, created from
39851         Unicode 5.1.0 NormalizationTest.txt.
39852         * modules/uninorm/nfd-tests: New file.
39853
39854         New module 'uninorm/nfd'.
39855         * lib/uninorm/nfd.c: New file.
39856         * modules/uninorm/nfd: New file.
39857
39858         New module 'uninorm/u32-normalize'.
39859         * lib/uninorm/u32-normalize.c: New file.
39860         * modules/uninorm/u32-normalize: New file.
39861
39862         New module 'uninorm/u16-normalize'.
39863         * lib/uninorm/u16-normalize.c: New file.
39864         * modules/uninorm/u16-normalize: New file.
39865
39866         New module 'uninorm/u8-normalize'.
39867         * lib/uninorm/u8-normalize.c: New file.
39868         * lib/uninorm/normalize-internal.h: New file.
39869         * lib/uninorm/u-normalize-internal.h: New file.
39870         * modules/uninorm/u8-normalize: New file.
39871
39872         New module 'uninorm/decompose-internal'.
39873         * lib/uninorm/decompose-internal.c: New file.
39874         * modules/uninorm/decompose-internal: New file.
39875
39876         Tests for module 'uninorm/composition'.
39877         * tests/uninorm/test-composition.c: New file.
39878         * modules/uninorm/composition-tests: New file.
39879
39880         New module 'uninorm/composition'.
39881         * lib/uninorm/composition.c: New file.
39882         * lib/uninorm/composition-table.gperf: New file, generated by
39883         gen-uni-tables.
39884         * modules/uninorm/composition: New file.
39885
39886         Tests for module 'uninorm/compat-decomposition'.
39887         * tests/uninorm/test-compat-decomposition.c: New file.
39888         * modules/uninorm/compat-decomposition-tests: New file.
39889
39890         New module 'uninorm/compat-decomposition'.
39891         * lib/uninorm/decompose-internal.h: New file.
39892         * lib/uninorm/compat-decomposition.c: New file.
39893         * modules/uninorm/compat-decomposition: New file.
39894
39895         Tests for module 'uninorm/canonical-decomposition'.
39896         * tests/uninorm/test-canonical-decomposition.c: New file.
39897         * modules/uninorm/canonical-decomposition-tests: New file.
39898
39899         New module 'uninorm/canonical-decomposition'.
39900         * lib/uninorm/canonical-decomposition.c: New file.
39901         * modules/uninorm/canonical-decomposition: New file.
39902
39903         Tests for module 'uninorm/decomposition'.
39904         * tests/uninorm/test-decomposition.c: New file.
39905         * modules/uninorm/decomposition-tests: New file.
39906
39907         New module 'uninorm/decomposition'.
39908         * lib/uninorm/decomposition.c: New file.
39909         * modules/uninorm/decomposition: New file.
39910
39911         New module 'uninorm/decomposition-table'.
39912         * lib/uninorm/decomposition-table.h: New file.
39913         * lib/uninorm/decomposition-table.c: New file.
39914         * lib/uninorm/decomposition-table1.h: New file, generated by
39915         gen-uni-tables.
39916         * lib/uninorm/decomposition-table2.h: New file, generated by
39917         gen-uni-tables.
39918         * modules/uninorm/decomposition-table: New file.
39919
39920         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39921         (UC_DECOMP_*): New enumeration items.
39922         (get_decomposition): New function.
39923         (struct decomp_table): New type.
39924         (output_decomposition, output_decomposition_tables): New functions.
39925         (unicode_composition_exclusions): New variable.
39926         (fill_composition_exclusions, debug_output_composition_tables): New
39927         functions.
39928         (main): Accept one more argument. Invoke fill_composition_exclusions.
39929         Output decomposition and composition tables.
39930
39931         New module 'uninorm/base'.
39932         * lib/uninorm.h: New file.
39933         * lib/unictype.h: Update comment.
39934         * modules/uninorm/base: New file.
39935
39936 2009-02-21  David Lutterkort  <lutter@redhat.com>
39937
39938         Tests for module 'safe-alloc'.
39939         * tests/test-safe-alloc.c: New file.
39940         * modules/safe-alloc-tests: New file.
39941
39942         New module 'safe-alloc'.
39943         * lib/safe-alloc.h: New file.
39944         * lib/safe-alloc.c: New file.
39945         * m4/safe-alloc.m4: New file.
39946         * modules/safe-alloc: New file.
39947         * doc/safe-alloc.texi: New file.
39948         * doc/gnulib.texi: Include it.
39949         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39950         safe-alloc.
39951
39952 2009-02-18  Bruno Haible  <bruno@clisp.org>
39953
39954         Fix link error on non-glibc systems.
39955         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39956         variable.
39957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39958
39959 2009-02-18  Jim Meyering  <meyering@redhat.com>
39960
39961         fts: avoid used-uninitialized error due to recent change
39962         * lib/fts.c (fts_read): Guard uses of the new member,
39963         parent->fts_n_dirs_remaining, since it's not relevant for
39964         the parent of a directory specified on the command-line.
39965
39966 2009-02-17  James Youngman  <jay@gnu.org>
39967             Bruno Haible  <bruno@clisp.org>
39968
39969         * m4/include_next.m4: Reformulate comment.
39970
39971 2009-02-16  Jim Meyering  <meyering@redhat.com>
39972
39973         fts: add #if guards so that the fts_lgpl module still builds
39974         * lib/fts.c: Guard just-added hash-table-using parts with
39975         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39976         Reported by Simon Josefsson.
39977
39978 2009-02-15  Bruno Haible  <bruno@clisp.org>
39979
39980         * modules/array-mergesort-tests: New file.
39981         * tests/test-array-mergesort.c: New file.
39982
39983         New module 'array-mergesort'.
39984         * modules/array-mergesort: New file.
39985         * lib/array-mergesort.h: New file.
39986
39987 2009-02-15  Bruno Haible  <bruno@clisp.org>
39988
39989         Fix 2009-02-07 commit.
39990         * lib/gen-uni-tables.c (output_predicate, output_category,
39991         output_combclass, output_bidi_category, output_decimal_digit,
39992         output_digit, output_numeric, output_mirror, output_scripts,
39993         output_ident_category, output_simple_mapping): Fix format directives.
39994         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39995
39996 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39997
39998         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39999         fixes are available from IBM.
40000
40001 2009-02-13  Jim Meyering  <meyering@redhat.com>
40002
40003         fts: arrange not to stat non-directories in more cases
40004         This makes GNU find (when it doesn't need to stat each file)
40005         *much* more efficient at traversing reiserfs file systems.
40006         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40007         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40008         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40009         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40010         (leaf_optimization_applies): New function.
40011         (LCO_hash, LCO_compare): New helper functions.
40012         (link_count_optimize_ok): New function.
40013         (fts_stat): Initialize new member (if dir).
40014         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40015         we've just stat'ed a directory.  Skip the stat call when possible.
40016         ---
40017         Note this AFS-related exchange:
40018         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40019         and note find's pioctl call in find/fstype.c.
40020         But that is necessary only if you want to enable the
40021         optimization for AFS, and for now, I don't.
40022
40023         fts: move a function definition "up" (no semantic change)
40024         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40025         "up" to precede upcoming use of a related function.
40026
40027 2009-02-11  Jim Meyering  <meyering@redhat.com>
40028
40029         fts: correct internal computation of nlinks (optimization-related)
40030         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40031         whether the current entry is a directory, so don't test it.
40032
40033 2009-02-10  Bruno Haible  <bruno@clisp.org>
40034
40035         Tests for module 'uniwbrk/ulc-wordbreaks'.
40036         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40037         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40038         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40039
40040         Tests for module 'uniwbrk/u32-wordbreaks'.
40041         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40042         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40043
40044         Tests for module 'uniwbrk/u16-wordbreaks'.
40045         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40046         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40047
40048         Tests for module 'uniwbrk/u8-wordbreaks'.
40049         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40050         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40051
40052 2009-02-10  Bruno Haible  <bruno@clisp.org>
40053
40054         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40055         property.
40056         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40057         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40058         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40059
40060 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40061
40062         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40063         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40064
40065 2009-02-10  Bruno Haible  <bruno@clisp.org>
40066
40067         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40068         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40069         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40070         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40071         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40072         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40073
40074 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40075
40076         * lib/sockets.h (gl_fd_to_handle): New function.
40077
40078         * tests/test-sockets.c: Call gl_fd_to_handle.
40079
40080 2009-02-09  Bruno Haible  <bruno@clisp.org>
40081
40082         * doc/havelib.texi: Document the conventions on bi-arch systems.
40083
40084 2009-02-08  Bruno Haible  <bruno@clisp.org>
40085
40086         Document the AC_LIB_LINKFLAGS macro.
40087         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40088         * doc/gnulib.texi: Include it.
40089
40090 2009-02-08  Bruno Haible  <bruno@clisp.org>
40091
40092         Fix wrong order of sections, compared to TOC.
40093         * doc/gnulib.texi: Include relocatable-maint.texi after the
40094         "Regular expressions" node, not before.
40095
40096 2009-02-08  Bruno Haible  <bruno@clisp.org>
40097
40098         Tests for module 'unicase/totitle'.
40099         * modules/unicase/totitle-tests: New file.
40100
40101         Tests for module 'unicase/tolower'.
40102         * modules/unicase/tolower-tests: New file.
40103
40104         Tests for module 'unicase/toupper'.
40105         * modules/unicase/toupper-tests: New file.
40106         * tests/unicase/test-mapping-part1.h: New file.
40107         * tests/unicase/test-mapping-part2.h: New file.
40108
40109         New module 'unicase/totitle'.
40110         * modules/unicase/totitle: New file.
40111         * lib/unicase/totitle.c: New file.
40112
40113         New module 'unicase/tolower'.
40114         * modules/unicase/tolower: New file.
40115         * lib/unicase/tolower.c: New file.
40116
40117         New module 'unicase/toupper'.
40118         * modules/unicase/toupper: New file.
40119         * lib/unicase/toupper.c: New file.
40120         * lib/unicase/simple-mapping.h: New file.
40121
40122         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40123         (mapping_table): New structure.
40124         (output_simple_mapping): New function.
40125         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40126         * modules/gen-uni-tables (Description): Update.
40127         * lib/unicase/toupper.h: New file, automatically generated by
40128         gen-uni-tables.
40129         * lib/unicase/tolower.h: New file, automatically generated by
40130         gen-uni-tables.
40131         * lib/unicase/totitle.h: New file, automatically generated by
40132         gen-uni-tables.
40133         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40134         gen-uni-tables.
40135         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40136         gen-uni-tables.
40137         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40138         gen-uni-tables.
40139
40140         New module 'unicase/base'.
40141         * modules/unicase/base: New file.
40142         * lib/unicase.h: New file.
40143
40144 2009-02-08  Bruno Haible  <bruno@clisp.org>
40145
40146         New module 'uniwbrk/ulc-wordbreaks'.
40147         * modules/uniwbrk/ulc-wordbreaks: New file.
40148         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40149
40150         New module 'uniwbrk/u32-wordbreaks'.
40151         * modules/uniwbrk/u32-wordbreaks: New file.
40152         * lib/uniwbrk/u32-wordbreaks.c: New file.
40153
40154         New module 'uniwbrk/u16-wordbreaks'.
40155         * modules/uniwbrk/u16-wordbreaks: New file.
40156         * lib/uniwbrk/u16-wordbreaks.c: New file.
40157
40158         New module 'uniwbrk/u8-wordbreaks'.
40159         * modules/uniwbrk/u8-wordbreaks: New file.
40160         * lib/uniwbrk/u8-wordbreaks.c: New file.
40161         * lib/uniwbrk/u-wordbreaks.h: New file.
40162
40163         New module 'uniwbrk/table'.
40164         * modules/uniwbrk/table: New file.
40165         * lib/uniwbrk/wbrktable.h: New file.
40166         * lib/uniwbrk/wbrktable.c: New file.
40167
40168         New module 'uniwbrk/wordbreak-property'.
40169         * modules/uniwbrk/wordbreak-property: New file.
40170         * lib/uniwbrk/wordbreak-property.c: New file.
40171
40172         * lib/gen-uni-tables.c (WBP_*): New enum items.
40173         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40174         (unicode_org_wbp): New variable.
40175         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40176         New functions.
40177         (wbp_table): New structure.
40178         (output_wbp, output_wbrk_tables): New functions.
40179         (main): Accept additional argument. Invoke fill_org_wbp,
40180         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40181         output_wbrk_tables.
40182         * modules/gen-uni-tables (Description): Update.
40183         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40184         gen-uni-tables.
40185
40186         New module 'uniwbrk/base'.
40187         * modules/uniwbrk/base: New file.
40188         * lib/uniwbrk.h: New file.
40189
40190 2009-02-08  Bruno Haible  <bruno@clisp.org>
40191
40192         Update to Unicode 5.1.0.
40193         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40194         U+2185..U+2188.
40195         (is_property_default_ignorable_code_point): Don't include characters
40196         of category Cc or Cs and not-a-characters.
40197         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40198         U+0D79, U+109E, U+109F, U+A60C.
40199         * lib/unictype/bidi_of.h: Regenerated.
40200         * lib/unictype/blocks.h: Regenerated.
40201         * lib/unictype/categ_C.h: Regenerated.
40202         * lib/unictype/categ_Cf.h: Regenerated.
40203         * lib/unictype/categ_Cn.h: Regenerated.
40204         * lib/unictype/categ_L.h: Regenerated.
40205         * lib/unictype/categ_Ll.h: Regenerated.
40206         * lib/unictype/categ_Lm.h: Regenerated.
40207         * lib/unictype/categ_Lo.h: Regenerated.
40208         * lib/unictype/categ_Lu.h: Regenerated.
40209         * lib/unictype/categ_M.h: Regenerated.
40210         * lib/unictype/categ_Mc.h: Regenerated.
40211         * lib/unictype/categ_Me.h: Regenerated.
40212         * lib/unictype/categ_Mn.h: Regenerated.
40213         * lib/unictype/categ_N.h: Regenerated.
40214         * lib/unictype/categ_Nd.h: Regenerated.
40215         * lib/unictype/categ_Nl.h: Regenerated.
40216         * lib/unictype/categ_No.h: Regenerated.
40217         * lib/unictype/categ_P.h: Regenerated.
40218         * lib/unictype/categ_Pd.h: Regenerated.
40219         * lib/unictype/categ_Pe.h: Regenerated.
40220         * lib/unictype/categ_Pf.h: Regenerated.
40221         * lib/unictype/categ_Pi.h: Regenerated.
40222         * lib/unictype/categ_Po.h: Regenerated.
40223         * lib/unictype/categ_Ps.h: Regenerated.
40224         * lib/unictype/categ_S.h: Regenerated.
40225         * lib/unictype/categ_Sk.h: Regenerated.
40226         * lib/unictype/categ_Sm.h: Regenerated.
40227         * lib/unictype/categ_So.h: Regenerated.
40228         * lib/unictype/categ_of.h: Regenerated.
40229         * lib/unictype/combining.h: Regenerated.
40230         * lib/unictype/ctype_alnum.h: Regenerated.
40231         * lib/unictype/ctype_alpha.h: Regenerated.
40232         * lib/unictype/ctype_graph.h: Regenerated.
40233         * lib/unictype/ctype_lower.h: Regenerated.
40234         * lib/unictype/ctype_print.h: Regenerated.
40235         * lib/unictype/ctype_punct.h: Regenerated.
40236         * lib/unictype/ctype_upper.h: Regenerated.
40237         * lib/unictype/decdigit.h: Regenerated.
40238         * lib/unictype/digit.h: Regenerated.
40239         * lib/unictype/mirror.h: Regenerated.
40240         * lib/unictype/numeric.h: Regenerated.
40241         * lib/unictype/pr_alphabetic.h: Regenerated.
40242         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40243         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40244         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40245         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40246         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40247         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40248         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40249         * lib/unictype/pr_combining.h: Regenerated.
40250         * lib/unictype/pr_dash.h: Regenerated.
40251         * lib/unictype/pr_decimal_digit.h: Regenerated.
40252         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40253         * lib/unictype/pr_deprecated.h: Regenerated.
40254         * lib/unictype/pr_diacritic.h: Regenerated.
40255         * lib/unictype/pr_extender.h: Regenerated.
40256         * lib/unictype/pr_format_control.h: Regenerated.
40257         * lib/unictype/pr_grapheme_base.h: Regenerated.
40258         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40259         * lib/unictype/pr_grapheme_link.h: Regenerated.
40260         * lib/unictype/pr_id_continue.h: Regenerated.
40261         * lib/unictype/pr_id_start.h: Regenerated.
40262         * lib/unictype/pr_ideographic.h: Regenerated.
40263         * lib/unictype/pr_ignorable_control.h: Regenerated.
40264         * lib/unictype/pr_lowercase.h: Regenerated.
40265         * lib/unictype/pr_math.h: Regenerated.
40266         * lib/unictype/pr_numeric.h: Regenerated.
40267         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40268         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40269         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40270         * lib/unictype/pr_other_id_continue.h: Regenerated.
40271         * lib/unictype/pr_other_lowercase.h: Regenerated.
40272         * lib/unictype/pr_other_math.h: Regenerated.
40273         * lib/unictype/pr_punctuation.h: Regenerated.
40274         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40275         * lib/unictype/pr_soft_dotted.h: Regenerated.
40276         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40277         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40278         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40279         * lib/unictype/pr_uppercase.h: Regenerated.
40280         * lib/unictype/pr_xid_continue.h: Regenerated.
40281         * lib/unictype/pr_xid_start.h: Regenerated.
40282         * lib/unictype/pr_zero_width.h: Regenerated.
40283         * lib/unictype/scripts.h: Regenerated.
40284         * lib/unictype/scripts_byname.gperf: Regenerated.
40285         * lib/unictype/sy_java_ident.h: Regenerated.
40286         * lib/unilbrk/lbrkprop1.h: Regenerated.
40287         * lib/unilbrk/lbrkprop2.h: Regenerated.
40288         * tests/unictype/test-categ_C.c: Regenerated.
40289         * tests/unictype/test-categ_Cf.c: Regenerated.
40290         * tests/unictype/test-categ_Cn.c: Regenerated.
40291         * tests/unictype/test-categ_L.c: Regenerated.
40292         * tests/unictype/test-categ_Ll.c: Regenerated.
40293         * tests/unictype/test-categ_Lm.c: Regenerated.
40294         * tests/unictype/test-categ_Lo.c: Regenerated.
40295         * tests/unictype/test-categ_Lu.c: Regenerated.
40296         * tests/unictype/test-categ_M.c: Regenerated.
40297         * tests/unictype/test-categ_Mc.c: Regenerated.
40298         * tests/unictype/test-categ_Me.c: Regenerated.
40299         * tests/unictype/test-categ_Mn.c: Regenerated.
40300         * tests/unictype/test-categ_N.c: Regenerated.
40301         * tests/unictype/test-categ_Nd.c: Regenerated.
40302         * tests/unictype/test-categ_Nl.c: Regenerated.
40303         * tests/unictype/test-categ_No.c: Regenerated.
40304         * tests/unictype/test-categ_P.c: Regenerated.
40305         * tests/unictype/test-categ_Pd.c: Regenerated.
40306         * tests/unictype/test-categ_Pe.c: Regenerated.
40307         * tests/unictype/test-categ_Pf.c: Regenerated.
40308         * tests/unictype/test-categ_Pi.c: Regenerated.
40309         * tests/unictype/test-categ_Po.c: Regenerated.
40310         * tests/unictype/test-categ_Ps.c: Regenerated.
40311         * tests/unictype/test-categ_S.c: Regenerated.
40312         * tests/unictype/test-categ_Sk.c: Regenerated.
40313         * tests/unictype/test-categ_Sm.c: Regenerated.
40314         * tests/unictype/test-categ_So.c: Regenerated.
40315         * tests/unictype/test-ctype_alnum.c: Regenerated.
40316         * tests/unictype/test-ctype_alpha.c: Regenerated.
40317         * tests/unictype/test-ctype_graph.c: Regenerated.
40318         * tests/unictype/test-ctype_lower.c: Regenerated.
40319         * tests/unictype/test-ctype_print.c: Regenerated.
40320         * tests/unictype/test-ctype_punct.c: Regenerated.
40321         * tests/unictype/test-ctype_upper.c: Regenerated.
40322         * tests/unictype/test-decdigit.h: Regenerated.
40323         * tests/unictype/test-digit.h: Regenerated.
40324         * tests/unictype/test-numeric.h: Regenerated.
40325         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40326         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40327         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40328         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40329         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40330         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40331         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40332         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40333         * tests/unictype/test-pr_combining.c: Regenerated.
40334         * tests/unictype/test-pr_dash.c: Regenerated.
40335         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40336         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40337         * tests/unictype/test-pr_deprecated.c: Regenerated.
40338         * tests/unictype/test-pr_diacritic.c: Regenerated.
40339         * tests/unictype/test-pr_extender.c: Regenerated.
40340         * tests/unictype/test-pr_format_control.c: Regenerated.
40341         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40342         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40343         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40344         * tests/unictype/test-pr_id_continue.c: Regenerated.
40345         * tests/unictype/test-pr_id_start.c: Regenerated.
40346         * tests/unictype/test-pr_ideographic.c: Regenerated.
40347         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40348         * tests/unictype/test-pr_lowercase.c: Regenerated.
40349         * tests/unictype/test-pr_math.c: Regenerated.
40350         * tests/unictype/test-pr_numeric.c: Regenerated.
40351         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40352         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40353         Regenerated.
40354         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40355         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40356         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40357         * tests/unictype/test-pr_other_math.c: Regenerated.
40358         * tests/unictype/test-pr_punctuation.c: Regenerated.
40359         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40360         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40361         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40362         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40363         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40364         * tests/unictype/test-pr_uppercase.c: Regenerated.
40365         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40366         * tests/unictype/test-pr_xid_start.c: Regenerated.
40367         * tests/unictype/test-pr_zero_width.c: Regenerated.
40368
40369         Update to Unicode 5.1.0.
40370         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40371         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40372         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40373         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40374         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40375         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40376         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40377         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40378         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40379         (nonspacing_table_ind): Update.
40380         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40381
40382         Update to Unicode 5.1.0.
40383         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40384         code transform.
40385         * lib/uniname/uniname.c (unicode_character_name,
40386         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40387         * lib/uniname/uninames.h: Regenerated.
40388         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40389
40390 2009-02-07  Bruno Haible  <bruno@clisp.org>
40391
40392         Merge gen-ctype and gen-lbrk into a single program.
40393         * lib/gen-uni-tables.c: New file, incorporating
40394         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40395         Add directory prefixes to the names of the generated files.
40396         * lib/unictype/gen-ctype.c: Remove file.
40397         * lib/unilbrk/gen-lbrk.c: Remove file.
40398         * modules/gen-uni-tables: New file.
40399         * modules/unictype/gen-ctype: Remove file.
40400         * modules/unilbrk/gen-lbrk: Remove file.
40401
40402 2009-02-07  Bruno Haible  <bruno@clisp.org>
40403
40404         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40405
40406         New module 'unistr/u32-strcoll'.
40407         * modules/unistr/u32-strcoll: New file.
40408         * lib/unistr/u32-strcoll.c: New file.
40409
40410         New module 'unistr/u16-strcoll'.
40411         * modules/unistr/u16-strcoll: New file.
40412         * lib/unistr/u16-strcoll.c: New file.
40413
40414         New module 'unistr/u8-strcoll'.
40415         * modules/unistr/u8-strcoll: New file.
40416         * lib/unistr/u8-strcoll.c: New file.
40417         * lib/unistr/u-strcoll.h: New file.
40418
40419 2009-02-07  Bruno Haible  <bruno@clisp.org>
40420
40421         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40422         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40423         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40424         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40425         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40426         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40427
40428 2009-02-07  Bruno Haible  <bruno@clisp.org>
40429
40430         Make 64-bit clean.
40431         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40432         output_combclass, output_bidi_category, output_decimal_digit,
40433         output_digit, output_numeric, output_mirror, output_scripts,
40434         output_ident_category): Use proper width specifier in format strings.
40435
40436 2009-02-07  Bruno Haible  <bruno@clisp.org>
40437
40438         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40439         failure behaviour.
40440
40441 2009-02-07  Jim Meyering  <meyering@redhat.com>
40442
40443         regex: avoid compilation failure with upcoming gcc-4.4
40444         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40445         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40446         "... error: integer overflow in preprocessor expression".
40447
40448 2009-02-05  Ben Pfaff  <blp@gnu.org>
40449
40450         Fix link errors on Windows when close module is used.
40451         * modules/close: Add $(LIB_CLOSE) to Link section.
40452         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40453         $(LIB_CLOSE) on Windows.
40454
40455 2009-02-05  Jim Meyering  <meyering@redhat.com>
40456
40457         still avoid unused-parameter warnings, but do it cleanly
40458         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40459         (get_fs_usage): Cast to void instead.
40460         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40461         (dev_from_mount_options, read_file_system_list): Cast to void.
40462         Prompted by Bruno Haible.
40463
40464 2009-02-04  Jim Meyering  <meyering@redhat.com>
40465
40466         fsusage.c: correct copyright year
40467         * lib/fsusage.c: Reflect year in which the change is pushed into
40468
40469         avoid misc. warnings
40470         * lib/fsusage.c (UNUSED_PARAM): Define.
40471         (get_fs_usage): Mark parameter "disk" as unused.
40472         * lib/getugroups.c (getgrent): Use "void" in prototype.
40473         * lib/mountlist.c: Mark unused parameters.
40474         (read_file_system_list): Declare a local with "const".
40475         * lib/nanosleep.c (getnow): Declare static.
40476         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40477
40478         dirfd: set errno upon failure
40479         * lib/dirfd.c: Include <errno.h>.
40480         Set errno to ENOTSUP when returning -1.
40481         * modules/dirfd (Depends-on): Add errno.
40482         Suggested by John Kodis <kodis@comcast.net>.
40483
40484 2009-02-01  Bruno Haible  <bruno@clisp.org>
40485
40486         Don't assume sizeof (long) >= sizeof (void *).
40487         * lib/memcmp.c: Include stdint.h.
40488         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40489         srcp2 to 'const byte *'.
40490         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40491         types to uintptr_t.
40492         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40493         * modules/memcmp (Depends-on): Add stdint.
40494         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40495
40496 2009-01-30  Eric Blake  <ebb9@byu.net>
40497
40498         fix more require-before-expand issues
40499         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40500         expand, AC_PROG_AWK.
40501         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40502
40503 2009-01-28  Eric Blake  <ebb9@byu.net>
40504
40505         version-etc: use consistent URL formatting
40506         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40507         Improve formatting.  Use fputs for string without %.
40508
40509 2009-01-28  Jim Meyering  <meyering@redhat.com>
40510
40511         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40512         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40513         "underquoted definition of NAME" from autoconf-2.59.
40514
40515 2009-01-28  Bruno Haible  <bruno@clisp.org>
40516
40517         * doc/gnulib.texi: Add "Obsolete modules" to index.
40518
40519 2009-01-28  Jim Meyering  <meyering@redhat.com>
40520
40521         useless-if-before-free: recognize more variants
40522         * build-aux/useless-if-before-free: Also recognize e.g.,
40523         if (NULL != p) free (p);
40524
40525 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40526
40527         test-getaddrinfo: skip (don't fail) this test when there's no network
40528         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40529         on the presumption that it means you lack network access.
40530
40531 2009-01-26  Jim Meyering  <meyering@redhat.com>
40532
40533         fflush: avoid warnings on modern systems
40534         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40535         pos and result, into scopes where they're used.
40536
40537 2009-01-26  Eric Blake  <ebb9@byu.net>
40538
40539         Silence warning reintroduced by recent extensions patch.
40540         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40541         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40542         autoconf.
40543
40544         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40545         * m4/00gnulib.m4: New file.
40546         * gnulib-tool (func_get_filelist): Always use it.
40547         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40548         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40549
40550 2009-01-25  Bruno Haible  <bruno@clisp.org>
40551
40552         Make test-quotearg work on MacOS X and AIX.
40553         * tests/test-quotearg.sh: New file.
40554         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40555         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40556         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40557         include <libintl.h>.
40558         (fake_locale): Remove variable.
40559         (gettext, dgettext, dcgettext): Remove functions.
40560         (main): Instead of setting a fake locale, set a real locale. Call
40561         textdomain and bindtextdomain.
40562         * modules/quotearg-tests (Files): Add the new files.
40563         (Depends-on): Add gettext, setenv, unsetenv.
40564         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40565         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40566         Augment TESTS_ENVIRONMENT.
40567
40568 2009-01-25  Bruno Haible  <bruno@clisp.org>
40569
40570         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40571         fr_FR.ISO8859-1 locale on MacOS X.
40572         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40573         ja_JP.eucJP locale on MacOS X.
40574         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40575         zh_CN.GB18030 locale on MacOS X.
40576
40577 2009-01-25  Bruno Haible  <bruno@clisp.org>
40578
40579         Avoid link errors on MacOS X 10.3.
40580         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40581         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40582
40583 2009-01-25  Bruno Haible  <bruno@clisp.org>
40584
40585         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40586         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40587         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40588         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40589         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40590         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40591         posix_spawnattr_init, posix_spawnattr_setsigmask,
40592         posix_spawnattr_setflags, posix_spawnattr_destroy.
40593
40594         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40595         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40596         * modules/execute (Files): Remove m4/posix_spawn.m4.
40597         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40598         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40599         posix_spawnattr_init, posix_spawnattr_setsigmask,
40600         posix_spawnattr_setflags, posix_spawnattr_destroy.
40601
40602 2009-01-25  Bruno Haible  <bruno@clisp.org>
40603
40604         * lib/glthread/threadlib.c: Include <stdlib.h>.
40605
40606 2009-01-25  Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/glthread/threadlib.c (dummy): New declaration.
40609
40610 2009-01-25  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40613         multibyte characters also for the GB18030 encoding. Don't crash when
40614         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40615
40616 2009-01-25  Bruno Haible  <bruno@clisp.org>
40617
40618         Avoid redefining 'struct random_data' on OSF/1 5.1.
40619         * lib/stdlib.in.h: Include <random.h> if it exists.
40620         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40621         HAVE_RANDOM_H. Include <random.h> when testing whether
40622         'struct random_data' exists.
40623         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40624
40625 2009-01-25  Bruno Haible  <bruno@clisp.org>
40626
40627         Don't install charset.alias on MacOS X >= 10.3.
40628         * lib/localcharset.c (DARWIN7): New macro.
40629         (get_charset_aliases): Hardcode the result for Darwin7.
40630         * modules/localcharset (install-exec-local): Don't install
40631         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40632
40633 2009-01-25  Bruno Haible  <bruno@clisp.org>
40634
40635         Don't install charset.alias on mingw and Cygwin.
40636         * modules/localcharset (install-exec-local): Don't install
40637         charset.alias on mingw and Cygwin, if the file does not yet exist.
40638         The result for these platforms is hardcoded in localcharset.c.
40639
40640 2009-01-25  Bruno Haible  <bruno@clisp.org>
40641
40642         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40643         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40644         before requiring AC_USE_SYSTEM_EXTENSIONS.
40645
40646 2009-01-25  Jim Meyering  <meyering@redhat.com>
40647
40648         c-strtod: avoid warnings
40649         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40650         "assignment discards qualifiers from pointer target type" warnings.
40651
40652 2009-01-24  Bruno Haible  <bruno@clisp.org>
40653
40654         Add support for non-UTF-8 locales on MacOS X.
40655         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40656         canonical encodings. For Darwin 7 and newer, don't map traditional
40657         encodings to UTF-8.
40658         Reported by Vincent Lefevre <vincent@vinc17.org>
40659         at <http://savannah.gnu.org/bugs/?25235>.
40660
40661 2009-01-24  Bruno Haible  <bruno@clisp.org>
40662
40663         * doc/gnulib.texi (Obsolete modules): New section.
40664         Reported by Mike Frysinger <vapier@gentoo.org>.
40665
40666 2009-01-24  Bruno Haible  <bruno@clisp.org>
40667
40668         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40669         (%.dvi): New rule.
40670
40671 2009-01-24  Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40674         Reported by Eric Blake.
40675
40676 2009-01-24  Bruno Haible  <bruno@clisp.org>
40677
40678         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40679         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40680         Reported by Gary V. Vaughan <gary@gnu.org>.
40681
40682 2009-01-24  Bruno Haible  <bruno@clisp.org>
40683
40684         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40685
40686 2009-01-23  Bruno Haible  <bruno@clisp.org>
40687
40688         Make c-strtod, c-strtold usable in libraries.
40689         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40690         (C_STRTOD): Call strdup instead of xstrdup.
40691         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40692         * modules/c-strtold (Depends-on): Likewise.
40693         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40694         * NEWS: Mention the change.
40695         Reported by Michael Gold <mgold@ncf.ca>.
40696
40697 2009-01-23  Jim Meyering  <meyering@redhat.com>
40698
40699         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40700         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40701         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40702
40703 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40704
40705         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40706         GNU CoreUtils.
40707         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40708         * modules/version-etc (Description): Update.
40709
40710 2009-01-22  Bruno Haible  <bruno@clisp.org>
40711
40712         Cache the C locale object.
40713         * lib/c-strtod.c (c_locale_cache): New variable.
40714         (c_locale): New function.
40715         (C_STRTOD): Use it, and don't call freelocale.
40716         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40717         Suggested by Paolo Bonzini.
40718
40719 2009-01-21  Bruno Haible  <bruno@clisp.org>
40720
40721         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40722         conditions other than overflow.
40723
40724 2009-01-21  Bruno Haible  <bruno@clisp.org>
40725
40726         * lib/c-strtod.c: Include errno.h.
40727         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40728         value from STRTOD_L and STRTOD.
40729
40730 2009-01-21  Bruno Haible  <bruno@clisp.org>
40731         and Jim Meyering  <meyering@redhat.com>
40732
40733         nanosleep: skip configure test (fail it) for apple universal builds
40734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40735         universal builds, assume that nanosleep does not work.
40736         * modules/nanosleep (Depends-on): Add multiarch.
40737
40738         mktime: skip configure test (fail it) for apple universal builds
40739         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40740         universal builds, assume that mktime does not work.
40741         * modules/mktime (Depends-on): Add multiarch.
40742
40743 2009-01-21  Eric Blake  <ebb9@byu.net>
40744
40745         multiarch: avoid expand-before-require warning
40746         * modules/multiarch (configure.ac): Require, rather than expand,
40747         gl_MULTIARCH.
40748         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40749         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40750         enforce that all clients require it.  Partial reversion of
40751         2008-12-29 patch.
40752
40753         error: avoid expand-before-require warning
40754         * modules/errno (configure.ac): Require, rather than expand,
40755         gl_HEADER_ERRNO_H.
40756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40757         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40758         enforce that all clients require it.
40759
40760         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40761         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40762         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40763         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40764
40765 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40766
40767         Revert:
40768         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40769
40770         regex: do not depend on obsolete modules.
40771         * modules/regex: Remove memcmp and memmove.
40772
40773 2009-01-20  Bruno Haible  <bruno@clisp.org>
40774
40775         Make the 'link' module link on Windows NT 4.
40776         * lib/link.c (_WIN32_WINNT): Don't define.
40777         (CreateHardLinkFuncType): New type.
40778         (CreateHardLinkFunc, initialized): New variables.
40779         (initialize): New function.
40780         (link): Invoke CreateHardLink indirectly through the function pointer.
40781
40782 2009-01-20  Bruno Haible  <bruno@clisp.org>
40783
40784         Fix compilation failure on mingw.
40785         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40786
40787 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40788
40789         * doc/c-strtod.texi: Mention a couple of restrictions.
40790
40791 2009-01-20  Jim Meyering  <meyering@redhat.com>
40792
40793         gettimeofday: move more declarations out of functions
40794         * lib/gettimeofday.c: Move extern declarations of tzset and
40795         gmtime out of containing functions.  Prompted by Bruno Haible.
40796
40797 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40798
40799         regex: do not depend on obsolete modules.
40800         * modules/regex: Remove memcmp and memmove.
40801
40802 2009-01-19  Bruno Haible  <bruno@clisp.org>
40803
40804         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40805         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40806         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40807         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40808         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40809
40810 2009-01-19  Bruno Haible  <bruno@clisp.org>
40811
40812         * tests/test-link.c: Include <errno.h>.
40813         (main): Exit with code 77 when a hard link cannot be created due to
40814         the file system.
40815         * tests/test-link.sh: Skip test when a hard link cannot be created due
40816         to the file system.
40817         Suggested by Eric Blake.
40818
40819 2009-01-19  Martin Lambers  <marlam@marlam.de>
40820
40821         * modules/link-tests: New file.
40822         * tests/test-link.sh: New file.
40823         * tests/test-link.c: New file.
40824
40825 2009-01-19  Eric Blake  <ebb9@byu.net>
40826
40827         doc: mention another function added in cygwin 1.7.0
40828         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40829         Another new function in cygwin 1.7.
40830
40831 2009-01-19  Bruno Haible  <bruno@clisp.org>
40832
40833         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40834         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40835         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40836         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40837         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40838         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40839         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40840         * m4/md4.m4 (gl_MD4): Likewise.
40841         * m4/md5.m4 (gl_MD5): Likewise.
40842         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40843         * m4/sha1.m4 (gl_SHA1): Likewise.
40844         * m4/sha256.m4 (gl_SHA256): Likewise.
40845         * m4/sha512.m4 (gl_SHA512): Likewise.
40846
40847 2009-01-19  Bruno Haible  <bruno@clisp.org>
40848
40849         * modules/uniname/uniname-tests (Depends-on): Add progname.
40850         * tests/uniname/test-uninames.c: Include progname.h.
40851         (main): Call set_program_name.
40852
40853         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40854         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40855         (main): Call set_program_name.
40856
40857         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40858         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40859         (main): Call set_program_name.
40860
40861         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40862         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40863         (main): Call set_program_name.
40864
40865         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40866         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40867         (main): Call set_program_name.
40868
40869         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40870         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40871         (main): Call set_program_name.
40872
40873         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40874         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40875         (main): Call set_program_name.
40876
40877         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40878         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40879         (main): Call set_program_name.
40880
40881         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40882         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40883         (main): Call set_program_name.
40884
40885 2009-01-19  Eric Blake  <ebb9@byu.net>
40886
40887         test-unistd: test previous patch
40888         * tests/test-unistd.c: Test *_FILENO macros.
40889
40890         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40891         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40892         Guarantee a definition.
40893         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40894         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40895         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40896         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40897         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40898         Likewise.
40899         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40900         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40901         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40902         Likewise.
40903         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40904         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40905         (STDERR_FILENO): Likewise.
40906         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40907         (STDERR_FILENO): Likewise.
40908         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40909         (STDERR_FILENO): Likewise.
40910         Reported by Elbert Pol.
40911
40912 2009-01-19  Eric Blake  <ebb9@byu.net>
40913
40914         doc: mention more functions added in cygwin 1.7.0
40915         * doc/posix-functions/abort.texi (abort): Update wording related
40916         to cygwin.
40917         * doc/posix-functions/daylight.texi (daylight): Likewise.
40918         * doc/posix-functions/optarg.texi (optarg): Likewise.
40919         * doc/posix-functions/optarg.texi (opterr): Likewise.
40920         * doc/posix-functions/optarg.texi (optind): Likewise.
40921         * doc/posix-functions/optarg.texi (optopt): Likewise.
40922         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40923         worked in 1.5.x, and was withdrawn in 1.7.
40924         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40925         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40926         cygwin versions.
40927         * doc/posix-functions/perror.texi (perror): Likewise.
40928         * doc/posix-functions/printf.texi (printf): Likewise.
40929         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40930         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40931         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40932         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40933         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40934         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40935         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40936         Likewise.
40937         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40938         Likewise.
40939         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40940         this function.
40941         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40942         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40943         Likewise.
40944         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40945         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40946         * doc/posix-functions/confstr.texi (confstr): Likewise.
40947         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40948         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40949         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40950         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40951         * doc/posix-functions/fputws.texi (fputws): Likewise.
40952         * doc/posix-functions/fwide.texi (fwide): Likewise.
40953         * doc/posix-functions/getwc.texi (getwc): Likewise.
40954         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40955         * doc/posix-functions/putwc.texi (putwc): Likewise.
40956         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40957         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40958         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40959         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40960         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40961         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40962         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40963         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40964         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40965         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40966         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40967
40968 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40969
40970         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40971         * lib/ioctl.c: Include <sys/ioctl.h>.
40972
40973 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40974
40975         * modules/getdate-tests (Depends-on): Add progname.
40976         * tests/test-getdate.c: Use progname module, to avoid link errors
40977         on non-glibc systems.
40978
40979 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40980
40981         * modules/filenamecat-tests (Depends-on): Add progname.
40982         * modules/fstrcmp-tests (Depends-on): Likewise.
40983
40984         * tests/test-filenamecat.c: Use progname module, to avoid link
40985         errors on non-glibc systems.
40986         * tests/test-fstrcmp.c: Likewise.
40987
40988 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40989
40990         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40991         * lib/gettimeofday.c: Move extern declaration out of function.
40992
40993 2009-01-18  Bruno Haible  <bruno@clisp.org>
40994
40995         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40996         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40997         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40998
40999 2009-01-18  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/strftime.c (MEMPCPY): Remove unused macro.
41002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41003
41004 2009-01-18  Martin Lambers  <marlam@marlam.de>
41005
41006         New module 'link'.
41007         * lib/unistd.in.h (link): New declaration.
41008         * lib/link.c: New file.
41009         * m4/link.m4: New file.
41010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41011         HAVE_LINK.
41012         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41013         * modules/link: New file.
41014         * doc/posix-functions/link.texi: Mention the new module.
41015
41016 2009-01-18  Bruno Haible  <bruno@clisp.org>
41017
41018         * tests/test-avltree_list.c (main): Call set_program_name.
41019         * tests/test-avltree_oset.c (main): Likewise.
41020         * tests/test-obstack-printf.c: Include progname.h.
41021         (main): Call set_program_name.
41022         * tests/test-quotearg.c: Include progname.h.
41023         (main): Call set_program_name.
41024         * tests/test-xmemdup0.c: Include progname.h.
41025         (main): Call set_program_name.
41026
41027 2009-01-18  Bruno Haible  <bruno@clisp.org>
41028
41029         New module 'alphasort'.
41030         * lib/dirent.in.h (alphasort): New declaration.
41031         * lib/alphasort.c: New file, from glibc with modifications.
41032         * m4/alphasort.m4: New file.
41033         * modules/alphasort: New file.
41034         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41035         HAVE_ALPHASORT.
41036         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41037         HAVE_ALPHASORT.
41038         * doc/posix-functions/alphasort.texi: Mention the new module and the
41039         portability problems.
41040
41041 2009-01-18  Bruno Haible  <bruno@clisp.org>
41042
41043         New module 'scandir'.
41044         * lib/dirent.in.h (scandir): New declaration.
41045         * lib/scandir.c: New file, from glibc with modifications.
41046         * m4/scandir.m4: New file.
41047         * modules/scandir: New file.
41048         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41049         HAVE_SCANDIR.
41050         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41051         HAVE_SCANDIR.
41052         * doc/posix-functions/scandir.texi: Mention the new module and the
41053         portability problems.
41054
41055 2009-01-17  Bruno Haible  <bruno@clisp.org>
41056
41057         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41058         Update documentation.
41059         (func_remove_suffix): Escape all dots in the suffix. Update
41060         documentation.
41061         (func_filter_filelist): Update documentation.
41062         Reported by Ralf Wildenhues.
41063
41064 2009-01-17  Bruno Haible  <bruno@clisp.org>
41065
41066         * modules/dprintf-posix-tests: New file.
41067         * tests/test-dprintf-posix.sh: New file.
41068         * tests/test-dprintf-posix.c: New file.
41069
41070         New modules 'dprintf', 'dprintf-posix'.
41071         * lib/stdio.in.h (dprintf): New declaration.
41072         * lib/dprintf.c: New file.
41073         * m4/dprintf.m4: New file.
41074         * m4/dprintf-posix.m4: New file.
41075         * modules/dprintf: New file.
41076         * modules/dprintf-posix: New file.
41077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41078         HAVE_DPRINTF, REPLACE_DPRINTF.
41079         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41080         HAVE_DPRINTF, REPLACE_DPRINTF.
41081         * doc/posix-functions/dprintf.texi: Mention the new modules.
41082
41083 2009-01-17  Bruno Haible  <bruno@clisp.org>
41084
41085         * modules/vdprintf-posix-tests: New file.
41086         * tests/test-vdprintf-posix.sh: New file.
41087         * tests/test-vdprintf-posix.c: New file.
41088
41089         New modules 'vdprintf', 'vdprintf-posix'.
41090         * lib/stdio.in.h (vdprintf): New declaration.
41091         * lib/vdprintf.c: New file.
41092         * m4/vdprintf.m4: New file.
41093         * m4/vdprintf-posix.m4: New file.
41094         * modules/vdprintf: New file.
41095         * modules/vdprintf-posix: New file.
41096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41097         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41098         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41099         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41100         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41101
41102 2009-01-17  Bruno Haible  <bruno@clisp.org>
41103
41104         Fix replacement of fopen on mingw.
41105         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41106         mingw.
41107
41108 2009-01-17  Bruno Haible  <bruno@clisp.org>
41109
41110         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41111         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41112
41113 2009-01-17  Bruno Haible  <bruno@clisp.org>
41114
41115         Avoid test-fflush2.sh failure on mingw.
41116         * tests/test-fflush2.c: Include binary-io.h.
41117         (main): Put standard input into binary mode.
41118         * modules/fflush-tests (Depends-on): Add binary-io.
41119
41120 2009-01-17  Bruno Haible  <bruno@clisp.org>
41121
41122         * lib/wchar.in.h: In another particular situation, include only the
41123         system's <wchar.h> file.
41124         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41125         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41126         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41127
41128 2009-01-17  Bruno Haible  <bruno@clisp.org>
41129
41130         Support for stripping executables in --enable-relocatable.
41131         * build-aux/install-reloc: Expect one more argument, or an environment
41132         variable RELOC_STRIP_PROG. If set, strip the destination program and
41133         its wrapper.
41134         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41135         RELOC_STRIP_PROG.
41136         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41137         to set RELOCATABLE_STRIP.
41138         * NEWS: Mention the new Makefile requirement.
41139
41140 2009-01-17  Bruno Haible  <bruno@clisp.org>
41141
41142         * build-aux/install-reloc: Remove debugging information left over by
41143         C compiler on MacOS X.
41144
41145 2009-01-17  Bruno Haible  <bruno@clisp.org>
41146
41147         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41148         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41149         _NSGetExecutablePath.
41150
41151 2009-01-16  Jim Meyering  <meyering@redhat.com>
41152
41153         strerror: avoid warnings about discarding "const"
41154         * lib/strerror.c (rpl_strerror): Instead of returning a const
41155         string from each and every "case", use a variable, and add a single
41156         cast after the switch.
41157
41158 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41159
41160         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41161
41162 2009-01-16  Bruno Haible  <bruno@clisp.org>
41163
41164         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41165         array initializer syntax that also works in C++ mode.
41166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41167
41168 2009-01-16  Jim Meyering  <meyering@redhat.com>
41169
41170         poll: suppress a warning
41171         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41172         to ignore "...unsigned expression < 0 is always false" warnings.
41173
41174 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41175
41176         poll: remove declarations of unused variables
41177         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41178         sockbuf and optlen.
41179
41180 2009-01-15  Bruno Haible  <bruno@clisp.org>
41181
41182         Make fflush-after-ungetc POSIX compliant on BSD systems.
41183         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41184         (clear_ungetc_buffer): Implement also for other systems.
41185         (rpl_fflush): On glibc systems, invoke
41186         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41187         clear_ungetc_buffer after fetching the stream's position, not before.
41188
41189 2009-01-15  Bruno Haible  <bruno@clisp.org>
41190
41191         Make fflush-after-ungetc POSIX compliant on glibc systems.
41192         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41193         after ungetc.
41194         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41195         (rpl_fflush): On glibc systems, simply call the system's fflush
41196         function after clearing the ungetc buffer.
41197         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41198         Instead, lseek only to the end of file, then use the system's fseeko
41199         for the rest. On glibc systems, reset the EOF indicator bit.
41200
41201 2009-01-15  Jim Meyering  <meyering@redhat.com>
41202
41203         openmp.m4: revert quote-adding change, for portability to older autoconf
41204         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41205         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41206         Simon Josefsson noticed the problem when using autoconf-2.61.
41207
41208 2009-01-15  Bruno Haible  <bruno@clisp.org>
41209
41210         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41211         * tests/test-fflush2.c (ASSERT): Always fail.
41212         (main): Add two tests for fflush() after ungetc(), taking into account
41213         the Austin Group's clarification.
41214         Suggested by Eric Blake.
41215
41216 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41217
41218         mktime.m4: remove K&R-style function prototypes
41219         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41220         for the Sun C++ compiler.
41221
41222 2009-01-14  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41225         while including <wchar.h>.
41226         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41227         the system's <wchar.h> file.
41228         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41229
41230 2009-01-14  Bruno Haible  <bruno@clisp.org>
41231
41232         * m4/csharp.m4: Don't mention gettext on the serial number line.
41233         * m4/csharpexec.m4: Likewise.
41234         * m4/eaccess.m4: Likewise.
41235         * m4/javaexec.m4: Likewise.
41236         * m4/sig_atomic_t.m4: Likewise.
41237         * m4/tmpdir.m4: Likewise.
41238         * m4/intldir.m4: Bump gettext version.
41239         * m4/lib-ld.m4: Likewise.
41240
41241 2009-01-14  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/progname.c (set_program_name): Add more comments.
41244         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41245
41246 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41247
41248         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41249         were sys/stat.h does not define it.
41250
41251 2009-01-14  Jim Meyering  <meyering@redhat.com>
41252
41253         many *.m4 files: improve m4 quoting
41254         99% of this change was performed by running the following commands:
41255         git ls-files | grep '\.m4$' | xargs perl -pi \
41256           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41257           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41258           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41259           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41260         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41261         The remainder were to add Copyright dates, increment serial numbers,
41262         undo some changes in comments, exclude m4/intl.m4, and add quotes
41263         around the "1" in ",1" where the unusual spacing prohibited the
41264         above regexps from doing the job.  For more details, see
41265         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41266         * m4/acl.m4: Modified.
41267         * m4/afs.m4: Likewise.
41268         * m4/alloca.m4: Likewise.
41269         * m4/argp.m4: Likewise.
41270         * m4/argz.m4: Likewise.
41271         * m4/atexit.m4: Likewise.
41272         * m4/bison-i18n.m4: Likewise.
41273         * m4/bison.m4: Likewise.
41274         * m4/byteswap.m4: Likewise.
41275         * m4/c-stack.m4: Likewise.
41276         * m4/c-strtod.m4: Likewise.
41277         * m4/calloc.m4: Likewise.
41278         * m4/canonicalize-lgpl.m4: Likewise.
41279         * m4/chown.m4: Likewise.
41280         * m4/clock_time.m4: Likewise.
41281         * m4/codeset.m4: Likewise.
41282         * m4/copy-file.m4: Likewise.
41283         * m4/csharp.m4: Likewise.
41284         * m4/csharpcomp.m4: Likewise.
41285         * m4/csharpexec.m4: Likewise.
41286         * m4/d-ino.m4: Likewise.
41287         * m4/d-type.m4: Likewise.
41288         * m4/dirfd.m4: Likewise.
41289         * m4/double-slash-root.m4: Likewise.
41290         * m4/eaccess.m4: Likewise.
41291         * m4/eealloc.m4: Likewise.
41292         * m4/environ.m4: Likewise.
41293         * m4/errno_h.m4: Likewise.
41294         * m4/euidaccess.m4: Likewise.
41295         * m4/execute.m4: Likewise.
41296         * m4/fatal-signal.m4: Likewise.
41297         * m4/fchdir.m4: Likewise.
41298         * m4/fcntl_h.m4: Likewise.
41299         * m4/fileblocks.m4: Likewise.
41300         * m4/filenamecat.m4: Likewise.
41301         * m4/findprog.m4: Likewise.
41302         * m4/flexmember.m4: Likewise.
41303         * m4/fnmatch.m4: Likewise.
41304         * m4/fopen.m4: Likewise.
41305         * m4/fpending.m4: Likewise.
41306         * m4/fprintf-posix.m4: Likewise.
41307         * m4/free.m4: Likewise.
41308         * m4/frexp.m4: Likewise.
41309         * m4/frexpl.m4: Likewise.
41310         * m4/fsusage.m4: Likewise.
41311         * m4/ftruncate.m4: Likewise.
41312         * m4/gc-camellia.m4: Likewise.
41313         * m4/gc-random.m4: Likewise.
41314         * m4/gc.m4: Likewise.
41315         * m4/getaddrinfo.m4: Likewise.
41316         * m4/getcwd-abort-bug.m4: Likewise.
41317         * m4/getcwd-path-max.m4: Likewise.
41318         * m4/getdate.m4: Likewise.
41319         * m4/getdomainname.m4: Likewise.
41320         * m4/getgroups.m4: Likewise.
41321         * m4/gethostname.m4: Likewise.
41322         * m4/gethrxtime.m4: Likewise.
41323         * m4/getline.m4: Likewise.
41324         * m4/getloadavg.m4: Likewise.
41325         * m4/getndelim2.m4: Likewise.
41326         * m4/getpass.m4: Likewise.
41327         * m4/gettext.m4: Likewise.
41328         * m4/gettime.m4: Likewise.
41329         * m4/gettimeofday.m4: Likewise.
41330         * m4/gnulib-common.m4: Likewise.
41331         * m4/group-member.m4: Likewise.
41332         * m4/host-os.m4: Likewise.
41333         * m4/iconv.m4: Likewise.
41334         * m4/iconv_open.m4: Likewise.
41335         * m4/inet_ntop.m4: Likewise.
41336         * m4/inet_pton.m4: Likewise.
41337         * m4/inline.m4: Likewise.
41338         * m4/intldir.m4: Likewise.
41339         * m4/intlmacosx.m4: Likewise.
41340         * m4/intmax.m4: Likewise.
41341         * m4/intmax_t.m4: Likewise.
41342         * m4/inttypes.m4: Likewise.
41343         * m4/inttypes_h.m4: Likewise.
41344         * m4/inttypes-pri.m4: Likewise.
41345         * m4/isapipe.m4: Likewise.
41346         * m4/isnand.m4: Likewise.
41347         * m4/isnanf.m4: Likewise.
41348         * m4/isnanl.m4: Likewise.
41349         * m4/javacomp.m4: Likewise.
41350         * m4/javaexec.m4: Likewise.
41351         * m4/jm-winsz1.m4: Likewise.
41352         * m4/jm-winsz2.m4: Likewise.
41353         * m4/lchown.m4: Likewise.
41354         * m4/lcmessage.m4: Likewise.
41355         * m4/ldexpl.m4: Likewise.
41356         * m4/lib-ld.m4: Likewise.
41357         * m4/lib-link.m4: Likewise.
41358         * m4/libsigsegv.m4: Likewise.
41359         * m4/link-follow.m4: Likewise.
41360         * m4/localcharset.m4: Likewise.
41361         * m4/locale-fr.m4: Likewise.
41362         * m4/locale-ja.m4: Likewise.
41363         * m4/locale-tr.m4: Likewise.
41364         * m4/locale-zh.m4: Likewise.
41365         * m4/lock.m4: Likewise.
41366         * m4/longlong.m4: Likewise.
41367         * m4/ls-mntd-fs.m4: Likewise.
41368         * m4/lstat.m4: Likewise.
41369         * m4/malloc.m4: Likewise.
41370         * m4/mathl.m4: Likewise.
41371         * m4/mbrtowc.m4: Likewise.
41372         * m4/mbstate_t.m4: Likewise.
41373         * m4/mbswidth.m4: Likewise.
41374         * m4/memchr.m4: Likewise.
41375         * m4/memcmp.m4: Likewise.
41376         * m4/memcpy.m4: Likewise.
41377         * m4/memmem.m4: Likewise.
41378         * m4/memmove.m4: Likewise.
41379         * m4/mempcpy.m4: Likewise.
41380         * m4/memrchr.m4: Likewise.
41381         * m4/memset.m4: Likewise.
41382         * m4/minmax.m4: Likewise.
41383         * m4/mkdir-slash.m4: Likewise.
41384         * m4/mkdtemp.m4: Likewise.
41385         * m4/mktime.m4: Likewise.
41386         * m4/mmap-anon.m4: Likewise.
41387         * m4/mountlist.m4: Likewise.
41388         * m4/nanosleep.m4: Likewise.
41389         * m4/nls.m4: Likewise.
41390         * m4/nocrash.m4: Likewise.
41391         * m4/open.m4: Likewise.
41392         * m4/openat.m4: Likewise.
41393         * m4/openmp.m4: Likewise.
41394         * m4/pathmax.m4: Likewise.
41395         * m4/perl.m4: Likewise.
41396         * m4/physmem.m4: Likewise.
41397         * m4/pipe.m4: Likewise.
41398         * m4/po.m4: Likewise.
41399         * m4/poll.m4: Likewise.
41400         * m4/posixtm.m4: Likewise.
41401         * m4/posixver.m4: Likewise.
41402         * m4/printf-frexp.m4: Likewise.
41403         * m4/printf-frexpl.m4: Likewise.
41404         * m4/printf-posix.m4: Likewise.
41405         * m4/printf-posix-rpl.m4: Likewise.
41406         * m4/printf.m4: Likewise.
41407         * m4/progtest.m4: Likewise.
41408         * m4/putenv.m4: Likewise.
41409         * m4/readline.m4: Likewise.
41410         * m4/readlink.m4: Likewise.
41411         * m4/readutmp.m4: Likewise.
41412         * m4/realloc.m4: Likewise.
41413         * m4/regex.m4: Likewise.
41414         * m4/relocatable.m4: Likewise.
41415         * m4/relocatable-lib.m4: Likewise.
41416         * m4/rename-dest-slash.m4: Likewise.
41417         * m4/rename.m4: Likewise.
41418         * m4/rmdir-errno.m4: Likewise.
41419         * m4/rmdir.m4: Likewise.
41420         * m4/roundf.m4: Likewise.
41421         * m4/roundl.m4: Likewise.
41422         * m4/rpmatch.m4: Likewise.
41423         * m4/save-cwd.m4: Likewise.
41424         * m4/selinux-selinux-h.m4: Likewise.
41425         * m4/setenv.m4: Likewise.
41426         * m4/settime.m4: Likewise.
41427         * m4/sig2str.m4: Likewise.
41428         * m4/sig_atomic_t.m4: Likewise.
41429         * m4/signalblocking.m4: Likewise.
41430         * m4/signbit.m4: Likewise.
41431         * m4/sigpipe.m4: Likewise.
41432         * m4/sockets.m4: Likewise.
41433         * m4/sockpfaf.m4: Likewise.
41434         * m4/st_dm_mode.m4: Likewise.
41435         * m4/stat-time.m4: Likewise.
41436         * m4/stdbool.m4: Likewise.
41437         * m4/stdint.m4: Likewise.
41438         * m4/stdint_h.m4: Likewise.
41439         * m4/stpcpy.m4: Likewise.
41440         * m4/stpncpy.m4: Likewise.
41441         * m4/strcase.m4: Likewise.
41442         * m4/strchrnul.m4: Likewise.
41443         * m4/strcspn.m4: Likewise.
41444         * m4/strdup.m4: Likewise.
41445         * m4/strftime.m4: Likewise.
41446         * m4/strndup.m4: Likewise.
41447         * m4/strnlen.m4: Likewise.
41448         * m4/strpbrk.m4: Likewise.
41449         * m4/strptime.m4: Likewise.
41450         * m4/strsep.m4: Likewise.
41451         * m4/strtod.m4: Likewise.
41452         * m4/strtoimax.m4: Likewise.
41453         * m4/strtok_r.m4: Likewise.
41454         * m4/strtol.m4: Likewise.
41455         * m4/strtoll.m4: Likewise.
41456         * m4/strtoul.m4: Likewise.
41457         * m4/strtoull.m4: Likewise.
41458         * m4/strtoumax.m4: Likewise.
41459         * m4/strverscmp.m4: Likewise.
41460         * m4/threadlib.m4: Likewise.
41461         * m4/timegm.m4: Likewise.
41462         * m4/tm_gmtoff.m4: Likewise.
41463         * m4/tmpdir.m4: Likewise.
41464         * m4/tmpfile.m4: Likewise.
41465         * m4/tzset.m4: Likewise.
41466         * m4/uintmax_t.m4: Likewise.
41467         * m4/unlinkdir.m4: Likewise.
41468         * m4/unlocked-io.m4: Likewise.
41469         * m4/uptime.m4: Likewise.
41470         * m4/userspec.m4: Likewise.
41471         * m4/utimbuf.m4: Likewise.
41472         * m4/utime.m4: Likewise.
41473         * m4/utimes-null.m4: Likewise.
41474         * m4/utimes.m4: Likewise.
41475         * m4/vararrays.m4: Likewise.
41476         * m4/vasnprintf.m4: Likewise.
41477         * m4/vfprintf-posix.m4: Likewise.
41478         * m4/vprintf-posix.m4: Likewise.
41479         * m4/wait-process.m4: Likewise.
41480         * m4/wchar_t.m4: Likewise.
41481         * m4/wint_t.m4: Likewise.
41482         * m4/write-any-file.m4: Likewise.
41483         * m4/yield.m4: Likewise.
41484
41485 2009-01-13  Bruno Haible  <bruno@clisp.org>
41486
41487         Avoid test-copy-file.sh failures when ACL support insufficient.
41488         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41489         TESTS_ENVIRONMENT.
41490         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41491         Reported by Jim Meyering.
41492
41493 2009-01-13  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41496         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41497         * modules/unistdio/u8-printf-parse (Files): Likewise.
41498         * modules/unistdio/u32-printf-parse (Files): Likewise.
41499         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41500
41501 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41502
41503         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41504         and m4/inttypes_h.m4 too.
41505
41506 2009-01-12  Eric Blake  <ebb9@byu.net>
41507
41508         tests: IRIX 6.2 cc can't compile -0.0 into .data
41509         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41510         rather than at compile-time.
41511         * tests/test-floorl.c (minus_zero): Likewise.
41512         * tests/test-frexpl.c (minus_zero): Likewise.
41513         * tests/test-isnan.c (minus_zerol): Likewise.
41514         * tests/test-isnanl.h (minus_zero): Likewise.
41515         * tests/test-ldexpl.c (minus_zero): Likewise.
41516         * tests/test-roundl.c (minus_zero): Likewise.
41517         * tests/test-signbit.c (minus_zerol): Likewise.
41518         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41519         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41520         * tests/test-truncl.c (minus_zero): Likewise.
41521         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41522         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41523         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41524
41525 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41526
41527         regex: fix glibc bug 9697
41528         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41529         handling.
41530
41531 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41532
41533         regex: fix glibc bug 697
41534         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41535         being NULL also if there are no backreferences.
41536
41537 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41538
41539         regex: merge glibc changes
41540         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41541         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41542         re_string_skip_chars, re_string_reconstruct): Likewise.
41543         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41544
41545 2009-01-07  Jim Meyering  <meyering@redhat.com>
41546
41547         poll: filter through cppi
41548         * lib/poll.c: Indent cpp directives to reflect nesting.
41549
41550 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41551
41552         poll: don't return uninitialized
41553         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41554
41555 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41556
41557         avoid compile failure on AIX 6.1
41558         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41559         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41560
41561 2009-01-04  Jim Meyering  <meyering@redhat.com>
41562
41563         remove duplicate inclusion of <stdio.h>
41564         * tests/test-fprintf-posix.c: Likewise.
41565         * tests/test-printf-posix.c: Likewise.
41566         * tests/test-snprintf-posix.c: Likewise.
41567         * tests/test-sprintf-posix.c: Likewise.
41568         * tests/test-vasprintf-posix.c: Likewise.
41569         * tests/test-vfprintf-posix.c: Likewise.
41570         * tests/test-vprintf-posix.c: Likewise.
41571         * tests/test-vsnprintf-posix.c: Likewise.
41572         * tests/test-vsprintf-posix.c: Likewise.
41573
41574 2009-01-03  Jim Meyering  <meyering@redhat.com>
41575
41576         gnulib-tool: fix sed-based filtering
41577         * gnulib-tool (func_filter_filelist): Remove extra backslash
41578         in sed_fff_filter definition.
41579
41580 2009-01-02  Jim Meyering  <meyering@redhat.com>
41581
41582         strftime: avoid compilation failure on Solaris 2.6
41583         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41584         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41585         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41586         be available.  Reported by Tom G. Christensen.  Details in
41587         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41588
41589 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41590             Bruno Haible  <bruno@clisp.org>
41591
41592         Speed up gnulib-tool by doing more string processing through shell
41593         built-ins.
41594         * gnulib-tool (fast_func_append): New variable.
41595         (func_remove_prefix, func_remove_suffix): New functions.
41596         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41597         (func_filter_filelist): New function.
41598         (func_get_dependencies): Use func_remove_suffix instead of sed.
41599         (func_get_automake_snippet): Use func_filter_filelist instead of a
41600         subshell and sed invocation.
41601
41602 2009-01-01  Bruno Haible  <bruno@clisp.org>
41603
41604         Fix a security bug.
41605         * gnulib-tool (func_import, import, update): Don't allow the characters
41606         '"', '$', '`', '\' in macro arguments that become part of commands that
41607         are evaluated.
41608
41609 2009-01-01  Bruno Haible  <bruno@clisp.org>
41610
41611         * gnulib-tool (func_reset_sigpipe): Add more comments.
41612
41613 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41614
41615         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41616         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41617         already know the answer.
41618
41619 2009-01-01  Jim Meyering  <meyering@redhat.com>
41620
41621         * lib/version-etc.c (version_etc_va): Update copyright year.
41622
41623 2008-12-30  Bruno Haible  <bruno@clisp.org>
41624
41625         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41626         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41627         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41628
41629 2008-12-29  Eric Blake  <ebb9@byu.net>
41630
41631         multiarch: avoid autoconf AC_REQUIRE bug
41632         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41633         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41634         2.63 and older.
41635         Reported by Bruno Haible, and analyzed in
41636         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41637
41638 2008-12-29  Bruno Haible  <bruno@clisp.org>
41639
41640         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41641         files in subdirectories correctly.
41642         Reported by Ralf Wildenhues.
41643
41644 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41645
41646         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41647         rather than 'join FILE -', for Solaris join.
41648
41649 2008-12-29  Bruno Haible  <bruno@clisp.org>
41650
41651         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41652         quoting.
41653         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41654         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41655         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41656         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41657         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41658         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41659         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41660         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41661         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41662         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41663         * m4/nls.m4 (AM_NLS): Likewise.
41664         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41665         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41666         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41667         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41668         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41669         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41670         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41671         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41672         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41673         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41674         * m4/xsize.m4 (gl_XSIZE): Likewise.
41675         Suggested by Jim Meyering.
41676
41677 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41678
41679         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41680         * lib/parse-duration.c: use a switch instead of cascading if's.
41681
41682 2008-12-29  Eric Blake  <ebb9@byu.net>
41683
41684         wchar.h: supply WEOF on Irix 5.3
41685         * lib/wchar.in.h (wint_t): Also supply WEOF.
41686         * lib/wctype.in.h (wint_t): Likewise.
41687         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41688         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41689         Reported by Tom G. Christensen.
41690
41691 2008-12-26  Bruno Haible  <bruno@clisp.org>
41692
41693         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41694         i486, i586, i686.
41695
41696 2008-12-26  Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41699
41700 2008-12-26  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41703         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41704         not __STDC_CONSTANT_MACROS.
41705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41706
41707 2008-12-25  Bruno Haible  <bruno@clisp.org>
41708
41709         Add support for universal builds to vasnprintf.
41710         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41711         universal builds, guess no.
41712         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41713         * modules/vasprintf-posix (Depends-on): Likewise.
41714         * modules/fprintf-posix (Depends-on): Likewise.
41715         * modules/vfprintf-posix (Depends-on): Likewise.
41716         * modules/snprintf-posix (Depends-on): Likewise.
41717         * modules/vsnprintf-posix (Depends-on): Likewise.
41718         * modules/sprintf-posix (Depends-on): Likewise.
41719         * modules/vsprintf-posix (Depends-on): Likewise.
41720         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41721         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41722         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41723         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41724         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41725         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41726         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41727
41728         Add support for universal builds to <inttypes.h>.
41729         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41730         _SCNu64_PREFIX): In Apple
41731         universal builds, define directly, using _LP64.
41732         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41733         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41734         * modules/inttypes (Depends-on): Add multiarch.
41735         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41736
41737         Add support for universal builds to <stdint.h>.
41738         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41739         universal builds, define directly, using _LP64.
41740         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41741         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41742         and size_t.
41743         * modules/stdint (Depends-on): Add multiarch.
41744         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41745
41746         New module 'multiarch'.
41747         * modules/multiarch: New file.
41748         * m4/multiarch.m4: New file.
41749
41750 2008-12-25  Bruno Haible  <bruno@clisp.org>
41751
41752         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41753
41754 2008-12-25  Bruno Haible  <bruno@clisp.org>
41755
41756         * modules/btowc (License): Relicense under LGPLv2+.
41757         * modules/mbsinit (License): Likewise.
41758         * modules/mbrtowc (License): Likewise.
41759         * modules/wcrtomb (License): Likewise.
41760         * modules/streq (License): Likewise.
41761         Reported by David Lutterkort <lutter@redhat.com>.
41762
41763 2008-12-23  Bruno Haible  <bruno@clisp.org>
41764
41765         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41766
41767 2008-12-23  Bruno Haible  <bruno@clisp.org>
41768
41769         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41771         GETADDRINFO_LIB, not in LIBS.
41772         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41773         * modules/canon-host (Link): Likewise.
41774         * NEWS: Mention the change.
41775         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41776         GETADDRINFO_LIB.
41777
41778 2008-12-22  Bruno Haible  <bruno@clisp.org>
41779
41780         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41781         * doc/posix-functions/iswalpha_l.texi: Likewise.
41782         * doc/posix-functions/iswblank_l.texi: Likewise.
41783         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41784         * doc/posix-functions/iswctype_l.texi: Likewise.
41785         * doc/posix-functions/iswdigit_l.texi: Likewise.
41786         * doc/posix-functions/iswgraph_l.texi: Likewise.
41787         * doc/posix-functions/iswlower_l.texi: Likewise.
41788         * doc/posix-functions/iswprint_l.texi: Likewise.
41789         * doc/posix-functions/iswpunct_l.texi: Likewise.
41790         * doc/posix-functions/iswspace_l.texi: Likewise.
41791         * doc/posix-functions/iswupper_l.texi: Likewise.
41792         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41793         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41794         * doc/posix-functions/open_wmemstream.texi: Likewise.
41795         * doc/posix-functions/swscanf.texi: Likewise.
41796         * doc/posix-functions/towctrans_l.texi: Likewise.
41797         * doc/posix-functions/towlower.texi: Likewise.
41798         * doc/posix-functions/towlower_l.texi: Likewise.
41799         * doc/posix-functions/towupper.texi: Likewise.
41800         * doc/posix-functions/towupper_l.texi: Likewise.
41801         * doc/posix-functions/vfwprintf.texi: Likewise.
41802         * doc/posix-functions/vfwscanf.texi: Likewise.
41803         * doc/posix-functions/vswscanf.texi: Likewise.
41804         * doc/posix-functions/vwprintf.texi: Likewise.
41805         * doc/posix-functions/vwscanf.texi: Likewise.
41806         * doc/posix-functions/wcpcpy.texi: Likewise.
41807         * doc/posix-functions/wcpncpy.texi: Likewise.
41808         * doc/posix-functions/wcscasecmp.texi: Likewise.
41809         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41810         * doc/posix-functions/wcscoll_l.texi: Likewise.
41811         * doc/posix-functions/wcsdup.texi: Likewise.
41812         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41813         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41814         * doc/posix-functions/wcsnlen.texi: Likewise.
41815         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41816         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41817         * doc/posix-functions/wctrans_l.texi: Likewise.
41818         * doc/posix-functions/wctype_l.texi: Likewise.
41819         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41820         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41821         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41822         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41823         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41824         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41825         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41826         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41827         * doc/glibc-functions/wcschrnul.texi: Likewise.
41828         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41829         * doc/glibc-functions/wcstod_l.texi: Likewise.
41830         * doc/glibc-functions/wcstof_l.texi: Likewise.
41831         * doc/glibc-functions/wcstol_l.texi: Likewise.
41832         * doc/glibc-functions/wcstold_l.texi: Likewise.
41833         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41834         * doc/glibc-functions/wcstoq.texi: Likewise.
41835         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41836         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41837         * doc/glibc-functions/wcstouq.texi: Likewise.
41838         * doc/glibc-functions/wmempcpy.texi: Likewise.
41839
41840 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41841             Eric Blake  <ebb9@byu.net>
41842             Paolo Bonzini  <bonzini@gnu.org>
41843             Bruno Haible  <bruno@clisp.org>
41844
41845         Make c-stack work on Haiku.
41846         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41847         (c_stack_action): Use SA_ONSTACK flag.
41848
41849 2008-12-22  Bruno Haible  <bruno@clisp.org>
41850
41851         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41852
41853 2008-12-22  Bruno Haible  <bruno@clisp.org>
41854
41855         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41856         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41857         being overridden.
41858         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41859         New macros.
41860         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41861         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41862         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41863         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41864
41865 2008-12-22  Bruno Haible  <bruno@clisp.org>
41866
41867         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41868         from test code.
41869
41870 2008-12-22  Eric Blake  <ebb9@byu.net>
41871
41872         Avoid gcc warnings on cygwin.
41873         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41874         Avoid unused variable.
41875         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41876         Likewise.
41877
41878 2008-12-22  Bruno Haible  <bruno@clisp.org>
41879
41880         Remove HAVE_MBRTOWC conditionals.
41881         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41882         (mbscasecmp): Assume mbrtowc function.
41883         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41884         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41885         * lib/mbschr.c: Include mbuiter.h unconditionally.
41886         (mbschr): Assume mbrtowc function.
41887         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41888         (mbscspn): Assume mbrtowc function.
41889         * lib/mbslen.c: Include mbuiter.h unconditionally.
41890         (mbslen): Assume mbrtowc function.
41891         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41892         (mbsncasecmp): Assume mbrtowc function.
41893         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41894         (mbsnlen): Assume mbrtowc function.
41895         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41896         (mbspbrk): Assume mbrtowc function.
41897         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41898         (mbspcasecmp): Assume mbrtowc function.
41899         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41900         (mbsrchr): Assume mbrtowc function.
41901         * lib/mbssep.c: Include mbuiter.h unconditionally.
41902         (mbssep): Assume mbrtowc function.
41903         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41904         (mbsspn): Assume mbrtowc function.
41905         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41906         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41907         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41908         (mbstok_r): Assume mbrtowc function.
41909         * lib/propername.c: Include mbuiter.h unconditionally.
41910         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41911         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41912         (trim2): Assume mbrtowc function.
41913         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41914         (mbsnwidth): Assume mbrtowc function.
41915         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41916         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41917         fallback definitions.
41918         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41919
41920 2008-12-22  Bruno Haible  <bruno@clisp.org>
41921
41922         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41923
41924 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41925
41926         * modules/regex: Request emulations for the mb*/wc* functions we need.
41927         * m4/regex.m4: Don't look for those functions here.
41928         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41929
41930 2008-12-22  Bruno Haible  <bruno@clisp.org>
41931
41932         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41933
41934 2008-12-21  Bruno Haible  <bruno@clisp.org>
41935
41936         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41937         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41938         (Include): Remove conditionalization.
41939         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41940         (Include): Remove conditionalization.
41941         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41942         (Include): Remove conditionalization.
41943         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41944         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41945         * NEWS: Mention the change.
41946         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41947         via Sergey Poznyakoff <gray@gnu.org.ua>.
41948
41949 2008-12-21  Bruno Haible  <bruno@clisp.org>
41950
41951         * MODULES.html.sh (Extended multibyte and wide character utilities
41952         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41953         wcrtomb, wcsrtombs.
41954         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41955         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41956         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41957         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41958
41959 2008-12-21  Bruno Haible  <bruno@clisp.org>
41960
41961         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41962
41963 2008-12-21  Bruno Haible  <bruno@clisp.org>
41964
41965         * modules/wcsnrtombs-tests: New file.
41966         * tests/test-wcsnrtombs1.sh: New file.
41967         * tests/test-wcsnrtombs2.sh: New file.
41968         * tests/test-wcsnrtombs3.sh: New file.
41969         * tests/test-wcsnrtombs4.sh: New file.
41970         * tests/test-wcsnrtombs.c: New file.
41971
41972         New module 'wcsnrtombs'.
41973         * lib/wchar.in.h (wcsnrtombs): New declaration.
41974         * lib/wcsnrtombs.c: New file.
41975         * lib/wcsrtombs-state.c: New file.
41976         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41977         (internal_state): Remove variable.
41978         * m4/wcsnrtombs.m4: New file.
41979         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41980         compilation units.
41981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41982         HAVE_WCSNRTOMBS.
41983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41984         HAVE_WCSNRTOMBS.
41985         * modules/wcsnrtombs: New file.
41986         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41987         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41988
41989 2008-12-21  Bruno Haible  <bruno@clisp.org>
41990
41991         * modules/wcsrtombs-tests: New file.
41992         * tests/test-wcsrtombs1.sh: New file.
41993         * tests/test-wcsrtombs2.sh: New file.
41994         * tests/test-wcsrtombs3.sh: New file.
41995         * tests/test-wcsrtombs4.sh: New file.
41996         * tests/test-wcsrtombs.c: New file.
41997
41998         New module 'wcsrtombs'.
41999         * lib/wchar.in.h (wcsrtombs): New declaration.
42000         * lib/wcsrtombs.c: New file.
42001         * m4/wcsrtombs.m4: New file.
42002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42003         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42005         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42006         * modules/wcsrtombs: New file.
42007         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42008         bugs.
42009
42010 2008-12-21  Bruno Haible  <bruno@clisp.org>
42011
42012         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42013         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42014         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42015         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42016         if not correct.
42017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42018         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42019         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42020         m4/locale-zh.m4, m4/codeset.m4.
42021         * doc/posix-functions/wcrtomb.texi: Document the bug.
42022
42023 2008-12-21  Bruno Haible  <bruno@clisp.org>
42024
42025         Work around a btowc() bug on IRIX 6.5.
42026         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42027         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42028         REPLACE_WTOBC if not.
42029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42030         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42031         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42032
42033 2008-12-21  Bruno Haible  <bruno@clisp.org>
42034
42035         * modules/wcrtomb-tests: New file.
42036         * tests/test-wcrtomb.sh: New file.
42037         * tests/test-wcrtomb.c: New file.
42038
42039         New module 'wcrtomb'.
42040         * lib/wchar.in.h (wcrtomb): New declaration.
42041         * lib/wcrtomb.c: New file.
42042         * m4/wcrtomb.m4: New file.
42043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42044         HAVE_WCRTOMB.
42045         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42046         HAVE_WCRTOMB.
42047         * modules/wcrtomb: New file.
42048         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42049
42050 2008-12-21  Bruno Haible  <bruno@clisp.org>
42051
42052         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42053         * modules/mbsrtowcs (Files): Likewise.
42054         * modules/wctob (Files): Likewise.
42055         * modules/c-strcase-tests (Files): Likewise.
42056         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42057         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42058         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42059         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42060         * modules/vasnprintf-posix-tests (Files): Likewise.
42061
42062 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42063
42064         gitlog-to-changelog: pass all command-line arguments to git-log
42065         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42066         it is sometimes convenient to filter the commits in various ways.
42067         gitlog-to-changelog only allows --since to specify a start date,
42068         but git-log itself supports many other filtering mechanisms.
42069         At the moment, I want to filter by branch name.  Rather than
42070         adding a --branch option to gitlog-to-changelog, it seems more
42071         flexible to simply pass all options directly to git-log and let
42072         git do the work.  Notice that this effectively makes --since a
42073         redundant option for gitlog-to-changelog, but removing it would
42074         require current usage to change since calls would then require
42075         an additional '--'.
42076
42077 2008-12-21  Bruno Haible  <bruno@clisp.org>
42078
42079         * modules/mbsnrtowcs-tests: New file.
42080         * tests/test-mbsnrtowcs1.sh: New file.
42081         * tests/test-mbsnrtowcs2.sh: New file.
42082         * tests/test-mbsnrtowcs3.sh: New file.
42083         * tests/test-mbsnrtowcs4.sh: New file.
42084         * tests/test-mbsnrtowcs.c: New file.
42085
42086         New module 'mbsnrtowcs'.
42087         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42088         * lib/mbsnrtowcs.c: New file.
42089         * lib/mbsrtowcs-state.c: New file.
42090         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42091         (internal_state): Remove variable.
42092         * m4/mbsnrtowcs.m4: New file.
42093         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42094         compilation units.
42095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42096         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42097         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42098         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42099         * modules/mbsnrtowcs: New file.
42100         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42101         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42102         portability problem.
42103
42104 2008-12-21  Bruno Haible  <bruno@clisp.org>
42105
42106         Work around mbsrtowcs bug.
42107         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42108         (gl_FUNC_MBSRTOWCS): Invoke it.
42109         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42110         m4/locale-zh.m4.
42111         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42112
42113 2008-12-21  Bruno Haible  <bruno@clisp.org>
42114
42115         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42116
42117 2008-12-21  Bruno Haible  <bruno@clisp.org>
42118
42119         Update doc for AIX.
42120         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42121         16-bit wchar_t type.
42122         * doc/posix-functions/btowc.texi: Likewise.
42123         * doc/posix-functions/fgetwc.texi: Likewise.
42124         * doc/posix-functions/fgetws.texi: Likewise.
42125         * doc/posix-functions/fputwc.texi: Likewise.
42126         * doc/posix-functions/fputws.texi: Likewise.
42127         * doc/posix-functions/fwide.texi: Likewise.
42128         * doc/posix-functions/fwprintf.texi: Likewise.
42129         * doc/posix-functions/fwscanf.texi: Likewise.
42130         * doc/posix-functions/getwchar.texi: Likewise.
42131         * doc/posix-functions/getwc.texi: Likewise.
42132         * doc/posix-functions/iswalnum.texi: Likewise.
42133         * doc/posix-functions/iswalpha.texi: Likewise.
42134         * doc/posix-functions/iswblank.texi: Likewise.
42135         * doc/posix-functions/iswcntrl.texi: Likewise.
42136         * doc/posix-functions/iswctype.texi: Likewise.
42137         * doc/posix-functions/iswdigit.texi: Likewise.
42138         * doc/posix-functions/iswgraph.texi: Likewise.
42139         * doc/posix-functions/iswlower.texi: Likewise.
42140         * doc/posix-functions/iswprint.texi: Likewise.
42141         * doc/posix-functions/iswpunct.texi: Likewise.
42142         * doc/posix-functions/iswspace.texi: Likewise.
42143         * doc/posix-functions/iswupper.texi: Likewise.
42144         * doc/posix-functions/iswxdigit.texi: Likewise.
42145         * doc/posix-functions/mbrtowc.texi: Likewise.
42146         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42147         * doc/posix-functions/mbstowcs.texi: Likewise.
42148         * doc/posix-functions/mbtowc.texi: Likewise.
42149         * doc/posix-functions/putwchar.texi: Likewise.
42150         * doc/posix-functions/putwc.texi: Likewise.
42151         * doc/posix-functions/swprintf.texi: Likewise.
42152         * doc/posix-functions/tolower.texi: Likewise.
42153         * doc/posix-functions/toupper.texi: Likewise.
42154         * doc/posix-functions/towctrans.texi: Likewise.
42155         * doc/posix-functions/ungetwc.texi: Likewise.
42156         * doc/posix-functions/vswprintf.texi: Likewise.
42157         * doc/posix-functions/wcrtomb.texi: Likewise.
42158         * doc/posix-functions/wcscat.texi: Likewise.
42159         * doc/posix-functions/wcschr.texi: Likewise.
42160         * doc/posix-functions/wcscmp.texi: Likewise.
42161         * doc/posix-functions/wcscoll.texi: Likewise.
42162         * doc/posix-functions/wcscpy.texi: Likewise.
42163         * doc/posix-functions/wcscspn.texi: Likewise.
42164         * doc/posix-functions/wcsftime.texi: Likewise.
42165         * doc/posix-functions/wcslen.texi: Likewise.
42166         * doc/posix-functions/wcsncat.texi: Likewise.
42167         * doc/posix-functions/wcsncmp.texi: Likewise.
42168         * doc/posix-functions/wcsncpy.texi: Likewise.
42169         * doc/posix-functions/wcspbrk.texi: Likewise.
42170         * doc/posix-functions/wcsrchr.texi: Likewise.
42171         * doc/posix-functions/wcsrtombs.texi: Likewise.
42172         * doc/posix-functions/wcsspn.texi: Likewise.
42173         * doc/posix-functions/wcsstr.texi: Likewise.
42174         * doc/posix-functions/wcstod.texi: Likewise.
42175         * doc/posix-functions/wcstof.texi: Likewise.
42176         * doc/posix-functions/wcstoimax.texi: Likewise.
42177         * doc/posix-functions/wcstok.texi: Likewise.
42178         * doc/posix-functions/wcstold.texi: Likewise.
42179         * doc/posix-functions/wcstoll.texi: Likewise.
42180         * doc/posix-functions/wcstol.texi: Likewise.
42181         * doc/posix-functions/wcstombs.texi: Likewise.
42182         * doc/posix-functions/wcstoull.texi: Likewise.
42183         * doc/posix-functions/wcstoul.texi: Likewise.
42184         * doc/posix-functions/wcstoumax.texi: Likewise.
42185         * doc/posix-functions/wcswidth.texi: Likewise.
42186         * doc/posix-functions/wcsxfrm.texi: Likewise.
42187         * doc/posix-functions/wctob.texi: Likewise.
42188         * doc/posix-functions/wctomb.texi: Likewise.
42189         * doc/posix-functions/wctrans.texi: Likewise.
42190         * doc/posix-functions/wctype.texi: Likewise.
42191         * doc/posix-functions/wcwidth.texi: Likewise.
42192         * doc/posix-functions/wmemchr.texi: Likewise.
42193         * doc/posix-functions/wmemcmp.texi: Likewise.
42194         * doc/posix-functions/wmemcpy.texi: Likewise.
42195         * doc/posix-functions/wmemmove.texi: Likewise.
42196         * doc/posix-functions/wmemset.texi: Likewise.
42197         * doc/posix-functions/wprintf.texi: Likewise.
42198         * doc/posix-functions/wscanf.texi: Likewise.
42199
42200 2008-12-21  Bruno Haible  <bruno@clisp.org>
42201
42202         Update doc for HP-UX 11.11.
42203         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42204         in HP-UX version 11.00, not in all versions of HP-UX 11.
42205         * doc/posix-functions/fwide.texi: Likewise.
42206         * doc/posix-functions/fwprintf.texi: Likewise.
42207         * doc/posix-functions/fwscanf.texi: Likewise.
42208         * doc/posix-functions/inet_ntop.texi: Likewise.
42209         * doc/posix-functions/inet_pton.texi: Likewise.
42210         * doc/posix-functions/mbrlen.texi: Likewise.
42211         * doc/posix-functions/mbrtowc.texi: Likewise.
42212         * doc/posix-functions/mbsinit.texi: Likewise.
42213         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42214         * doc/posix-functions/swprintf.texi: Likewise.
42215         * doc/posix-functions/swscanf.texi: Likewise.
42216         * doc/posix-functions/towctrans.texi: Likewise.
42217         * doc/posix-functions/vfwprintf.texi: Likewise.
42218         * doc/posix-functions/vswprintf.texi: Likewise.
42219         * doc/posix-functions/vwprintf.texi: Likewise.
42220         * doc/posix-functions/wcrtomb.texi: Likewise.
42221         * doc/posix-functions/wcsrtombs.texi: Likewise.
42222         * doc/posix-functions/wcsstr.texi: Likewise.
42223         * doc/posix-functions/wctob.texi: Likewise.
42224         * doc/posix-functions/wctrans.texi: Likewise.
42225         * doc/posix-functions/wmemchr.texi: Likewise.
42226         * doc/posix-functions/wmemcmp.texi: Likewise.
42227         * doc/posix-functions/wmemcpy.texi: Likewise.
42228         * doc/posix-functions/wmemmove.texi: Likewise.
42229         * doc/posix-functions/wmemset.texi: Likewise.
42230         * doc/posix-functions/wprintf.texi: Likewise.
42231         * doc/posix-functions/wscanf.texi: Likewise.
42232
42233 2008-12-21  Bruno Haible  <bruno@clisp.org>
42234
42235         Work around a portability problem.
42236         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42237         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42238
42239 2008-12-20  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42242         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42243         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42245         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42246
42247         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42248         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42249         set.
42250         (GNULIB_defined_mbstate_t): New macro.
42251         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42252         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42253         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42254         reuses the system's mbrtowc function but works around the bugs.
42255         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42256         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42257         macros.
42258         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42259         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42260         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42261         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42262         REPLACE_MBSINIT if mbsinit needs to be overridden.
42263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42264         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42265         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42266         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42267         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42268         m4/locale-zh.m4.
42269         (Depends): Add mbsinit.
42270         * modules/mbsinit (Depends): Add mbrtowc.
42271         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42272
42273 2008-12-20  Bruno Haible  <bruno@clisp.org>
42274
42275         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42276         so that there are no conversion errors on AIX.
42277         * tests/test-mbsrtowcs.c (main): LIkewise.
42278
42279 2008-12-20  Bruno Haible  <bruno@clisp.org>
42280
42281         Work around wctob bug on Solaris <= 9.
42282         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42283         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42285         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42286         * modules/wctob (Files): Add m4/locale-fr.m4.
42287         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42288
42289 2008-12-20  Bruno Haible  <bruno@clisp.org>
42290
42291         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42292         /dev/null.
42293         * tests/test-select-in.sh: Likewise.
42294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42295
42296 2008-12-20  Bruno Haible  <bruno@clisp.org>
42297
42298         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42299         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42300         Cygwin 1.5.x.
42301
42302 2008-12-20  Bruno Haible  <bruno@clisp.org>
42303
42304         Ensure mbstate_t is defined on HP-UX 11.11.
42305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42306         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42307         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42308         AC_USE_SYSTEM_EXTENSIONS.
42309         * modules/fnmatch (Depends-on): Add extensions.
42310         * modules/mbrlen (Depends-on): Likewise.
42311         * modules/mbrtowc (Depends-on): Likewise.
42312         * modules/mbsinit (Depends-on): Likewise.
42313         * modules/mbsrtowcs (Depends-on): Likewise.
42314         * modules/mbswidth (Depends-on): Likewise.
42315         * modules/quotearg (Depends-on): Likewise.
42316         * modules/strftime (Depends-on): Likewise.
42317
42318 2008-12-20  Bruno Haible  <bruno@clisp.org>
42319
42320         Ensure wctob is declared on IRIX 6.5.
42321         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42322         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42323         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42325         of HAVE_WCTOB.
42326         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42327         HAVE_WCTOB.
42328         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42329
42330 2008-12-19  Bruno Haible  <bruno@clisp.org>
42331
42332         * modules/mbsrtowcs-tests: New file.
42333         * tests/test-mbsrtowcs1.sh: New file.
42334         * tests/test-mbsrtowcs2.sh: New file.
42335         * tests/test-mbsrtowcs3.sh: New file.
42336         * tests/test-mbsrtowcs4.sh: New file.
42337         * tests/test-mbsrtowcs.c: New file.
42338
42339         New module 'mbsrtowcs'.
42340         * lib/wchar.in.h (mbsrtowcs): New declaration.
42341         * lib/mbsrtowcs.c: New file.
42342         * m4/mbsrtowcs.m4: New file.
42343         * modules/mbsrtowcs: New file.
42344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42345         HAVE_MBSRTOWCS.
42346         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42347         HAVE_MBSRTOWCS.
42348         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42349
42350 2008-12-19  Bruno Haible  <bruno@clisp.org>
42351
42352         New module 'mbrlen'.
42353         * lib/wchar.in.h (mbrlen): New declaration.
42354         * lib/mbrlen.c: New file.
42355         * m4/mbrlen.m4: New file.
42356         * modules/mbrlen: New file.
42357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42358         HAVE_MBRLEN.
42359         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42360         HAVE_MBRLEN.
42361         * doc/posix-functions/mbrlen.texi: Document the new module.
42362
42363 2008-12-19  Bruno Haible  <bruno@clisp.org>
42364
42365         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42366         * modules/mbrtowc (Depends-on): Add verify.
42367         Suggested by Paul Eggert.
42368
42369 2008-12-18  Bruno Haible  <bruno@clisp.org>
42370
42371         * modules/mbsinit-tests: New file.
42372         * tests/test-mbsinit.sh: New file.
42373         * tests/test-mbsinit.c: New file.
42374
42375 2008-12-18  Bruno Haible  <bruno@clisp.org>
42376
42377         * modules/mbrtowc-tests: New file.
42378         * tests/test-mbrtowc1.sh: New file.
42379         * tests/test-mbrtowc2.sh: New file.
42380         * tests/test-mbrtowc3.sh: New file.
42381         * tests/test-mbrtowc4.sh: New file.
42382         * tests/test-mbrtowc.c: New file.
42383
42384         New module 'mbrtowc'.
42385         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42386         mbsinit and mbrtowc.
42387         (mbrtowc): New declaration.
42388         * lib/mbrtowc.c: New file.
42389         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42390         * modules/mbrtowc: New file.
42391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42392         HAVE_MBRTOWC.
42393         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42394         HAVE_MBRTOWC.
42395         * doc/posix-functions/mbrtowc.texi: Document the new module.
42396
42397 2008-12-18  Bruno Haible  <bruno@clisp.org>
42398
42399         New module 'wctob'.
42400         * lib/wchar.in.h (wctob): New declaration.
42401         * lib/wctob.c: New file.
42402         * m4/wctob.m4: New file.
42403         * modules/wctob: New file.
42404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42405         HAVE_WCTOB.
42406         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42407         * doc/posix-functions/wctob.texi: Document the new module.
42408
42409 2008-12-18  Bruno Haible  <bruno@clisp.org>
42410
42411         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42412         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42413
42414 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42415
42416         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42417         G. Christensen" <tgc@jupiterrise.com>.
42418
42419         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42420         G. Christensen" <tgc@jupiterrise.com>.
42421
42422         * lib/flock.c: Need to include string.h.  Reported by "Tom
42423         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42424         <ebb9@byu.net>.
42425
42426 2008-12-18  Bruno Haible  <bruno@clisp.org>
42427
42428         * m4/locale-ja.m4: New file, from GNU gettext.
42429
42430 2008-12-17  Bruno Haible  <bruno@clisp.org>
42431
42432         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42433         Suggested by Eric Blake.
42434
42435 2008-12-17  Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42438
42439 2008-12-17  Bruno Haible  <bruno@clisp.org>
42440
42441         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42442         * modules/mbsinit (Depends-on): Add verify.
42443         Suggested by Paul Eggert.
42444
42445 2008-12-17  Bruno Haible  <bruno@clisp.org>
42446
42447         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42448         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42449         gl_FUNC_MBRTOWC.
42450         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42451         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42452         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42453         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42454         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42455         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42456         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42457         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42458         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42459         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42460         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42461         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42462         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42463         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42464         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42465         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42466         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42467         * modules/trim (configure.ac): Likewise.
42468
42469 2008-12-17  Bruno Haible  <bruno@clisp.org>
42470
42471         * modules/btowc-tests: New file.
42472         * tests/test-btowc1.sh: New file.
42473         * tests/test-btowc2.sh: New file.
42474         * tests/test-btowc.c: New file.
42475
42476         New module 'btowc'.
42477         * lib/wchar.in.h (btowc): New declaration.
42478         * lib/btowc.c: New file.
42479         * m4/btowc.m4: New file.
42480         * modules/btowc: New file.
42481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42482         HAVE_BTOWC.
42483         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42484         * doc/posix-functions/btowc.texi: Document the new module.
42485
42486 2008-12-17  Bruno Haible  <bruno@clisp.org>
42487
42488         New module 'mbsinit'.
42489         * lib/wchar.in.h (mbsinit): New declaration.
42490         * lib/mbsinit.c: New file.
42491         * m4/mbsinit.m4: New file.
42492         * modules/mbsinit: New file.
42493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42494         HAVE_MBSINIT.
42495         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42496         HAVE_MBSINIT.
42497         * doc/posix-functions/mbsinit.texi: Document the new module.
42498
42499 2008-12-16  Bruno Haible  <bruno@clisp.org>
42500
42501         * lib/unistd.in.h: Add comment.
42502         * tests/test-environ.c: Don't include <stdlib.h>.
42503
42504 2008-12-16  Bruno Haible  <bruno@clisp.org>
42505
42506         * lib/parse-duration.h (parse_duration): Document return value
42507         convention.
42508         * lib/parse-duration.c: Include specification header first. Add
42509         comments.
42510         (_): Remove macro.
42511         (parse_year_month_day, parse_hour_minute_second): Move side effects
42512         outside of strchr call.
42513         (parse_non_iso8601): Move side effects outside of isspace call.
42514         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42515         call.
42516
42517 2008-12-16  Bruno Haible  <bruno@clisp.org>
42518
42519         * tests/test-parse-duration.sh: Produce no output when the test
42520         succeeds.
42521
42522 2008-12-16  Bruno Haible  <bruno@clisp.org>
42523
42524         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42525         expressions.
42526
42527 2008-12-15  Bruno Haible  <bruno@clisp.org>
42528
42529         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42530         * doc/glibc-functions/flistxattr.texi: Likewise.
42531         * doc/glibc-functions/fopencookie.texi: Likewise.
42532         * doc/glibc-functions/fremovexattr.texi: Likewise.
42533         * doc/glibc-functions/fsetxattr.texi: Likewise.
42534         * doc/glibc-functions/getxattr.texi: Likewise.
42535         * doc/glibc-functions/lgetxattr.texi: Likewise.
42536         * doc/glibc-functions/listxattr.texi: Likewise.
42537         * doc/glibc-functions/llistxattr.texi: Likewise.
42538         * doc/glibc-functions/lremovexattr.texi: Likewise.
42539         * doc/glibc-functions/lsetxattr.texi: Likewise.
42540         * doc/glibc-functions/removexattr.texi: Likewise.
42541         * doc/glibc-functions/setxattr.texi: Likewise.
42542         * doc/posix-functions/open_memstream.texi: Likewise.
42543
42544 2008-12-15  Eric Blake  <ebb9@byu.net>
42545
42546         Update doc for cygwin 1.7.
42547         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42548         functions.
42549         * doc/posix-functions/fchmodat.texi: Likewise.
42550         * doc/posix-functions/fchownat.texi: Likewise.
42551         * doc/posix-functions/fdopendir.texi: Likewise.
42552         * doc/posix-functions/fmemopen.texi: Likewise.
42553         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42554         * doc/posix-functions/fstatat.texi: Likewise.
42555         * doc/posix-functions/futimens.texi: Likewise.
42556         * doc/posix-functions/gai_strerror.texi: Likewise.
42557         * doc/posix-functions/getaddrinfo.texi: Likewise.
42558         * doc/posix-functions/getnameinfo.texi: Likewise.
42559         * doc/posix-functions/if_freenameindex.texi: Likewise.
42560         * doc/posix-functions/if_indextoname.texi: Likewise.
42561         * doc/posix-functions/if_nameindex.texi: Likewise.
42562         * doc/posix-functions/if_nametoindex.texi: Likewise.
42563         * doc/posix-functions/insque.texi: Likewise.
42564         * doc/posix-functions/linkat.texi: Likewise.
42565         * doc/posix-functions/llrint.texi: Likewise.
42566         * doc/posix-functions/llrintf.texi: Likewise.
42567         * doc/posix-functions/llrintl.texi: Likewise.
42568         * doc/posix-functions/lockf.texi: Likewise.
42569         * doc/posix-functions/lrintl.texi: Likewise.
42570         * doc/posix-functions/mkdirat.texi: Likewise.
42571         * doc/posix-functions/mkfifoat.texi: Likewise.
42572         * doc/posix-functions/mknodat.texi: Likewise.
42573         * doc/posix-functions/mq_close.texi: Likewise.
42574         * doc/posix-functions/mq_getattr.texi: Likewise.
42575         * doc/posix-functions/mq_notify.texi: Likewise.
42576         * doc/posix-functions/mq_open.texi: Likewise.
42577         * doc/posix-functions/mq_receive.texi: Likewise.
42578         * doc/posix-functions/mq_send.texi: Likewise.
42579         * doc/posix-functions/mq_setattr.texi: Likewise.
42580         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42581         * doc/posix-functions/mq_timedsend.texi: Likewise.
42582         * doc/posix-functions/mq_unlink.texi: Likewise.
42583         * doc/posix-functions/open_memstream.texi: Likewise.
42584         * doc/posix-functions/openat.texi: Likewise.
42585         * doc/posix-functions/posix_fadvise.texi: Likewise.
42586         * doc/posix-functions/posix_fallocate.texi: Likewise.
42587         * doc/posix-functions/posix_madvise.texi: Likewise.
42588         * doc/posix-functions/posix_memalign.texi: Likewise.
42589         * doc/posix-functions/posix_openpt.texi: Likewise.
42590         * doc/posix-functions/readlinkat.texi: Likewise.
42591         * doc/posix-functions/remque.texi: Likewise.
42592         * doc/posix-functions/renameat.texi: Likewise.
42593         * doc/posix-functions/rintl.texi: Likewise.
42594         * doc/posix-functions/sem_unlink.texi: Likewise.
42595         * doc/posix-functions/shm_open.texi: Likewise.
42596         * doc/posix-functions/shm_unlink.texi: Likewise.
42597         * doc/posix-functions/signgam.texi: Likewise.
42598         * doc/posix-functions/sigset.texi: Likewise.
42599         * doc/posix-functions/stpcpy.texi: Likewise.
42600         * doc/posix-functions/stpncpy.texi: Likewise.
42601         * doc/posix-functions/strerror.texi: Likewise.
42602         * doc/posix-functions/strtod.texi: Likewise.
42603         * doc/posix-functions/symlinkat.texi: Likewise.
42604         * doc/posix-functions/unlinkat.texi: Likewise.
42605         * doc/posix-functions/utimensat.texi: Likewise.
42606         * doc/glibc-functions/bindresvport.texi: Likewise.
42607         * doc/glibc-functions/dn_expand.texi: Likewise.
42608         * doc/glibc-functions/exp10.texi: Likewise.
42609         * doc/glibc-functions/exp10f.texi: Likewise.
42610         * doc/glibc-functions/fgetxattr.texi: Likewise.
42611         * doc/glibc-functions/flistxattr.texi: Likewise.
42612         * doc/glibc-functions/fopencookie.texi: Likewise.
42613         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42614         * doc/glibc-functions/fremovexattr.texi: Likewise.
42615         * doc/glibc-functions/fsetxattr.texi: Likewise.
42616         * doc/glibc-functions/getifaddrs.texi: Likewise.
42617         * doc/glibc-functions/getxattr.texi: Likewise.
42618         * doc/glibc-functions/lgetxattr.texi: Likewise.
42619         * doc/glibc-functions/listxattr.texi: Likewise.
42620         * doc/glibc-functions/llistxattr.texi: Likewise.
42621         * doc/glibc-functions/lremovexattr.texi: Likewise.
42622         * doc/glibc-functions/lsetxattr.texi: Likewise.
42623         * doc/glibc-functions/pow10.texi: Likewise.
42624         * doc/glibc-functions/pow10f.texi: Likewise.
42625         * doc/glibc-functions/rcmd_af.texi: Likewise.
42626         * doc/glibc-functions/removexattr.texi: Likewise.
42627         * doc/glibc-functions/res_init.texi: Likewise.
42628         * doc/glibc-functions/res_mkquery.texi: Likewise.
42629         * doc/glibc-functions/res_query.texi: Likewise.
42630         * doc/glibc-functions/res_querydomain.texi: Likewise.
42631         * doc/glibc-functions/res_send.texi: Likewise.
42632         * doc/glibc-functions/rresvport_af.texi: Likewise.
42633         * doc/glibc-functions/setxattr.texi: Likewise.
42634         * doc/glibc-functions/strcasestr.texi: Likewise.
42635
42636 2008-12-15  Bruno Haible  <bruno@clisp.org>
42637
42638         Fix compilation error on OSF/1 4.0.
42639         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42640         <sys/time.h>, simply delegate to the system header.
42641         Reported by Daniel Richard G. <oss@teragram.com>.
42642
42643 2008-12-15  Bruno Haible  <bruno@clisp.org>
42644
42645         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42646         * doc/posix-functions/fchmodat.texi: Likewise.
42647         * doc/posix-functions/fchownat.texi: Likewise.
42648         * doc/posix-functions/fdopendir.texi: Likewise.
42649         * doc/posix-functions/fstatat.texi: Likewise.
42650         * doc/posix-functions/mkdirat.texi: Likewise.
42651         * doc/posix-functions/unlinkat.texi: Likewise.
42652
42653 2008-12-14  Bruno Haible  <bruno@clisp.org>
42654
42655         Update doc for POSIX:2008.
42656         * doc/posix-functions/faccessat.texi: New file.
42657         * doc/posix-functions/fchmodat.texi: New file.
42658         * doc/posix-functions/fchownat.texi: New file.
42659         * doc/posix-functions/fdopendir.texi: New file.
42660         * doc/posix-functions/fstatat.texi: New file.
42661         * doc/posix-functions/futimens.texi: New file.
42662         * doc/posix-functions/linkat.texi: New file.
42663         * doc/posix-functions/mkdirat.texi: New file.
42664         * doc/posix-functions/mkfifoat.texi: New file.
42665         * doc/posix-functions/mknodat.texi: New file.
42666         * doc/posix-functions/open_wmemstream.texi: New file.
42667         * doc/posix-functions/openat.texi: New file.
42668         * doc/posix-functions/psiginfo.texi: New file.
42669         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42670         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42671         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42672         * doc/posix-functions/readlinkat.texi: New file.
42673         * doc/posix-functions/renameat.texi: New file.
42674         * doc/posix-functions/strerror_l.texi: New file.
42675         * doc/posix-functions/symlinkat.texi: New file.
42676         * doc/posix-functions/unlinkat.texi: New file.
42677         * doc/posix-functions/utimensat.texi: New file.
42678         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42679
42680 2008-12-14  Bruno Haible  <bruno@clisp.org>
42681
42682         Update doc for POSIX:2008.
42683         * doc/posix-functions/alphasort.texi: Renamed from
42684         doc/glibc-functions/alphasort.texi.
42685         * doc/posix-functions/dirfd.texi: Renamed from
42686         doc/glibc-functions/dirfd.texi.
42687         * doc/posix-functions/dprintf.texi: Renamed from
42688         doc/glibc-functions/dprintf.texi.
42689         * doc/posix-functions/duplocale.texi: Renamed from
42690         doc/glibc-functions/duplocale.texi.
42691         * doc/posix-functions/fexecve.texi: Renamed from
42692         doc/glibc-functions/fexecve.texi.
42693         * doc/posix-functions/fmemopen.texi: Renamed from
42694         doc/glibc-functions/fmemopen.texi.
42695         * doc/posix-functions/freelocale.texi: Renamed from
42696         doc/glibc-functions/freelocale.texi.
42697         * doc/posix-functions/getdate_err.texi: Renamed from
42698         doc/glibc-functions/getdate_err.texi.
42699         * doc/posix-functions/isalnum_l.texi: Renamed from
42700         doc/glibc-functions/isalnum_l.texi.
42701         * doc/posix-functions/isalpha_l.texi: Renamed from
42702         doc/glibc-functions/isalpha_l.texi.
42703         * doc/posix-functions/isblank_l.texi: Renamed from
42704         doc/glibc-functions/isblank_l.texi.
42705         * doc/posix-functions/iscntrl_l.texi: Renamed from
42706         doc/glibc-functions/iscntrl_l.texi.
42707         * doc/posix-functions/isdigit_l.texi: Renamed from
42708         doc/glibc-functions/isdigit_l.texi.
42709         * doc/posix-functions/isgraph_l.texi: Renamed from
42710         doc/glibc-functions/isgraph_l.texi.
42711         * doc/posix-functions/islower_l.texi: Renamed from
42712         doc/glibc-functions/islower_l.texi.
42713         * doc/posix-functions/isprint_l.texi: Renamed from
42714         doc/glibc-functions/isprint_l.texi.
42715         * doc/posix-functions/ispunct_l.texi: Renamed from
42716         doc/glibc-functions/ispunct_l.texi.
42717         * doc/posix-functions/isspace_l.texi: Renamed from
42718         doc/glibc-functions/isspace_l.texi.
42719         * doc/posix-functions/isupper_l.texi: Renamed from
42720         doc/glibc-functions/isupper_l.texi.
42721         * doc/posix-functions/iswalnum_l.texi: Renamed from
42722         doc/glibc-functions/iswalnum_l.texi.
42723         * doc/posix-functions/iswalpha_l.texi: Renamed from
42724         doc/glibc-functions/iswalpha_l.texi.
42725         * doc/posix-functions/iswblank_l.texi: Renamed from
42726         doc/glibc-functions/iswblank_l.texi.
42727         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42728         doc/glibc-functions/iswcntrl_l.texi.
42729         * doc/posix-functions/iswctype_l.texi: Renamed from
42730         doc/glibc-functions/iswctype_l.texi.
42731         * doc/posix-functions/iswdigit_l.texi: Renamed from
42732         doc/glibc-functions/iswdigit_l.texi.
42733         * doc/posix-functions/iswgraph_l.texi: Renamed from
42734         doc/glibc-functions/iswgraph_l.texi.
42735         * doc/posix-functions/iswlower_l.texi: Renamed from
42736         doc/glibc-functions/iswlower_l.texi.
42737         * doc/posix-functions/iswprint_l.texi: Renamed from
42738         doc/glibc-functions/iswprint_l.texi.
42739         * doc/posix-functions/iswpunct_l.texi: Renamed from
42740         doc/glibc-functions/iswpunct_l.texi.
42741         * doc/posix-functions/iswspace_l.texi: Renamed from
42742         doc/glibc-functions/iswspace_l.texi.
42743         * doc/posix-functions/iswupper_l.texi: Renamed from
42744         doc/glibc-functions/iswupper_l.texi.
42745         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42746         doc/glibc-functions/iswxdigit_l.texi.
42747         * doc/posix-functions/isxdigit_l.texi: Renamed from
42748         doc/glibc-functions/isxdigit_l.texi.
42749         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42750         doc/glibc-functions/mbsnrtowcs.texi.
42751         * doc/posix-functions/mkdtemp.texi: Renamed from
42752         doc/glibc-functions/mkdtemp.texi.
42753         * doc/posix-functions/newlocale.texi: Renamed from
42754         doc/glibc-functions/newlocale.texi.
42755         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42756         doc/glibc-functions/nl_langinfo_l.texi.
42757         * doc/posix-functions/open_memstream.texi: Renamed from
42758         doc/glibc-functions/open_memstream.texi.
42759         * doc/posix-functions/opterr.texi: Renamed from
42760         doc/glibc-functions/opterr.texi.
42761         * doc/posix-functions/optind.texi: Renamed from
42762         doc/glibc-functions/optind.texi.
42763         * doc/posix-functions/optopt.texi: Renamed from
42764         doc/glibc-functions/optopt.texi.
42765         * doc/posix-functions/psignal.texi: Renamed from
42766         doc/glibc-functions/psignal.texi.
42767         * doc/posix-functions/scandir.texi: Renamed from
42768         doc/glibc-functions/scandir.texi.
42769         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42770         doc/glibc-functions/sched_get_priority_min.texi.
42771         * doc/posix-functions/signgam.texi: Renamed from
42772         doc/glibc-functions/signgam.texi.
42773         * doc/posix-functions/stpcpy.texi: Renamed from
42774         doc/glibc-functions/stpcpy.texi.
42775         * doc/posix-functions/stpncpy.texi: Renamed from
42776         doc/glibc-functions/stpncpy.texi.
42777         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42778         doc/glibc-functions/strcasecmp_l.texi.
42779         * doc/posix-functions/strcoll_l.texi: Renamed from
42780         doc/glibc-functions/strcoll_l.texi.
42781         * doc/posix-functions/strfmon_l.texi: Renamed from
42782         doc/glibc-functions/strfmon_l.texi.
42783         * doc/posix-functions/strftime_l.texi: Renamed from
42784         doc/glibc-functions/strftime_l.texi.
42785         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42786         doc/glibc-functions/strncasecmp_l.texi.
42787         * doc/posix-functions/strndup.texi: Renamed from
42788         doc/glibc-functions/strndup.texi.
42789         * doc/posix-functions/strnlen.texi: Renamed from
42790         doc/glibc-functions/strnlen.texi.
42791         * doc/posix-functions/strsignal.texi: Renamed from
42792         doc/glibc-functions/strsignal.texi.
42793         * doc/posix-functions/strxfrm_l.texi: Renamed from
42794         doc/glibc-functions/strxfrm_l.texi.
42795         * doc/posix-functions/timer_gettime.texi: Renamed from
42796         doc/glibc-functions/timer_gettime.texi.
42797         * doc/posix-functions/tolower_l.texi: Renamed from
42798         doc/glibc-functions/tolower_l.texi.
42799         * doc/posix-functions/toupper_l.texi: Renamed from
42800         doc/glibc-functions/toupper_l.texi.
42801         * doc/posix-functions/towctrans_l.texi: Renamed from
42802         doc/glibc-functions/towctrans_l.texi.
42803         * doc/posix-functions/towlower_l.texi: Renamed from
42804         doc/glibc-functions/towlower_l.texi.
42805         * doc/posix-functions/towupper_l.texi: Renamed from
42806         doc/glibc-functions/towupper_l.texi.
42807         * doc/posix-functions/uselocale.texi: Renamed from
42808         doc/glibc-functions/uselocale.texi.
42809         * doc/posix-functions/vdprintf.texi: Renamed from
42810         doc/glibc-functions/vdprintf.texi.
42811         * doc/posix-functions/wcpcpy.texi:
42812         Renamed from doc/glibc-functions/wcpcpy.texi.
42813         * doc/posix-functions/wcpncpy.texi: Renamed from
42814         doc/glibc-functions/wcpncpy.texi.
42815         * doc/posix-functions/wcscasecmp.texi: Renamed from
42816         doc/glibc-functions/wcscasecmp.texi.
42817         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42818         doc/glibc-functions/wcscasecmp_l.texi.
42819         * doc/posix-functions/wcscoll_l.texi: Renamed from
42820         doc/glibc-functions/wcscoll_l.texi.
42821         * doc/posix-functions/wcsdup.texi: Renamed from
42822         doc/glibc-functions/wcsdup.texi.
42823         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42824         doc/glibc-functions/wcsncasecmp.texi.
42825         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42826         doc/glibc-functions/wcsncasecmp_l.texi.
42827         * doc/posix-functions/wcsnlen.texi: Renamed from
42828         doc/glibc-functions/wcsnlen.texi.
42829         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42830         doc/glibc-functions/wcsnrtombs.texi.
42831         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42832         doc/glibc-functions/wcsxfrm_l.texi.
42833         * doc/posix-functions/wctrans_l.texi: Renamed from
42834         doc/glibc-functions/wctrans_l.texi.
42835         * doc/posix-functions/wctype_l.texi: Renamed from
42836         doc/glibc-functions/wctype_l.texi.
42837         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42838         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42839         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42840         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42841         these subsections.
42842         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42843         Remove sections.
42844
42845 2008-12-14  Bruno Haible  <bruno@clisp.org>
42846
42847         Update doc for POSIX:2008.
42848         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42849
42850 2008-12-14  Bruno Haible  <bruno@clisp.org>
42851
42852         Update doc for POSIX:2008.
42853         * doc/pastposix-functions/bcmp.texi: Renamed from
42854         doc/posix-functions/bcmp.texi.
42855         * doc/pastposix-functions/bcopy.texi: Renamed from
42856         doc/posix-functions/bcopy.texi.
42857         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42858         doc/posix-functions/bsd_signal.texi.
42859         * doc/pastposix-functions/bzero.texi: Renamed from
42860         doc/posix-functions/bzero.texi.
42861         * doc/pastposix-functions/ecvt.texi: Renamed from
42862         doc/posix-functions/ecvt.texi.
42863         * doc/pastposix-functions/fcvt.texi: Renamed from
42864         doc/posix-functions/fcvt.texi.
42865         * doc/pastposix-functions/ftime.texi: Renamed from
42866         doc/posix-functions/ftime.texi.
42867         * doc/pastposix-functions/gcvt.texi: Renamed from
42868         doc/posix-functions/gcvt.texi.
42869         * doc/pastposix-functions/getcontext.texi: Renamed from
42870         doc/posix-functions/getcontext.texi.
42871         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42872         doc/posix-functions/gethostbyaddr.texi.
42873         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42874         doc/posix-functions/gethostbyname.texi.
42875         * doc/pastposix-functions/getwd.texi: Renamed from
42876         doc/posix-functions/getwd.texi.
42877         * doc/pastposix-functions/h_errno.texi: Renamed from
42878         doc/posix-functions/h_errno.texi.
42879         * doc/pastposix-functions/index.texi: Renamed from
42880         doc/posix-functions/index.texi.
42881         * doc/pastposix-functions/makecontext.texi: Renamed from
42882         doc/posix-functions/makecontext.texi.
42883         * doc/pastposix-functions/mktemp.texi: Renamed from
42884         doc/posix-functions/mktemp.texi.
42885         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42886         doc/posix-functions/pthread_attr_getstackaddr.texi.
42887         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42888         doc/posix-functions/pthread_attr_setstackaddr.texi.
42889         * doc/pastposix-functions/rindex.texi: Renamed from
42890         doc/posix-functions/rindex.texi.
42891         * doc/pastposix-functions/scalb.texi: Renamed from
42892         doc/posix-functions/scalb.texi.
42893         * doc/pastposix-functions/setcontext.texi: Renamed from
42894         doc/posix-functions/setcontext.texi.
42895         * doc/pastposix-functions/swapcontext.texi: Renamed from
42896         doc/posix-functions/swapcontext.texi.
42897         * doc/pastposix-functions/ualarm.texi: Renamed from
42898         doc/posix-functions/ualarm.texi.
42899         * doc/pastposix-functions/usleep.texi: Renamed from
42900         doc/posix-functions/usleep.texi.
42901         * doc/pastposix-functions/vfork.texi: Renamed from
42902         doc/posix-functions/vfork.texi.
42903         * doc/pastposix-functions/wcswcs.texi: Renamed from
42904         doc/posix-functions/wcswcs.texi.
42905         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42906         (Function Substitutes): Update.
42907
42908 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42909
42910         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42911         m4/strerror.m4.
42912
42913 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42914             Bruno Haible  <bruno@clisp.org>
42915
42916         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42917
42918 2008-12-13  Bruno Haible  <bruno@clisp.org>
42919
42920         * modules/strtoull (Depends-on): Remove unistd.
42921
42922 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42923
42924         * modules/strtoull (Depends-on): Add stdlib.
42925
42926 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42927
42928         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42929
42930 2008-12-10  Jim Meyering  <meyering@redhat.com>
42931
42932         gl_ASSERT: don't say assertions are disabled when they're not
42933         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42934         "checking whether to enable assertions... no", when they are in
42935         fact enabled.  This is solely a bug in the output of configure.
42936         In spite of saying "no", NDEBUG was not defined in that case.
42937         Also, as noted by Eric Blake, leave assertions enabled upon
42938         --enable-assert=INVALID.
42939
42940 2008-12-10  Bruno Haible  <bruno@clisp.org>
42941
42942         Change MODULES.html to refer to POSIX:2008 where possible.
42943         * MODULES.html.sh (POSIX2008_URL): New variable.
42944         (posix_headers): Remove sys/timeb, ucontext.
42945         (posix2001_headers): New variable.
42946         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42947         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42948         index, makecontext, mktemp, pthread_attr_getstackaddr,
42949         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42950         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42951         (posix2001_functions): New variable.
42952         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42953         otherwise.
42954
42955 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42956
42957         add missing include to parse-duration.c
42958         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42959         * modules/parse-duration (Depends-on): Add xalloc.
42960
42961         fix sed script reading maint.mk
42962         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42963         (syntax-check-rules): Use it.
42964
42965 2008-12-09  Bruno Haible  <bruno@clisp.org>
42966
42967         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42968         MacOS X 10.4/PowerPC.
42969         Reported by Simon Josefsson.
42970
42971 2008-12-08  Jim Meyering  <meyering@redhat.com>
42972
42973         work around mingw's lack of some S_IF definitions
42974         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42975         Reported by Simon Josefsson.
42976
42977 2008-12-08  Bruno Haible  <bruno@clisp.org>
42978
42979         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42980         applied to variables. Needed on MacOS X 10.4/PowerPC.
42981         Reported by Simon Josefsson.
42982
42983 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42984         and Eric Blake  <ebb9@byu.net>
42985
42986         assert: honor --enable-assert
42987         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42988         order to honor --enable-assert, rather than treating it as a
42989         synonym for --disable-assert.
42990
42991 2008-12-08  Jim Meyering  <meyering@redhat.com>
42992
42993         * lib/posixtm.c: Remove now-useless declaration of mktime.
42994
42995         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42996
42997 2008-12-07  Bruno Haible  <bruno@clisp.org>
42998
42999         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43000         test_once): Mark functions as static.
43001         * tests/test-tls.c (test_tls): Likewise.
43002
43003 2008-12-07  Bruno Haible  <bruno@clisp.org>
43004
43005         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43006         iconv_register_autodetect.
43007
43008 2008-12-07  Jim Meyering  <meyering@redhat.com>
43009
43010         posixtm.c: avoid a warning
43011         * lib/posixtm.c (posixtime): Don't initialize tm0.
43012         It's no longer needed to placate gcc4's -Wuninitialized,
43013         and the attempt to placate would elicit a new warning.
43014
43015         unicodeio.c: mark unused parameters
43016         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43017         (fallback_failure_callback): Likewise.
43018
43019 2008-12-07  Bruno Haible  <bruno@clisp.org>
43020
43021         * gnulib-tool (func_create_testdir): When building the tests
43022         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43023         Reported by Simon Josefsson.
43024
43025 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43026
43027         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43028
43029 2008-12-06  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43032         Suggested by Eric Blake.
43033
43034 2008-12-06  Bruno Haible  <bruno@clisp.org>
43035
43036         Fix a c-stack test failure on MacOS X.
43037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43038         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43039         handler for SIGBUS as well.
43040         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43041         install a signal handler for SIGBUS as well.
43042         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43043
43044 2008-12-06  Bruno Haible  <bruno@clisp.org>
43045
43046         Advocacy documentation.
43047         * doc/gnulib-intro.texi (Benefits): New section.
43048         * doc/gnulib.texi: Update.
43049
43050 2008-12-06  Bruno Haible  <bruno@clisp.org>
43051
43052         Document the 'manywarnings' module.
43053         * doc/manywarnings.texi: New file.
43054         * doc/gnulib.texi: Include it.
43055
43056 2008-12-05  Eric Blake  <ebb9@byu.net>
43057
43058         tests: silence some gcc warnings
43059         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43060         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43061         type mismatches.
43062
43063 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43064             Bruno Haible  <bruno@clisp.org>
43065
43066         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43067
43068 2008-11-29  Jim Meyering  <meyering@redhat.com>
43069
43070         unicodeio.c: mark unused parameters
43071         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43072         (fallback_failure_callback): Likewise.
43073
43074         fts: fix a thinko
43075         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43076         (set_stat_type): Return S_IF*-valued "type" directly.
43077         Prompted by James Youngman's spotting a related bug.
43078         Confirmed by further testing through find.
43079
43080         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43081         * lib/fts.c (D_TYPE): Define.
43082         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43083         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43084         (s_ifmt_shift_bits): New function.
43085         (set_stat_type): New function.
43086         (fts_build): When not calling fts_stat, call set_stat_type
43087         to propagate dirent.d_type info to fts_read caller.
43088         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43089         fts_statp->st_mode type information may be valid.
43090
43091 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43092
43093         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43094         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43095         <sds@gnu.org>.
43096
43097 2008-11-20  Bruno Haible  <bruno@clisp.org>
43098
43099         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43100         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43101         INCLUDE_NEXT.
43102         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43103         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43104         * modules/math (Makefile.am): Substitute
43105         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43106         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43107
43108 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43109             Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/stdint.in.h: Define all type macros so that their expansion is
43112         a single typedef'ed token. Fixes a compilation failure in Boost which
43113         does "using ::int8_t;".
43114
43115 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43116
43117         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43118         gl_MANYWARN_ALL_GCC.
43119         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43120         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43121         * modules/manywarnings: New file.
43122         * MODULES.html.sh: Mention manywarnings module.
43123
43124 2008-11-18  Bruno Haible  <bruno@clisp.org>
43125
43126         * doc/gnulib-tool.texi (Unit tests): New section.
43127
43128 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43129
43130         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43131         paths like 'lib/po/foo.po'.
43132
43133 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43134
43135         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43136         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43137
43138 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43139
43140         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43141         parameter works.
43142
43143 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43144
43145         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43146
43147 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43148
43149         * modules/parse-duration-tests: New file.
43150         * tests/test-parse-duration.sh: New file.
43151         * tests/test-parse-duration.c: New file.
43152
43153         New module 'parse-duration'.
43154         * lib/parse-duration.h: New file.
43155         * lib/parse-duration.c: New file.
43156         * modules/parse-duration: New file.
43157
43158 2008-11-17  Bruno Haible  <bruno@clisp.org>
43159
43160         * tests/test-select-out.sh: Comment out the first pipe test.
43161         Reported by Simon Josefsson.
43162
43163 2008-11-17  Bruno Haible  <bruno@clisp.org>
43164
43165         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43166         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43167         gl_HOSTENT.
43168
43169 2008-11-17  Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43172         -lnetwork and -lnet. Needed for Haiku and BeOS.
43173
43174 2008-11-16  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43177
43178 2008-11-16  Bruno Haible  <bruno@clisp.org>
43179
43180         Avoid test failure on Haiku.
43181         * tests/test-fsync.c: Include <errno.h>.
43182         (main): Don't require that fsync (0) fails.
43183
43184 2008-11-15  Bruno Haible  <bruno@clisp.org>
43185
43186         New module 'hostent'.
43187         * modules/hostent: New file.
43188         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43189
43190 2008-11-15  Bruno Haible  <bruno@clisp.org>
43191
43192         New module 'servent'.
43193         * modules/servent: New file.
43194         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43195
43196 2008-11-15  Bruno Haible  <bruno@clisp.org>
43197
43198         Avoid generating same test program with two different rules.
43199         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43200         test-frexp to test-frexp-nolibm.
43201         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43202         test-frexpl to test-frexpl-nolibm.
43203
43204 2008-11-15  Bruno Haible  <bruno@clisp.org>
43205
43206         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43207         $(FREXPL_LIBM).
43208
43209 2008-11-15  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/netdb.in.h: Activate the definitions also when the system's
43212         <netdb.h> has 'struct addrinfo'.
43213         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43214         EAI_OVERFLOW or AI_NUMERICSERV.
43215         * doc/posix-headers/netdb.texi: Document the problem.
43216
43217 2008-11-15  Bruno Haible  <bruno@clisp.org>
43218
43219         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43220
43221         Make the 'sched' module work on platforms where <sched.h> exists but
43222         is incomplete (such as Haiku).
43223         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43224         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43225         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43226         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43227         HAVE_STRUCT_SCHED_PARAM.
43228         * modules/sched (Depends-on): Add include_next.
43229         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43230         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43231         * doc/posix-headers/sched.texi: Document the issue.
43232
43233 2008-11-13  Jim Meyering  <meyering@redhat.com>
43234
43235         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43236         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43237         test would fail due to the difference in the Report bugs to ...
43238         line.  The expected address is empty, "<>", while the actual
43239         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43240
43241 2008-11-12  Bruno Haible  <bruno@clisp.org>
43242
43243         lstat: don't compile lstat.c on systems lacking lstat
43244         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43245         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43246         Reported by Daniel P. Berrange via Jim Meyering.
43247
43248 2008-11-12  Jim Meyering  <meyering@redhat.com>
43249
43250         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43251
43252 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43253
43254         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43255         instead.
43256
43257 2008-11-12  Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/unicodeio.c: Include unistr.h.
43260         (utf8_wctomb): Remove function.
43261         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43262
43263 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43264
43265         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43266         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43267         <bruno@clisp.org>.
43268         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43269
43270 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43271
43272         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43273         * doc/gnulib.texi: Add section for warnings.
43274
43275 2008-11-11  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/sockets.h: Add a comment.
43278
43279 2008-11-11  Karl Berry  <karl@gnu.org>
43280
43281         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43282
43283 2008-11-11  Eric Blake  <ebb9@byu.net>
43284
43285         fdl.texi: avoid git symlinks
43286         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43287
43288 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43289
43290         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43291
43292 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43293
43294         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43295         (gl_WARN_ADD): Substitute $2 if literal.
43296
43297 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43298
43299         * m4/warning.m4: Remove.
43300
43301 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43302
43303         * m4/warnings.m4: Almost complete rewrite. :-)
43304
43305 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43306
43307         * modules/warnings: New module.
43308         * m4/warnings.m4: New file.
43309         * MODULES.html.sh: Mention warnings module.
43310         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43311         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43312
43313 2008-11-10  Eric Blake  <ebb9@byu.net>
43314
43315         fdl.texi: make a symlink to the latest version
43316         * doc/standards.texi: Revert today's earlier change.
43317         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43318         * doc/fdl.texi: ...and replace this with a symlink to the newer
43319         fdl-1.3.texi.
43320
43321 2008-11-10  Bruno Haible  <bruno@clisp.org>
43322
43323         * tests/test-select-fd.c (main): Accept the result file name as fourth
43324         argument.
43325         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43326         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43327
43328 2008-11-10  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43331         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43332         as autoconf-substituted macros.
43333         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43335         gl_NETDB_H_DEFAULTS. Set these variables.
43336         * modules/netdb (Makefile.am): Substitute these variables.
43337
43338 2008-11-10  Eric Blake  <ebb9@byu.net>
43339
43340         standards.texi: include correct file for FDL 1.3
43341         * doc/standards.texi (GNU Free Documentation License): Change
43342         include file to pull in FDL 1.3, not 1.2.
43343
43344         fdl.texi: revert accidental change to license
43345         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43346
43347 2008-11-10  Bruno Haible  <bruno@clisp.org>
43348
43349         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43350         cross-compiling guesses also when the native compile gives no result.
43351
43352 2008-11-10  Bruno Haible  <bruno@clisp.org>
43353
43354         * lib/spawni.c (__spawni): Force variable into the stack.
43355
43356 2008-11-10  Bruno Haible  <bruno@clisp.org>
43357
43358         Add support for Haiku.
43359         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43360         glibc and BeOS, but also on Haiku.
43361         * lib/fpurge.c (fpurge): Likewise.
43362         * lib/freadable.c (freadable): Likewise.
43363         * lib/freadahead.c (freadahead): Likewise.
43364         * lib/freading.c (freading): Likewise.
43365         * lib/freadptr.c (freadptr): Likewise.
43366         * lib/freadseek.c (freadptrinc): Likewise.
43367         * lib/fseeko.c (rpl_fseeko): Likewise.
43368         * lib/fseterr.c (fseterr): Likewise.
43369         * lib/fwritable.c (fwritable): Likewise.
43370         * lib/fwriting.c (fwriting): Likewise.
43371         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43372
43373 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43374
43375         * lib/config.charset: Treat Haiku like BeOS.
43376
43377 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43378
43379         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43380         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43381
43382 2008-11-08  Bruno Haible  <bruno@clisp.org>
43383
43384         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43385         AC_CACHE_CHECK.
43386
43387 2008-11-08  Bruno Haible  <bruno@clisp.org>
43388
43389         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43390
43391 2008-11-08  Bruno Haible  <bruno@clisp.org>
43392
43393         * tests/test-select-fd.c: New file.
43394         * tests/test-select-in.sh: New file.
43395         * tests/test-select-out.sh: New file.
43396         * tests/test-select-stdin.c: New file.
43397         * modules/select-tests (Files): Add the new files.
43398         (Depends-on): Add gettimeofday.
43399         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43400         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43401         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43402
43403 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43404             Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43407
43408 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43409
43410         * build-aux/pmccabe2html: Added support for C++ source files.
43411
43412 2008-11-05  Ben Pfaff  <blp@gnu.org>
43413
43414         Fix lib/close.c build on Windows.
43415         * modules/close (Files): Add lib/w32sock.h.
43416
43417 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43418
43419         Accept Bison's NEWS format.
43420         * build-aux/announce-gen (print_news_deltas): Tweak
43421         $re_prefix.
43422
43423 2008-11-04  Bruno Haible  <bruno@clisp.org>
43424
43425         * modules/random_r (Maintainer): Add glibc.
43426
43427 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43428
43429         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43430         by karl@freefriends.org (Karl Berry).
43431         * doc/alloca.texi: Likewise.
43432         * doc/c-ctype.texi: Likewise.
43433         * doc/c-strcase.texi: Likewise.
43434         * doc/c-strcaseeq.texi: Likewise.
43435         * doc/c-strcasestr.texi: Likewise.
43436         * doc/c-strstr.texi: Likewise.
43437         * doc/c-strtod.texi: Likewise.
43438         * doc/c-strtold.texi: Likewise.
43439         * doc/ctime.texi: Likewise.
43440         * doc/error.texi: Likewise.
43441         * doc/fdl.texi: Likewise.
43442         * doc/gcd.texi: Likewise.
43443         * doc/getdate.texi: Likewise.
43444         * doc/gnulib-intro.texi: Likewise.
43445         * doc/gnulib-tool.texi: Likewise.
43446         * doc/gnulib.texi: Likewise.
43447         * doc/inet_ntoa.texi: Likewise.
43448         * doc/maintain.texi: Likewise.
43449         * doc/make-stds.texi: Likewise.
43450         * doc/quote.texi: Likewise.
43451         * doc/regexprops-generic.texi: Likewise.
43452         * doc/standards.texi: Likewise.
43453         * doc/verify.texi: Likewise.
43454         * doc/visibility.texi: Likewise.
43455         * doc/gnulib.texi (GNU Free Documentation License): Include
43456         fdl-1.3.texi instead of fdl.texi.
43457
43458 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43459
43460         * doc/fdl-1.3.texi: New file, from
43461         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43462         * modules/fdl-1.3: Add.
43463         * MODULES.html.sh: Add fdl-1.3.
43464
43465 2008-11-03  Bruno Haible  <bruno@clisp.org>
43466
43467         Make determination of absolute name of header file work with AIX xlc.
43468         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43469         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43470         preprocessing.
43471         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43472         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43473
43474 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43475
43476         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43477         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43478         <ludo@gnu.org>.
43479
43480 2008-11-02  Bruno Haible  <bruno@clisp.org>
43481
43482         Mark 'strpbrk' obsolete.
43483         * modules/strpbrk (Status, Notice): New sections.
43484         * modules/strtok_r (Depends-on): Add strpbrk.
43485
43486 2008-11-02  Bruno Haible  <bruno@clisp.org>
43487
43488         Mark 'strdup' obsolete.
43489         * modules/strdup (Status, Notice): New sections.
43490         * modules/findprog (Depends-on): Add strdup.
43491         * modules/getaddrinfo (Depends-on): Likewise.
43492         * modules/localename (Depends-on): Likewise.
43493         * modules/relocatable-lib (Depends-on): Likewise.
43494         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43495         * modules/relocatable-prog (Depends-on): Likewise.
43496         * modules/trim (Depends-on): Likewise.
43497         * modules/unictype/gen-ctype (Depends-on): Likewise.
43498         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43499
43500 2008-11-02  Bruno Haible  <bruno@clisp.org>
43501
43502         Mark 'strcspn' obsolete.
43503         * modules/strcspn (Status, Notice): New sections.
43504
43505 2008-11-02  Bruno Haible  <bruno@clisp.org>
43506
43507         Mark 'rmdir' obsolete.
43508         * modules/rmdir (Status, Notice): New sections.
43509         * modules/clean-temp (Depends-on): Add rmdir.
43510         * modules/openat (Depends-on): Likewise.
43511
43512 2008-11-02  Bruno Haible  <bruno@clisp.org>
43513
43514         Mark 'raise' obsolete.
43515         * modules/raise (Status, Notice): New sections.
43516         (Include): Specify <signal.h>.
43517         * modules/stdio (Depends-on): Add raise.
43518         * modules/write (Depends-on): Likewise.
43519
43520 2008-11-02  Bruno Haible  <bruno@clisp.org>
43521
43522         Mark 'memset' obsolete.
43523         * modules/memset (Status, Notice): New sections.
43524
43525 2008-11-02  Bruno Haible  <bruno@clisp.org>
43526
43527         Mark 'memmove' obsolete.
43528         * modules/memmove (Status, Notice): New sections.
43529         * modules/argp (Depends-on): Add memmove.
43530         * modules/argz (Depends-on): Likewise.
43531         * modules/canonicalize (Depends-on): Likewise.
43532         * modules/canonicalize-lgpl (Depends-on): Likewise.
43533         * modules/fts (Depends-on): Likewise.
43534         * modules/getcwd (Depends-on): Likewise.
43535         * modules/human (Depends-on): Likewise.
43536         * modules/regex (Depends-on): Likewise.
43537         * modules/striconveh (Depends-on): Likewise.
43538         * modules/trim (Depends-on): Likewise.
43539         * modules/unistr/u8-move (Depends-on): Likewise.
43540         * modules/unistr/u16-move (Depends-on): Likewise.
43541         * modules/unistr/u32-move (Depends-on): Likewise.
43542
43543 2008-11-02  Bruno Haible  <bruno@clisp.org>
43544
43545         Mark 'memcpy' obsolete.
43546         * modules/memcpy (Status, Notice): New sections.
43547
43548 2008-11-02  Bruno Haible  <bruno@clisp.org>
43549
43550         Mark 'memcmp' obsolete.
43551         * modules/memcmp (Status, Notice): New sections.
43552         * modules/argmatch (Depends-on): Add memchr.
43553         * modules/backupfile (Depends-on): Likewise.
43554         * modules/c-strcasestr (Depends-on): Likewise.
43555         * modules/crypto/des (Depends-on): Likewise.
43556         * modules/csharpcomp (Depends-on): Likewise.
43557         * modules/fnmatch (Depends-on): Likewise.
43558         * modules/git-merge-changelog (Depends-on): Likewise.
43559         * modules/isnand (Depends-on): Likewise.
43560         * modules/isnand-nolibm (Depends-on): Likewise.
43561         * modules/isnanf (Depends-on): Likewise.
43562         * modules/isnanf-nolibm (Depends-on): Likewise.
43563         * modules/isnanl (Depends-on): Likewise.
43564         * modules/isnanl-nolibm (Depends-on): Likewise.
43565         * modules/mbchar (Depends-on): Likewise.
43566         * modules/memcoll (Depends-on): Likewise.
43567         * modules/quotearg (Depends-on): Likewise.
43568         * modules/regex (Depends-on): Likewise.
43569         * modules/relocatable-prog (Depends-on): Likewise.
43570         * modules/same (Depends-on): Likewise.
43571         * modules/signbit (Depends-on): Likewise.
43572         * modules/strcasestr-simple (Depends-on): Likewise.
43573         * modules/unictype/gen-ctype (Depends-on): Likewise.
43574         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43575         * modules/uniname/uniname (Depends-on): Likewise.
43576         * modules/unistr/u8-cmp (Depends-on): Likewise.
43577
43578 2008-11-02  Bruno Haible  <bruno@clisp.org>
43579
43580         Mark 'memchr' obsolete.
43581         * modules/memchr (Status, Notice): New sections.
43582         * modules/argp (Depends-on): Add memchr.
43583         * modules/base64 (Depends-on): Likewise.
43584         * modules/c-strcasestr (Depends-on): Likewise.
43585         * modules/chdir-long (Depends-on): Likewise.
43586         * modules/fnmatch (Depends-on): Likewise.
43587         * modules/getsubopt (Depends-on): Likewise.
43588         * modules/git-merge-changelog (Depends-on): Likewise.
43589         * modules/glob (Depends-on): Likewise.
43590         * modules/strcasestr-simple (Depends-on): Likewise.
43591         * modules/strnlen (Depends-on): Likewise.
43592
43593 2008-11-02  Bruno Haible  <bruno@clisp.org>
43594
43595         Mark 'atexit' obsolete.
43596         * modules/atexit (Status, Notice): New sections.
43597         * modules/chdir-long (Depends-on): Add atexit.
43598         * modules/wait-process (Depends-on): Likewise.
43599
43600 2008-11-02  Bruno Haible  <bruno@clisp.org>
43601
43602         * gnulib-tool: New option --with-obsolete.
43603         (func_usage): Document it.
43604         (func_modules_transitive_closure): Drop obsolete dependencies if
43605         incobsolete is not true.
43606         (func_import): Read and save the incobsolete variable to the cache.
43607
43608 2008-11-02  Bruno Haible  <bruno@clisp.org>
43609
43610         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43611         * gnulib-tool: New option --extract-status.
43612         (func_usage): Document it.
43613         (sed_extract_prog): Recognize it.
43614         (func_get_status): New function.
43615
43616 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43617
43618         * modules/sockets (License): Change from LGPL to LGPLv2+.
43619
43620 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43621
43622         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43623
43624 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43625
43626         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43627         Mention times and sys_times.
43628         * modules/sys_times, modules/sys_times-tests: New modules.
43629         * modules/times, modules/times-tests: Likewise
43630         * m4/sys_times_h.m4: New file.
43631         * lib/sys_times.in.h: Likewise
43632         * lib/times.c: Likewise.
43633         * tests/test-sys_times.c: Likewise.
43634         * tests/test-times.c: Likewise.
43635         * doc/posix-headers/sys_times.texi: Update.
43636         * doc/posix-functions/times.texi: Update.
43637
43638 2008-10-28  Jim Meyering  <meyering@redhat.com>
43639
43640         * modules/tempname (Depends-on): Add lstat.
43641
43642         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43643
43644 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43645
43646         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43647         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43648         using idiom used elsewhere in gnulib.
43649
43650 2008-10-27  Jim Meyering  <meyering@redhat.com>
43651
43652         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43653
43654 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43655
43656         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43657         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43658         programs.
43659         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43660
43661 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43662
43663         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43664
43665 2008-10-27  Bruno Haible  <bruno@clisp.org>
43666
43667         * tests/test-lstat.c: Include <stdio.h>.
43668
43669 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43670
43671         * modules/lstat-tests: New module.
43672         * tests/test-lstat.c: New file.
43673
43674 2008-10-26  Jim Meyering  <meyering@redhat.com>
43675
43676         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43677
43678 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43679             Bruno Haible  <bruno@clisp.org>
43680
43681         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43682         * modules/configmake (Include): Add a note that the include must come
43683         after all system headers.
43684         * lib/javaversion.c: Include configmake.h after all other includes.
43685
43686 2008-10-26  Bruno Haible  <bruno@clisp.org>
43687
43688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43689         HAVE_STRUCT_RANDOM_DATA to 1.
43690         (gl_STDLIB_H): Simplify.
43691
43692 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43693
43694         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43695         substitute HAVE_STRUCT_RANDOM_DATA.
43696         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43697         random_data.
43698         * modules/stdlib (Makefile.am): Substitute
43699         HAVE_STRUCT_RANDOM_DATA.
43700
43701 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43702
43703         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43704         * doc/gnulib-intro.texi (Copyright): Likewise.
43705
43706 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43707
43708         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43709         findings.
43710
43711 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43712             Bruno Haible  <bruno@clisp.org>
43713
43714         * lib/unistd.in.h: Include <winsock2.h>.
43715         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43716         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43717         Provide dummy declarations.
43718         (gethostname): Override.
43719         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43720         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43721         gl_PREREQ_SYS_H_WINSOCK2.
43722         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43723         * doc/posix-functions/gethostname.texi: More details.
43724
43725 2008-10-25  Bruno Haible  <bruno@clisp.org>
43726
43727         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43728         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43729         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43730
43731         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43732         here ...
43733         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43735         gl_UNISTD_H_DEFAULTS.
43736
43737 2008-10-25  Eric Blake  <ebb9@byu.net>
43738
43739         signbit: avoid spurious compiler failure
43740         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43741         declarations inside function.
43742
43743 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43744             Bruno Haible  <bruno@clisp.org>
43745
43746         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43747         * modules/random_r (Depends-on): Add stdint.
43748
43749 2008-10-24  Bruno Haible  <bruno@clisp.org>
43750
43751         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43752         Eggert.
43753         * modules/strerror (License): Likewise.
43754
43755 2008-10-24  Jim Meyering  <meyering@redhat.com>
43756
43757         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43758         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43759
43760 2008-10-24  Eric Blake  <ebb9@byu.net>
43761
43762         getgroups: fix compilation when getgroups is available
43763         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43764         but with <config.h> override of getgroups disabled.
43765
43766 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43767
43768         * doc/gnulib.texi (Header files): Add note about C++ problems.
43769         Explained by Bruno Haible <bruno@clisp.org>.
43770
43771 2008-10-23  Bruno Haible  <bruno@clisp.org>
43772
43773         Define a dummy SA_NODEFER macro on Interix.
43774         * lib/signal.in.h (SA_NODEFER): Define fallback.
43775         Reported by Aleksey Cheusov <cheusov@tut.by> via
43776         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43777
43778 2008-10-23  Bruno Haible  <bruno@clisp.org>
43779
43780         * modules/freadahead (License): Change to LGPLv2+.
43781         Suggested by Simon Josefsson.
43782
43783 2008-10-23  Jim Meyering  <meyering@redhat.com>
43784
43785         random_r: new module
43786         * modules/random_r: New file.
43787         * m4/random_r.m4: New file.
43788         * lib/random_r.c: New file, from glibc.
43789         * modules/random_r-tests: New file.
43790         * tests/test-random_r.c: New file.
43791         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43792          Declare.
43793         (RAND_MAX): Define.
43794         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43795         * modules/stdlib: Substitute them, too.
43796         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43797         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43798         * doc/glibc-functions/random_r.texi: Likewise.
43799         * doc/glibc-functions/setstate_r.texi: Likewise.
43800         * doc/glibc-functions/srandom_r.texi: Likewise.
43801         * config/srclist.txt: Mention it.
43802
43803 2008-10-23  David Lutterkort  <lutter@redhat.com>
43804
43805         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43806         link requirement
43807
43808 2008-10-23  Jim Meyering  <meyering@redhat.com>
43809
43810         selinux-h: mark parameters of stub functions as intentionally unused
43811         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43812         * lib/se-context.in.h: Likewise.
43813
43814 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43815
43816         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43817
43818 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43819
43820         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43821
43822 2008-10-22  Eric Blake  <ebb9@byu.net>
43823
43824         glthread/thread: avoid compiler warning
43825         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43826         Add unreachable abort to silence compiler.
43827
43828 2008-10-22  Eric Blake  <ebb9@byu.net>
43829
43830         netdb: also supply struct addrinfo for cygwin 1.5.x
43831         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43832         older cygwin.
43833         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43834         cygwin.
43835         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43836
43837 2008-10-22  Bruno Haible  <bruno@clisp.org>
43838
43839         * users.txt: Update entry about pspp.
43840
43841 2008-10-21  Bruno Haible  <bruno@clisp.org>
43842
43843         Simplification.
43844         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43845         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43846
43847         Simplification.
43848         * lib/ioctl.c (ioctl): Don't undefine.
43849         * lib/socket.c (socket): Don't undefine.
43850
43851         Remove unused module indicator macros.
43852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43853         GNULIB_$1 as a C macro.
43854
43855         * doc/posix-functions/close.texi: Undo last change.
43856         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43857         Windows platforms.
43858
43859 2008-10-21  Bruno Haible  <bruno@clisp.org>
43860
43861         Add gethostname() declaration to <unistd.h>.
43862         * lib/unistd.in.h (gethostname): New declaration.
43863         * lib/gethostname.c: Include <unistd.h>.
43864         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43865         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43867         and HAVE_GETHOSTNAME.
43868         * modules/gethostname (Depends-on): Add unistd.
43869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43870         (Include): Specify <unistd.h>.
43871         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43872         HAVE_GETHOSTNAME.
43873         * tests/test-gethostname.c: Include <unistd.h> first.
43874
43875 2008-10-21  Bruno Haible  <bruno@clisp.org>
43876
43877         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43878         * modules/select-tests (Depends-on): Likewise.
43879         Reported by Simon Josefsson.
43880
43881 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43882
43883         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43884         * lib/accept.c: New file, based on winsock.c.
43885         * lib/bind.c: New file, based on winsock.c.
43886         * lib/connect.c: New file, based on winsock.c.
43887         * lib/getpeername.c: New file, based on winsock.c.
43888         * lib/getsockname.c: New file, based on winsock.c.
43889         * lib/getsockopt.c: New file, based on winsock.c.
43890         * lib/ioctl.c: New file, based on winsock.c.
43891         * lib/listen.c: New file, based on winsock.c.
43892         * lib/recv.c: New file, based on winsock.c.
43893         * lib/recvfrom.c: New file, based on winsock.c.
43894         * lib/send.c: New file, based on winsock.c.
43895         * lib/sendto.c: New file, based on winsock.c.
43896         * lib/setsockopt.c: New file, based on winsock.c.
43897         * lib/shutdown.c: New file, based on winsock.c.
43898         * lib/socket.c: New file, based on winsock.c.
43899         * lib/w32sock.h: New file, based on winsock.c.
43900         * lib/winsock.c: Remove file.
43901         * modules/accept: Likewise.
43902         * modules/bind: Likewise.
43903         * modules/connect: Likewise.
43904         * modules/getpeername: Likewise.
43905         * modules/getsockname: Likewise.
43906         * modules/getsockopt: Likewise.
43907         * modules/ioctl: Likewise.
43908         * modules/listen: Likewise.
43909         * modules/recv: Likewise.
43910         * modules/recvfrom: Likewise.
43911         * modules/send: Likewise.
43912         * modules/sendto: Likewise.
43913         * modules/setsockopt: Likewise.
43914         * modules/shutdown: Likewise.
43915         * modules/socket: Use socket.c instead of winsock.c.
43916         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43917         * doc/posix-functions/accept.texi: Doc fix.
43918         * doc/posix-functions/bind.texi: Doc fix.
43919         * doc/posix-functions/close.texi: Doc fix.
43920         * doc/posix-functions/connect.texi: Doc fix.
43921         * doc/posix-functions/getpeername.texi: Doc fix.
43922         * doc/posix-functions/getsockname.texi: Doc fix.
43923         * doc/posix-functions/getsockopt.texi: Doc fix.
43924         * doc/posix-functions/ioctl.texi: Doc fix.
43925         * doc/posix-functions/listen.texi: Doc fix.
43926         * doc/posix-functions/recv.texi: Doc fix.
43927         * doc/posix-functions/recvfrom.texi: Doc fix.
43928         * doc/posix-functions/send.texi: Doc fix.
43929         * doc/posix-functions/sendto.texi: Doc fix.
43930         * doc/posix-functions/setsockopt.texi: Doc fix.
43931         * doc/posix-functions/shutdown.texi: Doc fix.
43932         * doc/posix-functions/socket.texi: Doc fix.
43933
43934 2008-10-20  Bruno Haible  <bruno@clisp.org>
43935
43936         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43937         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43938         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43939         as an alias for SIGABRT.
43940         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43941         (sigaction): Map it to SIGABRT.
43942         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43943
43944 2008-10-20  Bruno Haible  <bruno@clisp.org>
43945
43946         * lib/fts.c: Don't include lstat.h.
43947         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43948
43949         Move the lstat() declaration to <sys/stat.h>.
43950         * lib/lstat.h: Remove file.
43951         * lib/sys_stat.in.h: Add special invocation convention.
43952         (lstat): New declaration.
43953         * lib/lstat.c (orig_lstat): New function.
43954         (rpl_lstat): Use orig_lstat instead of lstat.
43955         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43956         AC_C_INLINE. Set REPLACE_LSTAT.
43957         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43958         and REPLACE_LSTAT.
43959         * modules/lstat (Files): Remove lib/lstat.h.
43960         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43961         (Include): Specify <sys/stat.h> instead of lstat.h.
43962         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43963         REPLACE_LSTAT.
43964         * NEWS: Mention the change.
43965
43966 2008-10-20  Bruno Haible  <bruno@clisp.org>
43967
43968         * modules/posix_spawn-tests: New file.
43969         * tests/test-posix_spawn3.c: New file.
43970
43971 2008-10-20  Bruno Haible  <bruno@clisp.org>
43972
43973         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43974         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43975         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43976         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43977         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43978
43979 2008-10-20  Bruno Haible  <bruno@clisp.org>
43980
43981         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43982         of posix_spawn on AIX 5.3.
43983
43984 2008-10-20  Bruno Haible  <bruno@clisp.org>
43985
43986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43987
43988 2008-10-20  Bruno Haible  <bruno@clisp.org>
43989
43990         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43991         of AC_LANG_PROGRAM.
43992
43993 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43994
43995         * lib/netdb.in.h: Don't define GNU specific constants until they
43996         are supported or needed.  Reported by Bruno Haible
43997         <bruno@clisp.org>.
43998
43999 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44000
44001         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44002
44003 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44004
44005         * lib/getaddrinfo.h: Remove file.
44006         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44007         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44008         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44009         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44010         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44011         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44012         * tests/test-getaddrinfo.c: Likewise.
44013         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44014         * NEWS: Mention change.
44015
44016 2008-10-19  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44019
44020 2008-10-19  Bruno Haible  <bruno@clisp.org>
44021
44022         * lib/wait-process.c: Include simply <sys/wait.h>.
44023         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44024         WIFSTOPPED): Remove fallback definitions.
44025         * modules/wait-process (Depends-on): Add sys_wait.
44026
44027         New module 'sys_wait'.
44028         * modules/sys_wait: New file.
44029         * lib/sys_wait.in.h: New file, partially copied from
44030         lib/wait-process.c.
44031         * m4/sys_wait_h.m4: New file.
44032         * doc/posix-headers/sys_wait.texi: Mention the new module.
44033
44034 2008-10-19  Bruno Haible  <bruno@clisp.org>
44035
44036         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44037
44038 2008-10-19  Bruno Haible  <bruno@clisp.org>
44039
44040         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44041         * lib/wait-process.c (WAIT_T): Remove type.
44042         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44043         (wait_subprocess): Update.
44044
44045 2008-10-19  Bruno Haible  <bruno@clisp.org>
44046
44047         New module 'atoll'.
44048         * modules/atoll: New file.
44049         * lib/stdlib.in.h (atoll): New declaration.
44050         * lib/atoll.c: New file, from glibc with modifications.
44051         * m4/atoll.m4: New file.
44052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44053         HAVE_ATOLL.
44054         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44055         * doc/posix-functions/atoll.texi: Mention the new module.
44056
44057 2008-10-19  Bruno Haible  <bruno@clisp.org>
44058
44059         Add strtoull() declaration to <stdlib.h>.
44060         * lib/stdlib.in.h (strtoull): New declaration.
44061         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44062         Set HAVE_STRTOULL.
44063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44064         HAVE_STRTOULL.
44065         * modules/strtoull (Depends-on): Add stdlib.
44066         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44067         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44068         HAVE_STRTOULL.
44069
44070 2008-10-19  Bruno Haible  <bruno@clisp.org>
44071
44072         Add strtoll() declaration to <stdlib.h>.
44073         * lib/stdlib.in.h (strtoll): New declaration.
44074         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44075         Set HAVE_STRTOLL.
44076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44077         HAVE_STRTOLL.
44078         * modules/strtoll (Depends-on): Add stdlib.
44079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44080         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44081
44082 2008-10-19  Bruno Haible  <bruno@clisp.org>
44083
44084         * modules/bcopy (Depends-on): Add strings.
44085         (Include): Specify <strings.h>.
44086
44087 2008-10-19  Bruno Haible  <bruno@clisp.org>
44088
44089         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44090
44091 2008-10-19  Bruno Haible  <bruno@clisp.org>
44092
44093         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44094         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44095         mingw.
44096
44097 2008-10-19  Bruno Haible  <bruno@clisp.org>
44098
44099         * lib/atanl.c: Don't include isnanl.h.
44100         * lib/cosl.c: Likewise.
44101         * lib/ldexpl.c: Likewise.
44102         * lib/logl.c: Likewise.
44103         * lib/sinl.c: Likewise.
44104         * lib/sqrtl.c: Likewise.
44105         * lib/tanl.c: Likewise.
44106
44107         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44108         * lib/isnanf.h: Remove file.
44109         * lib/isnand.h: Remove file.
44110         * lib/isnanl.h: Remove file.
44111         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44112         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44113         macros.
44114         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44115         HAVE_ISNANF, don't define it as a C macro.
44116         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44117         HAVE_ISNAND, don't define it as a C macro.
44118         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44119         HAVE_ISNANL, don't define it as a C macro.
44120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44121         HAVE_ISNAN[FDL].
44122         * modules/isnanf (Files): Remove lib/isnanf.h.
44123         (Depends-on): Add math.
44124         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44125         (Include): Specify <math.h> instead of isnanf.h.
44126         * modules/isnand (Files): Remove lib/isnand.h.
44127         (Depends-on): Add math.
44128         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44129         (Include): Specify <math.h> instead of isnand.h.
44130         * modules/isnanl (Files): Remove lib/isnanl.h.
44131         (Depends-on): Add math.
44132         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44133         (Include): Specify <math.h> instead of isnanl.h.
44134         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44135         HAVE_ISNAN[FDL].
44136         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44137         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44138         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44139         * NEWS: Mention the change.
44140
44141 2008-10-18  Bruno Haible  <bruno@clisp.org>
44142
44143         Add getusershell(), setusershell(), endusershell() declarations to
44144         <unistd.h>.
44145         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44146         declarations.
44147         * lib/getusershell.c: Include unistd.h.
44148         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44149         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44150         HAVE_GETUSERSHELL.
44151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44152         and HAVE_GETUSERSHELL.
44153         * modules/getusershell (Depends-on): Add unistd, extensions.
44154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44155         (Include): Specify <unistd.h>.
44156         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44157         HAVE_GETUSERSHELL.
44158
44159 2008-10-18  Bruno Haible  <bruno@clisp.org>
44160
44161         Add a getloadavg() declaration to <stdlib.h>.
44162         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44163         getloadavg declaration.
44164         (getloadavg): New declaration.
44165         * lib/getloadavg.c: Include <stdlib.h> first.
44166         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44167         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44168         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44170         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44171         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44172         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44173         (Include): Specify <stdlib.h>.
44174         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44175         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44176
44177 2008-10-18  Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/dirchownmod.c: Don't include lchmod.h.
44180
44181         Move the lchmod() declaration to <sys/stat.h>.
44182         * lib/lchmod.h: Remove file.
44183         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44184         (lchmod): New declaration, moved here from lib/lchown.h.
44185         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44186         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44188         and HAVE_LCHMOD.
44189         * modules/lchmod (Files): Remove lib/lchmod.h.
44190         (Depends-on): Add sys_stat, extensions.
44191         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44192         (Include): Specify <sys/stat.h> instead of lchmod.h.
44193         * modules/sys_stat (Depends-on): Add link-warning.
44194         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44195         definition of GL_LINK_WARNING.
44196         * NEWS: Mention the change.
44197
44198 2008-10-18  Bruno Haible  <bruno@clisp.org>
44199
44200         * lib/fchdir.c: Don't include dirfd.h.
44201         * lib/fts.c: Likewise.
44202         * lib/getcwd.c: Likewise.
44203         * lib/glob.c: Likewise.
44204
44205         Move the dirfd() declaration to <dirent.h>.
44206         * lib/dirfd.h: Remove file.
44207         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44208         (dirfd): New declaration.
44209         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44210         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44211         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44212         HAVE_DECL_DIRFD.
44213         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44214         HAVE_DECL_DIRFD.
44215         * modules/dirfd (Files): Remove lib/dirfd.h.
44216         (Depends-on): Add dirent, extensions.
44217         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44218         (Include): Specify <dirent.h> instead of dirfd.h.
44219         * modules/dirent (Depends-on): Add link-warning.
44220         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44221         definition of GL_LINK_WARNING.
44222         * NEWS: Mention the change.
44223
44224 2008-10-18  Bruno Haible  <bruno@clisp.org>
44225
44226         Move the euidaccess() declaration to <unistd.h>.
44227         * lib/euidaccess.h: Remove file.
44228         * lib/unistd.in.h (euidaccess): New declaration.
44229         * lib/euidaccess.c: Don't include euidaccess.h.
44230         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44231         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44233         and HAVE_EUIDACCESS.
44234         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44235         (Depends-on): Add unistd.
44236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44237         (Include): Specify <unistd.h> instead of euidaccess.h.
44238         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44239         HAVE_EUIDACCESS.
44240         * NEWS: Mention the change.
44241
44242 2008-10-18  Bruno Haible  <bruno@clisp.org>
44243
44244         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44245
44246         Move the getdomainname() declaration to <unistd.h>.
44247         * lib/getdomainname.h: Remove file.
44248         * lib/unistd.in.h (getdomainname): New declaration.
44249         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44250         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44251         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44252         HAVE_GETDOMAINNAME.
44253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44254         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44255         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44256         (Depends-on): Add unistd, extensions.
44257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44258         (Includes): Specify <unistd.h> instead of getdomainname.h.
44259         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44260         HAVE_GETDOMAINNAME.
44261         * NEWS: Mention the change.
44262
44263 2008-10-18  Bruno Haible  <bruno@clisp.org>
44264
44265         * modules/dirent: New file.
44266         * m4/dirent_h.m4: New file.
44267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44268         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44269         * modules/fchdir (Files): Remove lib/dirent.in.h.
44270         (Depends-on): Add dirent.
44271         (Makefile.am): Move rules to modules/dirent.
44272         * doc/posix-headers/dirent.texi: Mention the new module.
44273
44274 2008-10-18  Bruno Haible  <bruno@clisp.org>
44275
44276         Avoid -Wunused-parameter warnings in public gnulib header files.
44277         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44278         macro.
44279         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44280
44281 2008-10-18  Bruno Haible  <bruno@clisp.org>
44282
44283         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44284         * doc/glibc-functions/error.texi: Mention the module 'error'.
44285         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44286         * doc/glibc-functions/getdomainname.texi: Mention the module
44287         'getdomainname'.
44288         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44289         * doc/glibc-functions/getpagesize.texi: Mention the module
44290         'getpagesize'.
44291         * doc/glibc-functions/getusershell.texi: Mention the module
44292         'getusershell'.
44293         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44294         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44295         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44296         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44297         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44298         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44299         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44300         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44301         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44302         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44303         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44304         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44305         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44306         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44307
44308 2008-10-17  Bruno Haible  <bruno@clisp.org>
44309
44310         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44311         HP-UX and IRIX, use -0.0L.
44312         * tests/test-ceill.c (minus_zero): Likewise.
44313         * tests/test-floorl.c (minus_zero): Likewise.
44314         * tests/test-frexpl.c (minus_zero): Likewise.
44315         * tests/test-isnan.c (minus_zerol): Likewise.
44316         * tests/test-isnanl.h (minus_zero): Likewise.
44317         * tests/test-ldexpl.c (minus_zero): Likewise.
44318         * tests/test-roundl.c (minus_zero): Likewise.
44319         * tests/test-signbit.c (minus_zerol): Likewise.
44320         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44321         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44322         * tests/test-truncl.c (minus_zero): Likewise.
44323         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44324         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44325         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44326         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44327
44328 2008-10-17  Bruno Haible  <bruno@clisp.org>
44329
44330         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44331         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44332         that it gets activated only for gcc >= 3.0.
44333         * lib/dirent.in.h: Likewise.
44334         * lib/errno.in.h: Likewise.
44335         * lib/fcntl.in.h: Likewise.
44336         * lib/float.in.h: Likewise.
44337         * lib/iconv.in.h: Likewise.
44338         * lib/inttypes.in.h: Likewise.
44339         * lib/locale.in.h: Likewise.
44340         * lib/math.in.h: Likewise.
44341         * lib/netdb.in.h: Likewise.
44342         * lib/netinet_in.in.h: Likewise.
44343         * lib/search.in.h: Likewise.
44344         * lib/signal.in.h: Likewise.
44345         * lib/spawn.in.h: Likewise.
44346         * lib/stdarg.in.h: Likewise.
44347         * lib/stdint.in.h: Likewise.
44348         * lib/stdio.in.h: Likewise.
44349         * lib/stdlib.in.h: Likewise.
44350         * lib/string.in.h: Likewise.
44351         * lib/strings.in.h: Likewise.
44352         * lib/sys_file.in.h: Likewise.
44353         * lib/sys_ioctl.in.h: Likewise.
44354         * lib/sys_select.in.h: Likewise.
44355         * lib/sys_socket.in.h: Likewise.
44356         * lib/sys_stat.in.h: Likewise.
44357         * lib/sys_time.in.h: Likewise.
44358         * lib/sysexits.in.h: Likewise.
44359         * lib/time.in.h: Likewise.
44360         * lib/unistd.in.h: Likewise.
44361         * lib/wchar.in.h: Likewise.
44362         * lib/wctype.in.h: Likewise.
44363         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44364
44365 2008-10-17  Jim Meyering  <meyering@redhat.com>
44366
44367         ignore-value: don't depend on inline module
44368         * modules/ignore-value (Depends-on): Remove 'inline'.
44369         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44370         Suggestion from Bruno Haible.
44371
44372 2008-10-17  Bruno Haible  <bruno@clisp.org>
44373
44374         New implementation of condition variables for Win32.
44375         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44376         (gl_linked_waitqueue_t): New type.
44377         (gl_cond_t): Use it.
44378         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44379         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44380         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44381         (glthread_cond_init_func, glthread_cond_wait_func,
44382         glthread_cond_timedwait_func, glthread_cond_signal_func,
44383         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44384         Reimplemented on the basis of gl_linked_waitqueue_t.
44385         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44386         gl_waitqueue_t.
44387         (gl_rwlock_t): Update.
44388         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44389
44390 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44391
44392         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44393         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44394
44395 2008-10-17  Jim Meyering  <meyering@redhat.com>
44396
44397         ignore-value: new module
44398         * modules/ignore-value: New file.
44399         * lib/ignore-value.h: New file.
44400         * MODULES.html.sh (Compiler warning management): New section,
44401         just for this module.  More to come.
44402
44403 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44404
44405         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44406         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44407         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44408
44409 2008-10-16  Jim Meyering  <meyering@redhat.com>
44410
44411         openat-die.c: avoid 'no previous prototype' warning
44412         * lib/openat-die.c: Include "openat.h".
44413         Reported by Reuben Thomas <rrt@sc3d.org>.
44414
44415 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44416
44417         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44418         * lib/netdb.in.h: Fix typo.
44419         Reported by Bruno Haible  <bruno@clisp.org>
44420
44421         * lib/netdb.in.h: Include sys/socket.h for platforms without
44422         netdb.h, to get structures like hostent on MinGW.
44423         * modules/netdb (Depends-on): Add sys_socket.
44424
44425 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44426
44427         * modules/netdb, modules/netdb-tests: New file.
44428         * m4/netdb_h.m4: New file.
44429         * lib/netdb.in.h: Add, currently just an empty file pending
44430         definitions.
44431         * tests/test-netdb.c: New file.
44432         * doc/posix-headers/netdb.texi: Mention that we replace it if
44433         needed.
44434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44435         netdb.
44436
44437 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44438
44439         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44440         with code.
44441
44442 2008-10-13  Bruno Haible  <bruno@clisp.org>
44443
44444         * lib/glthread/cond.c (glthread_cond_wait_func,
44445         glthread_cond_timedwait_func): Add a comment.
44446
44447 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44448
44449         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44450         * tests/test-select.c: Likewise,
44451
44452 2008-10-13  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/glthread/cond.c (glthread_cond_wait_func,
44455         glthread_cond_timedwait_func): Fix variable name.
44456         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44457
44458 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44459
44460         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44462         struct sockaddr.sa_len.
44463         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44464
44465 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44466
44467         * build-aux/pmccabe2html: Add css and css_url parameters.
44468
44469 2008-10-12  Bruno Haible  <bruno@clisp.org>
44470
44471         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44472         calling aclx_get.
44473         Reported by Rainer Tammer <tammer@tammer.net>.
44474
44475 2008-10-12  Bruno Haible  <bruno@clisp.org>
44476
44477         Use msvcrt aware primitives for creation/termination of Win32 threads.
44478         * lib/glthread/thread.c: Include <process.h>.
44479         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44480         (wrapper_func): Update signature.
44481         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44482
44483 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44484             Bruno Haible  <bruno@clisp.org>
44485
44486         Provide a Win32 implementation of the 'cond' module.
44487         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44488         * lib/glthread/cond.c (glthread_cond_init_func,
44489         glthread_cond_wait_func, glthread_cond_timedwait_func,
44490         glthread_cond_signal_func, glthread_cond_broadcast_func,
44491         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44492         * modules/cond (Dependencies): Add gettimeofday.
44493
44494 2008-10-11  Bruno Haible  <bruno@clisp.org>
44495
44496         Make sleep work on older versions of mingw.
44497         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44498         only whether it exists.
44499         * doc/posix-functions/sleep.texi: Mention the problem with older
44500         versions of mingw.
44501
44502 2008-10-11  Bruno Haible  <bruno@clisp.org>
44503
44504         New module 'shutdown'.
44505         * modules/shutdown: New file.
44506         * lib/sys_socket.in.h (shutdown): New declaration.
44507         * lib/winsock.c (shutdown): New function.
44508         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44509         GNULIB_SHUTDOWN.
44510         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44511         * doc/posix-functions/shutdown.texi: Document the new module.
44512
44513 2008-10-11  Jim Meyering  <meyering@redhat.com>
44514
44515         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44516
44517 2008-10-11  Bruno Haible  <bruno@clisp.org>
44518
44519         New module 'fclose'.
44520         * modules/fclose: New file.
44521         * lib/stdio.in.h (fclose): New declaration.
44522         * lib/fclose.c: New file.
44523         * m4/fclose.m4: New file.
44524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44525         REPLACE_FCLOSE.
44526         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44527         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44528         REPLACE_FCLOSE.
44529         * modules/close (Depends-on): fclose.
44530         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44531
44532 2008-10-11  Bruno Haible  <bruno@clisp.org>
44533
44534         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44535         set errno and don't call _close.
44536
44537 2008-10-10  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44540         ACL, not afterwards. Fixes test failure on Cygwin.
44541
44542 2008-10-09  Ben Pfaff  <blp@gnu.org>
44543
44544         * build-aux/announce-gen: Fix gnulib version related part of usage
44545         message.  Die with a useful error message if no tarballs are
44546         found.
44547
44548 2008-10-10  Jim Meyering  <meyering@redhat.com>
44549
44550         bootstrap: use git's --depth=N option only if it's supported
44551         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44552         recognize the --depth option.  Reported by Pádraig Brady.
44553
44554 2008-10-09  Bruno Haible  <bruno@clisp.org>
44555
44556         New module 'ioctl'.
44557         * modules/ioctl: New file.
44558         * lib/sys_socket.in.h (ioctl): Remove declaration.
44559         * lib/winsock.c: Include <sys/ioctl.h>.
44560         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44561         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44562         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44563         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44564         * doc/posix-functions/ioctl.texi: Mention the new module.
44565
44566 2008-10-09  Bruno Haible  <bruno@clisp.org>
44567
44568         New module 'sys_ioctl'.
44569         * lib/sys_ioctl.in.h: New file.
44570         * m4/sys_ioctl_h.m4: New file.
44571         * modules/sys_ioctl: New file.
44572         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44573
44574 2008-10-09  Bruno Haible  <bruno@clisp.org>
44575
44576         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44577         * lib/winsock.c: Include <stdarg.h>.
44578         (rpl_ioctl): Change to second argument 'int' and then varargs.
44579
44580 2008-10-09  Bruno Haible  <bruno@clisp.org>
44581
44582         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44583         when the sys_socket module is present and the system has <winsock2.h>.
44584
44585 2008-10-09  Bruno Haible  <bruno@clisp.org>
44586
44587         * doc/posix-functions/close.texi: Mention module 'close' instead of
44588         module 'sys_socket'.
44589
44590 2008-10-09  Bruno Haible  <bruno@clisp.org>
44591
44592         * doc/glibc-headers/sys_ioctl.texi: New file.
44593         * doc/gnulib.texi: Include it.
44594
44595 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44596             Bruno Haible  <bruno@clisp.org>
44597
44598         Combine the two replacements of 'close'.
44599         * lib/sys_socket.in.h (close): Define to a reminder to include
44600         <unistd.h>.
44601         (_gl_close_fd_maybe_socket): New declaration.
44602         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44603         * lib/winsock.c (close): Remove undefinition.
44604         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44605         needed for the gnulib module 'close'.
44606         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44607         define to an error symbol or to a warning, if suitable.
44608         * lib/close.c: Include <sys/socket.h>.
44609         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44610         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44611         UNISTD_H_HAVE_WINSOCK2_H.
44612         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44614         UNISTD_H_HAVE_WINSOCK2_H.
44615         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44616         (configure.ac): Set a module indicator.
44617         (Makefile.am): Substitute GNULIB_CLOSE.
44618         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44619         * modules/poll-tests (Depends-on): Add close.
44620         * modules/select-tests (Depends-on): Likewise.
44621
44622 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44623             Bruno Haible  <bruno@clisp.org>
44624
44625         New module 'close'.
44626         * modules/close: New file.
44627         * lib/unistd.in.h (close): Move declaration out of the
44628         FCHDIR_REPLACEMENT scope.
44629         (_gl_unregister_fd): New declaration.
44630         * lib/close.c: New file.
44631         * lib/fchdir.c (rpl_close): Remove function.
44632         * m4/close.m4: New file.
44633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44634         close.
44635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44636         REPLACE_CLOSE.
44637         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44638         REPLACE_CLOSE.
44639         * modules/fchdir (Depends-on): Add close.
44640
44641 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44642             Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/fcntl.in.h (open): Simplify conditionals.
44645         (_gl_register_fd): New declaration.
44646         * lib/fchdir.c (rpl_open): Remove function.
44647         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44648         also.
44649         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44651         open.
44652
44653 2008-10-09  Jim Meyering  <meyering@redhat.com>
44654
44655         GNUmakefile: use the more name-space-friendly "_version"
44656         * top/GNUmakefile (_dummy): Update.
44657         (_version): Rename from "version".
44658
44659 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44660             Bruno Haible  <bruno@clisp.org>
44661
44662         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44663         rpl_close.
44664         (_gl_register_fd): New function, extracted from rpl_open.
44665         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44666         (rpl_open, rpl_opendir): Use _gl_register_fd.
44667
44668 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44669
44670         Fix organization of 'open' replacement.
44671         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44672         (gl_FUNC_OPEN): Use it.
44673         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44674
44675 2008-10-08  Bruno Haible  <bruno@clisp.org>
44676
44677         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44678
44679 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44680
44681         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44682         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44683         listen).
44684
44685 2008-10-08  Eric Blake  <ebb9@byu.net>
44686
44687         GNUmakefile: add 'make version' target
44688         * top/GNUmakefile (_curr-ver): Split version update rules...
44689         (version): ...into a target.
44690
44691 2008-10-07  Bruno Haible  <bruno@clisp.org>
44692
44693         Use a more portable replacement expression for -0.0L.
44694         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44695         instead of -0.0L. Fix m4 quotation.
44696
44697         * tests/test-signbit.c: Include <float.h>.
44698         (minus_zero): New variable.
44699         (test_signbitl): Use minus_zero instead of -zero.
44700         * modules/signbit-tests (Depends-on): Add float.
44701
44702         * tests/test-ceill.c: Include <float.h>.
44703         (zero): Remove variable.
44704         (minus_zero): New variable.
44705         (main): Use minus_zero instead of -zero.
44706         * modules/ceill-tests (Depends-on): Add float.
44707
44708         * tests/test-floorl.c: Include <float.h>.
44709         (zero): Remove variable.
44710         (minus_zero): New variable.
44711         (main): Use minus_zero instead of -zero.
44712         * modules/floorl-tests (Depends-on): Add float.
44713
44714         * tests/test-roundl.c: Include <float.h>.
44715         (zero): Remove variable.
44716         (minus_zero): New variable.
44717         (main): Use minus_zero instead of -zero.
44718         * modules/roundl-tests (Depends-on): Add float.
44719
44720         * tests/test-truncl.c: Include <float.h>.
44721         (zero): Remove variable.
44722         (minus_zero): New variable.
44723         (main): Use minus_zero instead of -zero.
44724         * modules/truncl-tests (Depends-on): Add float.
44725
44726         * tests/test-frexpl.c (zero): Remove variable.
44727         (minus_zero): New variable.
44728         (main): Use minus_zero instead of -zero.
44729         * modules/frexpl-tests (Depends-on): Add float.
44730
44731         * tests/test-isnan.c (zerol): Remove variable.
44732         (minus_zerol): New variable.
44733         (test_long_double): Use minus_zerol instead of -zerol.
44734         * modules/isnan-tests (Depends-on): Add float.
44735
44736         * tests/test-isnanl.h (zero): Remove variable.
44737         (minus_zero): New variable.
44738         (main): Use minus_zero instead of -zero.
44739         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44740         * modules/isnanl-tests (Depends-on): Add float.
44741
44742         * tests/test-ldexpl.c (zero): Remove variable.
44743         (minus_zero): New variable.
44744         (main): Use minus_zero instead of -zero.
44745         * modules/ldexpl-tests (Depends-on): Add float.
44746
44747         * tests/test-snprintf-posix.h (zerol): Remove variable.
44748         (minus_zerol): New variable.
44749         (test_function): Use minus_zerol instead of -zerol.
44750         * modules/snprintf-posix-tests (Depends-on): Add float.
44751         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44752
44753         * tests/test-sprintf-posix.h (zerol): Remove variable.
44754         (minus_zerol): New variable.
44755         (test_function): Use minus_zerol instead of -zerol.
44756         * modules/sprintf-posix-tests (Depends-on): Add float.
44757         * modules/vsprintf-posix-tests (Depends-on): Add float.
44758
44759         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44760         (minus_zerol): New variable.
44761         (test_function): Use minus_zerol instead of -zerol.
44762         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44763
44764         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44765         (minus_zerol): New variable.
44766         (test_function): Use minus_zerol instead of -zerol.
44767         * modules/vasprintf-posix-tests (Depends-on): Add float.
44768
44769 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44770
44771         * MODULES.html.sh (Support for building documentation): Mention
44772         pmccabe2html.  Sort entries.
44773
44774         Add pmccabe2html module, from gnupdf.
44775         * build-aux/pmccabe.css: New file.
44776         * build-aux/pmccabe2html: New file.
44777         * m4/pmccabe2html.m4: New file.
44778         * modules/pmccabe2html: New file.
44779
44780 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44781
44782         flock: new module
44783         * MODULES.html.sh: Add to list of modules.
44784         * lib/flock.c: flock implementation for Windows and Unix systems
44785         which have fcntl.
44786         * doc/glibc-functions/flock.texi: Update documentation.
44787         * lib/sys_file.in.h: <sys/file.h> header file.
44788         * m4/flock.m4: M4 macros.
44789         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44790         * modules/flock: flock module.
44791         * modules/flock-tests: flock tests module.
44792         * modules/sys_file: sys/file.h module.
44793         * tests/test-flock.c: test suite for flock.
44794
44795 2008-10-06  Jim Meyering  <meyering@redhat.com>
44796
44797         bootstrap: check for LT_INIT more portably still ;-)
44798         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44799         Spotted by Bruno Haible.
44800
44801 2008-10-06  Eric Blake  <ebb9@byu.net>
44802
44803         test-signbit: avoid tripping Irix cc bug on -0.0L
44804         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44805         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44806         entire testsuite consistent and avoids an Irix 6.2 bug.
44807
44808 2008-10-05  Bruno Haible  <bruno@clisp.org>
44809             Jim Meyering  <jim@meyering.net>
44810
44811         Add an option for ignoring EPIPE during close_stdout.
44812         * lib/closeout.h: Include <stdbool.h>.
44813         (close_stdout_set_ignore_EPIPE): New declaration.
44814         * lib/closeout.c: Include <stdbool.h>.
44815         (ignore_EPIPE): New variable.
44816         (close_stdout_set_ignore_EPIPE): New function.
44817         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44818         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44819         failure.
44820         * modules/closeout (Depends-on): Add stdbool.
44821
44822 2008-10-05  Bruno Haible  <bruno@clisp.org>
44823
44824         * modules/accept: New file.
44825         * modules/bind: New file.
44826         * modules/connect: New file.
44827         * modules/getpeername: New file.
44828         * modules/getsockname: New file.
44829         * modules/getsockopt: New file.
44830         * modules/listen: New file.
44831         * modules/recv: New file.
44832         * modules/recvfrom: New file.
44833         * modules/send: New file.
44834         * modules/sendto: New file.
44835         * modules/setsockopt: New file.
44836         * modules/socket: New file.
44837         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44838         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44839         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44840         the particular module is requested. Add a link warning when the
44841         particular module is not requested.
44842         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44843         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44844         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44845         the particular module is requested.
44846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44847         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44848         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44849         * modules/sys_socket (Depends-on): Add link-warning.
44850         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44851         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44852         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44853         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44854         GL_LINK_WARNING.
44855         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44856         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44857         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44858         * doc/posix-functions/getpeername.texi: Mention the new module
44859         'getpeername'.
44860         * doc/posix-functions/getsockname.texi: Mention the new module
44861         'getsockname'.
44862         * doc/posix-functions/getsockopt.texi: Mention the new module
44863         'getsockopt'.
44864         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44865         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44866         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44867         * doc/posix-functions/send.texi: Mention the new module 'send'.
44868         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44869         * doc/posix-functions/setsockopt.texi: Mention the new module
44870         'setsockopt'.
44871         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44872         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44873         listen, connect, accept.
44874         * modules/select-tests (Depends-on): Likewise.
44875
44876 2008-10-05  Bruno Haible  <bruno@clisp.org>
44877
44878         * lib/winsock.c (strerror): Remove unused #undef.
44879         (rpl_close): Remove unused local variable.
44880
44881         * modules/sys_socket (Depends-on); Add errno.
44882
44883 2008-10-05  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44886         (select): Add a link warning when the 'select' module is not used.
44887         * modules/sys_select (Depends-on): Add link-warning.
44888         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44889         Suggested by Paolo Bonzini.
44890
44891 2008-10-05  Jim Meyering  <meyering@redhat.com>
44892
44893         bootstrap: check for LT_INIT more portably
44894         * build-aux/bootstrap: Avoid using grep -E, since it's not
44895         portable enough.  Suggestion from Bruno Haible.
44896
44897 2008-10-05  Bruno Haible  <bruno@clisp.org>
44898
44899         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44900         as being fixed by gnulib.
44901
44902 2008-10-05  Bruno Haible  <bruno@clisp.org>
44903
44904         * modules/select-tests: New file, mostly copied from
44905         modules/sys_select-tests.
44906         * tests/test-select.c: New file, mostly copied from
44907         tests/test-sys_select.c.
44908         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44909         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44910         (Makefile.am): Remove test_sys_select_LDADD.
44911
44912         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44913         to an undefined symbol, for an error message.
44914         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44915         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44916         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44917         winsock-select.c here.
44918         * modules/sys_select (Files): Remove lib/winsock-select.c.
44919         (Depends-on): Remove alloca.
44920         (Makefile.am): Substitute GNULIB_SELECT.
44921         * modules/select: New file.
44922         * doc/posix-functions/select.texi: Update.
44923
44924 2008-10-05  Bruno Haible  <bruno@clisp.org>
44925
44926         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44927         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44928         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44929         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44930         getdtablesize.
44931         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44932         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44933
44934 2008-10-05  Bruno Haible  <bruno@clisp.org>
44935
44936         * modules/getdtablesize-tests: New file.
44937         * tests/test-getdtablesize.c: New file.
44938
44939         New module 'getdtablesize'.
44940         * lib/unistd.in.h (getdtablesize): New declaration.
44941         * lib/getdtablesize.c: New file.
44942         * m4/getdtablesize.m4: New file.
44943         * modules/getdtablesize: New file.
44944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44945         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44946         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44947         HAVE_GETDTABLESIZE.
44948         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44949
44950 2008-10-05  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/sched (Makefile.am): Fix typo.
44953         Reported by Simon Josefsson.
44954
44955 2008-10-05  Jim Meyering  <meyering@redhat.com>
44956
44957         bootstrap: check for LT_INIT, too
44958         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44959         are deprecated.  Suggestion from Ralf Wildenhues.
44960
44961 2008-10-05  Bruno Haible  <bruno@clisp.org>
44962
44963         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44964         overriding them by ours.
44965         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44966
44967 2008-10-05  Jim Meyering  <meyering@redhat.com>
44968
44969         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44970         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44971         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44972
44973 2008-10-04  Bruno Haible  <bruno@clisp.org>
44974
44975         * modules/dup2 (License): Change to LGPLv2+.
44976         * modules/sleep (License): Likewise.
44977         * modules/perror (License): Likewise.
44978         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44979         Blake.
44980         * modules/signal (License): Likewise.
44981         * modules/sigprocmask (License): Likewise.
44982         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44983         Meyering.
44984
44985 2008-10-04  Bruno Haible  <bruno@clisp.org>
44986
44987         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44988         Reported by Rainer Tammer <tammer@tammer.net>.
44989
44990 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44991             Bruno Haible  <bruno@clisp.org>
44992
44993         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44994         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44995         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44996
44997 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44998
44999         filevercmp: new module
45000         * lib/filevercmp.h: New function filevercmp comparing version strings.
45001         * lib/filevercmp.c: Implementation of filevercmp function.
45002         * modules/filevercmp: Module metadata.
45003         * tests/test-filevercmp.c: Unit test for new module.
45004         * modules/filevercmp-tests: Unit test metadata.
45005         * MODULES.html.sh: Add filevercmp module.
45006
45007 2008-10-03  Bruno Haible  <bruno@clisp.org>
45008
45009         * lib/c-ctype.h: Add comment.
45010         Reported by Jim Meyering.
45011
45012 2008-10-02  Bruno Haible  <bruno@clisp.org>
45013
45014         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45015
45016 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45017
45018         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45019         name of bootstrap.conf accordingly.
45020
45021 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45022
45023         * build-aux/bootstrap: Install git-merge-changelog configuration
45024         items into .gitconfig if needed.
45025
45026 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45027
45028         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45029         git repository, and initialize/update it accordingly.
45030
45031 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45032
45033         * modules/fsync-tests: New file.
45034         * tests/test-fsync.c: New file.
45035
45036         New module 'fsync'.
45037         * lib/fsync.c: New file.
45038         * m4/fsync.m4: New file.
45039         * modules/fsync: New file.
45040         * lib/unistd.in.h (fsync): New declaration.
45041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45042         GNULIB_FSYNC and HAVE_FSYNC.
45043         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45044         * MODULES.html.sh (posix_functions): Add fsync.
45045         * doc/posix-functions/fsync.texi: Mention the new module.
45046
45047 2008-10-02  Jim Meyering  <meyering@redhat.com>
45048
45049         fts.c: sync with similar code from coreutils' remove.c
45050         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45051         Guard also with "#if defined __linux__", since for now at least,
45052         this code is Linux-kernel-specific.
45053
45054 2008-10-02  Jim Meyering  <meyering@redhat.com>
45055
45056         fts: bug fixes
45057         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45058         Include <sys/vfs.h>, not <sys/statfs.h>.
45059
45060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45061         Include <sys/vfs.h>, not <sys/statfs.h>.
45062
45063 2008-10-01  Bruno Haible  <bruno@clisp.org>
45064
45065         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45067         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45068         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45069         * doc/posix-functions/posix_spawnp.texi: Likewise.
45070         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45071         whether posix_spawn actually works.
45072         * m4/pipe.m4 (gl_PIPE): Likewise.
45073         * modules/execute (Files): Add m4/posix_spawn.m4.
45074         * modules/pipe (Files): Add m4/posix_spawn.m4.
45075         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45076
45077 2008-10-01  Jim Meyering  <meyering@redhat.com>
45078
45079         remove trailing spaces
45080         * NEWS: Likewise.
45081         * lib/poll.c (poll): Likewise.
45082         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45083         * lib/winsock.c (rpl_close): Likewise.
45084         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45085         * modules/yield: Likewise.
45086         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45087         * tests/test-sys_select.c (connect_to_socket): Likewise.
45088
45089         fts.c: adjust a new interface to be more generally useful
45090         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45091         (fts_build): Adjust caller.
45092
45093 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45094
45095         * modules/cond-tests: New file.
45096         * tests/test-cond.c: New file.
45097
45098 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45099             Bruno Haible  <bruno@clisp.org>
45100
45101         * modules/cond (Dependencies): Add errno, time.
45102         * lib/glthread/cond.h: Include <time.h>.
45103         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45104         across platforms.
45105
45106 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45107             Bruno Haible  <bruno@clisp.org>
45108
45109         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45110
45111 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45112             Bruno Haible  <bruno@clisp.org>
45113
45114         * modules/tls-tests (Depends-on): Add thread, yield.
45115         (configure.ac): Remove all checks.
45116         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45117         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45118         gl_thread_self): Remove definitions. Include glthread/thread.h and
45119         glthread/yield.h instead.
45120         (test_tls): Pass an additional NULL argument to gl_thread_join.
45121
45122 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45123             Bruno Haible  <bruno@clisp.org>
45124
45125         * modules/lock-tests (Depends-on): Add thread, yield.
45126         (configure.ac): Remove all checks.
45127         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45128         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45129         gl_thread_self): Remove definitions. Include glthread/thread.h and
45130         glthread/yield.h instead.
45131         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45132         additional NULL argument to gl_thread_join.
45133
45134 2008-09-30  Bruno Haible  <bruno@clisp.org>
45135
45136         Fix the Win32 implementation of the 'thread' module.
45137         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45138         pointer type.
45139         (gl_thread_self): Invoke gl_thread_self_func.
45140         (gl_thread_self_func): New declaration.
45141         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45142         (do_init_self_key, init_self_key): New functions.
45143         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45144         Remove some fields.
45145         (running_threads, running_lock): Remove variables.
45146         (get_current_thread_handle): New function.
45147         (gl_thread_self_func, wrapper_func, glthread_create_func,
45148         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45149         simplified.
45150
45151 2008-09-30  Bruno Haible  <bruno@clisp.org>
45152
45153         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45154         files.
45155
45156 2008-09-30  Jim Meyering  <meyering@redhat.com>
45157
45158         fts.m4: correct the test for statfs.f_type
45159         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45160         when checking for statfs.f_type.
45161
45162 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45163
45164         tests: avoid some compiler warnings
45165         * tests/test-memchr.c (main): Pass NULL indirectly.
45166         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45167
45168 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45169
45170         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45171         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45172         exactly specified dayshifts.
45173         (dayshift): New rule.
45174         (rel): Add dayshift.
45175         (relative_time_table) [tomorrow, yesterday, today, now]:
45176         Use tDAY_SHIFT in place of tDAY_UNIT.
45177         * tests/test-getdate.c: Add tests for now-disallowed countable
45178         dayshifts, e.g., "4 yesterday ago".
45179
45180 2008-09-29  Bruno Haible  <bruno@clisp.org>
45181
45182         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45183         * tests/test-posix_spawn1.in.sh: Renamed from
45184         tests/test-posix_spawn.in.sh.
45185         * tests/test-posix_spawn2.c: New file.
45186         * tests/test-posix_spawn2.in.sh: New file.
45187         * modules/posix_spawnp-tests (Files): Update.
45188         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45189
45190 2008-09-29  Bruno Haible  <bruno@clisp.org>
45191
45192         Propagate effects of putenv/setenv/unsetenv to child processes.
45193         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45194         * lib/pipe.c (create_pipe): Likewise.
45195
45196 2008-09-29  Bruno Haible  <bruno@clisp.org>
45197
45198         Enable use of shell scripts as executables in mingw.
45199         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45200         run the program as a shell script.
45201         * lib/pipe.c (create_pipe): Likewise.
45202         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45203         resulting array.
45204
45205 2008-09-29  Eric Blake  <ebb9@byu.net>
45206
45207         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45208
45209 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45210
45211         * doc/posix-functions/accept.texi: Update mingw problems.
45212         * doc/posix-functions/bind.texi: Update mingw problems.
45213         * doc/posix-functions/close.texi: Update mingw problems.
45214         * doc/posix-functions/connect.texi: Update mingw problems.
45215         * doc/posix-functions/getpeername.texi: Update mingw problems.
45216         * doc/posix-functions/getsockname.texi: Update mingw problems.
45217         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45218         * doc/posix-functions/ioctl.texi: Update mingw problems.
45219         * doc/posix-functions/listen.texi: Update mingw problems.
45220         * doc/posix-functions/recv.texi: Update mingw problems.
45221         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45222         * doc/posix-functions/select.texi: Update mingw problems.
45223         * doc/posix-functions/send.texi: Update mingw problems.
45224         * doc/posix-functions/sendto.texi: Update mingw problems.
45225         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45226         * doc/posix-functions/socket.texi: Update mingw problems.
45227
45228 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45229             Bruno Haible  <bruno@clisp.org>
45230
45231         * lib/sys_select.in.h: Include sys/time.h.
45232         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45233         * modules/sys_select: Depend on sys_time.
45234         * tests/test-sys_select.c: Test that sys/select.h defines struct
45235         timeval fully.
45236
45237 2008-09-29  Bruno Haible  <bruno@clisp.org>
45238
45239         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45240         * lib/sys_select.in.h: Likewise.
45241
45242 2008-09-29  Bruno Haible  <bruno@clisp.org>
45243
45244         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45245
45246 2008-09-29  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45249         Set LIBSOCKET instead of augmenting LIBS.
45250         * modules/sockets (Link): New section.
45251         * modules/sockets-tests (test_sockets_LDADD): New variable.
45252         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45253         * modules/poll-tests (test_poll_LDADD): New variable.
45254         * NEWS: Document the change.
45255
45256 2008-09-29  Bruno Haible  <bruno@clisp.org>
45257
45258         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45259         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45260         ARPA_INET_H directly.
45261         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45262
45263 2008-09-28  Bruno Haible  <bruno@clisp.org>
45264
45265         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45266         from gl_HEADER_SYS_SOCKET.
45267         (gl_HEADER_SYS_SOCKET): Invoke it.
45268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45269
45270 2008-09-28  Bruno Haible  <bruno@clisp.org>
45271
45272         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45273         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45274         Needed on OSF/1 4.0.
45275
45276 2008-09-28  Bruno Haible  <bruno@clisp.org>
45277
45278         Override open more carefully.
45279         * lib/open.c (orig_open): New function.
45280         (rpl_open): Use orig_open instead of open.
45281         * lib/fcntl.in.h: Add special invocation convention.
45282         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45283         (gl_FUNC_OPEN): Invoke it.
45284
45285         Override freopen more carefully.
45286         * lib/freopen.c (orig_freopen): New function.
45287         (rpl_freopen): Use orig_freopen instead of freopen.
45288         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45289         (gl_FUNC_FREOPEN): Invoke it.
45290
45291         Override fopen more carefully.
45292         * lib/fopen.c (orig_fopen): New function.
45293         (rpl_fopen): Use orig_fopen instead of fopen.
45294         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45295         (gl_FUNC_FOPEN): Invoke it.
45296         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45297
45298 2008-09-28  Bruno Haible  <bruno@clisp.org>
45299
45300         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45301         SIGPIPE.
45302
45303 2008-09-28  Bruno Haible  <bruno@clisp.org>
45304
45305         * tests/test-sigaction.c (handler, main): Disable the check whether
45306         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45307         glibc systems with LinuxThreads.
45308
45309 2008-09-28  Bruno Haible  <bruno@clisp.org>
45310
45311         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45312
45313         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45314         with AIX xlc.
45315         * lib/fcntl.in.h (open): Likewise.
45316         Reported by Rainer Tammer <tammer@tammer.net>.
45317
45318 2008-09-28  Bruno Haible  <bruno@clisp.org>
45319
45320         * modules/posix_spawnp-tests: New file.
45321         * tests/test-posix_spawn.c: New file.
45322         * tests/test-posix_spawn.in.sh: New file.
45323
45324         New module 'posix_spawnp'.
45325         * modules/posix_spawnp: New file.
45326         * lib/spawnp.c: New file, from GNU libc with modifications.
45327         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45328
45329         New module 'posix_spawn'.
45330         * modules/posix_spawn: New file.
45331         * lib/spawn.c: New file, from GNU libc with modifications.
45332         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45333
45334         New module 'posix_spawnattr_destroy'.
45335         * modules/posix_spawnattr_destroy: New file.
45336         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45337         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45338         module.
45339
45340         New module 'posix_spawnattr_setsigmask'.
45341         * modules/posix_spawnattr_setsigmask: New file.
45342         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45343         modifications.
45344         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45345         new module.
45346
45347         New module 'posix_spawnattr_getsigmask'.
45348         * modules/posix_spawnattr_getsigmask: New file.
45349         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45350         modifications.
45351         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45352         new module.
45353
45354         New module 'posix_spawnattr_setsigdefault'.
45355         * modules/posix_spawnattr_setsigdefault: New file.
45356         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45357         modifications.
45358         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45359         new module.
45360
45361         New module 'posix_spawnattr_getsigdefault'.
45362         * modules/posix_spawnattr_getsigdefault: New file.
45363         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45364         modifications.
45365         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45366         new module.
45367
45368         New module 'posix_spawnattr_setschedpolicy'.
45369         * modules/posix_spawnattr_setschedpolicy: New file.
45370         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45371         modifications.
45372         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45373         new module.
45374
45375         New module 'posix_spawnattr_getschedpolicy'.
45376         * modules/posix_spawnattr_getschedpolicy: New file.
45377         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45378         modifications.
45379         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45380         new module.
45381
45382         New module 'posix_spawnattr_setschedparam'.
45383         * modules/posix_spawnattr_setschedparam: New file.
45384         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45385         modifications.
45386         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45387         new module.
45388
45389         New module 'posix_spawnattr_getschedparam'.
45390         * modules/posix_spawnattr_getschedparam: New file.
45391         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45392         modifications.
45393         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45394         new module.
45395
45396         New module 'posix_spawnattr_setpgroup'.
45397         * modules/posix_spawnattr_setpgroup: New file.
45398         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45399         modifications.
45400         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45401         module.
45402
45403         New module 'posix_spawnattr_getpgroup'.
45404         * modules/posix_spawnattr_getpgroup: New file.
45405         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45406         modifications.
45407         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45408         module.
45409
45410         New module 'posix_spawnattr_setflags'.
45411         * modules/posix_spawnattr_setflags: New file.
45412         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45413         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45414         module.
45415
45416         New module 'posix_spawnattr_getflags'.
45417         * modules/posix_spawnattr_getflags: New file.
45418         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45419         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45420         module.
45421
45422         New module 'posix_spawnattr_init'.
45423         * modules/posix_spawnattr_init: New file.
45424         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45425         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45426         module.
45427
45428         New module 'posix_spawn_file_actions_destroy'.
45429         * modules/posix_spawn_file_actions_destroy: New file.
45430         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45431         modifications.
45432         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45433         the new module.
45434
45435         New module 'posix_spawn_file_actions_addopen'.
45436         * modules/posix_spawn_file_actions_addopen: New file.
45437         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45438         modifications.
45439         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45440         the new module.
45441
45442         New module 'posix_spawn_file_actions_adddup2'.
45443         * modules/posix_spawn_file_actions_adddup2: New file.
45444         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45445         modifications.
45446         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45447         the new module.
45448
45449         New module 'posix_spawn_file_actions_addclose'.
45450         * modules/posix_spawn_file_actions_addclose: New file.
45451         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45452         modifications.
45453         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45454         the new module.
45455
45456         New module 'posix_spawn_file_actions_init'.
45457         * modules/posix_spawn_file_actions_init: New file.
45458         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45459         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45460         new module.
45461
45462         New module 'posix_spawn-internal'.
45463         * modules/posix_spawn-internal: New file.
45464         * lib/spawn_int.h: New file, from GNU libc with modifications.
45465         * lib/spawni.c: New file, from GNU libc with modifications.
45466         * m4/posix_spawn.m4: New file.
45467
45468         New module 'spawn'.
45469         * modules/spawn: New file.
45470         * lib/spawn.in.h: New file, from GNU libc with modifications.
45471         * m4/spawn_h.m4: New file.
45472         * doc/posix-headers/spawn.texi: Mention the new module.
45473
45474 2008-09-28  Bruno Haible  <bruno@clisp.org>
45475
45476         * modules/sched-tests: New file.
45477         * tests/test-sched.c: New file.
45478
45479         New module 'sched'.
45480         * modules/sched: New file.
45481         * lib/sched.in.h: New file.
45482         * m4/sched_h.m4: New file.
45483         * doc/posix-headers/sched.texi: Mention the new module.
45484
45485 2008-09-27  Eric Blake  <ebb9@byu.net>
45486
45487         Fix previous patch, and tweak references to $0.
45488         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45489         (func_version, func_gnulib_dir): Don't call this program
45490         gnulib-tool.
45491         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45492         with using $0 in function.
45493         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45494         (func_fatal_error): Reuse the name the user invoked us with.
45495
45496 2008-09-27  Bruno Haible  <bruno@clisp.org>
45497
45498         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45499         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45500         (gl_ICONV_H): Not here.
45501         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45502         instead of assigning ICONV_H directly.
45503
45504         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45506         WCHAR_H directly.
45507
45508 2008-09-27  Bruno Haible  <bruno@clisp.org>
45509
45510         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45511         * modules/arpa_inet (Depends-on): Add link-warning.
45512         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45513         * modules/unistd (Makefile.am): Likewise.
45514
45515 2008-09-26  Bruno Haible  <bruno@clisp.org>
45516
45517         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45518         variables.
45519         (func_version): Essentially copied from gnulib-tool.
45520         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45521         func_readlink): Copied from gnulib-tool.
45522
45523 2008-09-26  Bruno Haible  <bruno@clisp.org>
45524
45525         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45526         invoking git-version-gen.
45527
45528 2008-09-26  Bruno Haible  <bruno@clisp.org>
45529
45530         * posix-modules: Update to directory names changed on 2008-01-19.
45531         Remove commas in output before splitting into words. No more need to
45532         avoid 'ftruncate' since 2007-02-19.
45533
45534 2008-09-26  Bruno Haible  <bruno@clisp.org>
45535
45536         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45537
45538 2008-09-26  Bruno Haible  <bruno@clisp.org>
45539
45540         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45541         * modules/fwriteerror (Depends-on): Add errno.
45542
45543 2008-09-26  Bruno Haible  <bruno@clisp.org>
45544
45545         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45546         * tests/test-vc-list-files-cvs.sh: Likewise.
45547
45548 2008-09-26  Bruno Haible  <bruno@clisp.org>
45549
45550         * doc/posix-headers/sys_resource.texi: Reorder items.
45551
45552 2008-09-26  Jim Meyering  <meyering@redhat.com>
45553
45554         fts: tweak inode comparison function
45555         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45556         inode numbers, as documented.
45557
45558         fts: sort dirent entries on inode number before traversing
45559         This avoids a quadratic, seek-related performance penalty when
45560         operating on a directory containing many entries (measurable at 10k;
45561         3.5 hours at 2 million entries with a cold cache) on certain types
45562         of file systems, including ext3 and ext4, but not tmpfs.
45563         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45564         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45565         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45566         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45567         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45568         (fts_build): Set the stat.st_ino member from D_INO.
45569         If it is likely to be useful, sort dirent entries on inode number.
45570
45571         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45572         and the struct statfs.f_type member.
45573         * modules/fts (Depends-on): Add d-ino.
45574
45575 2008-09-26  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/sigpipe-die (Depends-on): Add sigpipe.
45578
45579         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45580         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45581         and GNULIB_STDIO_H_SIGPIPE are set.
45582         * lib/stdio-write.c: New file.
45583         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45584         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45585         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45586         REPLACE_STDIO_WRITE_FUNCS.
45587         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45588         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45589         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45590         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45591         * modules/stdio (Files): Add lib/stdio-write.c.
45592         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45593         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45594         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45595         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45596         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45597         REPLACE_FPRINTF_POSIX.
45598         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45599         REPLACE_PRINTF_POSIX.
45600         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45601         REPLACE_VFPRINTF_POSIX.
45602         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45603         REPLACE_VPRINTF_POSIX.
45604         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45605         SIGPIPE issue.
45606         * doc/posix-functions/fputc.texi: Likewise.
45607         * doc/posix-functions/fputs.texi: Likewise.
45608         * doc/posix-functions/fwrite.texi: Likewise.
45609         * doc/posix-functions/printf.texi: Likewise.
45610         * doc/posix-functions/putc.texi: Likewise.
45611         * doc/posix-functions/putchar.texi: Likewise.
45612         * doc/posix-functions/puts.texi: Likewise.
45613         * doc/posix-functions/vfprintf.texi: Likewise.
45614         * doc/posix-functions/vprintf.texi: Likewise.
45615
45616         * modules/safe-write (Depends-on): Add write.
45617
45618         * modules/sigpipe-tests: New file.
45619         * tests/test-sigpipe.c: New file.
45620         * tests/test-sigpipe.sh: New file.
45621
45622         * modules/write: New file.
45623         * lib/unistd.in.h: Include <sys/types.h>.
45624         (write): New declaration.
45625         * lib/write.c: New file.
45626         * m4/write.m4: New file.
45627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45628         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45629         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45630         GNULIB_WRITE, REPLACE_WRITE.
45631         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45632         and the SIGPIPE issue.
45633
45634         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45635         (raise): New declaration.
45636         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45637         (ext_signal): New function.
45638         (rpl_raise): New function.
45639         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45640         GNULIB_SIGNAL_H_SIGPIPE.
45641         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45642         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45643
45644         * modules/sigpipe: New file.
45645         * m4/sigpipe.m4: New file.
45646
45647 2008-09-25  Derek Price  <derek@ximbiot.com>
45648             Bruno Haible  <bruno@clisp.org>
45649
45650         * gnulib-tool (func_import): Report all license incompatibilities, not
45651         just the first one.
45652
45653 2008-09-25  Bruno Haible  <bruno@clisp.org>
45654
45655         * gnulib-tool (func_import): When computing the edits, consider not
45656         only the Makefile.ams that exist but also those that will be generated.
45657
45658 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45659
45660         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45661         fixes gnulib-tool --test warning about duplicate dependency.
45662
45663 2008-09-25  Bruno Haible  <bruno@clisp.org>
45664
45665         * gnulib-tool: Don't ask the user to perform edits in the generated
45666         Makefile.ams.
45667         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45668         apply to the Makefile.am being generated.
45669         (func_emit_tests_Makefile_am): Execute edits that apply to the
45670         Makefile.am being generated.
45671         (func_import): Setup list of Makefile.am edits before emitting the
45672         Makefile.ams, not at the end.
45673         (func_create_testdir): Update.
45674         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45675
45676 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45677
45678         * gnulib-tool (func_import): Store the --tests-base option in the
45679         comment in gnulib-cache.m4.
45680
45681 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45682
45683         * NEWS: Document increased portability that sys_select now provides.
45684
45685         * lib/sys_select.in.h: Install select wrapper.
45686         * lib/sys_socket.in.h: Use more descriptive name when there is no
45687         select wrapper.
45688         * lib/winsock-select.c: New.
45689         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45690         Require gl_HEADER_SYS_SOCKET.
45691         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45692         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45693         * tests/test-sys_select.c: Add functional tests.
45694
45695 2008-09-24  Eric Blake  <ebb9@byu.net>
45696
45697         open, fopen: close fd leak in last patch
45698         * lib/open.c (rpl_open): Close fd before returning error.
45699         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45700         * doc/posix-functions/open.texi (open): Document that Irix also
45701         has the bug.
45702         * doc/posix-functions/fopen.texi (fopen): Likewise.
45703         Reported by Paolo Bonzini.
45704
45705 2008-09-24  Bruno Haible  <bruno@clisp.org>
45706
45707         Ensure that a filename ending in a slash cannot be used to access a
45708         non-directory.
45709         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45710         to check whether it's really a directory.
45711         * lib/fopen.c: Include fcntl.h, unistd.h.
45712         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45713         and fdopen().
45714         * modules/fopen (Depends-on): Add unistd.
45715         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45716         * tests/test-fopen.c (main): Likewise.
45717         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45718         * doc/posix-functions/fopen.texi: Likewise.
45719         Reported by Eric Blake.
45720
45721 2008-09-23  Eric Blake  <ebb9@byu.net>
45722
45723         c-stack: avoid compiler optimizations when provoking overflow
45724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45725         recursion harder to optimize, to ensure a stack overflow occurs.
45726         * tests/test-c-stack.c (recurse): Likewise.
45727         Borrowed from libsigsegv.
45728
45729         c-stack: work around Irix sigaltstack bug
45730         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45731         whether sigaltstack uses wrong end of stack_t (copied in part from
45732         libsigsegv).
45733         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45734         Irix bug, without requiring an over-allocation.
45735         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45736         bug.
45737
45738         fopen: document mingw bug on directories
45739         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45740         not allowing a stream visiting a directory, even though reading
45741         from such a stream is not portable.
45742
45743 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45744
45745         * lib/poll.c: Rewrite.
45746         * modules/poll: Depend on alloca.
45747
45748 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45749
45750         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45751         instead define prototypes for a full set of wrappers.  Ensure
45752         that Cygwin does not use the compatibility code, which is only
45753         for MinGW.
45754         * lib/winsock.c: New.
45755         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45756         * modules/sys_socket: Add lib/winsock.c.
45757
45758         * modules/poll-tests: Add errno and perror.
45759         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45760
45761 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45762
45763         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45764
45765 2008-09-23  Bruno Haible  <bruno@clisp.org>
45766
45767         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45768         * doc/glibc-functions/*: Likewise.
45769
45770 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45771
45772         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45773         success.
45774
45775 2008-09-22  Eric Blake  <ebb9@byu.net>
45776             Bruno Haible  <bruno@clisp.org>
45777
45778         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45779         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45780         supply %A but mishandle pseudo-NaN.
45781         Reported by Simon Josefsson.
45782
45783 2008-09-21  Bruno Haible  <bruno@clisp.org>
45784
45785         * tests/test-lock.c (main): Tweak skip message.
45786         * tests/test-tls.c (main): Likewise.
45787
45788 2008-09-21  Bruno Haible  <bruno@clisp.org>
45789
45790         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45791         whether 'struct sigaction' has sa_sigaction here...
45792         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45793         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45794
45795 2008-09-21  Bruno Haible  <bruno@clisp.org>
45796
45797         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45798         section.
45799         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45800         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45801         the new section.
45802         (Support for obsolete systems lacking POSIX:2001): New section.
45803         (String handling <string.h>): Move strdup to the new section.
45804         Suggested by Simon Josefsson and Paolo Bonzini.
45805
45806 2008-09-21  Bruno Haible  <bruno@clisp.org>
45807
45808         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45809         exponents in %e and %g results on 'long double'. Needed for mingw's
45810         improved *printf functions.
45811         * tests/test-vasprintf-posix.c (test_function): Likewise.
45812         * tests/test-snprintf-posix.h (test_function): Likewise.
45813         * tests/test-sprintf-posix.h (test_function): Likewise.
45814         Reported by Eric Blake.
45815
45816 2008-09-21  Bruno Haible  <bruno@clisp.org>
45817
45818         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45819         * tests/test-sprintf-posix.h (test_function): Likewise.
45820
45821 2008-09-21  Bruno Haible  <bruno@clisp.org>
45822
45823         * modules/getpass (Depends-on): Add strdup-posix.
45824
45825         New module 'strdup-posix'.
45826         * modules/strdup-posix: New file.
45827         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45828         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45830         REPLACE_STRDUP.
45831         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45832         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45834         strdup-posix.
45835
45836         * modules/strdup (Depends-on): Remove malloc-posix.
45837
45838 2008-09-20  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45841         Wildenhues.
45842
45843 2008-09-20  Bruno Haible  <bruno@clisp.org>
45844
45845         Ensure that wint_t gets defined on IRIX 5.3.
45846         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45847         * lib/wctype.in.h (wint_t): Likewise.
45848         (__wctype_wint_t): Remove type.
45849         (isw*): Use wint_t instead of __wctype_wint_t.
45850         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45851         * modules/wchar (Files): Add m4/wint_t.m4.
45852         (Makefile.am): Substitute HAVE_WINT_T.
45853         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45854         * tests/test-wctype.c: Check that wint_t is defined.
45855         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45856         * doc/posix-headers/wctype.texi: Likewise.
45857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45858
45859 2008-09-18  Bruno Haible  <bruno@clisp.org>
45860
45861         * gnulib-tool (func_exit): Update comment.
45862
45863 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45864
45865         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45866         assumes strdup exists and does not depend on strdup to return
45867         ENOMEM on out of memory conditions.
45868
45869 2008-09-18  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45872         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45873         digits for the exponent.
45874
45875 2008-09-18  Jim Meyering  <meyering@redhat.com>
45876             Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/vasnprintf.c (decimal_point_char): Define also if
45879         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45880
45881 2008-09-16  Bruno Haible  <bruno@clisp.org>
45882         and Eric Blake  <ebb9@byu.net>
45883
45884         vasnprintf: support Irix 5.3
45885         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45886         that mishandle long double infinity.
45887         Reported by Tom G. Christensen.
45888
45889 2008-09-16  Bruno Haible  <bruno@clisp.org>
45890
45891         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45892         Solaris 9.
45893         * doc/glibc-functions/alphasort.texi: Likewise.
45894         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45895
45896 2008-09-16  Jim Meyering  <meyering@redhat.com>
45897
45898         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45899         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45900         a umask modification leak out of a subshell.  Otherwise, the
45901         opensolaris /bin/sh would be accepted and thus cause unwarranted
45902         failures in the coreutils test suite.
45903
45904 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45905
45906         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45907         to succeed.
45908
45909 2008-09-16  Jim Meyering  <meyering@redhat.com>
45910
45911         avoid spurious test failure when library is built without ACL support
45912         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45913         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45914         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45915         * tests/test-copy-acl.sh: Likewise.
45916
45917 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45918
45919         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45920         based on character occurrence counts.
45921
45922 2008-09-15  Eric Blake  <ebb9@byu.net>
45923
45924         tests: avoid some compiler warnings
45925         * tests/test-memchr.c (main): Pass NULL indirectly.
45926         * tests/test-closein.c (main): Avoid unused variable.
45927
45928 2008-09-15  Bruno Haible  <bruno@clisp.org>
45929
45930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45931         are missing on OpenBSD 4.0 individually.
45932         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45933
45934 2008-09-15  Bruno Haible  <bruno@clisp.org>
45935
45936         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45937         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45938         * doc/posix-functions/perror.texi: Likewise.
45939         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45940         is missing.
45941         Reported by Eric Blake.
45942
45943         * lib/errno.in.h: Use replacement values >= 2000.
45944         Reported by Eric Blake.
45945
45946 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45947
45948         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45949         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45950         limit.
45951         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45952         compareseq was aborted.
45953
45954 2008-09-14  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45957         yvec_edit_count.
45958         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45959         (fstrcmp_bounded): Simplify result computation accordingly.
45960
45961 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45962
45963         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45964         (fstrcmp): Define in terms of fstrcmp_bounded.
45965         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45966         lower_bound argument.
45967         Return quickly if the result is certainly < lower_bound.
45968         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45969
45970 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45971
45972         * lib/diffseq.h (EARLY_ABORT): New macro.
45973         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45974         evaluates to true.
45975
45976 2008-09-14  Bruno Haible  <bruno@clisp.org>
45977
45978         * modules/perror-tests: New file.
45979         * tests/test-perror.sh: New file.
45980         * tests/test-perror.c: New file.
45981
45982         New module 'perror'.
45983         * lib/stdio.in.h (perror): New declaration.
45984         * lib/perror.c: New file.
45985         * m4/perror.m4: New file.
45986         * modules/perror: New file.
45987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45988         * doc/posix-functions/perror.texi: Mention the perror module.
45989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45990         REPLACE_PERROR.
45991         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45992         REPLACE_PERROR.
45993
45994 2008-09-14  Bruno Haible  <bruno@clisp.org>
45995
45996         * modules/stdio (Makefile.am): Reorder to match the order in
45997         lib/stdio.in.h.
45998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45999
46000 2008-09-13  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46003
46004 2008-09-13  Bruno Haible  <bruno@clisp.org>
46005
46006         Extend strerror to cover the added errno values.
46007         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46008         (rpl_strerror): Provide error messages for the added errno values and
46009         for the WSA* values.
46010         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46011         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46012         strerror.
46013         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46014         * modules/strerror (Depends-on): Add errno.
46015         * doc/posix-functions/strerror.texi: Document the change.
46016         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46017         and EOVERFLOW.
46018
46019 2008-09-13  Bruno Haible  <bruno@clisp.org>
46020
46021         * modules/EOVERFLOW: Remove file.
46022         * m4/eoverflow.m4: Remove file.
46023         * modules/EOVERFLOW-tests: Remove file.
46024         * tests/test-EOVERFLOW.c: Remove file.
46025         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46026         * modules/ftell (Depends-on): Likewise.
46027         * modules/getdelim (Depends-on): Likewise.
46028         * modules/getugroups (Depends-on): Likewise.
46029         * modules/poll (Depends-on): Likewise.
46030         * modules/snprintf (Depends-on): Likewise.
46031         * modules/sprintf-posix (Depends-on): Likewise.
46032         * modules/vasnprintf (Depends-on): Likewise.
46033         * modules/vasprintf (Depends-on): Likewise.
46034         * modules/vfprintf-posix (Depends-on): Likewise.
46035         * modules/vsnprintf (Depends-on): Likewise.
46036         * modules/vsprintf-posix (Depends-on): Likewise.
46037         * modules/xvasprintf (Depends-on): Likewise.
46038         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46039         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46040         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46041         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46042         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46043         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46044         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46045         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46046         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46047         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46048         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46049         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46050         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46051         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46052         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46053         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46054         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46055         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46056         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46057         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46058         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46059         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46060         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46061         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46062         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46063         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46064         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46065         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46066         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46067         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46068         * MODULES.html.sh: Remove EOVERFLOW.
46069         * NEWS: Mention the change.
46070
46071 2008-09-13  Bruno Haible  <bruno@clisp.org>
46072
46073         * modules/errno-tests: New file.
46074         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46075
46076         * lib/errno.in.h: New file.
46077         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46078         * modules/errno: New file.
46079         * doc/posix-headers/errno.texi: Update documentation.
46080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46081
46082 2008-09-13  Bruno Haible  <bruno@clisp.org>
46083
46084         * tests/test-poll.c: Use #if for native Windows, rather than testing
46085         __MSVCRT__.
46086
46087 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46088             Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/glob.c: Don't include <pwd.h> on native Windows.
46091         (WINDOWS32): New macro.
46092         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46093
46094 2008-09-13  Bruno Haible  <bruno@clisp.org>
46095
46096         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46097         (ETIMEDOUT): Remove macro.
46098         (glthread_cond_timedwait_multithreaded): New declaration.
46099         (glthread_cond_timedwait): Use it.
46100         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46101         (glthread_cond_timedwait_multithreaded): New function.
46102
46103 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46104
46105         * modules/poll-tests: Do not check for io.h.
46106         * tests/test-poll.c: Check for __MSVCRT__ instead.
46107
46108 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46109
46110         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46111         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46112         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46113
46114 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46115
46116         * modules/poll-tests: New.
46117         * tests/test-poll.c: New.
46118
46119 2008-09-12  Eric Blake  <ebb9@byu.net>
46120
46121         frexp: test for NetBSD failure on -0.0
46122         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46123         not all, bugs from NetBSD 3.0 have been fixed.
46124         * doc/posix-functions/frexp.texi (frexp): Document bug.
46125         Reported by Thomas Klausner.
46126
46127         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46128         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46129         literal -0.0.
46130         Reported by Jonathan C. Patschke <jp@centtech.com>.
46131
46132 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46133
46134         * lib/glthread/cond.h: Use dummy implementation also if
46135         USE_WIN32_THREADS.
46136
46137 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46138
46139         * modules/fnmatch-posix (License): Change to LGPLv2+.
46140         * modules/fnmatch-gnu (License): Likewise.
46141
46142 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46143
46144         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46145
46146 2008-09-11  Jim Meyering  <meyering@redhat.com>
46147
46148         * users.txt: Add gtk-vnc.
46149
46150 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46151
46152         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46153         rotate amounts.
46154
46155         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46156         required for 16-bit and 8-bit rotates.
46157         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46158         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46159         UINT8_MAX instead of hard-coded constants.
46160         Suggested by Paul Eggert.
46161
46162 2008-09-07  Bruno Haible  <bruno@clisp.org>
46163
46164         * tests/test-striconveh.c (main): Check behaviour when converting from
46165         UTF-7.
46166
46167         Make striconveh work better with stateful encodings.
46168         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46169         that iconv does not increment the inptr when returning -1/EINVAL.
46170
46171 2008-09-07  Bruno Haible  <bruno@clisp.org>
46172
46173         * build-aux/config.rpath: Update according to libtool-2.2.6.
46174         * build-aux/config.libpath: Likewise.
46175
46176 2008-09-06  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46179         * lib/freadptr.c (freadptr): Likewise.
46180         * lib/freadseek.c (freadptrinc): Likewise.
46181         Reported by Simon Josefsson.
46182
46183 2008-09-06  Bruno Haible  <bruno@clisp.org>
46184
46185         * modules/freadptr (License): Change to LGPLv2+.
46186         * modules/freadseek (License): Likewise.
46187         Suggested by Eric Blake.
46188
46189         * modules/memchr2 (License): Change to LGPLv2+.
46190         Approved by Eric Blake.
46191
46192 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46193             Bruno Haible  <bruno@clisp.org>
46194
46195         Make gnulib-tool work with native 'sed' on AIX.
46196         * gnulib-tool (sed_noop): New variable.
46197         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46198         func_add_or_update, func_create_testdir): Use it to initialize sed
46199         script variables.
46200         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46201
46202 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46203             Bruno Haible  <bruno@clisp.org>
46204
46205         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46206         also works after #include directives.
46207
46208 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46209
46210         getdate.y: reject an out-of-range timezone value
46211         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46212         the range [-24...+24].  When specified with only one or two digits,
46213         * tests/test-getdate.c: Tests for the fix.
46214         * doc/getdate.texi: Document this change.
46215
46216 2008-09-03  Bruno Haible  <bruno@clisp.org>
46217
46218         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46219
46220 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46221
46222         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46223         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46224         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46225         Blake <ebb9@byu.net>.
46226
46227         * tests/test-bitrotate.c: Add more test vectors.
46228
46229 2008-09-02  Eric Blake  <ebb9@byu.net>
46230
46231         vasnprintf-posix: handle large precision via %.*d
46232         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46233         when handling it ourselves.
46234         * tests/test-vasnprintf-posix.c (test_function): Add test.
46235         * tests/test-snprintf-posix.h (test_function): Likewise.
46236         * tests/test-sprintf-posix.h (test_function): Likewise.
46237         * tests/test-vasprintf-posix.c (test_function): Likewise.
46238         Reported by Alain Guibert.
46239
46240 2008-09-01  Eric Blake  <ebb9@byu.net>
46241
46242         c-stack: make configure-time check more robust
46243         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46244         successful sigaction call.
46245         Reported by Tom G. Christensen.
46246
46247 2008-09-01  Bruno Haible  <bruno@clisp.org>
46248
46249         New module 'findprog-lgpl'.
46250         * modules/findprog-lgpl: New file.
46251         * lib/findprog-lgpl.c: New file.
46252         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46253         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46254         to decide whether to use strdup or xstrdup, concatenated_filename or
46255         xconcatenated_filename.
46256
46257 2008-09-01  Bruno Haible  <bruno@clisp.org>
46258
46259         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46260         'xconcat-filename' (GPL).
46261         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46262         (License): Change to LGPLv2+.
46263         * modules/xconcat-filename: New file.
46264         * lib/concat-filename.h (concatenated_filename): Change specification.
46265         (xconcatenated_filename): New declaration.
46266         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46267         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46268         memory situations.
46269         * lib/xconcat-filename.c: New file.
46270         * NEWS: Mention the change.
46271         * lib/findprog.c: Include concat-filename.h, not filename.h.
46272         (find_in_path): Use xconcatenated_filename instead of
46273         concatenated_filename.
46274         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46275         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46276         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46277         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46278         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46279         instead of concatenated_filename.
46280         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46281         (execute_java_class): Use xconcatenated_filename instead of
46282         concatenated_filename.
46283         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46284         * modules/javacomp (Depends-on): Likewise.
46285         * modules/javaexec (Depends-on): Likewise.
46286
46287 2008-09-01  Bruno Haible  <bruno@clisp.org>
46288
46289         Split module 'filename' into 'filename' and 'concat-filename'.
46290         * modules/filename: Keep only lib/filename.h.
46291         (License): Change to LGPLv2+.
46292         * modules/concat-filename: New file, extracted from modules/filename.
46293         * lib/filename.h (concatenated_filename): Remove declaration.
46294         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46295         * lib/concat-filename.c: Include concat-filename.h.
46296         * NEWS: Mention the change.
46297
46298 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46299
46300         * lib/bitrotate.h (rotl8, rotr8): Add.
46301
46302         * modules/bitrotate (configure.ac): Need
46303         AC_REQUIRE([AC_C_INLINE]).
46304         (Description): Mention stdint.h.  Reported by Bruno Haible
46305         <bruno@clisp.org>.
46306
46307         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46308         Paolo Bonzini <bonzini@gnu.org>.
46309
46310 2008-08-31  Bruno Haible  <bruno@clisp.org>
46311
46312         Assume Solaris specific bi-arch conventions on Solaris systems.
46313         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46314         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46315         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46316         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46317         like acl_libdirstem.
46318         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46319         acl_libdirstem.
46320         * NEWS: Mention the change.
46321         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46322
46323 2008-08-31  Jim Meyering  <meyering@redhat.com>
46324
46325         * lib/strftime.h: Add comments describing the two added arguments.
46326
46327         remove duplicate #include directives
46328         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46329         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46330
46331 2008-08-31  Bruno Haible  <bruno@clisp.org>
46332
46333         New module 'sigpipe-die'.
46334         * modules/sigpipe-die: New file.
46335         * lib/sigpipe-die.h: New file.
46336         * lib/sigpipe-die.c: New file.
46337         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46338
46339 2008-08-31  Bruno Haible  <bruno@clisp.org>
46340
46341         Don't override previously installed signal handlers.
46342         * lib/fatal-signal.c (saved_sigactions): New variable.
46343         (uninstall_handlers): Reset the signal to the saved handler, not
46344         to SIG_DFL (except when ignored).
46345         (install_handlers): Save the previous handlers.
46346
46347 2008-08-30  Bruno Haible  <bruno@clisp.org>
46348
46349         * gnulib-tool (func_reset_sigpipe): New function.
46350         (func_get_automake_snippet, func_modules_transitive_closure,
46351         func_import): Invoke it before a join command that reads from stdin,
46352         to avoid "echo: write error: Broken pipe" error messages on stderr.
46353         Reported by Sam Steingold <sds@gnu.org>.
46354
46355 2008-08-30  Bruno Haible  <bruno@clisp.org>
46356
46357         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46358         Code copied from m4/open.m4.
46359         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46360         access and the filename ends in a slash. Code copied from lib/open.c.
46361         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46362         * tests/test-fopen.c (main): Check against bug with trailing slash.
46363
46364 2008-08-29  Bruno Haible  <bruno@clisp.org>
46365
46366         Avoid some "gcc -pedantic" warnings.
46367         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46368         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46369         * lib/dirent.in.h: Likewise.
46370         * lib/fcntl.in.h: Likewise.
46371         * lib/float.in.h: Likewise.
46372         * lib/iconv.in.h: Likewise.
46373         * lib/inttypes.in.h: Likewise.
46374         * lib/locale.in.h: Likewise.
46375         * lib/math.in.h: Likewise.
46376         * lib/netinet_in.in.h: Likewise.
46377         * lib/search.in.h: Likewise.
46378         * lib/signal.in.h: Likewise.
46379         * lib/stdarg.in.h: Likewise.
46380         * lib/stdint.in.h: Likewise.
46381         * lib/stdio.in.h: Likewise.
46382         * lib/stdlib.in.h: Likewise.
46383         * lib/string.in.h: Likewise.
46384         * lib/strings.in.h: Likewise.
46385         * lib/sys_select.in.h: Likewise.
46386         * lib/sys_socket.in.h: Likewise.
46387         * lib/sys_stat.in.h: Likewise.
46388         * lib/sys_time.in.h: Likewise.
46389         * lib/sysexits.in.h: Likewise.
46390         * lib/time.in.h: Likewise.
46391         * lib/unistd.in.h: Likewise.
46392         * lib/wchar.in.h: Likewise.
46393         * lib/wctype.in.h: Likewise.
46394         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46395         * modules/fchdir (Makefile.am): Likewise.
46396         * modules/fcntl (Makefile.am): Likewise.
46397         * modules/float (Makefile.am): Likewise.
46398         * modules/iconv_open (Makefile.am): Likewise.
46399         * modules/inttypes (Makefile.am): Likewise.
46400         * modules/locale (Makefile.am): Likewise.
46401         * modules/math (Makefile.am): Likewise.
46402         * modules/netinet_in (Makefile.am): Likewise.
46403         * modules/search (Makefile.am): Likewise.
46404         * modules/signal (Makefile.am): Likewise.
46405         * modules/stdarg (Makefile.am): Likewise.
46406         * modules/stdint (Makefile.am): Likewise.
46407         * modules/stdio (Makefile.am): Likewise.
46408         * modules/stdlib (Makefile.am): Likewise.
46409         * modules/string (Makefile.am): Likewise.
46410         * modules/strings (Makefile.am): Likewise.
46411         * modules/sys_select (Makefile.am): Likewise.
46412         * modules/sys_socket (Makefile.am): Likewise.
46413         * modules/sys_stat (Makefile.am): Likewise.
46414         * modules/sys_time (Makefile.am): Likewise.
46415         * modules/sysexits (Makefile.am): Likewise.
46416         * modules/time (Makefile.am): Likewise.
46417         * modules/unistd (Makefile.am): Likewise.
46418         * modules/wchar (Makefile.am): Likewise.
46419         * modules/wctype (Makefile.am): Likewise.
46420         Reported by Reuben Thomas <rrt@sc3d.org>.
46421
46422 2008-08-29  Bruno Haible  <bruno@clisp.org>
46423
46424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46425         any more.
46426
46427 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46428
46429         * MODULES.html.sh (Misc): Add bitrotate.
46430
46431         * modules/bitrotate: New file.
46432
46433         * lib/bitrotate.h: New file.
46434
46435         * modules/bitrotate-tests: New file.
46436
46437         * tests/test-bitrotate.c: New file.
46438
46439         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46440         on the bitrotate module.
46441
46442         * lib/arctwo.c: Use new bitrotate module.
46443
46444 2008-08-29  Jim Meyering  <meyering@redhat.com>
46445
46446         bootstrap: merge changes from coreutils
46447         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46448         of copied files.  Remove a kludge, now that this is fixed.
46449         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46450         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46451         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46452
46453 2008-08-29  Bruno Haible  <bruno@clisp.org>
46454
46455         * MODULES.html.sh: Remove --cvs-urls option.
46456
46457 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46458
46459         maint.mk: adjust to file name change
46460         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46461
46462 2008-08-28  Jim Meyering  <meyering@redhat.com>
46463
46464         * modules/getndelim2 (License): Relicense to LGPLv2+.
46465         Approved by Richard Stallman for the version of 1995, and by
46466         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46467
46468 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46469
46470         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46471         dummy if one is not available.  Do not touch them if
46472         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46473         (getc_maybe_unlocked): New.
46474         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46475
46476 2008-08-26  Eric Blake  <ebb9@byu.net>
46477
46478         doc/INSTALL: resync from autoconf
46479         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46480         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46481         moving...
46482         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46483         * INSTALL: Regenerate.
46484         * INSTALL.ISO: New file.
46485         * INSTALL.UTF-8: Likewise.
46486
46487 2008-08-26  Jim Meyering  <meyering@redhat.com>
46488
46489         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46490         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46491         these definitions conditional, so that they may be overridden, too.
46492
46493 2008-08-26  Bruno Haible  <bruno@clisp.org>
46494
46495         Generate INSTALL file variants with prettier quotes.
46496         * doc/Makefile (INSTALL_PRELUDE): New macro.
46497         (INSTALL): Use it.
46498         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46499
46500 2008-08-26  Bruno Haible  <bruno@clisp.org>
46501
46502         Run makeinfo in an English locale.
46503         * doc/Makefile (MAKEINFO): New variable.
46504
46505 2008-08-26  Bruno Haible  <bruno@clisp.org>
46506
46507         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46508         Suggested by Eric Blake.
46509
46510 2008-08-25  Bruno Haible  <bruno@clisp.org>
46511
46512         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46513
46514 2008-08-25  Eric Blake  <ebb9@byu.net>
46515
46516         c-stack: test that stack overflow can be caught
46517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46518         that platform allows handling stack overflow; at least OS/2 EMX
46519         has sigaltstack, but crashes before transferring control to
46520         handler on stack overflow.
46521         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46522         check for HAVE_STACK_OVERFLOW_HANDLING.
46523         Reported by Elbert Pol.
46524
46525 2008-08-25  Bruno Haible  <bruno@clisp.org>
46526
46527         * doc/posix-functions/strftime.texi: Fix description of strftime
46528         module.
46529
46530 2008-08-24  Bruno Haible  <bruno@clisp.org>
46531
46532         * tests/uniwidth/test-uc_width2.c: New file.
46533         * tests/uniwidth/test-uc_width2.sh: New file.
46534         * modules/uniwidth/width-tests (Files): Add the new files.
46535         (TESTS): Add uniwidth/test-uc_width2.sh.
46536         (TESTS_ENVIRONMENT): New variable.
46537         (check_PROGRAMS): Add test-uc_width2.
46538         (test_uc_width2_SOURCES): New variable.
46539
46540         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46541         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46542         not 0x00AB.
46543         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46544
46545 2008-08-22  Eric Blake  <ebb9@byu.net>
46546
46547         test-lock, test-tls: mention why a test is skipped
46548         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46549         skipped.
46550         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46551
46552         count-one-bits: relax license
46553         * modules/count-one-bits (License): Relicense to LGPLv2+.
46554         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46555
46556 2008-08-22  Andreas Schwab  <schwab@suse.de>
46557
46558         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46559         Remove spurious space in assignment.
46560
46561 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46562
46563         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46564         Paul Eggert <eggert@CS.UCLA.EDU>.
46565
46566 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46567
46568         * modules/gettext: Add m4/threadlib.m4.
46569
46570 2008-08-19  Eric Blake  <ebb9@byu.net>
46571
46572         test-c-stack: fix compilation failure on FreeBSD 5.0
46573         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46574         headers before <sys/resource.h>.
46575         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46576         the bug.
46577         Reported by Nelson H. F. Beebe.
46578
46579         strverscmp: migrate from "strverscmp.h" to <string.h>
46580         * modules/string (Makefile.am): Add new hooks.
46581         * modules/strverscmp (Files): Remove strverscmp.h.
46582         (Depends-on): Add string.
46583         (configure.ac): Add indicator.
46584         (Include): Mention new header.
46585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46586         defaults.
46587         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46588         results.
46589         * lib/strverscmp.h: Delete.
46590         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46591         * tests/test-strverscmp.c (includes): Adjust client.
46592         * lib/check-version.c (includes): Likewise.
46593         * NEWS: Document the change.
46594
46595         strverscmp: add unit test
46596         * modules/strverscmp-tests: New file.
46597         * tests/test-strverscmp.c: Likewise.
46598
46599 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46600
46601         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46602         regarding Windows crypto stuff, from Mono.
46603
46604 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46605
46606         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46607         if present, for intel RND.  Return error on failures.
46608
46609 2008-08-18  Ben Pfaff  <blp@gnu.org>
46610
46611         gitlog-to-changelog: give better diagnostic for failed pipe-open
46612         * build-aux/gitlog-to-changelog: Improve error message: suggest
46613         that the version of Git may be too old.
46614
46615 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46616
46617         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46618         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46619
46620 2008-08-18  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46623         pthread_in_use().
46624
46625 2008-08-18  Bruno Haible  <bruno@clisp.org>
46626
46627         * lib/glthread/threadlib.c: Include <pthread.h>.
46628
46629 2008-08-18  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46632         glthread_recursive_lock_* macros.
46633         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46634         Fix syntax error.
46635
46636 2008-08-18  Bruno Haible  <bruno@clisp.org>
46637
46638         * lib/glthread/thread.c: Avoid forcing a context switch right after
46639         thread creation.
46640
46641 2008-08-17  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46644         * lib/glthread/thread.h: Provide Win32 specific implementation.
46645         * modules/thread (Files): Add lib/glthread/thread.c.
46646         (Depends-on): Add lock.
46647         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46648
46649 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46650
46651         New module 'yield'.
46652         * modules/yield: New file.
46653         * lib/glthread/yield.h: New file.
46654         * m4/yield.m4: New file.
46655         * MODULES.html.sh (Multithreading): Add yield.
46656
46657 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46658
46659         New module 'thread'.
46660         * modules/thread: New file.
46661         * lib/glthread/thread.h: New file.
46662         * m4/thread.m4: New file.
46663         * MODULES.html.sh (Multithreading): Add thread.
46664
46665 2008-08-17  Bruno Haible  <bruno@clisp.org>
46666
46667         * lib/glthread/lock.h: Include <stdlib.h> always.
46668         * lib/glthread/tls.h: Likewise.
46669         * lib/glthread/cond.h: Likewise.
46670
46671 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46672
46673         New module 'cond'.
46674         * modules/cond: New file.
46675         * lib/glthread/cond.h: New file.
46676         * lib/glthread/cond.c: New file.
46677         * m4/cond.m4: New file.
46678         * MODULES.html.sh (Multithreading): Add cond.
46679
46680 2008-08-16  Eric Blake  <ebb9@byu.net>
46681
46682         c-stack: fix regression on Irix 5.3 from 2008-06-21
46683         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46684         sa_sigaction...
46685         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46686         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46687         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46688         * modules/signal (Makefile.am): Use the value.
46689         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46690         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46691         * doc/posix-headers/signal.texi (signal.h): Document this
46692         portability issue.
46693         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46694         Reported by Tom G. Christensen.
46695
46696 2008-08-17  Bruno Haible  <bruno@clisp.org>
46697
46698         New module 'threadlib'.
46699         * modules/threadlib: New file.
46700         * lib/glthread/threadlib.c: New file, extracted from
46701         lib/glthread/lock.c.
46702         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46703         functions.
46704         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46705         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46706         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46707         macros.
46708         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46709         (gl_DISABLE_THREADS): Remove macro.
46710         * modules/lock (Files): Remove build-aux/config.rpath.
46711         (Depends-on): Remove havelib. Add threadlib.
46712         (configure.ac-early): Remove section.
46713         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46714         * modules/tls (Depends-on): Remove lock. Add threadlib.
46715         (Link): New section, copied from threadlib.
46716         * MODULES.html.sh (Multithreading): Add threadlib.
46717
46718 2008-08-14  Bruno Haible  <bruno@clisp.org>
46719
46720         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46721         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46722         glthread_rwlock_unlock, glthread_rwlock_destroy,
46723         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46724         glthread_recursive_lock_destroy): Define as macros always.
46725         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46726         glthread_lock_lock.
46727         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46728         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46729         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46730         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46731         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46732         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46733         (glthread_recursive_lock_lock_func): Renamed from
46734         glthread_recursive_lock_lock.
46735         (glthread_recursive_lock_unlock_func): Renamed from
46736         glthread_recursive_lock_unlock.
46737         (glthread_recursive_lock_destroy_func): Renamed from
46738         glthread_recursive_lock_destroy.
46739
46740 2008-08-14  Bruno Haible  <bruno@clisp.org>
46741
46742         * lib/glthread/lock.h: Renamed from lib/lock.h.
46743         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46744         * lib/glthread/tls.h: Renamed from lib/tls.h.
46745         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46746         * lib/fstrcmp.c: Update includes.
46747         * lib/strsignal.c: Update includes.
46748         * modules/lock (Files, Makefile.am): Update.
46749         (Include): Change to "glthread/lock.h".
46750         * modules/tls (Files, Makefile.am): Update.
46751         (Include): Change to "glthread/tls.h".
46752         * tests/test-lock.c: Update includes.
46753         * tests/test-tls.c: Update includes.
46754         * NEWS: Mention the renamed header files.
46755
46756 2008-08-11  Jim Meyering  <meyering@redhat.com>
46757
46758         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46759
46760 2008-08-11  Eric Blake  <ebb9@byu.net>
46761
46762         test-c-stack: avoid C99-ism
46763         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46764         before statement.
46765         Reported by Alain Guibert.
46766
46767 2008-08-10  Jim Meyering  <meyering@redhat.com>
46768
46769         ensure that return value of uinttostr et al are not ignored
46770         * lib/inttostr.h (__GNUC_PREREQ): Define.
46771         (__attribute_warn_unused_result__): Define.
46772         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46773
46774 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46775
46776         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46777         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46778
46779 2008-08-07  Jim Meyering  <meyering@redhat.com>
46780
46781         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46782
46783         * modules/mkstemp (License): Relicense under LGPLv2+.
46784         * modules/tempname (License): Likewise.
46785
46786 2008-08-06  Bruno Haible  <bruno@clisp.org>
46787
46788         * lib/poll.c (poll): Further micro-optimization.
46789
46790 2008-08-06  Jim Meyering  <meyering@redhat.com>
46791
46792         inet_pton.c: use locale-independent tolower
46793         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46794         (inet_pton6): Use c_tolower rather than tolower.
46795         * modules/inet_pton (Depends-on): Add c-ctype.
46796
46797 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46798
46799         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46800         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46801
46802 2008-08-06  Jim Meyering  <meyering@redhat.com>
46803
46804         * modules/inet_pton (License): Relicense under LGPLv2+.
46805
46806 2008-08-03  Bruno Haible  <bruno@clisp.org>
46807
46808         Additional non-aborting API for lock and tls.
46809         * lib/lock.h: Include <errno.h>.
46810         (glthread_lock_init): New macro/function.
46811         (gl_lock_init): Define as wrapper around glthread_lock_init.
46812         (glthread_lock_lock): New macro/function.
46813         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46814         (glthread_lock_unlock): New macro/function.
46815         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46816         (glthread_lock_destroy): New macro/function.
46817         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46818         (glthread_rwlock_init): New macro/function.
46819         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46820         (glthread_rwlock_rdlock): New macro/function.
46821         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46822         (glthread_rwlock_wrlock): New macro/function.
46823         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46824         (glthread_rwlock_unlock): New macro/function.
46825         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46826         (glthread_rwlock_destroy): New macro/function.
46827         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46828         (glthread_recursive_lock_init): New macro/function.
46829         (gl_recursive_lock_init): Define as wrapper around
46830         glthread_recursive_lock_init.
46831         (glthread_recursive_lock_lock): New macro/function.
46832         (gl_recursive_lock_lock): Define as wrapper around
46833         glthread_recursive_lock_lock.
46834         (glthread_recursive_lock_unlock): New macro/function.
46835         (gl_recursive_lock_unlock): Define as wrapper around
46836         glthread_recursive_lock_unlock.
46837         (glthread_recursive_lock_destroy): New macro/function.
46838         (gl_recursive_lock_destroy): Define as wrapper around
46839         glthread_recursive_lock_destroy.
46840         (glthread_once): New macro/function.
46841         (gl_once): Define as wrapper around glthread_once.
46842         Update function declarations.
46843         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46844         glthread_rwlock_init. Return error code.
46845         (glthread_rwlock_rdlock_multithreaded): Renamed from
46846         glthread_rwlock_rdlock. Return error code.
46847         (glthread_rwlock_wrlock_multithreaded): Renamed from
46848         glthread_rwlock_wrlock. Return error code.
46849         (glthread_rwlock_unlock_multithreaded): Renamed from
46850         glthread_rwlock_unlock. Return error code.
46851         (glthread_rwlock_destroy_multithreaded): Renamed from
46852         glthread_rwlock_destroy. Return error code.
46853         (glthread_recursive_lock_init_multithreaded): Renamed from
46854         glthread_recursive_lock_init. Return error code.
46855         (glthread_recursive_lock_lock_multithreaded): Renamed from
46856         glthread_recursive_lock_lock. Return error code.
46857         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46858         glthread_recursive_lock_unlock. Return error code.
46859         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46860         glthread_recursive_lock_destroy. Return error code.
46861         (glthread_once_call): Make static.
46862         (glthread_once_multithreaded): Renamed from glthread_once.
46863         * lib/tls.h: Include <errno.h>.
46864         (glthread_tls_key_init): New macro/function.
46865         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46866         (glthread_tls_set): New macro/function.
46867         (gl_tls_set): Define as wrapper around glthread_tls_set.
46868         (glthread_tls_key_destroy): New macro/function.
46869         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46870         Update function declarations.
46871         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46872         glthread_tls_get.
46873         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46874
46875 2008-08-04  Eric Blake  <ebb9@byu.net>
46876
46877         gnumakefile: use space, not TAB, outside of targets
46878         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46879
46880 2008-08-02  Jim Meyering  <meyering@redhat.com>
46881
46882         getdate.y: avoid locale-dependent date parsing failure
46883         In Turkish locales, getdate would fail to recognize keywords
46884         containing a lowercase "i".  The solution is not to rely on
46885         locale-sensitive case-conversion.
46886         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46887         (lookup_word): Use c_toupper in place of toupper.
46888         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46889         Reported by Vefa Bicakci <bicave@superonline.com> in
46890         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46891         * modules/getdate (Depends-on): Add c-ctype.
46892
46893 2008-08-02  Bruno Haible  <bruno@clisp.org>
46894
46895         * gnulib-tool (func_import): When updating or creating a .gitignore
46896         file, prepend each added line with a slash, and ignore leading slashes
46897         from the existing lines.
46898         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46899
46900 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46901
46902         Portability fix for GNU make 3.79.1.
46903         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46904         versions do not understand.
46905
46906 2008-08-01  Bruno Haible  <bruno@clisp.org>
46907
46908         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46909         * tests/test-isnanf.h (zero): New variable.
46910         (main): Avoid literal -0.0f.
46911         * tests/test-isnand.h (zero): New variable.
46912         (main): Avoid literal -0.0.
46913         * tests/test-isnanl.h (zero): New variable.
46914         (main): Avoid literal -0.0L.
46915         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46916         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46917         -0.0, -0.0L.
46918         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46919         (test_signbitd): Avoid literal -0.0.
46920         (test_signbitl): Avoid literal -0.0L.
46921         * tests/test-ceilf1.c (zero): New variable.
46922         (main): Avoid literal -0.0f.
46923         * tests/test-ceill.c (zero): New variable.
46924         (main): Avoid literal -0.0L.
46925         * tests/test-floorf1.c (zero): New variable.
46926         (main): Avoid literal -0.0f.
46927         * tests/test-floorl.c (zero): New variable.
46928         (main): Avoid literal -0.0L.
46929         * tests/test-roundf1.c (zero): New variable.
46930         (main): Avoid literal -0.0f.
46931         * tests/test-round1.c (zero): New variable.
46932         (main): Avoid literal -0.0.
46933         * tests/test-roundl.c (zero): New variable.
46934         (main): Avoid literal -0.0L.
46935         * tests/test-truncf1.c (zero): New variable.
46936         (main): Avoid literal -0.0f.
46937         * tests/test-trunc1.c (zero): New variable.
46938         (main): Avoid literal -0.0.
46939         * tests/test-truncl.c (zero): New variable.
46940         (main): Avoid literal -0.0L.
46941         * tests/test-frexp.c (zero): New variable.
46942         (main): Avoid literal -0.0.
46943         * tests/test-frexpl.c (zero): New variable.
46944         (main): Avoid literal -0.0L.
46945         * tests/test-ldexpl.c (zero): New variable.
46946         (main): Avoid literal -0.0L.
46947         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46948         (zerod, zerol): New variables.
46949         (test_function): Avoid literals -0.0, -0.0L.
46950         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46951         (zerod, zerol): New variables.
46952         (test_function): Avoid literals -0.0, -0.0L.
46953         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46954         (zerod, zerol): New variables.
46955         (test_function): Avoid literals -0.0, -0.0L.
46956         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46957         (zerod, zerol): New variables.
46958         (test_function): Avoid literals -0.0, -0.0L.
46959         * tests/test-strtod.c (zero): New variable.
46960         (main): Avoid literal -0.0.
46961         Reported by Jonathan C. Patschke <jp@centtech.com>.
46962
46963 2008-07-31  Jim Meyering  <meyering@redhat.com>
46964
46965         sha256.h: correct definition of SHA224_DIGEST_SIZE
46966         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46967         Reported by Paulie Pena IV <paulie4@gmail.com>.
46968         Define as 224 / 8, rather than as a literal.
46969         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46970         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46971         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46972
46973 2008-07-31  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46976         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46977         Reported by Jonathan Patschke <jp@centtech.com>.
46978
46979 2008-07-31  Bruno Haible  <bruno@clisp.org>
46980
46981         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46982         Reported by Paolo Bonzini <bonzini@gnu.org>.
46983
46984 2008-07-30  Eric Blake  <ebb9@byu.net>
46985
46986         test-strtod: allow compilation without -lm
46987         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46988         Reported by Dennis Clarke <blastwave@gmail.com>.
46989
46990 2008-07-28  Jim Meyering  <meyering@redhat.com>
46991
46992         bootstrap: work also when there are no .po files in po/
46993         * build-aux/bootstrap (update_po_files): Complete the change
46994         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46995
46996 2008-07-27  Jim Meyering  <meyering@redhat.com>
46997
46998         * users.txt: Add zile.
46999
47000 2008-07-26  Ben Pfaff  <blp@gnu.org>
47001
47002         Add missing dependencies on new m4/exponent[fdl].m4 files.
47003         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47004         * modules/isnand-nolibm: Add m4/exponentd.m4.
47005         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47006         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47007         m4/isnan[fdl].m4, because the macros actually used moved.
47008         Reported by Jim Meyering.
47009
47010 2008-07-14  Ben Pfaff  <blp@gnu.org>
47011
47012         Add isinf module.
47013         * lib/isinf.c: New file.
47014         * lib/math.in.h: Define isinf macro if we have decided to replace
47015         it.
47016         * m4/isinf.m4: New file.
47017         * m4/math_h.m4: Initialize and substitute variables for isinf
47018         module.
47019         * modules/isinf: New file.
47020         * modules/isinf-tests: New file.
47021         * modules/math: Add substitutions for new module.
47022         * tests/test-isinf.c: New file.
47023         * doc/posix-functions/isinf.texi: Mention new module.
47024         * MODULES.html.sh: Mention new module.
47025
47026 2008-07-14  Ben Pfaff  <blp@gnu.org>
47027
47028         Factor out some macros for use by additional modules.
47029         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47030         exponentf.m4.
47031         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47032         exponentd.m4.
47033         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47034         file exponentl.m4.
47035         * m4/exponentf.m4: New file.
47036         * m4/exponentd.m4: New file.
47037         * m4/exponentl.m4: New file.
47038         * modules/isnanf: Use new file m4/exponentf.m4.
47039         * modules/isnand: Use new file m4/exponentd.m4.
47040         * modules/isnanl: Use new file m4/exponentl.m4.
47041
47042 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47043
47044         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47045         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47046         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47047         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47048
47049         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47050         readlink on platforms without PATH_MAX.
47051
47052 2008-07-21  Eric Blake  <ebb9@byu.net>
47053
47054         Warn, not fail, on stale version.
47055         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47056
47057         Don't allow installation with stale devel version number.
47058         * top/GNUmakefile (_is-install-target): New macro.
47059         (_curr-ver): Forbid installation with stale version number.
47060
47061 2008-07-20  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47064         TESTS_ENVIRONMENT.
47065         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47066
47067 2008-07-20  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/c-stack.h (c_stack_action): Add documentation.
47070         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47071
47072 2008-07-20  Bruno Haible  <bruno@clisp.org>
47073
47074         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47075         * modules/readlink (License): Likewise.
47076
47077 2008-07-17  Eric Blake  <ebb9@byu.net>
47078
47079         * modules/c-stack (Link): Fix typo.
47080
47081         Make c-stack use libsigsegv, when available.
47082         * modules/c-stack (Depends-on): Add libsigsegv.
47083         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47084         needed.
47085         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47086         (segv_handler, overflow_handler, c_stack_action)
47087         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47088         implementation when libsigsegv is available, but only when using
47089         the library is necessary.
47090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47091         comment, explaining why XSI check fails on Linux.
47092         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47093         * tests/test-c-stack2.sh: Tweak skip message.
47094         * NEWS: Document new link-time requirements.
47095
47096 2008-07-16  Eric Blake  <ebb9@byu.net>
47097
47098         c-stack: Expose false positives when not using libsigsegv.
47099         * modules/c-stack-tests (Files): Expand test.
47100         * tests/test-c-stack.c (main): Add means to conditionally trigger
47101         non-overflow SIGSEGV.
47102         * tests/test-c-stack2.sh: New file.
47103
47104 2008-07-14  Bruno Haible  <bruno@clisp.org>
47105
47106         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47107         Reported by Eric Blake.
47108
47109 2008-07-14  Sam Steingold  <sds@gnu.org>
47110             Bruno Haible  <bruno@clisp.org>
47111
47112         New module libsigsegv.
47113         * modules/libsigsegv: New file.
47114         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47115         modifications.
47116         * MODULES.html.sh (Signal handling): New section.
47117
47118 2008-07-14  Bruno Haible  <bruno@clisp.org>
47119
47120         * modules/unictype/ctype-* (Description): Add the word "function".
47121         Improves the resulting doc in MODULES.html.
47122
47123 2008-07-12  Ben Pfaff  <blp@gnu.org>
47124
47125         Add longlong module.
47126         * modules/longlong: New file.
47127
47128 2008-07-12  Bruno Haible  <bruno@clisp.org>
47129
47130         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47131         to empty.
47132
47133 2008-07-10  Ben Pfaff  <blp@gnu.org>
47134
47135         Add isnan module.
47136         * doc/posix-functions/isnan.texi: Mention new module.
47137         * lib/math.in.h: Define isnan macro if we have decided to replace
47138         it.
47139         * m4/isnan.m4: New file.
47140         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47141         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47142         also.
47143         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47144         redundancy.
47145         * m4/math_h.m4: Initialize and substitute variables for isnan
47146         module.
47147         * modules/isnan: New file.
47148         * modules/isnan-tests: New file.
47149         * modules/math: Add substitutions for new module.
47150         * tests/test-isnan.c: New file.
47151         * MODULES.html.sh: Mention new module.
47152
47153 2008-07-10  Ben Pfaff  <blp@gnu.org>
47154
47155         Add isnanf module.
47156         * lib/isnanf.m4: New file.
47157         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47158         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47159         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47160         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47161         * modules/isnanf: New file.
47162         * modules/isnanf-tests: New file.
47163         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47164         files.
47165         * tests/test-isnanf-nolibm.c: factored most of its contents into
47166         new file tests/test-isnanf.h.
47167         * tests/test-isnanf.h: New file.
47168         * tests/test-isnanf.c: New file.
47169         * MODULES.html.sh: Mention new module.
47170         * doc/glibc-functions/isnanf.texi: Mention new module.
47171
47172 2008-07-10  Ben Pfaff  <blp@gnu.org>
47173
47174         Add isnand module.
47175         * lib/isnand.h: New file.
47176         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47177         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47178         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47179         functionality also.
47180         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47181         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47182         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47183         * modules/isnand: New file.
47184         * modules/isnand-tests: New file.
47185         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47186         files.
47187         * tests/test-isnand-nolibm.c: factored most of its contents into
47188         new file tests/test-isnand.h.
47189         * tests/test-isnand.h: New file.
47190         * tests/test-isnand.c: New file.
47191         * MODULES.html.sh: Mention new module.
47192
47193 2008-07-10  Ben Pfaff  <blp@gnu.org>
47194
47195         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47196         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47197         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47198         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47199         * modules/isnanf-nolibm: Update references to renamed files.
47200         * modules/isnand-nolibm: Likewise.
47201         * modules/isnanf-nolibm-tests: Likewise.
47202         * modules/isnand-nolibm-tests: Likewise.
47203         * lib/frexp.c: Likewise.
47204         * lib/isfinite.c: Likewise.
47205         * lib/signbitd.c: Likewise.
47206         * lib/signbitf.c: Likewise.
47207         * lib/vasnprintf.c: Likewise.
47208         * tests/test-ceilf1.c: Likewise.
47209         * tests/test-ceilf2.c: Likewise.
47210         * tests/test-floorf1.c: Likewise.
47211         * tests/test-floorf2.c: Likewise.
47212         * tests/test-frexp.c: Likewise.
47213         * tests/test-round1.c: Likewise.
47214         * tests/test-round2.c: Likewise.
47215         * tests/test-roundf1.c: Likewise.
47216         * tests/test-strtod.c: Likewise.
47217         * tests/test-trunc1.c: Likewise.
47218         * tests/test-trunc2.c: Likewise.
47219         * tests/test-truncf1.c: Likewise.
47220         * tests/test-truncf2.c: Likewise.
47221         * NEWS: Mention the renamed header files.
47222
47223 2008-07-11  Jim Meyering  <meyering@redhat.com>
47224
47225         vc-list-files: make the last-resort awk code more portable
47226         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47227         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47228         does not support it.
47229
47230 2008-07-10  Eric Blake  <ebb9@byu.net>
47231
47232         Work with tar's bootstrap.
47233         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47234         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47235         an m4 comment.
47236
47237 2008-07-09  Jim Meyering  <meyering@redhat.com>
47238
47239         posix-shell.m4: fix typo that made this test malfunction
47240         * m4/posix-shell.m4: Remove capitalization in variable name.
47241
47242 2008-07-08  Bruno Haible  <bruno@clisp.org>
47243
47244         * m4/onceonly.m4: Update comments.
47245         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47246
47247 2008-07-04  Jim Meyering  <meyering@redhat.com>
47248
47249         * users.txt: Add vc-dwim.
47250         (bison, coreutils): Use the gitweb URL.
47251
47252 2008-07-03  Jim Meyering  <meyering@redhat.com>
47253
47254         * users.txt: Add libffcall.  From Sam Steingold.
47255
47256 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47257
47258         getdate.y: do not ignore TZ with relative day, month or year offset
47259         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47260         relative-date-handling, since otherwise, the latter would clobber the
47261         sole output (an updated Start value) of the tz-handling block.
47262         * tests/test-getdate.c: Tests for the fix
47263
47264 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47265
47266         Recognize 'foo_LIBRARIES += libgnu.a'.
47267         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47268         makefile snippet has already specified an installation location,
47269         also using '+='.
47270
47271 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47272
47273         getdate.y: factor out common actions
47274         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47275         Use them in place of open-coded actions.
47276
47277 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47278
47279         Add self-test for getdate module.
47280         * modules/getdate-tests: New file.
47281         * tests/test-getdate.c: New file.
47282
47283 2008-06-29  Bruno Haible  <bruno@clisp.org>
47284
47285         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47286         .gitignore.
47287         Reported by Sylvain Beucler <beuc@beuc.net>.
47288
47289 2008-06-29  Bruno Haible  <bruno@clisp.org>
47290
47291         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47292         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47293
47294 2008-06-29  Bruno Haible  <bruno@clisp.org>
47295
47296         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47297         EXTRA_DIST.
47298         Reported by Sylvain Beucler <beuc@beuc.net>.
47299
47300 2008-06-26  Jim Meyering  <meyering@redhat.com>
47301
47302         make several modules depend on the "open" module
47303         This provides slightly increased consistency when opening-for-write
47304         the name of a non-directory spelled with a trailing slash.
47305         * modules/chdir-safer: Likewise.
47306         * modules/chown: Likewise.
47307         * modules/clean-temp: Likewise.
47308         * modules/copy-file: Likewise.
47309         * modules/fchdir: Likewise.
47310         * modules/fcntl-safer: Likewise.
47311         * modules/pipe: Likewise.
47312         * modules/utime: Likewise.
47313         Prompted by Eric Blake and Bruno Haible.
47314
47315 2008-06-24  Andreas Schwab  <schwab@suse.de>
47316
47317         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47318         literals can be used as initializers for global variables.
47319
47320 2008-06-23  Eric Blake  <ebb9@byu.net>
47321
47322         Make gnulib-cache.m4 easier to diff.
47323         * gnulib-tool (func_import): Allow newlines when reading cached
47324         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47325
47326 2008-06-23  Bruno Haible  <bruno@clisp.org>
47327
47328         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47329         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47330         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47331         m4/signalblocking.m4.
47332         (gl_PREREQ_SIGACTION): Don't invoke it.
47333         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47334         gl_PREREQ_SIG_HANDLER_H.
47335         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47336         Don't check for sigaction here.
47337
47338 2008-06-23  Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47341         (install_handlers): Don't set the SA_RESETHAND flag.
47342
47343 2008-06-23  Bruno Haible  <bruno@clisp.org>
47344
47345         * m4/sigaction.m4: Comment fixes.
47346         * lib/signal.in.h: Likewise.
47347
47348 2008-06-23  Eric Blake  <ebb9@byu.net>
47349
47350         Fix typo.
47351         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47352
47353         Avoid SA_ namespace.
47354         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47355         Reported by Ralf Wildenhues.
47356
47357         Avoid test failure due to SA_RESTORER.
47358         * tests/test-sigaction.c (SA_MASK): New macro.
47359         (main): Avoid failing due to extension flags being set.
47360         Reported by Jim Meyering.
47361
47362         Revert use of sig-handler.h in sigprocmask.c.
47363         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47364         it requires the existence of struct sigaction.
47365         * lib/sigprocmask.c (handler_t): Restore typedef.
47366         (rpl_signal, old_handlers): Use local type.
47367
47368 2008-06-22  Bruno Haible  <bruno@clisp.org>
47369
47370         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47371         conditionally.
47372         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47373
47374 2008-06-22  Bruno Haible  <bruno@clisp.org>
47375
47376         * doc/posix-functions/siginterrupt.texi: Move note.
47377
47378         * lib/signal.in.h (SA_RESTART): New macro.
47379         * lib/sigaction.c: Update comment.
47380
47381         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47382
47383         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47384         (gl_PREREQ_SIGPROCMASK): Invoke it.
47385         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47386
47387         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47388
47389         * lib/sigprocmask.c: Update a comment.
47390
47391 2008-06-21  Eric Blake  <ebb9@byu.net>
47392
47393         Use sigaction module rather than signal().
47394         * modules/c-stack (Depends-on): Add sigaction.
47395         * modules/fatal-signal (Depends-on): Likewise.
47396         * modules/nanosleep (Depends-on): Likewise.
47397         * modules/sigprocmask (Files): Add sig-handler.h.
47398         * modules/sigaction (Files): Likewise.
47399         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47400         Eggert.
47401         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47402         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47403         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47404         (init_fatal_signals): Likewise.
47405         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47406         (siginterrupt): Delete fallback.
47407         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47408         instead.
47409         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47410         siginterrupt.
47411
47412         New module sigaction, for mingw.
47413         * modules/sigaction: New module...
47414         * modules/sigaction-tests: ...and its test.
47415         * m4/sigaction.m4: New file.
47416         * lib/sigaction.c: Likewise.
47417         * tests/test-sigaction.c: Likewise.
47418         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47419         * modules/signal (Makefile.am): Likewise.
47420         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47421         needed.
47422         * doc/posix-headers/signal.texi (signal.h): Mention provided
47423         types.
47424         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47425         that sigaction is preferable.
47426         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47427         module.
47428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47429         sigaction.
47430
47431         Improve robustness of sigprocmask by overriding signal.
47432         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47433         is in use.
47434         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47435         (SIGKILL, SIGSTOP): Provide fallbacks.
47436         (rpl_signal): Implement.
47437         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47438         signal can be called inside handlers.
47439
47440         Fix nanosleep module on mingw.
47441         * modules/nanosleep (Depends-on): Add sys_select.
47442         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47443
47444         Fix licensing of sigprocmask.
47445         * modules/raise (License): Relicense as LGPL.
47446
47447 2008-06-21  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47450         result if it contains question marks.
47451         Reported by Michael Geng <linux@michaelgeng.de>.
47452
47453 2008-06-19  Bruno Haible  <bruno@clisp.org>
47454
47455         Fix CVS-ism.
47456         * doc/gnulib.texi: Include updated-stamp.texi.
47457         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47458         (updated-stamp.texi): New rule.
47459         (gnulib.info): Depend on it.
47460         * doc/.gitignore: Add updated-stamp.texi.
47461         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47462
47463 2008-06-19  Bruno Haible  <bruno@clisp.org>
47464
47465         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47466         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47467
47468 2008-06-19  Eric Blake  <ebb9@byu.net>
47469
47470         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47471         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47472         Reported by Stepan Kasal.
47473
47474 2008-06-18  Bruno Haible  <bruno@clisp.org>
47475
47476         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47477         Reported by Eric Blake.
47478
47479 2008-06-18  Eric Blake  <ebb9@byu.net>
47480
47481         Work around cygwin 1.5.25 strsignal bug.
47482         * tests/test-strsignal.c: Allow for const char *.
47483         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47484
47485 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47486
47487         * users.txt: Update URL to article and add author/date
47488         information.
47489
47490 2008-06-17  Bruno Haible  <bruno@clisp.org>
47491
47492         New macro gl_DISABLE_THREADS.
47493         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47494         if the user did not pass --enable-threads or --disable-threads option.
47495         (gl_DISABLE_THREADS): New macro.
47496         Reported by Eric Blake <ebb9@byu.net>.
47497
47498 2008-06-17  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47501         when the macro ignores it.
47502         Based on a patch by Eric Blake <ebb9@byu.net>.
47503
47504 2008-06-17  Bruno Haible  <bruno@clisp.org>
47505
47506         * modules/tls (License): Change to LGPLv2+.
47507         Reported by Eric Blake.
47508
47509 2008-06-17  Eric Blake  <ebb9@byu.net>
47510
47511         Simplify c-stack prerequisites.
47512         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47514         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47515         check.
47516         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47517         <sys/resource.h>.
47518
47519         Move c-stack test into testsuite.
47520         * modules/c-stack-tests: New file.
47521         * lib/c-stack.c [DEBUG]: Move test program...
47522         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47523         fail test if sigaltstack is lacking.
47524         * tests/test-c-stack.sh: New driver file.
47525
47526 2008-06-16  Eric Blake  <ebb9@byu.net>
47527
47528         Use raise module consistently.
47529         * modules/fatal-signal (Depends-on): Add raise.
47530         * modules/sigprocmask (Depends-on): Likewise.
47531         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47532         * lib/sigprocmask.c (sigprocmask): Likewise.
47533         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47534         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47535
47536         Fix compliance bug in sigpending.
47537         * lib/sigprocmask.c (sigpending): Return pending array via
47538         parameter, not return value.
47539
47540 2008-06-14  Eric Blake  <ebb9@byu.net>
47541
47542         Improve obstack-printf test code.
47543         * tests/test-obstack-printf.c (test_function): Fix comment, and
47544         simplify usage of obstack_* in macros.  Add a test for coverage.
47545         Reported by Bruno Haible.
47546
47547 2008-06-14  Bruno Haible  <bruno@clisp.org>
47548
47549         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47550         array size as a constant, not as a const variable.
47551         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47552         AC_USE_SYSTEM_EXTENSIONS.
47553         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47554         Test whether the obstack_printf function actually exists.
47555         * modules/obstack-printf (Depends-on): Add extensions.
47556         (Include): Remove obstack.h.
47557         * modules/obstack-printf-posix (Depends-on): Add extensions.
47558         (Include): Remove obstack.h.
47559
47560 2008-06-13  Eric Blake  <ebb9@byu.net>
47561
47562         Add obstack-printf and obstack-printf-posix modules.
47563         * modules/obstack-printf: New file.
47564         * modules/obstack-printf-posix: Likewise.
47565         * MODULES.html.sh (Misc): Mention them.
47566         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47567         Likewise.
47568         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47569         Likewise.
47570         * modules/stdio (Makefile.am): Accomodate new modules.
47571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47572         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47573         Declare.
47574         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47575         functions.
47576         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47577         (gl_REPLACE_OBSTACK_PRINTF): New macros
47578         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47579         * tests/test-obstack-printf.c: New file.
47580         * modules/obstack-printf-tests: Likewise.
47581         * modules/obstack-printf-posix-tests: Likewise.
47582
47583 2008-06-11  Bruno Haible  <bruno@clisp.org>
47584
47585         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47586         * lib/open.c: Include errno.h.
47587         (open): Fail when attempting to write to a file that has a trailing
47588         slash.
47589         * tests/test-open.c (main): Test against trailing slash bug.
47590         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47591
47592 2008-06-10  Bruno Haible  <bruno@clisp.org>
47593
47594         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47595         for $? to work inside the trap command, with various /bin/sh-s.
47596         * tests/test-vc-list-files-cvs.sh: Likewise.
47597
47598 2008-06-10  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/acl-internal.h: Don't include gettext.h here.
47601         * lib/set-mode-acl.c: Include gettext.h here.
47602         * lib/copy-acl.c: Likewise.
47603
47604 2008-06-10  Bruno Haible  <bruno@clisp.org>
47605
47606         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47607         * lib/wait-process.c (wait_subprocess): Likewise.
47608         * lib/execute.h (execute): Add termsigp argument.
47609         * lib/execute.c (execute): Likewise.
47610         * lib/csharpcomp.c (compile_csharp_using_pnet,
47611         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47612         * lib/csharpexec.c (execute_csharp_using_pnet,
47613         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47614         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47615         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47616         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47617         is_jikes_present): Update.
47618         * lib/javaexec.c (execute_java_class): Update.
47619         * lib/javaversion.c (execute_and_read_line): Update.
47620         * NEWS: Document the changes.
47621         Reported by Eric Blake.
47622
47623 2008-06-10  Eric Blake  <ebb9@byu.net>
47624
47625         Add missing include.
47626         * tests/test-strstr.c (includes): Add <signal.h>.
47627         * tests/test-strcasestr.c (includes): Likewise.
47628         * tests/test-memmem.c (includes): Likewise.
47629
47630 2008-06-10  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/wait-process.c (wait_subprocess): Add an assertion.
47633
47634 2008-06-10  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47637
47638 2008-06-10  Bruno Haible  <bruno@clisp.org>
47639
47640         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47641         using alarm().
47642         * tests/test-strcasestr.c (main): Likewise.
47643         * tests/test-strstr.c (main): Likewise.
47644
47645 2008-06-09  Bruno Haible  <bruno@clisp.org>
47646
47647         Work around the Solaris 10 ACE ACLs ABI change.
47648         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47649         declare if ACL_NO_TRIVIAL is present.
47650         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47651         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47652         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47653         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47654         define if ACL_NO_TRIVIAL is present.
47655         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47656         and use the current ABI.
47657         (file_has_acl): Use same #if condition as elsewhere.
47658         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47659         in use, and use the current ABI.
47660         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47661         Reported by Jim Meyering.
47662
47663 2008-06-09  Eric Blake  <ebb9@byu.net>
47664
47665         Work around environments that (stupidly) ignore SIGALRM.
47666         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47667         before using alarm().
47668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47669         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47670         Reported by Ian Beckwith <ianb@erislabs.net>.
47671
47672         Produce autobuild blurb earlier in log.
47673         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47674
47675 2008-06-09  Jim Meyering  <meyering@redhat.com>
47676         and OndÅ™ej Vašík  <ovasik@redhat.com>
47677
47678         utimens.c: correct kernel bug work-around
47679         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47680         failure, not success, and the kernel bug we're trying to work
47681         around affects not just the utimensat call, but also the fallback
47682         futimens call.
47683         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47684         not success.
47685         [HAVE_FUTIMENS]: Use the same work-around, here.
47686
47687 2008-06-09  Jim Meyering  <meyering@redhat.com>
47688
47689         add more guards around definition of ACE_-related code
47690         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47691         ALLOW and ACE_OWNER are also defined.
47692
47693 2008-06-08  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/acl-internal.h: Add me as co-author.
47696         * lib/file-has-acl.c: Likewise.
47697         * lib/set-mode-acl.c: Likewise.
47698         * lib/copy-acl.c: Likewise.
47699
47700 2008-06-08  Bruno Haible  <bruno@clisp.org>
47701
47702         Add support for AIX ACLs.
47703         * lib/acl-internal.h (acl_nontrivial): New declaration.
47704         * lib/file-has-acl.c (acl_nontrivial): New function.
47705         (file_has_acl): Add implementation using AIX 4 ACL API.
47706         * lib/set-mode-acl.c (qset_acl): Likewise.
47707         * lib/copy-acl.c (qcopy_acl): Likewise.
47708
47709 2008-06-08  Bruno Haible  <bruno@clisp.org>
47710
47711         Add support for HP-UX ACLs.
47712         * lib/acl-internal.h (acl_nontrivial): New declaration.
47713         * lib/file-has-acl.c (acl_nontrivial): New function.
47714         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47715         * lib/set-mode-acl.c (qset_acl): Likewise.
47716         * lib/copy-acl.c (qcopy_acl): Likewise.
47717
47718 2008-06-08  Bruno Haible  <bruno@clisp.org>
47719
47720         Add support for Cygwin ACLs.
47721         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47722         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47723         the chmod_or_fchmod call.
47724         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47725
47726 2008-06-08  Bruno Haible  <bruno@clisp.org>
47727
47728         Fix bug with setuid modes in Solaris 10+ code.
47729         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47730         succeeded, when the mode contains some special bits.
47731
47732 2008-06-08  Bruno Haible  <bruno@clisp.org>
47733
47734         Add support for Solaris 7..10 ACLs.
47735         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47736         declarations.
47737         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47738         functions.
47739         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47740         * lib/set-mode-acl.c (qset_acl): Likewise.
47741         * lib/copy-acl.c (qcopy_acl): Likewise.
47742
47743 2008-06-08  Bruno Haible  <bruno@clisp.org>
47744
47745         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47746         declaration.
47747         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47748         (acl_access_nontrivial): Remove MacOS X case.
47749         (file_has_acl): Use acl_extended_nontrivial.
47750         * lib/copy-acl.c (qcopy_acl): Likewise.
47751
47752 2008-06-08  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47755
47756 2008-06-08  Jim Meyering  <meyering@redhat.com>
47757
47758         * modules/acl (Maintainer): Add Bruno Haible.
47759
47760 2008-06-07  Bruno Haible  <bruno@clisp.org>
47761
47762         Improve support for Tru64 ACLs.
47763         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47764         ACL on OSF/1.
47765
47766 2008-06-07  Bruno Haible  <bruno@clisp.org>
47767
47768         Add support for MacOS X ACLs.
47769         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47770         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47771         * lib/set-mode-acl.c (qset_acl): Likewise.
47772         * lib/copy-acl.c (qcopy_acl): Likewise.
47773
47774 2008-06-07  Bruno Haible  <bruno@clisp.org>
47775
47776         Fix memory leak introduced on 2008-05-22.
47777         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47778         use.
47779
47780 2008-06-07  Bruno Haible  <bruno@clisp.org>
47781
47782         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47783         to construct an empty ACL.
47784
47785 2008-06-07  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47788         precisely.
47789         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47790
47791 2008-06-07  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47794         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47795
47796 2008-06-07  Bruno Haible  <bruno@clisp.org>
47797
47798         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47799         regardless of POSIX.
47800         * doc/posix-functions/_longjmp.texi: Likewise.
47801         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47802         SystemV platform in this case.
47803
47804 2008-06-06  Eric Blake  <ebb9@byu.net>
47805
47806         Document abort() bugs.
47807         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47808
47809         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47810         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47811         sigsetjmp.
47812         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47813         siglongjmp, but only as a macro.
47814         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47815         is obsolete.
47816         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47817
47818         Tweak documentation to cover cygwin argz bugs.
47819         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47820         argz bug fix; no code change needed since no cygwin releases
47821         occurred between the last fix and the bug being tested.
47822         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47823         module and recently fixed cygwin bugs.
47824         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47825         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47826         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47827         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47828         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47829         Likewise.
47830         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47831         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47832         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47833         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47834         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47835         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47836         Likewise.
47837
47838         Avoid gcc warning on cygwin.
47839         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47840         !ACL_NO_TRIVIAL]: Avoid unused variable.
47841
47842 2008-06-05  Eric Blake  <ebb9@byu.net>
47843
47844         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47845         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47846         git-version-gen fails to come up with a version.
47847         Reported by Simon Josefsson.
47848
47849 2008-06-05  Jim Meyering  <meyering@redhat.com>
47850             Paul Eggert  <eggert@cs.ucla.edu>
47851
47852         utimens.c: work around a probable Linux kernel bug
47853         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47854         appears to be a kernel bug that causes utimensat to return 280
47855         instead of 0, indicating success.
47856
47857 2008-06-04  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47860         2008-06-01 commit.
47861
47862 2008-06-04  Bruno Haible  <bruno@clisp.org>
47863
47864         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47865         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47866         (file_has_acl): Use it. Save errno afterwards.
47867         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47868
47869 2008-06-03  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47872         draft code. Simplify #ifs.
47873         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47874         Put Solaris code after POSIX-draft code. Fix comments regarding
47875         Solaris 10, HP-UX. Mention Cygwin.
47876         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47877
47878 2008-06-03  Eric Blake  <ebb9@byu.net>
47879
47880         Provide fallback for older kernels.
47881         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47882         Provide runtime fallback if kernel lacks support.
47883         Reported by Mike Frysinger.
47884
47885 2008-06-02  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47888         it exists.
47889
47890 2008-06-02  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47893         * lib/copy-acl.c (qcopy_acl): Update comment.
47894
47895 2008-06-02  Bruno Haible  <bruno@clisp.org>
47896
47897         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47898         like ACL APIs.
47899
47900 2008-06-02  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47903         * tests/test-set-mode-acl.sh: Likewise.
47904         * tests/test-copy-acl.sh: Likewise.
47905         * tests/test-copy-file.sh: Likewise.
47906
47907 2008-06-02  Bruno Haible  <bruno@clisp.org>
47908
47909         * tests/test-file-has-acl.sh: Remove unused code.
47910
47911 2008-06-01  Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47914         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47915         messages.
47916         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47917
47918 2008-06-01  Bruno Haible  <bruno@clisp.org>
47919
47920         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47921         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47922         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47923         APIs.
47924         * modules/acl-tests (configure.ac): Remove tests now contained in
47925         m4/acl.m4.
47926
47927 2008-06-02  Jim Meyering  <meyering@redhat.com>
47928
47929         announce-gen: use a better key-server host name
47930         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47931         it may be more consistently reliable.  Suggested by Werner Koch
47932         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47933
47934 2008-06-01  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47937         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47938
47939 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47940
47941         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47942
47943 2008-06-01  Bruno Haible  <bruno@clisp.org>
47944
47945         New ACL tests.
47946         * tests/test-file-has-acl.sh: New file.
47947         * tests/test-file-has-acl.c: New file.
47948         * tests/test-set-mode-acl.sh: New file.
47949         * tests/test-set-mode-acl.c: New file.
47950         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47951         * tests/test-copy-acl.c: New file.
47952         * modules/acl-tests: New file, based on modules/copy-file-tests.
47953         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47954         (Depends-on): Add acl-tests.
47955         (configure.ac): Remove checks.
47956         (Makefile.am): Don't create test-sameacls program here any more.
47957
47958 2008-06-01  Bruno Haible  <bruno@clisp.org>
47959
47960         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47961         * tests/test-sameacls.c: Include progname.h.
47962         (main): Invoke set_program_name. Portability fixes for MacOS X,
47963         Solaris, HP-UX.
47964
47965 2008-06-01  Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47968         function.
47969         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47970
47971 2008-06-01  Bruno Haible  <bruno@clisp.org>
47972
47973         * modules/rpmatch (Depends-on): Add strdup.
47974
47975 2008-06-01  Bruno Haible  <bruno@clisp.org>
47976
47977         * lib/pipe.c: Include unistd-safer.h.
47978         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47979         * modules/pipe (Depends-on): Add unistd-safer.
47980
47981 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47982
47983         * modules/autobuild (configure.ac): Call AB_INIT.
47984
47985 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47986
47987         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47988         Suggested by Bruno Haible <bruno@clisp.org>.
47989
47990 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47991
47992         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47993         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47994         <bruno@clisp.org>.
47995
47996 2008-05-29  Eric Blake  <ebb9@byu.net>
47997
47998         Prefer new POSIX 200x interfaces over futimesat.
47999         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48000         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48001         when available.
48002         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48003
48004 2008-05-28  Bruno Haible  <bruno@clisp.org>
48005
48006         * modules/stpcpy (License): Change to LGPLv2+.
48007         Requested by David Lutterkort <dlutter@redhat.com>.
48008
48009 2008-05-27  Bruno Haible  <bruno@clisp.org>
48010
48011         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48012         current mingw.
48013         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48014
48015 2008-05-27  Bruno Haible  <bruno@clisp.org>
48016
48017         * modules/iconv_open (Link): New section, from module 'iconv'.
48018         * modules/striconv (Link): Likewise.
48019         * modules/striconveh (Link): Likewise.
48020         * modules/xstriconv (Link): Likewise.
48021         * modules/unicodeio (Link): Likewise.
48022         * modules/propername (Link): Likewise.
48023         Reported by Jim Meyering.
48024
48025 2008-05-26  Jim Meyering  <meyering@redhat.com>
48026
48027         sha256: do not artificially restrict buffer length to be < 2^32
48028         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48029         uint32_t to size_t.
48030         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48031         to match.
48032
48033         avoid unaligned access errors, e.g., on sparc
48034         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48035         direct access through a possibly-unaligned uint64* pointer.
48036         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48037         direct access through a possibly-unaligned uint32* pointer.
48038         Prompted by this patch from Tom "spot" Callaway:
48039         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48040
48041         sha512.c: fix typo in comment
48042         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48043
48044 2008-05-25  Bruno Haible  <bruno@clisp.org>
48045
48046         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48047         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48048         (Makefile.am): Update lib_SOURCES.
48049
48050 2008-05-25  Bruno Haible  <bruno@clisp.org>
48051
48052         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48053
48054 2008-05-25  Jim Meyering  <meyering@redhat.com>
48055
48056         useless-if-before-free: freed expr may have white-space differences
48057         * build-aux/useless-if-before-free: Recognize cases in which the
48058         freed expression differs from the tested one in embedded white
48059         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48060         $1 was used, so we can't make any regexp shy.  Improved tests now
48061         detect this.
48062
48063         useless-if-before-free: accept white space in the expression.
48064         * build-aux/useless-if-before-free: For now, any white space
48065         in the expression must be identical in the free argument.
48066
48067         useless-if-before-free: efficiency tweak
48068         * build-aux/useless-if-before-free: Make the expression-matching
48069         regexp "shy".
48070         Make the *outer* regexp shy, not the expr-matching one.
48071
48072         update code-in-comment to accept cast of free arg
48073         * build-aux/useless-if-before-free: Update regexp.
48074
48075 2008-05-25  Bruno Haible  <bruno@clisp.org>
48076
48077         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48078         * modules/copy-file-tests (Files, Makefile.am): Update.
48079         * tests/test-copy-file.c (func_test_copy): Update.
48080
48081 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48082
48083         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48084
48085 2008-05-23  Bruno Haible  <bruno@clisp.org>
48086
48087         Improve support for ACLs on OSF/1.
48088         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48089         Remove fallback for unknown flavors of ACLs.
48090
48091 2008-05-22  Bruno Haible  <bruno@clisp.org>
48092
48093         Add support for ACLs on OSF/1.
48094         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48095         replacements.
48096         (acl_free_text): New macro fallback.
48097         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48098         acl_free.
48099         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48100         acl_free_text function. Require AC_C_INLINE.
48101
48102 2008-05-22  Bruno Haible  <bruno@clisp.org>
48103
48104         Make copy_acl work on MacOS X 10.5.
48105         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48106         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48107         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48108         If MODE_INSIDE_ACL, don't assume that every system has the same text
48109         representation for ACLs as FreeBSD.
48110         * lib/copy-acl.c (copy_acl): Add support for platforms with
48111         !MODE_INSIDE_ACL.
48112         * lib/file-has-acl.c (file_has_acl): Likewise.
48113         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48114         FreeBSD, MacOS X, or IRIX, respectively.
48115
48116 2008-05-22  Bruno Haible  <bruno@clisp.org>
48117
48118         * lib/acl.h: Don't include <sys/acl.h>.
48119         (GETACLCNT): Move fallback to lib/acl-internal.h.
48120         * lib/acl-internal.h: Include <sys/acl.h> here.
48121         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48122
48123 2008-05-22  Bruno Haible  <bruno@clisp.org>
48124
48125         Split off copy_acl function to separate file.
48126         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48127         * lib/acl.c (copy_acl): Moved function to separate file.
48128         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48129         * modules/acl (Files): Add lib/copy-acl.c.
48130         (Makefiles.am): Augment lib_SOURCES.
48131
48132 2008-05-22  Bruno Haible  <bruno@clisp.org>
48133
48134         * modules/copy-file-tests: New file.
48135         * tests/test-copy-file.sh: New file.
48136         * tests/test-copy-file.c: New file.
48137         * tests/test-copy-file-sameacls.c: New file.
48138
48139 2008-05-22  Eric Blake  <ebb9@byu.net>
48140
48141         Avoid gcc warning.
48142         * tests/test-memcmp.c (main): Pass NULL indirectly.
48143
48144 2008-05-21  Bruno Haible  <bruno@clisp.org>
48145
48146         Add reference doc about ACLs.
48147         * doc/acl-resources.txt: New file.
48148         * doc/acl-cygwin.txt: New file.
48149
48150 2008-05-21  Bruno Haible  <bruno@clisp.org>
48151
48152         Avoid one more warning from gcc.
48153         * lib/vasnprintf.c (IF_LINT): Update comments.
48154         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48155
48156 2008-05-21  Jim Meyering  <meyering@redhat.com>
48157
48158         avoid a warning from gcc
48159         * lib/vasnprintf.c (IF_LINT): Define.
48160         (scale10_round_decimal_long_double):
48161         Use it to avoid a "may be used uninitialized" warning.
48162         (scale10_round_decimal_double): Likewise.
48163
48164 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48165
48166         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48167         declared.
48168
48169 2008-05-20  Bruno Haible  <bruno@clisp.org>
48170
48171         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48172         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48173
48174 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48175
48176         * modules/memcmp-tests: New file.
48177         * tests/test-memcmp.c: New file.
48178
48179 2008-05-19  Bruno Haible  <bruno@clisp.org>
48180
48181         * modules/propername (Notice, configure.ac): Put quoted "..." into
48182         --keyword option.
48183         * lib/propername.h: Update comments accordingly.
48184         Reported by Eric Blake.
48185
48186 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48187
48188         * modules/getpass-gnu (Depends-on): Add fseeko.
48189
48190 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48191
48192         * modules/base64-tests: New file.
48193
48194 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48195
48196         * lib/base64.c (base64_decode_ctx): If a decode context structure
48197         was passed in use it to ignore newlines.  If a context structure
48198         was _not_ passed in, continue to treat newlines as garbage (this
48199         is the historical behavior).  Formerly base64_decode.
48200         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48201         takes a decode context structure.
48202         * lib/base64.h (base64_decode): Macro for four-argument calls.
48203         (base64_decode_alloc): Likewise.
48204         * lib/base64.c (base64_decode_ctx): If a decode context structure
48205         was passed in use it to ignore newlines.  If a context structure
48206         was _not_ passed in, continue to treat newlines as garbage (this
48207         is the historical behavior).  Formerly base64_decode.
48208         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48209         takes a decode context structure.
48210         * lib/base64.h (base64_decode): Macro for four-argument calls.
48211         (base64_decode_alloc): Likewise.
48212
48213 2008-05-19  Jim Meyering  <meyering@redhat.com>
48214
48215         avoid a warning from gcc
48216         * lib/trim.c (IF_LINT): Define.
48217         (trim2): Use it to avoid a "may be used uninitialized" warning.
48218
48219         Fix doc typo.
48220         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48221
48222 2008-05-19  Bruno Haible  <bruno@clisp.org>
48223
48224         * doc/glibc-functions/getpass.texi: Document limits of other
48225         implementations.
48226
48227 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48228             Bruno Haible <bruno@clisp.org>
48229
48230         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48231
48232 2008-05-18  Bruno Haible  <bruno@clisp.org>
48233
48234         * modules/propername: New file, from GNU gettext.
48235         * lib/propername.h: New file, from GNU gettext.
48236         * lib/propername.c: New file, from GNU gettext.
48237         * MODULES.html.sh (Internationalization functions): Add propername.
48238
48239 2008-05-16  Jim Meyering  <meyering@redhat.com>
48240             Bruno Haible  <bruno@clisp.org>
48241
48242         Avoid some warnings from "gcc -Wshadow".
48243         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48244
48245 2008-05-15  Eric Blake  <ebb9@byu.net>
48246
48247         Extend previous patch to cygwin 1.7.0.
48248         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48249         fast implementation in cygwin >= 1.7.0.
48250         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48252
48253 2008-05-15  Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48256         implementation in glibc >= 2.9.
48257         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48259
48260 2008-05-15  Bruno Haible  <bruno@clisp.org>
48261
48262         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48263         (Unicode string functions): Add unilbrk/*.
48264         Reported by Karl Berry.
48265
48266 2008-05-15  Eric Blake  <ebb9@byu.net>
48267
48268         Fix violation of <stdbool.h> replacement in regex.
48269         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48270         * lib/regexec.c (re_search_internal): Likewise.
48271         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48272
48273 2008-05-15  Jim Meyering  <meyering@redhat.com>
48274
48275         avoid distracting test output when git or cvs is not found
48276         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48277         * tests/test-vc-list-files-git.sh: Likewise.
48278
48279 2008-05-15  Eric Blake  <ebb9@byu.net>
48280
48281         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48282         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48283         glibc version.
48284         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48285         * doc/posix-functions/strstr.texi (strstr): Likewise.
48286         * lib/str-two-way.h (MAX): Sychronize with glibc.
48287
48288 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48289
48290         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48291         opr.ctx_type.
48292         (calc_first): Initialize constraint field.
48293         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48294         Fix grammar.
48295         (duplicate_node): Merge constraint field for all node types.
48296         (calc_eclosure_iter): Look at constraint field for all node types.
48297         * lib/regex_internal.c (create_cd_newstate): Don't look at
48298         opr.ctx_type.
48299
48300 2008-05-14  Bruno Haible  <bruno@clisp.org>
48301
48302         Help GCC to do better code generation.
48303         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48304         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48305         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48306         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48307         Declare with attribute 'malloc' if supported.
48308
48309 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48310
48311         use "echo STR|wc -c" rather than unportable "expr length STR"
48312         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48313         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48314
48315 2008-05-14  Jim Meyering  <meyering@redhat.com>
48316
48317         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48318         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48319         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48320         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48321         via Collin Lasse.
48322
48323 2008-05-14  Eric Blake  <ebb9@byu.net>
48324
48325         Avoid quadratic growth in gl_LIBSOURCES.
48326         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48327         Suggested by Bruno Haible.
48328
48329         Test xmemdup0.
48330         * modules/xmemdup0-tests: New file.
48331         * tests/test-xmemdup0.c: Likewise.
48332
48333 2008-05-13  Eric Blake  <ebb9@byu.net>
48334
48335         Split xmemdup0 into its own module.
48336         * modules/xmemdup0: New file.
48337         * lib/xmemdup0.h: Likewise.
48338         * lib/xmemdup0.c: Likewise.
48339         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48340         * lib/xalloc.h (xmemdup0): Remove.
48341         * lib/xmalloc.c (xmemdup0): Likewise.
48342
48343 2008-05-13  Eric Blake  <ebb9@byu.net>
48344             Bruno Haible  <bruno@clisp.org>
48345
48346         Reduce number of forks required during autoconf.
48347         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48348         and gl_LIBSOURCES_DIR.
48349         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48350         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48351         m4_syscmd per file.
48352         <m4_foreach_w>: Move...
48353         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48354
48355 2008-05-13  Eric Blake  <ebb9@byu.net>
48356
48357         * gnulib-tool: Fix various comment typos.
48358
48359 2008-05-12  Bruno Haible  <bruno@clisp.org>
48360
48361         Tailor the linebreaking algorithm.
48362         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48363
48364 2008-05-12  Bruno Haible  <bruno@clisp.org>
48365
48366         Update to Unicode 5.0.0.
48367         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48368         LBP_JV, LBP_JT. Redistribute values.
48369         (unilbrk_table): Change size.
48370         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48371         Unicode TR#14 rev. 22.
48372         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48373         LBP_JV, LBP_JT. Redistribute values.
48374         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48375         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48376         Update.
48377         * lib/unilbrk/lbrkprop1.h: Regenerated.
48378         * lib/unilbrk/lbrkprop2.h: Regenerated.
48379         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48380         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48381         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48382         Likewise.
48383         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48384         Likewise.
48385         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48386         result.
48387         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48388         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48389         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48390         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48391         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48392         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48393
48394 2008-05-11  Bruno Haible  <bruno@clisp.org>
48395
48396         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48397
48398 2008-05-11  Bruno Haible  <bruno@clisp.org>
48399
48400         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48401         * modules/unilbrk/gen-lbrk: New file.
48402
48403 2008-05-11  Bruno Haible  <bruno@clisp.org>
48404
48405         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48406         * m4/sha512.m4 (gl_SHA512): Likewise.
48407
48408 2008-05-11  Jim Meyering  <meyering@redhat.com>
48409
48410         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48411         * modules/crypto/sha256: New file.
48412         * modules/crypto/sha512: Likewise.
48413         * lib/sha256.c: Likewise.
48414         * lib/sha256.h: Likewise.
48415         * lib/sha512.c: Likewise.
48416         * lib/sha512.h: Likewise.
48417         * lib/u64.h: Likewise.
48418         * m4/sha256.m4: Likewise.
48419         * m4/sha512.m4: Likewise.
48420         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48421
48422 2008-05-10  Bruno Haible  <bruno@clisp.org>
48423
48424         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48425         (Input/Output <stdio.h>): Add xprintf.
48426         (Signal handling <signal.h>): Add strsignal.
48427         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48428         (Core language properties): Add func.
48429         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48430         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48431         strings.
48432         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48433         (Input/output): New section.
48434         (File system functions): Add openat-die, stat-macros.
48435         (Networking functions): Add sockets.
48436         (Unicode string functions): Add unictype/*.
48437         (Support for building libraries and executables): Add gperf.
48438         (Support for building documentation): Add agpl-3.0.
48439         (Misc): Add nocrash.
48440
48441 2008-05-10  Bruno Haible  <bruno@clisp.org>
48442
48443         * modules/unictype/gen-ctype: New file.
48444
48445 2008-05-10  Jim Meyering  <meyering@redhat.com>
48446
48447         Make chdir-safer.c more efficient on a system with no symlinks.
48448         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48449         also if ELOOP is zero.  Suggested by Bruno Haible.
48450
48451         Make chdir-safer.c slightly safer.
48452         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48453         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48454
48455         Avoid compile failure on systems without ELOOP (like mingw).
48456         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48457         Reported by Bruno Haible.
48458
48459 2008-05-10  Bruno Haible  <bruno@clisp.org>
48460
48461         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48462         (is_utf8_encoding): Use a case-insensitive comparison.
48463         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48464         streq.
48465
48466 2008-05-10  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48469         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48470         * lib/unilbrk/ulc-common.h (iconv_string_length,
48471         iconv_string_keeping_offsets): Remove declarations.
48472         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48473         Don't include <iconv.h>, streq.h, xsize.h.
48474         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48475         conversion.
48476         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48477         <iconv.h>, streq.h, xsize.h.
48478         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48479         conversion.
48480         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48481         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48482         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48483         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48484
48485 2008-05-10  Bruno Haible  <bruno@clisp.org>
48486
48487         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48488         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48489
48490         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48491         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48492
48493         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48494         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48495
48496         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48497         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48498
48499         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48500         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48501
48502         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48503         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48504
48505         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48506         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48507
48508         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48509         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48510
48511 2008-05-10  Bruno Haible  <bruno@clisp.org>
48512
48513         Split up 'linebreak' module.
48514         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48515         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48516         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48517         modifications.
48518         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48519         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48520         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48521         lib/linebreak.c.
48522         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48523         lib/linebreak.c.
48524         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48525         lib/linebreak.c.
48526         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48527         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48528         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48529         lib/linebreak.c.
48530         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48531         lib/linebreak.c.
48532         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48533         lib/linebreak.c.
48534         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48535         lib/linebreak.c.
48536         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48537         lib/linebreak.c.
48538         * modules/unilbrk/base: New file.
48539         * modules/unilbrk/tables: New file.
48540         * modules/unilbrk/u8-possible-linebreaks: New file.
48541         * modules/unilbrk/u16-possible-linebreaks: New file.
48542         * modules/unilbrk/u32-possible-linebreaks: New file.
48543         * modules/unilbrk/ulc-common: New file.
48544         * modules/unilbrk/ulc-possible-linebreaks: New file.
48545         * modules/unilbrk/u8-width-linebreaks: New file.
48546         * modules/unilbrk/u16-width-linebreaks: New file.
48547         * modules/unilbrk/u32-width-linebreaks: New file.
48548         * modules/unilbrk/ulc-width-linebreaks: New file.
48549         * lib/linebreak.h: Remove file.
48550         * lib/linebreak.c: Remove file.
48551         * m4/linebreak.m4: Remove file.
48552         * modules/linebreak: Remove file.
48553         * NEWS: Mention the changes.
48554
48555 2008-05-09  Eric Blake  <ebb9@byu.net>
48556
48557         Add xmemdup0.
48558         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48559         implementation.
48560         * lib/xmalloc.c (xmemdup0): New C implementation.
48561
48562 2008-05-08  Bruno Haible  <bruno@clisp.org>
48563
48564         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48565
48566 2008-05-07  Eric Blake  <ebb9@byu.net>
48567
48568         Support cross-compilation of <wctype.h>.
48569         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48570         AC_CACHE_CHECK.
48571
48572 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48573
48574         * build-aux/vc-list-files: Add support for bzr.
48575
48576 2008-05-03  Jim Meyering  <meyering@redhat.com>
48577
48578         avoid failed assertion with tight malloc
48579         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48580
48581 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48582
48583         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48584         are needed from arpa/inet.h.
48585         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48586         Reported by Bruno Haible.
48587
48588 2008-05-02  Jim Meyering  <meyering@redhat.com>
48589
48590         avoid compilation error on FreeBSD 6
48591         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48592
48593 2008-05-01  Jim Meyering  <meyering@redhat.com>
48594
48595         useless-if-before-free: correct --help's exit status description
48596         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48597         for one or more matches, etc.  Reported by Bruno Haible.
48598
48599         vc-list-files: make the stand-alone gnulib test work
48600         * modules/vc-list-files-tests (configure.ac):
48601         Define and AC_SUBST abs_aux_dir.
48602         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48603         $(abs_top_srcdir) to each script and having each of them
48604         duplicate the work of setting PATH, set PATH here, using
48605         the new variable, abs_aux_dir instead.
48606         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48607         * tests/test-vc-list-files-git.sh: Likewise.
48608         Reported by Bruno Haible.
48609
48610 2008-05-01  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48613         reallocation. Rename 'done' to 'found_delimiter'.
48614
48615 2008-05-01  Jim Meyering  <meyering@redhat.com>
48616
48617         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48618         * build-aux/vc-list-files: Use `...`, not $(...).
48619
48620 2008-04-30  Jim Meyering  <meyering@redhat.com>
48621
48622         add tests for vc-list-files
48623         * modules/vc-list-files-tests: New module.
48624         * tests/test-vc-list-files-cvs.sh: New file.
48625         * tests/test-vc-list-files-git.sh: New file.
48626
48627         avoid a warning from gcc
48628         * lib/getndelim2.c (IF_LINT): Define.
48629         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48630
48631         vc-list-files: work properly with build-aux/cvsu, too
48632         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48633         to all cvs-based clauses.
48634
48635         vc-list-files: work properly in the CVS+awk case, too
48636         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48637
48638         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48639         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48640         take more than one file argument, so .  Add quotes, just in case $dir
48641         ever contains a shell meta-character.  Prompted by Soren Hansen in
48642         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48643
48644 2008-04-29  Eric Blake  <ebb9@byu.net>
48645
48646         Optimize getndelim2 to use block operations when possible.
48647         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48648         freadseek, and memchr2.
48649         * lib/getndelim2.c (getndelim2): Use them for block reads.
48650
48651 2008-04-29  Bruno Haible  <bruno@clisp.org>
48652
48653         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48654         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48655         * modules/inet_ntop (Depends-on): Add extensions.
48656         * modules/inet_pton (Depends-on): Likewise.
48657         Reported by Simon Josefsson.
48658
48659 2008-04-29  Jim Meyering  <meyering@redhat.com>
48660
48661         When the is more than one match in a block, match all of them.
48662         * build-aux/useless-if-before-free: Iterate through each block
48663         until there are no more matches.
48664
48665         Fix broken useless-if-before-free script.
48666         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48667         the expression to match cast of argument to free-like function.
48668
48669 2008-04-29  Eric Blake  <ebb9@byu.net>
48670
48671         Use new header.
48672         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48673
48674 2008-04-29  Jim Meyering  <meyering@redhat.com>
48675
48676         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48677         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48678         by gnulib to exist and to declare e.g., inet_ntop.
48679         Don't include "inet_ntop.h", now removed.
48680
48681         * m4/arpa_inet_h.m4: Remove trailing blanks.
48682
48683 2008-04-29  Eric Blake  <ebb9@byu.net>
48684
48685         Silence valgrind on safe reads beyond potential array bounds.
48686         * lib/rawmemchr.valgrind: New file.
48687         * lib/strchrnul.valgrind: Likewise.
48688         * modules/rawmemchr (Files): Distribute new file.
48689         * modules/strchrnul (Files): Likewise.
48690         Suggested by Bruno Haible.
48691
48692 2008-04-29  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48695         (inet_ntop, inet_pton): Change portability warning's wording.
48696         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48697         Invoke gl_CHECK_NEXT_HEADERS.
48698         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48699         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48700         set ARPA_INET_H.
48701         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48702         * modules/arpa_inet (Description): No longer only for systems that
48703         lack it.
48704         (Depends-on): Add include_next.
48705         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48706         HAVE_ARPA_INET_H.
48707
48708 2008-04-29  Jim Meyering  <meyering@redhat.com>
48709
48710         * modules/mkdir (License): Re-license as LGPLv2+.
48711
48712 2008-04-29  Bruno Haible  <bruno@clisp.org>
48713
48714         * modules/rawmemchr (Maintainer): Set to Eric.
48715         * modules/strchrnul (Maintainer): Likewise.
48716
48717 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48718
48719         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48720         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48721
48722         * modules/arpa_inet (arpa/inet.h): Use them.
48723
48724 2008-04-28  Eric Blake  <ebb9@byu.net>
48725
48726         Test getndelim2.
48727         * modules/getndelim2-tests: New file.
48728         * tests/test-getndelim2.c: Likewise.
48729         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48730         stream.
48731         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48732
48733         * MODULES.html.sh: Document new module.
48734
48735 2008-04-20  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/c-stack.c (die): Use raise.
48738         * modules/c-stack (Depends-on): Add raise.
48739
48740 2008-04-28  Bruno Haible  <bruno@clisp.org>
48741
48742         Expect rpmatch to be declared.
48743         * lib/yesno.c (rpmatch): Remove declaration.
48744
48745         Declare rpmatch.
48746         * lib/stdlib.in.h (rpmatch): New declaration.
48747         * lib/rpmatch.c: Include <stdlib.h> first.
48748         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48749         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48751         HAVE_RPMATCH.
48752         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48753         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48754         (Include): Set to <stdlib.h>.
48755         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48756         HAVE_RPMATCH.
48757         * NEWS: Document the change.
48758
48759 2008-04-28  Bruno Haible  <bruno@clisp.org>
48760
48761         Change rpmatch to use nl_langinfo when appropriate.
48762         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48763         (N_): New macro.
48764         (localized_pattern): New function/macro.
48765         (try): Remove match, nomatch arguments. Copy the pattern into safe
48766         memory before caching it.
48767         (rpmatch): Use localized_pattern. Add translator comments.
48768         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48769         Suggested by Eric Blake.
48770         * modules/rpmatch (Depends-on): Add stdbool.
48771
48772 2008-04-28  Eric Blake  <ebb9@byu.net>
48773
48774         Add rawmemchr module, matching glibc.
48775         * modules/string (Makefile.am): New indicator.
48776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48777         * lib/string.in.h (rawmemchr): Declare when appropriate.
48778         * modules/rawmemchr: New file.
48779         * m4/rawmemchr.m4: Likewise.
48780         * lib/rawmemchr.c: Likewise.
48781         * modules/rawmemchr-tests: Likewise.
48782         * tests/test-rawmemchr.c: Likewise.
48783         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48784         module.
48785         * modules/strchrnul (Depends-on): Add rawmemchr.
48786         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48787
48788         Whitespace cleanup.
48789         * tests/test-strchrnul.c: Reindent.
48790         * lib/strchrnul.c: Likewise.
48791
48792         Optimize and test strchrnul.
48793         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48794         * modules/strchrnul-tests: New file.
48795         * tests/test-strchrnul.c: Likewise.
48796
48797         Remove intprops dependency.
48798         * modules/memchr (Depends-on): Remove intprops.
48799         * modules/memrchr (Depends-on): Likewise.
48800         * modules/memchr2 (Depends-on): Likewise.
48801         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48802         * lib/memrchr.c (__memrchr): Likewise.
48803         * lib/memrchr2.c (memchr2): Likewise.
48804         Reported by Simon Josefsson.
48805
48806 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48807
48808         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48809         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48810
48811 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48812
48813         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48814
48815         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48816
48817         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48818
48819         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48820         declarations.
48821         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48822
48823         * m4/inet_pton.m4: Don't check for header files.
48824
48825         * m4/inet_ntop.m4: Don't check for header files.
48826
48827 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48828
48829         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48830         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48831         trigger for cygwin).
48832         Reported by Bruno Haible  <bruno@clisp.org>.
48833
48834 2008-04-28  Bruno Haible  <bruno@clisp.org>
48835
48836         * doc/posix-functions/strdup.texi: Mention mingw problem.
48837
48838 2008-04-27  Bruno Haible  <bruno@clisp.org>
48839
48840         * modules/stat-time-tests (Depends-on): Add sleep.
48841         * tests/test-stat-time.c (force_unlink): New function.
48842         (cleanup): Use it.
48843         (test_mtime): Remove the ctime related tests.
48844         (test_ctime): New function, containing the ctime related tests.
48845         (main): Call test_ctime, except on native Windows platforms.
48846
48847 2008-04-27  Bruno Haible  <bruno@clisp.org>
48848
48849         * lib/rpmatch.c (rpmatch): Add some comments.
48850         Reported by James Youngman <jay@gnu.org>.
48851
48852 2008-04-27  Bruno Haible  <bruno@clisp.org>
48853
48854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48855         quiet NaNs.
48856
48857 2008-04-27  Bruno Haible  <bruno@clisp.org>
48858
48859         Make test-yesno.sh work on mingw.
48860         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48861         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48862         (main): Set stdin to binary mode.
48863         * modules/yesno-tests (Depends-on): Add binary-io.
48864
48865 2008-04-27  Bruno Haible  <bruno@clisp.org>
48866
48867         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48868         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48869         argument that lie outside the IEEE 854 domain.
48870         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48871         (gl_ISFINITE): Use it.
48872         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48873
48874 2008-04-27  Bruno Haible  <bruno@clisp.org>
48875
48876         Allow local renaming in config.h.
48877         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48878
48879 2008-04-27  Bruno Haible  <bruno@clisp.org>
48880
48881         * lib/memchr.c (__memchr): Change type of 'i'.
48882         * lib/memchr2.c (memchr2): Likewise.
48883
48884 2008-04-26  Eric Blake  <ebb9@byu.net>
48885         and Bruno Haible  <bruno@clisp.org>
48886
48887         Optimize and test memrchr.
48888         * modules/memrchr (Depends-on): Add intprops.
48889         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48890         * modules/memrchr-tests: New file.
48891         * tests/test-memrchr.c: New file.
48892
48893 2008-04-26  Bruno Haible  <bruno@clisp.org>
48894
48895         Add tentative support for DragonFly BSD.
48896         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48897         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48898         fp.
48899         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48900         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48901         * lib/fpurge.c (fpurge): Likewise.
48902         * lib/freadable.c (freaadable): Likewise.
48903         * lib/freadahead.c (freadahead): Likewise.
48904         * lib/freading.c (freading): Likewise.
48905         * lib/freadptr.c (freadptr): Likewise.
48906         * lib/freadseek.c (freadptrinc): Likewise.
48907         * lib/fseeko.c (fseeko): Likewise.
48908         * lib/fseterr.c (fseterr): Likewise.
48909         * lib/fwritable.c (fwritable): Likewise.
48910         * lib/fwriting.c (fwriting): Likewise.
48911
48912 2008-04-26  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/stdio-impl.h: New file.
48915         * lib/fbufmode.c: Include stdio-impl.h.
48916         (fbufmode): Use fp_, remove redundant #defines.
48917         * lib/fflush.c: Include stdio-impl.h.
48918         (clear_ungetc_buffer): Remove redundant #defines.
48919         * lib/fpurge.c: Include stdio-impl.h.
48920         (fpurge): Remove redundant #defines.
48921         * lib/freadable.c: Include stdio-impl.h.
48922         (freadable): Remove redundant #defines.
48923         * lib/freadahead.c: Include stdio-impl.h.
48924         (freadahead): Remove redundant #defines.
48925         * lib/freading.c: Include stdio-impl.h.
48926         (freading): Remove redundant #defines.
48927         * lib/freadptr.c: Include stdio-impl.h.
48928         (freadptr): Remove redundant #defines.
48929         * lib/freadseek.c: Include stdio-impl.h.
48930         (freadptrinc): Remove redundant #defines.
48931         * lib/fseeko.c: Include stdio-impl.h.
48932         (rpl_fseeko): Remove redundant #defines.
48933         * lib/fseterr.c: Include stdio-impl.h.
48934         (fseterr): Remove redundant #defines.
48935         * lib/fwritable.c: Include stdio-impl.h.
48936         (fwritable: Remove redundant #defines.
48937         * lib/fwriting.c: Include stdio-impl.h.
48938         (fwriting): Remove redundant #defines.
48939         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48940         * modules/fflush (Files): Likewise.
48941         * modules/fpurge (Files): Likewise.
48942         * modules/freadable (Files): Likewise.
48943         * modules/freadahead (Files): Likewise.
48944         * modules/freading (Files): Likewise.
48945         * modules/freadptr (Files): Likewise.
48946         * modules/freadseek (Files): Likewise.
48947         * modules/fseeko (Files): Likewise.
48948         * modules/fseterr (Files): Likewise.
48949         * modules/fwritable (Files): Likewise.
48950         * modules/fwriting (Files): Likewise.
48951
48952 2008-04-26  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48955         restore_seek_optimization, update_fpos_cache): New functions, extracted
48956         from rpl_fflush.
48957         (rpl_fflush): Use them.
48958         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48959         (gl_REPLACE_FFLUSH): Use it.
48960
48961 2008-04-26  Bruno Haible  <bruno@clisp.org>
48962
48963         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48964         on Solaris.
48965         * tests/test-xstrtoimax.sh: Likewise.
48966         * tests/test-xstrtoumax.sh: Likewise.
48967         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48968
48969 2008-04-26  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/memchr-tests: New file.
48972         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48973
48974 2008-04-26  Eric Blake  <ebb9@byu.net>
48975             Bruno Haible  <bruno@clisp.org>
48976
48977         * lib/memchr.c: Include intprops.h.
48978         (__memchr): Optimize parallel detection of matching bytes. Rename local
48979         variables. Add explanatory comments.
48980
48981 2008-04-26  Bruno Haible  <bruno@clisp.org>
48982
48983         Fix module 'memchr', broken since 2000-10-28.
48984         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48985
48986 2008-04-26  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48989         comments.
48990
48991 2008-04-25  Eric Blake  <ebb9@byu.net>
48992
48993         Use native fstatat on cygwin 1.7.0.
48994         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48995         first.
48996
48997 2008-04-23  Eric Blake  <ebb9@byu.net>
48998
48999         Improve memchr2 performance.
49000         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49001         NUL bytes.
49002         * modules/memchr2 (Depends-on): Use intprops.h.
49003
49004 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49005
49006         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49007         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49008         <blp@cs.stanford.edu>.
49009
49010 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49011
49012         * lib/arpa_inet.in.h: New file.
49013
49014         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49015         (Makefile.am): Sed in substitute header file.
49016
49017         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49018         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49019
49020         * modules/inet_ntop (configure.ac): Use
49021         gl_ARPA_INET_MODULE_INDICATOR.
49022
49023         * modules/inet_pton (configure.ac): Use
49024         gl_ARPA_INET_MODULE_INDICATOR.
49025
49026 2008-04-22  Jim Meyering  <meyering@redhat.com>
49027
49028         * modules/verify (License): Re-license as LGPLv2+.
49029
49030 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49031
49032         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49033         parameter to void* as per POSIX standard (MinGW uses char*).
49034
49035 2008-04-21  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49038         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49039         Define to replacements if REPLACE_ISWCNTRL is 1.
49040         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49041         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49042         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49043         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49044         what it fixes.
49045         * doc/posix-functions/iswalpha.texi: Likewise.
49046         * doc/posix-functions/iswblank.texi: Likewise.
49047         * doc/posix-functions/iswcntrl.texi: Likewise.
49048         * doc/posix-functions/iswdigit.texi: Likewise.
49049         * doc/posix-functions/iswgraph.texi: Likewise.
49050         * doc/posix-functions/iswlower.texi: Likewise.
49051         * doc/posix-functions/iswprint.texi: Likewise.
49052         * doc/posix-functions/iswpunct.texi: Likewise.
49053         * doc/posix-functions/iswspace.texi: Likewise.
49054         * doc/posix-functions/iswupper.texi: Likewise.
49055         * doc/posix-functions/iswxdigit.texi: Likewise.
49056         Reported by Alain Guibert.
49057
49058 2008-04-21  Bruno Haible  <bruno@clisp.org>
49059
49060         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49061         Patch by Alain Guibert.
49062
49063 2008-04-21  Bruno Haible  <bruno@clisp.org>
49064
49065         Fix test failures on mingw.
49066         * tests/test-xstrtol.c (print_no_progname): New function.
49067         (main): Install it in error_print_progname hook.
49068         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49069         * tests/test-xstrtoimax.sh: Likewise.
49070         * tests/test-xstrtoumax.sh: Likewise.
49071
49072 2008-04-21  Bruno Haible  <bruno@clisp.org>
49073
49074         Fix test failure on mingw.
49075         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49076
49077 2008-04-21  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49080         Actually assign a value.
49081
49082 2008-04-20  Bruno Haible  <bruno@clisp.org>
49083
49084         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49085         take 2.
49086         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49087         'canonicalize-lgpl' module is also used.
49088         * lib/canonicalize-lgpl.c: Undo last change.
49089         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49090
49091 2008-04-20  Bruno Haible  <bruno@clisp.org>
49092
49093         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49094         config.h. Provide _mkdir based fallback for mingw.
49095         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49096         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49097         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49098         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49099         rather than defining mkdir in config.h.
49100         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49101         (gl_SYS_STAT_H_DEFAULTS): New macro.
49102         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49103         HAVE_IO_H any more.
49104         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49105         HAVE_DECL_MKDIR and HAVE_IO_H.
49106
49107 2008-04-20  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/isapipe.c: Port to native Windows platforms.
49110
49111 2008-04-20  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49114
49115 2008-04-21  Eric Blake  <ebb9@byu.net>
49116
49117         Work around preprocessors that don't handle UINTMAX_MAX.
49118         * lib/memchr2.c (memchr2): Avoid embedded #if.
49119         Reported by Alain Guibert, fix suggested by Bruno Haible.
49120
49121 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49122
49123         * doc/posix-functions/strftime.texi (strftime): Explain better
49124         Windows incompatibility.  Suggested by Micah Cowan
49125         <micah@cowan.name>.
49126
49127 2008-04-20  Bruno Haible  <bruno@clisp.org>
49128
49129         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49130         unistr/u8-mblen.
49131
49132 2008-04-20  Bruno Haible  <bruno@clisp.org>
49133
49134         Fix test failure on platforms with non-GNU iconv.
49135         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49136         (U_TO_U8): Use it, rather than u16_to_u8.
49137         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49138         units at the end of the input string.
49139         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49140
49141 2008-04-20  Bruno Haible  <bruno@clisp.org>
49142
49143         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49144         when the resulting length is 0.
49145         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49146
49147 2008-04-20  Bruno Haible  <bruno@clisp.org>
49148
49149         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49150         works.
49151         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49152
49153 2008-04-20  Bruno Haible  <bruno@clisp.org>
49154
49155         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49156         * modules/tsearch-tests (configure.ac): Test for initstate function.
49157
49158 2008-04-20  Bruno Haible  <bruno@clisp.org>
49159
49160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49161         for nlink_t if missing.
49162         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49163
49164 2008-04-19  Bruno Haible  <bruno@clisp.org>
49165
49166         Work around snprintf bug on Linux libc5.
49167         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49169         gl_SNPRINTF_SIZE1.
49170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49171         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49172         that test failed.
49173         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49174         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49175         * modules/snprintf (Files): Add m4/printf.m4.
49176         * modules/vsnprintf (Files): Likewise.
49177         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49178         * doc/posix-functions/vsnprintf.texi: Likewise.
49179
49180 2008-04-19  Bruno Haible  <bruno@clisp.org>
49181
49182         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49183         from 0.0058 to less than 10^-7.
49184
49185 2008-04-19  Bruno Haible  <bruno@clisp.org>
49186
49187         Fix rounding when a precision is given.
49188         * lib/vasnprintf.c (is_borderline): New function.
49189         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49190         9...9x.
49191         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49192         %e, %g.
49193         * tests/test-vasprintf-posix.c (test_function): Likewise.
49194         * tests/test-snprintf-posix.h (test_function): Likewise.
49195         * tests/test-sprintf-posix.h (test_function): Likewise.
49196         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49197         * tests/test-printf-posix.h (test_function): Likewise.
49198         * tests/test-printf-posix.output: Update.
49199         Reported by John Darrington <john@darrington.wattle.id.au> via
49200         Ben Pfaff <blp@cs.stanford.edu>.
49201
49202 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49203
49204         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49205         Suggested by Bruno Haible <bruno@clisp.org>.
49206
49207 2008-04-17  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49210         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49211         implementation.
49212         Patch by Bruce Merry <bmerry@gmail.com>.
49213
49214 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49215
49216         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49217         doesn't work under Windows.
49218
49219 2008-04-16  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49222         New macros.
49223         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49224         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49225         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49226         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49227         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49228         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49229         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49230         macros.
49231         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49232         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49233         Northern Sotho, Uighur.
49234
49235 2008-04-16  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49238         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49239         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49240         Reported by Daniel Bergström <daniel@octocode.com>.
49241
49242 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49243             Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49246         function.
49247         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49248         New functions, mostly extracted from gl_locale_name_default.
49249         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49250
49251 2008-04-16  Eric Blake  <ebb9@byu.net>
49252
49253         Adjust strtod detection to catch glibc 2.7 bug.
49254         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49255         Reported by John Gatewood Ham.
49256
49257 2008-04-16  Bruno Haible  <bruno@clisp.org>
49258
49259         Add tentative support for Linux libc5.
49260         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49261         * lib/fpurge.c (fpurge): Likewise.
49262         * lib/freadable.c (freadable): Likewise.
49263         * lib/freadahead.c (freadahead): Likewise.
49264         * lib/freading.c (freading): Likewise.
49265         * lib/freadptr.c (freadptr): Likewise.
49266         * lib/freadseek.c (freadptrinc): Likewise.
49267         * lib/fseeko.c (rpl_fseeko): Likewise.
49268         * lib/fseterr.c (fseterr): Likewise.
49269         * lib/fwritable.c (fwritable): Likewise.
49270         * lib/fwriting.c (fwriting): Likewise.
49271         Reported by Alain Guibert <alguibert+bts@free.fr>.
49272
49273 2008-04-15  Bruno Haible  <bruno@clisp.org>
49274
49275         * modules/mathl (configure.ac): Define module indicator.
49276
49277 2008-04-15  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/logl.c (logl): Remove unused variables.
49280
49281 2008-04-15  Bruno Haible  <bruno@clisp.org>
49282
49283         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49284         fails.
49285
49286 2008-04-15  Bruno Haible  <bruno@clisp.org>
49287
49288         * lib/trim.c (trim2): Fix argument of isspace() macro.
49289
49290 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49291
49292         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49293         to 0.
49294         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49295
49296 2008-04-14  Bruno Haible  <bruno@clisp.org>
49297
49298         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49299         AC_LANG_PROGRAM argument.
49300         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49301         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49303         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49304         * m4/math_h.m4 (gl_MATH_H): Likewise.
49305         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49306         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49307         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49308         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49309         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49310         * m4/regex.m4 (gl_REGEX): Likewise.
49311         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49312         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49314         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49315         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49316         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49319
49320 2008-04-14  Jim Meyering  <meyering@redhat.com>
49321
49322         test-strtod: fix typos: s/abs/fabs/
49323         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49324
49325 2008-04-13  Bruno Haible  <bruno@clisp.org>
49326
49327         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49328         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49329         module is also used and while not building the reloc-wrapper.
49330
49331 2008-04-13  Bruno Haible  <bruno@clisp.org>
49332
49333         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49334
49335 2008-04-13  Bruno Haible  <bruno@clisp.org>
49336
49337         Fix AIX compilation failure introduced on 2008-04-02.
49338         * tests/test-frexp.c (exp): Undefine before redefining.
49339         * tests/test-frexpl.c (exp): Likewise.
49340
49341 2008-04-13  Bruno Haible  <bruno@clisp.org>
49342
49343         Work around a HP-UX stdio bug.
49344         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49345         * tests/test-ftello.c (main): Likewise.
49346         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49347         * doc/posix-functions/ftello.texi: Likewise.
49348
49349 2008-04-13  Bruno Haible  <bruno@clisp.org>
49350
49351         Make test-signbit pass on HP-UX/hppa.
49352         * tests/test-signbit.c (minus_zerol): New variable.
49353         (test_signbitl): Use it.
49354
49355 2008-04-13  Bruno Haible  <bruno@clisp.org>
49356
49357         Make truncl work on OSF/1 4.0.
49358         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49359         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49360         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49362         HAVE_DECL_TRUNCL.
49363         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49364         HAVE_DECL_TRUNCL.
49365         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49366
49367 2008-04-13  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49370
49371 2008-04-13  Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49374         expression, so as to avoid HP-UX 11 cc compiler bug.
49375
49376 2008-04-13  Bruno Haible  <bruno@clisp.org>
49377
49378         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49379
49380 2008-04-13  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/git-merge-changelog.c: Remove empty declaration outside of
49383         functions.
49384
49385 2008-04-13  Bruno Haible  <bruno@clisp.org>
49386
49387         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49388
49389 2008-04-13  Bruno Haible  <bruno@clisp.org>
49390
49391         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49392         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49393         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49394         also if it exists but lacks definitions of the SHUT_* macros.
49395         * modules/sys_socket (Description): Update.
49396         Reported by Elbert Pol <e.pol@chello.nl>.
49397
49398 2008-04-13  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/localcharset.c (OS2): Don't redefine if already defined.
49401         Reported by Elbert Pol <e.pol@chello.nl>.
49402
49403 2008-04-13  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/binary-io.h [__EMX__]: Include <io.h>.
49406         Reported by Elbert Pol <e.pol@chello.nl>.
49407
49408 2008-04-12  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/fpucw.h: Enable the definitions also for x86_64.
49411         Needed for NetBSD/x86_64.
49412         Reported by Thomas Klausner <tk@giga.or.at>.
49413
49414 2008-04-12  Bruno Haible  <bruno@clisp.org>
49415
49416         * tests/test-strtod.c: Include isnand.h.
49417         (main): Use isnand instead of isnan.
49418         Reported by Jim Meyering.
49419
49420 2008-04-12  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49423         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49424
49425 2008-04-12  Jim Meyering  <meyering@redhat.com>
49426
49427         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49428
49429 2008-04-12  Bruno Haible  <bruno@clisp.org>
49430
49431         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49432         Reported by Elbert Pol <e.pol@chello.nl>.
49433
49434 2008-04-12  Eric Blake  <ebb9@byu.net>
49435
49436         Work around Solaris 10 math.h bug.
49437         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49438         (gl_MATH_H_DEFAULTS): Set up default.
49439         * modules/math (Makefile.am): Replace new indicators.
49440         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49441         * tests/test-math.c (main): Test this.
49442         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49443         * doc/posix-headers/math.texi (math.h): Mention bug.
49444         Reported by Nelson H. F. Beebe and Jim Meyering.
49445
49446 2008-04-11  Bruno Haible  <bruno@clisp.org>
49447
49448         Adapt to future versions of Apple GCC.
49449         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49450         Reported by Peter O'Gorman <peter@pogma.com>.
49451
49452 2008-04-11  Bruno Haible  <bruno@clisp.org>
49453
49454         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49455
49456 2008-04-11  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49459
49460         * modules/getaddrinfo-tests (Makefile.am): Define
49461         test_getaddrinfo_LDADD.
49462
49463 2008-04-11  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49466         (init): Fix syntax error.
49467         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49468         is declared.
49469
49470 2008-04-11  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49473         * modules/glob (Depends-on): Add stdbool.
49474
49475 2008-04-11  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/trim.c: Include <string.h>.
49478
49479 2008-04-11  Eric Blake  <ebb9@byu.net>
49480
49481         Avoid compile failure on OS/2.
49482         * lib/regex_internal.h (internal_function): Disable optimization
49483         on OS/2 (__EMX__), where it caused compiler error.
49484         Reported by Elbert Pol.
49485
49486 2008-04-11  Bruno Haible  <bruno@clisp.org>
49487
49488         Flush the standard error stream before aborting. Needed on mingw.
49489         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49490         * tests/test-array_list.c (ASSERT): Likewise.
49491         * tests/test-array_oset.c (ASSERT): Likewise.
49492         * tests/test-avltree_list.c (ASSERT): Likewise.
49493         * tests/test-avltree_oset.c (ASSERT): Likewise.
49494         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49495         * tests/test-binary-io.c (ASSERT): Likewise.
49496         * tests/test-byteswap.c (ASSERT): Likewise.
49497         * tests/test-c-ctype.c (ASSERT): Likewise.
49498         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49499         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49500         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49501         * tests/test-c-strstr.c (ASSERT): Likewise.
49502         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49503         * tests/test-canonicalize.c (ASSERT): Likewise.
49504         * tests/test-carray_list.c (ASSERT): Likewise.
49505         * tests/test-ceilf1.c (ASSERT): Likewise.
49506         * tests/test-ceilf2.c (ASSERT): Likewise.
49507         * tests/test-ceill.c (ASSERT): Likewise.
49508         * tests/test-count-one-bits.c (ASSERT): Likewise.
49509         * tests/test-fbufmode.c (ASSERT): Likewise.
49510         * tests/test-fflush2.c (ASSERT): Likewise.
49511         * tests/test-floorf1.c (ASSERT): Likewise.
49512         * tests/test-floorf2.c (ASSERT): Likewise.
49513         * tests/test-floorl.c (ASSERT): Likewise.
49514         * tests/test-fopen.c (ASSERT): Likewise.
49515         * tests/test-fpending.c (ASSERT): Likewise.
49516         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49517         * tests/test-fpurge.c (ASSERT): Likewise.
49518         * tests/test-freadable.c (ASSERT): Likewise.
49519         * tests/test-freadahead.c (ASSERT): Likewise.
49520         * tests/test-freading.c (ASSERT): Likewise.
49521         * tests/test-freadptr.c (ASSERT): Likewise.
49522         * tests/test-freadptr2.c (ASSERT): Likewise.
49523         * tests/test-freadseek.c (ASSERT): Likewise.
49524         * tests/test-freopen.c (ASSERT): Likewise.
49525         * tests/test-frexp.c (ASSERT): Likewise.
49526         * tests/test-frexpl.c (ASSERT): Likewise.
49527         * tests/test-fseek.c (ASSERT): Likewise.
49528         * tests/test-fseeko.c (ASSERT): Likewise.
49529         * tests/test-fstrcmp.c (ASSERT): Likewise.
49530         * tests/test-ftell.c (ASSERT): Likewise.
49531         * tests/test-ftello.c (ASSERT): Likewise.
49532         * tests/test-func.c (ASSERT): Likewise.
49533         * tests/test-fwritable.c (ASSERT): Likewise.
49534         * tests/test-fwriting.c (ASSERT): Likewise.
49535         * tests/test-getdelim.c (ASSERT): Likewise.
49536         * tests/test-getline.c (ASSERT): Likewise.
49537         * tests/test-i-ring.c (ASSERT): Likewise.
49538         * tests/test-iconv-utf.c (ASSERT): Likewise.
49539         * tests/test-iconv.c (ASSERT): Likewise.
49540         * tests/test-isfinite.c (ASSERT): Likewise.
49541         * tests/test-isnand.c (ASSERT): Likewise.
49542         * tests/test-isnanf.c (ASSERT): Likewise.
49543         * tests/test-isnanl.h (ASSERT): Likewise.
49544         * tests/test-ldexpl.c (ASSERT): Likewise.
49545         * tests/test-linked_list.c (ASSERT): Likewise.
49546         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49547         * tests/test-localename.c (ASSERT): Likewise.
49548         * tests/test-lseek.c (ASSERT): Likewise.
49549         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49550         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49551         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49552         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49553         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49554         * tests/test-mbschr.c (ASSERT): Likewise.
49555         * tests/test-mbscspn.c (ASSERT): Likewise.
49556         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49557         * tests/test-mbspbrk.c (ASSERT): Likewise.
49558         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49559         * tests/test-mbsrchr.c (ASSERT): Likewise.
49560         * tests/test-mbsspn.c (ASSERT): Likewise.
49561         * tests/test-mbsstr1.c (ASSERT): Likewise.
49562         * tests/test-mbsstr2.c (ASSERT): Likewise.
49563         * tests/test-mbsstr3.c (ASSERT): Likewise.
49564         * tests/test-memchr2.c (ASSERT): Likewise.
49565         * tests/test-memmem.c (ASSERT): Likewise.
49566         * tests/test-open.c (ASSERT): Likewise.
49567         * tests/test-printf-frexp.c (ASSERT): Likewise.
49568         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49569         * tests/test-printf-posix.c (ASSERT): Likewise.
49570         * tests/test-quotearg.c (ASSERT): Likewise.
49571         * tests/test-rbtree_list.c (ASSERT): Likewise.
49572         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49573         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49574         * tests/test-round1.c (ASSERT): Likewise.
49575         * tests/test-roundf1.c (ASSERT): Likewise.
49576         * tests/test-roundl.c (ASSERT): Likewise.
49577         * tests/test-signbit.c (ASSERT): Likewise.
49578         * tests/test-sleep.c (ASSERT): Likewise.
49579         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49580         * tests/test-snprintf.c (ASSERT): Likewise.
49581         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49582         * tests/test-stat-time.c (ASSERT): Likewise.
49583         * tests/test-strcasestr.c (ASSERT): Likewise.
49584         * tests/test-strerror.c (ASSERT): Likewise.
49585         * tests/test-striconv.c (ASSERT): Likewise.
49586         * tests/test-striconveh.c (ASSERT): Likewise.
49587         * tests/test-striconveha.c (ASSERT): Likewise.
49588         * tests/test-strsignal.c (ASSERT): Likewise.
49589         * tests/test-strstr.c (ASSERT): Likewise.
49590         * tests/test-strtod.c (ASSERT): Likewise.
49591         * tests/test-trunc1.c (ASSERT): Likewise.
49592         * tests/test-trunc2.c (ASSERT): Likewise.
49593         * tests/test-truncf1.c (ASSERT): Likewise.
49594         * tests/test-truncf2.c (ASSERT): Likewise.
49595         * tests/test-truncl.c (ASSERT): Likewise.
49596         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49597         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49598         * tests/test-vasnprintf.c (ASSERT): Likewise.
49599         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49600         * tests/test-vasprintf.c (ASSERT): Likewise.
49601         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49602         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49603         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49604         * tests/test-vsnprintf.c (ASSERT): Likewise.
49605         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49606         * tests/test-wcwidth.c (ASSERT): Likewise.
49607         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49608         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49609         * tests/test-xvasprintf.c (ASSERT): Likewise.
49610         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49611         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49612         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49613         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49614         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49615         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49616         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49617         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49618         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49619         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49620         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49621         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49622         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49623         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49624         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49625         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49626         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49627         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49628         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49629         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49630         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49631         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49632         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49633         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49634         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49635         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49636         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49637         * tests/unictype/test-combining.c (ASSERT): Likewise.
49638         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49639         * tests/unictype/test-digit.c (ASSERT): Likewise.
49640         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49641         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49642         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49643         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49644         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49645         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49646         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49647         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49648         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49649         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49650         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49651         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49652         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49653         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49654         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49655         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49656         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49657         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49658         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49659         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49660         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49661         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49662         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49663         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49664         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49665         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49666         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49667         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49668         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49669         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49670         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49671         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49672         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49673         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49674         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49675         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49676         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49677         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49678         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49679         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49680         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49681         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49682         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49683         Reported by Eric Blake.
49684
49685 2008-04-11  Bruno Haible  <bruno@clisp.org>
49686
49687         * lib/wchar.in.h: Tweak comment.
49688
49689 2008-04-11  Bruno Haible  <bruno@clisp.org>
49690
49691         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49692         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49693         gl_COMMON.
49694         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49695
49696 2008-04-11  Bruno Haible  <bruno@clisp.org>
49697
49698         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49699
49700 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49701
49702         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49703         of attempting to use non-existing /dev/*random.  Based on patch
49704         from Adam Strzelecki <ono@java.pl> in
49705         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49706
49707 2008-04-08  Bruno Haible  <bruno@clisp.org>
49708
49709         Add tentative support for emx+gcc.
49710         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49711         * lib/fpurge.c (fpurge): Likewise.
49712         * lib/freadable.c (freadable): Likewise.
49713         * lib/freadahead.c (freadahead): Likewise.
49714         * lib/freading.c (freading): Likewise.
49715         * lib/freadptr.c (freadptr): Likewise.
49716         * lib/freadseek.c (freadptrinc): Likewise.
49717         * lib/fseeko.c (rpl_fseeko): Likewise.
49718         * lib/fseterr.c (fseterr): Likewise.
49719         * lib/fwritable.c (fwritable): Likewise.
49720         * lib/fwriting.c (fwriting): Likewise.
49721         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49722
49723 2008-04-09  Eric Blake  <ebb9@byu.net>
49724
49725         Avoid some autoconf warnings.
49726         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49727         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49728         * m4/afs.m4 (gl_AFS): Likewise.
49729         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49730         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49731         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49732         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49733         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49734         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49735         (AC_CHECK_DECLS_ONCE): Likewise.
49736         Rename file...
49737         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49738         gnulib-tool requires autoconf 2.59 or better.
49739         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49740
49741 2008-04-08  Eric Blake  <ebb9@byu.net>
49742
49743         Use 'git describe --match' if present (added in git 1.5.5).
49744         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49745         if possible.
49746
49747 2008-04-08  Bruno Haible  <bruno@clisp.org>
49748
49749         Add tentative support for OpenServer.
49750         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49751         _ptr, _cnt.
49752         * lib/fpurge.c (fpurge): Likewise.
49753         * lib/freadable.c (freadable): Likewise.
49754         * lib/freadahead.c (freadahead): Likewise.
49755         * lib/freading.c (freading): Likewise.
49756         * lib/freadptr.c (freadptr): Likewise.
49757         * lib/freadseek.c (freadptrinc): Likewise.
49758         * lib/fseeko.c (rpl_fseeko): Likewise.
49759         * lib/fseterr.c (fseterr): Likewise.
49760         * lib/fwritable.c (fwritable): Likewise.
49761         * lib/fwriting.c (fwriting): Likewise.
49762         Reported by Roger Cornelius <rac@tenzing.org> and
49763         Brian K. White <brian@aljex.com>.
49764
49765 2008-04-06  Jim Meyering  <meyering@redhat.com>
49766
49767         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49768
49769 2008-04-06  Bruno Haible  <bruno@clisp.org>
49770
49771         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49772         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49773         * tests/test-printf-posix.sh: Likewise.
49774         * tests/test-vfprintf-posix.sh: Likewise.
49775         * tests/test-vprintf-posix.sh: Likewise.
49776         * tests/test-xprintf-posix.sh: Likewise.
49777
49778 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49779
49780         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49781         hide error from 'ls', needed on OS/2.
49782         Report by Elbert Pol <elbert.pol@gmail.com>.
49783
49784 2008-04-04  Eric Blake  <ebb9@byu.net>
49785
49786         Make test-fseeko.c failures meaningful.
49787         * tests/test-fseeko.c: Print line number on failure.
49788         * tests/test-fseek.c: Likewise.
49789         Reported by Nelson H. F. Beebe.
49790
49791         Improve strtod bug detection check.
49792         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49793         required for Solaris 10.
49794         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49795
49796 2008-04-04  Bruno Haible  <bruno@clisp.org>
49797
49798         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49799         by m4/setenv.m4.
49800
49801 2008-04-03  Eric Blake  <ebb9@byu.net>
49802
49803         Ensure sane .version contents.
49804         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49805         version string.
49806         * build-aux/git-version-gen: Improve documentation.
49807
49808         Make GNU make output nicer.
49809         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49810         MAKECMDGOALS to enforce message for all command line targets.  Set
49811         srcdir for use in maint.mk.
49812
49813         Another maintainer tweak.
49814         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49815         a target that regenerates version.
49816
49817 2008-04-03  Jim Meyering  <meyering@redhat.com>
49818
49819         vc-list-files: don't cause coreutils "make po-check" failure
49820         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49821
49822 2008-04-03  Eric Blake  <ebb9@byu.net>
49823
49824         Allow VPATH usage of vc-list-files.
49825         * build-aux/vc-list-files (scriptversion): Add timestamp.
49826         (options): Add --help, --version, -C.
49827         (CVS): Support installed cvsu.
49828
49829 2008-04-02  Bruno Haible  <bruno@clisp.org>
49830
49831         Avoid some "statement with no effect" warnings from gcc.
49832         * tests/test-wctype.c (main): Explicitly ignore unused values.
49833         Reported by Jim Meyering.
49834
49835 2008-04-02  Jim Meyering  <meyering@redhat.com>
49836
49837         Avoid some warnings from "gcc -Wshadow".
49838         * tests/test-frexp.c (exp): Define to a different identifier.
49839         * tests/test-frexpl.c (exp): Likewise.
49840
49841 2008-04-03  Jim Meyering  <meyering@redhat.com>
49842
49843         bootstrap: remove dangling *.[ch] symlinks from lib
49844         * build-aux/bootstrap [dangling symlink removal]: Move find's
49845         -depth option to precede all others, to avoid a warning.
49846         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49847
49848 2008-04-02  Bruno Haible  <bruno@clisp.org>
49849
49850         Avoid some warnings from "gcc -Wshadow".
49851         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49852         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49853         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49854         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49855         Reported by Jim Meyering.
49856
49857 2008-04-01  Bruno Haible  <bruno@clisp.org>
49858
49859         Fix test to work on IRIX 6.5 with cc.
49860         * tests/test-math.c (numeric_equal): New function.
49861         (main): Use it.
49862
49863 2008-04-01  Bruno Haible  <bruno@clisp.org>
49864
49865         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49866
49867 2008-04-01  Bruno Haible  <bruno@clisp.org>
49868
49869         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49870         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49871         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49872         (Depends-on): Remove math.
49873
49874         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49875         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49876         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49877         (Depends-on): Remove math.
49878
49879         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49880         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49881         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49882         (Depends-on): Remove math.
49883         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49884         (Depends-on): Remove math.
49885
49886         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49887         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49888         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49889         (Depends-on): Remove math.
49890         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49891         (Depends-on): Remove math.
49892
49893         * tests/test-round1.c: Include nan.h.
49894         (main): Use NaNd instead of NAN.
49895         * modules/round-tests (Files): Add tests/nan.h.
49896
49897         * tests/test-trunc1.c: Include nan.h.
49898         (main): Use NaNd instead of NAN.
49899         * modules/trunc-tests (Files): Add tests/nan.h.
49900
49901         * tests/test-roundf1.c: Include nan.h.
49902         (main): Use NaNf instead of NAN.
49903         * modules/roundf-tests (Files): Add tests/nan.h.
49904
49905         * tests/test-truncf1.c: Include nan.h.
49906         (main): Use NaNf instead of NAN.
49907         * modules/truncf-tests (Files): Add tests/nan.h.
49908
49909         * tests/test-ceilf1.c: Include nan.h.
49910         (main): Use NaNf instead of NAN.
49911         * modules/ceilf-tests (Files): Add tests/nan.h.
49912
49913         * tests/test-floorf1.c: Include nan.h.
49914         (main): Use NaNf instead of NAN.
49915         * modules/floorf-tests (Files): Add tests/nan.h.
49916
49917         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49918         (main): Use NaNf instead of NAN.
49919         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49920
49921         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49922         (main): Use NaNd instead of NAN.
49923         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49924
49925         * tests/test-frexp.c: Include nan.h.
49926         (main): Use NaNd instead of NAN.
49927         * modules/frexp-tests (Files): Add tests/nan.h.
49928
49929         * lib/isnan.c: Don't include <math.h>.
49930         (FUNC): Don't use NAN macro.
49931         * modules/isnand-nolibm (Depends-on): Remove math.
49932         * modules/isnanf-nolibm (Depends-on): Remove math.
49933         * modules/isnanl (Depends-on): Remove math.
49934         * modules/isnanl-nolibm (Depends-on): Remove math.
49935
49936         * tests/nan.h: New file.
49937
49938 2008-04-01  Eric Blake  <ebb9@byu.net>
49939
49940         Fix typos.
49941         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49942         values to be the right type.
49943
49944         For now, cater to gnulib strtod inaccuracies.
49945         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49946         fractional results.  While not as nice from a QoI perspective, it
49947         is a quicker patch than correctly implementing decimal to binary
49948         rounding.
49949
49950 2008-03-31  Eric Blake  <ebb9@byu.net>
49951
49952         Guarantee a definition of NAN.
49953         * lib/math.in.h (NAN): Define if missing.
49954         * tests/test-math.c (main): Test it.
49955         * doc/posix-headers/math.texi (math.h): Document this.
49956         * lib/isnan.c (rpl_isnand): Use it.
49957         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49958         * tests/test-floorf1.c (NaN): Likewise.
49959         * tests/test-frexp.c (NaN): Likewise.
49960         * tests/test-isnand.c (NaN): Likewise.
49961         * tests/test-isnanf.c (NaN): Likewise.
49962         * tests/test-round1.c (NaN): Likewise.
49963         * tests/test-roundf1.c (NaN): Likewise.
49964         * tests/test-snprintf-posix.h (NaN): Likewise.
49965         * tests/test-sprintf-posix.h (NaN): Likewise.
49966         * tests/test-trunc1.c (NaN): Likewise.
49967         * tests/test-truncf1.c (NaN): Likewise.
49968         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49969         * tests/test-vasprintf-posix.c (NaN): Likewise.
49970         * modules/isnand-nolibm (Depends-on): Add math.
49971         * modules/isnanf-nolibm (Depends-on): Likewise.
49972         * modules/isnanl (Depends-on): Likewise.
49973         * modules/isnanl-nolibm (Depends-on): Likewise.
49974         * modules/snprintf-posix-tests (Depends-on): Likewise.
49975         * modules/sprintf-posix-tests (Depends-on): Likewise.
49976         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49977         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49978         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49979         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49980
49981 2008-03-31  Bruno Haible  <bruno@clisp.org>
49982
49983         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49984         * doc/posix-functions/strtod.texi: Likewise.
49985
49986 2008-03-31  Bruno Haible  <bruno@clisp.org>
49987
49988         * tests/test-strtod.c (main): Don't use C99 syntax.
49989
49990 2008-03-31  Bruno Haible  <bruno@clisp.org>
49991
49992         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49993         Reported by Eric Blake.
49994
49995 2008-03-31  Jim Meyering  <meyering@redhat.com>
49996
49997         Don't compare actual signbit return values.
49998         * tests/test-strtod.c (main): Rather, compare only their
49999         zero/non-zero nature.
50000
50001 2008-03-31  Eric Blake  <ebb9@byu.net>
50002
50003         More strtod documentation.
50004         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50005         failures as distinct bugs.
50006
50007 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50008
50009         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50010         Problem reported by Erik Benada in
50011         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50012
50013 2008-03-30  Bruno Haible  <bruno@clisp.org>
50014
50015         * tests/test-strtod.c: Add comments about which assertion fails on which
50016         platform.
50017         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50018
50019 2008-03-30  Eric Blake  <ebb9@byu.net>
50020
50021         Test signbit behavior on zeros.
50022         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50023         (test_signbitd, test_signbitl): Likewise.
50024
50025         More strtod touchups.
50026         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50027         sign of negative underflow, for now.  Use .5, not .1.
50028         * doc/posix-functions/strtod.texi (strtod): Mention these
50029         limitations.
50030         Reported by Jim Meyering.
50031
50032 2008-03-30  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50035         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50036
50037 2008-03-30  Bruno Haible  <bruno@clisp.org>
50038
50039         Avoid failure when attempting to return empty iconv results on some
50040         platforms.
50041         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50042         allocation, don't report ENOMEM when the resulting string is empty.
50043
50044 2008-03-30  Bruno Haible  <bruno@clisp.org>
50045
50046         Fix buffer overrun.
50047         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50048         Don't consider the width for tmp_length. Check count against tmp_length
50049         before doing the padding. Ensure enough allocation during padding.
50050
50051 2008-03-30  Eric Blake  <ebb9@byu.net>
50052
50053         strtod touchups.
50054         * lib/strtod.c (strtod): Avoid compiler warnings.
50055         Reported by Jim Meyering.
50056
50057 2008-03-30  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50060         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50061         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50062         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50063         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50064         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50065         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50066         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50067
50068         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50069         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50070         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50071         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50072         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50073         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50074         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50075         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50076
50077         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50078         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50079         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50080         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50081         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50082         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50083         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50084         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50085
50086         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50087         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50088
50089         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50090         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50091
50092         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50093         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50094
50095         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50097         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50098
50099         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50101         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50102
50103         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50105         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50106
50107         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50109         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50110
50111         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50112         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50113         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50114         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50115         (Depends-on): Add EOVERFLOW.
50116         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50117         (Depends-on): Add EOVERFLOW.
50118         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50119         (Depends-on): Add EOVERFLOW.
50120         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50121         (Depends-on): Add EOVERFLOW.
50122         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50123         (Depends-on): Add EOVERFLOW.
50124         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50125         (Depends-on): Add EOVERFLOW.
50126         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50127         (Depends-on): Add EOVERFLOW.
50128         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50129         (Depends-on): Add EOVERFLOW.
50130
50131         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50132         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50133         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50134
50135         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50137         * modules/snprintf (Depends-on): Add EOVERFLOW.
50138
50139         * lib/poll.c (EOVERFLOW): Remove fallback.
50140         * modules/poll (Depends-on): Add EOVERFLOW.
50141
50142         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50143         * modules/getugroups (Depends-on): Add EOVERFLOW.
50144
50145         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50146         * modules/getdelim (Depends-on): Add EOVERFLOW.
50147
50148         * lib/ftell.c (EOVERFLOW): Remove fallback.
50149         * modules/ftell (Depends-on): Add EOVERFLOW.
50150
50151         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50153         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50154
50155         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50156
50157         * modules/EOVERFLOW-tests: New file.
50158         * tests/test-EOVERFLOW.c: New file.
50159
50160         * modules/EOVERFLOW: New file.
50161         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50162
50163 2008-03-30  Bruno Haible  <bruno@clisp.org>
50164
50165         Fix bug introduced on 2007-06-10.
50166         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50167         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50168
50169 2008-03-30  Bruno Haible  <bruno@clisp.org>
50170
50171         Improve freadseek's efficiency after ungetc.
50172         * lib/freadseek.c: Include freadahead.h.
50173         (freadptrinc): New function, extracted from freadseek.
50174         (freadseek): Use it in a loop. Use freadahead to determine the number
50175         of loop iterations.
50176         * modules/freadseek (Depends-on): Add freadahead.
50177         (configure.ac): Require AC_C_INLINE.
50178
50179 2008-03-30  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/freadseek.c (freadseek): Don't ignore the return value of
50182         freadptr.
50183
50184 2008-03-29  Eric Blake  <ebb9@byu.net>
50185
50186         Add hex float support.
50187         * modules/strtod (Depends-on): Add c-ctype.
50188         (Link): Mention POW_LIB.
50189         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50190         whitespace between 'e' and exponent.
50191         * tests/test-strtod.c (main): Enable hex float tests.
50192         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50193         now provides.
50194
50195         Document various strtod bugs, with some fixes.
50196         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50197         "-0x", "inf", "nan", and hex constants.
50198         * doc/posix-functions/atof.texi (atof): Likewise.
50199         * modules/stdlib (Makefile.am): Support strtod.
50200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50201         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50202         detect additional strtod bugs.
50203         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50204         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50205         bool where appropriate.  Parse 'inf' and 'nan'.
50206         * tests/test-strtod.c: New file.
50207         * modules/strtod (Depends-on): Add stdbool, stdlib.
50208         (configure.ac): Turn on module indicator.
50209         * modules/strtod-tests: New module.
50210
50211 2008-03-29  Eric Blake  <ebb9@byu.net>
50212
50213         Fix ftell on mingw.
50214         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50215         * modules/ftell-tests (Depends-on): Add binary-io.
50216         * modules/ftello-tests (Depends-on): Likewise.
50217         * tests/test-ftell.c (main): Enhance test to cover behavior after
50218         ungetc.  Enforce binary mode.
50219         * tests/test-ftello.c (main): Likewise.
50220
50221         Pass test-freadseek on cygwin.
50222         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50223         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50224         ungetc buffer.
50225
50226         * tests/test-fflush2.c (main): Fix typo.
50227
50228 2008-03-29  Bruno Haible  <bruno@clisp.org>
50229
50230         * tests/test-fflush2.c (main): Temporarily disable the contents of
50231         this test.
50232         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50233         Reported by Eric Blake.
50234
50235 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50236
50237         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50238         (GC_SHA224_DIGEST_SIZE): Add.
50239
50240         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50241         (gc_hash_digest_length): Likewise.
50242         (gc_hash_buffer): Likewise.
50243
50244 2008-03-25  Bruno Haible  <bruno@clisp.org>
50245
50246         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50247         detail which gettext release to use.
50248         Reported by Simon Josefsson.
50249
50250 2008-03-26  Jim Meyering  <meyering@redhat.com>
50251
50252         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50253         * modules/gnumakefile (clean-GNUmakefile): Also, use
50254         test ... && ... || : syntax rather than if-then ... fi.
50255
50256         gnumakefile: Don't double-quote-expand $(VPATH) value.
50257         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50258
50259 2008-03-24  Eric Blake  <ebb9@byu.net>
50260
50261         Alter GNUmakefile to install into top directory.
50262         * modules/maintainer-makefile: Split, and add dependency...
50263         * modules/gnumakefile: to this new module.
50264         * build-aux/GNUmakefile: Move...
50265         * top/GNUmakefile: ...here.
50266         * build-aux/maint.mk: Move...
50267         * top/maint.mk: ...here.
50268         * MODULES.html.sh (Support for maintaining...): Document new
50269         module.
50270
50271 2008-03-23  Bruno Haible  <bruno@clisp.org>
50272
50273         * gnulib-tool: New options --vc-files, --no-vc-files.
50274         (func_usage): Document them.
50275         (vc_files): New variable.
50276         (func_import): Consider vc_files.
50277         (func_create_testdir): Set vc_files to empty.
50278         Suggested by Jim Meyering and Karl Berry.
50279
50280 2008-03-23  Bruno Haible  <bruno@clisp.org>
50281
50282         Fix regex compilation error on HP-UX 11.
50283         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50284         * modules/regex (Files): Add m4/mbstate_t.m4.
50285         Reported by Ton Voon <ton.voon@altinity.com>.
50286
50287 2008-03-23  Bruno Haible  <bruno@clisp.org>
50288
50289         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50290
50291 2008-03-23  Eric Blake  <ebb9@byu.net>
50292             Bruno Haible  <bruno@clisp.org>
50293
50294         Install files from top/ in the destination directory.
50295         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50296         augmentation also for the files from top/.
50297         (func_import, func_create_testdir): Rewrite file names:
50298         top/filename -> filename.
50299
50300 2008-03-23  Bruno Haible  <bruno@clisp.org>
50301
50302         Tweak "gnulib --version" output.
50303         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50304
50305 2008-03-23  Bruno Haible  <bruno@clisp.org>
50306
50307         Tweak "gnulib --version" output.
50308         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50309         rather than contents of ChangeLog, when possible.
50310
50311 2008-03-21  Eric Blake  <ebb9@byu.net>
50312
50313         More --version tweaks.
50314         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50315         date of last ChangeLog entry.
50316
50317 2008-03-21  Jim Meyering  <meyering@redhat.com>
50318
50319         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50320
50321 2008-03-20  Eric Blake  <ebb9@byu.net>
50322
50323         VPATH fix.
50324         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50325
50326 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50327
50328         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50329         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50330
50331 2008-03-20  Eric Blake  <ebb9@byu.net>
50332
50333         Sync GNUmakefile with coreutils.
50334         * build-aux/GNUmakefile (have-Makefile): Rename...
50335         (_have-Makefile): ...to this, for namespace consideration.
50336         (GNUmakefile.cfg): Include, if present.
50337         (_autoreconf): Define a default.
50338         (_is-dist-target): New rule for rebuilds to pick up intra-release
50339         version.
50340         (maint-cfg.mk): Rename...
50341         (cfg.mk): ...to this.
50342
50343 2008-03-18  Jim Meyering  <meyering@redhat.com>
50344
50345         New script and module: mktempd
50346         * MODULES.html.sh (maint+release support): Add mktempd.
50347         * build-aux/mktempd: New file.
50348         * modules/mktempd: New file.
50349
50350 2008-03-15  Jim Meyering  <meyering@redhat.com>
50351
50352         Undo last change.
50353         * lib/sha1.c, lib/md5.c: 63 != ~63.
50354         Reported by Andreas Schwab.
50355
50356         sha1.c, md5.c: Hoist a redundant expression.
50357         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50358         "ctx->buflen" only once, before calling *_process_block.
50359         * lib/md5.c (md5_process_bytes): Likewise.
50360
50361 2008-03-14  Eric Blake  <ebb9@byu.net>
50362
50363         Bump copyright year in files generated by gnulib-tool.
50364         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50365         gnulib-tool, rather than hard-coding it.
50366
50367         Fix 'gnulib-tool --version' output to work with git.
50368         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50369         (startup): ...here.
50370         (func_version): Use it to invoke git-version-gen, rather than
50371         relying on CVS keyword expansion.  Modernize wording.
50372         (cvsdatestamp, last_checkin_date, version): Kill unused
50373         variables.
50374
50375 2008-03-12  Jim Meyering  <meyering@redhat.com>
50376
50377         Recognize optional cast of the argument to free.
50378         * build-aux/useless-if-before-free: Update regexps.
50379
50380         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50381
50382 2008-03-11  Bruno Haible  <bruno@clisp.org>
50383
50384         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50385         by a single package.
50386         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50387         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50388         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50389         Reported by Sam Steingold <sds@gnu.org>.
50390
50391 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50392
50393         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50394         repositories.
50395
50396 2008-03-11  Bruno Haible  <bruno@clisp.org>
50397
50398         Avoid conflicts between local macro definitions.
50399         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50400         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50401
50402 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50403             Bruno Haible  <bruno@clisp.org>
50404
50405         Make va_copy work with some version of xlc on AIX 5.1.
50406         * lib/stdarg.in.h: New file.
50407         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50408         On AIX, use a <stdarg.h> file substitute.
50409         * modules/stdarg (Files): Add lib/stdarg.in.h.
50410         (Depends-on): Add include_next.
50411         (Makefile.am): Build a stdarg.h substitute if requested.
50412         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50413
50414 2008-03-10  Bruno Haible  <bruno@clisp.org>
50415
50416         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50417         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50418         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50419
50420 2008-03-10  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/stdlib (Depends-on): Add include_next, remove
50423         absolute-header.
50424
50425 2008-03-09  Bruno Haible  <bruno@clisp.org>
50426
50427         * lib/freadahead.h (freadahead): Document more precisely.
50428         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50429         the sum of both buffer sizes.
50430         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50431         * NEWS: Document the change.
50432
50433 2008-03-09  Bruno Haible  <bruno@clisp.org>
50434
50435         Extend freadptr to return also the buffer size.
50436         * lib/freadptr.h (freadptr): Add sizep argument.
50437         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50438         (freadptr): Add sizep argument. Determine buffer size like freadahead
50439         does.
50440         * tests/test-freadptr.c: Don't include freadahead.h.
50441         (main): Adapt for new calling convention of freadptr.
50442         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50443         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50444         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50445         tests/test-freadptr2.sh.
50446         (Depends): Remove freadahead.
50447         (TESTS): Add test-freadptr2.sh.
50448         (check_PROGRAMS): Add test-freadptr2.
50449
50450 2008-03-09  Bruno Haible  <bruno@clisp.org>
50451
50452         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50453         Report and solution by Simon Josefsson.
50454
50455 2008-03-06  Bruno Haible  <bruno@clisp.org>
50456
50457         Make fflush after ungetc work on BSD platforms.
50458         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50459         * tests/test-fflush2.c: New file.
50460         * tests/test-fflush2.sh: New file.
50461         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50462         tests/test-fflush2.c.
50463         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50464         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50465
50466 2008-03-06  Eric Blake  <ebb9@byu.net>
50467
50468         Likewise for ftello.
50469         * modules/ftello (Dependencies): Add extensions.
50470         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50471
50472 2008-03-06  Bruno Haible  <bruno@clisp.org>
50473
50474         * modules/fseeko (Dependencies): Add extensions.
50475         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50476         Needed on glibc systems.
50477
50478 2008-03-06  Bruno Haible  <bruno@clisp.org>
50479
50480         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50481         email address.
50482         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50483
50484 2008-03-06  Bruno Haible  <bruno@clisp.org>
50485
50486         * users.txt: Add libgnupdf.
50487
50488 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50489
50490         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50491         (Header File Substitutes, Function Substitutes,
50492         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50493         (Build robot for gnulib): Fix typo.
50494
50495 2008-03-06  Bruno Haible  <bruno@clisp.org>
50496
50497         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50498         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50499
50500 2008-03-06  Bruno Haible  <bruno@clisp.org>
50501
50502         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50503         * doc/gnulib.texi: Include it.
50504
50505 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50506
50507         * modules/func (License): Change license to unlimited; there was
50508         no LGPL parts in the module anyway.
50509
50510 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50511
50512         * modules/__func__: Renamed to modules/func.
50513         * modules/__func__-tests: Renamed to modules/func-tests.
50514         * tests/test-__func__.c: Renamed to tests/test-func.c.
50515         * m4/__func__.m4: Renamed to m4/func.m4.
50516         * doc/gnulib.texi (__func__): Section renamed to func.
50517         Suggested by Eric Blake <ebb9@byu.net>.
50518
50519 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50520
50521         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50522         about __func__.  Make example self-contained.  Suggested by Eric
50523         Blake <ebb9@byu.net>.
50524
50525         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50526         Suggested by Eric Blake <ebb9@byu.net>.
50527
50528 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50529
50530         * modules/__func__: New file.
50531         * modules/__func__-tests: New file.
50532         * tests/test-__func__.c: New file.
50533         * m4/__func__.m4: New file.
50534         * doc/gnulib.texi (__func__): Document __func__ module.
50535
50536 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50537
50538         * modules/byteswap (License): Re-license as LGPLv2+.
50539
50540 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50541
50542         * doc/Makefile: Add pdf target.
50543
50544 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50545
50546         * modules/inline (License): Use 'unlimited', since there are only
50547         *.m4 files in this module.
50548
50549 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50550             Bruno Haible  <bruno@clisp.org>
50551
50552         Add support for HP C 7.1 on OpenVMS 8.3.
50553         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50554
50555 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50556
50557         Update VMS specifics.
50558         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50559
50560 2008-03-02  Jim Meyering  <meyering@redhat.com>
50561
50562         Remove the last dependency on the "free" module.
50563         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50564         Reported by Bob Proulx.
50565
50566         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50567
50568         Remove useless "if" tests before free.  Deprecate "free" module.
50569         * doc/posix-functions/free.texi: Mention that this
50570         module is no longer useful.
50571         * modules/free (Notice): Say this module is obsolete.
50572         * modules/readutmp (Depends-on): Remove free.
50573         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50574         * lib/putenv.c (putenv): Likewise.
50575         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50576         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50577         * tests/test-c-strcasestr.c (main): Likewise.
50578         * tests/test-c-strstr.c (main): Likewise.
50579         * tests/test-mbscasestr1.c (main): Likewise.
50580         * tests/test-mbscasestr2.c (main): Likewise.
50581         * tests/test-mbsstr1.c (main): Likewise.
50582         * tests/test-mbsstr2.c (main): Likewise.
50583         * tests/test-memmem.c (main): Likewise.
50584         * tests/test-strcasestr.c (main): Likewise.
50585         * tests/test-striconv.c (main): Likewise.
50586         * tests/test-striconveh.c (main): Likewise.
50587         * tests/test-striconveha.c (main): Likewise.
50588         * tests/test-strstr.c (main): Likewise.
50589
50590         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50591
50592         bootstrap: sync from coreutils again
50593         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50594
50595 2008-03-01  Jim Meyering  <meyering@redhat.com>
50596
50597         bootstrap: sync from coreutils
50598         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50599         also when the target doesn't exist.
50600
50601 2008-03-01  Eric Blake  <ebb9@byu.net>
50602
50603         Fix bugs in last patch.
50604         * lib/memchr2.c (memchr2): Fix typo.
50605         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50606         extension.
50607         Reported by Bruce Korb.
50608
50609         New module 'memchr2'.
50610         * modules/memchr2: New file.
50611         * modules/memchr2-tests: Likewise.
50612         * lib/memchr2.h: Likewise.
50613         * lib/memchr2.c: Likewise, based on memchr.c.
50614         * tests/test-memchr2.c: New test.
50615         * MODULES.html.sh (String handling): Add memchr2.
50616
50617 2008-02-29  Bruno Haible  <bruno@clisp.org>
50618
50619         * modules/freadseek-tests: New file.
50620         * tests/test-freadseek.sh: New file.
50621         * tests/test-freadseek.c: New file.
50622
50623         New module 'freadseek'.
50624         * modules/freadseek: New file.
50625         * lib/freadseek.h: New file.
50626         * lib/freadseek.c: New file.
50627         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50628
50629 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50630
50631         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50632         wydawca.
50633
50634         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50635         program_invocation_name and program_invocation_short_name are
50636         present.
50637
50638 2008-02-28  Bruno Haible  <bruno@clisp.org>
50639
50640         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50641         * tests/test-freadptr.sh: Also test non-seekable stdin.
50642
50643 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50644
50645         * build-aux/bootstrap (source_base, m4_base)
50646         (doc_base, tests_base): New variables.
50647         (gnulib_tool_options): Do not hardcode base directories, use
50648         the above variables instead.
50649
50650 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50651
50652         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50653
50654 2008-02-28  Bruno Haible  <bruno@clisp.org>
50655
50656         * modules/freadptr-tests: New file.
50657         * tests/test-freadptr.sh: New file.
50658         * tests/test-freadptr.c: New file.
50659
50660         New module 'freadptr'.
50661         * modules/freadptr: New file.
50662         * lib/freadptr.h: New file.
50663         * lib/freadptr.c: New file.
50664         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50665
50666 2008-02-26  Karl Berry  <karl@freefriends.org>
50667
50668         Sync from Libtool:
50669         * libltdl/argz.c (argz_add, argz_count): New functions.
50670         * libltdl/argz.in.h: Declare them.
50671         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50672
50673 2008-02-22  Bruno Haible  <bruno@clisp.org>
50674
50675         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50676         is a pointer type.  Needed for HP-UX 10.
50677         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50678         * doc/posix-functions/gmtime_r.texi: Likewise.
50679         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50680
50681 2008-02-24  Bruno Haible  <bruno@clisp.org>
50682
50683         * modules/environ-tests: New file.
50684         * tests/test-environ.c: New file.
50685
50686         New module 'environ'.
50687         * modules/environ: New file.
50688         * lib/unistd.in.h (environ): New declaration.
50689         * m4/environ.m4: New file.
50690         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50691         after use.
50692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50693         HAVE_DECL_ENVIRON.
50694         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50695         HAVE_DECL_ENVIRON.
50696         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50697         wrong claim that 'environ' is missing on some systems.
50698         * modules/execute (Depends-on): Add environ.
50699         * lib/execute.c (environ): Remove fallback declaration.
50700         * modules/pipe (Depends-on): Add environ.
50701         * lib/pipe.c (environ): Remove fallback declaration.
50702         * modules/setenv (Depends-on): Add environ.
50703         * lib/setenv.c (environ): Remove fallback declaration.
50704         * modules/unsetenv (Depends-on): Add environ.
50705         * lib/unsetenv.c (environ): Remove fallback declaration.
50706         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50707         m4/environ.m4.
50708         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50709         (gl_PREREQ_UNSETENV): Likewise.
50710
50711 2008-02-24  Bruno Haible  <bruno@clisp.org>
50712
50713         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50714
50715 2008-02-20  Bob Proulx  <bob@proulx.com>
50716
50717         Enable use of older two part flavor 'git describe'.
50718         * build-aux/git-version-gen: If using the older two part flavor of
50719         git version then recreate the third part now present in the
50720         newer three part flavor of git describe.
50721
50722 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50723
50724         * lib/fts.c (fts_build): Typo correction to comment.
50725
50726 2008-02-17  Bruno Haible  <bruno@clisp.org>
50727
50728         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50729         generating no-op conflicts.
50730
50731 2008-02-17  Bruno Haible  <bruno@clisp.org>
50732
50733         Speed up by 10%.
50734         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50735         result_entries, rather than an index-based loop.
50736
50737 2008-02-17  Bruno Haible  <bruno@clisp.org>
50738
50739         Speed up by 25%.
50740         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50741         'hashcode_cached'.
50742         (entry_create): New function.
50743         (entry_hashcode): Use the cached hashcode if possible.
50744         (read_changelog_file, try_split_merged_entry): Use entry_create.
50745
50746 2008-02-17  Bruno Haible  <bruno@clisp.org>
50747
50748         Speed up from O(n^2) to O(n) for long ChangeLog files.
50749         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50750         (read_changelog_file): Change implementation of entries_reversed list
50751         to rbtreehash.
50752         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50753
50754 2008-02-17  Bruno Haible  <bruno@clisp.org>
50755
50756         New option --split-merged-entry.
50757         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50758         (find_paragraph_end, try_split_merged_entry): New functions.
50759         (long_options): Add option --split-merged-entry.
50760         (usage): Document option --split-merged-entry.
50761         (main): Implement option --split-merged-entry.
50762         Reported by Eric Blake.
50763
50764 2008-02-17  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/git-merge-changelog.c: Include c-strstr.h.
50767         (main): Support the "git pull --rebase" situation.
50768         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50769         Reported by Eric Blake.
50770
50771 2008-02-16  Eric Blake  <ebb9@byu.net>
50772
50773         Avoid doubling \ in common case of "c-maybe" quoting style.
50774         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50775         eliding outer quotes.
50776         * lib/quotearg.h: Document this.
50777         * tests/test-quotearg.c (result_strings, inputs, results_g)
50778         (flag_results, locale_results): Test it by adding a new string to
50779         each test group.
50780         (compare_strings): Test new string.
50781
50782 2008-02-13  Eric Blake  <ebb9@byu.net>
50783
50784         Avoid trigraph quoting in default output.
50785         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50786         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50787         unless explicitly requested.
50788         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50789
50790 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50791
50792         Don't rely on signed integer overflowing to negative value.
50793         * lib/getugroups.c (getugroups): Include <limits.h>.
50794         Instead, compare against INT_MAX, and increment only if the test passes.
50795
50796 2008-02-13  Jim Meyering  <meyering@redhat.com>
50797         and Eric Blake  <ebb9@byu.net>
50798
50799         Avoid shadowing warning and compile errors on Linux.
50800         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50801         forwarding macros on Linux.
50802         (dcgettext): Define a stub, for Linux.
50803         (results_g, main): Avoid warnings.
50804
50805 2008-02-12  Eric Blake  <ebb9@byu.net>
50806
50807         Silence warning in last patch.
50808         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50809
50810         Quotearg part 4: add tests, fix c-maybe colon quoting.
50811         * lib/quotearg.h: Improve documentation.
50812         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50813         escapes when adding outer quotes.  When quoting trigraphs, use
50814         valid C notation.  When quoting NUL, omit extra characters if next
50815         character is not digit.  Alter prototype.
50816         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50817         callers.
50818         * modules/quotearg-tests: New module.
50819         * tests/test-quotearg.c: New test.
50820
50821 2008-02-07  Eric Blake  <ebb9@byu.net>
50822
50823         Quotearg part 3: add flag to control outer quote elision.
50824         * lib/quotearg.h (c_maybe_quoting_style): New style.
50825         (enum quoting_flags): Better documentation of flags.
50826         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50827         c-maybe style.
50828         (quotearg_buffer_restyled): Handle new flag to elide outer
50829         quotes.
50830
50831         Quotearg part 2: add flag that can control NUL elision.
50832         * lib/quotearg.h (set_quoting_flags): New prototype.
50833         * lib/quotearg.c (struct quoting_options): Add flag field.
50834         (set_quoting_flags): New function.
50835         (quotearg_buffer_restyled): Add flags parameter.
50836         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50837         (quotearg_n_options): Set the flag, since length cannot be
50838         returned.
50839         (quoting_options_from_style): Default flags correctly.
50840
50841         Quotearg part 1: more wrappers, restore quotearg_char state.
50842         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50843         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50844         (quotearg_colon_mem): New wrappers.
50845         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50846         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50847         functions.
50848         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50849         (quotearg_colon_mem): New functions.
50850
50851 2008-02-11  Bruno Haible  <bruno@clisp.org>
50852
50853         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50854         library in the current directory: it does not work with parallel make.
50855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50856
50857 2008-02-11  Bruno Haible  <bruno@clisp.org>
50858
50859         * .gitattributes: New file.
50860
50861 2008-02-11  Jim Meyering  <meyering@redhat.com>
50862
50863         useless-if-before-free: Fix reversed exit values.
50864         * build-aux/useless-if-before-free: Use correct values
50865         for EXIT_MATCH and EXIT_NO_MATCH.
50866
50867         * build-aux/useless-if-before-free: Close stdout carefully.
50868
50869 2008-02-10  Bruno Haible  <bruno@clisp.org>
50870
50871         New module 'git-merge-changelog'.
50872         * modules/git-merge-changelog: New file.
50873         * lib/git-merge-changelog.c: New file.
50874
50875 2008-02-10  Jim Meyering  <meyering@redhat.com>
50876
50877         useless-if-before-free: New option: --list (-l).
50878
50879         useless-if-before-free: Don't exit immediately upon open failure.
50880         * build-aux/useless-if-before-free: Exit 2 for errors.
50881         Upon failure to open a file, don't exit immediately.
50882         Rather, just warn and continue with any remaining files.
50883
50884 2008-02-10  Bruno Haible  <bruno@clisp.org>
50885
50886         New abstract list operation 'node_set_value'.
50887         * lib/gl_list.h (gl_list_node_set_value): New function.
50888         (struct gl_list_implementation): New field node_set_value.
50889         * lib/gl_list.c (gl_list_node_set_value): New function.
50890         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50891         (gl_array_list_implementation): Update.
50892         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50893         (gl_carray_list_implementation): Update.
50894         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50895         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50896         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50897         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50898         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50899         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50900         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50901         Update.
50902         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50903         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50904         (gl_sublist_list_implementation): Update.
50905
50906 2008-02-10  Bruno Haible  <bruno@clisp.org>
50907
50908         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50909         Needed when ELEMENT is #defined to 'some_type *'.
50910
50911 2008-02-10  Jim Meyering  <meyering@redhat.com>
50912
50913         New script and module: useless-if-before-free
50914         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50915         * build-aux/useless-if-before-free: New file.
50916         * modules/useless-if-before-free: New file.
50917
50918         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50919
50920         xstrtol_error: Fix typo.
50921         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50922         s/exit_failure/exit_status/.
50923
50924 2008-02-09  Jim Meyering  <meyering@redhat.com>
50925
50926         New script and module: gitlog-to-changelog
50927         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50928         * modules/gitlog-to-changelog: New file.
50929         * build-aux/gitlog-to-changelog: New file.
50930
50931 2008-02-08  Jim Meyering  <meyering@redhat.com>
50932
50933         Avoid two "parameter unused" warnings.
50934         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50935         Mark "st" as used.
50936
50937         Use "git COMMAND", not "git-COMMAND".
50938         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50939         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50940         * build-aux/git-version-gen: Use "git status", not "git-status".
50941
50942 2008-02-07  Bruno Haible  <bruno@clisp.org>
50943
50944         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50945         Avoids a crash on Windows Vista.
50946         Reported by Adam Strzelecki <ono@java.pl> via
50947         Simon Josefsson <simon@josefsson.org>.
50948
50949 2008-02-06  Bruno Haible  <bruno@clisp.org>
50950
50951         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50952         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50953         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50955         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50957         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50958         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50960         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50961         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50962         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50963         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50964         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50965         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50966         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50967         left-adjust flag.
50968         * tests/test-snprintf-posix.h (test_function): Likewise.
50969         * tests/test-sprintf-posix.h (test_function): Likewise.
50970         * tests/test-vasprintf-posix.c (test_function): Likewise.
50971         * doc/posix-functions/fprintf.texi: Update.
50972         * doc/posix-functions/printf.texi: Update.
50973         * doc/posix-functions/snprintf.texi: Update.
50974         * doc/posix-functions/sprintf.texi: Update.
50975         * doc/posix-functions/vfprintf.texi: Update.
50976         * doc/posix-functions/vprintf.texi: Update.
50977         * doc/posix-functions/vsnprintf.texi: Update.
50978         * doc/posix-functions/vsprintf.texi: Update.
50979         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50980
50981 2008-02-06  Bruno Haible  <bruno@clisp.org>
50982
50983         Fix bug introduced on 2008-01-26.
50984         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50985
50986 2008-02-06  Bruno Haible  <bruno@clisp.org>
50987
50988         Fix bug introduced on 2007-06-10.
50989         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50990         !NEED_PRINTF_FLAG_ZERO.
50991
50992 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50993
50994         getloadavg: use libperfstat on AIX5
50995         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50996
50997 2008-02-03  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/diffseq.h: Add comments about required #includes.
51000         Reported by Michael Biggs <gnulib@doubleplum.net>.
51001
51002 2008-02-01  Bruno Haible  <bruno@clisp.org>
51003
51004         * users.txt: Add gnuit.
51005
51006 2008-01-31  Bruno Haible  <bruno@clisp.org>
51007
51008         * lib/md4.c (set_uint32): Mark as inline.
51009         * lib/md5.c (set_uint32): Likewise.
51010         * lib/sha1.c (set_uint32): Likewise.
51011         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51012         * m4/md5.m4 (gl_MD5): Likewise.
51013         * m4/sha1.m4 (gl_SHA1): Likewise.
51014
51015 2008-01-31  Jim Meyering  <meyering@redhat.com>
51016
51017         Use "sizeof VAR", rather than a literal "4".
51018         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51019         * lib/md4.c (md4_read_ctx): Likewise.
51020         * lib/sha1.c (sha1_read_ctx): Likewise.
51021
51022 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51023
51024         * tests/test-sha1.c: New file, based on test-md5.c.
51025
51026         * modules/crypto/sha1-tests: New file.
51027
51028 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51029
51030         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51031
51032 2008-01-31  Jim Meyering  <meyering@redhat.com>
51033
51034         Prefer "sizeof v" over the equivalent "4".
51035         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51036         * lib/md5.c (set_uint32): Likewise.
51037         * lib/sha1.c (set_uint32): Likewise.
51038
51039 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51040
51041         * lib/sha1.c (set_uint32): Mark function as static.
51042
51043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51044
51045         md2: clarify comments to say that alignment is not required.
51046         * lib/md2.h: Remove warning about alignment in comment.
51047         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51048         never been required.
51049
51050 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51051
51052         md4: adapt alignment constraint fix from sha1.
51053         * lib/md4.c (set_uint32): New function, from sha1.c
51054         (md4_read_ctx): Use it.
51055         (md4_finish_ctx): Doc fix.
51056         * lib/md4.h: Doc fix.
51057
51058 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51059
51060         md5: adapt alignment constraint fix from sha1.
51061         * lib/md5.c (set_uint32): New function, from sha1.c
51062         (md5_read_ctx): Use it.
51063         (md5_finish_ctx): Doc fix.
51064         * lib/md5.h: Doc fix.
51065
51066 2008-01-30  Peter Palfrader  <weasel@debian.org>
51067
51068         sha1: remove the result buffer alignment constraint
51069         * lib/sha1.c (set_uint32): New function.
51070         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51071         constraint.
51072         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51073         * lib/sha1.h: Likewise.
51074
51075 2008-01-30  Andreas Schwab  <schwab@suse.de>
51076             Bruno Haible  <bruno@clisp.org>
51077
51078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51079         correct definition of LDBL_MIN_EXP.
51080
51081 2008-01-30  Karl Berry  <karl@gnu.org>
51082
51083         * config/srclist-update: try to preserve x bit on updates.
51084         * config/srclistvars.sh: update for karl.
51085
51086 2008-01-29  Jim Meyering  <meyering@redhat.com>
51087
51088         vasnprintf.c: Avoid warning about unused label
51089         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51090         "overflow" label definition and associated code with the
51091         same cpp condition that guards the sole use of that label.
51092
51093 2008-01-26  Bruno Haible  <bruno@clisp.org>
51094
51095         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51096         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51097         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51098         * lib/isnanl-nolibm.h (isnanl): Likewise.
51099         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51100
51101 2008-01-26  Bruno Haible  <bruno@clisp.org>
51102
51103         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51104         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51105
51106 2008-01-26  Bruno Haible  <bruno@clisp.org>
51107
51108         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51109         GCC >= 4.0 built-in.
51110         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51111
51112 2008-01-26  Bruno Haible  <bruno@clisp.org>
51113
51114         Rename isnan, applicable to 'double' only, to isnand.
51115         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51116         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51117         (configure.ac): Update.
51118         (Include): Replace "isnan.h" with "isnand.h".
51119         * m4/isnand.m4: Renamed from m4/isnan.m4.
51120         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51121         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51122         instead of isnan.c.
51123         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51124         instead of HAVE_ISNAN_IN_LIBC.
51125         (isnand): Renamed from isnan.
51126         * lib/isnand.c: New file.
51127         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51128         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51129         (Makefile.am): Update.
51130         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51131         Include isnand.h instead of isnan.h.
51132         (main): Test isnand instead of isnan.
51133         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51134         isnan-nolibm.
51135         * modules/frexp (Depends-on): Likewise.
51136         * modules/frexp-tests (Depends-on): Likewise.
51137         * modules/frexp-nolibm (Depends-on): Likewise.
51138         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51139         * modules/isfinite (Depends-on): Likewise.
51140         * modules/round-tests (Depends-on): Likewise.
51141         * modules/signbit (Depends-on): Likewise.
51142         * modules/signbit-tests (Depends-on): Likewise.
51143         * modules/snprintf-posix (Depends-on): Likewise.
51144         * modules/sprintf-posix (Depends-on): Likewise.
51145         * modules/trunc-tests (Depends-on): Likewise.
51146         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51147         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51148         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51149         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51150         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51151         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51152         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51153         * modules/vasnprintf-posix (Depends-on): Likewise.
51154         * modules/vasprintf-posix (Depends-on): Likewise.
51155         * modules/vfprintf-posix (Depends-on): Likewise.
51156         * modules/vsnprintf-posix (Depends-on): Likewise.
51157         * modules/vsprintf-posix (Depends-on): Likewise.
51158         * lib/frexp.c: Include isnand.h instead of isnan.h.
51159         (ISNAN): Set to isnand instead of isnan.
51160         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51161         (gl_isfinited): Use isnand instead of isnan.
51162         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51163         (gl_signbitd): Use isnand instead of isnan.
51164         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51165         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51166         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51167         (main): Use isnand instead of isnan.
51168         * tests/test-round1.c: Include isnand.h.
51169         (main): Use isnand instead of isnan.
51170         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51171         (ISNAN): Set to isnand instead of isnan.
51172         * tests/test-trunc1.c: Include isnand.h.
51173         (main): Use isnand instead of isnan.
51174         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51175         (equal): Use isnand instead of isnan.
51176         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51177         isnand-nolibm.
51178         * NEWS: Mention the change.
51179
51180 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51181             Bruno Haible  <bruno@clisp.org>
51182
51183         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51184         the GCC builtins for signbits are present and set
51185         REPLACE_SIGNBIT_USING_GCC if so.
51186         * lib/math.in.h (signbit): Define using GCC builtins if
51187         REPLACE_SIGNBIT_USING_GCC is set.
51188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51189         REPLACE_SIGNBIT_USING_GCC.
51190         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51191
51192 2008-01-25  Jim Meyering  <meyering@redhat.com>
51193
51194         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51195         * lib/poll.c: Include <config.h>, not "config.h".
51196         * tests/test-getaddrinfo.c: Likewise.
51197
51198 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51199
51200         * modules/sockets-tests: New file.
51201
51202 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51203
51204         * modules/sockets: New module, can be used to call WSA_Startup and
51205         WSA_Cleanup when needed.
51206
51207         * lib/sockets.h, lib/sockets.c: New files.
51208
51209         * m4/sockets.m4: New file.
51210
51211         * tests/test-sockets.c: New file.
51212
51213 2008-01-19  Bruno Haible  <bruno@clisp.org>
51214
51215         * doc/posix-headers: Renamed from doc/headers.
51216         * doc/posix-functions: Renamed from doc/functions.
51217         * doc/gnulib.texi: Update.
51218
51219 2008-01-19  Bruno Haible  <bruno@clisp.org>
51220
51221         * doc/glibc-functions/strcasestr.texi: Include contents of
51222         doc/functions/strcasestr.texi, fixing the list of platforms.
51223         * doc/functions/strcasestr.texi: Remove file.
51224
51225 2008-01-19  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/glibc-functions/memmem.texi: Include contents of
51228         doc/functions/memmem.texi.
51229         * doc/functions/memmem.texi: Remove file.
51230
51231 2008-01-18  Bruno Haible  <bruno@clisp.org>
51232
51233         * doc/glibc-functions/*.texi: New files.
51234         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51235         to use the new files.
51236
51237 2008-01-17  Bruno Haible  <bruno@clisp.org>
51238
51239         * tests/test-gethostname.c (main): Fix printf statement.
51240
51241 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51242
51243         * modules/gethostname-tests: New file.
51244
51245         * tests/test-gethostname.c: New file.
51246
51247 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51248
51249         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51250         used by the UNAME case.  Reported by Bruno Haible
51251         <bruno@clisp.org>.
51252
51253 2008-01-17  Eric Blake  <ebb9@byu.net>
51254
51255         Convert c-strcasestr to be more efficient.
51256         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51257         (Depends-on): Add c-strcase, remove malloca, strnlen.
51258         * tests/test-c-strcasestr.c (main): Enhance test.
51259         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51260
51261 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51262
51263         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51264         Use it in creating po/Makevars.
51265
51266 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51267
51268         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51269         Applications that requires it should initialize libgcrypt
51270         manually.
51271
51272 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51273
51274         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51275
51276 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51277
51278         Fix problem with getdate on mingw32 reported by Simon Josefsson
51279         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51280         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51281         tzname", when deciding whether to declare tzname.
51282         * lib/strftime.c (tzname): Likewise.
51283
51284 2008-01-15  Bruno Haible  <bruno@clisp.org>
51285
51286         Work around a MacOS X 10.5 bug in frexpl().
51287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51288         * doc/functions/frexpl.texi: Document the bug.
51289         Reported by Elias Pipping <pipping@gentoo.org>.
51290
51291 2008-01-14  Eric Blake  <ebb9@byu.net>
51292
51293         Touch up previous patch.
51294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51295         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51296
51297         Convert strcasestr module to use Two-Way algorithm.
51298         * modules/strcasestr-simple: New module, based on the old
51299         strcasestr, but with Two-Way rather than KMP.
51300         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51301         * lib/string.in.h (rpl_strcasestr): Declare.
51302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51303         performance.
51304         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51305         * modules/string (Makefile.am): Support strcasestr.
51306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51307         * modules/strcasestr-tests (Depends-on): Check for alarm.
51308         * tests/test-strcasestr.c: Augment test.
51309         * lib/str-two-way.h: Clean up stray macro.
51310         * NEWS: Document new module.
51311         * MODULES.html.sh (string handling): Likewise.
51312         * doc/functions/strcasestr.texi: New file.
51313         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51314         here, since it is not a POSIX function.
51315
51316 2008-01-14  Colin Watson  <cjwatson@debian.org>
51317             Bruno Haible  <bruno@clisp.org>
51318
51319         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51320         works fine; if not, set REPLACE_STRSIGNAL.
51321         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51323         REPLACE_STRSIGNAL.
51324         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51325         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51326         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51327
51328 2008-01-14  Bruno Haible  <bruno@clisp.org>
51329
51330         * modules/strsignal (Include): Change to <string.h>.
51331
51332 2008-01-14  Colin Watson  <cjwatson@debian.org>
51333
51334         * modules/argp (Notice): Add a notice recommending to change
51335         XGETTEXT_OPTIONS.
51336         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51337
51338 2008-01-13  Colin Watson  <cjwatson@debian.org>
51339
51340         * modules/strsignal-tests: New file.
51341         * tests/test-strsignal.c: New file.
51342
51343         * lib/strsignal.c: New file, from glibc with modifications.
51344         * lib/siglist.h: New file, from glibc with modifications.
51345         * lib/string.in.h (strsignal): New declaration.
51346         * m4/strsignal.m4: New file.
51347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51348         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51349         * modules/strsignal: New file.
51350         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51351         HAVE_DECL_STRSIGNAL.
51352
51353 2008-01-13  Bruno Haible  <bruno@clisp.org>
51354
51355         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51356         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51357         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51358         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51359
51360 2008-01-13  Bruno Haible  <bruno@clisp.org>
51361
51362         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51363         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51364         * lib/argp.h (__attribute__): Likewise.
51365         * lib/c-stack.c (__attribute__): Likewise.
51366         * lib/error.h (__attribute__): Likewise.
51367         * lib/fts.c (__attribute__): Likewise.
51368         * lib/openat.h (__attribute__): Likewise.
51369         * lib/stdio.in.h (__attribute__): Likewise.
51370         * lib/string.in.h (__attribute__): Likewise.
51371         * lib/utimens.c (__attribute__): Likewise.
51372         * lib/vasnprintf.h (__attribute__): Likewise.
51373         * lib/xalloc.h (__attribute__): Likewise.
51374         * lib/xprintf.h (__attribute__): Likewise.
51375         * lib/xstrtol.h (__attribute__): Likewise.
51376         * lib/xvasprintf.h (__attribute__): Likewise.
51377
51378 2008-01-12  Bruno Haible  <bruno@clisp.org>
51379
51380         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51381         * doc/glibc-headers/a.out.texi: New file.
51382         * doc/glibc-headers/aliases.texi: New file.
51383         * doc/glibc-headers/alloca.texi: New file.
51384         * doc/glibc-headers/ar.texi: New file.
51385         * doc/glibc-headers/argp.texi: New file.
51386         * doc/glibc-headers/argz.texi: New file.
51387         * doc/glibc-headers/byteswap.texi: New file.
51388         * doc/glibc-headers/crypt.texi: New file.
51389         * doc/glibc-headers/endian.texi: New file.
51390         * doc/glibc-headers/envz.texi: New file.
51391         * doc/glibc-headers/err.texi: New file.
51392         * doc/glibc-headers/error.texi: New file.
51393         * doc/glibc-headers/execinfo.texi: New file.
51394         * doc/glibc-headers/fpu_control.texi: New file.
51395         * doc/glibc-headers/fstab.texi: New file.
51396         * doc/glibc-headers/fts.texi: New file.
51397         * doc/glibc-headers/getopt.texi: New file.
51398         * doc/glibc-headers/ieee754.texi: New file.
51399         * doc/glibc-headers/ifaddrs.texi: New file.
51400         * doc/glibc-headers/libintl.texi: New file.
51401         * doc/glibc-headers/mcheck.texi: New file.
51402         * doc/glibc-headers/mntent.texi: New file.
51403         * doc/glibc-headers/obstack.texi: New file.
51404         * doc/glibc-headers/paths.texi: New file.
51405         * doc/glibc-headers/printf.texi: New file.
51406         * doc/glibc-headers/pty.texi: New file.
51407         * doc/glibc-headers/resolv.texi: New file.
51408         * doc/glibc-headers/shadow.texi: New file.
51409         * doc/glibc-headers/sysexits.texi: New file.
51410         * doc/glibc-headers/ttyent.texi: New file.
51411
51412 2008-01-12  Jim Meyering  <meyering@redhat.com>
51413
51414         announce-gen: emit Gnulib's git-based version string.
51415         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51416         New option --gnulib-version=V, where V is expected to be
51417         the output of running git describe in the gnulib directory.
51418         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51419         not useful, and plan to stop publishing an xdelta file with each
51420         coreutils release.
51421
51422         * build-aux/announce-gen: Also check for lzma-compressed files.
51423
51424 2008-01-11  Bruno Haible  <bruno@clisp.org>
51425
51426         * tests/test-memmem.c (main): Increase maximum allowed time.
51427         * tests/test-strstr.c (main): Likewise.
51428
51429 2008-01-11  Bruno Haible  <bruno@clisp.org>
51430
51431         * doc/functions/memmem.texi: Add more precisions about platforms.
51432         * doc/functions/strstr.texi: Likewise.
51433
51434 2008-01-10  Eric Blake  <ebb9@byu.net>
51435
51436         * m4/strstr.m4: Delete cruft from copy-n-paste.
51437         Reported by Bruno Haible.
51438
51439 2008-01-10  Bruno Haible  <bruno@clisp.org>
51440
51441         Make c-strstr rely on strstr.
51442         * lib/c-strstr.c: Don't include str-kmp.h.
51443         (c_strstr): Define in terms of strstr.
51444         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51445         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51446
51447 2008-01-10  Bruno Haible  <bruno@clisp.org>
51448
51449         * doc/gnulib.texi (String Functions in C Locale): New section.
51450         * doc/c-ctype.texi: New file.
51451         * doc/c-strcase.texi: New file.
51452         * doc/c-strcaseeq.texi: New file.
51453         * doc/c-strcasestr.texi: New file.
51454         * doc/c-strstr.texi: New file.
51455         * doc/c-strtod.texi: New file.
51456         * doc/c-strtold.texi: New file.
51457
51458 2008-01-10  Eric Blake  <ebb9@byu.net>
51459
51460         * lib/relocatable.h: Fix a comment.
51461
51462 2008-01-10  Eric Blake  <ebb9@byu.net>
51463
51464         Share two-way algorithm.
51465         * lib/str-two-way.h: New file, merged from...
51466         * lib/memmem.c: ...here...
51467         * lib/strstr.c: ...and here.
51468         * modules/memmem (Files): Use it.
51469         * modules/strstr (Files): Likewise.
51470
51471         Avoid quadratic strstr implementations.
51472         * lib/strstr.c: New file.
51473         * m4/strstr.m4: Likewise.
51474         * modules/strstr: Likewise.
51475         * modules/strstr-tests: Likewise.
51476         * tests/test-strstr.c: Likewise.
51477         * lib/string.in.h (rpl_strstr): Declare.
51478         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51480         * modules/string (Makefile.am): Likewise.
51481         * MODULES.html.sh (string handling): Mention new module.
51482         * doc/functions/strstr.texi (strstr): Document the bug.
51483
51484 2008-01-10  Bruno Haible  <bruno@clisp.org>
51485
51486         * lib/relocatable.h (relocate): State whether result is freshly
51487         allocated or not.
51488         * lib/relocatable.c (relocate): Return a freshly allocated string
51489         instead of a pointer to a privately held string.
51490         Reported by Sylvain Beucler <beuc@gnu.org>.
51491
51492 2008-01-10  Colin Watson  <cjwatson@debian.org>
51493
51494         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51495         s/S_ISNLK/S_ISLNK/.
51496
51497 2008-01-09  Bruno Haible  <bruno@clisp.org>
51498
51499         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51500         and other files.
51501         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51502         if it's only a guess.
51503         * modules/memmem: Simplify by depending on memmem-simple.
51504
51505 2008-01-09  Bruno Haible  <bruno@clisp.org>
51506
51507         Work around OpenBSD 4.0 tdelete() bug.
51508         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51509         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51510         macros and don't redefine the enum values.
51511         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51512         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51513         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51514
51515 2008-01-09  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51518         (main): Don't perform the tests if setlocale did not install a UTF-8
51519         locale. Needed on OpenBSD 4.0.
51520         * modules/wcwidth-tests (Depends-on): Add localcharset.
51521
51522 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51523
51524         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51525         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51526         * NEWS: announce this.
51527         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51528
51529 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51530         and Eric Blake  <ebb9@byu.net>
51531
51532         Add memmem-simple module.
51533         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51534         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51535         * modules/memmem-simple: New file.
51536         * modules/memmem (Description): Tweak.
51537         * MODULES.html.sh (string handling): Mention new module.
51538         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51539         addressed by memmem-simple.
51540         * NEWS: Document the difference.
51541
51542 2008-01-09  Eric Blake  <ebb9@byu.net>
51543
51544         Give gcc some memmem optimization hints.
51545         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51546         (strcasestr): Declare as pure.
51547         * modules/memmem (Maintainer): Claim my implementation.
51548
51549 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51550
51551         Support AIX 6.1 and higher.
51552         * build-aux/config.libpath: Likewise.
51553         * build-aux/config.rpath: Likewise.
51554
51555 2008-01-08  Jim Meyering  <meyering@redhat.com>
51556             Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51559         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51560         Reported by Peter Fales in
51561         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51562
51563 2008-01-08  Bruno Haible  <bruno@clisp.org>
51564
51565         * modules/unictype/category-of (Depends-on): Add
51566         unictype/category-none.
51567         * modules/unictype/category-and-tests (Depends-on): Add
51568         unictype/category-{L,N,Lu,Nd}.
51569         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51570         * modules/unictype/category-or-tests (Depends-on): Add
51571         unictype/category-{L,N}.
51572         * modules/unictype/category-name-tests (Depends-on): Add
51573         unictype/category-{Z,Nl}.
51574         Reported by Simon Josefsson.
51575
51576 2008-01-08  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51579         convention better.
51580         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51581         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51582         Reported by Peter Miller <millerp@canb.auug.org.au>.
51583
51584 2008-01-08  Eric Blake  <ebb9@byu.net>
51585
51586         Rewrite memmem to guarantee linear complexity without malloc.
51587         * lib/memmem.c (memmem): Use Two-Way rather than
51588         Knuth-Morris-Pratt, to allow O(1) space usage.
51589         (critical_factorization, two_way_short_needle)
51590         (two_way_long_needle): New functions.
51591         (knuth_morris_pratt): Delete.
51592         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51593         Add stdint.
51594         * tests/test-memmem.c (main): Add tests for periodic needle and
51595         sublinear performance.
51596         * doc/functions/memmem.texi (memmem): Document other deficiencies
51597         in cygwin and older glibc.
51598
51599 2008-01-08  Bruno Haible  <bruno@clisp.org>
51600
51601         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51602         augmentation.
51603
51604 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51605
51606         Add a configure time option: --disable-acl.
51607         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51608         AC_ARG_ENABLE(acl).
51609
51610 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51611
51612         * tests/test-localename.c: Don't include obsolete "setenv.h".
51613
51614         * modules/localename-tests (Depends-on): Need unsetenv.
51615
51616 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51617
51618         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51619
51620 2008-01-06  Colin Watson  <cjwatson@debian.org>
51621
51622         * users.txt: Add man-db.
51623
51624 2008-01-07  Bruno Haible  <bruno@clisp.org>
51625
51626         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51627         previous section name.
51628
51629 2008-01-07  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/progname.c (set_program_name): Don't strip off a leading
51632         "lt-" prefix outside a .libs directory.
51633         Suggested by Paul Eggert.
51634
51635 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51636             Bruno Haible  <bruno@clisp.org>
51637
51638         Improve memory cleanup in 'relocatable' module.
51639         * lib/relocatable.h (compute_curr_prefix): Change return type to
51640         'char *'.
51641         * lib/relocatable.c (compute_curr_prefix): Change return type to
51642         'char *'. Free curr_installdir after use.
51643         (relocate): Free curr_prefix_better after use.
51644         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51645
51646 2008-01-01  Bruno Haible  <bruno@clisp.org>
51647
51648         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51649         failure on older glibc systems.
51650         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51651
51652 2008-01-05  Eric Blake  <ebb9@byu.net>
51653
51654         Avoid quadratic system memmem.
51655         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51656         Reported by Ralf Wildenhues.
51657
51658         Fix memmem test for mingw.
51659         * modules/memmem-tests (configure.ac): Check for alarm.
51660         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51661         it.
51662         * doc/functions/memmem.texi: New file.
51663         * doc/gnulib.texi (Function Substitutes): Add memmem.
51664         Reported by Bruno Haible.
51665
51666 2008-01-04  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51669         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51670         gl_HEADER_STRING_H_DEFAULTS.
51671
51672 2008-01-04  Eric Blake  <ebb9@byu.net>
51673
51674         Shorten duration of memmem test.
51675         * tests/test-memmem.c (main): Use alarm to declare failure if test
51676         is taking too long.
51677         Reported by Ralf Wildenhues.
51678
51679 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51680
51681         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51682         string, needed by strerror.
51683
51684 2008-01-03  Colin Watson  <cjwatson@debian.org>
51685             Bruno Haible  <bruno@clisp.org>
51686
51687         * doc/gnulib-tool.texi (Localization): New section.
51688
51689 2008-01-02  Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51692         variables to 'unsigned char *' type.
51693         Reported by Paul Eggert.
51694
51695 2008-01-02  Jim Meyering  <jim@meyering.net>
51696
51697         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51698
51699 2007-12-31  Jim Meyering  <jim@meyering.net>
51700
51701         Avoid use of private FTS type name.
51702         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51703
51704 2007-12-30  Karl Berry  <karl@gnu.org>
51705
51706         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51707         work around defect in Texinfo and/or the standalone Info browser.
51708
51709 2007-12-30  Bruno Haible  <bruno@clisp.org>
51710
51711         Unify 5 copies of the KMP code.
51712         * lib/str-kmp.h: New file.
51713         * lib/c-strcasestr.c: Include str-kmp.h.
51714         (knuth_morris_pratt): Remove function.
51715         (c_strcasestr): Update.
51716         * lib/c-strstr.c: Include str-kmp.h.
51717         (knuth_morris_pratt): Remove function.
51718         (c_strcasestr): Update.
51719         * lib/mbscasestr.c: Include str-kmp.h.
51720         (knuth_morris_pratt_unibyte): Remove function.
51721         * lib/mbsstr.c: Include str-kmp.h.
51722         (knuth_morris_pratt_unibyte): Remove function.
51723         * lib/strcasestr.c: Include str-kmp.h.
51724         (knuth_morris_pratt): Remove function.
51725         (strcasestr): Update.
51726         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51727         * modules/c-strstr (Files): Likewise.
51728         * modules/mbscasestr (Files): Likewise.
51729         * modules/mbsstr (Files): Likewise.
51730         * modules/strcasestr (Files): Likewise.
51731         Suggested by Paul Eggert.
51732
51733 2007-12-30  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51736         defined.
51737
51738 2007-12-30  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/xmalloca.h: Include xalloc.h.
51741         (xnmalloca): New macro.
51742
51743 2007-12-30  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/malloca.h (nmalloca): New macro.
51746         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51747         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51748         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51749         knuth_morris_pratt_multibyte): Likewise.
51750         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51751         knuth_morris_pratt_multibyte): Likewise.
51752         * lib/memmem.c (knuth_morris_pratt): Likewise.
51753         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51754
51755 2007-12-25  Bruno Haible  <bruno@clisp.org>
51756
51757         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51758         * lib/glob.c: Don't include openat.h.
51759         (link_exists2_p): Add back the code that deals with the
51760         !GLOB_ALTDIRFUNC case.
51761         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51762         let it do the filename concatenation.
51763         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51764         * modules/glob (Depends-on): Remove openat.
51765
51766 2007-12-31  Bruno Haible  <bruno@clisp.org>
51767
51768         * modules/dirfd (License): Change to LGPLv2+.
51769         Approved by Jim Meyering.
51770
51771 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51772
51773         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51774         when multiplying M by sizeof (size_t).
51775
51776 2007-12-10  Martin Lambers  <marlam@marlam.de>
51777
51778         Override getpagesize on mingw.
51779         * lib/getpagesize.c: New file.
51780         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51781         * modules/getpagesize (Files): Add lib/getpagesize.c.
51782         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51784         REPLACE_GETPAGESIZE.
51785         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51786
51787 2007-12-25  Bruno Haible  <bruno@clisp.org>
51788
51789         * modules/localcharset (Notice): New field.
51790         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51791         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51792
51793 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51794             Bruno Haible  <bruno@clisp.org>
51795
51796         Avoid using the syntax symbol() in formatted documentation.
51797         * MODULES.html.sh (func_module): When replacing symbol() with a
51798         hyperlink, remove the parentheses. Show an error if some remain.
51799         Recognize and render the '...' syntax.
51800         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51801         Rework. Add paragraph about GCC's inlining.
51802         * doc/alloca.texi: Likewise.
51803         * doc/error.texi: Remove parentheses from symbol reference.
51804         * doc/gnulib-intro.texi: Likewise.
51805         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51806         * modules/fnmatch (Description): Reword to say "the ... function".
51807         * modules/full-read (Description): Likewise.
51808         * modules/full-write (Description): Likewise.
51809         * modules/safe-read (Description): Likewise.
51810         * modules/safe-write (Description): Likewise.
51811         * modules/strchrnul (Description): Likewise.
51812         * modules/trim (Description): Likewise.
51813         * modules/error (Description): Remove parentheses from symbol
51814         references.
51815         * modules/verror (Description): Likewise.
51816         Reported by Karl Berry.
51817
51818 2007-12-25  Bruno Haible  <bruno@clisp.org>
51819
51820         Fixup after 2007-10-16 commit.
51821         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51822
51823 2007-12-24  Bruno Haible  <bruno@clisp.org>
51824
51825         Make --enable-relocatable work with DESTDIR.
51826         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51827         to compute installdir from destprog.
51828         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51829         also set the RELOC_DESTDIR variable.
51830         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51831
51832 2007-12-24  Bruno Haible  <bruno@clisp.org>
51833
51834         Fix link error due to xalloc_die().
51835         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51836         of xreadlink.
51837         * lib/relocwrapper.c: Update comments.
51838         * build-aux/install-reloc: Remove xreadlink.c from file list.
51839         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51840         xreadlink.c.
51841         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51842
51843 2007-12-24  Bruno Haible  <bruno@clisp.org>
51844
51845         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51846         * lib/setenv.h: Remove file.
51847         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51848         lib/setenv.h.
51849         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51850         (Depends-on): Add stdlib.
51851         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51852         gl_FUNC_UNSETENV.
51853         (Include): Replace setenv.h with <stdlib.h>.
51854         * modules/unsetenv: New file.
51855         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51856         * lib/unsetenv.c: Include <stdlib.h> first.
51857         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51858         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51859         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51860         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51861         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51862         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51864         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51865         * doc/functions/unsetenv.texi: Update.
51866         * modules/xsetenv (Depends-on): Add unsetenv.
51867         * modules/getdate (Depends-on): Likewise.
51868         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51869         * lib/xsetenv.c: Don't include setenv.h.
51870         * lib/getdate.y: Likewise.
51871         * lib/relocwrapper.c: Likewise.
51872         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51873         (Depends-on): Add stdlib.
51874         * NEWS: Mention the changes.
51875         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51876
51877 2007-12-23  Bruno Haible  <bruno@clisp.org>
51878
51879         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51880         indentation.
51881
51882 2007-12-23  Bruno Haible  <bruno@clisp.org>
51883
51884         * lib/c-strcasestr.c: Add more comments.
51885         * lib/c-strstr.c: Likewise.
51886         * lib/mbscasestr.c: Likewise.
51887         * lib/mbsstr.c: Likewise.
51888         * lib/strcasestr.c: Likewise.
51889         * lib/memmem.c: Likewise.
51890
51891 2007-12-23  Bruno Haible  <bruno@clisp.org>
51892
51893         * tests/test-memmem.c: Include <string.h> first.
51894
51895 2007-12-22  Bruno Haible  <bruno@clisp.org>
51896
51897         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51898         the contents of $testsbase.
51899         Reported by Ralf Wildenhues.
51900
51901 2007-12-22  Bruno Haible  <bruno@clisp.org>
51902
51903         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51904         two variables local_ldadd_before, local_ldadd_last.
51905
51906 2007-12-20  Eric Blake  <ebb9@byu.net>
51907
51908         Work around circular library issue when cross-compiling.
51909         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51910         that progname.o does not need to pull in rpl_memcmp.
51911
51912 2007-12-19  Eric Blake  <ebb9@byu.net>
51913
51914         Fix memmem to avoid O(n^2) worst-case complexity.
51915         * lib/memmem.c (knuth_morris_pratt): New function.
51916         (memmem): Use it if first few naive iterations fail.
51917         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51918         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51919         * modules/memchr (License): Likewise.
51920         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51921         malloca.
51922         * tests/test-memmem.c: Rewrite, borrowing ideas from
51923         test-mbsstr1.c; the old version wouldn't even compile!
51924         * modules/memmem-tests: New file.
51925         * lib/string.in.h (rpl_memmem): Add declaration.
51926         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51928         REPLACE_MEMMEM.
51929
51930 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51933         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51934         before any system include files, and undef after them all.  This
51935         should fix a problem on VMS reported by John E. Malmberg in
51936         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51937
51938 2007-12-17  Eric Blake  <ebb9@byu.net>
51939
51940         Revert addition of verify, for BSD/OS.
51941         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51942         can't handle large files, for the sake of obsolete platforms.
51943         * modules/fseeko (Depends-on): Remove verify.
51944         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51945         * doc/functions/ftello.texi (ftello): Likewise.
51946         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51947         Reported by Larry Jones.
51948
51949 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51950
51951         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51952         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51953
51954 2007-12-17  Jim Meyering  <meyering@redhat.com>
51955
51956         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51957         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51958         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51959         * modules/getcwd (Depends-on): Add openat.
51960         Reported by Petr Salinger.
51961
51962 2007-12-17  Bruno Haible  <bruno@clisp.org>
51963
51964         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51965         avoid a segmentation fault of the configure test on x86_64 systems.
51966
51967 2007-12-15  Jim Meyering  <meyering@redhat.com>
51968
51969         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51970
51971 2007-12-13  Eric Blake  <ebb9@byu.net>
51972
51973         Another fseek test.
51974         * tests/test-fseek.c (main): Also test ungetc handling.
51975         * tests/test-fseeko.c (main): Likewise.
51976         * modules/fseeko (Depends-on): Add verify.
51977         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51978         large.
51979         Reported by Larry Jones.
51980
51981         Fix fseeko on mingw.
51982         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51983         seek.
51984
51985         Beef up fseek tests.
51986         * tests/test-fseek.c (main): Also test eof handling.
51987         * tests/test-fseeko.c (main): Likewise.
51988         Reported by Larry Jones.
51989
51990 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51991
51992         Fix fseeko on BSD-based platforms.
51993         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51994         successful seek.
51995
51996 2007-12-12  Eric Blake  <ebb9@byu.net>
51997
51998         Allow circular dependency of separate libtests.a
51999         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52000         when use_libtests.
52001
52002 2007-12-11  Eric Blake  <ebb9@byu.net>
52003
52004         Fix bug with -0.0L in previous patch.
52005         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52006         * tests/test-isnan.c (main): Also test on zeroes.
52007         * tests/test-isnanf.c (main): Likewise.
52008         * tests/test-isnanl.h (main): Likewise.
52009
52010         Detect pseudo-denormals on x86 even when cross-compiling.
52011         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52012         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52013         invalid bit patterns that happen to satisfy ==.
52014
52015         Avoid link failures with separate libtests.a.
52016         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52017         last, to satisfy circular dependencies.
52018
52019 2007-12-11  Eric Blake  <ebb9@byu.net>
52020         and Bruno Haible  <bruno@clisp.org>
52021
52022         Fix OpenBSD 4.0 <float.h> handling of long double.
52023         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52024         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52025         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52026
52027 2007-12-11  Jim Meyering  <meyering@redhat.com>
52028
52029         * users.txt: Add libvirt.
52030
52031         Support versions of autoconf prior to 2.59c.
52032         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52033         if it is not already defined.
52034
52035 2007-12-09  Bruno Haible  <bruno@clisp.org>
52036
52037         Let 'gnulib-tool --import' collect sources needed for the tests in
52038         tests/ rather than in lib/.
52039         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52040         argument. If true, add rules to generate libtests.a, and put libtests.a
52041         into $(LDADD). Consider source files in subdirectories and set
52042         uses_subdirs.
52043         (func_emit_initmacro_start, func_emit_initmacro_end,
52044         func_emit_initmacro_done): Pass all arguments explicitly.
52045         (func_import): Determine two module lists main_modules,
52046         testsrelated_modules. Determine use_libtests. Determine two variables
52047         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52048         instead of just sed_transform_lib_file. Determine two variables
52049         main_files and testsrelated_files. Compute 'files' as the union of
52050         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52051         func_add_or_update. In the generated gnulib-comp.m4, collect the
52052         object files for tests/ in different variables than those for lib/.
52053         Substitute LIBTESTS_LIBDEPS.
52054         (func_create_testdir): Combine the uses_subdirs results from
52055         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52056
52057 2007-12-09  Bruno Haible  <bruno@clisp.org>
52058
52059         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52060         the build-aux directory.
52061
52062 2007-12-09  Bruno Haible  <bruno@clisp.org>
52063
52064         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52065         introduced on 2006-09-09.
52066
52067 2007-12-07  Jim Meyering  <meyering@redhat.com>
52068
52069         Let these macros work also with autoconf-2.59.
52070         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52071         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52072         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52073
52074 2007-12-06  Jim Meyering  <meyering@redhat.com>
52075
52076         Avoid a configure-time syntax error in gl_FUNC_ACL.
52077         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52078         function in each branch, before testing the cache variable.
52079
52080 2007-12-04  Eric Blake  <ebb9@byu.net>
52081
52082         Make scripts executable.
52083         * build-aux/config.guess: Add execute permissions.
52084         * build-aux/config.sub: Likewise.
52085         * build-aux/gendocs.sh: Likewise.
52086
52087         Fix frexp on mingw.
52088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52089         cross-compiling.
52090         * doc/functions/frexp.texi (frexp): Document the bug.
52091
52092         Make cygwin fseeko check more reliable.
52093         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52094         version numbers, rather than unrelated feature check.
52095         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52096         * doc/functions/ftello.texi (ftello): Likewise.
52097         Reported by Bruno Haible.
52098
52099         * m4/strerror.m4: Bump version number.
52100
52101 2007-12-03  Bruno Haible  <bruno@clisp.org>
52102
52103         * doc/functions/mprotect.texi: Mention the mingw problem.
52104
52105 2007-12-03  Eric Blake  <ebb9@byu.net>
52106
52107         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52108         REPLACE_STRERROR is initialized before this macro.
52109
52110 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52113         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52114         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52115         put -lsec in even for programs other than 'ls'.  This fixes a problem
52116         for gettext reported by Bruno Haible in
52117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52118         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52119         Add support for Solaris 10.  This isn't efficient, but should get the
52120         job done for now.
52121
52122 2007-12-03  James Youngman  <jay@gnu.org>
52123
52124         * doc/regexprops-generic.texi: change "an close-group" to "a
52125         close-group" and "illegal" to "not allowed".
52126
52127 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52128
52129         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52130         pr_byname.h. Needed for the rare case when the maintainer has done
52131         "make maintainer-clean" in the source directory and then attempts a
52132         build outside the source directory.
52133         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52134         scripts_byname.h.
52135
52136 2007-12-02  Martin Lambers <marlam@marlam.de>
52137             Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/getpagesize.h: Remove file.
52140         * lib/unistd.in.h: Include declaration of getpagesize here.
52141         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52142         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52143         HAVE_SYS_PARAM_H.
52144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52145         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52146         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52147         (Depends-on): Add unistd.
52148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52149         (Include): Use <unistd.h> instead of getpagesize.h.
52150         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52151         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52152         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52153         gl_GETPAGESIZE invocation, already handled by module dependency.
52154         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52155
52156 2007-12-02  Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/strings-tests: New file.
52159         * tests/test-strings.c: New file.
52160
52161         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52162         * lib/strings.in.h: New file.
52163         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52164         * m4/strings_h.m4: New file.
52165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52166         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52167         * modules/strings: New file.
52168         * modules/string (Makefile.am): Update.
52169         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52170         Reported by Karl Berry.
52171
52172 2007-12-01  Eric Blake  <ebb9@byu.net>
52173
52174         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52175         accomodate fix in cygwin 1.5.25.
52176
52177 2007-12-01  Jim Meyering  <meyering@redhat.com>
52178
52179         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52180         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52181         that would inhibit utf8-optimization of a regexp containing line-
52182         or buffer-anchors, e.g., `^', `$'.
52183
52184 2007-11-30  Bruno Haible  <bruno@clisp.org>
52185
52186         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52187         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52188         glthread_recursive_lock_init.
52189         * lib/lock.c (glthread_recursive_lock_init)
52190         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52192
52193 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52194
52195         New function qset_acl, like set_acl but with syscall semantics.
52196         * lib/acl.h (qset_acl): New decl.
52197         * lib/acl.c (qset_acl): New function.
52198         (set_acl): Use new function.  Use more-consistent diagnostics.
52199
52200 2007-11-28  Jim Meyering  <meyering@redhat.com>
52201
52202         * modules/physmem (License): Change from GPL to LGPLv2+.
52203
52204 2007-11-26  Bruno Haible  <bruno@clisp.org>
52205
52206         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52207         'long double' type has excess precision.
52208         Reported by Jim Meyering in
52209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52210
52211 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52212
52213         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52214         Sync from <http://gnu.org/licenses>.
52215         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52216         with license text from same location.
52217         * doc/maintain.texi, doc/standards.texi:  Sync from
52218         <http://savannah.gnu.org/projects/gnustandards>.
52219
52220 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52221         and Jim Meyering  <meyering@redhat.com>
52222
52223         Adjust getdate' grammar to accept a slightly more regular language.
52224         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52225         Before, the former was rejected.
52226         * lib/getdate.y (digits_to_date_time): New function, factored
52227         out of ...
52228         (number): ...here.  Just call digits_to_date_time.
52229         (hybrid): New non-terminal to handle an <unsigned number,
52230         signed relative offset> sequence consistently.
52231
52232 2007-11-18  Jim Meyering  <meyering@redhat.com>
52233
52234         Pull my changes from coreutils:
52235         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52236         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52237         use of $gnulib_tool_option_extras, so that it's separated from the
52238         preceding argument.
52239
52240         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52241         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52242         parent destination directories before copying a file into place.
52243
52244 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52245
52246         bootstrap: work also with 4-argument variant of AC_INIT
52247         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52248
52249 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52250
52251         Port test-getaddrinfo to Solaris.
52252         Problem reported by Bruno Haible in
52253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52254         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52255         explanation of setting 'hints'.
52256         Don't reject an implementation merely because it returns EAI_SERVICE.
52257         (EAI_SERVICE): Define to 0 if not defined.
52258
52259 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52260
52261         The license of gnu-make and posix-shell is now "GPLed build tool".
52262         * modules/gnu-make (License): Likewise.
52263         * modules/posix-shell (License): Likewise.
52264
52265         New module posix-shell, for determining a POSIX shell
52266         or perhaps something that is close enough to a POSIX shell.
52267         * m4/posix-shell.m4: New file.
52268         * modules/posix-shell: New file.
52269
52270         * MODULES.html.sh: Mention new module.
52271
52272         New module gnu-make, for determining whether we're using GNU Make.
52273         * m4/gnu-make.m4: New file.
52274         * modules/gnu-make: New file.
52275         * MODULES.html.sh: Mention new module.
52276
52277 2007-11-14  Jim Meyering  <meyering@redhat.com>
52278
52279         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52280         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52281         use this macro to create a function _definition_.
52282         Remove useless "#undef ARGMATCH_DIE".
52283
52284 2007-11-14  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/config.charset: Update for OpenBSD 4.1.
52287         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52288
52289 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52290
52291         Document 64-bit #if problems in stdint.texi.
52292         * doc/headers/stdint.texi (stdint.h): Mention problems with
52293         64-bit-#if, and how to work around them.
52294
52295         Don't insist on 'long long int' support in the preprocessor.  It
52296         breaks too many things.  For example, PRIdMAX still uses a 'long
52297         long int' format with the latest Sun compiler, even though
52298         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52299         preprocessor problem.  This causes the latest coreutils to dump
52300         core on Solaris 10 sparc with the Sun C compiler.
52301         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52302         the troublesome expressions at configure-time, not at #if-time.
52303         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52304         preprocessor.
52305         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52306         compile-time C checks, done at 'configure'-time.
52307         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52308         * modules/inttypes (Makefile): Substitute the new symbols that
52309         gl_INTTYPES_H now generates.
52310         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52311
52312 2007-11-12  Bruno Haible  <bruno@clisp.org>
52313
52314         Tests for Unicode character classification functions.
52315
52316         * modules/unictype/bidicategory-byname-tests: New file.
52317         * modules/unictype/bidicategory-name-tests: New file.
52318         * modules/unictype/bidicategory-of-tests: New file.
52319         * modules/unictype/bidicategory-test-tests: New file.
52320         * modules/unictype/block-list-tests: New file.
52321         * modules/unictype/block-of-tests: New file.
52322         * modules/unictype/block-test-tests: New file.
52323         * modules/unictype/category-C-tests: New file.
52324         * modules/unictype/category-Cc-tests: New file.
52325         * modules/unictype/category-Cf-tests: New file.
52326         * modules/unictype/category-Cn-tests: New file.
52327         * modules/unictype/category-Co-tests: New file.
52328         * modules/unictype/category-Cs-tests: New file.
52329         * modules/unictype/category-L-tests: New file.
52330         * modules/unictype/category-Ll-tests: New file.
52331         * modules/unictype/category-Lm-tests: New file.
52332         * modules/unictype/category-Lo-tests: New file.
52333         * modules/unictype/category-Lt-tests: New file.
52334         * modules/unictype/category-Lu-tests: New file.
52335         * modules/unictype/category-M-tests: New file.
52336         * modules/unictype/category-Mc-tests: New file.
52337         * modules/unictype/category-Me-tests: New file.
52338         * modules/unictype/category-Mn-tests: New file.
52339         * modules/unictype/category-N-tests: New file.
52340         * modules/unictype/category-Nd-tests: New file.
52341         * modules/unictype/category-Nl-tests: New file.
52342         * modules/unictype/category-No-tests: New file.
52343         * modules/unictype/category-P-tests: New file.
52344         * modules/unictype/category-Pc-tests: New file.
52345         * modules/unictype/category-Pd-tests: New file.
52346         * modules/unictype/category-Pe-tests: New file.
52347         * modules/unictype/category-Pf-tests: New file.
52348         * modules/unictype/category-Pi-tests: New file.
52349         * modules/unictype/category-Po-tests: New file.
52350         * modules/unictype/category-Ps-tests: New file.
52351         * modules/unictype/category-S-tests: New file.
52352         * modules/unictype/category-Sc-tests: New file.
52353         * modules/unictype/category-Sk-tests: New file.
52354         * modules/unictype/category-Sm-tests: New file.
52355         * modules/unictype/category-So-tests: New file.
52356         * modules/unictype/category-Z-tests: New file.
52357         * modules/unictype/category-Zl-tests: New file.
52358         * modules/unictype/category-Zp-tests: New file.
52359         * modules/unictype/category-Zs-tests: New file.
52360         * modules/unictype/category-and-not-tests: New file.
52361         * modules/unictype/category-and-tests: New file.
52362         * modules/unictype/category-byname-tests: New file.
52363         * modules/unictype/category-name-tests: New file.
52364         * modules/unictype/category-none-tests: New file.
52365         * modules/unictype/category-of-tests: New file.
52366         * modules/unictype/category-or-tests: New file.
52367         * modules/unictype/category-test-withtable-tests: New file.
52368         * modules/unictype/combining-class-tests: New file.
52369         * modules/unictype/ctype-alnum-tests: New file.
52370         * modules/unictype/ctype-alpha-tests: New file.
52371         * modules/unictype/ctype-blank-tests: New file.
52372         * modules/unictype/ctype-cntrl-tests: New file.
52373         * modules/unictype/ctype-digit-tests: New file.
52374         * modules/unictype/ctype-graph-tests: New file.
52375         * modules/unictype/ctype-lower-tests: New file.
52376         * modules/unictype/ctype-print-tests: New file.
52377         * modules/unictype/ctype-punct-tests: New file.
52378         * modules/unictype/ctype-space-tests: New file.
52379         * modules/unictype/ctype-upper-tests: New file.
52380         * modules/unictype/ctype-xdigit-tests: New file.
52381         * modules/unictype/decimal-digit-tests: New file.
52382         * modules/unictype/digit-tests: New file.
52383         * modules/unictype/mirror-tests: New file.
52384         * modules/unictype/numeric-tests: New file.
52385         * modules/unictype/property-alphabetic-tests: New file.
52386         * modules/unictype/property-ascii-hex-digit-tests: New file.
52387         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52388         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52389         * modules/unictype/property-bidi-block-separator-tests: New file.
52390         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52391         * modules/unictype/property-bidi-common-separator-tests: New file.
52392         * modules/unictype/property-bidi-control-tests: New file.
52393         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52394         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52395         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52396         * modules/unictype/property-bidi-european-digit-tests: New file.
52397         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52398         * modules/unictype/property-bidi-left-to-right-tests: New file.
52399         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52400         * modules/unictype/property-bidi-other-neutral-tests: New file.
52401         * modules/unictype/property-bidi-pdf-tests: New file.
52402         * modules/unictype/property-bidi-segment-separator-tests: New file.
52403         * modules/unictype/property-bidi-whitespace-tests: New file.
52404         * modules/unictype/property-byname-tests: New file.
52405         * modules/unictype/property-combining-tests: New file.
52406         * modules/unictype/property-composite-tests: New file.
52407         * modules/unictype/property-currency-symbol-tests: New file.
52408         * modules/unictype/property-dash-tests: New file.
52409         * modules/unictype/property-decimal-digit-tests: New file.
52410         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52411         * modules/unictype/property-deprecated-tests: New file.
52412         * modules/unictype/property-diacritic-tests: New file.
52413         * modules/unictype/property-extender-tests: New file.
52414         * modules/unictype/property-format-control-tests: New file.
52415         * modules/unictype/property-grapheme-base-tests: New file.
52416         * modules/unictype/property-grapheme-extend-tests: New file.
52417         * modules/unictype/property-grapheme-link-tests: New file.
52418         * modules/unictype/property-hex-digit-tests: New file.
52419         * modules/unictype/property-hyphen-tests: New file.
52420         * modules/unictype/property-id-continue-tests: New file.
52421         * modules/unictype/property-id-start-tests: New file.
52422         * modules/unictype/property-ideographic-tests: New file.
52423         * modules/unictype/property-ids-binary-operator-tests: New file.
52424         * modules/unictype/property-ids-trinary-operator-tests: New file.
52425         * modules/unictype/property-ignorable-control-tests: New file.
52426         * modules/unictype/property-iso-control-tests: New file.
52427         * modules/unictype/property-join-control-tests: New file.
52428         * modules/unictype/property-left-of-pair-tests: New file.
52429         * modules/unictype/property-line-separator-tests: New file.
52430         * modules/unictype/property-logical-order-exception-tests: New file.
52431         * modules/unictype/property-lowercase-tests: New file.
52432         * modules/unictype/property-math-tests: New file.
52433         * modules/unictype/property-non-break-tests: New file.
52434         * modules/unictype/property-not-a-character-tests: New file.
52435         * modules/unictype/property-numeric-tests: New file.
52436         * modules/unictype/property-other-alphabetic-tests: New file.
52437         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52438         * modules/unictype/property-other-grapheme-extend-tests: New file.
52439         * modules/unictype/property-other-id-continue-tests: New file.
52440         * modules/unictype/property-other-id-start-tests: New file.
52441         * modules/unictype/property-other-lowercase-tests: New file.
52442         * modules/unictype/property-other-math-tests: New file.
52443         * modules/unictype/property-other-uppercase-tests: New file.
52444         * modules/unictype/property-paired-punctuation-tests: New file.
52445         * modules/unictype/property-paragraph-separator-tests: New file.
52446         * modules/unictype/property-pattern-syntax-tests: New file.
52447         * modules/unictype/property-pattern-white-space-tests: New file.
52448         * modules/unictype/property-private-use-tests: New file.
52449         * modules/unictype/property-punctuation-tests: New file.
52450         * modules/unictype/property-quotation-mark-tests: New file.
52451         * modules/unictype/property-radical-tests: New file.
52452         * modules/unictype/property-sentence-terminal-tests: New file.
52453         * modules/unictype/property-soft-dotted-tests: New file.
52454         * modules/unictype/property-space-tests: New file.
52455         * modules/unictype/property-terminal-punctuation-tests: New file.
52456         * modules/unictype/property-test-tests: New file.
52457         * modules/unictype/property-titlecase-tests: New file.
52458         * modules/unictype/property-unassigned-code-value-tests: New file.
52459         * modules/unictype/property-unified-ideograph-tests: New file.
52460         * modules/unictype/property-uppercase-tests: New file.
52461         * modules/unictype/property-variation-selector-tests: New file.
52462         * modules/unictype/property-white-space-tests: New file.
52463         * modules/unictype/property-xid-continue-tests: New file.
52464         * modules/unictype/property-xid-start-tests: New file.
52465         * modules/unictype/property-zero-width-tests: New file.
52466         * modules/unictype/scripts-tests: New file.
52467         * modules/unictype/syntax-c-ident-tests: New file.
52468         * modules/unictype/syntax-c-whitespace-tests: New file.
52469         * modules/unictype/syntax-java-ident-tests: New file.
52470         * modules/unictype/syntax-java-whitespace-tests: New file.
52471         * tests/unictype/test-bidi_byname.c: New file.
52472         * tests/unictype/test-bidi_name.c: New file.
52473         * tests/unictype/test-bidi_of.c: New file.
52474         * tests/unictype/test-bidi_test.c: New file.
52475         * tests/unictype/test-block_list.c: New file.
52476         * tests/unictype/test-block_of.c: New file.
52477         * tests/unictype/test-block_test.c: New file.
52478         * tests/unictype/test-categ_and.c: New file.
52479         * tests/unictype/test-categ_and_not.c: New file.
52480         * tests/unictype/test-categ_byname.c: New file.
52481         * tests/unictype/test-categ_name.c: New file.
52482         * tests/unictype/test-categ_none.c: New file.
52483         * tests/unictype/test-categ_of.c: New file.
52484         * tests/unictype/test-categ_or.c: New file.
52485         * tests/unictype/test-categ_test_withtable.c: New file.
52486         * tests/unictype/test-combining.c: New file.
52487         * tests/unictype/test-decdigit.c: New file.
52488         * tests/unictype/test-digit.c: New file.
52489         * tests/unictype/test-mirror.c: New file.
52490         * tests/unictype/test-numeric.c: New file.
52491         * tests/unictype/test-pr_byname.c: New file.
52492         * tests/unictype/test-pr_test.c: New file.
52493         * tests/unictype/test-predicate-part1.h: New file.
52494         * tests/unictype/test-predicate-part2.h: New file.
52495         * tests/unictype/test-scripts.c: New file.
52496         * tests/unictype/test-sy_c_ident.c: New file.
52497         * tests/unictype/test-sy_java_ident.c: New file.
52498
52499         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52500         for Unicode 5.0.0.
52501         * tests/unictype/test-categ_Cc.c: Likewise.
52502         * tests/unictype/test-categ_Cf.c: Likewise.
52503         * tests/unictype/test-categ_Cn.c: Likewise.
52504         * tests/unictype/test-categ_Co.c: Likewise.
52505         * tests/unictype/test-categ_Cs.c: Likewise.
52506         * tests/unictype/test-categ_L.c: Likewise.
52507         * tests/unictype/test-categ_Ll.c: Likewise.
52508         * tests/unictype/test-categ_Lm.c: Likewise.
52509         * tests/unictype/test-categ_Lo.c: Likewise.
52510         * tests/unictype/test-categ_Lt.c: Likewise.
52511         * tests/unictype/test-categ_Lu.c: Likewise.
52512         * tests/unictype/test-categ_M.c: Likewise.
52513         * tests/unictype/test-categ_Mc.c: Likewise.
52514         * tests/unictype/test-categ_Me.c: Likewise.
52515         * tests/unictype/test-categ_Mn.c: Likewise.
52516         * tests/unictype/test-categ_N.c: Likewise.
52517         * tests/unictype/test-categ_Nd.c: Likewise.
52518         * tests/unictype/test-categ_Nl.c: Likewise.
52519         * tests/unictype/test-categ_No.c: Likewise.
52520         * tests/unictype/test-categ_P.c: Likewise.
52521         * tests/unictype/test-categ_Pc.c: Likewise.
52522         * tests/unictype/test-categ_Pd.c: Likewise.
52523         * tests/unictype/test-categ_Pe.c: Likewise.
52524         * tests/unictype/test-categ_Pf.c: Likewise.
52525         * tests/unictype/test-categ_Pi.c: Likewise.
52526         * tests/unictype/test-categ_Po.c: Likewise.
52527         * tests/unictype/test-categ_Ps.c: Likewise.
52528         * tests/unictype/test-categ_S.c: Likewise.
52529         * tests/unictype/test-categ_Sc.c: Likewise.
52530         * tests/unictype/test-categ_Sk.c: Likewise.
52531         * tests/unictype/test-categ_Sm.c: Likewise.
52532         * tests/unictype/test-categ_So.c: Likewise.
52533         * tests/unictype/test-categ_Z.c: Likewise.
52534         * tests/unictype/test-categ_Zl.c: Likewise.
52535         * tests/unictype/test-categ_Zp.c: Likewise.
52536         * tests/unictype/test-categ_Zs.c: Likewise.
52537         * tests/unictype/test-ctype_alnum.c: Likewise.
52538         * tests/unictype/test-ctype_alpha.c: Likewise.
52539         * tests/unictype/test-ctype_blank.c: Likewise.
52540         * tests/unictype/test-ctype_cntrl.c: Likewise.
52541         * tests/unictype/test-ctype_digit.c: Likewise.
52542         * tests/unictype/test-ctype_graph.c: Likewise.
52543         * tests/unictype/test-ctype_lower.c: Likewise.
52544         * tests/unictype/test-ctype_print.c: Likewise.
52545         * tests/unictype/test-ctype_punct.c: Likewise.
52546         * tests/unictype/test-ctype_space.c: Likewise.
52547         * tests/unictype/test-ctype_upper.c: Likewise.
52548         * tests/unictype/test-ctype_xdigit.c: Likewise.
52549         * tests/unictype/test-decdigit.h: Likewise.
52550         * tests/unictype/test-digit.h: Likewise.
52551         * tests/unictype/test-numeric.h: Likewise.
52552         * tests/unictype/test-pr_alphabetic.c: Likewise.
52553         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52554         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52555         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52556         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52557         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52558         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52559         * tests/unictype/test-pr_bidi_control.c: Likewise.
52560         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52561         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52562         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52563         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52564         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52565         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52566         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52567         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52568         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52569         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52570         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52571         * tests/unictype/test-pr_combining.c: Likewise.
52572         * tests/unictype/test-pr_composite.c: Likewise.
52573         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52574         * tests/unictype/test-pr_dash.c: Likewise.
52575         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52576         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52577         * tests/unictype/test-pr_deprecated.c: Likewise.
52578         * tests/unictype/test-pr_diacritic.c: Likewise.
52579         * tests/unictype/test-pr_extender.c: Likewise.
52580         * tests/unictype/test-pr_format_control.c: Likewise.
52581         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52582         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52583         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52584         * tests/unictype/test-pr_hex_digit.c: Likewise.
52585         * tests/unictype/test-pr_hyphen.c: Likewise.
52586         * tests/unictype/test-pr_id_continue.c: Likewise.
52587         * tests/unictype/test-pr_id_start.c: Likewise.
52588         * tests/unictype/test-pr_ideographic.c: Likewise.
52589         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52590         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52591         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52592         * tests/unictype/test-pr_iso_control.c: Likewise.
52593         * tests/unictype/test-pr_join_control.c: Likewise.
52594         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52595         * tests/unictype/test-pr_line_separator.c: Likewise.
52596         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52597         * tests/unictype/test-pr_lowercase.c: Likewise.
52598         * tests/unictype/test-pr_math.c: Likewise.
52599         * tests/unictype/test-pr_non_break.c: Likewise.
52600         * tests/unictype/test-pr_not_a_character.c: Likewise.
52601         * tests/unictype/test-pr_numeric.c: Likewise.
52602         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52603         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52604         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52605         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52606         * tests/unictype/test-pr_other_id_start.c: Likewise.
52607         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52608         * tests/unictype/test-pr_other_math.c: Likewise.
52609         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52610         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52611         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52612         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52613         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52614         * tests/unictype/test-pr_private_use.c: Likewise.
52615         * tests/unictype/test-pr_punctuation.c: Likewise.
52616         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52617         * tests/unictype/test-pr_radical.c: Likewise.
52618         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52619         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52620         * tests/unictype/test-pr_space.c: Likewise.
52621         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52622         * tests/unictype/test-pr_titlecase.c: Likewise.
52623         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52624         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52625         * tests/unictype/test-pr_uppercase.c: Likewise.
52626         * tests/unictype/test-pr_variation_selector.c: Likewise.
52627         * tests/unictype/test-pr_white_space.c: Likewise.
52628         * tests/unictype/test-pr_xid_continue.c: Likewise.
52629         * tests/unictype/test-pr_xid_start.c: Likewise.
52630         * tests/unictype/test-pr_zero_width.c: Likewise.
52631         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52632         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52633
52634 2007-11-12  Bruno Haible  <bruno@clisp.org>
52635
52636         Unicode character classification functions.
52637         * lib/unictype.h: New file.
52638         * modules/unictype/base: New file.
52639         * modules/unictype/category-L: New file.
52640         * modules/unictype/category-Lu: New file.
52641         * modules/unictype/category-Ll: New file.
52642         * modules/unictype/category-Lt: New file.
52643         * modules/unictype/category-Lm: New file.
52644         * modules/unictype/category-Lo: New file.
52645         * modules/unictype/category-M: New file.
52646         * modules/unictype/category-Mn: New file.
52647         * modules/unictype/category-Mc: New file.
52648         * modules/unictype/category-Me: New file.
52649         * modules/unictype/category-N: New file.
52650         * modules/unictype/category-Nd: New file.
52651         * modules/unictype/category-Nl: New file.
52652         * modules/unictype/category-No: New file.
52653         * modules/unictype/category-P: New file.
52654         * modules/unictype/category-Pc: New file.
52655         * modules/unictype/category-Pd: New file.
52656         * modules/unictype/category-Ps: New file.
52657         * modules/unictype/category-Pe: New file.
52658         * modules/unictype/category-Pi: New file.
52659         * modules/unictype/category-Pf: New file.
52660         * modules/unictype/category-Po: New file.
52661         * modules/unictype/category-S: New file.
52662         * modules/unictype/category-Sm: New file.
52663         * modules/unictype/category-Sc: New file.
52664         * modules/unictype/category-Sk: New file.
52665         * modules/unictype/category-So: New file.
52666         * modules/unictype/category-Z: New file.
52667         * modules/unictype/category-Zs: New file.
52668         * modules/unictype/category-Zl: New file.
52669         * modules/unictype/category-Zp: New file.
52670         * modules/unictype/category-C: New file.
52671         * modules/unictype/category-Cc: New file.
52672         * modules/unictype/category-Cf: New file.
52673         * modules/unictype/category-Cs: New file.
52674         * modules/unictype/category-Co: New file.
52675         * modules/unictype/category-Cn: New file.
52676         * modules/unictype/category-or: New file.
52677         * modules/unictype/category-of: New file.
52678         * modules/unictype/category-test: New file.
52679         * modules/unictype/category-test-withtable: New file.
52680         * modules/unictype/category-byname: New file.
52681         * modules/unictype/category-none: New file.
52682         * modules/unictype/category-and: New file.
52683         * modules/unictype/category-and-not: New file.
52684         * modules/unictype/category-name: New file.
52685         * modules/unictype/combining-class: New file.
52686         * modules/unictype/category-all: New file.
52687         * modules/unictype/bidicategory-all: New file.
52688         * modules/unictype/bidicategory-byname: New file.
52689         * modules/unictype/bidicategory-name: New file.
52690         * modules/unictype/bidicategory-of: New file.
52691         * modules/unictype/bidicategory-test: New file.
52692         * modules/unictype/decimal-digit: New file.
52693         * modules/unictype/digit: New file.
52694         * modules/unictype/numeric: New file.
52695         * modules/unictype/mirror: New file.
52696         * modules/unictype/property-white-space: New file.
52697         * modules/unictype/property-alphabetic: New file.
52698         * modules/unictype/property-other-alphabetic: New file.
52699         * modules/unictype/property-not-a-character: New file.
52700         * modules/unictype/property-default-ignorable-code-point: New file.
52701         * modules/unictype/property-other-default-ignorable-code-point: New
52702         file.
52703         * modules/unictype/property-deprecated: New file.
52704         * modules/unictype/property-logical-order-exception: New file.
52705         * modules/unictype/property-variation-selector: New file.
52706         * modules/unictype/property-private-use: New file.
52707         * modules/unictype/property-unassigned-code-value: New file.
52708         * modules/unictype/property-uppercase: New file.
52709         * modules/unictype/property-other-uppercase: New file.
52710         * modules/unictype/property-lowercase: New file.
52711         * modules/unictype/property-other-lowercase: New file.
52712         * modules/unictype/property-titlecase: New file.
52713         * modules/unictype/property-soft-dotted: New file.
52714         * modules/unictype/property-id-start: New file.
52715         * modules/unictype/property-other-id-start: New file.
52716         * modules/unictype/property-id-continue: New file.
52717         * modules/unictype/property-other-id-continue: New file.
52718         * modules/unictype/property-xid-start: New file.
52719         * modules/unictype/property-xid-continue: New file.
52720         * modules/unictype/property-pattern-white-space: New file.
52721         * modules/unictype/property-pattern-syntax: New file.
52722         * modules/unictype/property-join-control: New file.
52723         * modules/unictype/property-grapheme-base: New file.
52724         * modules/unictype/property-grapheme-extend: New file.
52725         * modules/unictype/property-other-grapheme-extend: New file.
52726         * modules/unictype/property-grapheme-link: New file.
52727         * modules/unictype/property-bidi-control: New file.
52728         * modules/unictype/property-bidi-left-to-right: New file.
52729         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52730         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52731         * modules/unictype/property-bidi-european-digit: New file.
52732         * modules/unictype/property-bidi-eur-num-separator: New file.
52733         * modules/unictype/property-bidi-eur-num-terminator: New file.
52734         * modules/unictype/property-bidi-arabic-digit: New file.
52735         * modules/unictype/property-bidi-common-separator: New file.
52736         * modules/unictype/property-bidi-block-separator: New file.
52737         * modules/unictype/property-bidi-segment-separator: New file.
52738         * modules/unictype/property-bidi-whitespace: New file.
52739         * modules/unictype/property-bidi-non-spacing-mark: New file.
52740         * modules/unictype/property-bidi-boundary-neutral: New file.
52741         * modules/unictype/property-bidi-pdf: New file.
52742         * modules/unictype/property-bidi-embedding-or-override: New file.
52743         * modules/unictype/property-bidi-other-neutral: New file.
52744         * modules/unictype/property-hex-digit: New file.
52745         * modules/unictype/property-ascii-hex-digit: New file.
52746         * modules/unictype/property-ideographic: New file.
52747         * modules/unictype/property-unified-ideograph: New file.
52748         * modules/unictype/property-radical: New file.
52749         * modules/unictype/property-ids-binary-operator: New file.
52750         * modules/unictype/property-ids-trinary-operator: New file.
52751         * modules/unictype/property-zero-width: New file.
52752         * modules/unictype/property-space: New file.
52753         * modules/unictype/property-non-break: New file.
52754         * modules/unictype/property-iso-control: New file.
52755         * modules/unictype/property-format-control: New file.
52756         * modules/unictype/property-dash: New file.
52757         * modules/unictype/property-hyphen: New file.
52758         * modules/unictype/property-punctuation: New file.
52759         * modules/unictype/property-line-separator: New file.
52760         * modules/unictype/property-paragraph-separator: New file.
52761         * modules/unictype/property-quotation-mark: New file.
52762         * modules/unictype/property-sentence-terminal: New file.
52763         * modules/unictype/property-terminal-punctuation: New file.
52764         * modules/unictype/property-currency-symbol: New file.
52765         * modules/unictype/property-math: New file.
52766         * modules/unictype/property-other-math: New file.
52767         * modules/unictype/property-paired-punctuation: New file.
52768         * modules/unictype/property-left-of-pair: New file.
52769         * modules/unictype/property-combining: New file.
52770         * modules/unictype/property-composite: New file.
52771         * modules/unictype/property-decimal-digit: New file.
52772         * modules/unictype/property-numeric: New file.
52773         * modules/unictype/property-diacritic: New file.
52774         * modules/unictype/property-extender: New file.
52775         * modules/unictype/property-ignorable-control: New file.
52776         * modules/unictype/property-test: New file.
52777         * modules/unictype/property-byname: New file.
52778         * modules/unictype/property-all: New file.
52779         * modules/unictype/scripts: New file.
52780         * modules/unictype/scripts-all: New file.
52781         * modules/unictype/block-of: New file.
52782         * modules/unictype/block-test: New file.
52783         * modules/unictype/block-list: New file.
52784         * modules/unictype/block-all: New file.
52785         * modules/unictype/syntax-c-whitespace: New file.
52786         * modules/unictype/syntax-java-whitespace: New file.
52787         * modules/unictype/syntax-c-ident: New file.
52788         * modules/unictype/syntax-java-ident: New file.
52789         * modules/unictype/ctype-alnum: New file.
52790         * modules/unictype/ctype-alpha: New file.
52791         * modules/unictype/ctype-cntrl: New file.
52792         * modules/unictype/ctype-digit: New file.
52793         * modules/unictype/ctype-graph: New file.
52794         * modules/unictype/ctype-lower: New file.
52795         * modules/unictype/ctype-print: New file.
52796         * modules/unictype/ctype-punct: New file.
52797         * modules/unictype/ctype-space: New file.
52798         * modules/unictype/ctype-upper: New file.
52799         * modules/unictype/ctype-xdigit: New file.
52800         * modules/unictype/ctype-blank: New file.
52801         * lib/unictype/bidi_byname.c: New file.
52802         * lib/unictype/bidi_name.c: New file.
52803         * lib/unictype/bidi_of.c: New file.
52804         * lib/unictype/bidi_test.c: New file.
52805         * lib/unictype/bitmap.h: New file.
52806         * lib/unictype/block_test.c: New file.
52807         * lib/unictype/blocks.c: New file.
52808         * lib/unictype/categ_C.c: New file.
52809         * lib/unictype/categ_Cc.c: New file.
52810         * lib/unictype/categ_Cf.c: New file.
52811         * lib/unictype/categ_Cn.c: New file.
52812         * lib/unictype/categ_Co.c: New file.
52813         * lib/unictype/categ_Cs.c: New file.
52814         * lib/unictype/categ_L.c: New file.
52815         * lib/unictype/categ_Ll.c: New file.
52816         * lib/unictype/categ_Lm.c: New file.
52817         * lib/unictype/categ_Lo.c: New file.
52818         * lib/unictype/categ_Lt.c: New file.
52819         * lib/unictype/categ_Lu.c: New file.
52820         * lib/unictype/categ_M.c: New file.
52821         * lib/unictype/categ_Mc.c: New file.
52822         * lib/unictype/categ_Me.c: New file.
52823         * lib/unictype/categ_Mn.c: New file.
52824         * lib/unictype/categ_N.c: New file.
52825         * lib/unictype/categ_Nd.c: New file.
52826         * lib/unictype/categ_Nl.c: New file.
52827         * lib/unictype/categ_No.c: New file.
52828         * lib/unictype/categ_P.c: New file.
52829         * lib/unictype/categ_Pc.c: New file.
52830         * lib/unictype/categ_Pd.c: New file.
52831         * lib/unictype/categ_Pe.c: New file.
52832         * lib/unictype/categ_Pf.c: New file.
52833         * lib/unictype/categ_Pi.c: New file.
52834         * lib/unictype/categ_Po.c: New file.
52835         * lib/unictype/categ_Ps.c: New file.
52836         * lib/unictype/categ_S.c: New file.
52837         * lib/unictype/categ_Sc.c: New file.
52838         * lib/unictype/categ_Sk.c: New file.
52839         * lib/unictype/categ_Sm.c: New file.
52840         * lib/unictype/categ_So.c: New file.
52841         * lib/unictype/categ_Z.c: New file.
52842         * lib/unictype/categ_Zl.c: New file.
52843         * lib/unictype/categ_Zp.c: New file.
52844         * lib/unictype/categ_Zs.c: New file.
52845         * lib/unictype/categ_and.c: New file.
52846         * lib/unictype/categ_and_not.c: New file.
52847         * lib/unictype/categ_byname.c: New file.
52848         * lib/unictype/categ_name.c: New file.
52849         * lib/unictype/categ_none.c: New file.
52850         * lib/unictype/categ_of.c: New file.
52851         * lib/unictype/categ_or.c: New file.
52852         * lib/unictype/categ_test.c: New file.
52853         * lib/unictype/combining.c: New file.
52854         * lib/unictype/ctype_alnum.c: New file.
52855         * lib/unictype/ctype_alpha.c: New file.
52856         * lib/unictype/ctype_blank.c: New file.
52857         * lib/unictype/ctype_cntrl.c: New file.
52858         * lib/unictype/ctype_digit.c: New file.
52859         * lib/unictype/ctype_graph.c: New file.
52860         * lib/unictype/ctype_lower.c: New file.
52861         * lib/unictype/ctype_print.c: New file.
52862         * lib/unictype/ctype_punct.c: New file.
52863         * lib/unictype/ctype_space.c: New file.
52864         * lib/unictype/ctype_upper.c: New file.
52865         * lib/unictype/ctype_xdigit.c: New file.
52866         * lib/unictype/decdigit.c: New file.
52867         * lib/unictype/digit.c: New file.
52868         * lib/unictype/identsyntaxmap.h: New file.
52869         * lib/unictype/mirror.c: New file.
52870         * lib/unictype/numeric.c: New file.
52871         * lib/unictype/pr_alphabetic.c: New file.
52872         * lib/unictype/pr_ascii_hex_digit.c: New file.
52873         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52874         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52875         * lib/unictype/pr_bidi_block_separator.c: New file.
52876         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52877         * lib/unictype/pr_bidi_common_separator.c: New file.
52878         * lib/unictype/pr_bidi_control.c: New file.
52879         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52880         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52881         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52882         * lib/unictype/pr_bidi_european_digit.c: New file.
52883         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52884         * lib/unictype/pr_bidi_left_to_right.c: New file.
52885         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52886         * lib/unictype/pr_bidi_other_neutral.c: New file.
52887         * lib/unictype/pr_bidi_pdf.c: New file.
52888         * lib/unictype/pr_bidi_segment_separator.c: New file.
52889         * lib/unictype/pr_bidi_whitespace.c: New file.
52890         * lib/unictype/pr_byname.c: New file.
52891         * lib/unictype/pr_byname.gperf: New file.
52892         * lib/unictype/pr_combining.c: New file.
52893         * lib/unictype/pr_composite.c: New file.
52894         * lib/unictype/pr_currency_symbol.c: New file.
52895         * lib/unictype/pr_dash.c: New file.
52896         * lib/unictype/pr_decimal_digit.c: New file.
52897         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52898         * lib/unictype/pr_deprecated.c: New file.
52899         * lib/unictype/pr_diacritic.c: New file.
52900         * lib/unictype/pr_extender.c: New file.
52901         * lib/unictype/pr_format_control.c: New file.
52902         * lib/unictype/pr_grapheme_base.c: New file.
52903         * lib/unictype/pr_grapheme_extend.c: New file.
52904         * lib/unictype/pr_grapheme_link.c: New file.
52905         * lib/unictype/pr_hex_digit.c: New file.
52906         * lib/unictype/pr_hyphen.c: New file.
52907         * lib/unictype/pr_id_continue.c: New file.
52908         * lib/unictype/pr_id_start.c: New file.
52909         * lib/unictype/pr_ideographic.c: New file.
52910         * lib/unictype/pr_ids_binary_operator.c: New file.
52911         * lib/unictype/pr_ids_trinary_operator.c: New file.
52912         * lib/unictype/pr_ignorable_control.c: New file.
52913         * lib/unictype/pr_iso_control.c: New file.
52914         * lib/unictype/pr_join_control.c: New file.
52915         * lib/unictype/pr_left_of_pair.c: New file.
52916         * lib/unictype/pr_line_separator.c: New file.
52917         * lib/unictype/pr_logical_order_exception.c: New file.
52918         * lib/unictype/pr_lowercase.c: New file.
52919         * lib/unictype/pr_math.c: New file.
52920         * lib/unictype/pr_non_break.c: New file.
52921         * lib/unictype/pr_not_a_character.c: New file.
52922         * lib/unictype/pr_numeric.c: New file.
52923         * lib/unictype/pr_other_alphabetic.c: New file.
52924         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52925         * lib/unictype/pr_other_grapheme_extend.c: New file.
52926         * lib/unictype/pr_other_id_continue.c: New file.
52927         * lib/unictype/pr_other_id_start.c: New file.
52928         * lib/unictype/pr_other_lowercase.c: New file.
52929         * lib/unictype/pr_other_math.c: New file.
52930         * lib/unictype/pr_other_uppercase.c: New file.
52931         * lib/unictype/pr_paired_punctuation.c: New file.
52932         * lib/unictype/pr_paragraph_separator.c: New file.
52933         * lib/unictype/pr_pattern_syntax.c: New file.
52934         * lib/unictype/pr_pattern_white_space.c: New file.
52935         * lib/unictype/pr_private_use.c: New file.
52936         * lib/unictype/pr_punctuation.c: New file.
52937         * lib/unictype/pr_quotation_mark.c: New file.
52938         * lib/unictype/pr_radical.c: New file.
52939         * lib/unictype/pr_sentence_terminal.c: New file.
52940         * lib/unictype/pr_soft_dotted.c: New file.
52941         * lib/unictype/pr_space.c: New file.
52942         * lib/unictype/pr_terminal_punctuation.c: New file.
52943         * lib/unictype/pr_test.c: New file.
52944         * lib/unictype/pr_titlecase.c: New file.
52945         * lib/unictype/pr_unassigned_code_value.c: New file.
52946         * lib/unictype/pr_unified_ideograph.c: New file.
52947         * lib/unictype/pr_uppercase.c: New file.
52948         * lib/unictype/pr_variation_selector.c: New file.
52949         * lib/unictype/pr_white_space.c: New file.
52950         * lib/unictype/pr_xid_continue.c: New file.
52951         * lib/unictype/pr_xid_start.c: New file.
52952         * lib/unictype/pr_zero_width.c: New file.
52953         * lib/unictype/scripts.c: New file.
52954         * lib/unictype/sy_c_ident.c: New file.
52955         * lib/unictype/sy_c_whitespace.c: New file.
52956         * lib/unictype/sy_java_ident.c: New file.
52957         * lib/unictype/sy_java_whitespace.c: New file.
52958
52959         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52960         Unicode 5.0.0.
52961         * lib/unictype/blocks.h: Likewise.
52962         * lib/unictype/categ_C.h: Likewise.
52963         * lib/unictype/categ_Cc.h: Likewise.
52964         * lib/unictype/categ_Cf.h: Likewise.
52965         * lib/unictype/categ_Cn.h: Likewise.
52966         * lib/unictype/categ_Co.h: Likewise.
52967         * lib/unictype/categ_Cs.h: Likewise.
52968         * lib/unictype/categ_L.h: Likewise.
52969         * lib/unictype/categ_Ll.h: Likewise.
52970         * lib/unictype/categ_Lm.h: Likewise.
52971         * lib/unictype/categ_Lo.h: Likewise.
52972         * lib/unictype/categ_Lt.h: Likewise.
52973         * lib/unictype/categ_Lu.h: Likewise.
52974         * lib/unictype/categ_M.h: Likewise.
52975         * lib/unictype/categ_Mc.h: Likewise.
52976         * lib/unictype/categ_Me.h: Likewise.
52977         * lib/unictype/categ_Mn.h: Likewise.
52978         * lib/unictype/categ_N.h: Likewise.
52979         * lib/unictype/categ_Nd.h: Likewise.
52980         * lib/unictype/categ_Nl.h: Likewise.
52981         * lib/unictype/categ_No.h: Likewise.
52982         * lib/unictype/categ_P.h: Likewise.
52983         * lib/unictype/categ_Pc.h: Likewise.
52984         * lib/unictype/categ_Pd.h: Likewise.
52985         * lib/unictype/categ_Pe.h: Likewise.
52986         * lib/unictype/categ_Pf.h: Likewise.
52987         * lib/unictype/categ_Pi.h: Likewise.
52988         * lib/unictype/categ_Po.h: Likewise.
52989         * lib/unictype/categ_Ps.h: Likewise.
52990         * lib/unictype/categ_S.h: Likewise.
52991         * lib/unictype/categ_Sc.h: Likewise.
52992         * lib/unictype/categ_Sk.h: Likewise.
52993         * lib/unictype/categ_Sm.h: Likewise.
52994         * lib/unictype/categ_So.h: Likewise.
52995         * lib/unictype/categ_Z.h: Likewise.
52996         * lib/unictype/categ_Zl.h: Likewise.
52997         * lib/unictype/categ_Zp.h: Likewise.
52998         * lib/unictype/categ_Zs.h: Likewise.
52999         * lib/unictype/categ_of.h: Likewise.
53000         * lib/unictype/combining.h: Likewise.
53001         * lib/unictype/ctype_alnum.h: Likewise.
53002         * lib/unictype/ctype_alpha.h: Likewise.
53003         * lib/unictype/ctype_blank.h: Likewise.
53004         * lib/unictype/ctype_cntrl.h: Likewise.
53005         * lib/unictype/ctype_digit.h: Likewise.
53006         * lib/unictype/ctype_graph.h: Likewise.
53007         * lib/unictype/ctype_lower.h: Likewise.
53008         * lib/unictype/ctype_print.h: Likewise.
53009         * lib/unictype/ctype_punct.h: Likewise.
53010         * lib/unictype/ctype_space.h: Likewise.
53011         * lib/unictype/ctype_upper.h: Likewise.
53012         * lib/unictype/ctype_xdigit.h: Likewise.
53013         * lib/unictype/decdigit.h: Likewise.
53014         * lib/unictype/digit.h: Likewise.
53015         * lib/unictype/mirror.h: Likewise.
53016         * lib/unictype/numeric.h: Likewise.
53017         * lib/unictype/pr_alphabetic.h: Likewise.
53018         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53019         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53020         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53021         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53022         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53023         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53024         * lib/unictype/pr_bidi_control.h: Likewise.
53025         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53026         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53027         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53028         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53029         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53030         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53031         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53032         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53033         * lib/unictype/pr_bidi_pdf.h: Likewise.
53034         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53035         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53036         * lib/unictype/pr_combining.h: Likewise.
53037         * lib/unictype/pr_composite.h: Likewise.
53038         * lib/unictype/pr_currency_symbol.h: Likewise.
53039         * lib/unictype/pr_dash.h: Likewise.
53040         * lib/unictype/pr_decimal_digit.h: Likewise.
53041         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53042         * lib/unictype/pr_deprecated.h: Likewise.
53043         * lib/unictype/pr_diacritic.h: Likewise.
53044         * lib/unictype/pr_extender.h: Likewise.
53045         * lib/unictype/pr_format_control.h: Likewise.
53046         * lib/unictype/pr_grapheme_base.h: Likewise.
53047         * lib/unictype/pr_grapheme_extend.h: Likewise.
53048         * lib/unictype/pr_grapheme_link.h: Likewise.
53049         * lib/unictype/pr_hex_digit.h: Likewise.
53050         * lib/unictype/pr_hyphen.h: Likewise.
53051         * lib/unictype/pr_id_continue.h: Likewise.
53052         * lib/unictype/pr_id_start.h: Likewise.
53053         * lib/unictype/pr_ideographic.h: Likewise.
53054         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53055         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53056         * lib/unictype/pr_ignorable_control.h: Likewise.
53057         * lib/unictype/pr_iso_control.h: Likewise.
53058         * lib/unictype/pr_join_control.h: Likewise.
53059         * lib/unictype/pr_left_of_pair.h: Likewise.
53060         * lib/unictype/pr_line_separator.h: Likewise.
53061         * lib/unictype/pr_logical_order_exception.h: Likewise.
53062         * lib/unictype/pr_lowercase.h: Likewise.
53063         * lib/unictype/pr_math.h: Likewise.
53064         * lib/unictype/pr_non_break.h: Likewise.
53065         * lib/unictype/pr_not_a_character.h: Likewise.
53066         * lib/unictype/pr_numeric.h: Likewise.
53067         * lib/unictype/pr_other_alphabetic.h: Likewise.
53068         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53069         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53070         * lib/unictype/pr_other_id_continue.h: Likewise.
53071         * lib/unictype/pr_other_id_start.h: Likewise.
53072         * lib/unictype/pr_other_lowercase.h: Likewise.
53073         * lib/unictype/pr_other_math.h: Likewise.
53074         * lib/unictype/pr_other_uppercase.h: Likewise.
53075         * lib/unictype/pr_paired_punctuation.h: Likewise.
53076         * lib/unictype/pr_paragraph_separator.h: Likewise.
53077         * lib/unictype/pr_pattern_syntax.h: Likewise.
53078         * lib/unictype/pr_pattern_white_space.h: Likewise.
53079         * lib/unictype/pr_private_use.h: Likewise.
53080         * lib/unictype/pr_punctuation.h: Likewise.
53081         * lib/unictype/pr_quotation_mark.h: Likewise.
53082         * lib/unictype/pr_radical.h: Likewise.
53083         * lib/unictype/pr_sentence_terminal.h: Likewise.
53084         * lib/unictype/pr_soft_dotted.h: Likewise.
53085         * lib/unictype/pr_space.h: Likewise.
53086         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53087         * lib/unictype/pr_titlecase.h: Likewise.
53088         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53089         * lib/unictype/pr_unified_ideograph.h: Likewise.
53090         * lib/unictype/pr_uppercase.h: Likewise.
53091         * lib/unictype/pr_variation_selector.h: Likewise.
53092         * lib/unictype/pr_white_space.h: Likewise.
53093         * lib/unictype/pr_xid_continue.h: Likewise.
53094         * lib/unictype/pr_xid_start.h: Likewise.
53095         * lib/unictype/pr_zero_width.h: Likewise.
53096         * lib/unictype/scripts.h: Likewise.
53097         * lib/unictype/scripts_byname.gperf: Likewise.
53098         * lib/unictype/sy_c_ident.h: Likewise.
53099         * lib/unictype/sy_c_whitespace.h: Likewise.
53100         * lib/unictype/sy_java_ident.h: Likewise.
53101         * lib/unictype/sy_java_whitespace.h: Likewise.
53102
53103         * lib/unictype/Makefile: New file.
53104         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53105         glibc.
53106         * lib/unictype/3level.h: New file, copied from glibc.
53107         * lib/unictype/3levelbit.h: New file.
53108
53109 2007-11-11  Bruno Haible  <bruno@clisp.org>
53110
53111         * modules/gperf: New file.
53112         * modules/iconv_open (Depends-on): Add it.
53113         (Makefile.am): Remove the GPERF definition.
53114
53115 2007-11-11  Bruno Haible  <bruno@clisp.org>
53116
53117         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53118         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53119
53120 2007-11-11  Bruno Haible  <bruno@clisp.org>
53121
53122         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53123         (usage): Remove function.
53124
53125 2007-11-11  Bruno Haible  <bruno@clisp.org>
53126
53127         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53128         gl_FUNC_CEILF_LIBS.
53129         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53130         gl_FUNC_CEIL_LIBS.
53131         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53132         gl_FUNC_CEILL_LIBS.
53133         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53134         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53135         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53136
53137 2007-11-11  Bruno Haible  <bruno@clisp.org>
53138
53139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53140         roundf were declared but do not exist on functions.
53141         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53142         roundl were declared but do not exist on functions.
53143         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53144         HAVE_FLOORL_AND_CEILL, respectively.
53145         Needed for Sun C on Solaris 10.
53146
53147 2007-11-11  Bruno Haible  <bruno@clisp.org>
53148
53149         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53150         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53151         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53152         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53153         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53154         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53155         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53156         HAVE_DECL_ROUNDF.
53157         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53158         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53160         of HAVE_DECL_ROUND*.
53161         * modules/math (Makefile.am): Update.
53162
53163 2007-11-10  Bruno Haible  <bruno@clisp.org>
53164
53165         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53166         ptrdiff_t as m4/intl.m4.
53167
53168 2007-11-10  Jim Meyering  <meyering@redhat.com>
53169
53170         Avoid link failure for the argmatch test.
53171         * tests/test-argmatch.c (usage): Define function to avoid a link
53172         failure: argmatch_die requires a usage function.
53173
53174 2007-11-09  Bruno Haible  <bruno@clisp.org>
53175
53176         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53177         * doc/functions/vsnprintf.texi: Likewise.
53178         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53179         with a size argument < 2.
53180
53181 2007-11-09  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53184         buffer. Fixes an inefficiency introduced on 2007-11-03.
53185
53186 2007-11-09  Bruno Haible  <bruno@clisp.org>
53187
53188         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53189         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53190
53191 2007-11-08  Jim Meyering  <meyering@redhat.com>
53192
53193         Change cache variable name prefix "jm_" to "gl_" everywhere.
53194         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53195         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53196         * m4/uptime.m4: s/gl_/jm_/
53197
53198 2007-11-07  Bruno Haible  <bruno@clisp.org>
53199
53200         Update to GNU gettext 0.17.
53201         * m4/intl.m4: Update to GNU gettext 0.17.
53202         * m4/po.m4: Likewise.
53203         * modules/gettext (Files): Remove m4/ulonglong.m4.
53204         (configure.ac): Require gettext infrastructure from version 0.17.
53205
53206 2007-11-06  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53209         symbolic values are not defined in a public header.
53210         * lib/freadable.c (freadable) [QNX]: Likewise.
53211         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53212         * lib/freading.c (freading) [QNX]: Likewise.
53213         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53214         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53215         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53216         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53217         Reported by Alain Magloire.
53218
53219         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53220
53221 2007-11-05  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53224         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53225         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53226         Reported by Eric Blake.
53227
53228 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53229             Bruno Haible  <bruno@clisp.org>
53230
53231         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53232         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53233         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53234         (malloc): Undefine also before including <stdlib.h>.
53235         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53236         Needed on OSF/1 4.0.
53237
53238 2007-11-05  Jim Meyering  <meyering@redhat.com>
53239
53240         git-version-gen: sync from coreutils.
53241         * build-aux/git-version-gen: Add comments.
53242         Change the first '-' to '.' in the snapshot version string,
53243         e.g., 6.9-377-08144 -> 6.9.377-08144
53244         Remove first parameter.
53245         Don't declare a version "-dirty" merely because a time
53246         stamp has changed.
53247
53248 2007-11-04  Bruno Haible  <bruno@clisp.org>
53249
53250         * lib/lock.h: Protect all macro definitions containing an 'if'
53251         statement through a "do { ... } while (0)".
53252         * lib/tls.h: Likewise.
53253
53254 2007-11-04  Bruno Haible  <bruno@clisp.org>
53255
53256         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53257
53258 2007-11-04  Bruno Haible  <bruno@clisp.org>
53259
53260         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53261         * modules/fprintf-posix (Depends-on): Add nocrash.
53262         * modules/snprintf-posix (Depends-on): Likewise.
53263         * modules/sprintf-posix (Depends-on): Likewise.
53264         * modules/vasnprintf-posix (Depends-on): Likewise.
53265         * modules/vasprintf-posix (Depends-on): Likewise.
53266         * modules/vfprintf-posix (Depends-on): Likewise.
53267         * modules/vsnprintf-posix (Depends-on): Likewise.
53268         * modules/vsprintf-posix (Depends-on): Likewise.
53269         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53271         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53272         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53274         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53275         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53276
53277 2007-11-04  Bruno Haible  <bruno@clisp.org>
53278
53279         * modules/nocrash: New file.
53280         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53281         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53282
53283 2007-11-04  Bruno Haible  <bruno@clisp.org>
53284
53285         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53286         precision handling.
53287         * tests/test-vasprintf-posix.c (test_function): Likewise.
53288         * tests/test-snprintf-posix.h (test_function): Likewise.
53289         * tests/test-sprintf-posix.h (test_function): Likewise.
53290
53291         Fix *printf behaviour for large precisions on mingw and BeOS.
53292         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53293         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53295         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53297         gl_PRINTF_PRECISION and test its result. Invoke
53298         gl_PREREQ_VASNPRINTF_PRECISION.
53299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53306         * doc/functions/fprintf.texi: Update.
53307         * doc/functions/printf.texi: Update.
53308         * doc/functions/snprintf.texi: Update.
53309         * doc/functions/sprintf.texi: Update.
53310         * doc/functions/vfprintf.texi: Update.
53311         * doc/functions/vprintf.texi: Update.
53312         * doc/functions/vsnprintf.texi: Update.
53313         * doc/functions/vsprintf.texi: Update.
53314
53315 2007-11-04  Bruno Haible  <bruno@clisp.org>
53316
53317         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53318
53319 2007-11-04  Bruno Haible  <bruno@clisp.org>
53320
53321         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53322         Reported by Sylvain Beucler <beuc@gnu.org>.
53323
53324 2007-11-03  Bruno Haible  <bruno@clisp.org>
53325
53326         * tests/test-fprintf-posix2.sh: New file.
53327         * tests/test-fprintf-posix2.c: New file.
53328         * modules/fprintf-posix-tests (Files): Add them.
53329         (TESTS): Add test-fprintf-posix2.sh.
53330         (configure.ac): Check for getrlimit and setrlimit.
53331         (check_PROGRAMS): Add test-fprintf-posix2.
53332
53333         * tests/test-printf-posix2.sh: New file.
53334         * tests/test-printf-posix2.c: New file.
53335         * modules/printf-posix-tests (Files): Add them.
53336         (TESTS): Add test-printf-posix2.sh.
53337         (configure.ac): Check for getrlimit and setrlimit.
53338         (check_PROGRAMS): Add test-printf-posix2.
53339
53340         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53341         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53342         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53343         (decode_double): New function, copied from decode_long_double.
53344         (scale10_round_decimal_decoded): New function, extracted from
53345         scale10_round_decimal_long_double.
53346         (scale10_round_decimal_long_double): Use it.
53347         (scale10_round_decimal_double): New function.
53348         (floorlog10): New function.
53349         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53351         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53352         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53353         gl_PRINTF_ENOMEM and test its result. Invoke
53354         gl_PREREQ_VASNPRINTF_ENOMEM.
53355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53356         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53357         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53358         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53359         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53361         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53362         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53363         * modules/snprintf-posix (Depends-on): Likewise.
53364         * modules/sprintf-posix (Depends-on): Likewise.
53365         * modules/vasnprintf-posix (Depends-on): Likewise.
53366         * modules/vasprintf-posix (Depends-on): Likewise.
53367         * modules/vfprintf-posix (Depends-on): Likewise.
53368         * modules/vsnprintf-posix (Depends-on): Likewise.
53369         * modules/vsprintf-posix (Depends-on): Likewise.
53370         * doc/functions/fprintf.texi: Update.
53371         * doc/functions/printf.texi: Update.
53372         * doc/functions/snprintf.texi: Update.
53373         * doc/functions/sprintf.texi: Update.
53374         * doc/functions/vfprintf.texi: Update.
53375         * doc/functions/vprintf.texi: Update.
53376         * doc/functions/vsnprintf.texi: Update.
53377         * doc/functions/vsprintf.texi: Update.
53378
53379 2007-11-03  Bruno Haible  <bruno@clisp.org>
53380
53381         * modules/frexp-nolibm-tests: New file.
53382
53383         * modules/frexp-nolibm: New file.
53384         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53385
53386 2007-11-03  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53389         value is C99 compliant.
53390         Needed for OSF/1 5.1.
53391
53392 2007-11-03  Bruno Haible  <bruno@clisp.org>
53393
53394         Fix out-of-memory handling of vasnprintf.
53395         * lib/printf-parse.c: Include <errno.h>.
53396         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53397         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53398         is already set.
53399
53400 2007-11-02  Eric Blake  <ebb9@byu.net>
53401
53402         Fix tests on cygwin.
53403         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53404
53405 2007-11-01  Bruno Haible  <bruno@clisp.org>
53406
53407         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53408         warning.
53409         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53410         needed for POSIX compatibility.
53411
53412 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53413
53414         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53415         for compatibility with GNU.
53416
53417 2007-11-01  Bruno Haible  <bruno@clisp.org>
53418
53419         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53420         (putenv): Renamed from rpl_putenv. Change argument type from
53421         'const char *' to 'char *'.
53422         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53423         of defining putenv in config.h, just set REPLACE_PUTENV.
53424         * modules/putenv (Depends-on): Add stdlib.
53425         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53426         (Include): Use <stdlib.h>.
53427         * lib/stdlib.in.h (putenv): New declaration.
53428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53429         REPLACE_PUTENV.
53430         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53431         REPLACE_PUTENV.
53432         Needed for MacOS X 10.5.0.
53433         Reported by Peter O'Gorman <peter@pogma.com>.
53434
53435 2007-11-01  Jim Meyering  <meyering@redhat.com>
53436
53437         Treat an empty date string exactly like "0".
53438         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53439         if the remaining date string (to be parsed) is empty, use "0".
53440         Reported by Mischa Molhoek and discussed in this thread:
53441         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53442
53443 2007-10-31  Bruno Haible  <bruno@clisp.org>
53444
53445         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53446         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53447         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53448         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53449         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53450         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53451
53452 2007-10-31  Bruno Haible  <bruno@clisp.org>
53453
53454         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53455         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53456         (AC_TYPE_LONG_LONG_INT): Use it.
53457         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53458         it as well.
53459         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53460         to m4/longlong.m4.
53461         * modules/stdint (Files): Remove m4/ulonglong.m4.
53462         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53463         m4/ulonglong.m4.
53464         * modules/strtoumax (Files): Likewise.
53465
53466 2007-10-30  Bruno Haible  <bruno@clisp.org>
53467
53468         * modules/xvasprintf-posix: New file.
53469         Suggested by Eric Blake.
53470
53471 2007-10-30  Bruno Haible  <bruno@clisp.org>
53472
53473         * modules/xprintf-posix-tests: New file.
53474         * tests/test-xprintf-posix.sh: New file.
53475         * tests/test-xprintf-posix.c: New file.
53476         * tests/test-xfprintf-posix.c: New file.
53477
53478         * modules/xprintf-posix: New file.
53479
53480 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53481
53482         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53483         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53484         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53485
53486 2007-10-29  Bruno Haible  <bruno@clisp.org>
53487
53488         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53489         contain the special marker '_cv_'.
53490         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53491         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53492         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53493         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53494         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53495         Reported by Ralf Wildenhues.
53496
53497 2007-10-29  Bruno Haible  <bruno@clisp.org>
53498
53499         * gnulib-tool (func_import): When --lgpl is not specified, set
53500         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53501         GPLv3.
53502         Reported by Simon Josefsson.
53503
53504 2007-10-28  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53507         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53508         HAVE_DECL_ISFINITE.
53509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53510         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53511         HAVE_DECL_ISFINITE.
53512
53513 2007-10-28  Bruno Haible  <bruno@clisp.org>
53514
53515         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53516         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53517
53518 2007-10-28  Bruno Haible  <bruno@clisp.org>
53519
53520         Fix link errors with Sun C 5.0 on Solaris 10.
53521         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53522         function is declared but not present in the compiler's libm.
53523         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53524         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53525         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53526         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53527         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53528         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53529         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53531         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53532         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53533         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53534         HAVE_DECL_FLOORL.
53535
53536 2007-10-28  Bruno Haible  <bruno@clisp.org>
53537
53538         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53539         gl_FUNC_FLOORL. Cache the result.
53540         (gl_FUNC_FLOORL): Use it.
53541         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53542         gl_FUNC_CEILL. Cache the result.
53543         (gl_FUNC_CEILL): Use it.
53544
53545         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53546         gl_FUNC_FLOOR. Cache the result.
53547         (gl_FUNC_FLOOR): Use it.
53548         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53549         gl_FUNC_CEIL. Cache the result.
53550         (gl_FUNC_CEIL): Use it.
53551
53552         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53553         gl_FUNC_FLOORF. Cache the result.
53554         (gl_FUNC_FLOORF): Use it.
53555         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53556         gl_FUNC_CEILF. Cache the result.
53557         (gl_FUNC_CEILF): Use it.
53558
53559 2007-10-28  Bruno Haible  <bruno@clisp.org>
53560
53561         * gnulib-tool: Allow specifying the LGPL version number through
53562         --lgpl=2 or --lgpl=3.
53563         (func_usage): Document --lgpl with argument.
53564         Handle --lgpl=... arguments.
53565         (func_import): Recognize also gl_LGPL calls with an argument. When
53566         --lgpl=2 is used and the module's license is just LGPL, report an
53567         error. Set sed_transform_lib_file according to the lgpl variable. In
53568         the generated files, use --lgpl or gl_LGPL invocations with argument,
53569         if necessary.
53570         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53571         an LGPv2+ license.
53572         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53573         gl_LGPL macro.
53574
53575 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53576             Bruno Haible  <bruno@clisp.org>
53577
53578         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53579         (u16_uctomb_aux): Likewise.
53580         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53581         !HAVE_INLINE.
53582         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53583
53584 2007-10-28  Bruno Haible  <bruno@clisp.org>
53585
53586         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53587         Invoke AM_GETTEXT_OPTION if it exists.
53588         * modules/vasprintf: Likewise.
53589         * modules/verror: Likewise.
53590         * modules/xprintf: Likewise.
53591         * modules/xvasprintf: Likewise.
53592
53593 2007-10-27  Ben Pfaff  <blp@gnu.org>
53594
53595         * lib/math.in.h: Define isfinite macro and prototypes for
53596         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53597         implementations.
53598         * m4/math_h.m4: New substitutions for isfinite module.
53599         * lib/isfinite.c: New file.
53600         * m4/isfinite.m4: New file.
53601         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53602         * modules/isfinite: New file.
53603         * modules/isfinite-tests: New file.
53604         * tests/tests-isfinite.c: New file.
53605         * doc/functions/isfinite.texi: Mention isfinite module.
53606         * MODULES.html.sh: Mention new module.
53607
53608 2007-10-27  Ben Pfaff  <blp@gnu.org>
53609
53610         Ralf Wildenhues reported that Tru64 4.0D declares the round
53611         functions but does not have definitions.
53612         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53613         cannot be found in any library, set the output variable to
53614         "missing" instead of "".
53615         * m4/round.m4: Also use our substitute if we cannot find round in
53616         any library, even if it is declared.
53617         * m4/roundf.m4: Likewise for roundf.
53618         * m4/roundl.m4: Likewise for roundl.
53619         * lib/math.in.h: Undefine roundf, round, roundl before defining
53620         their replacements, to allow for hypothetical systems where these
53621         may be defined as macros but not available in libraries.
53622
53623 2007-10-27  Bruno Haible  <bruno@clisp.org>
53624
53625         * doc/gnulib.texi: Invoke @firstparagraphindent.
53626         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53627         changes in gnulib.
53628         (Source changes): New section.
53629
53630 2007-10-26  Bruno Haible  <bruno@clisp.org>
53631
53632         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53633         borrowed from autoconf.
53634
53635 2007-10-26  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53638         strerror returned the empty string. Needed on HP-UX 11.00.
53639
53640 2007-10-24  Micah Cowan  <micah@cowan.name>
53641
53642         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53643         * build-aux/bootstrap: Remove support for now-unnecessary option,
53644         --cvs-user, and envvars CVS_USER, CVS_RSH.
53645
53646 2007-10-24  Jim Meyering  <meyering@redhat.com>
53647
53648         Avoid diagnostics from sha1sum when there is no cached checksum.
53649         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53650         if the po.s1 file hasn't been created yet.
53651
53652         * build-aux/bootstrap: Sync from coreutils:
53653         2007-10-24  Jim Meyering  <meyering@redhat.com>
53654         Get gnulib from the git repository, not from an obsolete cvs one.
53655         * build-aux/bootstrap: Suggestion from Micah Cowan.
53656         2007-10-04  Jim Meyering  <jim@meyering.net>
53657         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53658         (update_po_files): Work also when there are no .po files in po/.
53659
53660 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53661
53662         * README: Append ".git" to git and cg examples.
53663         Problem reported by Benoit Sigoure.
53664
53665 2007-10-23  Micah Cowan  <micah@cowan.name>
53666
53667         * users.txt: Add wget.
53668
53669 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53670
53671         Fix linking of some unistdio tests on FreeBSD.
53672         * modules/unistdio/u16-vsnprintf-tests
53673         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53674         * modules/unistdio/u16-vsprintf-tests
53675         (test_u16_vsnprintf1_LDADD): Likewise.
53676         * modules/unistdio/u32-vsnprintf-tests
53677         (test_u32_vsnprintf1_LDADD): Likewise.
53678         * modules/unistdio/u32-vsprintf-tests
53679         (test_u32_vsprintf1_LDADD): Likewise.
53680         * modules/unistdio/u8-vsnprintf-tests
53681         (test_u8_vsnprintf1_LDADD): Likewise.
53682         * modules/unistdio/u8-vsprintf-tests
53683         (test_u8_vsprintf1_LDADD): Likewise.
53684         * modules/unistdio/ulc-vsnprintf-tests
53685         (test_ulc_vsnprintf1_LDADD): Likewise.
53686         * modules/unistdio/ulc-vsprintf-tests
53687         (test_ulc_vsprintf1_LDADD): Likewise.
53688
53689         Fix linking of some uniconv tests on FreeBSD.
53690         * modules/uniconv/u16-conv-from-enc-tests
53691         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53692         * modules/uniconv/u16-conv-to-enc-tests
53693         (test_u16_conv_to_enc_LDADD): Likewise.
53694         * modules/uniconv/u16-strconv-from-enc-tests
53695         (test_u16_strconv_from_enc_LDADD): Likewise.
53696         * modules/uniconv/u16-strconv-to-enc-tests
53697         (test_u16_strconv_to_enc_LDADD): Likewise.
53698         * modules/uniconv/u32-conv-from-enc-tests
53699         (test_u32_conv_from_enc_LDADD): Likewise.
53700         * modules/uniconv/u32-conv-to-enc-tests
53701         (test_u32_conv_to_enc_LDADD): Likewise.
53702         * modules/uniconv/u32-strconv-from-enc-tests
53703         (test_u32_strconv_from_enc_LDADD): Likewise.
53704         * modules/uniconv/u32-strconv-to-enc-tests
53705         (test_u32_strconv_to_enc_LDADD): Likewise.
53706         * modules/uniconv/u8-conv-from-enc-tests
53707         (test_u8_conv_from_enc_LDADD): Likewise.
53708         * modules/uniconv/u8-conv-to-enc-tests
53709         (test_u8_conv_to_enc_LDADD): Likewise.
53710         * modules/uniconv/u8-strconv-from-enc-tests
53711         (test_u8_strconv_from_enc_LDADD): Likewise.
53712         * modules/uniconv/u8-strconv-to-enc-tests
53713         (test_u8_strconv_to_enc_LDADD): Likewise.
53714
53715 2007-10-22  Bruno Haible  <bruno@clisp.org>
53716
53717         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53718         size.
53719
53720 2007-10-22  Eric Blake  <ebb9@byu.net>
53721
53722         Tweak x*printf documentation.
53723         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53724         variable name and comments.
53725         Suggested by Bruno Haible.
53726
53727 2007-10-22  Bruno Haible  <bruno@clisp.org>
53728
53729         * lib/acl.c (copy_acl): Fix file name in comment.
53730
53731 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53732
53733         Fix Tru64 problem with stdbool.h.
53734         * lib/stdbool.in.h (false, true):
53735         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53736         Don't declare as an enum in this situation; it runs afoul of Tru64.
53737         Problem reported by Steven M. Schweda in
53738         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53739
53740 2007-10-22  Eric Blake  <ebb9@byu.net>
53741
53742         Also wrap vf?printf.
53743         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53744         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53745         (xvprintf, xvfprintf): New functions.
53746
53747 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53748
53749         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53750         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53751
53752         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53753         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53754
53755 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53756
53757         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53758         by Bruno Haible.
53759
53760 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53761
53762         * lib/getloadavg.c
53763         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53764         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53765
53766         * tests/test-i-ring.c: Work for C89.
53767
53768 2007-10-22  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53771         -1u, in preprocessor expression, so that we don't test for the bug
53772         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53774
53775 2007-10-22  Eric Blake  <ebb9@byu.net>
53776
53777         * tests/test-yesno.sh: Silence stderr during test.
53778
53779 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53780
53781         * modules/crypto/gc-camellia: New file.
53782
53783         * m4/gc-camellia.m4: New file.
53784
53785         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53786
53787         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53788
53789 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53790
53791         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53792         --help to stdout.  Reported by sms@antinode.org (Steven
53793         M. Schweda).
53794
53795 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53796
53797         * users.txt: Fix link to libksba.
53798
53799 2007-10-21  Ben Pfaff  <blp@gnu.org>
53800
53801         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53802         round.c roundf implementation that depends on floorf and ceilf to
53803         be tested unconditionally.
53804
53805 2007-10-21  Ben Pfaff  <blp@gnu.org>
53806
53807         * m4/check-libm-func.m4: Removed.
53808         * m4/check-math-lib.m4: New file.
53809         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53810         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53811         definition and lack of AC_LIBOBJ([roundf]).
53812         * m4/roundl.m4: Ditto, and similarly for roundl.
53813         * modules/round: Reference new m4 file.
53814         * modules/roundf: Ditto.
53815         * modules/roundl: Ditto.
53816         * tests/test-round2.c (main): Use ROUND instead of round.
53817         Bug report from Bruno Haible.
53818
53819 2007-10-21  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53822         context.
53823
53824 2007-10-21  Bruno Haible  <bruno@clisp.org>
53825
53826         * tests/test-wcwidth.c (main): Allow negative result for some control
53827         characters.
53828
53829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53830         Needed on OSF/1 5.1.
53831
53832 2007-10-21  Bruno Haible  <bruno@clisp.org>
53833
53834         * tests/test-floorf1.c: Include isnanf.h.
53835         (main): Use isnanf() instead of isnan().
53836         * tests/test-ceilf1.c: Include isnanf.h.
53837         (main): Use isnanf() instead of isnan().
53838         * tests/test-truncf1.c: Include isnanf.h.
53839         (main): Use isnanf() instead of isnan().
53840         * tests/test-roundf1.c: Include isnanf.h.
53841         (main): Use isnanf() instead of isnan().
53842
53843 2007-10-21  Eric Blake  <ebb9@byu.net>
53844
53845         * users.txt: Update URL for m4.
53846
53847 2007-10-21  Bruno Haible  <bruno@clisp.org>
53848
53849         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53850
53851 2007-10-21  Bruno Haible  <bruno@clisp.org>
53852
53853         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53854         Git's management files if the CVS files are not present.
53855
53856 2007-10-20  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53859         gcc-3.4.x.
53860
53861 2007-10-20  Ben Pfaff  <blp@gnu.org>
53862
53863         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53864         implementations.
53865         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53866         * lib/round.c: New file.
53867         * lib/roundf.c: New file.
53868         * lib/roundl.c: New file.
53869         * m4/round.m4: New file.
53870         * m4/roundf.m4: New file.
53871         * m4/roundl.m4: New file.
53872         * m4/check-libm-func-m4: New file.
53873         * modules/math: Replace round, roundf, roundl related @VARS@ in
53874         math.in.h.
53875         * modules/round: New file.
53876         * modules/round-tests: New file.
53877         * modules/roundf: New file.
53878         * modules/roundf-tests: New file.
53879         * modules/roundl: New file.
53880         * modules/roundl-tests: New file.
53881         * tests/test-round1.c: New file.
53882         * tests/test-round2.c: New file.
53883         * tests/test-roundf1.c: New file.
53884         * tests/test-roundf2.c: New file.
53885         * tests/test-roundl.c: New file.
53886         * doc/functions/round.texi: Mention round module.
53887         * doc/functions/roundf.texi: Mention roundf module.
53888         * doc/functions/roundl.texi: Mention roundl module.
53889         * MODULES.html.sh: Mention new modules.
53890         Thanks to Bruno Haible for suggestions.
53891
53892 2007-10-20  Jim Meyering  <meyering@redhat.com>
53893
53894         * lib/xprintf.c: Include <config.h> unconditionally.
53895
53896         Change xprintf's license to GPL.
53897         * modules/xprintf (License): s/LGPL/GPL/, since this module
53898         depends on modules (exit and exitfail) which are GPL.
53899         Suggestion from Bruno Haible.
53900
53901         xprintf fixes.
53902         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53903         Use a clearer diagnostic.
53904         Patch from Bruno Haible.
53905
53906 2007-10-20  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53909         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53910         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53911
53912 2007-10-20  Bruno Haible  <bruno@clisp.org>
53913
53914         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53915         precision in the comparison result > x - 1 or similar.
53916         * tests/test-ceilf2.c (correct_result_p): Likewise.
53917         * tests/test-truncf2.c (correct_result_p): Likewise.
53918         * tests/test-trunc2.c (correct_result_p): Likewise.
53919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53920
53921 2007-10-20  Bruno Haible  <bruno@clisp.org>
53922
53923         * modules/ceil: New file.
53924         * m4/ceil.m4: New file.
53925         * doc/functions/ceil.texi: Mention the 'ceil' module.
53926
53927 2007-10-20  Bruno Haible  <bruno@clisp.org>
53928
53929         * modules/floor: New file.
53930         * m4/floor.m4: New file.
53931         * doc/functions/floor.texi: Mention the 'floor' module.
53932
53933 2007-10-20  Bruno Haible  <bruno@clisp.org>
53934
53935         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53936         of %a.
53937         * modules/floorf-tests (Depends-on): Likewise.
53938         * modules/truncf-tests (Depends-on): Likewise.
53939         * modules/trunc-tests (Depends-on): Likewise.
53940         Reported by Ben Pfaff.
53941
53942 2007-10-19  Jim Meyering  <meyering@redhat.com>
53943
53944         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53945         Don't bother testing specific errno values.  Just test ferror.
53946
53947         New module: xprintf
53948         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53949
53950 2007-10-19  Bruno Haible  <bruno@clisp.org>
53951
53952         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53953         syntax.
53954         * modules/javaexec (Makefile.am): Likewise.
53955         * modules/relocatable-prog (Makefile.am): Likewise.
53956         Suggested by Jim Meyering.
53957
53958 2007-10-18  Bruno Haible  <bruno@clisp.org>
53959
53960         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53961         Reported by Jim Meyering.
53962
53963 2007-10-18  Eric Blake  <ebb9@byu.net>
53964
53965         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53966
53967 2007-10-18  Bruno Haible  <bruno@clisp.org>
53968
53969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53970         the format string into writable memory. Needed in Fortify conditions.
53971
53972 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53973             Bruno Haible  <bruno@clisp.org>
53974
53975         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53976         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53977         * modules/trim (Depends-on): Add mbchar.
53978         (configure.ac): Add gl_FUNC_MBRTOWC.
53979         (Makefile.am): Augment lib_SOURCES.
53980
53981 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         Modify glob.c to use fstatat and dirfd, to simplify it.
53984         Suggested by Eric Blake.
53985         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53986         Don't include <stdbool.h>; not used.
53987         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53988         (link_exists_p): Simplify implementation, since we can now assume
53989         dirfd and fstatat.
53990         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53991
53992 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53993
53994         * gnulib-tool (func_get_dependencies): Fix sed script to
53995         match only tests.
53996
53997 2007-10-17  Bruno Haible  <bruno@clisp.org>
53998
53999         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54000         allow locale names without encoding suffix.
54001         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54002         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54003
54004 2007-10-16  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54007         * lib/getgroups.c (getgroups): Likewise.
54008         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54009
54010 2007-10-16  Bruno Haible  <bruno@clisp.org>
54011
54012         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54013         * modules/malloc-posix (License): Likewise.
54014         * modules/realloc-posix (License): Likewise.
54015         * modules/calloc-posix (License): Likewise.
54016         * modules/intprops (License): Change from GPL to LGPL, with
54017         Paul Eggert's approval.
54018
54019 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         Merge glibc changes into lib/glob.c.
54022
54023         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54024         2007-10-15 04:59:03 UTC.  Here are the changes:
54025
54026         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54027
54028         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54029
54030         * lib/glob.c: Add some branch prediction throughout.
54031
54032         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54033
54034         [BZ #5103]
54035         * lib/glob.c (glob): Recognize patterns starting \/.
54036
54037         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54038
54039         [BZ #3996]
54040         * lib/glob.c (attribute_hidden): Define if not defined.
54041         (glob): Unescape dirname, filename or username when needed and not
54042         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54043         is NULL.  Handle unescaped [ in pattern without closing ].
54044         Don't pass GLOB_CHECK down to recursive glob for directories.
54045         (__glob_pattern_type): New function.
54046         (__glob_pattern_p): Implement using __glob_pattern_type.
54047         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54048         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54049         Remove unreachable code.
54050
54051         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54052
54053         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54054         explain why there are no leaks.
54055
54056         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54057
54058         [BZ #3253]
54059         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54060         time, rather allocate increasingly bigger arrays of pointers, if
54061         possible with alloca, if too large with malloc.
54062
54063 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54066         Problem reported by H.Merijn Brand in
54067         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54068         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54069         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54070
54071 2007-10-15  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54074         with explicit rpl_ prefix.
54075         * lib/fopen.c (fopen): Likewise.
54076         * lib/freopen.c (freopen): Likewise.
54077         * lib/iconv.c (iconv): Likewise.
54078         * lib/iconv_close.c (iconv_close): Likewise.
54079
54080 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54081
54082         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54083
54084 2007-10-15  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54087         <stddef.h> instead of <stdlib.h> since we only need NULL.
54088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54089
54090 2007-10-15  Bruno Haible  <bruno@clisp.org>
54091
54092         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54093         Replace paragraph talking about LIBOBJS.
54094         Reported by Colin Watson <cjwatson@debian.org>.
54095
54096 2007-10-15  Bruno Haible  <bruno@clisp.org>
54097
54098         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54099         <stdlib.h> before using NULL.
54100
54101 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54102
54103         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54104         Reported by Albert Chin <china@thewrittenword.com>.
54105
54106 2007-10-14  Bruno Haible  <bruno@clisp.org>
54107
54108         * modules/iconv_open-utf-tests: New file.
54109         * tests/test-iconv-utf.c: New file.
54110
54111         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54112         * modules/iconv_open-utf: New file.
54113         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54114         (iconv, iconv_close): New declarations.
54115         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54116         be defined.
54117         (iconv_open): Add special handling of conversion between UTF-8 and
54118         UTF-{16,32}{BE,LE}.
54119         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54120         * lib/iconv_close.c: New file.
54121         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54122         gl_FUNC_ICONV_OPEN.
54123         (gl_FUNC_ICONV_OPEN): Use it.
54124         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54125         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54126         and REPLACE_ICONV_UTF.
54127         * modules/iconv_open (Depends-on): Add c-strcase.
54128         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54129         ICONV_CONST.
54130         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54131
54132 2007-10-13  Albert Chin  <china@thewrittenword.com>
54133             Bruno Haible  <bruno@clisp.org>
54134
54135         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54136         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54137
54138 2007-10-13  Bruno Haible  <bruno@clisp.org>
54139
54140         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54141         defined, use the ISO C99 inline semantics.
54142         * lib/argp.h (ARGP_EI): Likewise.
54143
54144 2007-10-13  Bruno Haible  <bruno@clisp.org>
54145
54146         Handle 'inline' change in gcc 4.3.0.
54147         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54148         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54149         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54150         argp_fmtstream_point): Disable 'extern' declaration if the function
54151         definition is going to be provided inline.
54152         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54153         semantics, not the ISO C99 inline semantics.
54154         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54155         'extern' declaration if the function definition is going to be provided
54156         inline.
54157         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54158         the GNU C inline semantics, not the ISO C99 inline semantics. With
54159         GCC 4.2, avoid a warning.
54160
54161 2007-10-13  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/freading.h (freading): Enable the use of __freading for
54164         glibc >= 2.7.
54165         * lib/freading.c (freading): Likewise.
54166
54167 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54170         "warning: C99 inline functions are not supported; using GNU89".
54171
54172 2007-10-12  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54175         of 2.
54176         * tests/test-ceilf2.c: New file.
54177         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54178
54179         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54180         * modules/ceilf-tests: Update.
54181
54182 2007-10-12  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54185         of 2.
54186         * tests/test-floorf2.c: New file.
54187         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54188
54189         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54190         * modules/floorf-tests: Update.
54191
54192 2007-10-12  Bruno Haible  <bruno@clisp.org>
54193
54194         * tests/test-trunc2.c: New file.
54195         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54196
54197         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54198         * modules/trunc-tests: Update.
54199
54200 2007-10-12  Bruno Haible  <bruno@clisp.org>
54201
54202         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54203         of 2.
54204         * tests/test-truncf2.c: New file.
54205         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54206
54207         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54208         * modules/truncf-tests: Update.
54209
54210 2007-10-11  Eric Blake  <ebb9@byu.net>
54211
54212         Don't claim strerror is broken on Interix.
54213         * doc/functions/strerror.texi (strerror): Known broken systems are
54214         now Solaris 8, and not Interix.
54215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54216         Interix on cross-compile.
54217         Reported by Martin Koeppe in
54218         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54219
54220 2007-10-11  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/i-ring-tests: New file.
54223         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54224         instead of assert.
54225
54226 2007-10-11  Bruno Haible  <bruno@clisp.org>
54227
54228         * modules/filenamecat-tests: New file.
54229         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54230         * lib/filenamecat.c: Remove test code.
54231
54232 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54233
54234         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54235
54236         * lib/strerror.c: Include <string.h> always, to test interface,
54237         and to remove the need for the dummy.
54238         Include intprops.h to compute width instead of doing it ourselves
54239         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54240         (strerror): Define it to return NULL if there's no system strerror.
54241         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54242         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54243         ancient pre-strerror Unix systems well any more.  Saying "unknown
54244         system error" is enough.
54245         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54246         simpler strerror.c implementation.
54247         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54248         Simplify the tests to reflect the simpler strerror implementation.
54249         * modules/strerror (Depends-on): Add intprops.
54250
54251 2007-10-09  Eric Blake  <ebb9@byu.net>
54252
54253         Silence test-fpending.
54254         * modules/fpending-tests (Files): Add wrapper script.
54255         * tests/test-fpending.sh: New file.
54256
54257 2007-10-09  Bruno Haible  <bruno@clisp.org>
54258
54259         * MODULES.html.sh (func_module): Don't create a hyperlink for
54260         function names like 'printf_frexp'.
54261         (Misc): Add crc, memxor.
54262         (Characteristics of floating types): New section.
54263         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54264         isnanf-nolibm, signbit, trunc, truncf, truncl.
54265         (Enhancements for ISO C 99 functions): New subsection Input/output.
54266         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54267         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54268         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54269         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54270         (Enhancements for POSIX:2001 functions): Add chdir-long.
54271         (File system functions): Add areadlink, chdir-safer, read-file.
54272         Remove cycle-check.
54273         (File system as inode set): New section.
54274         (Date and time): Add gethrxtime.
54275         (Multithreading): Add openmp.
54276         (Internationalization functions): Add localename.
54277         (Unicode string functions): Add unistr/u*-mbsnlen.
54278         (Support for maintaining and releasing projects): Add git-version-gen.
54279         (Lone files): Remove directories.
54280
54281 2007-10-08  Ben Pfaff  <blp@gnu.org>
54282
54283         * lib/xmalloca.h: Fix typo in comment.
54284
54285 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54286
54287         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54288         when avoiding problems with integer overflow.  Use a portable test
54289         instead.
54290
54291 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54292
54293         * modules/dummy (License): Change to LGPLv2+.
54294         * modules/float (License): Likewise
54295         * modules/realloc (License): Likewise
54296         * modules/stdlib (License): Likewise
54297
54298 2007-10-07  Bruno Haible  <bruno@clisp.org>
54299
54300         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54301         * floor.c (TWO_MANT_DIG): Likewise.
54302         * ceil.c (TWO_MANT_DIG): Likewise.
54303         Reported by Ben Pfaff.
54304
54305 2007-10-07  Bruno Haible  <bruno@clisp.org>
54306
54307         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54308         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54309         * lib/frexp.c (FUNC): Likewise.
54310         * lib/printf-frexp.h (printf_frexp): Likewise.
54311         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54312         * lib/printf-frexp.c (FUNC): Likewise.
54313         Suggested by Jim Meyering.
54314
54315 2007-10-07  Jim Meyering  <meyering@redhat.com>
54316
54317         Make xnanosleep's integer overflow test more robust.
54318         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54319         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54320
54321 2007-10-07  Bruno Haible  <bruno@clisp.org>
54322
54323         * NEWS: Mention the license change.
54324
54325         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54326         abbreviations in the modules files.
54327
54328         Change copyright notice from GPLv2+ to GPLv3+.
54329         * README: Change copyright notice.
54330         * MODULES.html.sh: Likewise.
54331         * build-aux/bootstrap.conf: Likewise.
54332         * build-aux/config.libpath: Likewise.
54333         * build-aux/csharpcomp.sh.in: Likewise.
54334         * build-aux/csharpexec.sh.in: Likewise.
54335         * build-aux/install-reloc: Likewise.
54336         * build-aux/javacomp.sh.in: Likewise.
54337         * build-aux/javaexec.sh.in: Likewise.
54338         * build-aux/ldd.sh.in: Likewise.
54339         * build-aux/reloc-ldflags: Likewise.
54340         * build-aux/relocatable.sh.in: Likewise.
54341         * build-aux/x-to-1.in: Likewise.
54342         * check-module: Likewise.
54343         * config/srclistvars.sh: Likewise.
54344         * gnulib-tool: Likewise.
54345         * lib/acl-internal.h: Likewise.
54346         * lib/acl.c: Likewise.
54347         * lib/acl.h: Likewise.
54348         * lib/acl_entries.c: Likewise.
54349         * lib/areadlink-with-size.c: Likewise.
54350         * lib/areadlink.c: Likewise.
54351         * lib/areadlink.h: Likewise.
54352         * lib/argmatch.c: Likewise.
54353         * lib/argmatch.h: Likewise.
54354         * lib/argp-ba.c: Likewise.
54355         * lib/argp-eexst.c: Likewise.
54356         * lib/argp-fmtstream.c: Likewise.
54357         * lib/argp-fmtstream.h: Likewise.
54358         * lib/argp-fs-xinl.c: Likewise.
54359         * lib/argp-help.c: Likewise.
54360         * lib/argp-namefrob.h: Likewise.
54361         * lib/argp-parse.c: Likewise.
54362         * lib/argp-pin.c: Likewise.
54363         * lib/argp-pv.c: Likewise.
54364         * lib/argp-pvh.c: Likewise.
54365         * lib/argp-xinl.c: Likewise.
54366         * lib/argp.h: Likewise.
54367         * lib/at-func.c: Likewise.
54368         * lib/atanl.c: Likewise.
54369         * lib/backupfile.c: Likewise.
54370         * lib/backupfile.h: Likewise.
54371         * lib/basename.c: Likewise.
54372         * lib/binary-io.h: Likewise.
54373         * lib/byteswap.in.h: Likewise.
54374         * lib/c-stack.c: Likewise.
54375         * lib/c-stack.h: Likewise.
54376         * lib/c-strcasestr.c: Likewise.
54377         * lib/c-strcasestr.h: Likewise.
54378         * lib/c-strstr.c: Likewise.
54379         * lib/c-strstr.h: Likewise.
54380         * lib/c-strtod.c: Likewise.
54381         * lib/calloc.c: Likewise.
54382         * lib/canon-host.c: Likewise.
54383         * lib/canon-host.h: Likewise.
54384         * lib/canonicalize-lgpl.c: Likewise.
54385         * lib/canonicalize.c: Likewise.
54386         * lib/canonicalize.h: Likewise.
54387         * lib/ceil.c: Likewise.
54388         * lib/ceilf.c: Likewise.
54389         * lib/ceill.c: Likewise.
54390         * lib/chdir-long.c: Likewise.
54391         * lib/chdir-long.h: Likewise.
54392         * lib/chdir-safer.c: Likewise.
54393         * lib/chdir-safer.h: Likewise.
54394         * lib/chown.c: Likewise.
54395         * lib/classpath.c: Likewise.
54396         * lib/classpath.h: Likewise.
54397         * lib/clean-temp.c: Likewise.
54398         * lib/clean-temp.h: Likewise.
54399         * lib/cloexec.c: Likewise.
54400         * lib/close-stream.c: Likewise.
54401         * lib/closein.c: Likewise.
54402         * lib/closein.h: Likewise.
54403         * lib/closeout.c: Likewise.
54404         * lib/closeout.h: Likewise.
54405         * lib/concat-filename.c: Likewise.
54406         * lib/copy-file.c: Likewise.
54407         * lib/copy-file.h: Likewise.
54408         * lib/count-one-bits.h: Likewise.
54409         * lib/crc.c: Likewise.
54410         * lib/crc.h: Likewise.
54411         * lib/creat-safer.c: Likewise.
54412         * lib/csharpcomp.c: Likewise.
54413         * lib/csharpcomp.h: Likewise.
54414         * lib/csharpexec.c: Likewise.
54415         * lib/csharpexec.h: Likewise.
54416         * lib/cycle-check.c: Likewise.
54417         * lib/cycle-check.h: Likewise.
54418         * lib/diacrit.c: Likewise.
54419         * lib/diacrit.h: Likewise.
54420         * lib/diffseq.h: Likewise.
54421         * lib/dirchownmod.c: Likewise.
54422         * lib/dirent.in.h: Likewise.
54423         * lib/dirfd.c: Likewise.
54424         * lib/dirfd.h: Likewise.
54425         * lib/dirname.c: Likewise.
54426         * lib/dirname.h: Likewise.
54427         * lib/dummy.c: Likewise.
54428         * lib/dup-safer.c: Likewise.
54429         * lib/dup2.c: Likewise.
54430         * lib/eealloc.h: Likewise.
54431         * lib/error.c: Likewise.
54432         * lib/error.h: Likewise.
54433         * lib/euidaccess.c: Likewise.
54434         * lib/exclude.c: Likewise.
54435         * lib/exclude.h: Likewise.
54436         * lib/execute.c: Likewise.
54437         * lib/execute.h: Likewise.
54438         * lib/exitfail.c: Likewise.
54439         * lib/exitfail.h: Likewise.
54440         * lib/expl.c: Likewise.
54441         * lib/fatal-signal.c: Likewise.
54442         * lib/fatal-signal.h: Likewise.
54443         * lib/fbufmode.c: Likewise.
54444         * lib/fbufmode.h: Likewise.
54445         * lib/fchdir.c: Likewise.
54446         * lib/fchmodat.c: Likewise.
54447         * lib/fchownat.c: Likewise.
54448         * lib/fcntl--.h: Likewise.
54449         * lib/fcntl-safer.h: Likewise.
54450         * lib/fcntl.in.h: Likewise.
54451         * lib/fd-safer.c: Likewise.
54452         * lib/fflush.c: Likewise.
54453         * lib/file-has-acl.c: Likewise.
54454         * lib/file-set.c: Likewise.
54455         * lib/file-type.c: Likewise.
54456         * lib/file-type.h: Likewise.
54457         * lib/fileblocks.c: Likewise.
54458         * lib/filemode.c: Likewise.
54459         * lib/filemode.h: Likewise.
54460         * lib/filename.h: Likewise.
54461         * lib/filenamecat.c: Likewise.
54462         * lib/filenamecat.h: Likewise.
54463         * lib/findprog.c: Likewise.
54464         * lib/findprog.h: Likewise.
54465         * lib/float.in.h: Likewise.
54466         * lib/floor.c: Likewise.
54467         * lib/floorf.c: Likewise.
54468         * lib/floorl.c: Likewise.
54469         * lib/fopen-safer.c: Likewise.
54470         * lib/fopen.c: Likewise.
54471         * lib/fpending.c: Likewise.
54472         * lib/fpending.h: Likewise.
54473         * lib/fprintf.c: Likewise.
54474         * lib/fprintftime.h: Likewise.
54475         * lib/fpucw.h: Likewise.
54476         * lib/fpurge.c: Likewise.
54477         * lib/fpurge.h: Likewise.
54478         * lib/freadable.c: Likewise.
54479         * lib/freadable.h: Likewise.
54480         * lib/freadahead.c: Likewise.
54481         * lib/freadahead.h: Likewise.
54482         * lib/freading.c: Likewise.
54483         * lib/freading.h: Likewise.
54484         * lib/free.c: Likewise.
54485         * lib/freopen.c: Likewise.
54486         * lib/frexp.c: Likewise.
54487         * lib/frexpl.c: Likewise.
54488         * lib/fseek.c: Likewise.
54489         * lib/fseterr.c: Likewise.
54490         * lib/fseterr.h: Likewise.
54491         * lib/fstatat.c: Likewise.
54492         * lib/fstrcmp.c: Likewise.
54493         * lib/fstrcmp.h: Likewise.
54494         * lib/fsusage.c: Likewise.
54495         * lib/fsusage.h: Likewise.
54496         * lib/ftell.c: Likewise.
54497         * lib/ftello.c: Likewise.
54498         * lib/fts-cycle.c: Likewise.
54499         * lib/fts.c: Likewise.
54500         * lib/fts_.h: Likewise.
54501         * lib/full-read.c: Likewise.
54502         * lib/full-read.h: Likewise.
54503         * lib/full-write.c: Likewise.
54504         * lib/full-write.h: Likewise.
54505         * lib/fwritable.c: Likewise.
54506         * lib/fwritable.h: Likewise.
54507         * lib/fwriteerror.c: Likewise.
54508         * lib/fwriteerror.h: Likewise.
54509         * lib/fwriting.c: Likewise.
54510         * lib/fwriting.h: Likewise.
54511         * lib/gcd.c: Likewise.
54512         * lib/gcd.h: Likewise.
54513         * lib/getcwd.c: Likewise.
54514         * lib/getdate.h: Likewise.
54515         * lib/getdate.y: Likewise.
54516         * lib/getdomainname.c: Likewise.
54517         * lib/getdomainname.h: Likewise.
54518         * lib/getgroups.c: Likewise.
54519         * lib/gethostname.c: Likewise.
54520         * lib/gethrxtime.c: Likewise.
54521         * lib/gethrxtime.h: Likewise.
54522         * lib/getloadavg.c: Likewise.
54523         * lib/getndelim2.c: Likewise.
54524         * lib/getndelim2.h: Likewise.
54525         * lib/getnline.c: Likewise.
54526         * lib/getnline.h: Likewise.
54527         * lib/getopt.c: Likewise.
54528         * lib/getopt.in.h: Likewise.
54529         * lib/getopt1.c: Likewise.
54530         * lib/getopt_int.h: Likewise.
54531         * lib/getpagesize.h: Likewise.
54532         * lib/getsubopt.c: Likewise.
54533         * lib/gettime.c: Likewise.
54534         * lib/getugroups.c: Likewise.
54535         * lib/getugroups.h: Likewise.
54536         * lib/getusershell.c: Likewise.
54537         * lib/gl_anyavltree_list1.h: Likewise.
54538         * lib/gl_anyavltree_list2.h: Likewise.
54539         * lib/gl_anyhash_list1.h: Likewise.
54540         * lib/gl_anyhash_list2.h: Likewise.
54541         * lib/gl_anylinked_list1.h: Likewise.
54542         * lib/gl_anylinked_list2.h: Likewise.
54543         * lib/gl_anyrbtree_list1.h: Likewise.
54544         * lib/gl_anyrbtree_list2.h: Likewise.
54545         * lib/gl_anytree_list1.h: Likewise.
54546         * lib/gl_anytree_list2.h: Likewise.
54547         * lib/gl_anytree_oset.h: Likewise.
54548         * lib/gl_anytreehash_list1.h: Likewise.
54549         * lib/gl_anytreehash_list2.h: Likewise.
54550         * lib/gl_array_list.c: Likewise.
54551         * lib/gl_array_list.h: Likewise.
54552         * lib/gl_array_oset.c: Likewise.
54553         * lib/gl_array_oset.h: Likewise.
54554         * lib/gl_avltree_list.c: Likewise.
54555         * lib/gl_avltree_list.h: Likewise.
54556         * lib/gl_avltree_oset.c: Likewise.
54557         * lib/gl_avltree_oset.h: Likewise.
54558         * lib/gl_avltreehash_list.c: Likewise.
54559         * lib/gl_avltreehash_list.h: Likewise.
54560         * lib/gl_carray_list.c: Likewise.
54561         * lib/gl_carray_list.h: Likewise.
54562         * lib/gl_linked_list.c: Likewise.
54563         * lib/gl_linked_list.h: Likewise.
54564         * lib/gl_linkedhash_list.c: Likewise.
54565         * lib/gl_linkedhash_list.h: Likewise.
54566         * lib/gl_list.c: Likewise.
54567         * lib/gl_list.h: Likewise.
54568         * lib/gl_oset.c: Likewise.
54569         * lib/gl_oset.h: Likewise.
54570         * lib/gl_rbtree_list.c: Likewise.
54571         * lib/gl_rbtree_list.h: Likewise.
54572         * lib/gl_rbtree_oset.c: Likewise.
54573         * lib/gl_rbtree_oset.h: Likewise.
54574         * lib/gl_rbtreehash_list.c: Likewise.
54575         * lib/gl_rbtreehash_list.h: Likewise.
54576         * lib/gl_sublist.c: Likewise.
54577         * lib/gl_sublist.h: Likewise.
54578         * lib/group-member.c: Likewise.
54579         * lib/group-member.h: Likewise.
54580         * lib/hard-locale.c: Likewise.
54581         * lib/hard-locale.h: Likewise.
54582         * lib/hash-pjw.c: Likewise.
54583         * lib/hash-pjw.h: Likewise.
54584         * lib/hash-triple.c: Likewise.
54585         * lib/hash.c: Likewise.
54586         * lib/hash.h: Likewise.
54587         * lib/human.c: Likewise.
54588         * lib/human.h: Likewise.
54589         * lib/i-ring.c: Likewise.
54590         * lib/i-ring.h: Likewise.
54591         * lib/idcache.c: Likewise.
54592         * lib/imaxabs.c: Likewise.
54593         * lib/imaxdiv.c: Likewise.
54594         * lib/inet_pton.c: Likewise.
54595         * lib/inet_pton.h: Likewise.
54596         * lib/intprops.h: Likewise.
54597         * lib/inttostr.c: Likewise.
54598         * lib/inttostr.h: Likewise.
54599         * lib/inttypes.in.h: Likewise.
54600         * lib/isapipe.c: Likewise.
54601         * lib/isdir.c: Likewise.
54602         * lib/isnan.c: Likewise.
54603         * lib/isnan.h: Likewise.
54604         * lib/isnanf.c: Likewise.
54605         * lib/isnanf.h: Likewise.
54606         * lib/isnanl-nolibm.h: Likewise.
54607         * lib/isnanl.c: Likewise.
54608         * lib/isnanl.h: Likewise.
54609         * lib/javacomp.c: Likewise.
54610         * lib/javacomp.h: Likewise.
54611         * lib/javaexec.c: Likewise.
54612         * lib/javaexec.h: Likewise.
54613         * lib/javaversion.c: Likewise.
54614         * lib/javaversion.h: Likewise.
54615         * lib/javaversion.java: Likewise.
54616         * lib/lbrkprop.h: Likewise.
54617         * lib/lchmod.h: Likewise.
54618         * lib/lchown.c: Likewise.
54619         * lib/ldexpl.c: Likewise.
54620         * lib/linebreak.c: Likewise.
54621         * lib/linebreak.h: Likewise.
54622         * lib/linebuffer.c: Likewise.
54623         * lib/linebuffer.h: Likewise.
54624         * lib/locale.in.h: Likewise.
54625         * lib/logl.c: Likewise.
54626         * lib/long-options.c: Likewise.
54627         * lib/long-options.h: Likewise.
54628         * lib/lstat.c: Likewise.
54629         * lib/lstat.h: Likewise.
54630         * lib/math.in.h: Likewise.
54631         * lib/mbchar.c: Likewise.
54632         * lib/mbchar.h: Likewise.
54633         * lib/mbfile.h: Likewise.
54634         * lib/mbiter.h: Likewise.
54635         * lib/mbscasecmp.c: Likewise.
54636         * lib/mbscasestr.c: Likewise.
54637         * lib/mbschr.c: Likewise.
54638         * lib/mbscspn.c: Likewise.
54639         * lib/mbslen.c: Likewise.
54640         * lib/mbsncasecmp.c: Likewise.
54641         * lib/mbsnlen.c: Likewise.
54642         * lib/mbspbrk.c: Likewise.
54643         * lib/mbspcasecmp.c: Likewise.
54644         * lib/mbsrchr.c: Likewise.
54645         * lib/mbssep.c: Likewise.
54646         * lib/mbsspn.c: Likewise.
54647         * lib/mbsstr.c: Likewise.
54648         * lib/mbstok_r.c: Likewise.
54649         * lib/mbswidth.c: Likewise.
54650         * lib/mbswidth.h: Likewise.
54651         * lib/mbuiter.h: Likewise.
54652         * lib/memcasecmp.c: Likewise.
54653         * lib/memcasecmp.h: Likewise.
54654         * lib/memchr.c: Likewise.
54655         * lib/memcmp.c: Likewise.
54656         * lib/memcoll.c: Likewise.
54657         * lib/memcoll.h: Likewise.
54658         * lib/memcpy.c: Likewise.
54659         * lib/memrchr.c: Likewise.
54660         * lib/mkancesdirs.c: Likewise.
54661         * lib/mkdir-p.c: Likewise.
54662         * lib/mkdir-p.h: Likewise.
54663         * lib/mkdir.c: Likewise.
54664         * lib/mkdirat.c: Likewise.
54665         * lib/mkdtemp.c: Likewise.
54666         * lib/mkstemp-safer.c: Likewise.
54667         * lib/mkstemp.c: Likewise.
54668         * lib/modechange.c: Likewise.
54669         * lib/modechange.h: Likewise.
54670         * lib/mountlist.c: Likewise.
54671         * lib/mountlist.h: Likewise.
54672         * lib/mpsort.c: Likewise.
54673         * lib/nanosleep.c: Likewise.
54674         * lib/obstack.c: Likewise.
54675         * lib/obstack.h: Likewise.
54676         * lib/open-safer.c: Likewise.
54677         * lib/open.c: Likewise.
54678         * lib/openat-die.c: Likewise.
54679         * lib/openat-priv.h: Likewise.
54680         * lib/openat-proc.c: Likewise.
54681         * lib/openat.c: Likewise.
54682         * lib/openat.h: Likewise.
54683         * lib/pagealign_alloc.c: Likewise.
54684         * lib/pagealign_alloc.h: Likewise.
54685         * lib/physmem.c: Likewise.
54686         * lib/physmem.h: Likewise.
54687         * lib/pipe-safer.c: Likewise.
54688         * lib/pipe.c: Likewise.
54689         * lib/pipe.h: Likewise.
54690         * lib/posixtm.c: Likewise.
54691         * lib/posixtm.h: Likewise.
54692         * lib/posixver.c: Likewise.
54693         * lib/printf-frexp.c: Likewise.
54694         * lib/printf-frexp.h: Likewise.
54695         * lib/printf-frexpl.c: Likewise.
54696         * lib/printf-frexpl.h: Likewise.
54697         * lib/printf.c: Likewise.
54698         * lib/progname.c: Likewise.
54699         * lib/progname.h: Likewise.
54700         * lib/progreloc.c: Likewise.
54701         * lib/putenv.c: Likewise.
54702         * lib/quote.c: Likewise.
54703         * lib/quote.h: Likewise.
54704         * lib/quotearg.c: Likewise.
54705         * lib/quotearg.h: Likewise.
54706         * lib/raise.c: Likewise.
54707         * lib/readline.c: Likewise.
54708         * lib/readline.h: Likewise.
54709         * lib/readlink.c: Likewise.
54710         * lib/readtokens.c: Likewise.
54711         * lib/readtokens.h: Likewise.
54712         * lib/readtokens0.c: Likewise.
54713         * lib/readtokens0.h: Likewise.
54714         * lib/readutmp.c: Likewise.
54715         * lib/readutmp.h: Likewise.
54716         * lib/realloc.c: Likewise.
54717         * lib/relocwrapper.c: Likewise.
54718         * lib/rename-dest-slash.c: Likewise.
54719         * lib/rename.c: Likewise.
54720         * lib/rmdir.c: Likewise.
54721         * lib/rpmatch.c: Likewise.
54722         * lib/safe-read.c: Likewise.
54723         * lib/safe-read.h: Likewise.
54724         * lib/safe-write.c: Likewise.
54725         * lib/safe-write.h: Likewise.
54726         * lib/same-inode.h: Likewise.
54727         * lib/same.c: Likewise.
54728         * lib/same.h: Likewise.
54729         * lib/save-cwd.c: Likewise.
54730         * lib/save-cwd.h: Likewise.
54731         * lib/savedir.c: Likewise.
54732         * lib/savedir.h: Likewise.
54733         * lib/savewd.c: Likewise.
54734         * lib/savewd.h: Likewise.
54735         * lib/search.in.h: Likewise.
54736         * lib/setenv.c: Likewise.
54737         * lib/setenv.h: Likewise.
54738         * lib/settime.c: Likewise.
54739         * lib/sh-quote.c: Likewise.
54740         * lib/sh-quote.h: Likewise.
54741         * lib/sig2str.c: Likewise.
54742         * lib/sig2str.h: Likewise.
54743         * lib/signal.in.h: Likewise.
54744         * lib/signbitd.c: Likewise.
54745         * lib/signbitf.c: Likewise.
54746         * lib/signbitl.c: Likewise.
54747         * lib/sigprocmask.c: Likewise.
54748         * lib/sincosl.c: Likewise.
54749         * lib/sleep.c: Likewise.
54750         * lib/sprintf.c: Likewise.
54751         * lib/sqrtl.c: Likewise.
54752         * lib/stat-time.h: Likewise.
54753         * lib/stdio--.h: Likewise.
54754         * lib/stdio-safer.h: Likewise.
54755         * lib/stdlib--.h: Likewise.
54756         * lib/stdlib-safer.h: Likewise.
54757         * lib/stdlib.in.h: Likewise.
54758         * lib/stpcpy.c: Likewise.
54759         * lib/stpncpy.c: Likewise.
54760         * lib/strchrnul.c: Likewise.
54761         * lib/strcspn.c: Likewise.
54762         * lib/strerror.c: Likewise.
54763         * lib/strftime.c: Likewise.
54764         * lib/strftime.h: Likewise.
54765         * lib/striconveh.c: Likewise.
54766         * lib/striconveh.h: Likewise.
54767         * lib/striconveha.c: Likewise.
54768         * lib/striconveha.h: Likewise.
54769         * lib/stripslash.c: Likewise.
54770         * lib/strnlen1.c: Likewise.
54771         * lib/strnlen1.h: Likewise.
54772         * lib/strtod.c: Likewise.
54773         * lib/strtoimax.c: Likewise.
54774         * lib/strtok_r.c: Likewise.
54775         * lib/strtol.c: Likewise.
54776         * lib/strtoll.c: Likewise.
54777         * lib/strtoul.c: Likewise.
54778         * lib/strtoull.c: Likewise.
54779         * lib/sysexits.in.h: Likewise.
54780         * lib/tempname.c: Likewise.
54781         * lib/tempname.h: Likewise.
54782         * lib/timespec.h: Likewise.
54783         * lib/tls.c: Likewise.
54784         * lib/tls.h: Likewise.
54785         * lib/tmpdir.c: Likewise.
54786         * lib/tmpdir.h: Likewise.
54787         * lib/tmpfile-safer.c: Likewise.
54788         * lib/tmpfile.c: Likewise.
54789         * lib/trigl.c: Likewise.
54790         * lib/trigl.h: Likewise.
54791         * lib/trim.c: Likewise.
54792         * lib/trim.h: Likewise.
54793         * lib/trunc.c: Likewise.
54794         * lib/truncf.c: Likewise.
54795         * lib/truncl.c: Likewise.
54796         * lib/tsearch.c: Likewise.
54797         * lib/unicodeio.c: Likewise.
54798         * lib/unicodeio.h: Likewise.
54799         * lib/unistd--.h: Likewise.
54800         * lib/unistd-safer.h: Likewise.
54801         * lib/unistdio/ulc-fprintf.c: Likewise.
54802         * lib/unistdio/ulc-vfprintf.c: Likewise.
54803         * lib/unlinkdir.c: Likewise.
54804         * lib/unlinkdir.h: Likewise.
54805         * lib/unlocked-io.h: Likewise.
54806         * lib/unsetenv.c: Likewise.
54807         * lib/userspec.c: Likewise.
54808         * lib/utime.c: Likewise.
54809         * lib/utimecmp.c: Likewise.
54810         * lib/utimecmp.h: Likewise.
54811         * lib/utimens.c: Likewise.
54812         * lib/verify.h: Likewise.
54813         * lib/verror.c: Likewise.
54814         * lib/verror.h: Likewise.
54815         * lib/version-etc-fsf.c: Likewise.
54816         * lib/version-etc.c: Likewise.
54817         * lib/version-etc.h: Likewise.
54818         * lib/vfprintf.c: Likewise.
54819         * lib/vprintf.c: Likewise.
54820         * lib/vsprintf.c: Likewise.
54821         * lib/w32spawn.h: Likewise.
54822         * lib/wait-process.c: Likewise.
54823         * lib/wait-process.h: Likewise.
54824         * lib/wcwidth.c: Likewise.
54825         * lib/write-any-file.c: Likewise.
54826         * lib/xalloc-die.c: Likewise.
54827         * lib/xalloc.h: Likewise.
54828         * lib/xasprintf.c: Likewise.
54829         * lib/xgetcwd.c: Likewise.
54830         * lib/xgetcwd.h: Likewise.
54831         * lib/xgetdomainname.c: Likewise.
54832         * lib/xgetdomainname.h: Likewise.
54833         * lib/xgethostname.c: Likewise.
54834         * lib/xmalloc.c: Likewise.
54835         * lib/xmalloca.c: Likewise.
54836         * lib/xmalloca.h: Likewise.
54837         * lib/xmemcoll.c: Likewise.
54838         * lib/xnanosleep.c: Likewise.
54839         * lib/xreadlink.c: Likewise.
54840         * lib/xreadlink.h: Likewise.
54841         * lib/xsetenv.c: Likewise.
54842         * lib/xsetenv.h: Likewise.
54843         * lib/xstriconv.c: Likewise.
54844         * lib/xstriconv.h: Likewise.
54845         * lib/xstrndup.c: Likewise.
54846         * lib/xstrndup.h: Likewise.
54847         * lib/xstrtod.c: Likewise.
54848         * lib/xstrtod.h: Likewise.
54849         * lib/xstrtol-error.c: Likewise.
54850         * lib/xstrtol.c: Likewise.
54851         * lib/xstrtol.h: Likewise.
54852         * lib/xtime.h: Likewise.
54853         * lib/xvasprintf.c: Likewise.
54854         * lib/xvasprintf.h: Likewise.
54855         * lib/yesno.c: Likewise.
54856         * lib/yesno.h: Likewise.
54857         * posix-modules: Likewise.
54858         * tests/test-alloca-opt.c: Likewise.
54859         * tests/test-arcfour.c: Likewise.
54860         * tests/test-arctwo.c: Likewise.
54861         * tests/test-argmatch.c: Likewise.
54862         * tests/test-argp-2.sh: Likewise.
54863         * tests/test-argp.c: Likewise.
54864         * tests/test-arpa_inet.c: Likewise.
54865         * tests/test-array_list.c: Likewise.
54866         * tests/test-array_oset.c: Likewise.
54867         * tests/test-atexit.c: Likewise.
54868         * tests/test-avltree_list.c: Likewise.
54869         * tests/test-avltree_oset.c: Likewise.
54870         * tests/test-avltreehash_list.c: Likewise.
54871         * tests/test-base64.c: Likewise.
54872         * tests/test-binary-io.c: Likewise.
54873         * tests/test-byteswap.c: Likewise.
54874         * tests/test-c-ctype.c: Likewise.
54875         * tests/test-c-strcasecmp.c: Likewise.
54876         * tests/test-c-strcasestr.c: Likewise.
54877         * tests/test-c-strncasecmp.c: Likewise.
54878         * tests/test-c-strstr.c: Likewise.
54879         * tests/test-canonicalize-lgpl.c: Likewise.
54880         * tests/test-canonicalize.c: Likewise.
54881         * tests/test-carray_list.c: Likewise.
54882         * tests/test-ceilf.c: Likewise.
54883         * tests/test-ceill.c: Likewise.
54884         * tests/test-count-one-bits.c: Likewise.
54885         * tests/test-crc.c: Likewise.
54886         * tests/test-dirname.c: Likewise.
54887         * tests/test-fbufmode.c: Likewise.
54888         * tests/test-fcntl.c: Likewise.
54889         * tests/test-fflush.c: Likewise.
54890         * tests/test-floorf.c: Likewise.
54891         * tests/test-floorl.c: Likewise.
54892         * tests/test-fopen.c: Likewise.
54893         * tests/test-fprintf-posix.c: Likewise.
54894         * tests/test-fprintf-posix.h: Likewise.
54895         * tests/test-fpurge.c: Likewise.
54896         * tests/test-freadable.c: Likewise.
54897         * tests/test-freadahead.c: Likewise.
54898         * tests/test-freading.c: Likewise.
54899         * tests/test-freopen.c: Likewise.
54900         * tests/test-frexp.c: Likewise.
54901         * tests/test-frexpl.c: Likewise.
54902         * tests/test-fseek.c: Likewise.
54903         * tests/test-fseeko.c: Likewise.
54904         * tests/test-fseterr.c: Likewise.
54905         * tests/test-fstrcmp.c: Likewise.
54906         * tests/test-ftell.c: Likewise.
54907         * tests/test-ftello.c: Likewise.
54908         * tests/test-fwritable.c: Likewise.
54909         * tests/test-fwriting.c: Likewise.
54910         * tests/test-getaddrinfo.c: Likewise.
54911         * tests/test-getpass.c: Likewise.
54912         * tests/test-gettimeofday.c: Likewise.
54913         * tests/test-hmac-md5.c: Likewise.
54914         * tests/test-hmac-sha1.c: Likewise.
54915         * tests/test-iconv.c: Likewise.
54916         * tests/test-iconvme.c: Likewise.
54917         * tests/test-inttypes.c: Likewise.
54918         * tests/test-isnan.c: Likewise.
54919         * tests/test-isnanf.c: Likewise.
54920         * tests/test-isnanl-nolibm.c: Likewise.
54921         * tests/test-isnanl.c: Likewise.
54922         * tests/test-isnanl.h: Likewise.
54923         * tests/test-ldexpl.c: Likewise.
54924         * tests/test-linked_list.c: Likewise.
54925         * tests/test-linkedhash_list.c: Likewise.
54926         * tests/test-locale.c: Likewise.
54927         * tests/test-localename.c: Likewise.
54928         * tests/test-lock.c: Likewise.
54929         * tests/test-lseek.c: Likewise.
54930         * tests/test-malloca.c: Likewise.
54931         * tests/test-math.c: Likewise.
54932         * tests/test-mbscasecmp.c: Likewise.
54933         * tests/test-mbscasestr1.c: Likewise.
54934         * tests/test-mbscasestr2.c: Likewise.
54935         * tests/test-mbscasestr3.c: Likewise.
54936         * tests/test-mbscasestr4.c: Likewise.
54937         * tests/test-mbschr.c: Likewise.
54938         * tests/test-mbscspn.c: Likewise.
54939         * tests/test-mbsncasecmp.c: Likewise.
54940         * tests/test-mbspbrk.c: Likewise.
54941         * tests/test-mbspcasecmp.c: Likewise.
54942         * tests/test-mbsrchr.c: Likewise.
54943         * tests/test-mbsspn.c: Likewise.
54944         * tests/test-mbsstr1.c: Likewise.
54945         * tests/test-mbsstr2.c: Likewise.
54946         * tests/test-mbsstr3.c: Likewise.
54947         * tests/test-md5.c: Likewise.
54948         * tests/test-memmem.c: Likewise.
54949         * tests/test-netinet_in.c: Likewise.
54950         * tests/test-open.c: Likewise.
54951         * tests/test-printf-frexp.c: Likewise.
54952         * tests/test-printf-frexpl.c: Likewise.
54953         * tests/test-printf-posix.c: Likewise.
54954         * tests/test-printf-posix.h: Likewise.
54955         * tests/test-rbtree_list.c: Likewise.
54956         * tests/test-rbtree_oset.c: Likewise.
54957         * tests/test-rbtreehash_list.c: Likewise.
54958         * tests/test-read-file.c: Likewise.
54959         * tests/test-rijndael.c: Likewise.
54960         * tests/test-search.c: Likewise.
54961         * tests/test-signbit.c: Likewise.
54962         * tests/test-sleep.c: Likewise.
54963         * tests/test-snprintf-posix.c: Likewise.
54964         * tests/test-snprintf-posix.h: Likewise.
54965         * tests/test-snprintf.c: Likewise.
54966         * tests/test-sprintf-posix.c: Likewise.
54967         * tests/test-sprintf-posix.h: Likewise.
54968         * tests/test-stat-time.c: Likewise.
54969         * tests/test-stdbool.c: Likewise.
54970         * tests/test-stdint.c: Likewise.
54971         * tests/test-stdio.c: Likewise.
54972         * tests/test-stdlib.c: Likewise.
54973         * tests/test-stpncpy.c: Likewise.
54974         * tests/test-strcasestr.c: Likewise.
54975         * tests/test-striconv.c: Likewise.
54976         * tests/test-striconveh.c: Likewise.
54977         * tests/test-striconveha.c: Likewise.
54978         * tests/test-string.c: Likewise.
54979         * tests/test-sys_select.c: Likewise.
54980         * tests/test-sys_socket.c: Likewise.
54981         * tests/test-sys_stat.c: Likewise.
54982         * tests/test-sys_time.c: Likewise.
54983         * tests/test-sysexits.c: Likewise.
54984         * tests/test-time.c: Likewise.
54985         * tests/test-tls.c: Likewise.
54986         * tests/test-trunc.c: Likewise.
54987         * tests/test-truncf.c: Likewise.
54988         * tests/test-truncl.c: Likewise.
54989         * tests/test-unistd.c: Likewise.
54990         * tests/test-vasnprintf-posix.c: Likewise.
54991         * tests/test-vasnprintf-posix2.c: Likewise.
54992         * tests/test-vasnprintf.c: Likewise.
54993         * tests/test-vasprintf-posix.c: Likewise.
54994         * tests/test-vasprintf.c: Likewise.
54995         * tests/test-verify.c: Likewise.
54996         * tests/test-vfprintf-posix.c: Likewise.
54997         * tests/test-vprintf-posix.c: Likewise.
54998         * tests/test-vsnprintf-posix.c: Likewise.
54999         * tests/test-vsnprintf.c: Likewise.
55000         * tests/test-vsprintf-posix.c: Likewise.
55001         * tests/test-wchar.c: Likewise.
55002         * tests/test-wctype.c: Likewise.
55003         * tests/test-wcwidth.c: Likewise.
55004         * tests/test-xstrtol.c: Likewise.
55005         * tests/test-xvasprintf.c: Likewise.
55006         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55007         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55008         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55009         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55010         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55011         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55012         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55013         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55014         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55015         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55016         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55017         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55018         * tests/uniname/test-uninames.c: Likewise.
55019         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55020         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55021         * tests/unistdio/test-u16-printf1.h: Likewise.
55022         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55023         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55024         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55025         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55026         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55027         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55028         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55029         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55030         * tests/unistdio/test-u32-printf1.h: Likewise.
55031         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55032         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55033         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55034         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55035         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55036         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55037         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55038         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55039         * tests/unistdio/test-u8-printf1.h: Likewise.
55040         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55041         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55042         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55043         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55044         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55045         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55046         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55047         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55048         * tests/unistdio/test-ulc-printf1.h: Likewise.
55049         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55050         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55051         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55052         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55053         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55054         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55055         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55056         * tests/uniwidth/test-u16-width.c: Likewise.
55057         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55058         * tests/uniwidth/test-u32-width.c: Likewise.
55059         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55060         * tests/uniwidth/test-u8-width.c: Likewise.
55061         * tests/uniwidth/test-uc_width.c: Likewise.
55062         * config/srclist-update: Likewise.
55063         (fixlicense): Update to GPLv3+.
55064
55065         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55066         * tests/test-tsearch.c: Change copyright notice.
55067
55068         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55069         * lib/c-strcaseeq.h: Change copyright notice.
55070         * lib/streq.h: Likewise.
55071         * lib/uniconv.h: Likewise.
55072         * lib/uniconv/u-conv-from-enc.h: Likewise.
55073         * lib/uniconv/u-conv-to-enc.h: Likewise.
55074         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55075         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55076         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55077         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55078         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55079         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55080         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55081         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55082         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55083         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55084         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55085         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55086         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55087         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55088         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55089         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55090         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55091         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55092         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55093         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55094         * lib/uniname.h: Likewise.
55095         * lib/uniname/uniname.c: Likewise.
55096         * lib/unistdio.h: Likewise.
55097         * lib/unistdio/u-asnprintf.h: Likewise.
55098         * lib/unistdio/u-asprintf.h: Likewise.
55099         * lib/unistdio/u-printf-args.c: Likewise.
55100         * lib/unistdio/u-printf-args.h: Likewise.
55101         * lib/unistdio/u-printf-parse.h: Likewise.
55102         * lib/unistdio/u-snprintf.h: Likewise.
55103         * lib/unistdio/u-sprintf.h: Likewise.
55104         * lib/unistdio/u-vasprintf.h: Likewise.
55105         * lib/unistdio/u-vsnprintf.h: Likewise.
55106         * lib/unistdio/u-vsprintf.h: Likewise.
55107         * lib/unistdio/u16-asnprintf.c: Likewise.
55108         * lib/unistdio/u16-asprintf.c: Likewise.
55109         * lib/unistdio/u16-printf-parse.c: Likewise.
55110         * lib/unistdio/u16-snprintf.c: Likewise.
55111         * lib/unistdio/u16-sprintf.c: Likewise.
55112         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55113         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55114         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55115         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55116         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55117         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55118         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55119         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55120         * lib/unistdio/u16-vasnprintf.c: Likewise.
55121         * lib/unistdio/u16-vasprintf.c: Likewise.
55122         * lib/unistdio/u16-vsnprintf.c: Likewise.
55123         * lib/unistdio/u16-vsprintf.c: Likewise.
55124         * lib/unistdio/u32-asnprintf.c: Likewise.
55125         * lib/unistdio/u32-asprintf.c: Likewise.
55126         * lib/unistdio/u32-printf-parse.c: Likewise.
55127         * lib/unistdio/u32-snprintf.c: Likewise.
55128         * lib/unistdio/u32-sprintf.c: Likewise.
55129         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55130         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55131         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55132         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55133         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55134         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55135         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55136         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55137         * lib/unistdio/u32-vasnprintf.c: Likewise.
55138         * lib/unistdio/u32-vasprintf.c: Likewise.
55139         * lib/unistdio/u32-vsnprintf.c: Likewise.
55140         * lib/unistdio/u32-vsprintf.c: Likewise.
55141         * lib/unistdio/u8-asnprintf.c: Likewise.
55142         * lib/unistdio/u8-asprintf.c: Likewise.
55143         * lib/unistdio/u8-printf-parse.c: Likewise.
55144         * lib/unistdio/u8-snprintf.c: Likewise.
55145         * lib/unistdio/u8-sprintf.c: Likewise.
55146         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55147         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55148         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55149         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55150         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55151         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55152         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55153         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55154         * lib/unistdio/u8-vasnprintf.c: Likewise.
55155         * lib/unistdio/u8-vasprintf.c: Likewise.
55156         * lib/unistdio/u8-vsnprintf.c: Likewise.
55157         * lib/unistdio/u8-vsprintf.c: Likewise.
55158         * lib/unistdio/ulc-asnprintf.c: Likewise.
55159         * lib/unistdio/ulc-asprintf.c: Likewise.
55160         * lib/unistdio/ulc-printf-parse.c: Likewise.
55161         * lib/unistdio/ulc-snprintf.c: Likewise.
55162         * lib/unistdio/ulc-sprintf.c: Likewise.
55163         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55164         * lib/unistdio/ulc-vasprintf.c: Likewise.
55165         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55166         * lib/unistdio/ulc-vsprintf.c: Likewise.
55167         * lib/unistr.h: Likewise.
55168         * lib/unistr/u-cpy-alloc.h: Likewise.
55169         * lib/unistr/u-cpy.h: Likewise.
55170         * lib/unistr/u-endswith.h: Likewise.
55171         * lib/unistr/u-move.h: Likewise.
55172         * lib/unistr/u-set.h: Likewise.
55173         * lib/unistr/u-startswith.h: Likewise.
55174         * lib/unistr/u-stpcpy.h: Likewise.
55175         * lib/unistr/u-stpncpy.h: Likewise.
55176         * lib/unistr/u-strcat.h: Likewise.
55177         * lib/unistr/u-strcpy.h: Likewise.
55178         * lib/unistr/u-strcspn.h: Likewise.
55179         * lib/unistr/u-strdup.h: Likewise.
55180         * lib/unistr/u-strlen.h: Likewise.
55181         * lib/unistr/u-strncat.h: Likewise.
55182         * lib/unistr/u-strncpy.h: Likewise.
55183         * lib/unistr/u-strnlen.h: Likewise.
55184         * lib/unistr/u-strpbrk.h: Likewise.
55185         * lib/unistr/u-strspn.h: Likewise.
55186         * lib/unistr/u-strstr.h: Likewise.
55187         * lib/unistr/u-strtok.h: Likewise.
55188         * lib/unistr/u16-check.c: Likewise.
55189         * lib/unistr/u16-chr.c: Likewise.
55190         * lib/unistr/u16-cmp.c: Likewise.
55191         * lib/unistr/u16-cpy-alloc.c: Likewise.
55192         * lib/unistr/u16-cpy.c: Likewise.
55193         * lib/unistr/u16-endswith.c: Likewise.
55194         * lib/unistr/u16-mblen.c: Likewise.
55195         * lib/unistr/u16-mbsnlen.c: Likewise.
55196         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55197         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55198         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55199         * lib/unistr/u16-mbtouc.c: Likewise.
55200         * lib/unistr/u16-mbtoucr.c: Likewise.
55201         * lib/unistr/u16-move.c: Likewise.
55202         * lib/unistr/u16-next.c: Likewise.
55203         * lib/unistr/u16-prev.c: Likewise.
55204         * lib/unistr/u16-set.c: Likewise.
55205         * lib/unistr/u16-startswith.c: Likewise.
55206         * lib/unistr/u16-stpcpy.c: Likewise.
55207         * lib/unistr/u16-stpncpy.c: Likewise.
55208         * lib/unistr/u16-strcat.c: Likewise.
55209         * lib/unistr/u16-strchr.c: Likewise.
55210         * lib/unistr/u16-strcmp.c: Likewise.
55211         * lib/unistr/u16-strcpy.c: Likewise.
55212         * lib/unistr/u16-strcspn.c: Likewise.
55213         * lib/unistr/u16-strdup.c: Likewise.
55214         * lib/unistr/u16-strlen.c: Likewise.
55215         * lib/unistr/u16-strmblen.c: Likewise.
55216         * lib/unistr/u16-strmbtouc.c: Likewise.
55217         * lib/unistr/u16-strncat.c: Likewise.
55218         * lib/unistr/u16-strncmp.c: Likewise.
55219         * lib/unistr/u16-strncpy.c: Likewise.
55220         * lib/unistr/u16-strnlen.c: Likewise.
55221         * lib/unistr/u16-strpbrk.c: Likewise.
55222         * lib/unistr/u16-strrchr.c: Likewise.
55223         * lib/unistr/u16-strspn.c: Likewise.
55224         * lib/unistr/u16-strstr.c: Likewise.
55225         * lib/unistr/u16-strtok.c: Likewise.
55226         * lib/unistr/u16-to-u32.c: Likewise.
55227         * lib/unistr/u16-to-u8.c: Likewise.
55228         * lib/unistr/u16-uctomb-aux.c: Likewise.
55229         * lib/unistr/u16-uctomb.c: Likewise.
55230         * lib/unistr/u32-check.c: Likewise.
55231         * lib/unistr/u32-chr.c: Likewise.
55232         * lib/unistr/u32-cmp.c: Likewise.
55233         * lib/unistr/u32-cpy-alloc.c: Likewise.
55234         * lib/unistr/u32-cpy.c: Likewise.
55235         * lib/unistr/u32-endswith.c: Likewise.
55236         * lib/unistr/u32-mblen.c: Likewise.
55237         * lib/unistr/u32-mbsnlen.c: Likewise.
55238         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55239         * lib/unistr/u32-mbtouc.c: Likewise.
55240         * lib/unistr/u32-mbtoucr.c: Likewise.
55241         * lib/unistr/u32-move.c: Likewise.
55242         * lib/unistr/u32-next.c: Likewise.
55243         * lib/unistr/u32-prev.c: Likewise.
55244         * lib/unistr/u32-set.c: Likewise.
55245         * lib/unistr/u32-startswith.c: Likewise.
55246         * lib/unistr/u32-stpcpy.c: Likewise.
55247         * lib/unistr/u32-stpncpy.c: Likewise.
55248         * lib/unistr/u32-strcat.c: Likewise.
55249         * lib/unistr/u32-strchr.c: Likewise.
55250         * lib/unistr/u32-strcmp.c: Likewise.
55251         * lib/unistr/u32-strcpy.c: Likewise.
55252         * lib/unistr/u32-strcspn.c: Likewise.
55253         * lib/unistr/u32-strdup.c: Likewise.
55254         * lib/unistr/u32-strlen.c: Likewise.
55255         * lib/unistr/u32-strmblen.c: Likewise.
55256         * lib/unistr/u32-strmbtouc.c: Likewise.
55257         * lib/unistr/u32-strncat.c: Likewise.
55258         * lib/unistr/u32-strncmp.c: Likewise.
55259         * lib/unistr/u32-strncpy.c: Likewise.
55260         * lib/unistr/u32-strnlen.c: Likewise.
55261         * lib/unistr/u32-strpbrk.c: Likewise.
55262         * lib/unistr/u32-strrchr.c: Likewise.
55263         * lib/unistr/u32-strspn.c: Likewise.
55264         * lib/unistr/u32-strstr.c: Likewise.
55265         * lib/unistr/u32-strtok.c: Likewise.
55266         * lib/unistr/u32-to-u16.c: Likewise.
55267         * lib/unistr/u32-to-u8.c: Likewise.
55268         * lib/unistr/u32-uctomb.c: Likewise.
55269         * lib/unistr/u8-check.c: Likewise.
55270         * lib/unistr/u8-chr.c: Likewise.
55271         * lib/unistr/u8-cmp.c: Likewise.
55272         * lib/unistr/u8-cpy-alloc.c: Likewise.
55273         * lib/unistr/u8-cpy.c: Likewise.
55274         * lib/unistr/u8-endswith.c: Likewise.
55275         * lib/unistr/u8-mblen.c: Likewise.
55276         * lib/unistr/u8-mbsnlen.c: Likewise.
55277         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55278         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55279         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55280         * lib/unistr/u8-mbtouc.c: Likewise.
55281         * lib/unistr/u8-mbtoucr.c: Likewise.
55282         * lib/unistr/u8-move.c: Likewise.
55283         * lib/unistr/u8-next.c: Likewise.
55284         * lib/unistr/u8-prev.c: Likewise.
55285         * lib/unistr/u8-set.c: Likewise.
55286         * lib/unistr/u8-startswith.c: Likewise.
55287         * lib/unistr/u8-stpcpy.c: Likewise.
55288         * lib/unistr/u8-stpncpy.c: Likewise.
55289         * lib/unistr/u8-strcat.c: Likewise.
55290         * lib/unistr/u8-strchr.c: Likewise.
55291         * lib/unistr/u8-strcmp.c: Likewise.
55292         * lib/unistr/u8-strcpy.c: Likewise.
55293         * lib/unistr/u8-strcspn.c: Likewise.
55294         * lib/unistr/u8-strdup.c: Likewise.
55295         * lib/unistr/u8-strlen.c: Likewise.
55296         * lib/unistr/u8-strmblen.c: Likewise.
55297         * lib/unistr/u8-strmbtouc.c: Likewise.
55298         * lib/unistr/u8-strncat.c: Likewise.
55299         * lib/unistr/u8-strncmp.c: Likewise.
55300         * lib/unistr/u8-strncpy.c: Likewise.
55301         * lib/unistr/u8-strnlen.c: Likewise.
55302         * lib/unistr/u8-strpbrk.c: Likewise.
55303         * lib/unistr/u8-strrchr.c: Likewise.
55304         * lib/unistr/u8-strspn.c: Likewise.
55305         * lib/unistr/u8-strstr.c: Likewise.
55306         * lib/unistr/u8-strtok.c: Likewise.
55307         * lib/unistr/u8-to-u16.c: Likewise.
55308         * lib/unistr/u8-to-u32.c: Likewise.
55309         * lib/unistr/u8-uctomb-aux.c: Likewise.
55310         * lib/unistr/u8-uctomb.c: Likewise.
55311         * lib/unitypes.h: Likewise.
55312         * lib/uniwidth.h: Likewise.
55313         * lib/uniwidth/cjk.h: Likewise.
55314         * lib/uniwidth/u16-strwidth.c: Likewise.
55315         * lib/uniwidth/u16-width.c: Likewise.
55316         * lib/uniwidth/u32-strwidth.c: Likewise.
55317         * lib/uniwidth/u32-width.c: Likewise.
55318         * lib/uniwidth/u8-strwidth.c: Likewise.
55319         * lib/uniwidth/u8-width.c: Likewise.
55320         * lib/uniwidth/width.c: Likewise.
55321
55322 2007-10-07  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55325         The file is still under LGPL (see modules/inttypes).
55326
55327 2007-10-06  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/trunc (Dependencies): Add 'extensions'.
55330         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55331         Reported by Ben Pfaff <blp@gnu.org>.
55332
55333 2007-10-06  Bruno Haible  <bruno@clisp.org>
55334
55335         * modules/freopen-tests: New file.
55336         * tests/test-freopen.c: New file.
55337
55338         * modules/fopen-tests: New file.
55339         * tests/test-fopen.c: New file.
55340
55341         * modules/fopen: New file.
55342         * lib/fopen.c: New file.
55343         * m4/fopen.m4: New file.
55344         * modules/freopen: New file.
55345         * lib/freopen.c: New file.
55346         * m4/freopen.m4: New file.
55347         * lib/stdio.in.h (fopen, freopen): New declarations.
55348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55349         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55350         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55351         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55352         * doc/functions/fopen.texi: Mention the 'fopen' module.
55353         * doc/functions/freopen.texi: Mention the 'freopen' module.
55354
55355 2007-10-06  Bruno Haible  <bruno@clisp.org>
55356
55357         * modules/open-tests: New file.
55358         * tests/test-open.c: New file.
55359
55360         * modules/open: New file.
55361         * lib/open.c: New file.
55362         * m4/open.m4: New file.
55363         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55364         lib/open.c does.
55365         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55366         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55367         macros.
55368         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55369         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55370         REPLACE_OPEN.
55371         * doc/functions/open.texi: Mention the 'open' module.
55372
55373 2007-10-04  Bruno Haible  <bruno@clisp.org>
55374
55375         * modules/ceill-tests: New file.
55376         * tests/test-ceill.c: New file.
55377
55378         * modules/ceill: New file.
55379         * lib/ceill.c: Replace entire file.
55380         * m4/ceill.m4: New file.
55381         * lib/math.in.h (ceill): Replace declaration.
55382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55383         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55384         * doc/functions/ceill.texi: Mention the 'ceill' module.
55385         * modules/mathl (Files): Remove lib/ceill.c.
55386         (Depends-on): Add ceill.
55387
55388 2007-10-04  Bruno Haible  <bruno@clisp.org>
55389
55390         * modules/ceilf-tests: New file.
55391         * tests/test-ceilf.c: New file.
55392
55393         * modules/ceilf: New file.
55394         * lib/ceil.c: New file.
55395         * lib/ceilf.c: New file.
55396         * m4/ceilf.m4: New file.
55397         * lib/math.in.h (ceilf): New declaration.
55398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55399         HAVE_DECL_CEILF.
55400         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55401         HAVE_DECL_CEILF.
55402         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55403
55404 2007-10-04  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/floorl-tests: New file.
55407         * tests/test-floorl.c: New file.
55408
55409         * modules/floorl: New file.
55410         * lib/floorl.c: Replace entire file.
55411         * m4/floorl.m4: New file.
55412         * lib/math.in.h (floorl): Replace declaration.
55413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55414         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55415         * doc/functions/floorl.texi: Mention the 'floorl' module.
55416         * modules/mathl (Files): Remove lib/floorl.c.
55417         (Depends-on): Add floorl.
55418
55419 2007-10-04  Bruno Haible  <bruno@clisp.org>
55420
55421         * modules/floorf-tests: New file.
55422         * tests/test-floorf.c: New file.
55423
55424         * modules/floorf: New file.
55425         * lib/floor.c: New file.
55426         * lib/floorf.c: New file.
55427         * m4/floorf.m4: New file.
55428         * lib/math.in.h (floorf): New declaration.
55429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55430         HAVE_DECL_FLOORF.
55431         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55432         HAVE_DECL_FLOORF.
55433         * doc/functions/floorf.texi: Mention the 'floorf' module.
55434
55435 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55436             Bruno Haible  <bruno@clisp.org>
55437
55438         Advertise for the Git server instead of the CVS server.
55439         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55440         repository instead of the CVS one.
55441         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55442         about all VCS systems generically.
55443         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55444
55445 2007-10-04  Bruno Haible  <bruno@clisp.org>
55446
55447         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55448         means.
55449         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55450
55451 2007-10-04  Bruno Haible  <bruno@clisp.org>
55452
55453         * modules/truncl-tests: New file.
55454         * tests/test-truncl.c: New file.
55455
55456         * modules/truncl: New file.
55457         * lib/truncl.c: New file.
55458         * m4/truncl.m4: New file.
55459         * lib/math.in.h (truncl): New declaration.
55460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55461         HAVE_DECL_TRUNCL.
55462         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55463         HAVE_DECL_TRUNCL.
55464         * doc/functions/truncl.texi: Mention the 'truncl' module.
55465
55466 2007-10-04  Bruno Haible  <bruno@clisp.org>
55467
55468         * modules/truncf-tests: New file.
55469         * tests/test-truncf.c: New file.
55470
55471         * modules/truncf: New file.
55472         * lib/trunc.c: Make paramerizable through USE_* macros.
55473         * lib/truncf.c: New file.
55474         * m4/truncf.m4: New file.
55475         * lib/math.in.h (truncf): New declaration.
55476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55477         HAVE_DECL_TRUNCF.
55478         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55479         HAVE_DECL_TRUNCF.
55480         * doc/functions/truncf.texi: Mention the 'truncf' module.
55481
55482 2007-10-03  Bruno Haible  <bruno@clisp.org>
55483
55484         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55485         augmentation also for tests modules.
55486         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55487         * modules/atexit-tests (Makefile.am): Likewise.
55488         * modules/binary-io-tests (Makefile.am): Likewise.
55489         * modules/c-strcase-tests (Makefile.am): Likewise.
55490         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55491         * modules/canonicalize-tests (Makefile.am): Likewise.
55492         * modules/closein-tests (Makefile.am): Likewise.
55493         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55494         * modules/freadahead-tests (Makefile.am): Likewise.
55495         * modules/fseek-tests (Makefile.am): Likewise.
55496         * modules/fseeko-tests (Makefile.am): Likewise.
55497         * modules/ftell-tests (Makefile.am): Likewise.
55498         * modules/ftello-tests (Makefile.am): Likewise.
55499         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55500         * modules/isnanl-tests (Makefile.am): Likewise.
55501         * modules/lseek-tests (Makefile.am): Likewise.
55502         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55503         * modules/mbscasestr-tests (Makefile.am): Likewise.
55504         * modules/mbschr-tests (Makefile.am): Likewise.
55505         * modules/mbscspn-tests (Makefile.am): Likewise.
55506         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55507         * modules/mbspbrk-tests (Makefile.am): Likewise.
55508         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55509         * modules/mbsrchr-tests (Makefile.am): Likewise.
55510         * modules/mbsspn-tests (Makefile.am): Likewise.
55511         * modules/mbsstr-tests (Makefile.am): Likewise.
55512         * modules/printf-posix-tests (Makefile.am): Likewise.
55513         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55514         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55515         * modules/tsearch-tests (Makefile.am): Likewise.
55516         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55517         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55518         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55519         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55520         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55521         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55522         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55523         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55524         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55525         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55526         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55527         * modules/xstrtol-tests (Makefile.am): Likewise.
55528         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55529         * modules/yesno-tests (Makefile.am): Likewise.
55530
55531 2007-10-03  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/trunc-tests: New file.
55534         * tests/test-trunc.c: New file.
55535
55536         * modules/trunc: New file.
55537         * lib/trunc.c: New file.
55538         * m4/trunc.m4: New file.
55539         * lib/math.in.h (trunc): New declaration.
55540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55541         HAVE_DECL_TRUNC.
55542         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55543         HAVE_DECL_TRUNC.
55544         * doc/functions/trunc.texi: Mention the 'trunc' module.
55545
55546 2007-10-03  Bruno Haible  <bruno@clisp.org>
55547
55548         * tests/test-fpending.c: New file, mostly copied
55549         from coreutils/lib/t-fpending.c.
55550         * modules/fpending-tests: New file.
55551
55552 2007-10-03  Bruno Haible  <bruno@clisp.org>
55553
55554         Port the stdio extensions to QNX (untested).
55555         * lib/fseterr.c (fseterr): Add support for QNX.
55556         * lib/fbufmode.c (fbufmode): Likewise.
55557         * lib/freadable.c (freadable): Likewise.
55558         * lib/fwritable.c (fwritable): Likewise.
55559         * lib/freading.c (freading): Likewise.
55560         * lib/fwriting.c (fwriting): Likewise.
55561         * lib/freadahead.c (freadahed): Likewise.
55562         * lib/fpurge.c (fpurge): Likewise.
55563         * lib/fseeko.c (rpl_fseeko): Likewise.
55564
55565 2007-10-03  Bruno Haible  <bruno@clisp.org>
55566             Jim Meyering  <jim@meyering.net>
55567             Eric Blake  <ebb9@byu.net>
55568
55569         * doc/relocatable.texi: Use @command instead of @program.
55570
55571 2007-10-02  Jim Meyering  <jim@meyering.net>
55572
55573         Perform one more "_.h" -> ".in.h" substitution.
55574         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55575         instead of unistd_.h here, too.
55576
55577 2007-10-01  Bruno Haible  <bruno@clisp.org>
55578
55579         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55580         Needed for the alloca-opt module.
55581
55582 2007-09-30  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55585         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55586         alloca_.h.
55587         * lib/argz.in.h: Renamed from lib/argz_.h.
55588         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55589         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55590         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55591         byteswap_.h.
55592         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55593         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55594         dirent_.h.
55595         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55596         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55597         fcntl_.h.
55598         * lib/float.in.h: Renamed from lib/float_.h.
55599         * modules/float (Files, Makefile.am): Use float.in.h instead of
55600         float_.h.
55601         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55602         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55603         fnmatch_.h.
55604         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55605         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55606         getopt_.h.
55607         * lib/glob.in.h: Renamed from lib/glob_.h.
55608         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55609         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55610         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55611         iconv_.h.
55612         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55613         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55614         inttypes_.h.
55615         * lib/locale.in.h: Renamed from lib/locale_.h.
55616         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55617         locale_.h.
55618         * lib/math.in.h: Renamed from lib/math_.h.
55619         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55620         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55621         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55622         of netinet_in_.h. Add dependency.
55623         * lib/poll.in.h: Renamed from lib/poll_.h.
55624         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55625         * lib/search.in.h: Renamed from lib/search_.h.
55626         * modules/search (Files, Makefile.am): Use search.in.h instead of
55627         search_.h.
55628         * lib/signal.in.h: Renamed from lib/signal_.h.
55629         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55630         _signal.h.
55631         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55632         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55633         stdbool_.h.
55634         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55635         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55636         stdint_.h.
55637         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55638         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55639         stdio_.h.
55640         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55641         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55642         stdlib_.h.
55643         * lib/string.in.h: Renamed from lib/string_.h.
55644         * modules/string (Files, Makefile.am): Use string.in.h instead of
55645         string_.h.
55646         * doc/gnulib-tool.texi (Initial import): Update.
55647         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55648         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55649         of sys_select_.h. Add dependency.
55650         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55651         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55652         of sys_socket_.h.
55653         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55654         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55655         sys_stat_.h.
55656         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55657         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55658         sys_time_.h.
55659         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55660         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55661         sysexits_.h.
55662         * lib/time.in.h: Renamed from lib/time_.h.
55663         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55664         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55665         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55666         unistd_.h.
55667         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55668         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55669         wchar_.h.
55670         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55671         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55672         wctype_.h.
55673         * build-aux/bootstrap (slurp): Update.
55674         * lib/.cppi-disable: Update.
55675
55676 2007-09-30  Bruno Haible  <bruno@clisp.org>
55677
55678         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55679         Needed on BeOS.
55680
55681 2007-09-30  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55684
55685 2007-09-29  Bruno Haible  <bruno@clisp.org>
55686
55687         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55688
55689 2007-09-29  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55692         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55693         * build-aux/install-reloc: Compile also areadlink.c.
55694         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55695
55696 2007-09-29  Bruno Haible  <bruno@clisp.org>
55697
55698         * gnulib-tool (func_emit_initmacro_done): Indentation.
55699
55700 2007-09-29  Bruno Haible  <bruno@clisp.org>
55701
55702         * README: Add CVS checkout update instructions.
55703         Info from Bob Proulx <bob@proulx.com>.
55704
55705 2007-09-28  Eric Blake  <ebb9@byu.net>
55706
55707         Provide move-if-change.
55708         * build-aux/move-if-change: New file, based on best practice
55709         rather than any canonical upstream location.
55710
55711 2007-09-28  Jim Meyering  <jim@meyering.net>
55712
55713         Fix canonicalize loop-detection corner case.
55714         Do not attempt to stat the symlink values stored via seen_triple.
55715         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55716         on linux-2.6.18, (but not 2.6.22).
55717         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55718         triple_compare.  The former compares dev,ino,filename, while the latter
55719         would actually stat dirname(filename) when dev and ino were equal.
55720         * lib/hash-triple.c: Install <string.h>.
55721         (STREQ): Define.
55722         (triple_compare_ino_str): New function.
55723         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55724
55725 2007-09-28  Eric Blake  <ebb9@byu.net>
55726
55727         Enforce that AC_REPLACE_FUNCS files exist.
55728         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55729         override check for typos.
55730
55731         Fix test-closein on Solaris 10.
55732         * tests/test-closein.c (main): Don't assume stdin can be inherited
55733         closed on all systems.
55734         * tests/test-closein.sh: Likewise.
55735         Reported by Piotr Tarnowski.
55736
55737 2007-09-28  Jim Meyering  <jim@meyering.net>
55738
55739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55740
55741 2007-09-27  Jim Meyering  <jim@meyering.net>
55742
55743         canonicalize: Avoid a false-positive cycle failure.
55744         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55745         Sort.  Remove cycle-check.
55746         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55747         not cycle-check.h.
55748         (seen_triple): New function.
55749         (canonicalize_filename_mode): Use it instead of cycle-check.
55750         * tests/test-canonicalize.c: Add a test for this bug.
55751         * tests/test-canonicalize.sh: Set up and run the test.
55752
55753         New module, file-set, from coreutils.
55754         * modules/file-set: Define it.
55755         * lib/file-set.c, lib/file-set.h: Implement.
55756
55757         New module, hash-triple, from coreutils.
55758         * modules/hash-triple: Define it.
55759         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55760
55761 2007-09-25  Eric Blake  <ebb9@byu.net>
55762
55763         Fix strerror on Interix.
55764         * lib/string_.h (strerror): Declare replacement.
55765         * doc/functions/strerror.texi (strerror): Document the Interix
55766         shortcoming.
55767         * modules/string (Makefile.am): Support new hooks.
55768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55769         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55770         gl_FUNC_STRERROR_SEPARATE.
55771         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55772         * lib/strerror.c (rpl_strerror): Provide replacement.
55773         * modules/strerror (Depends-on): Add string.
55774         (configure.ac): Detect use of module.
55775         * tests/test-strerror.c: New file.
55776         * modules/strerror-tests: New test module.
55777         * modules/argp (Depends-on): Add strerror.
55778         * modules/error (Depends-on): Likewise.
55779         Reported by Martin Koeppe.
55780
55781 2007-09-24  Bruno Haible  <bruno@clisp.org>
55782
55783         * README: Update git instructions.
55784
55785 2007-09-24  Eric Blake  <ebb9@byu.net>
55786
55787         Revert fpending breakage from 2007-09-08.
55788         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55789         __fpending.c.
55790
55791 2007-09-24  Jim Meyering  <jim@meyering.net>
55792
55793         filenamecat.c: Add a test.
55794         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55795         showing how the function works when DIR is the empty string.
55796
55797 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55798
55799         * tests/test-canonicalize.sh: Turn on executable bit.
55800
55801 2007-09-19  Eric Blake  <ebb9@byu.net>
55802
55803         * README: Update CVS instructions.
55804
55805 2007-09-18  Bruno Haible  <bruno@clisp.org>
55806
55807         * modules/areadlink: New file.
55808         * lib/areadlink.h (areadlink): New declaration.
55809         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55810
55811 2007-09-17  Jim Meyering  <jim@meyering.net>
55812
55813         * lib/savewd.c (ESTALE) [!defined]: Define.
55814         Reported to be required on Interix by Martin Koeppe.
55815
55816 2007-09-17  Bruno Haible  <bruno@clisp.org>
55817
55818         * gnulib-tool (func_version): Use $version.
55819
55820 2007-09-16  Bruno Haible  <bruno@clisp.org>
55821
55822         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55823         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55824         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55825         Reported by Greg Schafer <gschafer@zip.com.au>.
55826
55827 2007-09-15  Bruno Haible  <bruno@clisp.org>
55828
55829         * gnulib-tool (sed): Try a little harder to make bash understand the
55830         alias.
55831         Reported by Bruce Korb <bruce.korb@gmail.com>.
55832
55833 2007-09-13  Eric Blake  <ebb9@byu.net>
55834
55835         * ChangeLog: Remove conflict markers.
55836
55837 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55838
55839         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55840         Reported by Bruno Haible <bruno@clisp.org>.
55841
55842 2007-09-12  Bruno Haible  <bruno@clisp.org>
55843
55844         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55845         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55846         is not defined.
55847
55848 2007-09-12  Eric Blake  <ebb9@byu.net>
55849
55850         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55851         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55852         Autoconf definition.
55853         * modules/euidaccess (Depends-on): Add extensions, for
55854         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55855         * modules/fnmatch (Depends-on): Likewise.
55856         * modules/getaddrinfo (Depends-on): Likewise.
55857         * modules/getdelim (Depends-on): Likewise.
55858         * modules/getline (Depends-on): Likewise.
55859         * modules/getsubopt (Depends-on): Likewise.
55860         * modules/gettext (Depends-on): Likewise.
55861         * modules/group-member (Depends-on): Likewise.
55862         * modules/mbchar (Depends-on): Likewise.
55863         * modules/memmem (Depends-on): Likewise.
55864         * modules/mempcpy (Depends-on): Likewise.
55865         * modules/memrchr (Depends-on): Likewise.
55866         * modules/pagealign_alloc (Depends-on): Likewise.
55867         * modules/readutmp (Depends-on): Likewise.
55868         * modules/stpcpy (Depends-on): Likewise.
55869         * modules/stpncpy (Depends-on): Likewise.
55870         * modules/strchrnul (Depends-on): Likewise.
55871         * modules/strndup (Depends-on): Likewise.
55872         * modules/strsep (Depends-on): Likewise.
55873         * modules/strverscmp (Depends-on): Likewise.
55874         * modules/vasprintf (Depends-on): Likewise.
55875         * modules/wcwidth (Depends-on): Likewise.
55876         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55877         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55878         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55880         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55881         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55882         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55883         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55884         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55885         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55887         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55888         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55889         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55890         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55891         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55892         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55893         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55895         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55896         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55897         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55898         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55899         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55900         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55902         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55903         so that lock.m4 can be used in gettext without extensions module.
55904
55905 2007-09-11  Bruno Haible  <bruno@clisp.org>
55906
55907         * m4/isc-posix.m4: Remove file.
55908         Suggested by Eric Blake.
55909
55910 2007-09-11  Eric Blake  <ebb9@byu.net>
55911
55912         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55913
55914 2007-09-10  Bruno Haible  <bruno@clisp.org>
55915
55916         * posix-modules: Fix typo in error message.
55917         Reported by Matt <mkraai@beckman.com>.
55918
55919 2007-09-09  Bruno Haible  <bruno@clisp.org>
55920
55921         * doc/functions/getdelim.texi: Update list of platforms lacking the
55922         function.
55923         * doc/functions/getline.texi: Likewise.
55924
55925 2007-09-09  Jim Meyering  <jim@meyering.net>
55926
55927         * lib/hash.c (hash_initialize): Detect calloc failure.
55928         Reported by Bruno Haible.
55929
55930 2007-09-09  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55933         malloc or realloc fails.
55934
55935 2007-09-09  Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/getcwd (Depends-on): Add malloc-posix.
55938         * modules/glob (Depends-on): Likewise.
55939         * modules/putenv (Depends-on): Likewise.
55940         * modules/strdup (Depends-on): Likewise.
55941         * modules/getdelim (Depends-on): Add realloc-posix.
55942         * modules/read-file (Depends-on): Likewise.
55943
55944 2007-09-09  Bruno Haible  <bruno@clisp.org>
55945
55946         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55947         (gl_FUNC_MALLOC_POSIX): Require it.
55948         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55949         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55950         * modules/realloc (Files): Add m4/malloc.m4.
55951         * modules/calloc (Files): Likewise.
55952
55953 2007-09-09  Bruno Haible  <bruno@clisp.org>
55954
55955         * modules/malloc-posix: New file.
55956         * modules/malloc (Depends-on): Add malloc-posix.
55957         * lib/malloc.c: Include errno.h.
55958         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55959         and a POSIX-compatible malloc into a single function. Set ENOMEM
55960         when returning NULL.
55961         * m4/malloc.m4: New file.
55962         * doc/functions/malloc.texi: Mention the malloc-posix module.
55963         * lib/stdlib_.h (malloc): New declaration.
55964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55965         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55966         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55967         and HAVE_MALLOC_POSIX.
55968
55969 2007-09-09  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/realloc-posix: New file.
55972         * modules/realloc (Depends-on): Add realloc-posix.
55973         * lib/realloc.c: Include errno.h.
55974         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55975         and a POSIX-compatible realloc into a single function. Set ENOMEM
55976         when returning NULL.
55977         * m4/realloc.m4: New file.
55978         * doc/functions/realloc.texi: Mention the realloc-posix module.
55979         * lib/stdlib_.h (realloc): New declaration.
55980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55981         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55982         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55983         and HAVE_REALLOC_POSIX.
55984
55985 2007-09-09  Bruno Haible  <bruno@clisp.org>
55986
55987         * modules/calloc-posix: New file.
55988         * modules/calloc (Depends-on): Add calloc-posix.
55989         * lib/calloc.c: Include errno.h.
55990         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55991         and a POSIX-compatible calloc into a single function. Set ENOMEM
55992         when returning NULL.
55993         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55994         * doc/functions/calloc.texi: Mention the calloc-posix module.
55995         * lib/stdlib_.h (calloc): New declaration.
55996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55997         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55998         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55999         and HAVE_CALLOC_POSIX.
56000
56001 2007-09-09  Bruno Haible  <bruno@clisp.org>
56002
56003         Allow for modules to show an arbitrary notice.
56004         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56005         * gnulib-tool: New option --extract-notice.
56006         (func_usage): Document it.
56007         (sed_extract_prog): Update.
56008         (func_get_notice): New function.
56009         (func_modules_notice): New function.
56010         (func_import, func_create_testdir): Invoke it.
56011         Suggested by Jim Meyering.
56012
56013 2007-09-09  Bruno Haible  <bruno@clisp.org>
56014
56015         * gnulib-tool: New options --verbose, --quiet.
56016         (func_usage): Document them.
56017         (verbose): New variable.
56018         (func_execute_command): New function.
56019         (func_import): Don't show the module list and the file list if
56020         $verbose < 0.
56021         (func_create_testdir): Likewise. Use func_execute_command.
56022         (func_create_megatestdir): Use func_execute_command.
56023
56024 2007-09-08  Bruno Haible  <bruno@clisp.org>
56025
56026         * gnulib-tool (func_import): Prefer rsync over wget when available,
56027         for fetching the PO files.
56028
56029 2007-09-08  Bruno Haible  <bruno@clisp.org>
56030
56031         * posix-modules: New file. Portions copied from gnulib-tool.
56032         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56033
56034 2007-09-08  Jim Meyering  <jim@meyering.net>
56035
56036         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56037         * lib/fpending.h: Rename from __fpending.h.
56038         * lib/fpending.c: Rename from __fpending.c.
56039         Include "fpending.h", not "__fpending.h".
56040         * lib/__fpending.h, lib/__fpending.c: Remove files.
56041         * modules/fpending (Files): Reflect new file names.
56042         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56043
56044 2007-09-08  Bruno Haible  <bruno@clisp.org>
56045
56046         * m4/inttypes-h.m4: Remove stub file.
56047
56048 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56049
56050         * doc/headers/stdint.texi: Discuss #include_next issue.
56051
56052 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56053
56054         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56055
56056 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56057
56058         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56059         in variable name.
56060
56061 2007-09-03  Jim Meyering  <jim@meyering.net>
56062
56063         New module: git-version-gen.
56064         * modules/git-version-gen: New file.
56065
56066         Import changes from coreutils for bootstrap script.
56067
56068         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56069
56070         bootstrap: uses rsync to download the .po files
56071         * build-aux/bootstrap (po_download_command_format): New global.
56072         (download_po_files): Use rsync.
56073         (update_po_files): Don't remove .po files after download,
56074         so future rsync runs can take advantage of the copies.
56075
56076         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56077
56078         Solve the unnecessary-.po-file-regeneration problem once and for all.
56079         * build-aux/bootstrap (download_po_files): New function, renamed from
56080         get_translations.  Now, downloads, but doesn't update LINGUAS.
56081         (update_po_files): New function.
56082
56083         bootstrap: Ignore more.
56084         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56085         uniwidth to e.g., lib/.gitignore.
56086         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56087
56088         * build-aux/bootstrap: New setting: vc_ignore.
56089         (insert_sorted_if_absent): Create $file if absent.
56090         Adapt to new, possibly empty, list: $vc_ignore.
56091
56092         bootstrap: generate more ignorable names
56093         * build-aux/bootstrap (slurp): When generating ignorable names,
56094         also map .sin to .sed, .gperf to .c, and .y to .c.
56095
56096 2007-09-03  Jim Meyering  <jim@meyering.net>
56097
56098         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56099         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56100
56101 2007-09-02  Bruno Haible  <bruno@clisp.org>
56102
56103         Fix mis-recognition of 'mcs' on QNX 6.
56104         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56105         output contains the string "Mono".
56106         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56107         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56108
56109 2007-09-01  Bruno Haible  <bruno@clisp.org>
56110
56111         Fix collision between uniwidth/* and linebreak modules.
56112         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56113         u32_width): Remove declarations.
56114         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56115         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56116         streq3, streq2, streq1, streq0): Remove functions.
56117         (STREQ): Remove macro.
56118         (is_cjk_encoding): Remove function.
56119         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56120         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56121         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56122         * NEWS: Document the change.
56123
56124 2007-09-01  Bruno Haible  <bruno@clisp.org>
56125
56126         * lib/streq.h: Add double-inclusion guard.
56127
56128 2007-09-01  Karl Berry  <karl@gnu.org>
56129
56130         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56131
56132 2007-08-28  Jim Meyering  <jim@meyering.net>
56133
56134         Rename mreadlink_with_size to areadlink_with_size.
56135         * NEWS: Document the change.
56136         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56137         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56138         * lib/mreadlink.h: Rename this to...
56139         * lib/areadlink.h: ...this.
56140         * modules/mreadlink-with-size: Rename this to...
56141         * modules/areadlink-with-size: ...this.
56142         * lib/canonicalize.c: Reflect the renaming.
56143         * modules/canonicalize: Likewise.
56144
56145 2007-08-26  Bruno Haible  <bruno@clisp.org>
56146
56147         * gnulib-tool (func_import): When deciding which files to remove,
56148         consider also dangling symbolic links.
56149         Reported by Eric Blake.
56150
56151 2007-08-26  Bruno Haible  <bruno@clisp.org>
56152
56153         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56154
56155 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56156
56157         * lib/readline.c: Don't include getline.h, the prototype is now
56158         found in stdio.h.
56159
56160 2007-08-23  Jim Meyering  <jim@meyering.net>
56161
56162         Getdelim touchup.
56163         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56164         around the funlockfile call, since funlockfile never sets errno.
56165         Don't set errno upon failed realloc.
56166
56167 2007-08-22  Eric Blake  <ebb9@byu.net>
56168
56169         Getline touchups.
56170         * lib/getdelim.c (getdelim): Revert regression that required *n to
56171         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56172         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56173         getdelim, rather than whether implementation is missing.
56174         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56175         * lib/stdio_.h (getline): Also declare if replacement is
56176         required.
56177         * doc/functions/getdelim.texi: New file.
56178         * doc/functions/getline.texi: Likewise.
56179         * doc/gnulib.texi (Function Substitutes): Add new files.
56180         Reported by Bruno Haible.
56181
56182 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56183
56184         * users.txt: Add Guile.
56185
56186 2007-08-22  Eric Blake  <ebb9@byu.net>
56187
56188         * tests/test-getdelim.c (main): Use remove, not unlink.
56189         * tests/test-getline.c (main): Likewise.
56190
56191         Move getline and getdelim into stdio.h, per POSIX 200x.
56192         * modules/getline (Files): Remove getline.h.
56193         (Depends-on): Add stdio.
56194         (configure.ac): Add module indicator.
56195         * modules/getdelim (Files): Remove getdelim.h.
56196         (Depends-on): Add stdio.
56197         (configure.ac): Add module indicator.
56198         * modules/stdio (Makefile.am): Work with new indicators.
56199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56201         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56202         * lib/getdelim.h: Delete.
56203         * lib/getline.h: Delete.
56204         * lib/stdio_.h (getdelim, getline): Declare.
56205         * modules/getdelim-tests: New module.
56206         * modules/getline-tests: Likewise.
56207         * tests/test-getdelim.c: New file.
56208         * tests/test-getline.c: Likewise.
56209         * NEWS: Document the change.
56210         * lib/getline.c: Update choice of header.
56211         * lib/csharpcomp.c: Likewise.
56212         * lib/getpass.c: Likewise.
56213         * lib/javacomp.c: Likewise.
56214         * lib/javaversion.c: Likewise.
56215         * lib/yesno.c: Likewise.
56216         * lib/getdelim.c: Likewise.
56217         (getdelim): Set errno on failure, and avoid memory leak.
56218
56219 2007-08-19  Bruno Haible  <bruno@clisp.org>
56220
56221         * modules/closein (Depends-on): Add freadahead.
56222         * lib/closein.c: Include freadahead.h.
56223         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56224         is zero.
56225
56226 2007-08-19  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/freadahead-tests: New file.
56229         * tests/test-freadahead.sh: New file.
56230         * tests/test-freadahead.c: New file.
56231
56232         * modules/freadahead: New file.
56233         * lib/freadahead.h: New file.
56234         * lib/freadahead.c: New file.
56235         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56236         fbufmode, fpurge, freadable, fwritable.
56237
56238 2007-08-19  Eric Blake  <ebb9@byu.net>
56239
56240         Test yesno in combination with closein.
56241         * lib/yesno.c (yesno): Document use of stdin.
56242         * modules/yesno-tests (Files): New module.
56243         * tests/test-yesno.c (main): New file.
56244         * tests/test-yesno.sh: Likewise.
56245
56246 2007-08-19  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56249         * lib/fseeko.c (rpl_fseeko): Likewise.
56250         * lib/fseterr.c (fseterr): Likewise.
56251
56252 2007-08-19  Bruno Haible  <bruno@clisp.org>
56253
56254         * tests/test-lseek.c (main): Disable a test for BeOS.
56255         * doc/functions/lseek.texi: Document the BeOS bug.
56256
56257 2007-08-19  Bruno Haible  <bruno@clisp.org>
56258             Eric Blake  <ebb9@byu.net>
56259
56260         * lib/lseek.c: Include <sys/stat.h>.
56261         (rpl_lseek): Add workaround code also for Unix platforms.
56262         Needed for BeOS.
56263         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56264         * doc/functions/lseek.texi: Document BeOS definiency.
56265
56266 2007-08-18  Bruno Haible  <bruno@clisp.org>
56267
56268         * modules/fstrcmp-tests: New file.
56269         * tests/test-fstrcmp.c: New file.
56270
56271 2007-08-18  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/fstrcmp: New file, from GNU gettext with modifications.
56274         * lib/fstrcmp.h: New file, from GNU gettext.
56275         * lib/fstrcmp.c: New file, from GNU gettext.
56276         * MODULES.html.sh (String handling): Add fstrcmp.
56277
56278 2007-08-18  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56281         'bool'.
56282         (diag, compareseq): Remove const from the ctxt argument.
56283         (USE_HEURISTIC): Undefine at the end.
56284
56285 2007-08-18  Jim Meyering  <jim@meyering.net>
56286
56287         New file: lib/idcache.h
56288         * NEWS: Mention the addition.
56289         * modules/idcache (Files): Add lib/idcache.h
56290         * lib/idcache.c: Include "idcache.h".
56291         Don't include <sys/types.h>.
56292         Add a FIXME comment.
56293         Move file-scoped "static" declarations to the top.
56294         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56295
56296 2007-08-17  Bruno Haible  <bruno@clisp.org>
56297         and Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         * MODULES.html.sh: Add diffseq.
56300         * modules/diffseq: New file.
56301         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56302         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56303
56304 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56305
56306         Import changes from coreutils for bootstrap script.
56307
56308         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56309
56310         * build-aux/bootstrap (slurp): Work even in environments where
56311         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56312         current code does not slurp files whose names start with ".", and
56313         this looks like it might be a troublesome area.
56314
56315         2007-07-11  Jim Meyering  <jim@meyering.net>
56316
56317         If there's a GPL vN copyright comment, require that N == 3.
56318
56319         2007-07-08  Jim Meyering  <jim@meyering.net>
56320
56321         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56322         * build-aux/bootstrap (mam_template): Move definition out of loop.
56323
56324         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56325
56326         * build-aux/bootstrap (symlink_to_dir): Rename function from
56327         symlink_to_gnulib.  Add a directory parameter.  Update all
56328         callers.
56329         (cp_mark_as_generated): Also check for -- and link to -- files in
56330         gl/.
56331
56332         2007-07-08  Jim Meyering  <jim@meyering.net>
56333
56334         Adapt to deeper hierarchy in gnulib.
56335         * build-aux/bootstrap (symlink_to_dir): If the destination
56336         directory doesn't exist, create it. This is required at least for
56337         "lib/uniwidth/cjk.h".
56338
56339         2007-05-15  Jim Meyering  <jim@meyering.net>
56340
56341         * build-aux/bootstrap: Now that generated Makefile.am files
56342         are no longer under version control, they must be created at
56343         bootstrap time.
56344
56345 2007-08-14  Ben Pfaff  <blp@gnu.org>
56346
56347         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56348
56349 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56350
56351         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56352         given the changes below.
56353         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56354         even on hosts that have padding bits beyond the supported 64.
56355
56356 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56357
56358         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56359         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56360         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56361         depends on it.
56362         (xstrtol_error): Remove.
56363         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56364         but with a different signature.
56365         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56366         * lib/xstrtol-error.c: Include exitfail.h.
56367         (xstrtol_fatal): New function, with a different signature from the
56368         old xstrtol_error, so that the caller need not worry about passing
56369         in an exit status, or about storage management of the option argument.
56370         (xstrtol_error): Now a static function.  Redo signature to
56371         implement xstrtol_fatal.  Output the correct number of hyphens in
56372         front of the option so that the caller need not worry about
56373         storage management.
56374         (N_): New macro.
56375         (_): Remove; not used now.
56376         * modules/xstrtol: Depend on getopt.
56377         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56378         of old STRTOL_FATAL_ERROR macro.
56379         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56380         of test program.
56381         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56382         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56383
56384 2007-08-08  Eric Blake  <ebb9@byu.net>
56385
56386         * lib/xstrtol-error.c: Add missing include.
56387
56388         Move xstrtol messages into gnulib domain, when --pobase is used.
56389         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56390         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56391         * modules/xstrtol (Files): Distribute new file.
56392         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56393         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56394         * tests/test-xstrtol.c: ...into new file.
56395         * tests/test-xstrtoul.c: Also test xstrtoul.
56396         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56397         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56398         * tests/test-xstrtol.sh: Drive the tests.
56399         * tests/test-xstrtoimax.sh: Likewise.
56400         * tests/test-xstrtoumax.sh: Likewise.
56401         * modules/xstrtol-tests: New module.
56402         * modules/xstrtoimax-tests: Likewise.
56403         * modules/xstrtoumax-tests: Likewise.
56404
56405 2007-08-08  Jim Meyering  <jim@meyering.net>
56406
56407         New function: mfile_name_concat.
56408         * lib/filenamecat.c (mfile_name_concat): New function, just like
56409         file_name_concat, but return NULL upon failure rather than exiting
56410         with a diagnostic.
56411         * lib/filenamecat.h: Declare it.
56412
56413 2007-08-07  Bruno Haible  <bruno@clisp.org>
56414
56415         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56416         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56417         warning from gcc.
56418         Reported by Eric Blake.
56419
56420 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56421
56422         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56423         * modules/crypto/arcfour (License): Likewise.
56424         * modules/crypto/des-tests (License): Likewise.
56425         * modules/crypto/gc-arctwo-tests (License): Likewise.
56426         * modules/crypto/gc-des-tests (License): Likewise.
56427         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56428         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56429         * modules/crypto/gc-md2-tests (License): Likewise.
56430         * modules/crypto/gc-md4-tests (License): Likewise.
56431         * modules/crypto/gc-md5-tests (License): Likewise.
56432         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56433         * modules/crypto/gc-rijndael-tests (License): Likewise.
56434         * modules/crypto/gc-sha1-tests (License): Likewise.
56435         * modules/crypto/gc-tests (License): Likewise.
56436         * modules/crypto/hmac-md5 (License): Likewise.
56437         * modules/crypto/hmac-sha1 (License): Likewise.
56438         * modules/crypto/md2-tests (License): Likewise.
56439         * modules/crypto/md4-tests (License): Likewise.
56440         * modules/crypto/md5 (License): Likewise.
56441         * modules/crypto/rijndael (License): Likewise.
56442         * modules/crypto/sha1 (License): Likewise.
56443         * modules/memxor (License): Likewise.
56444
56445 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56446         and Bruno Haible  <bruno@clisp.org>
56447
56448         * NEWS: Describe interface changes to human, xstrtol.
56449         * lib/human.h: Include <xstrtol.h>.
56450         (human_options): Return enum strtol_error, not int.  Remove
56451         bool arg; take int * instead.
56452         * lib/human.c: Don't include "gettext.h".
56453         (_): Remove; no longer used.
56454         Don't include <xstrtol.h>, since human.h does it.
56455         (human_options): Adjust to abovementioned interface changes.
56456         Do not report error to stderr; that's now the caller's
56457         responsibility.
56458         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56459         interface change.
56460         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56461         Str, Argument_type_string.  All uses changed.  Put " argument"
56462         in diagnostics to make them clearer.  Change wording of suffix
56463         message for clarity.
56464         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56465         Argument_type_string.
56466         (STRTOL_FATAL_WARN): Remove; no longer used.
56467         * modules/human (Depends-on): Remove gettext-h.
56468
56469 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56470
56471         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56472
56473 2007-07-31  Bruno Haible  <bruno@clisp.org>
56474
56475         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56476         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56477         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56478
56479 2007-07-31  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56482         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56483
56484 2007-07-30  Bruno Haible  <bruno@clisp.org>
56485
56486         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56487         * modules/c-ctype (License): Likewise.
56488         * modules/c-strcase (License): Likewise.
56489         * modules/check-version (License): Likewise.
56490         * modules/iconv (License): Likewise.
56491         * modules/iconv_open (License): Likewise.
56492         * modules/read-file (License): Likewise.
56493         * modules/striconv (License): Likewise.
56494         * modules/strverscmp (License): Likewise.
56495         * modules/vasprintf (License): Likewise.
56496         * modules/crypto/des (License): Likewise.
56497         * modules/crypto/gc (License): Likewise.
56498         * modules/crypto/gc-arcfour (License): Likewise.
56499         * modules/crypto/gc-arctwo (License): Likewise.
56500         * modules/crypto/gc-des (License): Likewise.
56501         * modules/crypto/gc-hmac-md5 (License): Likewise.
56502         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56503         * modules/crypto/gc-md2 (License): Likewise.
56504         * modules/crypto/gc-md4 (License): Likewise.
56505         * modules/crypto/gc-md5 (License): Likewise.
56506         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56507         * modules/crypto/gc-random (License): Likewise.
56508         * modules/crypto/gc-rijndael (License): Likewise.
56509         * modules/crypto/gc-sha1 (License): Likewise.
56510         * modules/crypto/md2 (License): Likewise.
56511         * modules/crypto/md4 (License): Likewise.
56512
56513 2007-07-30  Jim Meyering  <jim@meyering.net>
56514
56515         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56516         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56517         it has valid stat data.  This bug would cause du not to count the
56518         sizes of inaccessible directories.
56519         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56520         in <http://bugzilla.redhat.com/250077>.
56521
56522 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56523             Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56526         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56527         #include_next, gives a diagnostic about it, but reports no error in
56528         the exit code.
56529         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56530
56531 2007-07-24  Ben Pfaff  <blp@gnu.org>
56532
56533         Improve name: "count-one-bits" is better than "popcount".
56534         * MODULES.html.sh: Update name.
56535         * lib/popcount.h: Renamed lib/count-one-bits.h.
56536         (popcount): Renamed count_one_bits.
56537         (popcountl): Renamed count_one_bits_l.
56538         (popcountll): Renamed count_one_bits_ll.
56539         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56540         * modules/popcount: Renamed module/count-one-bits.
56541         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56542         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56543
56544 2007-07-23  Ben Pfaff  <blp@gnu.org>
56545
56546         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56547         better code generation, and add U to large constants to avoid
56548         warnings, in non-GCC case.
56549         Suggested by Bruno Haible.
56550
56551 2007-07-23  Ben Pfaff  <blp@gnu.org>
56552
56553         * lib/popcount.h: Use verify_true instead of if...abort.
56554         * modules/popcount: Depend on verify module.
56555         Suggested by Jim Meyering.
56556
56557 2007-07-23  Bruno Haible  <bruno@clisp.org>
56558
56559         * gnulib-tool (func_import): Create a .cvsignore file also when the
56560         directory is not yet in CVS but the toplevel directory is. When
56561         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56562         Reported by Karl Berry.
56563
56564 2007-07-22  Ben Pfaff  <blp@gnu.org>
56565
56566         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56567         case.
56568         Suggested by Eric Blake.
56569
56570 2007-07-22  Ben Pfaff  <blp@gnu.org>
56571
56572         New module: popcount.
56573         * MODULES.html.sh: Add popcount.
56574         * modules/popcount: New file.
56575         * modules/popcount-tests: New file.
56576         * tests/test-popcount.c: New file.
56577         * lib/popcount.h: New file.
56578         * m4/popcount.m4: New file.
56579
56580 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56581
56582         * build-aux/announce-gen: Update to GPLv3.
56583
56584         * build-aux/config.guess: Update from config.
56585
56586 2007-07-21  Bruno Haible  <bruno@clisp.org>
56587
56588         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56589         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56590
56591 2007-07-20  Jim Meyering  <jim@meyering.net>
56592
56593         * check-module: Diagnose a self-dependency.
56594
56595 2007-07-19  Bruno Haible  <bruno@clisp.org>
56596
56597         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56598         empty.
56599         Reported by Eric Blake.
56600
56601 2007-07-18  Bruno Haible  <bruno@clisp.org>
56602
56603         * gnulib-tool: New options --po-base, --po-domain.
56604         (func_usage): Document them.
56605         (pobase, po_domain): New variables.
56606         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56607         DEFAULT_TEXT_DOMAIN.
56608         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56609         (func_import): Consider pobase and po_domain. Create a po/ directory.
56610         (func_create_testdir): Set pobase and po_domain to empty.
56611         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56612         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56613
56614 2007-07-18  Bruno Haible  <bruno@clisp.org>
56615
56616         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56617         EXTRA_DIST augmentation for files in build-aux/.
56618
56619 2007-07-16  Bruno Haible  <bruno@clisp.org>
56620
56621         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56622         * modules/getdelim (License): Likewise.
56623
56624 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56625
56626         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56627         * modules/d-type (License): Likewise.
56628         * modules/extensions (License): Likewise.
56629         * modules/fnmatch (License): Likewise.
56630         * modules/fseeko (License): Likewise.
56631         * modules/getaddrinfo (License): Likewise.
56632         * modules/getline (License): Likewise.
56633         * modules/getlogin_r (License): Likewise.
56634         * modules/getpass (License): Likewise.
56635         * modules/gettimeofday (License): Likewise.
56636         * modules/glob (License): Likewise.
56637         * modules/inet_ntop (License): Likewise.
56638         * modules/malloc (License): Likewise.
56639         * modules/malloca (License): Likewise.
56640         * modules/memmem (License): Likewise.
56641         * modules/mempcpy (License): Likewise.
56642         * modules/memset (License): Likewise.
56643         * modules/minmax (License): Likewise.
56644         * modules/mktime (License): Likewise.
56645         * modules/netinet_in (License): Likewise.
56646         * modules/pathmax (License): Likewise.
56647         * modules/poll (License): Likewise.
56648         * modules/regex (License): Likewise.
56649         * modules/snprintf (License): Likewise.
56650         * modules/stdbool (License): Likewise.
56651         * modules/stdint (License): Likewise.
56652         * modules/stdio (License): Likewise.
56653         * modules/strcase (License): Likewise.
56654         * modules/strcasestr (License): Likewise.
56655         * modules/strdup (License): Likewise.
56656         * modules/string (License): Likewise.
56657         * modules/strndup (License): Likewise.
56658         * modules/strnlen (License): Likewise.
56659         * modules/strpbrk (License): Likewise.
56660         * modules/strptime (License): Likewise.
56661         * modules/strsep (License): Likewise.
56662         * modules/sys_select (License): Likewise.
56663         * modules/sys_socket (License): Likewise.
56664         * modules/sys_stat (License): Likewise.
56665         * modules/sys_time (License): Likewise.
56666         * modules/time (License): Likewise.
56667         * modules/time_r (License): Likewise.
56668         * modules/timegm (License): Likewise.
56669         * modules/unistd (License): Likewise.
56670         * modules/vsnprintf (License): Likewise.
56671         * modules/wctype (License): Likewise.
56672
56673 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56674
56675         * modules/argz (License): LGPLv2+.
56676
56677 2007-07-15  Karl Berry  <karl@gnu.org>
56678
56679         * doc/gnulib.texi: revise node structure per new fdl.texi.
56680
56681 2007-07-14  Bruno Haible  <bruno@clisp.org>
56682
56683         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56684         the output file.
56685         * lib/uniname/uninames.h: Regenerated.
56686
56687 2007-07-14  Karl Berry  <karl@gnu.org>
56688
56689         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56690         omitting sectioning and index commands.
56691
56692 2007-07-13  Bruno Haible  <bruno@clisp.org>
56693
56694         New gnulib-tool option --more-symlinks.
56695         * gnulib-tool (func_usage): Document --more-symlinks.
56696         (do_copyrights): New variable.
56697         Recognize option --more-symlinks.
56698         (func_import): Don't add a copyright notice transform to
56699         sed_transform_lib_file if do_copyrights is empty.
56700
56701 2007-07-13  Bruno Haible  <bruno@clisp.org>
56702
56703         * lib/vasnprintf.c (decimal_point_char): Define also if
56704         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56705         && !NEED_PRINTF_DIRECTIVE_A.
56706         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56707         Gary V. Vaughan <gary@gnu.org>.
56708
56709 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56710
56711         * lib/inttypes_.h: Undo previous change, since it was fixed
56712         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56713
56714 2007-07-13  Bruno Haible  <bruno@clisp.org>
56715
56716         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56717         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56718
56719 2007-07-13  Jim Meyering  <jim@meyering.net>
56720
56721         df: Don't fail for Tru64's "file-on-file mount".
56722         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56723         so we fall through and use statfs instead.  Details here:
56724         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56725         Reported by Albert Chin.
56726
56727 2007-07-13  Bruno Haible  <bruno@clisp.org>
56728
56729         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56730         * modules/configmake (License): Likewise.
56731         * modules/gettext (License): Likewise.
56732         * modules/gettext-h (License): Likewise.
56733         * modules/include_next (License): Likewise.
56734         * modules/link-warning (License): Likewise.
56735         * modules/localcharset (License): Likewise.
56736         * modules/localename (License): Likewise.
56737         * modules/lock (License): Likewise.
56738         * modules/relocatable-lib-lgpl (License): Likewise.
56739         * modules/size_max (License): Likewise.
56740         * modules/vasnprintf (License): Likewise.
56741         * modules/wchar (License): Likewise.
56742         * modules/xsize (License): Likewise.
56743
56744 2007-07-13  Bruno Haible  <bruno@clisp.org>
56745
56746         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56747         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56748
56749 2007-07-12  Bruno Haible  <bruno@clisp.org>
56750
56751         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56752         in the modules files.
56753
56754 2007-07-11  Karl Berry  <karl@gnu.org>
56755
56756         * MODULES.html.sh (func_module): use
56757          sed -e '\|^'"${includefile}"'$|d'
56758          instead of /.../d, to avoid errors on $includefile's containing /.
56759
56760 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56761
56762         * gnulib-tool (func_import): Avoid duplication of --avoid
56763         statements
56764         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56765         names to `_' in variable names.
56766
56767 2007-07-10  Eric Blake  <ebb9@byu.net>
56768
56769         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56770         * NEWS: Document this change.
56771
56772 2007-07-08  Bruno Haible  <bruno@clisp.org>
56773
56774         Update to Unicode 5.0.
56775         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56776         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56777         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56778         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56779         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56780         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56781         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56782         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56783         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56784         U+10A3F, U+1D242..U+1D244.
56785         (nonspacing_table_ind): Update.
56786         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56787         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56788
56789 2007-07-08  Bruno Haible  <bruno@clisp.org>
56790
56791         Update to Unicode 5.0.
56792         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56793         code transform. Extend the name index field of unicode_name_to_code and
56794         unicode_code_to_name from 16 to 24 bits.
56795         * lib/uniname/uniname.c (unicode_character_name,
56796         unicode_name_character): Add the range 0x12xxx to the code transform.
56797         * lib/uniname/uninames.h: Regenerated.
56798         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56799
56800 2007-07-07  Bruno Haible  <bruno@clisp.org>
56801
56802         * modules/wcwidth-tests: New file.
56803         * tests/test-wcwidth.c: New file.
56804
56805         Work around MacOS X wcwidth() bug.
56806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56807         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56808         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56809         original wcwidth in non-UTF-8 locales.
56810         * modules/wcwidth (Depends-on): Add localcharset, streq,
56811         uniwidth/width.
56812         * doc/functions/wcwidth.texi: Update.
56813
56814 2007-07-07  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56817         (wcwidth): New declaration.
56818         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56819         macros.
56820         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56821         here. Prepare for creating <wchar.h> unconditionally.
56822         * modules/wchar (Depends-on): Add link-warning.
56823         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56824         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56825         * lib/wcwidth.h: Remove file.
56826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56827         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56828         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56829         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56830         (Include): Replace wcwidth.h with <wchar.h>.
56831         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56832         * lib/mbchar.h: Don't include wcwidth.h.
56833         * lib/mbswidth.c: Likewise.
56834         * NEWS: Mention the change.
56835
56836 2007-07-07  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56839         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56840         definition with an external declaration.
56841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56842         defined as a function. Remove AC_C_INLINE requirement.
56843         * modules/wcwidth (Files): Add lib/wcwidth.c.
56844         (Makefile.am): Remove redundant statement.
56845
56846 2007-07-07  Bruno Haible  <bruno@clisp.org>
56847
56848         * MODULES.html.sh (Unicode string functions): Add the new modules.
56849
56850         * tests/uniwidth/test-u32-strwidth.c: New file.
56851         * modules/uniwidth/u32-strwidth-tests: New file.
56852
56853         * lib/uniwidth/u32-strwidth.c: New file.
56854         * modules/uniwidth/u32-strwidth: New file.
56855
56856         * tests/uniwidth/test-u16-strwidth.c: New file.
56857         * modules/uniwidth/u16-strwidth-tests: New file.
56858
56859         * lib/uniwidth/u16-strwidth.c: New file.
56860         * modules/uniwidth/u16-strwidth: New file.
56861
56862         * tests/uniwidth/test-u8-strwidth.c: New file.
56863         * modules/uniwidth/u8-strwidth-tests: New file.
56864
56865         * lib/uniwidth/u8-strwidth.c: New file.
56866         * modules/uniwidth/u8-strwidth: New file.
56867
56868         * tests/uniwidth/test-u32-width.c: New file.
56869         * modules/uniwidth/u32-width-tests: New file.
56870
56871         * lib/uniwidth/u32-width.c: New file.
56872         * modules/uniwidth/u32-width: New file.
56873
56874         * tests/uniwidth/test-u16-width.c: New file.
56875         * modules/uniwidth/u16-width-tests: New file.
56876
56877         * lib/uniwidth/u16-width.c: New file.
56878         * modules/uniwidth/u16-width: New file.
56879
56880         * tests/uniwidth/test-u8-width.c: New file.
56881         * modules/uniwidth/u8-width-tests: New file.
56882
56883         * lib/uniwidth/u8-width.c: New file.
56884         * modules/uniwidth/u8-width: New file.
56885
56886         * tests/uniwidth/test-uc_width.c: New file.
56887         * modules/uniwidth/width-tests: New file.
56888
56889         * lib/uniwidth/width.c: New file, from GNU libiconv.
56890         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56891         * modules/uniwidth/width: New file.
56892
56893         * lib/uniwidth.h: New file, from GNU libiconv.
56894         * modules/uniwidth/base: New file.
56895
56896 2007-07-07  Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/uniname.h: New file, from GNU gettext.
56899         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56900         * lib/uniname/uninames.h: New file, from GNU gettext.
56901         * lib/uniname/uniname.c: New file, from GNU gettext.
56902         * tests/uniname/test-uninames.sh: New file.
56903         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56904         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56905         * modules/uniname/base: New file.
56906         * modules/uniname/uniname: New file.
56907         * modules/uniname/uniname-tests: New file.
56908         * MODULES.html.sh (Unicode string functions): Add the new modules.
56909
56910 2007-07-06  Bruno Haible  <bruno@clisp.org>
56911
56912         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56913
56914 2007-07-06  Bruno Haible  <bruno@clisp.org>
56915
56916         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56917         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56918         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56919         include <sys/time.h>.
56920         Reported by Eric Blake.
56921
56922 2007-07-06  Eric Blake  <ebb9@byu.net>
56923
56924         Fix testing canonicalize on cygwin.
56925         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56926         Revert patch from 2007-06-19.
56927         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56928         canonicalize module is also in use.
56929         * tests/test-canonicalize.c: New file.
56930         * tests/test-canonicalize.sh: Likewise.
56931         * modules/canonicalize-tests: Likewise.
56932
56933 2007-07-06  Jim Meyering  <jim@meyering.net>
56934
56935         * lib/getugroups.c (getugroups): Detect getgrent failure.
56936         Adjust comment to reflect reality: this function may return -1.
56937
56938 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56939
56940         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56941         the new TP address.
56942         (usage): Fix typo
56943         (gnulib_mk): New variable.
56944
56945 2007-07-05  Jim Meyering  <jim@meyering.net>
56946
56947         Don't let endgrent clobber errno, no matter how improbable.
56948         * lib/getugroups.c (getugroups): Save and restore errno around
56949         endgrent call.
56950
56951         Close the group DB even when failing with 2^31 or more members.
56952         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56953
56954 2007-07-04  Jim Meyering  <jim@meyering.net>
56955
56956         * lib/getugroups.h: New file.
56957         * lib/getugroups.c: Include "getugroups.h".
56958         Remove uses of "register" keyword.
56959         Move local variable, "cp", down into scope where used.
56960         Give "username" parameter the "const" attribute.
56961         * modules/getugroups (Files): Add lib/getugroups.h
56962
56963 2007-07-04  Karl Berry  <karl@gnu.org>
56964
56965         * MODULES.html.sh (func_all_modules): Complete rename of
56966         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56967
56968 2007-07-02  Bruno Haible  <bruno@clisp.org>
56969
56970         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56971         mode, when inttypes.h comes from gnulib.
56972         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56973
56974 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56975
56976         * NEWS: Mention lgpl module name change.
56977
56978         * modules/lgpl-2.1: Renamed from lgpl.
56979
56980         * NEWS: Mention gpl module name change.
56981
56982         * modules/gpl-3.0: New file, based on gpl-2.0.
56983
56984         * modules/gpl-2.0: Renamed from gpl.
56985
56986         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56987         doc/gpl-2.0.texi.
56988
56989 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56992         #define __STDC_LIMIT_MACROS temporarily while including
56993         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56994         Problem reported by Joel E. Denny in
56995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56996
56997 2007-07-01  Bruno Haible  <bruno@clisp.org>
56998
56999         * lib/unistdio.h: New file.
57000         * lib/unistdio/u-asnprintf.h: New file.
57001         * lib/unistdio/u-asprintf.h: New file.
57002         * lib/unistdio/u-printf-args.c: New file.
57003         * lib/unistdio/u-printf-args.h: New file.
57004         * lib/unistdio/u-printf-parse.h: New file.
57005         * lib/unistdio/u-snprintf.h: New file.
57006         * lib/unistdio/u-sprintf.h: New file.
57007         * lib/unistdio/u-vasprintf.h: New file.
57008         * lib/unistdio/u-vsnprintf.h: New file.
57009         * lib/unistdio/u-vsprintf.h: New file.
57010         * lib/unistdio/ulc-asnprintf.c: New file.
57011         * lib/unistdio/ulc-asprintf.c: New file.
57012         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57013         * lib/unistdio/ulc-printf-parse.c: New file.
57014         * lib/unistdio/ulc-snprintf.c: New file.
57015         * lib/unistdio/ulc-sprintf.c: New file.
57016         * lib/unistdio/ulc-vasnprintf.c: New file.
57017         * lib/unistdio/ulc-vasprintf.c: New file.
57018         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57019         * lib/unistdio/ulc-vsnprintf.c: New file.
57020         * lib/unistdio/ulc-vsprintf.c: New file.
57021         * lib/unistdio/u8-asnprintf.c: New file.
57022         * lib/unistdio/u8-asprintf.c: New file.
57023         * lib/unistdio/u8-printf-parse.c: New file.
57024         * lib/unistdio/u8-snprintf.c: New file.
57025         * lib/unistdio/u8-sprintf.c: New file.
57026         * lib/unistdio/u8-vasnprintf.c: New file.
57027         * lib/unistdio/u8-vasprintf.c: New file.
57028         * lib/unistdio/u8-vsnprintf.c: New file.
57029         * lib/unistdio/u8-vsprintf.c: New file.
57030         * lib/unistdio/u8-u8-asnprintf.c: New file.
57031         * lib/unistdio/u8-u8-asprintf.c: New file.
57032         * lib/unistdio/u8-u8-snprintf.c: New file.
57033         * lib/unistdio/u8-u8-sprintf.c: New file.
57034         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57035         * lib/unistdio/u8-u8-vasprintf.c: New file.
57036         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57037         * lib/unistdio/u8-u8-vsprintf.c: New file.
57038         * lib/unistdio/u16-asnprintf.c: New file.
57039         * lib/unistdio/u16-asprintf.c: New file.
57040         * lib/unistdio/u16-printf-parse.c: New file.
57041         * lib/unistdio/u16-snprintf.c: New file.
57042         * lib/unistdio/u16-sprintf.c: New file.
57043         * lib/unistdio/u16-vasnprintf.c: New file.
57044         * lib/unistdio/u16-vasprintf.c: New file.
57045         * lib/unistdio/u16-vsnprintf.c: New file.
57046         * lib/unistdio/u16-vsprintf.c: New file.
57047         * lib/unistdio/u16-u16-asnprintf.c: New file.
57048         * lib/unistdio/u16-u16-asprintf.c: New file.
57049         * lib/unistdio/u16-u16-snprintf.c: New file.
57050         * lib/unistdio/u16-u16-sprintf.c: New file.
57051         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57052         * lib/unistdio/u16-u16-vasprintf.c: New file.
57053         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57054         * lib/unistdio/u16-u16-vsprintf.c: New file.
57055         * lib/unistdio/u32-asnprintf.c: New file.
57056         * lib/unistdio/u32-asprintf.c: New file.
57057         * lib/unistdio/u32-printf-parse.c: New file.
57058         * lib/unistdio/u32-snprintf.c: New file.
57059         * lib/unistdio/u32-sprintf.c: New file.
57060         * lib/unistdio/u32-vasnprintf.c: New file.
57061         * lib/unistdio/u32-vasprintf.c: New file.
57062         * lib/unistdio/u32-vsnprintf.c: New file.
57063         * lib/unistdio/u32-vsprintf.c: New file.
57064         * lib/unistdio/u32-u32-asnprintf.c: New file.
57065         * lib/unistdio/u32-u32-asprintf.c: New file.
57066         * lib/unistdio/u32-u32-snprintf.c: New file.
57067         * lib/unistdio/u32-u32-sprintf.c: New file.
57068         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57069         * lib/unistdio/u32-u32-vasprintf.c: New file.
57070         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57071         * lib/unistdio/u32-u32-vsprintf.c: New file.
57072         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57073         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57074         * tests/unistdio/test-ulc-printf1.h: New file.
57075         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57076         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57077         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57078         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57079         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57080         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57081         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57082         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57083         * tests/unistdio/test-u8-asnprintf1.c: New file.
57084         * tests/unistdio/test-u8-asnprintf1.h: New file.
57085         * tests/unistdio/test-u8-printf1.h: New file.
57086         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57087         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57088         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57089         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57090         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57091         * tests/unistdio/test-u8-vasprintf1.c: New file.
57092         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57093         * tests/unistdio/test-u8-vsprintf1.c: New file.
57094         * tests/unistdio/test-u16-asnprintf1.c: New file.
57095         * tests/unistdio/test-u16-asnprintf1.h: New file.
57096         * tests/unistdio/test-u16-printf1.h: New file.
57097         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57098         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57099         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57100         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57101         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57102         * tests/unistdio/test-u16-vasprintf1.c: New file.
57103         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57104         * tests/unistdio/test-u16-vsprintf1.c: New file.
57105         * tests/unistdio/test-u32-asnprintf1.c: New file.
57106         * tests/unistdio/test-u32-asnprintf1.h: New file.
57107         * tests/unistdio/test-u32-printf1.h: New file.
57108         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57109         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57110         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57111         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57112         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57113         * tests/unistdio/test-u32-vasprintf1.c: New file.
57114         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57115         * tests/unistdio/test-u32-vsprintf1.c: New file.
57116         * modules/unistdio/base: New file.
57117         * modules/unistdio/u-printf-args: New file.
57118         * modules/unistdio/ulc-asnprintf: New file.
57119         * modules/unistdio/ulc-asprintf: New file.
57120         * modules/unistdio/ulc-fprintf: New file.
57121         * modules/unistdio/ulc-printf-parse: New file.
57122         * modules/unistdio/ulc-snprintf: New file.
57123         * modules/unistdio/ulc-sprintf: New file.
57124         * modules/unistdio/ulc-vasnprintf: New file.
57125         * modules/unistdio/ulc-vasprintf: New file.
57126         * modules/unistdio/ulc-vfprintf: New file.
57127         * modules/unistdio/ulc-vsnprintf: New file.
57128         * modules/unistdio/ulc-vsprintf: New file.
57129         * modules/unistdio/u8-asnprintf: New file.
57130         * modules/unistdio/u8-asprintf: New file.
57131         * modules/unistdio/u8-printf-parse: New file.
57132         * modules/unistdio/u8-snprintf: New file.
57133         * modules/unistdio/u8-sprintf: New file.
57134         * modules/unistdio/u8-vasnprintf: New file.
57135         * modules/unistdio/u8-vasprintf: New file.
57136         * modules/unistdio/u8-vsnprintf: New file.
57137         * modules/unistdio/u8-vsprintf: New file.
57138         * modules/unistdio/u8-u8-asnprintf: New file.
57139         * modules/unistdio/u8-u8-asprintf: New file.
57140         * modules/unistdio/u8-u8-snprintf: New file.
57141         * modules/unistdio/u8-u8-sprintf: New file.
57142         * modules/unistdio/u8-u8-vasnprintf: New file.
57143         * modules/unistdio/u8-u8-vasprintf: New file.
57144         * modules/unistdio/u8-u8-vsnprintf: New file.
57145         * modules/unistdio/u8-u8-vsprintf: New file.
57146         * modules/unistdio/u16-asnprintf: New file.
57147         * modules/unistdio/u16-asprintf: New file.
57148         * modules/unistdio/u16-printf-parse: New file.
57149         * modules/unistdio/u16-snprintf: New file.
57150         * modules/unistdio/u16-sprintf: New file.
57151         * modules/unistdio/u16-vasnprintf: New file.
57152         * modules/unistdio/u16-vasprintf: New file.
57153         * modules/unistdio/u16-vsnprintf: New file.
57154         * modules/unistdio/u16-vsprintf: New file.
57155         * modules/unistdio/u16-u16-asnprintf: New file.
57156         * modules/unistdio/u16-u16-asprintf: New file.
57157         * modules/unistdio/u16-u16-snprintf: New file.
57158         * modules/unistdio/u16-u16-sprintf: New file.
57159         * modules/unistdio/u16-u16-vasnprintf: New file.
57160         * modules/unistdio/u16-u16-vasprintf: New file.
57161         * modules/unistdio/u16-u16-vsnprintf: New file.
57162         * modules/unistdio/u16-u16-vsprintf: New file.
57163         * modules/unistdio/u32-asnprintf: New file.
57164         * modules/unistdio/u32-asprintf: New file.
57165         * modules/unistdio/u32-printf-parse: New file.
57166         * modules/unistdio/u32-snprintf: New file.
57167         * modules/unistdio/u32-sprintf: New file.
57168         * modules/unistdio/u32-vasnprintf: New file.
57169         * modules/unistdio/u32-vasprintf: New file.
57170         * modules/unistdio/u32-vsnprintf: New file.
57171         * modules/unistdio/u32-vsprintf: New file.
57172         * modules/unistdio/u32-u32-asnprintf: New file.
57173         * modules/unistdio/u32-u32-asprintf: New file.
57174         * modules/unistdio/u32-u32-snprintf: New file.
57175         * modules/unistdio/u32-u32-sprintf: New file.
57176         * modules/unistdio/u32-u32-vasnprintf: New file.
57177         * modules/unistdio/u32-u32-vasprintf: New file.
57178         * modules/unistdio/u32-u32-vsnprintf: New file.
57179         * modules/unistdio/u32-u32-vsprintf: New file.
57180         * modules/unistdio/ulc-asnprintf-tests: New file.
57181         * modules/unistdio/ulc-vasnprintf-tests: New file.
57182         * modules/unistdio/ulc-vasprintf-tests: New file.
57183         * modules/unistdio/ulc-vsnprintf-tests: New file.
57184         * modules/unistdio/ulc-vsprintf-tests: New file.
57185         * modules/unistdio/u8-asnprintf-tests: New file.
57186         * modules/unistdio/u8-vasnprintf-tests: New file.
57187         * modules/unistdio/u8-vasprintf-tests: New file.
57188         * modules/unistdio/u8-vsnprintf-tests: New file.
57189         * modules/unistdio/u8-vsprintf-tests: New file.
57190         * modules/unistdio/u16-asnprintf-tests: New file.
57191         * modules/unistdio/u16-vasnprintf-tests: New file.
57192         * modules/unistdio/u16-vasprintf-tests: New file.
57193         * modules/unistdio/u16-vsnprintf-tests: New file.
57194         * modules/unistdio/u16-vsprintf-tests: New file.
57195         * modules/unistdio/u32-asnprintf-tests: New file.
57196         * modules/unistdio/u32-vasnprintf-tests: New file.
57197         * modules/unistdio/u32-vasprintf-tests: New file.
57198         * modules/unistdio/u32-vsnprintf-tests: New file.
57199         * modules/unistdio/u32-vsprintf-tests: New file.
57200         * MODULES.html.sh (Unicode string functions): Add the new modules.
57201
57202 2007-07-01  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/sprintf.c (sprintf): Limit the available length estimation,
57205         to avoid address wraparound.
57206         * lib/vsprintf.c (vsprintf): Likewise.
57207         * modules/sprintf-posix (Dependencies): Add stdint.
57208         * modules/vsprintf-posix (Dependencies): Likewise.
57209
57210 2007-07-01  Bruno Haible  <bruno@clisp.org>
57211
57212         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57213         Windows PATH as well. Conservative double-quoting. Comments.
57214
57215 2007-07-01  Bruno Haible  <bruno@clisp.org>
57216             Eric Blake  <ebb9@byu.net>
57217             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57218
57219         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57220         empty components in $PATH, denoting '.'.
57221
57222 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57223
57224         * gnulib-tool: Fix indentation.
57225         (func_create_megatestdir): Likewise.
57226         Report by Bruno Haible.
57227
57228 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57229
57230         Sync from Automake.
57231         * build-aux/gnupload: Fix shell portability issues with for loops.
57232         Report by Karl Berry.
57233
57234 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57235
57236         * build-aux/maint.mk (POURL): Use translationproject.org.
57237
57238 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57239             Bruno Haible  <bruno@clisp.org>
57240
57241         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57242         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57243         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57244         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57245         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57246
57247 2007-06-27  Bruno Haible  <bruno@clisp.org>
57248
57249         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57250         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57251
57252 2007-06-26  Karl Berry  <karl@gnu.org>
57253
57254         * MODULES.html.sh: remove xreadlink-with-size.
57255
57256 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57257
57258         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57259         method that I hope also handles the double-include problem noted
57260         by Bruno Haible in
57261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57262
57263 2007-06-23  Bruno Haible  <bruno@clisp.org>
57264
57265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57266         Don't let the 'mostlyclean' target fail if the last subdirectory could
57267         not be removed.
57268         Reported by Karl Berry.
57269
57270 2007-06-23  Bruno Haible  <bruno@clisp.org>
57271
57272         * gnulib-tool (echo): Add a speedier workaround for ksh.
57273         * tests/test-echo.sh: Likewise.
57274
57275 2007-06-23  Bruno Haible  <bruno@clisp.org>
57276
57277         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57278         * tests/test-echo.sh: Likewise.
57279
57280 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57281
57282         * gnulib-tool (IFS): Initialize early, so we don't set it to
57283         empty later.
57284         (self_abspathname): Rewrite algorithm to set it, reindent.
57285         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57286         (func_create_megatestdir): Merge some sed scripts.
57287
57288 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57289
57290         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57291         exposed by Sun Studio 11 cc on Solaris 8.
57292
57293 2007-06-22  Bruno Haible  <bruno@clisp.org>
57294
57295         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57296         backslashes.
57297         * tests/test-echo.sh: New file.
57298
57299 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57300
57301         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57302         simplify `sed_replace_build_aux' scripts, they are portable but
57303         echoing them with `echo' is not.
57304         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57305
57306 2007-06-21  Karl Berry  <karl@gnu.org>
57307
57308         * config/srclist.txt: guess we can't handle the licenses via
57309         srclist at the moment.
57310
57311 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * MODULES.html.sh: Add include_next.
57314         * modules/include_next: New file.
57315
57316 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57319         INCLUDE_NEXT.
57320         (gl_CHECK_NEXT_HEADERS): New macro.
57321         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57322         the obsolescent gl_ABSOLUTE_HEADER.
57323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57324         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57325         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57326         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57327         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57328         * m4/math_h.m4 (gl_MATH_H): Likewise.
57329         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57331         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57332         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57333         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57334         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57335         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57337         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57340         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57341         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57342         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57343         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57344         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57345         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57346         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57347         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57348         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57349         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57350         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57351         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57352         * lib/float_.h: Likewise.
57353         * lib/inttypes_.h: Likewise.
57354         * lib/math_.h: Likewise.
57355         * lib/search_.h: Likewise.
57356         * lib/signal_.h: Likewise.
57357         * lib/stdint_.h: Likewise.
57358         * lib/stdio_.h: Likewise.
57359         * lib/stdlib_.h: Likewise.
57360         * lib/string_.h: Likewise.
57361         * lib/sys_stat_.h: Likewise.
57362         * lib/sys_time_.h: Likewise.
57363         * lib/time_.h: Likewise.
57364         * lib/unistd_.h: Likewise.
57365         * lib/wchar_.h: Likewise.
57366         * lib/wctype_.h: Likewise.
57367         * lib/dirent_.h: Likewise.
57368         * lib/iconv_.h: Likewise.
57369         * lib/locale_.h: Likewise.
57370         * lib/netinet_in_.h: Likewise.
57371         * lib/sys_select_.h: Likewise.
57372         * lib/sys_socket_.h: Likewise.
57373         * lib/sysexits_.h: Likewise.
57374         * modules/fcntl (Depends-on): Depend on include_next, not
57375         absolute_header.
57376         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57377         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57378         * modules/fchdir: Likewise.
57379         * modules/float: Likewise.
57380         * modules/iconv_open: Likewise.
57381         * modules/inttypes: Likewise.
57382         * modules/locale: Likewise.
57383         * modules/math: Likewise.
57384         * modules/netinet_in: Likewise.
57385         * modules/search: Likewise.
57386         * modules/signal: Likewise.
57387         * modules/stdint: Likewise.
57388         * modules/stdio: Likewise.
57389         * modules/stdlib: Likewise.
57390         * modules/string: Likewise.
57391         * modules/sys_select: Likewise.
57392         * modules/sys_socket: Likewise.
57393         * modules/sys_stat: Likewise.
57394         * modules/sys_time: Likewise.
57395         * modules/sysexits: Likewise.
57396         * modules/time: Likewise.
57397         * modules/unistd: Likewise.
57398         * modules/wchar: Likewise.
57399         * modules/wctype: Likewise.
57400         * modules/sys_stat: Change maintainer to "all".
57401         * modules/unistd: Likewise.
57402
57403 2007-06-20  Karl Berry  <karl@gnu.org>
57404
57405         * config/srclist.txt: track www changes in license files.
57406
57407 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57408
57409         * build-aux/bootstrap: Remove stray dot.
57410         Make sure build_aux settings are honored when linking
57411         gnulib_extra_files.
57412
57413 2007-06-19  Eric Blake  <ebb9@byu.net>
57414
57415         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57416         Allow compilation on cygwin.
57417
57418 2007-06-19  Jim Meyering  <jim@meyering.net>
57419
57420         xreadlink-with-size: Remove module.  No longer used.
57421         Ex-callers now use xreadlink or mreadlink-with-size.
57422         * modules/xreadlink-with-size: Remove module.
57423         * lib/xreadlink-with-size.c: Remove file.
57424         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57425         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57426         just before the function definition *is* accurate.
57427
57428         Eliminate one way canonicalize_filename_mode could exit.
57429         * lib/canonicalize.c (canonicalize_filename_mode):
57430         Use mreadlink_with_size, not xreadlink_with_size.
57431
57432 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57433
57434         Detect porting problems to FreeBSD/arm, which has time_t wider than
57435         long int.  Original problem reported for GNU diff by Xin Li in
57436         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57437         * modules/getdate (Depends-on): Add intprops, verify.
57438         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57439         is an integer type no wider than long int.
57440
57441 2007-06-18  Jim Meyering  <jim@meyering.net>
57442
57443         New module: mreadlink-with-size.
57444         * MODULES.html.sh: Add mreadlink-with-size.
57445         * modules/mreadlink-with-size: New module
57446         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57447         not xreadlink-with-size.
57448         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57449
57450 2007-06-16  Bruno Haible  <bruno@clisp.org>
57451
57452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57453         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57454         Reported by Gary V. Vaughan <gary@gnu.org>.
57455
57456 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57457
57458         Revamp lchown so that it lives in unistd.h where it belongs.
57459         * lib/lchown.h: Remove.
57460         * lib/dirchownmod.c: Don't include lib/lchown.h.
57461         * lib/fchownat.c: Likewise.
57462         * lib/openat.c: Likewise.
57463         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57464         does not follow symlinks.
57465         (EOPNOTSUPP): Define if not defined.
57466         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57467         is defined to 0.
57468         (lchown): New decl.
57469         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57470         Do not check for lchown decl.
57471         Set REPLACE_LCHOWN.
57472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57473         REPLACE_LCHOWN.
57474         * modules/chown: Make it clear it follows symlinks.
57475         * modules/lchown: Make it clear it doesn't follow symlinks.
57476         (Files): Remove lib/lchown.h
57477         (Depends-on): Add unistd.
57478         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57479         (Include): Include <unistd.h>, not "lchown.h".
57480         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57481         REPLACE_LCHOWN.
57482
57483 2007-06-15  Jim Meyering  <jim@meyering.net>
57484
57485         Change license (GPL to LGPL) of fsusage and dependents.
57486         * modules/fsusage (License): Change to LGPL.
57487         * modules/full-read (License): Likewise.
57488         * modules/full-write (License): Likewise.
57489         * modules/safe-read (License): Likewise.
57490         * modules/safe-write (License): Likewise.
57491
57492 2007-06-14  Ben Pfaff  <blp@gnu.org>
57493
57494         Missing part of allocsa -> malloca transition.
57495         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57496         gl_MALLOCA.
57497
57498 2007-06-12  Bruno Haible  <bruno@clisp.org>
57499
57500         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57501         to ia64, x86_64, i386.
57502         Reported by Eric Blake.
57503
57504 2007-06-12  Bruno Haible  <bruno@clisp.org>
57505
57506         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57507         cross-compiling to x86_64.
57508
57509 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57510
57511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57512         glitch reported by Ralf Wildenhues in
57513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57514
57515         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57516         Vin Shelton.
57517
57518 2007-06-11  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57521         replacement string.
57522         Reported by Eric Blake.
57523
57524 2007-06-10  Bruno Haible  <bruno@clisp.org>
57525
57526         Prepare vasnprintf code for use with Unicode strings.
57527         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57528         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57529         TYPE_U32_STRING.
57530         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57531         a_u32_string variants.
57532         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57533         * lib/printf-args.c: Don't include config.h and the specification
57534         header if PRINTF_FETCHARGS is already defined.
57535         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57536         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57537         TYPE_U16_STRING, TYPE_U32_STRING.
57538         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57539         u16_directive, u16_directives, u32_directive, u32_directives): New
57540         types.
57541         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57542         New declarations.
57543         * lib/printf-parse.c: Don't include config.h and the specification
57544         header if PRINTF_PARSE is already defined. Eliminate the set of
57545         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57546         them now. Include c-ctype.h.
57547         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57548         directive and CHAR_T_ONLY_ASCII.
57549         * lib/vasnprintf.c: Don't include config.h and the specification header
57550         if VASNPRINTF is already defined.
57551         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57552         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57553         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57554         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57555         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57556         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57557         code accordingly.
57558         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57559         pad_ourselves also in this case, with the 'c' and 's' directives, and
57560         with a different notion of "width".
57561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57562
57563 2007-06-10  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/unistr/u32-mbsnlen: New file.
57566         * lib/unistr/u32-mbsnlen.c: New file.
57567
57568         * modules/unistr/u16-mbsnlen: New file.
57569         * lib/unistr/u16-mbsnlen.c: New file.
57570
57571         * modules/unistr/u8-mbsnlen: New file.
57572         * lib/unistr/u8-mbsnlen.c: New file.
57573
57574         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57575         declarations.
57576
57577 2007-06-10  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/string_.h (mbsnlen): New declaration.
57580         * lib/mbsnlen.c: New file.
57581         * m4/mbsnlen.m4: New file.
57582         * modules/mbsnlen: New file.
57583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57584         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57585         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57586
57587 2007-06-10  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57590
57591 2007-06-10  Bruno Haible  <bruno@clisp.org>
57592
57593         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57594         * lib/mbuiter.h: Likewise.
57595
57596 2007-06-10  Bruno Haible  <bruno@clisp.org>
57597
57598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57599         declaration.
57600
57601 2007-06-10  Karl Berry  <karl@gnu.org>
57602
57603         * config/srclist.txt: remove gettext entries, Bruno prefers
57604         to update individually.
57605
57606 2007-06-10  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57609         'maxlen'. Ensure only length + width bytes are allocated, not
57610         length + 1 + width.
57611
57612 2007-06-09  Bruno Haible  <bruno@clisp.org>
57613
57614         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57615         (CHAR_T): Remove macro.
57616         (VASNPRINTF): Update.
57617
57618 2007-06-09  Bruno Haible  <bruno@clisp.org>
57619
57620         * MODULES.html.sh (Unicode string functions): Add the new modules.
57621
57622         * modules/uniconv/u32-conv-to-enc: New file.
57623         * lib/uniconv/u32-conv-to-enc.c: New file.
57624         * modules/uniconv/u32-conv-to-enc-tests: New file.
57625         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57626
57627         * modules/uniconv/u16-conv-to-enc: New file.
57628         * lib/uniconv/u16-conv-to-enc.c: New file.
57629         * lib/uniconv/u-conv-to-enc.h: New file.
57630         * modules/uniconv/u16-conv-to-enc-tests: New file.
57631         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57632
57633         * modules/uniconv/u8-conv-to-enc: New file.
57634         * lib/uniconv/u8-conv-to-enc.c: New file.
57635         * modules/uniconv/u8-conv-to-enc-tests: New file.
57636         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57637
57638         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57639         u32_conv_to_encoding): New declarations.
57640
57641 2007-06-09  Bruno Haible  <bruno@clisp.org>
57642
57643         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57644
57645 2007-06-09  Bruno Haible  <bruno@clisp.org>
57646
57647         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57648         * modules/malloca: Renamed from modules/allocsa, updated.
57649         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57650         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57651         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57652         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57653         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57654         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57655         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57656         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57657         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57658         * modules/c-strcasestr (Depends-on): Update.
57659         * lib/c-strcasestr.c: Update.
57660         * modules/c-strstr (Depends-on): Update.
57661         * lib/c-strstr.c: Update.
57662         * modules/canonicalize-lgpl (Depends-on): Update.
57663         * lib/canonicalize-lgpl.c: Update.
57664         * modules/clean-temp (Depends-on): Update.
57665         * lib/clean-temp.c: Update.
57666         * modules/csharpcomp (Depends-on): Update.
57667         * lib/csharpcomp.c: Update.
57668         * modules/csharpexec (Depends-on): Update.
57669         * lib/csharpexec.c: Update.
57670         * modules/javacomp (Depends-on): Update.
57671         * lib/javacomp.c: Update.
57672         * modules/javaexec (Depends-on): Update.
57673         * lib/javaexec.c: Update.
57674         * modules/mbscasestr (Depends-on): Update.
57675         * lib/mbscasestr.c: Update.
57676         * modules/mbsstr (Depends-on): Update.
57677         * lib/mbsstr.c: Update.
57678         * modules/setenv (Depends-on): Update.
57679         * lib/setenv.c: Update.
57680         * modules/strcasestr (Depends-on): Update.
57681         * lib/strcasestr.c: Update.
57682         * modules/striconveha (Depends-on): Update.
57683         * lib/striconveha.c: Update.
57684         * modules/relocatable-prog-wrapper (Files): Update.
57685         * lib/relocwrapper.c: Update.
57686         * build-aux/install-reloc: Update.
57687         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57688
57689 2007-06-08  Bruno Haible  <bruno@clisp.org>
57690
57691         Port to uClibc.
57692         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57693         * lib/fpurge.c (fpurge): Likewise.
57694         * lib/freading.c (freading): Likewise.
57695         * lib/fseeko.c (rpl_fseeko): Likewise.
57696         * lib/fseterr.c (fseterr): Likewise.
57697         * lib/fwriting.c (fwriting): Likewise.
57698         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57699
57700 2007-06-08  Bruno Haible  <bruno@clisp.org>
57701
57702         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57703         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57704         * modules/gettext (Files): Add m4/intlmacosx.m4.
57705
57706 2007-06-07  Bruno Haible  <bruno@clisp.org>
57707
57708         * modules/localename-tests: New file.
57709         * tests/test-localename.c: New file.
57710
57711         New module 'localename'.
57712         * lib/localename.h: New file.
57713         * lib/localename.c: New file, from GNU gettext.
57714         * m4/localename.m4: New file.
57715         * modules/localename: New file.
57716
57717 2007-06-07  Bruno Haible  <bruno@clisp.org>
57718
57719         Work around the lack of <wchar.h> on some builds of uClibc.
57720         * doc/headers/wchar.texi: Update.
57721         * lib/wchar_.h: Include <wchar.h> only if it exists.
57722         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57723         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57724         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57725         doesn't exist.
57726         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57727         * modules/mbfile (Depends-on): Add wchar.
57728         * modules/mbiter (Depends-on): Likewise.
57729         * modules/mbuiter (Depends-on): Likewise.
57730         Reported by Simon Josefsson.
57731
57732 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         Work around problem reported by Steven M. Schweda in
57735         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57736         Tru64 5.1B with the Compaq compiler environment installed declares
57737         an 'isblank' function but does not define it in the C library.
57738         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57739         * lib/regex_internal.h (isblank): Likewise.
57740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57741         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57742
57743 2007-06-05  Bruno Haible  <bruno@clisp.org>
57744
57745         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57746         ia64.
57747         * modules/printf-safe: New file.
57748         * modules/fprintf-posix (Depends-on): Add printf-safe.
57749         * modules/printf-posix (Depends-on): Likewise.
57750         * modules/snprintf-posix (Depends-on): Likewise.
57751         * modules/sprintf-posix (Depends-on): Likewise.
57752         * modules/vasnprintf-posix (Depends-on): Likewise.
57753         * modules/vasprintf-posix (Depends-on): Likewise.
57754         * modules/vfprintf-posix (Depends-on): Likewise.
57755         * modules/vprintf-posix (Depends-on): Likewise.
57756         * modules/vsnprintf-posix (Depends-on): Likewise.
57757         * modules/vsprintf-posix (Depends-on): Likewise.
57758         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57759         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57760         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57761         "no" on i386, x86_64, ia64.
57762         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57763         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57764         on i386, x86_64, ia64.
57765         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57766         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57767         on i386, x86_64, ia64.
57768         * tests/test-vasnprintf-posix.c: Include float.h.
57769         (LDBL80_WORDS): New macro.
57770         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57771         on i386, x86_64, ia64.
57772         * tests/test-vasprintf-posix.c: Include float.h.
57773         (LDBL80_WORDS): New macro.
57774         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57775         on i386, x86_64, ia64.
57776         * tests/test-snprintf-posix.c: Include float.h.
57777         * tests/test-sprintf-posix.c: Likewise.
57778         * tests/test-vsnprintf-posix.c: Likewise.
57779         * tests/test-vsprintf-posix.c: Likewise.
57780
57781 2007-06-05  Bruno Haible  <bruno@clisp.org>
57782
57783         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57785         non-IEEE numbers on i386, x86_64, ia64.
57786         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57787         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57788         * tests/test-isnanl.h: Include float.h.
57789         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57790
57791 2007-06-05  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57794         also the %a / %A. Handle the %a / %A code before this extra handling.
57795
57796 2007-06-05  Bruno Haible  <bruno@clisp.org>
57797
57798         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57799         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57800
57801 2007-06-05  Bruno Haible  <bruno@clisp.org>
57802
57803         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57804         typo in variable name.
57805
57806 2007-06-05  Eric Blake  <ebb9@byu.net>
57807
57808         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57809         Reported by Simon Josefsson.
57810
57811 2007-06-04  Bruno Haible  <bruno@clisp.org>
57812
57813         Avoid test failures on some PowerPC platforms.
57814         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57815         Define differently for PowerPC.
57816         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57817         Reported by Gary V. Vaughan <gary@gnu.org>.
57818
57819 2007-06-02  Bruno Haible  <bruno@clisp.org>
57820
57821         Fix test-stdint failure on FreeBSD/ia64.
57822         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57823         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57824         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57825         * doc/headers/stdint.texi: Update.
57826
57827 2007-06-01  Bruno Haible  <bruno@clisp.org>
57828
57829         * tests/test-binary-io.c (main): Pass a third argument to open().
57830         Reported by Gary V. Vaughan <gary@gnu.org>.
57831
57832 2007-06-01  Bruno Haible  <bruno@clisp.org>
57833
57834         * doc/functions/frexpl.texi: Update for mingw.
57835
57836 2007-06-01  Bruno Haible  <bruno@clisp.org>
57837
57838         * tests/test-lseek.c (main): Disable test of errno for invalid third
57839         argument.
57840         * doc/functions/lseek.texi: Update.
57841         Reported by Gary V. Vaughan <gary@gnu.org>.
57842
57843 2007-05-28  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57846
57847 2007-05-31  Eric Blake  <ebb9@byu.net>
57848
57849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57850         cross compiling.
57851
57852 2007-05-30  Eric Blake  <ebb9@byu.net>
57853         and Bruno Haible  <bruno@clisp.org>
57854
57855         Work around mingw test failures exposed by m4-1.4.9b.
57856         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57857         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57858         moment.
57859
57860 2007-05-30  Bruno Haible  <bruno@clisp.org>
57861
57862         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57863         assuming that they are closed. Needed on HP-UX 11.
57864
57865 2007-05-29  Bruno Haible  <bruno@clisp.org>
57866
57867         Fix a problem with #include_next.
57868         * lib/dirent_.h: Split the double-inclusion guard.
57869         * lib/fcntl_.h: Likewise.
57870         * lib/float_.h: Likewise.
57871         * lib/iconv_.h: Likewise.
57872         * lib/inttypes_.h: Likewise.
57873         * lib/locale_.h: Likewise.
57874         * lib/math_.h: Likewise.
57875         * lib/netinet_in_.h: Likewise.
57876         * lib/search_.h: Likewise.
57877         * lib/signal_.h: Likewise.
57878         * lib/stdint_.h: Likewise.
57879         * lib/stdio_.h: Likewise.
57880         * lib/stdlib_.h: Likewise.
57881         * lib/string_.h: Likewise.
57882         * lib/sys_select_.h: Likewise.
57883         * lib/sys_socket_.h: Likewise.
57884         * lib/sys_stat_.h: Likewise.
57885         * lib/sys_time_.h: Likewise.
57886         * lib/sysexits_.h: Likewise.
57887         * lib/time_.h: Likewise.
57888         * lib/unistd_.h: Likewise.
57889         * lib/wchar_.h: Likewise.
57890         * lib/wctype_.h: Likewise.
57891
57892 2007-05-29  Bruno Haible  <bruno@clisp.org>
57893
57894         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57895         for the moment.
57896
57897 2007-05-29  Bruno Haible  <bruno@clisp.org>
57898
57899         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57900         invocation.
57901         Reported by Eric Blake.
57902
57903 2007-05-29  Bruno Haible  <bruno@clisp.org>
57904
57905         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57906         compiling case.
57907
57908 2007-05-29  Eric Blake  <ebb9@byu.net>
57909             Bruno Haible  <bruno@clisp.org>
57910
57911         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57912         cross compiles.
57913
57914 2007-05-28  Eric Blake  <ebb9@byu.net>
57915
57916         * modules/closein-tests (test_closein_LDADD): Support test on
57917         cygwin with libtool.
57918
57919 2007-05-28  Bruno Haible  <bruno@clisp.org>
57920
57921         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57922         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57923         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57924         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57925         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57926         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57927         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57928         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57929         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57930
57931 2007-05-28  Eric Blake  <ebb9@byu.net>
57932
57933         Unconditionally include <config.h> in unit tests.
57934         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57935         * tests/test-allocsa.c, tests/test-arcfour.c,
57936         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57937         tests/test-array_list.c, tests/test-array_oset.c,
57938         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57939         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57940         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57941         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57942         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57943         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57944         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57945         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57946         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57947         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57948         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57949         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57950         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57951         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57952         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57953         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57954         test-md5.c, test-memmem.c, test-printf-posix.c,
57955         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57956         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57957         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57958         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57959         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57960         test-vasnprintf-posix2.c, test-vasnprintf.c,
57961         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57962         test-vfprintf-posix.c, test-vprintf-posix.c,
57963         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57964         test-xvasprintf.c: Likewise.
57965
57966 2007-05-28  Bruno Haible  <bruno@clisp.org>
57967
57968         * gnulib-tool (func_import): Remember the --with-tests command-line
57969         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57970         Reported by Eric Blake.
57971
57972 2007-05-28  Bruno Haible  <bruno@clisp.org>
57973
57974         * modules/ftell-tests: New file.
57975         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57976         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57977
57978         * lib/ftell.c: New file.
57979         * modules/ftell: New file.
57980         * m4/ftell.m4: New file.
57981         * doc/functions/ftell.texi: Update.
57982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57983         REPLACE_FTELL.
57984         * lib/stdio_.h (rpl_ftell): New declaration.
57985         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57986         REPLACE_FTELL.
57987
57988 2007-05-28  Eric Blake  <ebb9@byu.net>
57989
57990         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57991
57992 2007-05-28  Bruno Haible  <bruno@clisp.org>
57993
57994         * modules/fseek-tests: New file.
57995         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57996         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57997
57998         * lib/fseek.c: New file.
57999         * modules/fseek: New file.
58000         * m4/fseek.m4: New file.
58001         * doc/functions/fseek.texi: Update.
58002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58003         REPLACE_FSEEK.
58004         * lib/stdio_.h (rpl_fseek): New declaration.
58005         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58006         REPLACE_FSEEK.
58007
58008 2007-05-28  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/stdio_.h (fflush): More comments.
58011
58012 2007-05-28  Bruno Haible  <bruno@clisp.org>
58013
58014         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58015         runtime test.
58016
58017 2007-05-28  Eric Blake  <ebb9@byu.net>
58018
58019         Improve lseek module.
58020         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58021         * lib/unistd_.h (lseek): Scale back link warning message.
58022         * tests/test-lseek.c: Beef up test.
58023         * tests/test-lseek.sh: Exercise more facets of lseek.
58024         Reported by Bruno Haible.
58025
58026 2007-05-28  Bruno Haible  <bruno@clisp.org>
58027
58028         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58029         to define.
58030
58031 2007-05-27  Bruno Haible  <bruno@clisp.org>
58032
58033         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58034
58035 2007-05-27  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/openmp: New file.
58038         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58039         Noah Misch.
58040
58041 2007-05-26  Bruno Haible  <bruno@clisp.org>
58042
58043         * modules/chdir-long (Depends-on): Add fchdir.
58044         * modules/chdir-safer (Depends-on): Likewise.
58045         * modules/fts (Depends-on): Likewise.
58046         * modules/fts-lgpl (Depends-on): Likewise.
58047         * modules/openat (Depends-on): Likewise.
58048         * modules/savewd (Depends-on): Likewise.
58049
58050 2007-05-24  Eric Blake  <ebb9@byu.net>
58051
58052         Fix lseek on mingw.
58053         * modules/lseek: New module.
58054         * m4/lseek.m4: New file.
58055         * lib/lseek.c: New file.
58056         * modules/lseek-tests: New file.
58057         * tests/test-lseek.c: New file.
58058         * tests/test-lseek.sh: New file.
58059         * MODULES.html.sh: Document lseek module.
58060         * modules/fflush (Depends-on): Add lseek, fseeko.
58061         * modules/fseeko (Depends-on): Likewise.
58062         * modules/ftello (Depends-on): Likewise.
58063         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58064         broken.
58065         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58066         broken.
58067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58068         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58069         * lib/ftello.c (rpl_ftello): Likewise.
58070         * tests/test-fseeko.c (main): Test this.
58071         * tests/test-fseeko.sh: Likewise.
58072         * tests/test-ftello.c (main): Likewise.
58073         * tests/test-ftello.sh: Likewise.
58074         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58075         implies replacing fseek.
58076         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58077         HAVE_FTELLO.
58078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58079         * modules/unistd (Makefile.am): Likewise.
58080         * lib/unistd_.h (lseek): Declare a replacement.
58081         * doc/functions/lseek.texi (lseek): Document this fix.
58082         * doc/functions/fseek.texi (fseek): Likewise.
58083         * doc/functions/ftell.texi (ftell): Likewise.
58084
58085 2007-05-24  Bruno Haible  <bruno@clisp.org>
58086
58087         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58088         in the printed representation of a NaN.
58089         * tests/test-vasprintf-posix.c (test_function): Likewise.
58090         * tests/test-snprintf-posix.h (test_function): Likewise.
58091         * tests/test-sprintf-posix.h (test_function): Likewise.
58092         Reported by Eric Blake.
58093
58094 2007-05-23  Eric Blake  <ebb9@byu.net>
58095
58096         Fix fseeko/ftello on cygwin 1.5.24.
58097         * doc/functions/fseeko.texi (fseeko): Document the fix.
58098         * doc/functions/ftello.texi (ftello): Document the fix.
58099         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58100         * doc/functions/stdout.text (stdout): New file.
58101         * doc/functions/stderr.text (stderr): New file.
58102         * doc/gnulib.texi (Function Substitutes): Use new files.
58103         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58104         prior to 1.7.0.
58105         * tests/test-ftello.c (main): Likewise for ftello.
58106         * tests/test-fseeko.sh: New file.
58107         * tests/test-ftello.sh: New file.
58108         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58109         with seekable stdin.
58110         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58111         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58112         (gl_REPLACE_FSEEKO): New macro.
58113         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58114         * modules/fseeko (Files): Distribute fseeko.c.
58115         * modules/ftello (Files): Distribute ftello.c.
58116         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58117         mode.
58118         * lib/ftello.c (rpl_ftello): New file.
58119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58120         fseeko, ftello.
58121         (gl_STDIN_LARGE_OFFSET): New macro.
58122         * modules/stdio (Makefile.am): Perform the replacement.
58123         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58124
58125 2007-05-23  Bruno Haible  <bruno@clisp.org>
58126
58127         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58128         GNULIB_POSIXCHECK is defined.
58129
58130 2007-05-21  Bruno Haible  <bruno@clisp.org>
58131
58132         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58133         Check also the output for NaN arguments. When cross-compiling, guess
58134         no on IRIX.
58135         * lib/vasnprintf.c: Update comments.
58136         * tests/test-vasnprintf-posix.c (strisnan): New function.
58137         (test_function): Use it.
58138         * tests/test-vasprintf-posix.c (strisnan): New function.
58139         (test_function): Use it.
58140         * tests/test-snprintf-posix.h (strisnan): New function.
58141         (test_function): Use it.
58142         * tests/test-sprintf-posix.h (strisnan): New function.
58143         (test_function): Use it.
58144         Reported by Eric Blake.
58145
58146 2007-05-20  Bruno Haible  <bruno@clisp.org>
58147
58148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58149         numbers that fails on BeOS.
58150         * doc/functions/frexpl.texi: Update.
58151
58152 2007-05-20  Jim Meyering  <jim@meyering.net>
58153
58154         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58155         forced upon us by glibc-2.6.
58156
58157 2007-05-20  Bruno Haible  <bruno@clisp.org>
58158
58159         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58160         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58161         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58162         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58163         NEED_PRINTF_INFINITE.
58164         (is_infinitel): New function.
58165         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58167         gl_PREREQ_VASNPRINTF_INFINITE.
58168         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58169         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58170         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58171         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58172         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58173         gl_PREREQ_VASNPRINTF_INFINITE.
58174         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58175         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58176         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58178         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58180         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58181         * doc/functions/fprintf.texi: Update.
58182         * doc/functions/printf.texi: Update.
58183         * doc/functions/snprintf.texi: Update.
58184         * doc/functions/sprintf.texi: Update.
58185         * doc/functions/vfprintf.texi: Update.
58186         * doc/functions/vprintf.texi: Update.
58187         * doc/functions/vsnprintf.texi: Update.
58188         * doc/functions/vsprintf.texi: Update.
58189
58190 2007-05-20  Bruno Haible  <bruno@clisp.org>
58191
58192         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58193         was not found in libc.
58194         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58195
58196 2007-05-20  Bruno Haible  <bruno@clisp.org>
58197
58198         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58199         printed as "-nan" instead of "nan".
58200         * tests/test-vasprintf-posix.c (test_function): Likewise.
58201         * tests/test-snprintf-posix.h (test_function): Likewise.
58202         * tests/test-sprintf-posix.h (test_function): Likewise.
58203         Needed for HP-UX 11.
58204
58205 2007-05-20  Jim Meyering  <jim@meyering.net>
58206
58207         Fix buggy test for the fchownat-deref bug.
58208         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58209         symlink required for the run-test.  Without it, this test would
58210         always declare that fchownat doesn't work, and client code would
58211         unnecessarily use the replacement function with fixed libc.
58212         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58213         Reported by Greg Schafer.
58214
58215 2007-05-19  Bruno Haible  <bruno@clisp.org>
58216
58217         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58218         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58219         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58220         Needed for IRIX 6.5 and Solaris 2.5.1.
58221
58222 2007-05-19  Bruno Haible  <bruno@clisp.org>
58223
58224         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58225         (test_function): Skip tests involving -0.0 on platforms where
58226         -0.0 = 0.0.
58227         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58228         (test_function): Skip tests involving -0.0 on platforms where
58229         -0.0 = 0.0.
58230         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58231         (test_function): Skip tests involving -0.0 on platforms where
58232         -0.0 = 0.0.
58233         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58234         (test_function): Skip tests involving -0.0 on platforms where
58235         -0.0 = 0.0.
58236         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58237         tests.
58238         * tests/test-printf-posix.h (test_function): Likewise.
58239         * tests/test-printf-posix.output: Remove all -0.0 related results.
58240         Needed for IRIX 6.5.
58241
58242 2007-05-19  Bruno Haible  <bruno@clisp.org>
58243
58244         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58245         printed as "nan0x7fffffff" instead of "nan".
58246         * tests/test-vasprintf-posix.c (test_function): Likewise.
58247         * tests/test-snprintf-posix.h (test_function): Likewise.
58248         * tests/test-sprintf-posix.h (test_function): Likewise.
58249         * tests/test-fprintf-posix.h (NaN): Remove macro.
58250         (test_function): Remove all NaN related tests.
58251         * tests/test-printf-posix.h (NaN): Remove macro.
58252         (test_function): Remove all NaN related tests.
58253         * tests/test-printf-posix.output: Remove all NaN related results.
58254         Needed for IRIX 6.5.
58255
58256 2007-05-19  Bruno Haible  <bruno@clisp.org>
58257
58258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58260
58261 2007-05-19  Bruno Haible  <bruno@clisp.org>
58262
58263         * lib/float_.h: New file.
58264         * m4/float_h.m4: New file.
58265         * modules/float: New file.
58266         * modules/isnanl (Dependencies): Add float.
58267         * modules/isnanl-nolibm (Dependencies): Likewise.
58268         * modules/mathl (Dependencies): Likewise.
58269         * modules/printf-frexpl (Dependencies): Likewise.
58270         * modules/signbit (Dependencies): Likewise.
58271         * modules/vasnprintf (Dependencies): Likewise.
58272         * doc/headers/float.texi: Update.
58273
58274 2007-05-19  Jim Meyering  <jim@meyering.net>
58275
58276         * lib/utimens.c (gl_futimens): Rename from futimens,
58277         now that glibc-2.6 declares futimens.
58278         * lib/utimens.h: Likewise.
58279
58280 2007-05-19  Bruno Haible  <bruno@clisp.org>
58281
58282         Avoid test failures on mingw.
58283         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58284         * tests/test-printf-posix.sh: Likewise.
58285         * tests/test-vfprintf-posix.sh: Likewise.
58286         * tests/test-vprintf-posix.sh: Likewise.
58287
58288 2007-05-19  Bruno Haible  <bruno@clisp.org>
58289
58290         Fix *printf result for NaN, Inf, -0.0 on mingw.
58291         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58292         * lib/vasnprintf.c: Include math.h and isnan.h.
58293         (is_infinite_or_zero): New function.
58294         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58295         values in the %f, %F, %e, %E, %g, %G directives.
58296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58298         gl_PRINTF_INFINITE and test its result. Invoke
58299         gl_PREREQ_VASNPRINTF_INFINITE.
58300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58307         * doc/functions/fprintf.texi: Update.
58308         * doc/functions/printf.texi: Update.
58309         * doc/functions/snprintf.texi: Update.
58310         * doc/functions/sprintf.texi: Update.
58311         * doc/functions/vfprintf.texi: Update.
58312         * doc/functions/vprintf.texi: Update.
58313         * doc/functions/vsnprintf.texi: Update.
58314         * doc/functions/vsprintf.texi: Update.
58315
58316 2007-05-19  Bruno Haible  <bruno@clisp.org>
58317
58318         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58319         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58320         Instead of multiplying with 10^k, set extra_zeroes to k.
58321         (scale10_round_long_double): Remove function.
58322
58323 2007-05-18  Bruno Haible  <bruno@clisp.org>
58324
58325         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58326         introduced on 2007-05-06.
58327
58328 2007-05-18  Bruno Haible  <bruno@clisp.org>
58329
58330         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58331         %g directives.
58332         * tests/test-vasprintf-posix.c (test_function): Likewise.
58333         * tests/test-snprintf-posix.h (test_function): Likewise.
58334         * tests/test-sprintf-posix.h (test_function): Likewise.
58335
58336 2007-05-18  Bruno Haible  <bruno@clisp.org>
58337
58338         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58339         (strmatch): New function.
58340         (test_function): Test the %f directive on numbers of various exponents.
58341         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58342         (strmatch): New function.
58343         (test_function): Test the %f directive on numbers of various exponents.
58344         * tests/test-snprintf-posix.h (strmatch): New function.
58345         (test_function): Test the %f directive on numbers of various exponents.
58346         * tests/test-sprintf-posix.h (strmatch): New function.
58347         (test_function): Test the %f directive on numbers of various exponents.
58348         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58349         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58350         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58351         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58352
58353 2007-05-18  Bruno Haible  <bruno@clisp.org>
58354
58355         Add support for 'long double' number output.
58356         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58357         * lib/vasnprintf.c: Include math.h and float+.h.
58358         (mp_limb_t): New type.
58359         (GMP_LIMB_BITS): New macro.
58360         (mp_twolimb_t): New type.
58361         (GMP_TWOLIMB_BITS): New macro.
58362         (mpn_t): New type.
58363         (multiply, divide, convert_to_decimal, decode_long_double,
58364         scale10_round_long_double, scale10_round_decimal_long_double,
58365         floorlog10l): New functions.
58366         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58367         for the %f, %F, %e, %E, %g, %G directives.
58368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58370         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58371         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58374         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58375         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58378         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58379         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58380         * modules/snprintf-posix (Depends-on): Likewise.
58381         * modules/sprintf-posix (Depends-on): Likewise.
58382         * modules/vasnprintf-posix (Depends-on): Likewise.
58383         * modules/vasprintf-posix (Depends-on): Likewise.
58384         * modules/vfprintf-posix (Depends-on): Likewise.
58385         * modules/vsnprintf-posix (Depends-on): Likewise.
58386         * modules/vsprintf-posix (Depends-on): Likewise.
58387         * modules/vasnprintf (Files): Add lib/float+.h.
58388         * doc/functions/fprintf.texi: Update.
58389         * doc/functions/printf.texi: Update.
58390         * doc/functions/snprintf.texi: Update.
58391         * doc/functions/sprintf.texi: Update.
58392         * doc/functions/vfprintf.texi: Update.
58393         * doc/functions/vprintf.texi: Update.
58394         * doc/functions/vsnprintf.texi: Update.
58395         * doc/functions/vsprintf.texi: Update.
58396
58397 2007-05-18  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58400
58401 2007-05-18  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58404         for printing 64-bit integers. Needed for mingw.
58405
58406 2007-05-18  Bruno Haible  <bruno@clisp.org>
58407
58408         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58409         gl_FUNC_FREXPL_WORKS.
58410         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58411
58412 2007-05-18  Bruno Haible  <bruno@clisp.org>
58413
58414         * modules/frexpl-nolibm-tests: New file.
58415
58416         * modules/frexpl-nolibm: New file.
58417         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58418
58419 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58422         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58423         GCC 4.2, which otherwise issues a lot of warnings.
58424         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58425         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58426         Likewise.
58427         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58428         * modules/iconv_open (iconv.h): Likewise.
58429         * modules/locale (locale.h): Likewise.
58430         * modules/netinet_in (netinet/in.h): Likewise.
58431         * modules/sys_select (sys_select.h): Likewise.
58432         * modules/sys_socket (sys/socket.h): Likewise.
58433         * modules/sys_stat (sys/stat.h): Likewise.
58434         * modules/sysexits (sysexits.h): Likewise.
58435         * modules/unistd (unistd.h): Likewise.
58436
58437 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58438
58439         * modules/closein-tests (Makefile.am): Distribute
58440         `test-closein.sh'.
58441
58442 2007-05-17  Bruno Haible  <bruno@clisp.org>
58443
58444         * tests/test-printf-posix.output: Renamed from
58445         tests/test-fprintf-posix.out.
58446         * modules/fprintf-posix-tests: Update.
58447         * modules/printf-posix-tests: Update.
58448         * modules/vfprintf-posix-tests: Update.
58449         * modules/vprintf-posix-tests: Update.
58450         * tests/test-fprintf-posix.sh: Update.
58451         * tests/test-printf-posix.sh: Update.
58452         * tests/test-vfprintf-posix.sh: Update.
58453         * tests/test-vprintf-posix.sh: Update.
58454         Reported by Ralf Wildenhues.
58455
58456 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58459         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58460         GCC 4.2, which otherwise issues a lot of warnings.
58461         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58462         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58463         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58464         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58465         it should no longer be needed.
58466         * lib/string_.h: Likewise.
58467         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58468         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58469         * modules/inttypes (inttypes.h): Likewise.
58470         * modules/math (math.h): Likewise.
58471         * modules/search (search.h): Likewise.
58472         * modules/signal (signal.h): Likewise.
58473         * modules/stdint (stdint.h): Likewise.
58474         * modules/stdio (stdio.h): Likewise.
58475         * modules/stdlib (stdlib.h): Likewise.
58476         * modules/string (string.h): Likewise.
58477         * modules/sys_time (sys/time.h): Likewise.
58478         * modules/time (time.h): Likewise.
58479         * modules/wchar (wchar.h): Likewise.
58480         * modules/wctype (wtype.h): Likewise.
58481
58482 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58483
58484         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58485
58486 2007-05-13  Bruno Haible  <bruno@clisp.org>
58487
58488         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58489         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58490         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58491         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58492         (gl_PREREQ_STRTOK_R): Don't require it here.
58493
58494 2007-05-13  Bruno Haible  <bruno@clisp.org>
58495
58496         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58497         when used in C++ mode.
58498
58499 2007-05-12  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/linebuffer.h: Tweak doc.
58502         * lib/linebuffer.c: Likewise.
58503
58504 2007-05-12  James Youngman  <jay@gnu.org>
58505
58506         * lib/linebuffer.c (readlinebuffer_delim): New function,
58507         like readlinebuffer, but use a caller-specified delimiter.
58508         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58509         as the delimiter.
58510         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58511
58512 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58513
58514         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58515         * modules/openat (Files): Remove openat-die.c.
58516         (Depends-on): Add openat-die.
58517         * modules/openat-die: New module.
58518
58519 2007-05-06  Bruno Haible  <bruno@clisp.org>
58520
58521         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58522         Update with info about Cygwin.
58523         * doc/functions/fprintf.texi: Update.
58524         * doc/functions/printf.texi: Update.
58525         * doc/functions/snprintf.texi: Update.
58526         * doc/functions/sprintf.texi: Update.
58527         * doc/functions/vfprintf.texi: Update.
58528         * doc/functions/vprintf.texi: Update.
58529         * doc/functions/vsnprintf.texi: Update.
58530         * doc/functions/vsprintf.texi: Update.
58531         Reported by Eric Blake.
58532
58533 2007-05-06  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58536         padding ourselves for the floating-point directives.
58537         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58540         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58541         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58549         * tests/test-snprintf-posix.h (test_function): Also check the width
58550         and some flags in the %f directive.
58551         * tests/test-sprintf-posix.h (test_function): Likewise.
58552         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58553         * tests/test-vasprintf-posix.c (test_function): Likewise.
58554         * doc/functions/fprintf.texi: Update.
58555         * doc/functions/printf.texi: Update.
58556         * doc/functions/snprintf.texi: Update.
58557         * doc/functions/sprintf.texi: Update.
58558         * doc/functions/vfprintf.texi: Update.
58559         * doc/functions/vprintf.texi: Update.
58560         * doc/functions/vsnprintf.texi: Update.
58561         * doc/functions/vsprintf.texi: Update.
58562
58563 2007-05-06  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58566         pass the ' flag character to sprintf or snprintf.
58567         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58570         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58571         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58579         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58580         flag.
58581         * tests/test-sprintf-posix.h (test_function): Likewise.
58582         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58583         * tests/test-vasprintf-posix.c (test_function): Likewise.
58584         * doc/functions/fprintf.texi: Update.
58585         * doc/functions/printf.texi: Update.
58586         * doc/functions/snprintf.texi: Update.
58587         * doc/functions/sprintf.texi: Update.
58588         * doc/functions/vfprintf.texi: Update.
58589         * doc/functions/vprintf.texi: Update.
58590         * doc/functions/vsnprintf.texi: Update.
58591         * doc/functions/vsprintf.texi: Update.
58592
58593 2007-05-01  Bruno Haible  <bruno@clisp.org>
58594
58595         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58596
58597 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58598
58599         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58600         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58601
58602 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58603
58604         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58605         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58607
58608 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58609
58610         * lib/argp-help.c (struct hol_entry): New member `ord'.
58611         (HOL_ENTRY_PTRCMP): Use ord for comparison
58612         (hol_sort): Initialize ord.
58613
58614 2007-05-01  Bruno Haible  <bruno@clisp.org>
58615
58616         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58617         Reported by Eric Blake.
58618         * doc/gnulib.texi (Function Substitutes): Update.
58619
58620 2007-05-01  Bruno Haible  <bruno@clisp.org>
58621
58622         * doc/functions.texi: Remove file, now redundant through
58623         doc/functions/*.texi.
58624
58625 2007-05-01  Bruno Haible  <bruno@clisp.org>
58626
58627         * modules/argp (Depends-on): Add sleep.
58628
58629 2007-05-01  Bruno Haible  <bruno@clisp.org>
58630
58631         * modules/sleep-tests: New file.
58632         * tests/test-sleep.c: New file.
58633
58634         * modules/sleep: New file.
58635         * lib/sleep.c: New file.
58636         * m4/sleep.m4: New file.
58637         * lib/unistd_.h (sleep): New declaration.
58638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58639         HAVE_SLEEP.
58640         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58641         * doc/functions/sleep.texi: Document the sleep module.
58642
58643 2007-05-01  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/sigprocmask.h: Remove file.
58646         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58647         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58648         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58649         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58650         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58651         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58652         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58653         HAVE_SIGSET_T as a shell variable.
58654         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58655         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58656         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58657         (Depends-on): Add signal. Remove verify.
58658         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58659         (Include): Mention <signal.h> instead of sigprocmask.h.
58660         * NEWS: Mention the change.
58661         * lib/fatal-signal.c: Don't include sigprocmask.h.
58662
58663 2007-05-01  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/signal: New file.
58666         * lib/signal_.h: New file.
58667         * m4/signal_h.m4: New file.
58668
58669 2007-05-01  Bruno Haible  <bruno@clisp.org>
58670
58671         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58672         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58673         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58674         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58675
58676 2007-05-01  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58679         configure time.
58680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58681         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58682         * modules/sys_stat (Makefile.am): Substitute their values into
58683         sys/stat.h.
58684
58685 2007-05-01  Bruno Haible  <bruno@clisp.org>
58686
58687         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58688         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58689         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58690
58691 2007-05-01  Bruno Haible  <bruno@clisp.org>
58692
58693         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58694         'assert' module here.
58695
58696 2007-05-01  Bruno Haible  <bruno@clisp.org>
58697
58698         * doc/functions/*.texi: New files.
58699         * doc/functions/google-ranking.txt: New file.
58700         * doc/gnulib.texi (Function Substitutes): New chapter.
58701         (ctime, inet_ntoa): Remove sections.
58702         * doc/ctime.texi: Remove file.
58703         * doc/inet_ntoa.texi: Remove file.
58704         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58705         dependencies.
58706         (%.info): New rule, specifying a --reference-limit.
58707
58708 2007-05-01  Bruno Haible  <bruno@clisp.org>
58709
58710         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58711
58712 2007-05-01  Bruno Haible  <bruno@clisp.org>
58713
58714         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58715         the portability of 'mkdir' to mingw systems.
58716
58717 2007-05-01  Bruno Haible  <bruno@clisp.org>
58718
58719         * doc/headers/google-ranking.txt: New file.
58720
58721 2007-04-30  Eric Blake  <ebb9@byu.net>
58722
58723         Prefer fseeko to fseek.
58724         * modules/getpass (Depends-on): Add fseeko.
58725         * lib/getpass.c (getpass): Use fseeko, not fseek.
58726
58727 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58728
58729         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58730         assumes the sorting is stable, while most qsort implementations
58731         are not.  Use argument addresses to ensure they never compare as
58732         equal.
58733
58734         * tests/test-argp-2.sh (usage-indent test): Fix output
58735         (func_compare): Restore diff options
58736         * tests/test-argp.c: Restore #include "progname.h"
58737
58738 2007-04-29  Bruno Haible  <bruno@clisp.org>
58739
58740         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58742         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58744         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58745         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58746         (TESTS, check_PROGRAMS): Add test-snprintf.
58747         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58748         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58749         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58750         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58751         assertions that fail on HP-UX, OSF/1, or IRIX.
58752         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58753
58754 2007-04-29  Bruno Haible  <bruno@clisp.org>
58755
58756         * MODULES.html.sh (posix_functions): Remove 'contents'.
58757
58758 2007-04-29  Karl Berry  <karl@gnu.org>
58759
58760         * config/srclist.txt (gendocs_template_min): new entry.
58761
58762 2007-04-29  Bruno Haible  <bruno@clisp.org>
58763
58764         Work around fpurge bug on BSD systems.
58765         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58766         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58767         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58768         fpurge to rpl_fpurge if the system already has this function.
58769         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58770         the case where the system already has this function. Correct invariants
58771         on BSD systems.
58772         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58773         BSD systems.
58774
58775 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58776
58777         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58778         proposed by Sven Verdoolaege.
58779
58780         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58781         options.
58782         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58783         (usage and help tests): Update
58784
58785 2007-04-29  Bruno Haible  <bruno@clisp.org>
58786
58787         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58788         Print more information in case of failure. Disable a test on BeOS.
58789
58790 2007-04-29  Bruno Haible  <bruno@clisp.org>
58791
58792         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58793         This helps debugging on systems on which no gdb is available.
58794
58795 2007-04-29  Bruno Haible  <bruno@clisp.org>
58796
58797         * lib/freading.h: Improve comments.
58798         * lib/fwriting.h: Likewise.
58799         * tests/test-freading.c (main): Don't check freading immediately after
58800         repositioning. Needed for glibc.
58801
58802 2007-04-29  Bruno Haible  <bruno@clisp.org>
58803
58804         * lib/freading.c (freading): Trivial simplification.
58805
58806 2007-04-28  Bruno Haible  <bruno@clisp.org>
58807
58808         * tests/test-fwriting.c (main): Also test the interaction between
58809         fflush and fwriting.
58810         * modules/fwriting-tests (Depends-on): Add fflush.
58811
58812         * tests/test-freading.c (main): Also test the interaction between
58813         fflush and freading.
58814         * modules/freading-tests (Depends-on): Add fflush.
58815
58816 2007-04-28  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58819         fseeko and ftello.
58820         Suggested by Eric Blake.
58821
58822 2007-04-28  Jim Meyering  <jim@meyering.net>
58823
58824         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58825         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58826         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58827
58828 2007-04-27  Eric Blake  <ebb9@byu.net>
58829
58830         * doc/headers/assert.texi (assert.h): Document assert module use.
58831
58832 2007-04-27  Bruno Haible  <bruno@clisp.org>
58833
58834         * doc/headers/*.texi: New files.
58835         * doc/gnulib.texi (Header File Substitutes): New chapter.
58836         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58837         dependencies.
58838         (standards.info ,standards.html, standards.dvi): Update dependencies.
58839         (mostlyclean, clean): New targets.
58840
58841 2007-04-27  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58844         * modules/sysexits (Files, Makefile.am): Update.
58845
58846         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58847         * modules/sys_socket (Files, Makefile.am): Update.
58848
58849         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58850         * modules/sys_stat (Files, Makefile.am): Update.
58851
58852 2007-04-27  Eric Blake  <ebb9@byu.net>
58853
58854         * lib/freading.h: Improve comments.
58855         * lib/fwriting.h: Likewise.
58856         * lib/fflush.c: Likewise.
58857
58858         Fix closein for mingw.
58859         * modules/closein-tests: Add tests for closein.
58860         * tests/test-closein.c: New file.
58861         * tests/test-closein.sh: Likewise.
58862         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58863         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58864
58865 2007-04-27  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58868         version is < 6.
58869         * lib/math_.h [__DECC]: Likewise.
58870         * lib/stdio_.h [__DECC]: Likewise.
58871         * lib/stdlib_.h [__DECC]: Likewise.
58872         * lib/string_.h [__DECC]: Likewise.
58873         * lib/time_.h [__DECC]: Likewise.
58874         * lib/wchar_.h [__DECC]: Likewise.
58875         * lib/wctype_.h [__DECC]: Likewise.
58876
58877 2007-04-27  Bruno Haible  <bruno@clisp.org>
58878
58879         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58880
58881 2007-04-27  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/fflush.c: Add comments.
58884         * modules/fpurge-tests (Depends-on): Add fflush.
58885         * modules/freadable-tests (Depends-on): Likewise.
58886         * modules/fwritable-tests (Depends-on): Likewise.
58887
58888 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58889
58890         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58891         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58892         Report by Bruno Haible <bruno@clisp.org>.
58893
58894 2007-04-26  Eric Blake  <ebb9@byu.net>
58895
58896         Fix fflush on mingw.
58897         * modules/fflush (Depends-on): Add freading.
58898         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58899         but unread data.
58900
58901 2007-04-26  Eric Blake  <ebb9@byu.net>
58902         and Bruno Haible  <bruno@clisp.org>
58903
58904         Implement freading and fwriting.
58905         * lib/freading.c: New file.
58906         * lib/freading.h: Likewise.
58907         * m4/freading.m4: Likewise.
58908         * modules/freading: Likewise.
58909         * modules/freading-tests: Likewise.
58910         * tests/test-freading.c: Likewise.
58911         * lib/fwriting.c: New file.
58912         * lib/fwriting.h: Likewise.
58913         * m4/fwriting.m4: Likewise.
58914         * modules/fwriting: Likewise.
58915         * modules/fwriting-tests: Likewise.
58916         * tests/test-fwriting.c: Likewise.
58917         * MODULES.html.sh (File stream based Input/Output): Mention them.
58918
58919 2007-04-26  Bruno Haible  <bruno@clisp.org>
58920
58921         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58922         'long' when we assume it.
58923         Suggested by Eric Blake.
58924
58925 2007-04-26  Bruno Haible  <bruno@clisp.org>
58926
58927         Ensure fseeko, ftello are declared on glibc systems.
58928         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58929         * modules/fseeko (configure.ac-early): Likewise.
58930         * modules/ftello (configure.ac-early): Likewise.
58931         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58932         AC_FUNC_FSEEKO for this.
58933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58934         (gl_CHECK_FSEEKO): Remove macro.
58935
58936 2007-04-26  Bruno Haible  <bruno@clisp.org>
58937
58938         * tests/test-fflush.c (main): Also check the ftell result after
58939         fflush and fseek/fseeko.
58940         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58941         file descriptor position cache in the stream.
58942         * lib/fseeko.c (rpl_fseeko): Likewise.
58943
58944 2007-04-26  Bruno Haible  <bruno@clisp.org>
58945
58946         * modules/fflush-tests (Depends-on): Add fseeko.
58947
58948 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58949             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58950
58951         * lib/argz_.h: ensure error_t definition is obtained in same
58952         mechanism system argz.h would have.
58953         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58954         argz facilities are known bad.  Err on the side of caution if
58955         cross-compiling.
58956
58957 2007-04-25  Eric Blake  <ebb9@byu.net>
58958
58959         * lib/fpurge.c (includes): Use stdlib.h for free.
58960         * tests/test-fflush.c (main): Also test fflush-fseeko.
58961
58962 2007-04-25  Bruno Haible  <bruno@clisp.org>
58963
58964         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58965         * lib/fseeko.c: New file.
58966         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58967         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58968         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58969         gl_FUNC_FSEEKO.
58970         (gl_FUNC_FSEEKO): Invoke it.
58971         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58972         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58973         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58974
58975 2007-04-25  Bruno Haible  <bruno@clisp.org>
58976
58977         * modules/fflush (Depends-on): Add ftello.
58978
58979 2007-04-25  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/ftello-tests: New file.
58982         * tests/test-ftello.c: New file.
58983
58984         * modules/ftello: New file.
58985         * m4/ftello.m4: New file.
58986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58987         HAVE_FTELLO.
58988         * lib/stdio_.h (ftello): New declaration.
58989         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58990         HAVE_FTELLO.
58991
58992 2007-04-25  Bruno Haible  <bruno@clisp.org>
58993
58994         * modules/fseeko-tests: New file.
58995         * tests/test-fseeko.c: New file.
58996
58997         * modules/fseeko: New file.
58998         * m4/fseeko.m4: New file.
58999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59000         HAVE_FSEEKO.
59001         * lib/stdio_.h (fseeko): New declaration.
59002         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59003         HAVE_FSEEKO.
59004
59005 2007-04-25  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59008
59009 2007-04-25  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59012         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59013         * tests/test-unistd.c: Likewise.
59014         * tests/test-fcntl.c: Likewise.
59015
59016 2007-04-23  Eric Blake  <ebb9@byu.net>
59017
59018         * lib/fflush.c: Fix missing include.
59019         Reported by Bruno Haible.
59020
59021 2007-04-23  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59024         Reported by Eric Blake.
59025
59026 2007-04-23  Bruno Haible  <bruno@clisp.org>
59027
59028         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59029
59030 2007-04-23  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59033
59034 2007-04-23  Bruno Haible  <bruno@clisp.org>
59035
59036         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59037         Needed on HP-UX 11.
59038
59039 2007-04-16  Eric Blake  <ebb9@byu.net>
59040
59041         Make fflush rely on fpurge.
59042         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59043         open coding all variants.
59044         * modules/fflush (Depends-on): Add fpurge and unistd.
59045         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59046         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59047
59048         Fix --with-tests compilation on cygwin.
59049         * modules/argmatch-tests (Makefile.am): List gnulib library first
59050         in LDADD.
59051         * modules/argp-tests (Makefile.am): Likewise.
59052         * modules/array-list-tests (Makefile.am): Likewise.
59053         * modules/array-oset-tests (Makefile.am): Likewise.
59054         * modules/avltree-list-tests (Makefile.am): Likewise.
59055         * modules/avltree-oset-tests (Makefile.am): Likewise.
59056         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59057         * modules/carray-list-tests (Makefile.am): Likewise.
59058         * modules/dirname-tests (Makefile.am): Likewise.
59059         * modules/frexp-tests (Makefile.am): Likewise.
59060         * modules/isnanl-tests (Makefile.am): Likewise.
59061         * modules/linked-list-tests (Makefile.am): Likewise.
59062         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59063         * modules/lock-tests (Makefile.am): Likewise.
59064         * modules/rbtree-list-tests (Makefile.am): Likewise.
59065         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59066         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59067         * modules/tls-tests (Makefile.am): Likewise.
59068         * modules/tsearch-tests (Makefile.am): Likewise.
59069         * modules/xvasprintf-tests (Makefile.am): Likewise.
59070
59071         Fix fpurge for cygwin.
59072         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59073         value.
59074         * modules/fpurge-tests (Depends-on): Clean up trash.
59075
59076 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59077
59078         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59079
59080         * m4/autobuild.m4: Re-indent.
59081
59082 2007-04-13  Bruno Haible  <bruno@clisp.org>
59083
59084         * modules/fpurge-tests: New file.
59085         * tests/test-fpurge.c: New file.
59086
59087         * modules/fpurge: New file.
59088         * lib/fpurge.h: New file.
59089         * lib/fpurge.c: New file.
59090         * m4/fpurge.m4: New file.
59091
59092 2007-04-13  Bruno Haible  <bruno@clisp.org>
59093
59094         * modules/fbufmode-tests: New file.
59095         * tests/test-fbufmode.c: New file.
59096
59097         * modules/fbufmode: New file.
59098         * lib/fbufmode.h: New file.
59099         * lib/fbufmode.c: New file.
59100         * m4/fbufmode.m4: New file.
59101
59102 2007-04-13  Bruno Haible  <bruno@clisp.org>
59103
59104         * modules/fwritable-tests: New file.
59105         * tests/test-fwritable.c: New file.
59106
59107         * modules/fwritable: New file.
59108         * lib/fwritable.h: New file.
59109         * lib/fwritable.c: New file.
59110         * m4/fwritable.m4: New file.
59111
59112 2007-04-13  Bruno Haible  <bruno@clisp.org>
59113
59114         * modules/freadable-tests: New file.
59115         * tests/test-freadable.c: New file.
59116
59117         * modules/freadable: New file.
59118         * lib/freadable.h: New file.
59119         * lib/freadable.c: New file.
59120         * m4/freadable.m4: New file.
59121
59122 2007-04-13  Bruno Haible  <bruno@clisp.org>
59123
59124         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59125         MOSTLYCLEANFILES.
59126
59127 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59128
59129         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59130         gzip bootstrap.conf to avoid dragging in i18n machinery.
59131         (gnulib_tool_option): Use it.
59132
59133 2007-04-13  Bruno Haible  <bruno@clisp.org>
59134
59135         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59136         %F directives.
59137         * tests/test-vasprintf-posix.c (test_function): Likewise.
59138         * tests/test-snprintf-posix.h (test_function): Likewise.
59139         * tests/test-sprintf-posix.h (test_function): Likewise.
59140         * tests/test-fprintf-posix.h (test_function): Likewise.
59141         * tests/test-printf-posix.h (test_function): Likewise.
59142         * tests/test-fprintf-posix.out: Likewise.
59143
59144 2007-04-13  Bruno Haible  <bruno@clisp.org>
59145
59146         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59147         * modules/tls-tests (configure.ac): Likewise.
59148         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59149
59150 2007-04-13  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/tls.c (glthread_tls_get): Fix return type.
59153         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59154
59155 2007-04-12  Eric Blake  <ebb9@byu.net>
59156
59157         * modules/gettime (Depends-on): Remove gettime.
59158         Reported by Dmitry V. Levin.
59159
59160 2007-04-12  Bruno Haible  <bruno@clisp.org>
59161
59162         * modules/fflush (Include): Mention <stdio.h>.
59163         * modules/strtoimax (Include): Mention <inttypes.h>.
59164         * modules/strtoumax (Include): Likewise.
59165
59166 2007-04-12  Eric Blake  <ebb9@byu.net>
59167
59168         * .cvsignore: New file.
59169         * .gitignore: Likewise.
59170
59171 2007-04-12  Bruno Haible  <bruno@clisp.org>
59172
59173         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59174         not before, since $(LDADD) often contains libgnu.a.
59175         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59176         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59177         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59178         Needed on Cygwin.
59179
59180 2007-04-12  Eric Blake  <ebb9@byu.net>
59181
59182         Work around glibc's failure to flush stdin on fclose.
59183         * lib/closein.c (close_stdin): Flush stdin before closing.
59184
59185         Work around glibc's failure to reset seekable stdin on exit.
59186         * modules/closein: New module.
59187         * lib/closein.c: New file.
59188         * lib/closein.h: Likewise.
59189         * m4/closein.m4: Likewise.
59190         * MODULES.html.sh (File stream based Input/Output): Document it.
59191
59192 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59193
59194         * gnulib-tool: Rename generated 'autobuild' script to
59195         'do-autobuild' in --create-megatestdir output.
59196
59197         * doc/gnulib.texi (Build robot for gnulib): Fix.
59198
59199 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59200
59201         * modules/sysexits (Depends-on): Add absolute-header.
59202
59203 2007-04-12  Eric Blake  <ebb9@byu.net>
59204
59205         No need to preserve errno on success.
59206         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59207         Reported by Bruno Haible.
59208
59209 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59210
59211         * MODULES.html.sh (Support for maintaining and releasing
59212         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59213
59214 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59215
59216         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59217
59218 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59219
59220         * modules/autobuild: New module.
59221
59222         * m4/autobuild.m4: New file.
59223
59224 2007-04-11  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59227         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59236         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59240         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59241         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59245         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59254         Reported by Eric Blake.
59255
59256 2007-04-11  Bruno Haible  <bruno@clisp.org>
59257
59258         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59259
59260 2007-04-10  Bruno Haible  <bruno@clisp.org>
59261
59262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59263         for NaN and Infinity. Needed on FreeBSD 6.1.
59264         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59265         regarding results for "%010a" of Infinity and NaN.
59266         * tests/test-vasprintf-posix.c (test_function): Likewise.
59267         * tests/test-snprintf-posix.h (test_function): Likewise.
59268         * tests/test-sprintf-posix.h (test_function): Likewise.
59269         * tests/test-fprintf-posix.h (test_function): Likewise.
59270         * tests/test-printf-posix.h (test_function): Likewise.
59271         * tests/test-fprintf-posix.out: Likewise.
59272
59273 2007-04-10  Bruno Haible  <bruno@clisp.org>
59274
59275         * modules/locale-tests: New file.
59276         * tests/test-locale.c: New file.
59277
59278         * modules/locale: New file.
59279         * lib/locale_.h: New file.
59280         * m4/locale_h.m4: New file.
59281
59282 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59283             Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59286         be determined, test for availability of the copysignf, copysign,
59287         copysignl functions.
59288         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59289         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59290         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59291
59292 2007-04-09  Eric Blake  <ebb9@byu.net>
59293
59294         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59295         * modules/stdio (Makefile.am): Support fflush.
59296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59297         * modules/fflush: New file.
59298         * lib/fflush.c: Likewise.
59299         * m4/fflush.m4: Likewise.
59300         * modules/fflush-tests: New test.
59301         * tests/test-fflush.c: Likewise.
59302         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59303
59304 2007-04-06  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59307         (VASNPRINTF): Use signbit for faster determination whether to print a
59308         minus sign.
59309         * modules/vasnprintf (Files): Remove lib/float+.h.
59310         * modules/fprintf-posix (Depends-on): Add signbit.
59311         * modules/snprintf-posix (Depends-on): Likewise.
59312         * modules/sprintf-posix (Depends-on): Likewise.
59313         * modules/vasnprintf-posix (Depends-on): Likewise.
59314         * modules/vasprintf-posix (Depends-on): Likewise.
59315         * modules/vfprintf-posix (Depends-on): Likewise.
59316         * modules/vsnprintf-posix (Depends-on): Likewise.
59317         * modules/vsprintf-posix (Depends-on): Likewise.
59318
59319 2007-04-06  Bruno Haible  <bruno@clisp.org>
59320
59321         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59322         * tests/test-frexpl.c (main): Likewise.
59323         * tests/test-ldexpl.c (main): Likewise.
59324         * modules/frexp-tests (Depends-on): Add signbit.
59325         * modules/frexpl-tests (Depdends-on): Likewise.
59326         * modules/ldexpl-tests (Depdends-on): Likewise.
59327
59328 2007-04-06  Bruno Haible  <bruno@clisp.org>
59329
59330         * modules/signbit-tests: New file.
59331         * tests/test-signbit.c: New file.
59332
59333         * modules/signbit: New file.
59334         * lib/signbitf.c: New file.
59335         * lib/signbitd.c: New file.
59336         * lib/signbitl.c: New file.
59337         * m4/signbit.m4: New file.
59338         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59339         (signbit): New macro.
59340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59341         REPLACE_SIGNBIT.
59342         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59343         REPLACE_FREXPL into math.h.
59344
59345 2007-04-06  Bruno Haible  <bruno@clisp.org>
59346
59347         * modules/isnanf-nolibm-tests: New file.
59348         * tests/test-isnanf.c: New file.
59349
59350         * modules/isnanf-nolibm: New file.
59351         * lib/isnanf.h: New file.
59352         * lib/isnanf.c: New file.
59353         * lib/isnan.c: Consider the USE_FLOAT macro.
59354         * m4/isnanf.m4: New file.
59355
59356 2007-04-06  Bruno Haible  <bruno@clisp.org>
59357
59358         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59359         (Link): New section.
59360
59361         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59362
59363 2007-04-06  Bruno Haible  <bruno@clisp.org>
59364
59365         Assume the 'long double' type.
59366         * m4/longdouble.m4: Remove file.
59367         * config/srclist.txt: Don't mention longdouble.m4.
59368         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59369         * lib/float+.h: Likewise.
59370         * lib/frexp.c: Likewise.
59371         * lib/printf-args.h: Likewise.
59372         * lib/printf-args.c: Likewise.
59373         * lib/printf-frexp.c: Likewise.
59374         * lib/printf-parse.c: Likewise.
59375         * lib/vasnprintf.c: Likewise.
59376         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59377         * m4/intl.m4: Likewise.
59378         * m4/isnanl.m4: Likewise.
59379         * m4/printf.m4: Likewise.
59380         * m4/printf-frexpl.m4: Likewise.
59381         * m4/vasnprintf.m4: Likewise.
59382         * modules/allocsa (Files): Remove m4/longdouble.m4.
59383         * modules/gettext (Files): Likewise.
59384         * modules/relocatable-prog-wrapper (Files): Likewise.
59385         * modules/vasnprintf (Files): Likewise.
59386         * modules/isnanl (Files): Likewise.
59387         (Include): Simplify.
59388         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59389         (Include): Simplify.
59390         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59391         (Include): Simplify.
59392         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59394         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59396         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59398         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59400         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59402         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59403         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59404         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59405         * tests/test-isnanl.c: Likewise.
59406         * tests/test-snprintf-posix.h: Likewise.
59407         * tests/test-sprintf-posix.h: Likewise.
59408         * tests/test-vasnprintf-posix.c: Likewise.
59409         * tests/test-vasnprintf-posix2.c: Likewise.
59410         * tests/test-vasprintf-posix.c: Likewise.
59411
59412 2007-04-06  Bruno Haible  <bruno@clisp.org>
59413
59414         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59415         * lib/math_.h [__DECC]: Include the overridden include file through
59416         #include_next, outside the double-inclusion guard.
59417         * lib/stdio_.h [__DECC]: Likewise.
59418         * lib/stdlib_.h [__DECC]: Likewise.
59419         * lib/string_.h [__DECC]: Likewise.
59420         * lib/time_.h [__DECC]: Likewise.
59421         * lib/wchar_.h [__DECC]: Likewise.
59422         * lib/wctype_.h [__DECC]: Likewise.
59423         * lib/inttypes_.h [__DECC]: Likewise.
59424         Reported by Albert Chin <china@thewrittenword.com> in
59425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59426
59427 2007-04-04  Eric Blake  <ebb9@byu.net>
59428
59429         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59430         1.5.x.
59431
59432 2007-04-04  Bruno Haible  <bruno@clisp.org>
59433
59434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59435         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59436
59437 2007-04-04  Bruno Haible  <bruno@clisp.org>
59438
59439         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59440         results for "%010a" of Infinity and NaN.
59441         * tests/test-vasprintf-posix.c (test_function): Likewise.
59442         * tests/test-snprintf-posix.h (test_function): Likewise.
59443         * tests/test-sprintf-posix.h (test_function): Likewise.
59444         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59445         * tests/test-printf-posix.h (test_function): Likewise.
59446         * tests/test-fprintf-posix.out: Update.
59447         Needed for FreeBSD 6.1.
59448
59449 2007-04-04  Bruno Haible  <bruno@clisp.org>
59450
59451         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59452         directly used by the gnulib modules nor by gnulib-tool.
59453
59454 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59455
59456         * DEPENDENCIES: Give overall description of version dependency
59457         desirability.  Use more-typical names for apps.
59458         Add shell, coreutils, diffutils, grep, tar, gzip.
59459
59460 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59461
59462         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59463
59464 2007-04-04  Karl Berry  <karl@gnu.org>
59465
59466         * MODULES.html.sh (func_module): missing '.
59467
59468 2007-04-03  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/argmatch-tests (Makefile.am): New variable
59471         test_argmatch_LDADD.
59472         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59473         * modules/array-list-tests (Makefile.am): New variable
59474         test_array_list_LDADD.
59475         * modules/array-oset-tests (Makefile.am): New variable
59476         test_array_oset_LDADD.
59477         * modules/avltree-list-tests (Makefile.am): New variable
59478         test_avltree_list_LDADD.
59479         * modules/avltree-oset-tests (Makefile.am): New variable
59480         test_avltree_oset_LDADD.
59481         * modules/avltreehash-list-tests (Makefile.am): New variable
59482         test_avltreehash_list_LDADD.
59483         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59484         test_canonicalize_lgpl_LDADD.
59485         * modules/carray-list-tests (Makefile.am): New variable
59486         test_carray_list_LDADD.
59487         * modules/dirname-tests (Makefile.am): New variable
59488         test_dirname_LDADD.
59489         * modules/linked-list-tests (Makefile.am): New variable
59490         test_linked_list_LDADD.
59491         * modules/linkedhash-list-tests (Makefile.am): New variable
59492         test_linkedhash_list_LDADD.
59493         * modules/rbtree-list-tests (Makefile.am): New variable
59494         test_rbtree_list_LDADD.
59495         * modules/rbtree-oset-tests (Makefile.am): New variable
59496         test_rbtree_oset_LDADD.
59497         * modules/rbtreehash-list-tests (Makefile.am): New variable
59498         test_rbtreehash_list_LDADD.
59499         * modules/xvasprintf-tests (Makefile.am): New variable
59500         test_xvasprintf_LDADD.
59501         Reported by Eric Blake.
59502
59503 2007-04-03  Eric Blake  <ebb9@byu.net>
59504
59505         * DEPENDENCIES: Weaken m4 requirements.
59506
59507 2007-04-03  Bruno Haible  <bruno@clisp.org>
59508
59509         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59510         * modules/isnanl-tests (configure.ac): Likewise.
59511
59512 2007-04-03  Ben Pfaff  <blp@gnu.org>
59513
59514         * modules/iconv_open: Add $(srcdir)/ to source directory
59515         references in Makefile fragments that call gperf, to fix VPATH
59516         builds.
59517
59518 2007-04-03  Bruno Haible  <bruno@clisp.org>
59519
59520         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59521         * lib/ldexpl.c: Undo last change.
59522
59523 2007-04-03  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/printf-frexpl (Depends-on): Undo last change.
59526         (Files): Add m4/ldexpl.m4.
59527
59528 2007-04-03  Bruno Haible  <bruno@clisp.org>
59529
59530         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59531         * modules/isnanl (Link): New section.
59532
59533         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59534         * modules/frexp (Link): New section.
59535
59536         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59537         * modules/frexpl (Link): New section.
59538
59539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59540         * modules/ldexpl (Link): New section.
59541
59542 2007-04-03  Bruno Haible  <bruno@clisp.org>
59543
59544         * modules/TEMPLATE-EXTENDED: New file.
59545         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59546
59547 2007-04-03  Bruno Haible  <bruno@clisp.org>
59548
59549         * DEPENDENCIES: New file.
59550         Suggested by Simon Josefsson.
59551
59552 2007-04-03  Bruno Haible  <bruno@clisp.org>
59553
59554         * doc/gnulib.texi: Escape @.
59555
59556 2007-04-03  James Youngman  <jay@gnu.org>
59557         and Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59560         birthtime on all systems that have birthtime, not just those which
59561         use st_birthtimensec rather than st_birthtim.  Putting zero in
59562         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59563         that the birth time is not available for files on an NFS mount.
59564
59565 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59566
59567         * modules/memxor: Move back from crypto/, suggested by Bruno.
59568         * modules/crypto/hmac-sha1: Fix memxor dependency.
59569
59570         * modules/crypto/gc: Moved from ../.
59571
59572 2007-04-02  Eric Blake  <ebb9@byu.net>
59573
59574         * lib/ldexpl.c (includes): Avoid libm.
59575
59576         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59577
59578 2007-04-02  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59581         on IRIX.
59582
59583 2007-04-02  Bruno Haible  <bruno@clisp.org>
59584
59585         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59586         x86 or x86_64 platforms running MacOS X.
59587         Reported by Ryan Schmidt <@ryandesign.com>.
59588
59589 2007-04-02  Bruno Haible  <bruno@clisp.org>
59590
59591         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59592         i386.
59593
59594 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59595
59596         * modules/crypto/arcfour: Moved from ../.
59597         * modules/crypto/arcfour-tests: Moved from ../.
59598         * modules/crypto/arctwo: Moved from ../.
59599         * modules/crypto/arctwo-tests: Moved from ../.
59600         * modules/crypto/des: Moved from ../.
59601         * modules/crypto/des-tests: Moved from ../.
59602         * modules/crypto/gc-arcfour: Moved from ../.
59603         * modules/crypto/gc-arcfour-tests: Moved from ../.
59604         * modules/crypto/gc-arctwo: Moved from ../.
59605         * modules/crypto/gc-arctwo-tests: Moved from ../.
59606         * modules/crypto/gc-des: Moved from ../.
59607         * modules/crypto/gc-des-tests: Moved from ../.
59608         * modules/crypto/gc-hmac-md5: Moved from ../.
59609         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59610         * modules/crypto/gc-hmac-sha1: Moved from ../.
59611         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59612         * modules/crypto/gc-md2: Moved from ../.
59613         * modules/crypto/gc-md2-tests: Moved from ../.
59614         * modules/crypto/gc-md4: Moved from ../.
59615         * modules/crypto/gc-md4-tests: Moved from ../.
59616         * modules/crypto/gc-md5: Moved from ../.
59617         * modules/crypto/gc-md5-tests: Moved from ../.
59618         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59619         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59620         * modules/crypto/gc-random: Moved from ../.
59621         * modules/crypto/gc-rijndael: Moved from ../.
59622         * modules/crypto/gc-rijndael-tests: Moved from ../.
59623         * modules/crypto/gc-sha1: Moved from ../.
59624         * modules/crypto/gc-sha1-tests: Moved from ../.
59625         * modules/crypto/gc-tests: Moved from ../.
59626         * modules/crypto/hmac-md5: Moved from ../.
59627         * modules/crypto/hmac-md5-tests: Moved from ../.
59628         * modules/crypto/hmac-sha1: Moved from ../.
59629         * modules/crypto/hmac-sha1-tests: Moved from ../.
59630         * modules/crypto/md2: Moved from ../.
59631         * modules/crypto/md2-tests: Moved from ../.
59632         * modules/crypto/md4: Moved from ../.
59633         * modules/crypto/md4-tests: Moved from ../.
59634         * modules/crypto/md5: Moved from ../.
59635         * modules/crypto/md5-tests: Moved from ../.
59636         * modules/crypto/memxor: Moved from ../.
59637         * modules/crypto/rijndael: Moved from ../.
59638         * modules/crypto/rijndael-tests: Moved from ../.
59639         * modules/crypto/sha1: Moved from ../.
59640
59641 2007-03-30  James Youngman  <jay@gnu.org>
59642
59643         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59644         rename() to change the ctime of a file (because ctime is unaffected
59645         by rename on jfs2 on AIX 5.1).
59646         (main): Start by doing cleanup, in case a previous run failed leaving
59647         test files behind.
59648
59649 2007-03-31  Bruno Haible  <bruno@clisp.org>
59650
59651         Support old proprietary implementations of iconv.
59652         * modules/iconv_open: New file.
59653         * lib/iconv_.h: New file.
59654         * m4/iconv_h.m4: New file.
59655         * lib/iconv_open.c: New file.
59656         * lib/iconv_open-aix.gperf: New file.
59657         * lib/iconv_open-hpux.gperf: New file.
59658         * lib/iconv_open-irix.gperf: New file.
59659         * lib/iconv_open-osf.gperf: New file.
59660         * m4/iconv_open.m4: New file.
59661         * modules/linebreak (Depends-on): Add iconv_open.
59662         * modules/striconv (Depends-on): Likewise.
59663         * modules/striconveh (Depends-on): Likewise.
59664         * modules/unicodeio (Depends-on): Likewise.
59665         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59666         (iconv_t)(-1).
59667         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59668         conversion if cd is (iconv_t)(-1).
59669         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59670         is not possible.
59671
59672 2007-03-31  Bruno Haible  <bruno@clisp.org>
59673
59674         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59675         work on Solaris either. Protect also second use of "autodetect_jp".
59676
59677 2007-03-31  Bruno Haible  <bruno@clisp.org>
59678
59679         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59680         the function is not present.
59681
59682 2007-03-31  Bruno Haible  <bruno@clisp.org>
59683
59684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59685         the function is not present.
59686
59687 2007-03-31  Bruno Haible  <bruno@clisp.org>
59688
59689         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59690         a bug in HP-UX iconv_open().
59691
59692 2007-03-31  Bruno Haible  <bruno@clisp.org>
59693
59694         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59695         (Mathematics <math.h>): New section, add fpieee.
59696         (Input/output <stdio.h>): Add fseterr.
59697         (Mathematics <math.h>): New section, add printf-frexp.
59698         (Container data structures): Add sublist.
59699         (Core language properties): Add fpucw, inline.
59700         (Functions for greatest-width integer types <inttypes.h>): Add
59701         imaxabs, imaxdiv, inttypes.
59702         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59703         isnanl-nolibm, ldexp.
59704         (Mathematics <math.h>): New section, add printf-frexpl.
59705         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59706         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59707         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59708         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59709         (Unicode string functions): Add unistr/u*-mbtoucr.
59710         (Java): Add javacomp-script, javaexec-script.
59711         (C#): Add csharpcomp-script, csharpexec-script.
59712         (Support for building libraries and executables): Add havelib,
59713         relocatable-*.
59714         (Support for maintaining and releasing projects): Renamed from
59715         'Support for maintaining and release projects'. Add announce-gen.
59716
59717 2007-03-31  Bruno Haible  <bruno@clisp.org>
59718
59719         * README: Talk primarily about git.
59720         (git and CVS): Renamed from CVS.
59721         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59722         gnulib is available through git.
59723         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59724
59725 2007-03-30  Bruno Haible  <bruno@clisp.org>
59726
59727         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59728         * lib/poll_.h: Likewise.
59729         * lib/stat_.h: Likewise.
59730         * lib/sys_time_.h: Likewise.
59731         * lib/sysexit_.h: Likewise.
59732         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59733         * lib/stdbool_.h: Likewise.
59734         * lib/byteswap_.h: Add double-inclusion guard.
59735
59736 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59737
59738         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59739
59740 2007-03-30  Karl Berry  <karl@gnu.org>
59741
59742         * config/srclist-update: double space after USA in the license
59743         substitution, since that's how it's usually (?) written.
59744
59745 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59746
59747         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59748         reported by Bruno Haible.
59749
59750 2007-03-29  Bruno Haible  <bruno@clisp.org>
59751
59752         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59753         a bug in AIX iconv().
59754
59755 2007-03-29  Bruno Haible  <bruno@clisp.org>
59756
59757         * modules/ldexpl-tests: New file.
59758         * tests/test-ldexpl.c: New file.
59759
59760 2007-03-29  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/ldexpl.c: Include fpucw.h.
59763         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59764         multiplication.
59765         * modules/ldexpl (Depends-on): Add fpucw.
59766
59767 2007-03-29  Bruno Haible  <bruno@clisp.org>
59768
59769         * modules/ldexpl: New file.
59770         * m4/ldexpl.m4: New file.
59771         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59772         set.
59773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59774         REPLACE_LDEXPL.
59775         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59776         REPLACE_LDEXPL.
59777         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59778         gl_FUNC_LDEXPL_WORKS.
59779         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59780         * modules/mathl (Files): Remove lib/ldexpl.c.
59781         (Depends-on): Add ldexpl.
59782
59783 2007-03-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59786
59787 2007-03-29  Bruno Haible  <bruno@clisp.org>
59788
59789         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59790         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59791         and possibly also HP-UX.
59792         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59793         work on AIX, IRIX, HP-UX, OSF/1.
59794         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59795         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59796         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59797         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59798         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59799         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59800
59801 2007-03-29  Bruno Haible  <bruno@clisp.org>
59802
59803         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59804
59805 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59808         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59809
59810 2007-03-29  Eric Blake  <ebb9@byu.net>
59811
59812         * lib/acl-internal.h: Remove redundant include.
59813         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59814         Cygwin when a file is locked.
59815
59816 2007-03-29  Bruno Haible  <bruno@clisp.org>
59817
59818         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59819         file.
59820         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59821
59822 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59825         try to remove a parent directory if the child couldn't be removed
59826         (except for the first rmdir, which could fail because the child
59827         doesn't exist).  Problem reported by Jeff Blaine in
59828         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59829
59830 2007-03-28  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/striconveh.c (utf8conv_carefully): New function.
59833         (mem_cd_iconveh_internal): Invoke it.
59834
59835 2007-03-28  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59838         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59839         input.
59840         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59841         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59842         unistr/u8-uctomb.
59843
59844 2007-03-28  Bruno Haible  <bruno@clisp.org>
59845
59846         * modules/unistr/u8-mbtoucr: New file.
59847         * lib/unistr/u8-mbtoucr.c: New file.
59848         * modules/unistr/u16-mbtoucr: New file.
59849         * lib/unistr/u16-mbtoucr.c: New file.
59850         * modules/unistr/u16-mbtoucr: New file.
59851         * lib/unistr/u16-mbtoucr.c: New file.
59852         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59853
59854 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59855             Bruno Haible  <bruno@clisp.org>
59856
59857         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59858         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59859         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59860
59861         * m4/stdio_h.m4: Add stubs for vasprintf too.
59862
59863         * modules/stdio: Support vasprintf in sed command.
59864
59865         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59866         vasprintf.h.  Add stdio module indicator.
59867
59868         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59869         vasprintf.h.
59870
59871         * lib/vasprintf.h: File removed.
59872
59873         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59874         * lib/vasprintf.c: Ditto.
59875         * lib/xvasprintf.c: Ditto.
59876         * tests/test-vasprintf-posix.c: Ditto.
59877         * tests/test-vasprintf.c: Ditto.
59878
59879 2007-03-27  Bruno Haible  <bruno@clisp.org>
59880
59881         Make vasnprintf multithread-safe.
59882         * lib/vasnprintf.c (decimal_point_char): New function.
59883         (VASNPRINTF): Use it.
59884         Suggested by Simon Josefsson.
59885
59886 2007-03-27  Eric Blake  <ebb9@byu.net>
59887
59888         Support sub-second birthtime on cygwin.
59889         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59890         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59891         (get_stat_birthtime): Also work with st_birthtim.
59892
59893 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59896         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59897         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59898         (get_stat_birthtime_ns): Simplify compile-time tests.
59899         (get_stat_birthtime): Change the API to look like
59900         get_stat_mtime etc., except return a negative tv_nsec on error.
59901         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59902         Don't check for "spare" fields.
59903         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59904         or for struct stat.st_birthtime, as these tests aren't used.
59905         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59906
59907 2007-03-27  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/stat-time.h: Include <sys/stat.h>.
59910
59911 2007-03-27  James Youngman  <jay@gnu.org>
59912
59913         * lib/stat-time.h (get_stat_birthtime): New function for
59914           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59915         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59916           and its variants.
59917         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59918         * modules/stat-time-test: New file.
59919         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59920
59921 2007-03-26  Bruno Haible  <bruno@clisp.org>
59922
59923         Better support of signalling NaNs.
59924         * lib/atanl.c: Include isnanl.h.
59925         (atanl): Perform test for NaN at the beginning of the function and
59926         through a call to isnanl.
59927         * lib/cosl.c: Include isnanl.h.
59928         (cosl): Perform test for NaN at the beginning of the function and
59929         through a call to isnanl.
59930         * lib/ldexpl.c: Include isnanl.h.
59931         (ldexpl): Perform test for NaN through a call to isnanl.
59932         * lib/logl.c: Include isnanl.h.
59933         (logl): Perform test for NaN at the beginning of the function and
59934         through a call to isnanl.
59935         * lib/sinl.c: Include isnanl.h.
59936         (sinl): Perform test for NaN at the beginning of the function and
59937         through a call to isnanl.
59938         * lib/sqrtl.c: Include isnanl.h.
59939         (sqrtl): Perform test for NaN at the beginning of the function and
59940         through a call to isnanl.
59941         * lib/tanl.c: Include isnanl.h.
59942         (tanl): Perform test for NaN at the beginning of the function and
59943         through a call to isnanl.
59944         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59945         * modules/mathl (Depends-on): Add isnanl.
59946
59947 2007-03-26  Eric Blake  <ebb9@byu.net>
59948
59949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59950         regression in logic sense of previous patch.
59951
59952 2007-03-26  Bruno Haible  <bruno@clisp.org>
59953
59954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59955         unportable shell command "if ! ...".
59956         Reported by Ralf Wildenhues.
59957
59958 2007-03-25  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59961         <sysexits.h> file, and only add EX_CONFIG.
59962         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59963         absolute file name and whether it is sufficient. Substitute also
59964         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59965         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59966         ABSOLUTE_SYSEXITS_H into sysexits.h.
59967
59968 2007-03-25  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59971         hints is NULL.
59972
59973 2007-03-25  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59976         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59977
59978 2007-03-25  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/vasnprintf.c: Include langinfo.h.
59981         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59982         multithread-safe.
59983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59984         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59992         Reported by Simon Josefsson.
59993
59994 2007-03-25  Bruno Haible  <bruno@clisp.org>
59995
59996         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59997         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59998         * modules/vasnprintf (Depends-on): Add stdint.
59999
60000 2007-03-25  Bruno Haible  <bruno@clisp.org>
60001
60002         * modules/fpieee: New file.
60003         * m4/fpieee.m4: New file.
60004         * modules/isnan-nolibm (Depends-on): Add fpieee.
60005         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60006         * modules/isnanl (Depends-on): Add fpieee.
60007
60008 2007-03-25  Bruno Haible  <bruno@clisp.org>
60009
60010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60011
60012 2007-03-25  Bruno Haible  <bruno@clisp.org>
60013
60014         Avoid test failures on IRIX 6.5.
60015         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60016         (main): Use it.
60017         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60018         macros.
60019         (main): Use them.
60020
60021 2007-03-25  Bruno Haible  <bruno@clisp.org>
60022
60023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60024         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60025         exists but doesn't work.
60026         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60027         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60029         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60030         math.h.
60031
60032 2007-03-25  Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60035         returns inf. Needed on IRIX 6.5.
60036
60037 2007-03-25  Bruno Haible  <bruno@clisp.org>
60038
60039         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60040         (main): Use isnanl instead of x != x idiom.
60041         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60042
60043         * tests/test-frexp.c: Include isnan.h.
60044         (main): Use isnan instead of x != x idiom.
60045         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60046
60047 2007-03-25  Bruno Haible  <bruno@clisp.org>
60048
60049         * tests/test-frexp.c (NaN): New function/macro.
60050         (main): Use it instead of 0.0 / 0.0.
60051         * tests/test-isnan.c (NaN): New function/macro.
60052         (main): Use it instead of 0.0 / 0.0.
60053         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60054         (test_function): Use it instead of 0.0 / 0.0.
60055         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60056         (test_function): Use it instead of 0.0 / 0.0.
60057         * tests/test-snprintf-posix.h (NaN): New function/macro.
60058         (test_function): Use it instead of 0.0 / 0.0.
60059         * tests/test-sprintf-posix.h (NaN): New function/macro.
60060         (test_function): Use it instead of 0.0 / 0.0.
60061         * tests/test-fprintf-posix.h (NaN): New function/macro.
60062         (test_function): Use it instead of 0.0 / 0.0.
60063         * tests/test-printf-posix.h (NaN): New function/macro.
60064         (test_function): Use it instead of 0.0 / 0.0.
60065
60066         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60067
60068 2007-03-25  Bruno Haible  <bruno@clisp.org>
60069
60070         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60071
60072 2007-03-25  Bruno Haible  <bruno@clisp.org>
60073
60074         * lib/regexec.c (merge_state_with_log): Make static.
60075
60076 2007-03-25  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/trigl.c (kernel_rem_pio2): Make static.
60079
60080 2007-03-25  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/sincosl.c (sincosl_table): Make static.
60083
60084 2007-03-25  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60087         if the compiler does not support C99.
60088
60089 2007-03-25  Bruno Haible  <bruno@clisp.org>
60090
60091         * modules/time (Makefile.am): Ensure all rule action lines start with a
60092         tab.
60093
60094 2007-03-24  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/tsearch-tests: New file.
60097         * tests/test-tsearch.sh: New file.
60098         * tests/test-tsearch.c: New file, mostly copied from glibc.
60099
60100         * modules/search-tests: New file.
60101         * tests/test-search.c: New file.
60102
60103         * modules/search: New file.
60104         * lib/search_.h: New file, incorporating lib/tsearch.h.
60105         * m4/search_h.m4: New file.
60106         * lib/tsearch.h: Remove file.
60107         * lib/tsearch.c: Include search.h instead of tsearch.h.
60108         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60109         HAVE_TSEARCH.
60110         * modules/tsearch (Files): Remove lib/tsearch.h.
60111         (Depends-on): Add search.
60112         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60113         (Include): Change tsearch.h into search.h.
60114
60115 2007-03-24  Bruno Haible  <bruno@clisp.org>
60116
60117         * modules/fpucw: New file.
60118         * lib/fpucw.h: New file.
60119         * lib/frexp.c: Include fpucw.h.
60120         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60121         (FUNC): Use them.
60122         * lib/printf-frexp.c: Include fpucw.h.
60123         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60124         (FUNC): Use them.
60125         * lib/vasnprintf.c: Include fpucw.h.
60126         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60127         'long double' calculations.
60128         * tests/test-frexpl.c: Include fpucw.h.
60129         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60130         * tests/test-printf-frexpl.c: Include fpucw.h.
60131         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60132         * modules/frexpl (Depends-on): Add fpucw.
60133         * modules/printf-frexpl (Depends-on): Likewise.
60134         * modules/fprintf-posix (Depends-on): Likewise.
60135         * modules/snprintf-posix (Depends-on): Likewise.
60136         * modules/sprintf-posix (Depends-on): Likewise.
60137         * modules/vasnprintf-posix (Depends-on): Likewise.
60138         * modules/vasprintf-posix (Depends-on): Likewise.
60139         * modules/vfprintf-posix (Depends-on): Likewise.
60140         * modules/vsnprintf-posix (Depends-on): Likewise.
60141         * modules/vsprintf-posix (Depends-on): Likewise.
60142         * modules/frexpl-tests (Depends-on): Likewise.
60143         * modules/printf-frexpl-tests (Depends-on): Likewise.
60144
60145 2007-03-24  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/float+.h: New file.
60148         * lib/isnan.c: Include float+.h.
60149         (SIZE): New macro.
60150         (FUNC): Compare only SIZE bytes of the value.
60151         * lib/vasnprintf.c: Include float+.h.
60152         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60153         SIZEOF_LDBL or SIZEOF_DBL bytes.
60154         * modules/isnan-nolibm (Files): Add lib/float+.h.
60155         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60156         * modules/isnanl (Files): Add lib/float+.h.
60157         * modules/vasnprintf (Files): Add lib/float+.h.
60158
60159 2007-03-24  Bruno Haible  <bruno@clisp.org>
60160
60161         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60162         include isnanl-nolibm.h.
60163
60164 2007-03-24  Bruno Haible  <bruno@clisp.org>
60165
60166         * tests/test-read-file.c (main): Don't produce spurious output for
60167         expected situations. Make the test fail if it encountered unexpected
60168         results.
60169
60170 2007-03-24  Bruno Haible  <bruno@clisp.org>
60171
60172         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60173         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60174
60175 2007-03-24  Bruno Haible  <bruno@clisp.org>
60176
60177         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60178
60179 2007-03-24  Bruno Haible  <bruno@clisp.org>
60180
60181         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60182         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60183
60184         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60185         * modules/utf8-ucs4: Turn into a symbolic link to module
60186         unistr/u8-mbtouc.
60187
60188         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60189         utf8-ucs4-unsafe.
60190         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60191         unistr/u8-mbtouc-unsafe.
60192
60193         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60194         * modules/utf16-ucs4: Turn into a symbolic link to module
60195         unistr/u16-mbtouc.
60196
60197         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60198         utf16-ucs4-unsafe.
60199         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60200         unistr/u16-mbtouc-unsafe.
60201
60202         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60203         * modules/ucs4-utf8: Turn into a symbolic link to module
60204         unistr/u8-ubtomb.
60205
60206         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60207         * modules/ucs4-utf16: Turn into a symbolic link to module
60208         unistr/u16-ubtomb.
60209
60210 2007-03-24  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60213         Enable the function only if HAVE_INLINE.
60214         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60215         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60216         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60217         Enable the function only if HAVE_INLINE.
60218         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60219         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60220         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60221         Enable the function only if HAVE_INLINE.
60222         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60223         Enable the function only if HAVE_INLINE.
60224         * modules/utf8-ucs4: Update.
60225         * modules/utf8-ucs4-unsafe: Update.
60226         * modules/utf16-ucs4: Update.
60227         * modules/utf16-ucs4-unsafe: Update.
60228         * modules/ucs4-utf8: Update.
60229         * modules/ucs4-utf16: Update.
60230
60231 2007-03-24  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/utf8-ucs4.h: Remove file.
60234         * lib/utf8-ucs4-unsafe.h: Remove file.
60235         * lib/utf16-ucs4.h: Remove file.
60236         * lib/utf16-ucs4-unsafe.h: Remove file.
60237         * lib/ucs4-utf8.h: Remove file.
60238         * lib/ucs4-utf16.h: Remove file.
60239         * lib/unistr.h: Include their previous contents.
60240         * m4/utf-ucs4.m4: Remove file.
60241         * m4/ucs4-utf.m4: Remove file.
60242         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60243         (Depends-on): Add unistr/base.
60244         (configure.ac): Remove gl_UTF_UCS4.
60245         (Makefile.am): Update.
60246         (Include): Change to unistr.h.
60247         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60248         (Depends-on): Add unistr/base.
60249         (configure.ac): Remove gl_UTF_UCS4.
60250         (Makefile.am): Update.
60251         (Include): Change to unistr.h.
60252         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60253         (Depends-on): Add unistr/base.
60254         (configure.ac): Remove gl_UTF_UCS4.
60255         (Makefile.am): Update.
60256         (Include): Change to unistr.h.
60257         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60258         (Depends-on): Add unistr/base.
60259         (configure.ac): Remove gl_UTF_UCS4.
60260         (Makefile.am): Update.
60261         (Include): Change to unistr.h.
60262         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60263         (Depends-on): Add unistr/base.
60264         (configure.ac): Remove gl_UCS4_UTF.
60265         (Makefile.am): Update.
60266         (Include): Change to unistr.h.
60267         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60268         (Depends-on): Add unistr/base.
60269         (configure.ac): Remove gl_UCS4_UTF.
60270         (Makefile.am): Update.
60271         (Include): Change to unistr.h.
60272         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60273         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60274         utf8-ucs4-unsafe.h.
60275         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60276         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60277         utf16-ucs4-unsafe.h.
60278         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60279         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60280         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60281         * lib/unistr/u8-strchr.c: Likewise.
60282         * lib/unistr/u8-strrchr.c: Likewise.
60283         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60284         * lib/unistr/u16-strchr.c: Likewise.
60285         * lib/unistr/u16-strrchr.c: Likewise.
60286         * lib/striconveh.c: Update.
60287         * lib/linebreak.c: Update.
60288
60289 2007-03-24  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60292         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60293
60294 2007-03-22  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60297
60298 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * MODULES.html.sh (File system functions): New module write-any-file.
60301         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60302         * m4/write-any-file.m4: New files.
60303
60304 2007-03-23  Eric Blake  <ebb9@byu.net>
60305
60306         * gnulib-tool: Rearrange space-tab sequences, since some editors
60307         like to eat them.
60308
60309 2007-03-23  Eric Blake  <ebb9@byu.net>
60310
60311         * lib/version-etc.c (version_etc_va): Update license wording to
60312         be more concise.  Recommended by Richard Stallman.
60313
60314 2007-03-22  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/poll.c (MSG_PEEK): New fallback definition.
60317
60318 2007-03-22  Bruno Haible  <bruno@clisp.org>
60319
60320         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60321         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60322         (main): Update.
60323         Fixes a compilation error on BeOS.
60324
60325 2007-03-22  Bruno Haible  <bruno@clisp.org>
60326
60327         * modules/frexpl-tests: New file.
60328         * tests/test-frexpl.c: New file.
60329
60330         * modules/frexpl: New file.
60331         * m4/frexpl.m4: New file.
60332         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60333         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60335         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60336         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60337         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60338
60339 2007-03-22  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/frexpl.c: Share code with lib/frexp.c.
60342         * modules/mathl (Files): Add lib/frexp.c.
60343         (Depends-on): Add isnanl-nolibm.
60344
60345 2007-03-22  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/printf-frexp (Files): Add m4/frexp.m4.
60348         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60349         only if the found frexp function actually works.
60350
60351 2007-03-22  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/frexp.c: Remove older implementation that uses divisions.
60354
60355 2007-03-21  Bruno Haible  <bruno@clisp.org>
60356
60357         * modules/frexp-tests: New file.
60358         * tests/test-frexp.c: New file.
60359
60360         * modules/frexp: New file.
60361         * lib/frexp.c: New file.
60362         * m4/frexp.m4: New file.
60363         * lib/math_.h (frexp): New declaration.
60364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60365         REPLACE_FREXP.
60366         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60367
60368 2007-03-21  Bruno Haible  <bruno@clisp.org>
60369
60370         * modules/isnanl-tests: New file.
60371         * tests/test-isnanl.c: New file.
60372
60373         * modules/isnanl: New file.
60374         * lib/isnanl.h: New file.
60375         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60376         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60377         gl_FUNC_ISNANL_WORKS.
60378         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60379         New macros.
60380
60381 2007-03-21  Bruno Haible  <bruno@clisp.org>
60382
60383         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60384         lib/isnanl.h.
60385         (Include): Update.
60386         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60387         * lib/vasnprintf.c: Update.
60388         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60389         tests/test-isnanl.h, remove tests/test-isnanl.c.
60390         (Makefile.am): Update.
60391         * tests/test-isnanl-nolibm.c: New file.
60392         * tests/test-isnanl.h: New file.
60393         * tests/test-isnanl.c: Remove file.
60394
60395 2007-03-21  Jim Meyering  <jim@meyering.net>
60396
60397         When trying to open ".", treat ESTALE like EACCES.
60398         * lib/savewd.c (savewd_save): Resort to forking not just upon
60399         failure with EACCES, but also when errno is ESTALE.
60400
60401 2007-03-20  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60404         Needed on AIX 5.1. Reported by Matthew Woehlke.
60405
60406 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         Suggestions by Bruno Haible:
60409         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60410         our own.
60411         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60412         * modules/acl (Depends-on): Add gettext.
60413
60414 2007-03-19  Bruno Haible  <bruno@clisp.org>
60415
60416         * modules/iconvme: Remove file.
60417         * lib/iconvme.h: Remove file.
60418         * lib/iconvme.c: Remove file.
60419         * m4/iconvme.m4: Remove file.
60420
60421 2007-03-19  Bruno Haible  <bruno@clisp.org>
60422
60423         * doc/relocatable-maint.texi: Break long shell script line.
60424         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60425
60426 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60429         handle file_has_acl.
60430         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60431         * lib/acl.c: Move header inclusions and related macro defns into
60432         lib/acl-internal.h.
60433         (S_ISLNK): Remove defn, since that's now done for us.
60434         (file_has_acl): Move to lib/file-has-acl.c.
60435         Call acl_trivial if available.  This is the crucial part of the fix.
60436         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60437         shared within the library.  Rewrite a bit, partly to make it compatible
60438         with the GNU coding style.
60439         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60440         Remove unnecessary double-quotes.
60441         Don't test for acl_to_text; the build will catch that.
60442         Replace acl_entries if it doesn't exist and it is needed.
60443         Check for -lsec and acl_trivial (as used on Solaris 10).
60444         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60445         lib/file-has-acl.c.
60446         (Depends-on): Add sys_stat, for S_ISLNK.
60447
60448 2007-03-19  Ben Pfaff  <blp@gnu.org>
60449
60450         * doc/gnulib.texi: Fix typos.
60451         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60452
60453 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60454
60455         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60456         If size is zero here, buf must be zero.
60457
60458 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60459
60460         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60461         <bruno@clisp.org>.
60462
60463 2007-03-18  Bruno Haible  <bruno@clisp.org>
60464
60465         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60466         Suggested by Eric Blake.
60467
60468 2007-03-18  Ben Pfaff  <blp@gnu.org>
60469
60470         * doc/relocatable.texi: Recommend using as prefix a directory
60471         that does not exist and will never be created.  Based on
60472         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60473         and others.
60474
60475 2007-03-17  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/fchownat.c: Include lchown.h.
60478
60479 2007-03-17  Bruno Haible  <bruno@clisp.org>
60480
60481         Fix endless loop when the given allocated size was > INT_MAX.
60482         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60483         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60484         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60485         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60486         * lib/sprintf.c (sprintf): Likewise.
60487
60488 2007-03-17  Bruno Haible  <bruno@clisp.org>
60489
60490         * tests/test-argp-2.sh (func_compare): Output a context diff.
60491
60492 2007-03-17  Bruno Haible  <bruno@clisp.org>
60493
60494         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60495         locale's decimal-point character.
60496
60497 2007-03-17  Bruno Haible  <bruno@clisp.org>
60498
60499         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60500         before comparing it. Needed because on some platforms (e.g. x86) a
60501         'long double' occupies less bytes than sizeof (long double).
60502
60503 2007-03-17  Bruno Haible  <bruno@clisp.org>
60504
60505         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60506         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60507         * tests/test-getaddrinfo.c (simple): Likewise.
60508         * tests/test-read-file.c (main): Likewise.
60509
60510 2007-03-17  Bruno Haible  <bruno@clisp.org>
60511
60512         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60513
60514 2007-03-17  Bruno Haible  <bruno@clisp.org>
60515
60516         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60517         unused variable.
60518
60519 2007-03-17  Bruno Haible  <bruno@clisp.org>
60520
60521         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60522         * tests/test-c-strncasecmp.c: Likewise.
60523
60524 2007-03-17  Bruno Haible  <bruno@clisp.org>
60525
60526         * modules/stdlib (Depends-on): Add unistd.
60527         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60528         Needed for MacOS X 10.3.
60529
60530 2007-03-17  Bruno Haible  <bruno@clisp.org>
60531
60532         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60533
60534 2007-03-17  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60537
60538 2007-03-17  Bruno Haible  <bruno@clisp.org>
60539
60540         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60541         to reflect files copied from gnulib (with or without modifications).
60542         Suggested by Jim Meyering.
60543
60544 2007-03-17  Eric Blake  <ebb9@byu.net>
60545
60546         * NEWS: Document stdlib change from 2007-02-18.
60547
60548 2007-03-17  Jim Meyering  <jim@meyering.net>
60549
60550         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60551         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60552         someone uses a name containing shell meta-characters.
60553         Reported by Alfred M. Szmidt.
60554
60555         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60556
60557 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60558
60559         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60560         and copy gettext configuration files only if configure.ac contains
60561         a use of AM_GNU_GETTEXT_VERSION.
60562
60563 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60564
60565         * build-aux/bootstrap (gnulib_name): New variable.
60566         (gnulib_tool_options): Use it.
60567
60568 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60569
60570         * tests/test-des.c: Use new namespace.
60571
60572 2007-03-15  Bruno Haible  <bruno@clisp.org>
60573
60574         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60575         Reported by James Youngman <jay@gnu.org>.
60576
60577 2007-03-15  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60580         declared prototype. Needed with cc on OSF/1 5.1.
60581
60582 2007-03-15  Bruno Haible  <bruno@clisp.org>
60583
60584         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60585         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60586         (struct gl_list_implementation): Add dispose_fn argument to the
60587         'create_empty', 'create' methods.
60588         (struct gl_list_impl_base): Add field 'dispose_fn'.
60589         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60590         argument.
60591         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60592         dispose_fn argument.
60593         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60594         dispose_fn on the dropped values.
60595         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60596         dispose_fn argument.
60597         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60598         dropped values.
60599         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60600         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60601         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60602         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60603         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60604         argument.
60605         (gl_tree_list_free): Call dispose_fn on the dropped values.
60606         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60607         the dropped values.
60608         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60609         Add dispose_fn argument.
60610         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60611         Call dispose_fn on the dropped values.
60612         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60613         Add dispose_fn argument.
60614         (gl_sublist_create): Initialize the 'dispose_fn' field.
60615         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60616         * tests/test-array_list.c (main): Update.
60617         * tests/test-carray_list.c (main): Update.
60618         * tests/test-avltree_list.c (main): Update.
60619         * tests/test-rbtree_list.c (main): Update.
60620         * tests/test-avltreehash_list.c (main): Update.
60621         * tests/test-rbtreehash_list.c (main): Update.
60622         * tests/test-linked_list.c (main): Update.
60623         * tests/test-linkedhash_list.c (main): Update.
60624         * tests/test-array_oset.c (main): Update.
60625
60626 2007-03-15  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60629         (gl_oset_create_empty): Add dispose_fn argument.
60630         (struct gl_oset_implementation): Add dispose_fn argument to
60631         'create_empty' method.
60632         (struct gl_oset_impl_base): Add dispose_fn field.
60633         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60634         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60635         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60636         values.
60637         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60638         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60639         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60640         dropped value.
60641         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60642         dropped value.
60643         * tests/test-array_oset.c (main): Update.
60644         * tests/test-avltree_oset.c (main): Update.
60645         * tests/test-rbtree_oset.c (main): Update.
60646         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60647
60648 2007-03-13  Bruno Haible  <bruno@clisp.org>
60649
60650         * tests/test-stdbool.c (i): Update after last patch.
60651
60652 2007-03-12  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60655         the iswprint macro. Needed on Solaris 2.5.1.
60656
60657 2007-03-12  Bruno Haible  <bruno@clisp.org>
60658
60659         * tests/test-printf-frexp.c (main): Declare x as volatile.
60660
60661 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60662
60663         * doc/gnulib.texi (Build robot for gnulib): New section.
60664
60665 2007-03-12  Jim Meyering  <jim@meyering.net>
60666
60667         * build-aux/bootstrap: New file.
60668         * build-aux/bootstrap.conf: New file, from coreutils.
60669
60670 2007-03-11  Bruno Haible  <bruno@clisp.org>
60671
60672         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60673
60674 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60675
60676         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60677         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60678         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60679
60680 2007-03-11  Bruno Haible  <bruno@clisp.org>
60681
60682         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60683         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60684
60685 2007-03-11  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60688         formula. Needed for SunPRO C 5.0.
60689
60690 2007-03-11  Bruno Haible  <bruno@clisp.org>
60691
60692         * modules/long-options (Depends-on): Add getopt.
60693
60694 2007-03-11  Bruno Haible  <bruno@clisp.org>
60695
60696         * modules/modechange (Depends-on): Add stdbool.
60697
60698 2007-03-11  Bruno Haible  <bruno@clisp.org>
60699
60700         * modules/i-ring (Depends-on): Add stdbool.
60701
60702 2007-03-11  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/gc-des (Depends-on): Add stdbool.
60705
60706 2007-03-11  Bruno Haible  <bruno@clisp.org>
60707
60708         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60709
60710 2007-03-11  Bruno Haible  <bruno@clisp.org>
60711
60712         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60713
60714 2007-03-11  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60717
60718 2007-03-11  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/vasnprintf.c (sprintf): Undefine.
60721
60722 2007-03-11  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60725         initializers in SunPRO C and Compaq C compilers.
60726
60727 2007-03-11  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60730         decrementing code ANSI C compliant.
60731
60732 2007-03-11  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60735         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60736
60737 2007-03-11  Bruno Haible  <bruno@clisp.org>
60738
60739         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60740         <stdbool.h> substitute doesn't pass.
60741
60742 2007-03-11  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60745
60746 2007-03-11  Bruno Haible  <bruno@clisp.org>
60747
60748         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60749         script, for submission to autobuild.josefsson.org.
60750
60751 2007-03-10  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/canonicalize-lgpl-tests: New file.
60754         * tests/test-canonicalize-lgpl.sh: New file.
60755         * tests/test-canonicalize-lgpl.c: New file.
60756
60757         * modules/c-strcase-tests: New file.
60758         * tests/test-c-strcase.sh: New file.
60759         * tests/test-c-strcasecmp.c: New file.
60760         * tests/test-c-strncasecmp.c: New file.
60761
60762         * modules/atexit-tests: New file.
60763         * tests/test-atexit.sh: New file.
60764         * tests/test-atexit.c: New file.
60765
60766 2007-03-10  Bruno Haible  <bruno@clisp.org>
60767
60768         * tests/test-binary-io.sh: Use temporary filenames that are not so
60769         likely to clash with those of other tests (in a parallel make).
60770         * tests/test-binary-io.c: Likewise.
60771
60772 2007-03-10  Bruno Haible  <bruno@clisp.org>
60773
60774         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60775         fallback; use #error instead.
60776         Suggested by Simon Josefsson.
60777
60778 2007-03-10  Bruno Haible  <bruno@clisp.org>
60779
60780         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60781         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60782         first and the last.
60783
60784 2007-03-10  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60787
60788 2007-03-10  Bruno Haible  <bruno@clisp.org>
60789
60790         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60791         "make distcheck".
60792         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60793         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60794         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60795
60796 2007-03-10  Bruno Haible  <bruno@clisp.org>
60797
60798         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60799         variable.
60800         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60801         variable.
60802
60803 2007-03-09  Eric Blake  <ebb9@byu.net>
60804         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60805
60806         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60807         types are not being provided by gnulib.
60808         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60809         types are supported.
60810
60811 2007-03-10  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/stdio_.h (__attribute__): New macro.
60814         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60815         vsprintf): Specify __attribute__ __format__ for GCC.
60816         Suggested by Eric Blake.
60817
60818 2007-03-09  Bruno Haible  <bruno@clisp.org>
60819
60820         * modules/printf-posix-tests: New file.
60821         * tests/test-printf-posix.sh: New file.
60822         * tests/test-printf-posix.c: New file.
60823
60824         * modules/printf-posix: New file.
60825         * lib/printf.c: New file.
60826         * m4/printf-posix-rpl.m4: New file.
60827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60828         REPLACE_PRINTF.
60829         * lib/stdio_.h (printf): New declaration.
60830         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60831         ____strfmon____): New macros.
60832         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60833         REPLACE_PRINTF.
60834
60835 2007-03-09  Bruno Haible  <bruno@clisp.org>
60836
60837         * tests/test-vasnprintf-posix2.sh: New file.
60838         * tests/test-vasnprintf-posix2.c: New file.
60839         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60840         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60841         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60842
60843         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60844         a locale dependent decimal point, rather than always '.'.
60845
60846 2007-03-09  Eric Blake  <ebb9@byu.net>
60847
60848         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60849         spite of platforms like Tandem/NSK that define it to -1.
60850
60851 2007-03-08  Bruno Haible  <bruno@clisp.org>
60852
60853         * modules/vprintf-posix-tests: New file.
60854         * tests/test-vprintf-posix.sh: New file.
60855         * tests/test-vprintf-posix.c: New file.
60856         * tests/test-printf-posix.h: New file.
60857
60858         * modules/vprintf-posix: New file.
60859         * lib/vprintf.c: New file.
60860         * m4/vprintf-posix.m4: New file.
60861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60862         REPLACE_VPRINTF.
60863         * lib/stdio_.h (vprintf): New declaration.
60864         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60865         REPLACE_VPRINTF.
60866
60867 2007-03-08  Bruno Haible  <bruno@clisp.org>
60868
60869         * modules/fprintf-posix-tests: New file.
60870         * tests/test-fprintf-posix.sh: New file.
60871         * tests/test-fprintf-posix.c: New file.
60872
60873         * modules/fprintf-posix: New file.
60874         * lib/fprintf.c: New file.
60875         * m4/fprintf-posix.m4: New file.
60876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60877         REPLACE_FPRINTF.
60878         * lib/stdio_.h (fprintf): New declaration.
60879         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60880         REPLACE_FPRINTF.
60881
60882 2007-03-08  Bruno Haible  <bruno@clisp.org>
60883
60884         * modules/vfprintf-posix-tests: New file.
60885         * tests/test-vfprintf-posix.sh: New file.
60886         * tests/test-vfprintf-posix.c: New file.
60887         * tests/test-fprintf-posix.h: New file.
60888         * tests/test-fprintf-posix.out: New file.
60889
60890         * modules/vfprintf-posix: New file.
60891         * lib/vfprintf.c: New file.
60892         * m4/vfprintf-posix.m4: New file.
60893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60894         REPLACE_VFPRINTF.
60895         * lib/stdio_.h (vfprintf): New declaration.
60896         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60897         REPLACE_VFPRINTF.
60898
60899 2007-03-08  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60902
60903 2007-03-08  Bruno Haible  <bruno@clisp.org>
60904
60905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60906         instead of 'expr' invocations.
60907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60912         Suggested by Paul Eggert.
60913
60914 2007-03-08  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/fseterr-tests: New file.
60917         * tests/test-fseterr.c: New file.
60918
60919         * modules/fseterr: New file.
60920         * lib/fseterr.h: New file.
60921         * lib/fseterr.c: New file.
60922
60923 2007-03-08  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60926         * lib/getopt_.h: Likewise.
60927         * lib/mbswidth.h: Likewise.
60928         * lib/setenv.h: Likewise.
60929         * lib/vasnprintf.h: Likewise.
60930         * lib/vasprintf.h: Likewise.
60931         * lib/verror.h: Likewise.
60932         * lib/xsetenv.h: Likewise.
60933         * lib/xvasprintf.h: Likewise.
60934
60935 2007-03-08  Jim Meyering  <jim@meyering.net>
60936
60937         * users.txt: Add parted.
60938
60939         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60940
60941 2007-03-07  Bruno Haible  <bruno@clisp.org>
60942
60943         * m4/printf.m4: Make the shell script snippets copy&pastable.
60944
60945 2007-03-02  Bruno Haible  <bruno@clisp.org>
60946
60947         * lib/netinet_in_.h: New file.
60948         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60949         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60950         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60951         (Depends-on): Add absolute-header.
60952         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60953         into netinet/in.h.
60954
60955 2007-03-03  Bruno Haible  <bruno@clisp.org>
60956
60957         * lib/sys_select_.h: New file.
60958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60959         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60960         * modules/sys_select (Files): Add lib/sys_select_.h.
60961         (Depends-on): Add absolute-header.
60962         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60963         into sys/select.h.
60964
60965 2007-03-02  Bruno Haible  <bruno@clisp.org>
60966
60967         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60968         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60969         values.
60970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60971         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60972         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60973         * modules/sys_socket (Depends-on): Add absolute-header.
60974         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60975         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60976         (Include): Remove requirement of inclusion of <sys/types.h>.
60977
60978 2007-03-02  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/byteswap_.h (bswap_32): Fix formula.
60981
60982 2007-03-06  Bruno Haible  <bruno@clisp.org>
60983
60984         * modules/sprintf-posix-tests: New file.
60985         * tests/test-sprintf-posix.c: New file.
60986
60987         * modules/sprintf-posix: New file.
60988         * lib/sprintf.c: New file.
60989         * m4/sprintf-posix.m4: New file.
60990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60991         REPLACE_SPRINTF.
60992         * lib/stdio_.h (sprintf): New declaration.
60993         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60994         REPLACE_SPRINTF.
60995
60996 2007-03-06  Bruno Haible  <bruno@clisp.org>
60997
60998         * modules/vsprintf-posix-tests: New file.
60999         * tests/test-vsprintf-posix.c: New file.
61000         * tests/test-sprintf-posix.h: New file.
61001
61002         * modules/vsprintf-posix: New file.
61003         * lib/vsprintf.c: New file.
61004         * m4/vsprintf-posix.m4: New file.
61005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61006         REPLACE_VSPRINTF.
61007         * lib/stdio_.h (vsprintf): New declaration.
61008         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61009         REPLACE_VSPRINTF.
61010
61011 2007-03-06  Bruno Haible  <bruno@clisp.org>
61012
61013         * modules/vsnprintf (Depend-on): Remove minmax.
61014
61015 2007-03-06  Bruno Haible  <bruno@clisp.org>
61016
61017         * modules/snprintf-posix-tests: New file.
61018         * tests/test-snprintf-posix.c: New file.
61019
61020         * modules/snprintf-posix: New file.
61021         * m4/snprintf-posix.m4: New file.
61022         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61023         gl_FUNC_SNPRINTF.
61024         (gl_FUNC_SNPRINTF): Invoke it.
61025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61026         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61027         is set.
61028         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61029
61030 2007-03-06  Bruno Haible  <bruno@clisp.org>
61031
61032         * modules/vsnprintf-posix-tests: New file.
61033         * tests/test-vsnprintf-posix.c: New file.
61034         * tests/test-snprintf-posix.h: New file.
61035
61036         * modules/vsnprintf-posix: New file.
61037         * m4/vsnprintf-posix.m4: New file.
61038         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61039         gl_FUNC_VSNPRINTF.
61040         (gl_FUNC_VSNPRINTF): Invoke it.
61041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61042         * lib/stdio_.h (vsnprintf): Define as a replacement if
61043         REPLACE_VSNPRINTF is set.
61044         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61045
61046 2007-03-06  Bruno Haible  <bruno@clisp.org>
61047
61048         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61050
61051 2007-03-06  Bruno Haible  <bruno@clisp.org>
61052
61053         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61054         (asinl): Declare also if HAVE_DECL_ASINL is set.
61055         (atanl): Declare also if HAVE_DECL_ATANL is set.
61056         (ceill): Declare also if HAVE_DECL_CEILL is set.
61057         (cosl): Declare also if HAVE_DECL_COSL is set.
61058         (expl): Declare also if HAVE_DECL_EXPL is set.
61059         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61060         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61061         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61062         (logl): Declare also if HAVE_DECL_LOGL is set.
61063         (sinl): Declare also if HAVE_DECL_SINL is set.
61064         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61065         (tanl): Declare also if HAVE_DECL_TANL is set.
61066         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61068         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61069         declaration of frexpl, ldexpl.
61070         * modules/printf-frexpl (Depends-on): Add math.
61071         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61072
61073 2007-03-05  Bruno Haible  <bruno@clisp.org>
61074
61075         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61076         frexpl and ldexpl are declared.
61077         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61078
61079 2007-03-05  Bruno Haible  <bruno@clisp.org>
61080
61081         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61082         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61083
61084 2007-03-05  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/stdio_.h: Include <stddef.h>.
61087
61088 2007-03-05  Bruno Haible  <bruno@clisp.org>
61089
61090         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61091
61092 2007-03-05  Bruno Haible  <bruno@clisp.org>
61093
61094         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61095         NetBSD 4, from Ralf Wildenhues.
61096
61097 2007-03-04  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/vasprintf.h: Update #if logic for the case when the functions
61100         exist but are overridden.
61101
61102 2007-03-04  Bruno Haible  <bruno@clisp.org>
61103
61104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61105         implementations: glibc-2.4 and MacOS X 10.3.
61106         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61107         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61108         * tests/test-vasprintf-posix.c (test_function): Likewise.
61109
61110 2007-03-04  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/vasprintf-posix-tests: New file.
61113         * tests/test-vasprintf-posix.c: New file.
61114
61115         * modules/vasprintf-posix: New file.
61116         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61117         defined.
61118         * m4/vasprintf-posix.m4: New file.
61119         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61120         gl_FUNC_VASPRINTF.
61121         (gl_FUNC_VASPRINTF): Invoke it.
61122         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61123         here.
61124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61125
61126 2007-03-04  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61129         REPLACE_GETTIMEOFDAY.
61130         * modules/sys_time (Makefile.am): Likewise.
61131         * m4/sys_time_h.m4: Likewise.
61132         * m4/gettimeofday.m4: Likewise.
61133
61134 2007-03-04  Bruno Haible  <bruno@clisp.org>
61135
61136         * modules/vasnprintf-posix-tests: New file.
61137         * tests/test-vasnprintf-posix.c: New file.
61138
61139         * modules/vasnprintf-posix: New file.
61140         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61141         printf-frexpl.h.
61142         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61143         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61144         REPLACE_VASNPRINTF is defined.
61145         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61146         gl_FUNC_VASNPRINTF.
61147         (gl_FUNC_VASNPRINTF): Invoke it.
61148         * m4/vasnprintf-posix.m4: New file.
61149         * m4/printf.m4: New file.
61150
61151 2007-03-04  Bruno Haible  <bruno@clisp.org>
61152
61153         Compile progreloc.c only if --enable-relocatable is specified.
61154         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61155         if --enable-relocatable was specified.
61156         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61157         lib_SOURCES.
61158
61159 2007-03-04  Jim Meyering  <jim@meyering.net>
61160
61161         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61162         Use it consistently, rather than enumerating errno constants.
61163
61164 2007-03-04  Bruno Haible  <bruno@clisp.org>
61165
61166         * modules/xvasprintf-tests: New file.
61167         * tests/test-xvasprintf.c: New file.
61168
61169         * modules/vasprintf-tests: New file.
61170         * tests/test-vasprintf.c: New file.
61171
61172         * modules/vasnprintf-tests: New file.
61173         * tests/test-vasnprintf.c: New file.
61174
61175         * modules/vsnprintf-tests: New file.
61176         * tests/test-vsnprintf.c: New file.
61177
61178         * modules/snprintf-tests: New file.
61179         * tests/test-snprintf.c: New file.
61180
61181 2007-03-04  Bruno Haible  <bruno@clisp.org>
61182
61183         Compile relocatable.c only if --enable-relocatable is specified.
61184         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61185         gl_RELOCATABLE_LIBRARY.
61186         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61187         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61188         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61189         gl_RELOCATABLE_LIBRARY.
61190         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61191         (Makefile.am): Remove lib_SOURCES.
61192         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61193         gl_RELOCATABLE_LIBRARY.
61194         (Makefile.am): Remove lib_SOURCES.
61195         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61196         always.
61197         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61198         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61199
61200 2007-03-04  Bruno Haible  <bruno@clisp.org>
61201
61202         * modules/argmatch-tests: New file.
61203         * tests/test-argmatch.c: New file.
61204
61205         * tests/test-allocsa.c (main): Halve the number of loop runs.
61206
61207         * modules/alloca-opt-tests: New file.
61208         * tests/test-alloca-opt.c: New file.
61209
61210 2007-03-04  Jim Meyering  <jim@meyering.net>
61211
61212         Work around difference between Linux ACLs and Solaris 10 ZFS.
61213         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61214         for EINVAL.
61215
61216 2007-03-03  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/relocatable-prog (Depends-on): Add back progreloc's
61219         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61220
61221 2007-03-03  Bruno Haible  <bruno@clisp.org>
61222
61223         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61224         * modules/relocatable-lib: New file.
61225
61226 2007-03-03  Bruno Haible  <bruno@clisp.org>
61227
61228         * modules/relocatable-prog: Renamed from modules/relocatable.
61229         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61230
61231 2007-03-03  Bruno Haible  <bruno@clisp.org>
61232
61233         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61234         m4/relocatable-lib.m4.
61235         (Depends-on): Remove 'relocatable'.
61236         (configure.ac): Add gl_RELOCATABLE_NOP.
61237
61238 2007-03-03  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/relocatable-prog-wrapper: New file.
61241         * modules/relocatable (Depends-on): Add it. Remove all other
61242         dependencies except progname.
61243         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61244
61245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61246         (gl_FUNC_STRERROR): Nop.
61247         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61248
61249         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61250         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61251
61252         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61253         (gl_FUNC_READLINK): Update.
61254
61255         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61256
61257 2007-03-03  Bruno Haible  <bruno@clisp.org>
61258
61259         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61260         * modules/xreadlink (Depends-on): Add unistd.
61261         * modules/xreadlink-with-size (Depends-on): Likewise.
61262
61263 2007-03-03  Bruno Haible  <bruno@clisp.org>
61264
61265         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61266         extracted from gt_FUNC_SETENV.
61267         (gt_FUNC_SETENV): Remove macro.
61268         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61269         remove gt_FUNC_SETENV.
61270
61271 2007-03-03  Bruno Haible  <bruno@clisp.org>
61272
61273         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61274         ENABLE_RELOCATABLE here.
61275         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61276
61277 2007-03-03  Bruno Haible  <bruno@clisp.org>
61278
61279         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61280         * tests/test-rbtreehash_list.c: Include progname.h.
61281         (main): Call set_program_name.
61282
61283         * modules/rbtree-oset-tests (Depends-on): Add progname.
61284         * tests/test-rbtree_oset.c: Include progname.h.
61285         (main): Call set_program_name.
61286
61287         * modules/rbtree-list-tests (Depends-on): Add progname.
61288         * tests/test-rbtree_list.c: Include progname.h.
61289         (main): Call set_program_name.
61290
61291         * modules/linked-list-tests (Depends-on): Add progname.
61292         * tests/test-linked_list.c: Include progname.h.
61293         (main): Call set_program_name.
61294
61295 2007-03-03  Bruno Haible  <bruno@clisp.org>
61296
61297         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61298         All uses of __restrict changed to _Restrict_.
61299         * lib/glob_.h (__restrict): Remove macro.
61300
61301 2007-03-02  Bruno Haible  <bruno@clisp.org>
61302
61303         * modules/gettext (configure.ac): Require gettext infrastructure
61304         from version 0.16.1.
61305
61306 2007-03-02  Bruno Haible  <bruno@clisp.org>
61307
61308         * modules/linkedhash-list-tests (Depends-on): Add progname.
61309         * tests/test-linkedhash_list.c: Include progname.h.
61310         (main): Call set_program_name.
61311
61312         * modules/carray-list-tests (Depends-on): Add progname.
61313         * tests/test-carray_list.c: Include progname.h.
61314         (main): Call set_program_name.
61315
61316         * modules/avltreehash-list-tests (Depends-on): Add progname.
61317         * tests/test-avltreehash_list.c: Include progname.h.
61318         (main): Call set_program_name.
61319
61320         * modules/avltree-oset-tests (Depends-on): Add progname.
61321         * tests/test-avltree_oset.c: Include progname.h.
61322         (main): Call set_program_name.
61323
61324         * modules/avltree-list-tests (Depends-on): Add progname.
61325         * tests/test-avltree_list.c: Include progname.h.
61326         (main): Call set_program_name.
61327
61328         * modules/array-oset-tests (Depends-on): Add progname.
61329         * tests/test-array_oset.c: Include progname.h.
61330         (main): Call set_program_name.
61331
61332         * modules/array-list-tests (Depends-on): Add progname.
61333         * tests/test-array_list.c: Include progname.h.
61334         (main): Call set_program_name.
61335
61336         * modules/argp-tests (Depends-on): Add progname.
61337         * tests/test-argp.c: Include argp.h first. Include progname.h.
61338         (main): Call set_program_name.
61339
61340 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * doc/gnulib-tool.texi (Initial import): Reword description of
61343         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61344         limited effect even if defined after the first system include.
61345
61346 2007-03-01  Bruno Haible  <bruno@clisp.org>
61347
61348         * build-aux/config.libpath: Update to libtool-1.5.22.
61349         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61350
61351 2007-03-01  Bruno Haible  <bruno@clisp.org>
61352
61353         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61354         foo_CFLAGS.
61355         Reported by Ralf Wildenhues.
61356
61357 2007-03-01  Bruno Haible  <bruno@clisp.org>
61358
61359         * build-aux/install-reloc: Remove object files left over by some
61360         compilers.
61361         Reported by Ralf Wildenhues.
61362
61363 2007-03-01  Bruno Haible  <bruno@clisp.org>
61364
61365         * build-aux/install-reloc: Break long lines.
61366
61367 2007-03-01  Bruno Haible  <bruno@clisp.org>
61368
61369         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61370         Reported by Ralf Wildenhues.
61371
61372 2007-03-01  Bruno Haible  <bruno@clisp.org>
61373
61374         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61375         include ordering constraints.
61376
61377 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61381         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61382         as another example.
61383         * lib/time_.h: Fix misspelling.
61384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61385         Require gl_HEADER_TIME_H_DEFAULTS.
61386         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61387         * m4/time_r.m4 (gl_TIME_R): Likewise.
61388         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61389
61390 2007-03-01  Bruno Haible  <bruno@clisp.org>
61391
61392         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61393         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61394
61395 2007-03-01  Jim Meyering  <jim@meyering.net>
61396
61397         * modules/xreadlink (Maintainer): Add my name.
61398         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61399
61400 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61401             Bruno Haible  <bruno@clisp.org>
61402
61403         * build-aux/install-reloc: Compile also c-ctype.c.
61404         * build-aux/relocatable.sh.in: New file.
61405         * doc/relocatable.texi: New file.
61406         * doc/relocatable-maint.texi: New file.
61407         * doc/gnulib.texi: Include relocatable-maint.texi.
61408         * lib/progreloc.c: Include unistd.h unconditionally.
61409         * lib/relocwrapper.c: Include unistd.h unconditionally.
61410         Include c-ctype.h.
61411         (add_dotbin): Use c_tolower.
61412         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61413         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61414         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61415         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61416         to m4/relocatable-lib.m4.
61417         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61418         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61419         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61420         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61421         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61422         * modules/relocatable: New file.
61423         * modules/relocatable-lib: New file.
61424         * modules/relocatable-script: New file.
61425
61426 2007-02-28  Bruno Haible  <bruno@clisp.org>
61427
61428         Import --enable-relocatable infrastructure.
61429         * build-aux/config.libpath: New file, from GNU gettext.
61430         * build-aux/install-reloc: New file, from GNU gettext.
61431         * build-aux/reloc-ldflags: New file, from GNU gettext.
61432         * lib/relocatable.h: New file, from GNU gettext.
61433         * lib/relocatable.c: New file, from GNU gettext.
61434         * lib/relocwrapper.c: New file, from GNU gettext.
61435         * m4/relocatable.m4: New file, from GNU gettext.
61436
61437 2007-02-28  Bruno Haible  <bruno@clisp.org>
61438
61439         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61440
61441         * modules/xreadlink: New file, from GNU gettext with modifications.
61442         * lib/xreadlink.c: New file, from GNU gettext.
61443         * lib/xreadlink.h: Add comments.
61444         (xreadlink): New declaration.
61445
61446         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61447         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61448         lib/xreadlink-with-size.c.
61449         (configure.ac): Remove gl_XREADLINK invocation.
61450         (Makefile.am): Augment lib_SOURCES.
61451         * m4/xreadlink.m4: Remove file.
61452         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61453         (xreadlink_with_size): Renamed from xreadink.
61454         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61455         * modules/canonicalize (Depends-on): Replace xreadlink with
61456         xreadlink-with-size.
61457         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61458
61459 2007-02-25  Jim Meyering  <jim@meyering.net>
61460
61461         * build-aux/announce-gen: When complaining about excess arguments,
61462         list them.
61463
61464 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * README: Document signed integer overflow situation more
61467         accurately.
61468
61469 2007-02-25  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61472         'a' or 'A' conversion.
61473
61474 2007-02-25  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/filename: Renamed from modules/pathname.
61477         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61478         lib/concatpath.c with lib/concat-filename.c.
61479         (Makefile.am): Update.
61480         (Include): Replace pathname.h with filename.h.
61481         * lib/filename.h: Renamed from lib/pathname.h.
61482         (concatenated_filename): Renamed from concatenated_pathname.
61483         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61484         (concatenated_filename): Renamed from concatenated_pathname.
61485         * lib/findprog.c: Include filename.h instead of pathname.h.
61486         (find_in_path): Update.
61487         * lib/javacomp.c: Include filename.h instead of pathname.h.
61488         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61489         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61490         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61491         is_oldgcj_14_13_usable, is_javac_usable): Update.
61492         * lib/javaexec.c: Include filename.h instead of pathname.h.
61493         (execute_java_class): Update.
61494         * modules/findprog: Update.
61495         * modules/javacomp: Update.
61496         * modules/javaexec: Update.
61497         * MODULES.html.sh (File system functions): Add 'filename', remove
61498         'pathname'.
61499
61500 2007-02-25  Bruno Haible  <bruno@clisp.org>
61501
61502         * modules/printf-frexpl-tests: New file.
61503         * tests/test-printf-frexpl.c: New file.
61504
61505         * modules/printf-frexpl: New file.
61506         * lib/printf-frexpl.h: New file.
61507         * lib/printf-frexpl.c: New file.
61508         * m4/printf-frexpl.m4: New file.
61509
61510 2007-02-25  Bruno Haible  <bruno@clisp.org>
61511
61512         * modules/printf-frexp-tests: New file.
61513         * tests/test-printf-frexp.c: New file.
61514
61515         * modules/printf-frexp: New file.
61516         * lib/printf-frexp.h: New file.
61517         * lib/printf-frexp.c: New file.
61518         * m4/printf-frexp.m4: New file.
61519
61520 2007-02-25  Bruno Haible  <bruno@clisp.org>
61521
61522         Assume automake >= 1.10 for the tests.
61523         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61524         * modules/arctwo-tests: Likewise.
61525         * modules/argp-tests: Likewise.
61526         * modules/avltree-list-tests: Likewise.
61527         * modules/avltree-oset-tests: Likewise.
61528         * modules/avltreehash-list-tests: Likewise.
61529         * modules/carray-list-tests: Likewise.
61530         * modules/crc-tests: Likewise.
61531         * modules/des-tests: Likewise.
61532         * modules/gc-arcfour-tests: Likewise.
61533         * modules/gc-arctwo-tests: Likewise.
61534         * modules/gc-des-tests: Likewise.
61535         * modules/gc-hmac-md5-tests: Likewise.
61536         * modules/gc-hmac-sha1-tests: Likewise.
61537         * modules/gc-md2-tests: Likewise.
61538         * modules/gc-md4-tests: Likewise.
61539         * modules/gc-md5-tests: Likewise.
61540         * modules/gc-pbkdf2-sha1-tests: Likewise.
61541         * modules/gc-rijndael-tests: Likewise.
61542         * modules/gc-sha1-tests: Likewise.
61543         * modules/gc-tests: Likewise.
61544         * modules/getaddrinfo-tests: Likewise.
61545         * modules/hmac-md5-tests: Likewise.
61546         * modules/hmac-sha1-tests: Likewise.
61547         * modules/linked-list-tests: Likewise.
61548         * modules/linkedhash-list-tests: Likewise.
61549         * modules/lock-tests: Likewise.
61550         * modules/md2-tests: Likewise.
61551         * modules/md4-tests: Likewise.
61552         * modules/md5-tests: Likewise.
61553         * modules/rbtree-list-tests: Likewise.
61554         * modules/rbtree-oset-tests: Likewise.
61555         * modules/rbtreehash-list-tests: Likewise.
61556         * modules/read-file-tests: Likewise.
61557         * modules/rijndael-tests: Likewise.
61558         * modules/stdint-tests: Likewise.
61559         * modules/tls-tests: Likewise.
61560
61561 2007-02-24  Bruno Haible  <bruno@clisp.org>
61562
61563         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61564         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61565         function; instead check whether isnan with a double argument links.
61566         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61567         function; instead check whether isnan with a 'long double' argument
61568         links.
61569         Reported by Eric Blake <ebb9@byu.net>.
61570
61571 2007-02-24  Bruno Haible  <bruno@clisp.org>
61572
61573         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61574         defined.
61575         * lib/isnanl.c: Remove all code. Just include isnan.c.
61576         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61577
61578 2007-02-25  Jim Meyering  <jim@meyering.net>
61579
61580         Avoid conflicting types for 'unsetenv' on FreeBSD.
61581         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61582         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61583         in stdlib.h.
61584
61585 2007-02-24  Bruno Haible  <bruno@clisp.org>
61586
61587         * modules/isnanl-nolibm-tests: New file.
61588         * tests/test-isnanl.c: New file.
61589
61590         * modules/isnanl-nolibm: New file.
61591         * lib/isnanl.h: New file.
61592         * lib/isnanl.c: New file.
61593         * m4/isnanl.m4: New file.
61594
61595 2007-02-24  Bruno Haible  <bruno@clisp.org>
61596
61597         * modules/isnan-nolibm-tests: New file.
61598         * tests/test-isnan.c: New file.
61599
61600         * modules/isnan-nolibm: New file.
61601         * lib/isnan.h: New file.
61602         * lib/isnan.c: New file.
61603         * m4/isnan.m4: New file.
61604
61605 2007-02-24  Bruno Haible  <bruno@clisp.org>
61606
61607         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61608         assume that an exponent fits in 20 bits.
61609
61610 2007-02-24  Jim Meyering  <jim@meyering.net>
61611
61612         * m4/regex.m4: Update the description of the configure-time option,
61613         --without-included-regex, to state accurately what the defaults are,
61614         and perhaps to give people an idea why using this option is risky.
61615
61616 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61617
61618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61619         loops on small arguments.  This attempts to avoid the problem
61620         Bruno Haible reported for AIX 4.3.2 in
61621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61622
61623 2007-02-23  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61626         Needed for help2man.
61627
61628 2007-02-23  Karl Berry  <karl@gnu.org>
61629
61630         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61631         exists, foo.h should be cvs-ignored, not committed.
61632
61633 2007-02-23  Eric Blake  <ebb9@byu.net>
61634
61635         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61636         * lib/stat-time.h (includes): Likewise.
61637         * lib/utimecmp.c (includes): Likewise.
61638         * lib/utimens.h (includes): Likewise.
61639         * lib/getdate.y (includes): Also include "timespec.h" for use
61640         internal to the module.
61641         * modules/utimens (Depends-on): Revert yesterday's patch.
61642         * modules/nanosleep (Depends-on): Add missing dependency.
61643
61644 2007-02-22  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/glob.c: Don't include getlogin_r.h.
61647
61648 2007-02-22  Jim Meyering  <jim@meyering.net>
61649
61650         * modules/utimens (Depends-on): Add timespec, required for
61651         utimens.h's inclusion of timespec.h.
61652
61653 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61656         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61657         Schwab in
61658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61659         I'll try to think of a better way to fix the Solaris problem.
61660
61661         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61662         like glibc; on Solaris 10, it fails with errno == EINVAL.
61663         POSIX says the behavior is unspecified if the first argument is NULL,
61664         so play it safe and never pass NULL to the system getcwd.
61665
61666 2007-02-21  Jim Meyering  <jim@meyering.net>
61667
61668         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61669         of gettimeofday.  It would conflict with the one now always
61670         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61671         an IRIX 6.5 build failure.
61672
61673 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         Minor fixups to port to Solaris 10 with Sun C 5.8.
61676         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61677         * modules/getcwd (Depends-on): Add dirfd.
61678         * lib/putenv.c (putenv): #undef it.
61679         (rpl_putenv): New decl.
61680         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61681
61682 2007-02-20  Bruno Haible  <bruno@clisp.org>
61683
61684         * modules/stdio-tests: New file.
61685         * tests/test-stdio.c: New file.
61686
61687         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61688         (Depends-on): Add stdio.
61689         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61690         (Include): Use <stdio.h> instead of vsnprintf.h.
61691         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61692         HAVE_DECL_VSNPRINTF.
61693         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61694
61695         * modules/snprintf (Files): Remove lib/snprintf.h.
61696         (Depends-on): Add stdio.
61697         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61698         (Include): Use <stdio.h> instead of snprintf.h.
61699         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61700         HAVE_DECL_SNPRINTF.
61701         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61702         * lib/getaddrinfo.c: Likewise.
61703
61704         * modules/stdio: New file.
61705         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61706         * lib/snprintf.h: Remove file.
61707         * lib/vsnprintf.h: Remove file.
61708         * lib/.cppi-disable: Remove snprintf.h.
61709         * m4/stdio_h.m4: New file.
61710         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61711
61712 2007-02-20  Jim Meyering  <jim@meyering.net>
61713
61714         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61715         used by e.g., mingw.  From Bruno Haible.
61716
61717 2007-02-19  Bruno Haible  <bruno@clisp.org>
61718
61719         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61720         warnings.
61721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61722
61723 2007-02-19  Bruno Haible  <bruno@clisp.org>
61724
61725         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61726         from mingw users.
61727
61728 2007-02-19  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61731         warnings.
61732         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61733
61734 2007-02-19  Jim Meyering  <jim@meyering.net>
61735
61736         Don't use FD after a successful "fdopendir (fd)".
61737         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61738         Reset it by calling dirfd on the just-obtained DIR*.
61739
61740         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61741         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61742
61743 2007-02-18  Bruno Haible  <bruno@clisp.org>
61744
61745         * lib/readlink.c: Include <unistd.h>.
61746         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61747         HAVE_READLINK.
61748         * modules/readlink (Depends-on): Add unistd.
61749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61750         (Include): Add <unistd.h>.
61751
61752         * lib/getlogin_r.h: Remove file.
61753         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61754         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61755         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61756         HAVE_DECL_GETLOGIN_R.
61757         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61759         (Include): Use <unistd.h> instead of getlogin_r.h.
61760
61761         * lib/getcwd.h: Remove file.
61762         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61763         * lib/xgetcwd.c: Likewise.
61764         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61765         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61766         * modules/getcwd (Files): Remove lib/getcwd.h.
61767         (Depends-on): Add unistd.
61768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61769         (Include): Use <unistd.h> instad of getcwd.h.
61770
61771         * lib/ftruncate.c: Include <unistd.h> first.
61772         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61773         Set HAVE_FTRUNCATE.
61774         * modules/ftruncate (Depends-on): Add unistd.
61775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61776
61777         * lib/fchdir.c: Include <unistd.h> first.
61778         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61780         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61781         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61782         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61783
61784         * lib/dup2.c: Include <unistd.h> first.
61785         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61786         HAVE_DUP2.
61787         * modules/dup2 (Depends-on): Add unistd.
61788         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61789
61790         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61791         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61792         REPLACE_CHOWN. Don't define chown as a macro here.
61793         * modules/chown (Depends-on): Add unistd.
61794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61795
61796         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61797         Add definition for GL_LINK_WARNING.
61798         (chown, dup2): New declarations.
61799         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61800         link warning.
61801         (ftruncate): New declaration.
61802         (getcwd): New declaration, taken from old getcwd.h.
61803         (getlogin_r): New declaration, taken from old getlogin_r.h.
61804         (readlink): New declaration.
61805         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61806         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61807         (gl_PREREQ_UNISTD): Remove macro.
61808         (gl_UNISTD_MODULE_INDICATOR): New macro.
61809         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61810         many new variables. Don't set UNISTD_H.
61811         * modules/unistd (Description): Change.
61812         (Depends-on): Add link-warning.
61813         (configure.ac): Update.
61814         (Makefile.am): Create unistd.h always. Substitute many new variables
61815         into it.
61816
61817 2007-02-18  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61820         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61821         HAVE_GETSUBOPT.
61822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61823         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61824         * lib/getsubopt.h: Remove file.
61825         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61826         (Depends-on): Add stdlib.
61827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61828         (Includes): Use <stdlib.h> instead of getsubopt.h.
61829         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61830         Set HAVE_GETSUBOPT.
61831         * lib/getsubopt.c: Don't include getsubopt.h.
61832
61833 2007-02-18  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/fchdir (Depends-on): Add dup2.
61836
61837 2007-02-18  Bruno Haible  <bruno@clisp.org>
61838
61839         * lib/stdlib_.h: Handle glibc's special invocation convention
61840         specially.
61841
61842 2007-02-18  Bruno Haible  <bruno@clisp.org>
61843
61844         * modules/stdlib-tests: New file.
61845         * tests/test-stdlib.c: New file.
61846
61847         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61848         (Depends-on): Add stdlib.
61849         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61850         (Includes): Use <stdlib.h> instead of mkstemp.h.
61851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61852         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61853         * lib/mkstemp.c: Don't include mkstemp.h.
61854         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61855         * lib/stdlib--.h: Don't include mkstemp.h.
61856
61857         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61858         (Depends-on): Add stdlib.
61859         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61860         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61861         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61862         HAVE_MKDTEMP.
61863         * lib/mkdtemp.c: Don't include mkdtemp.h.
61864         * lib/clean-temp.c: Don't include mkdtemp.h.
61865
61866         * modules/exit (Files): Remove lib/exit.h.
61867         (Depends-on): Add stdlib.
61868         (Makefile.am): Remove lib_SOURCES.
61869         (Include): Use <stdlib.h> instead of exit.h.
61870         * lib/argmatch.c: Don't include exit.h.
61871         * lib/execute.c: Likewise.
61872         * lib/pagealign_alloc.c: Likewise.
61873         * lib/pipe.c: Likewise.
61874         * lib/wait-process.c: Likewise.
61875         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61876         * lib/exitfail.c: Likewise.
61877         * lib/savewd.c: Likewise.
61878         * lib/xsetenv.c: Likewise.
61879
61880         * modules/stdlib: New file.
61881         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61882         and extra comments about mkstemp().
61883         * lib/exit.h: Remove file.
61884         * lib/mkdtemp.h: Remove file.
61885         * lib/mkstemp.h: Remove file.
61886         * m4/stdlib_h.m4: New file.
61887         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61888
61889 2007-02-18  Bruno Haible  <bruno@clisp.org>
61890
61891         * modules/math-tests: New file.
61892         * tests/test-math.c: New file.
61893
61894         * modules/math: New file.
61895         * modules/mathl (Files): Remove lib/mathl.h.
61896         (Depends-on): Add math.
61897         (Makefile.am): Don't mention mathl.h.
61898         (Include): Use <math.h> instead of mathl.h.
61899         * lib/math_.h: New file.
61900         * lib/mathl.h: Remove file.
61901         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61902         mathl.h.
61903         * lib/asinl.c: Likewise.
61904         * lib/atanl.c: Likewise.
61905         * lib/ceill.c: Likewise.
61906         * lib/cosl.c: Likewise.
61907         * lib/expl.c: Likewise.
61908         * lib/floorl.c: Likewise.
61909         * lib/frexpl.c: Likewise.
61910         * lib/ldexpl.c: Likewise.
61911         * lib/logl.c: Likewise.
61912         * lib/sincosl.c: Likewise.
61913         * lib/sinl.c: Likewise.
61914         * lib/sqrtl.c: Likewise.
61915         * lib/tanl.c: Likewise.
61916         * lib/trigl.c: Likewise.
61917         * m4/math_h.m4: New file.
61918         * MODULES.html.sh (Mathematics): Add math.
61919
61920 2007-02-17  Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/wctype-tests: New file.
61923         * tests/test-wctype.c: New file.
61924
61925         * modules/wchar-tests: New file.
61926         * tests/test-wchar.c: New file.
61927
61928         * modules/unistd-tests: New file.
61929         * tests/test-unistd.c: New file.
61930
61931         * modules/time-tests: New file.
61932         * tests/test-time.c: New file.
61933
61934         * modules/sysexits-tests: New file.
61935         * tests/test-sysexits.c: New file.
61936
61937         * modules/sys_time-tests: New file.
61938         * tests/test-sys_time.c: New file.
61939
61940         * modules/sys_stat-tests: New file.
61941         * tests/test-sys_stat.c: New file.
61942
61943         * modules/sys_socket-tests: New file.
61944         * tests/test-sys_socket.c: New file.
61945
61946         * modules/sys_select-tests: New file.
61947         * tests/test-sys_select.c: New file.
61948
61949         * modules/string-tests: New file.
61950         * tests/test-string.c: New file.
61951
61952         * modules/stdbool-tests: New file.
61953         * tests/test-stdbool.c: New file.
61954
61955         * modules/netinet_in-tests: New file.
61956         * tests/test-netinet_in.c: New file.
61957
61958         * modules/inttypes-tests: New file.
61959         * tests/test-inttypes.c: New file.
61960
61961         * modules/fcntl-tests: New file.
61962         * tests/test-fcntl.c: New file.
61963
61964         * modules/byteswap-tests: New file.
61965         * tests/test-byteswap.c: New file.
61966
61967         * modules/arpa_inet-tests: New file.
61968         * tests/test-arpa_inet.c: New file.
61969
61970 2007-02-17  Bruno Haible  <bruno@clisp.org>
61971
61972         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61973         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61974         if the corresponding module is not enabled. Emit link warnings if
61975         the function is used nevertheless.
61976         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61977         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61978         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61979         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61980         * modules/inttypes (Depends-on): Add link-warning.
61981         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61982         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61983         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61984         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61985         * modules/imaxdiv (configure.ac): Likewise.
61986         * modules/strtoimax (configure.ac): Likewise.
61987         * modules/strtoumax (configure.ac): Likewise.
61988
61989 2007-02-17  Bruno Haible  <bruno@clisp.org>
61990
61991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61992         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61993         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61994         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61995
61996 2007-02-17  Bruno Haible  <bruno@clisp.org>
61997
61998         * modules/link-warning: New file.
61999         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62000         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62001         * modules/string (Depends-on): Add link-warning.
62002         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62003         string.h.
62004         * MODULES.html.sh (Support for building libraries and executables): Add
62005         link-warning.
62006
62007 2007-02-17  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62010         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62011         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62012         long lines.
62013
62014 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62015             Bruno Haible  <bruno@clisp.org>
62016
62017         * modules/tmpfile: New file.
62018         * lib/tmpfile.c: New file.
62019         * m4/tmpfile.m4: New file.
62020         * MODULES.html.sh (func_all_modules): New section "Input/output".
62021
62022 2007-02-15  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62025         (supports_delete_on_close): New function.
62026         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62027
62028 2007-02-14  Bruno Haible  <bruno@clisp.org>
62029
62030         * modules/mbspcasecmp-tests: New file.
62031         * tests/test-mbspcasecmp.sh: New file.
62032         * tests/test-mbspcasecmp.c: New file.
62033
62034         New module mbspcasecmp.
62035         * modules/mbspcasecmp: New file.
62036         * lib/mbspcasecmp.c: New file.
62037         * lib/string_.h (strncasecmp): Change warning message.
62038         (mbspcasecmp): New declaration.
62039         * m4/mbspcasecmp.m4: New file.
62040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62041         GNULIB_MBSPCASECMP.
62042         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62043         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62044
62045 2007-02-14  Bruno Haible  <bruno@clisp.org>
62046
62047         * modules/mbsncasecmp-tests: New file.
62048         * tests/test-mbsncasecmp.sh: New file.
62049         * tests/test-mbsncasecmp.c: New file.
62050
62051         New module mbsncasecmp.
62052         * modules/mbsncasecmp: New file.
62053         * lib/mbsncasecmp.c: New file.
62054         * lib/string_.h (mbsncasecmp): New declaration.
62055         * m4/mbsncasecmp.m4: New file.
62056         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62057         GNULIB_MBSNCASECMP.
62058         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62059         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62060
62061 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62062
62063         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62064         Verify that it doesn't overlap with our flags.
62065         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62066         do not have the desired effect in multibyte locales; instead, use
62067         mbscasecmp.
62068         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62069         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62070         we don't require GNU fnmatch ourselves (if our users require it, they
62071         should do so explicitly).
62072
62073         Fix regex code so it doesn't rely on strcasecmp.
62074         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62075         Otherwise, include gnulib's langinfo.h.
62076         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62077         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62078         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62079         * modules/regex (FILES): Remove m4/codeset.m4.
62080         (Depends-on): Add localcharset.  Remove strcase.
62081
62082 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62083
62084         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62085         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62086
62087 2007-02-13  Bruno Haible  <bruno@clisp.org>
62088
62089         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62091
62092 2007-02-12  Bruno Haible  <bruno@clisp.org>
62093
62094         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62095         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62096         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62097         time warning rather than a link error.
62098
62099 2007-02-12  Bruno Haible  <bruno@clisp.org>
62100
62101         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62102         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62104
62105 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62106
62107         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62108         args, not 2.
62109
62110 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62111
62112         New module 'time', so that apps can include <time.h> as per
62113         POSIX and GNU instead of separate include files like time_r.h
62114         and timegm.h.  This implementation tries out a simpler approach
62115         for replacing decls in standard include files (as compared to
62116         the string module), somewhat as an experiment.
62117
62118         * config/srclist.txt: Comment out mktime.c for now.
62119         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62120         since it doesn't apply any more.  Use generic wording instead.
62121         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62122         'time'.
62123         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62124         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62125         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62126         Don't include <sys/types.h>; no longer needed since we assume C89.
62127         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62128         * lib/strftime.c: Likewise.
62129         * lib/time_r.c: Likewise.
62130         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62131         * lib/nanosleep.c: Include <time.h> first, to check interface.
62132         * lib/strptime.c: Likewise.
62133         * lib/time_r.c: Likewise.
62134         * lib/timegm.c: Likewise.
62135         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62136         needed.
62137         * lib/timegm.c: Don't include timegm.h; no longer needed.
62138         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62139         time.h now handles any problems in that area.
62140         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62141         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62142         that time.h defines struct timespec.
62143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62144         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62145         handles that.
62146         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62147         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62148         needed.  Set REPLACE_LOCALTIME.
62149         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62150         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62151         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62152         nanosleep; time_h.m4 now does that.  Don't require
62153         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62154         module handles this now.
62155         * modules/getdate (Depends-on): Remove timespec.  Add time.
62156         * modules/nanosleep (Depends-on): Likewise.
62157         * modules/stat-time (Depends-on): Likewise.
62158         * modules/nanosleep (Include): Include time.h, not timespec.h.
62159         * modules/strptime (Files): Remove lib/strptime.h.
62160         (Depends-on): Add extensions, time.
62161         (Include): Include time.h, not strptime.h.
62162         * modules/time_r (Files): Remove lib/time_r.h.
62163         (Depends-on): Add time.
62164         (Include): Include time.h, not time_r.h.
62165         * modules/timegm: Likewise.
62166         * modules/timespec (Description): Now does timespec-related decls
62167         of our own, instead of struct timespec itself.
62168         (Depends-on): Add time; remove extensions.
62169         (Maintainer): Add self.
62170         * modules/utimecmp (Depends-on): Add time; remove timespec.
62171         * modules/utimens (Depends-on): Likewise.
62172         * modules/xnanosleep (Depends-on): Likewise.
62173
62174 2007-02-11  Bruno Haible  <bruno@clisp.org>
62175
62176         * lib/c-strstr.c: Include allocsa.h.
62177         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62178         * lib/c-strcasestr.c: Include allocsa.h.
62179         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62180         * lib/strcasestr.c: Include allocsa.h.
62181         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62182         * lib/mbsstr.c: Include allocsa.h.
62183         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62184         allocsa/freesa instead of malloc/free.
62185         * lib/mbscasestr.c: Include allocsa.h.
62186         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62187         allocsa/freesa instead of malloc/free.
62188         * modules/c-strstr (Depends-on): Add allocsa.
62189         * modules/c-strcasestr (Depends-on): Likewise.
62190         * modules/strcasestr (Depends-on): Likewise.
62191         * modules/mbsstr (Depends-on): Likewise.
62192         * modules/mbscasestr (Depends-on): Likewise.
62193
62194 2007-02-11  Bruno Haible  <bruno@clisp.org>
62195
62196         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62197
62198         * modules/mbsspn-tests: New file.
62199         * tests/test-mbsspn.sh: New file.
62200         * tests/test-mbsspn.c: New file.
62201
62202 2007-02-11  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62205
62206         * modules/mbspbrk-tests: New file.
62207         * tests/test-mbspbrk.sh: New file.
62208         * tests/test-mbspbrk.c: New file.
62209
62210 2007-02-11  Bruno Haible  <bruno@clisp.org>
62211
62212         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62213         unneeded cast.
62214
62215         * modules/mbscspn-tests: New file.
62216         * tests/test-mbscspn.sh: New file.
62217         * tests/test-mbscspn.c: New file.
62218
62219 2007-02-11  Bruno Haible  <bruno@clisp.org>
62220
62221         * modules/mbscasecmp-tests: New file.
62222         * tests/test-mbscasecmp.sh: New file.
62223         * tests/test-mbscasecmp.c: New file.
62224
62225 2007-02-11  Bruno Haible  <bruno@clisp.org>
62226
62227         Ensure O(n) worst-case complexity of mbscasestr.
62228         * lib/mbscasestr.c: Include stdbool.h.
62229         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62230         functions.
62231         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62232         the bookkeeping indicates that it's worth it.
62233         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62234
62235         * modules/mbscasestr-tests: New file.
62236         * tests/test-mbscasestr1.c: New file.
62237         * tests/test-mbscasestr2.sh: New file.
62238         * tests/test-mbscasestr2.c: New file.
62239         * tests/test-mbscasestr3.sh: New file.
62240         * tests/test-mbscasestr3.c: New file.
62241         * tests/test-mbscasestr4.sh: New file.
62242         * tests/test-mbscasestr4.c: New file.
62243         * m4/locale-tr.m4: New file.
62244
62245 2007-02-11  Bruno Haible  <bruno@clisp.org>
62246
62247         Ensure O(n) worst-case complexity of mbsstr.
62248         * lib/mbsstr.c: Include stdbool.h.
62249         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62250         functions.
62251         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62252         bookkeeping indicates that it's worth it.
62253         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62254
62255         * modules/mbsstr-tests: New file.
62256         * tests/test-mbsstr1.c: New file.
62257         * tests/test-mbsstr2.sh: New file.
62258         * tests/test-mbsstr2.c: New file.
62259         * tests/test-mbsstr3.sh: New file.
62260         * tests/test-mbsstr3.c: New file.
62261         * m4/locale-fr.m4: New file.
62262
62263 2007-02-11  Bruno Haible  <bruno@clisp.org>
62264
62265         * lib/mbsrchr.c (mbsrchr): Fix bug.
62266
62267         * modules/mbsrchr-tests: New file.
62268         * tests/test-mbsrchr.sh: New file.
62269         * tests/test-mbsrchr.c: New file.
62270
62271 2007-02-11  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/mbschr.c (mbschr): Fix bug.
62274
62275         * modules/mbschr-tests: New file.
62276         * tests/test-mbschr.sh: New file.
62277         * tests/test-mbschr.c: New file.
62278         * m4/locale-zh.m4: New file.
62279
62280 2007-02-11  Bruno Haible  <bruno@clisp.org>
62281
62282         Support for copying multibyte string iterators.
62283         * lib/mbiter.h: Include <string.h>.
62284         (mbiter_multi_copy): New function.
62285         (mbi_copy): New macro.
62286         * lib/mbuiter.h: Include <string.h>.
62287         (mbuiter_multi_copy): New function.
62288         (mbui_copy): New macro.
62289
62290 2007-02-11  Bruno Haible  <bruno@clisp.org>
62291
62292         New module mbslen.
62293         * modules/mbslen: New file.
62294         * lib/mbslen.c: New file.
62295         * lib/string_.h (mbslen): New declaration.
62296         * m4/mbslen.m4: New file.
62297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62298         GNULIB_MBSLEN.
62299         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62300         * MODULES.html.sh (Internationalization functions): Add mbslen.
62301
62302 2007-02-11  Bruno Haible  <bruno@clisp.org>
62303
62304         Ensure O(n) worst-case complexity of strcasestr substitute.
62305         * lib/strcasestr.c: Include stdbool.h.
62306         (knuth_morris_pratt): New function.
62307         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62308         bookkeeping indicates that it's worth it.
62309         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62310
62311         * modules/strcasestr-tests: New file.
62312         * tests/test-strcasestr.c: New file.
62313
62314 2007-02-11  Bruno Haible  <bruno@clisp.org>
62315
62316         Ensure O(n) worst-case complexity of c_strcasestr.
62317         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62318         (knuth_morris_pratt): New function.
62319         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62320         the bookkeeping indicates that it's worth it.
62321         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62322
62323         * modules/c-strcasestr-tests: New file.
62324         * tests/test-c-strcasestr.c: New file.
62325
62326 2007-02-11  Bruno Haible  <bruno@clisp.org>
62327
62328         Ensure O(n) worst-case complexity of c_strstr.
62329         * lib/c-strstr.c: Include stdbool.h, string.h.
62330         (knuth_morris_pratt): New function.
62331         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62332         bookkeeping indicates that it's worth it.
62333         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62334
62335         * lib/c-strstr.c: Complete rewrite for maintainability.
62336
62337         * modules/c-strstr-tests: New file.
62338         * tests/test-c-strstr.c: New file.
62339
62340 2007-02-11  Bruno Haible  <bruno@clisp.org>
62341
62342         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62343         5.2.1 and earlier, whereby \055 was treated just like the range
62344         delimiter '-'.
62345         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62346
62347 2007-02-08  Bruno Haible  <bruno@clisp.org>
62348
62349         * modules/regex (Depends-on): Add stdbool.
62350         Reported by Dalibor Topic <robilad@kaffe.org>.
62351
62352 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62353
62354         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62355         Prefer returning from main to exiting from it.
62356         Remove unnecessary parens after sizeof.
62357
62358 2007-02-05  Bruno Haible  <bruno@clisp.org>
62359
62360         New module mbssep.
62361         * modules/mbssep: New file.
62362         * lib/mbssep.c: New file.
62363         * lib/string_.h (strsep): Add a conditional link warning.
62364         (mbssep): New declaration.
62365         * m4/mbssep.m4: New file.
62366         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62367         GNULIB_MBSSEP.
62368         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62369         * MODULES.html.sh (Internationalization functions): Add mbssep.
62370
62371 2007-02-05  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62374         Optimize search in case of 1 delimiter.
62375
62376 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62377
62378         * lib/acl.h: Include sys/types.h before sys/acl.h.
62379
62380 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62381
62382         Merge upstream fix for glibc bugzilla #3957:
62383
62384         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62385
62386         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62387         bit for RE_HAT_LISTS_NOT_NEWLINE.
62388         (build_charclass_op): Remove bogus comment.
62389
62390 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62391
62392         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62393
62394 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62397         * lib/memmem.c [!defined _LIBC]: Include config.h.
62398
62399 2007-02-04  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62402         warning message.
62403
62404 2007-02-04  Bruno Haible  <bruno@clisp.org>
62405
62406         New module mbstok_r.
62407         * modules/mbstok_r: New file.
62408         * lib/mbstok_r.c: New file.
62409         * lib/string_.h (strtok_r): Change argument names to match the
62410         comments. Add a conditional link warning.
62411         (mbstok_r): New declaration.
62412         * m4/mbstok_r.m4: New file.
62413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62414         GNULIB_MBSTOK_R.
62415         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62416         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62417
62418 2007-02-04  Bruno Haible  <bruno@clisp.org>
62419
62420         New module mbsspn.
62421         * modules/mbsspn: New file.
62422         * lib/mbsspn.c: New file.
62423         * lib/string_.h (strspn): Add a conditional link warning.
62424         (mbsspn): New declaration.
62425         * m4/mbsspn.m4: New file.
62426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62427         GNULIB_MBSSPN.
62428         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62429         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62430
62431 2007-02-04  Bruno Haible  <bruno@clisp.org>
62432
62433         New module mbspbrk.
62434         * modules/mbspbrk: New file.
62435         * lib/mbspbrk.c: New file.
62436         * lib/string_.h (strpbrk): Add a conditional link warning.
62437         (mbspbrk): New declaration.
62438         * m4/mbspbrk.m4: New file.
62439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62440         GNULIB_MBSPBRK.
62441         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62442         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62443
62444 2007-02-04  Bruno Haible  <bruno@clisp.org>
62445
62446         New module mbscspn.
62447         * modules/mbscspn: New file.
62448         * lib/mbscspn.c: New file.
62449         * lib/string_.h (strcspn): Add a conditional link warning.
62450         (mbscspn): New declaration.
62451         * m4/mbscspn.m4: New file.
62452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62453         GNULIB_MBSCSPN.
62454         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62455         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62456
62457 2007-02-04  Bruno Haible  <bruno@clisp.org>
62458
62459         New module mbscasestr, reduced goal of strcasestr.
62460         * modules/mbscasestr: New file.
62461         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62462         (mbscasestr): Renamed from strcasestr.
62463         * lib/strcasestr.c: Don't include mbuiter.h.
62464         (strcasestr): Remove support for multibyte locales.
62465         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62466         Change the conditional link warning.
62467         (mbscasestr): New declaration.
62468         * m4/mbscasestr.m4: New file.
62469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62470         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62471         REPLACE_STRCASESTR.
62472         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62474         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62475         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62476         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62477         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62478         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62479         (Depends-on): Remove mbuiter.
62480         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62481
62482 2007-02-04  Bruno Haible  <bruno@clisp.org>
62483
62484         Simplify handling of strncasecmp.
62485         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62486         the conditional link warning.
62487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62488         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62489         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62490         * modules/strcase (configure.ac): Don't invoke
62491         gl_STRING_MODULE_INDICATOR.
62492         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62493
62494 2007-02-04  Bruno Haible  <bruno@clisp.org>
62495
62496         New module mbscasecmp, reduced goal of strcasecmp.
62497         * modules/mbscasecmp: New file.
62498         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62499         (mbscasecmp): Renamed from strcasecmp.
62500         * lib/strcasecmp.c: Don't include mbuiter.h.
62501         (strcasecmp): Remove support for multibyte locales.
62502         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62503         Change the conditional link warning.
62504         (mbscasecmp): New declaration.
62505         * m4/mbscasecmp.m4: New file.
62506         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62507         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62508         REPLACE_STRCASECMP.
62509         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62511         GNULIB_MBSCASECMP.
62512         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62513         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62514         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62515         (Depends-on): Remove mbuiter.
62516         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62517
62518 2007-02-04  Bruno Haible  <bruno@clisp.org>
62519
62520         New module mbsstr. Remove module strstr.
62521         * modules/mbsstr: New file.
62522         * modules/strstr: Remove file.
62523         * lib/mbsstr.c: Renamed from lib/strstr.c.
62524         (mbsstr): Renamed from strstr.
62525         * lib/string_.h (strstr): Remove declaration. Change the conditional
62526         link warning.
62527         (mbsstr): New declaration.
62528         * m4/mbsstr.m4: New file.
62529         * m4/strstr.m4: Remove file.
62530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62531         REPLACE_STRSTR.
62532         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62533         Don't initialize GNULIB_STRSTR.
62534         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62535         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62536         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62537         (Support for systems lacking ANSI C 89): Remove strstr.
62538
62539 2007-02-04  Bruno Haible  <bruno@clisp.org>
62540
62541         New module mbsrchr.
62542         * modules/mbsrchr: New file.
62543         * lib/mbsrchr.c: New file.
62544         * lib/string_.h (strrchr): Add a conditional link warning.
62545         (mbsrchr): New declaration.
62546         * m4/mbsrchr.m4: New file.
62547         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62548         GNULIB_MBSRCHR.
62549         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62550         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62551
62552 2007-02-04  Bruno Haible  <bruno@clisp.org>
62553
62554         New module mbschr.
62555         * modules/mbschr: New file.
62556         * lib/mbschr.c: New file.
62557         * lib/string_.h (strchr): Add a conditional link warning.
62558         (mbschr): New declaration.
62559         * m4/mbschr.m4: New file.
62560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62561         GNULIB_MBSCHR.
62562         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62563         * MODULES.html.sh (Internationalization functions): Add mbschr.
62564
62565 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62568
62569         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62570
62571 2007-02-04  Bruno Haible  <bruno@clisp.org>
62572
62573         New module description section 'configure.ac-early'.
62574         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62575         (func_get_autoconf_early_snippet): New function.
62576         (func_import, func_create_testdir): Use it. Remove special cases for
62577         modules 'extensions' and 'lock'.
62578         * modules/extensions (configure.ac-early): Require
62579         gl_USE_SYSTEM_EXTENSIONS.
62580         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62581
62582 2007-02-04  Bruno Haible  <bruno@clisp.org>
62583
62584         Make use of gcj-4.3's -fsource and -ftarget option.
62585         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62586         and if so try the options -fsource and -ftarget.
62587         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62588         source_version, ftarget_option, target_version arguments.
62589         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62590         (is_envjavac_oldgcj_14_14_usable): Renamed from
62591         is_envjavac_gcj_14_14_usable.
62592         (is_envjavac_oldgcj_14_13_usable): Renamed from
62593         is_envjavac_gcj_14_13_usable.
62594         (is_gcj_present): Update.
62595         (is_gcj_43, is_gcj43_usable): New functions.
62596         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62597         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62598         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62599         try the options -fsource and -ftarget.
62600
62601 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62604         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62605         larger value.
62606
62607 2007-02-03  Jim Meyering  <jim@meyering.net>
62608
62609         Give tools a better chance to allocate space for very large buffers.
62610         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62611
62612         Make pwd and readlink work also when run with an unreadable parent dir
62613         on systems with openat support.
62614         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62615         provided getcwd function, even when we have openat support.
62616         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62617
62618 2007-02-02  Bruno Haible  <bruno@clisp.org>
62619
62620         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62621         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62622         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62623         portability problems if one of these functions is only used on specific
62624         platforms.
62625         Reported by Paul Eggert.
62626
62627 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62630         is causing more trouble than it's curing.
62631         * lib/regex_internal.h (__mempcpy): Remove.
62632         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62633         (and make the code a tad smaller to boot).
62634         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62635
62636 2007-02-02  Jim Meyering  <jim@meyering.net>
62637
62638         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62639         section, not in the Makefile.am: one.
62640
62641 2007-02-02  Eric Blake  <ebb9@byu.net>
62642
62643         * lib/strchrnul.c: Always include config.h first.
62644
62645         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62646         gnulib strstr is not necessary here.
62647
62648 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62649
62650         * m4/socklen.m4: Fix typo.
62651
62652 2007-02-02  Eric Blake  <ebb9@byu.net>
62653
62654         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62655         * modules/netinet_in (Makefile.am): Likewise.
62656
62657 2007-02-01  Bruno Haible  <bruno@clisp.org>
62658
62659         * lib/string_.h (GL_LINK_WARNING): New macro.
62660         (strcasecmp, strstr, strcasestr): If provided by the system,
62661         conditionally define as a macro that leads to a warning instead of to
62662         an error.
62663         (strncasecmp): Conditionally define as a macro that leads to a warning.
62664
62665 2007-02-01  Karl Berry  <karl@gnu.org>
62666
62667         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62668
62669 2007-02-01  Bruno Haible  <bruno@clisp.org>
62670
62671         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62672         renamings.
62673
62674 2007-02-01  Eric Blake  <ebb9@byu.net>
62675
62676         * modules/regex (Depends-on): Revert dependence on mempcpy.
62677         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62678         module's definition of mempcpy.
62679         Reported by Paul Eggert.
62680
62681 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62684         the symbol XYZ before redefining it.  This fixes a problem with
62685         programs that don't use XYZ, when compiled on systems that define
62686         XYZ to something else.
62687
62688 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62689
62690         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62691         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62692         writeable to group or other and (2) is intended to have a special
62693         mode bit that is set or cleared.  In such a case, the directory
62694         should be neither group- nor other-writeable until the special
62695         mode bits are right.
62696
62697 2007-01-31  Eric Blake  <ebb9@byu.net>
62698
62699         * modules/mountlist (Depends-on): Add strstr.
62700
62701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62702         bug.
62703         * modules/string (Makefile.am): Remove redundant replacement.
62704         * modules/regex (Depends-on): Add mempcpy.
62705
62706 2007-01-31  Bruno Haible  <bruno@clisp.org>
62707
62708         New module description field 'Link'.
62709         * gnulib-tool (func_usage): Document --extract-link-directive.
62710         (sed_extract_prog): Recognize 'Link' directive.
62711         (func_get_link_directive): New function.
62712         (func_import): Show summary of link directives.
62713         Handle --extract-link-directive option.
62714         * modules/acl (Link): New section.
62715         * modules/clock-time (Link): New section.
62716         * modules/euidaccess (Link): New section.
62717         * modules/gettext (Link): New section.
62718         * modules/iconv (Link): New section.
62719         * modules/lock (Link): New section.
62720         * modules/nanosleep (Link): New section.
62721         * modules/readline (Link): New section.
62722
62723 2007-01-27  Bruno Haible  <bruno@clisp.org>
62724
62725         Enforce the use of gnulib modules for unportable <string.h> functions.
62726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62727         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62728         (gl_HEADER_STRING_H_BODY): Require it.
62729         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62730         the symbol XYZ to one that gives a link error.
62731         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62732         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62733         * modules/mempcpy (configure.ac): Likewise.
62734         * modules/memrchr (configure.ac): Likewise.
62735         * modules/stpcpy (configure.ac): Likewise.
62736         * modules/stpncpy (configure.ac): Likewise.
62737         * modules/strcase (configure.ac): Likewise.
62738         * modules/strcasestr (configure.ac): Likewise.
62739         * modules/strchrnul (configure.ac): Likewise.
62740         * modules/strdup (configure.ac): Likewise.
62741         * modules/strndup (configure.ac): Likewise.
62742         * modules/strnlen (configure.ac): Likewise.
62743         * modules/strpbrk (configure.ac): Likewise.
62744         * modules/strsep (configure.ac): Likewise.
62745         * modules/strstr (configure.ac): Likewise.
62746         * modules/strtok_r (configure.ac): Likewise.
62747
62748 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62749
62750         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62751
62752 2007-01-30  Jim Meyering  <jim@meyering.net>
62753
62754         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62755
62756 2007-01-29  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62759         * lib/execute.c: Likewise.
62760         * lib/pipe.c: Likewise.
62761         * lib/printf-args.h: Likewise.
62762         * lib/printf-args.c: Likewise.
62763         * lib/printf-parse.c: Likewise.
62764         * lib/vasnprintf.c: Likewise.
62765
62766 2007-01-29  Eric Blake  <ebb9@byu.net>
62767
62768         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62769         declaration.
62770
62771 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62772
62773         * lib/strptime.h (strptime): Use 'restrict' for args where
62774         POSIX requires this.
62775         * lib/strptime.c (strptime): Likewise.
62776         Change license notice from LGPL to GPL, since gnulib-tool will
62777         change this as needed.
62778         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62779         defined.
62780         Include "strptime.h" first, to check interface.
62781         Do not #undef _LIBC and _NL_CURRENT.
62782         Do not include <stdlib.h>; no longer needed.
62783         Include "time_r.h" and declare ptime_locale_status
62784         only if _LIBC is not defined.
62785         (__P): Remove unused macro.
62786         (match_string): Bring back glibc version, but use it only if _LIBC
62787         is defined.
62788         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62789         Remove unnecessary assertion and abort() call.
62790         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62791         * m4/strptime.m4: Fix serial number comment.
62792         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62793         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62794         (Depends-on): Add time_r.
62795
62796 2007-01-29  Bruno Haible  <bruno@clisp.org>
62797
62798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62799         strptime.
62800         * modules/strptime (Depends-on): Add stdbool.
62801         * lib/strptime.h: Include <time.h> always. Add comments.
62802
62803 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62804
62805         * modules/strptime: New file.
62806         * lib/strptime.h: New file.
62807         * lib/strptime.c: New file.
62808         * m4/strptime.m4: New file.
62809
62810 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62811
62812         * MODULES.html.sh: New module mpsort.
62813         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62814
62815         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62816         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62818         All uses changed.
62819         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62820         All uses changed.
62821         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62822         to _Restrict_.
62823         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62824         the parameter matches the prototype.
62825
62826 2007-01-28  Jim Meyering  <jim@meyering.net>
62827
62828         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62829         sys/time.h here, reverting that part of the previous patch:
62830         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62831
62832 2007-01-28  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62835         value of $(SYS_TIME_H).
62836         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62837         remove it conditionally, too. [added by Jim Meyering]
62838         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62839         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62840         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62841         GETTIMEOFDAY_REPLACEMENT to 1.
62842
62843 2007-01-28  Bruno Haible  <bruno@clisp.org>
62844
62845         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62846         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62848         Set UNISTD_H instead of UNISTD_H2.
62849         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62850
62851 2007-01-28  Bruno Haible  <bruno@clisp.org>
62852
62853         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62854         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62855
62856 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62857
62858         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62859         (func_create_testdir): Ensure C locale for `grep' and `tr'
62860         character ranges.
62861         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62862         ACLOCAL_AMFLAGS parsing state machine.
62863
62864 2007-01-27  Bruno Haible  <bruno@clisp.org>
62865
62866         * modules/unistr/base: Update.
62867
62868 2007-01-27  Bruno Haible  <bruno@clisp.org>
62869
62870         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62871         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62872         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62873         modules/unistr/u32-mbtouc.
62874         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62875         * lib/unistr.h: Update.
62876         * lib/linebreak.c: Update.
62877         * modules/unistr/u32-mbtouc: Renamed from
62878         modules/unistr/u32-mbtouc-safe.
62879         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62880         * lib/unistr.h: Update.
62881         * lib/unistr/u32-to-u8.c: Update.
62882         * lib/unistr/u32-to-u16.c: Update.
62883
62884 2007-01-27  Bruno Haible  <bruno@clisp.org>
62885
62886         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62887         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62888         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62889         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62890         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62891         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62892         modules/unistr/u16-mbtouc.
62893         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62894         * lib/unistr.h: Update.
62895         * lib/linebreak.c: Update.
62896         * modules/linebreak: Update.
62897         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62898         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62899         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62900         * modules/unistr/u16-mbtouc: Renamed from
62901         modules/unistr/u16-mbtouc-safe.
62902         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62903         * lib/unistr.h: Update.
62904         * lib/unistr/u16-to-u8.c: Update.
62905         * modules/unistr/u16-to-u8: Update.
62906         * lib/unistr/u16-to-u32.c: Update.
62907         * modules/unistr/u16-to-u32: Update.
62908
62909 2007-01-27  Bruno Haible  <bruno@clisp.org>
62910
62911         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62912         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62913         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62914         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62915         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62916         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62917         modules/unistr/u8-mbtouc.
62918         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62919         * lib/unistr.h: Update.
62920         * lib/striconveh.c: Update.
62921         * modules/striconveh: Update.
62922         * lib/linebreak.c: Update.
62923         * modules/linebreak: Update.
62924         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62925         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62926         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62927         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62928         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62929         * lib/unistr.h: Update.
62930         * lib/striconveh.c: Update.
62931         * modules/striconveh: Update.
62932         * lib/unistr/u8-to-u16.c: Update.
62933         * modules/unistr/u8-to-u16: Update.
62934         * lib/unistr/u8-to-u32.c: Update.
62935         * modules/unistr/u8-to-u32: Update.
62936
62937 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62938
62939         Sync from Libtool.
62940         * lib/argz.c: Do not include strings.h nor memory.h, include
62941         string.h unconditionally.  Patch by Simon Josefsson.
62942
62943 2007-01-27  Bruno Haible  <bruno@clisp.org>
62944
62945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62946         from gl_HEADER_STRING_H_BODY.
62947         (gl_HEADER_STRING_H_BODY): Require it.
62948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62949         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62950         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62951         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62953         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62955         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62956         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62957         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62958         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62959         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62960         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62961         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62962         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62963
62964 2007-01-27  Bruno Haible  <bruno@clisp.org>
62965
62966         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62967         check_PROGRAMS into noinst_PROGRAMS.
62968         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62969         check_PROGRAMS in this case.
62970         (func_import): Set for_test to false.
62971         (func_create_testdir): Set for_test to true.
62972
62973 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62974             Bruno Haible  <bruno@clisp.org>
62975
62976         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62977         (Depends-on): Add string.
62978         (Includes): Use <string.h> instead of strcasestr.h.
62979         * modules/string (Makefile.am): Also substitute the value of
62980         REPLACE_STRCASESTR.
62981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62982         assume strcasestr is declared in <string.h> not <strings.h>. Also
62983         set REPLACE_STRCASESTR.
62984         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62985         REPLACE_STRCASESTR.
62986         * lib/strcasestr.h: Remove file.
62987         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62988         * lib/string_.h (strcasestr): New declaration.
62989
62990 2007-01-27  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/string_.h: Use 'extern'.
62993
62994 2007-01-27  Jim Meyering  <jim@meyering.net>
62995
62996         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62997         of set-but-not-used local, "q".
62998
62999         * lib/mempcpy.c: Include <config.h> before <string.h>.
63000         This fixes a compilation error on HP-UX, due to the system's
63001         "restrict"-using mempcpy prototype.
63002
63003 2007-01-26  Bruno Haible  <bruno@clisp.org>
63004
63005         Small optimization.
63006         * lib/javacomp.c: Include c-strstr.h.
63007          (is_envjavac_gcj): Use c_strstr instead of strstr.
63008         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63009
63010 2007-01-26  Bruno Haible  <bruno@clisp.org>
63011
63012         * MODULES.html.sh (Unicode string functions): Add the new modules.
63013
63014         * modules/uniconv/u32-strconv-to-locale: New file.
63015         * lib/uniconv/u32-strconv-to-locale.c: New file.
63016
63017         * modules/uniconv/u16-strconv-to-locale: New file.
63018         * lib/uniconv/u16-strconv-to-locale.c: New file.
63019
63020         * modules/uniconv/u8-strconv-to-locale: New file.
63021         * lib/uniconv/u8-strconv-to-locale.c: New file.
63022
63023         * modules/uniconv/u32-strconv-from-locale: New file.
63024         * lib/uniconv/u32-strconv-from-locale.c: New file.
63025
63026         * modules/uniconv/u16-strconv-from-locale: New file.
63027         * lib/uniconv/u16-strconv-from-locale.c: New file.
63028
63029         * modules/uniconv/u8-strconv-from-locale: New file.
63030         * lib/uniconv/u8-strconv-from-locale.c: New file.
63031
63032         * modules/uniconv/u32-strconv-to-enc: New file.
63033         * lib/uniconv/u32-strconv-to-enc.c: New file.
63034         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63035         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63036
63037         * modules/uniconv/u16-strconv-to-enc: New file.
63038         * lib/uniconv/u16-strconv-to-enc.c: New file.
63039         * lib/uniconv/u-strconv-to-enc.h: New file.
63040         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63041         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63042
63043         * modules/uniconv/u8-strconv-to-enc: New file.
63044         * lib/uniconv/u8-strconv-to-enc.c: New file.
63045         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63046         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63047
63048         * modules/uniconv/u32-strconv-from-enc: New file.
63049         * lib/uniconv/u32-strconv-from-enc.c: New file.
63050         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63051         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63052
63053         * modules/uniconv/u16-strconv-from-enc: New file.
63054         * lib/uniconv/u16-strconv-from-enc.c: New file.
63055         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63056         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63057
63058         * modules/uniconv/u8-strconv-from-enc: New file.
63059         * lib/uniconv/u8-strconv-from-enc.c: New file.
63060         * lib/uniconv/u-strconv-from-enc.h: New file.
63061         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63062         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63063
63064         * modules/uniconv/u32-conv-from-enc: New file.
63065         * lib/uniconv/u32-conv-from-enc.c: New file.
63066         * modules/uniconv/u32-conv-from-enc-tests: New file.
63067         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63068
63069         * modules/uniconv/u16-conv-from-enc: New file.
63070         * lib/uniconv/u16-conv-from-enc.c: New file.
63071         * lib/uniconv/u-conv-from-enc.h: New file.
63072         * modules/uniconv/u16-conv-from-enc-tests: New file.
63073         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63074
63075         * modules/uniconv/u8-conv-from-enc: New file.
63076         * lib/uniconv/u8-conv-from-enc.c: New file.
63077         * modules/uniconv/u8-conv-from-enc-tests: New file.
63078         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63079
63080         * modules/uniconv/base: New file.
63081         * lib/uniconv.h: New file.
63082
63083 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * doc/gnulib-tool.texi (Initial import): Update to match current
63086         behavior with strdup module.
63087         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63088         * lib/memmem.h: Remove; all uses removed.  This is now done
63089         by <string.h>.
63090         * lib/mempcpy.h: Likewise.
63091         * lib/memrchr.h: Likewise.
63092         * lib/stpcpy.h: Likewise.
63093         * lib/stpncpy.h: Likewise.
63094         * lib/strcase.h: Likewise.
63095         * lib/strchrnul.h: Likewise.
63096         * lib/strdup.h: Likewise.
63097         * lib/strndup.h: Likewise.
63098         * lib/strnlen.h: Likewise.
63099         * lib/strpbrk.h: Likewise.
63100         * lib/strsep.h: Likewise.
63101         * lib/strstr.h: Likewise.
63102         * lib/strtok_r.h: Likewise.
63103         * lib/string_.h: New file.
63104         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63105         Rely on <string.h> instead.
63106         * lib/canon-host.c: Likewise.
63107         * lib/chdir-long.c: Likewise.
63108         * lib/concatpath.c: Likewise.
63109         * lib/exclude.c: Likewise.
63110         * lib/fchdir.c: Likewise.
63111         * lib/getaddrinfo.c: Likewise.
63112         * lib/getcwd.c: Likewise.
63113         * lib/getsubopt.c: Likewise.
63114         * lib/glob.c: Likewise.
63115         * lib/hard-locale.c: Likewise.
63116         * lib/iconvme.c: Likewise.
63117         * lib/javacomp.c: Likewise.
63118         * lib/mempcpy.c: Likewise.
63119         * lib/memrchr.c: Likewise.
63120         * lib/regex_internal.h: Likewise.
63121         * lib/stpncpy.c: Likewise.
63122         * lib/strcasecmp.c: Likewise.
63123         * lib/strchrnul.c: Likewise.
63124         * lib/strdup.c: Likewise.
63125         * lib/striconv.c: Likewise.
63126         * lib/striconveh.c: Likewise.
63127         * lib/striconveha.c: Likewise.
63128         * lib/strncasecmp.c: Likewise.
63129         * lib/strndup.c: Likewise.
63130         * lib/strnlen.c: Likewise.
63131         * lib/strsep.c: Likewise.
63132         * lib/strstr.c: Likewise.
63133         * lib/strtok_r.c: Likewise.
63134         * lib/userspec.c: Likewise.
63135         * lib/w32spawn.h: Likewise.
63136         * lib/xstrndup.c: Likewise.
63137         * lib/mountlist.c (strstr): Remove decl.
63138         * m4/string_h.m4: New file.
63139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63140         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63141         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63142         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63143         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63144         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63145         Set REPLACE_STRCASECMP if necessary.
63146         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63147         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63148         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63149         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63150         HAVE_DECL_STRDUP if necessary.
63151         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63152         since gl_FUNC_STRNDUP does that now.
63153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63154         Check for decl here...
63155         (gl_PREREQ_STRNLEN): ... not here.
63156         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63157         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63158         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63159         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63160         necessary.
63161         * modules/string: New file.
63162         * modules/memmem (Files): Remove special-purpose include file.
63163         (Depends-on): Add string.
63164         (Include): Include <string.h>, not the removed file.
63165         * modules/mempcpy: Likewise.
63166         * modules/memrchr: Likewise.
63167         * modules/stpcpy: Likewise.
63168         * modules/stpncpy: Likewise.
63169         * modules/strcase: Likewise.
63170         * modules/strchrnul: Likewise.
63171         * modules/strdup: Likewise.
63172         * modules/strndup: Likewise.
63173         * modules/strnlen: Likewise.
63174         * modules/strpbrk: Likewise.
63175         * modules/strsep: Likewise.
63176         * modules/strstr: Likewise.
63177         * modules/strtok_r: Likewise.
63178         * tests/test-dirname.c: Don't include "strdup.h", since
63179         <string.h> now suffices.
63180         * tests/test-memmem.c: Don't include "memmem.h", since
63181         <string.h> now suffices.
63182
63183 2007-01-25  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63186         *resultp is 0.
63187
63188         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63189         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63190         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63191         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63192
63193         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63194         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63195         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63196         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63197         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63198         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63199
63200 2007-01-24  Bruno Haible  <bruno@clisp.org>
63201
63202         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63204         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63205         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63206         gl_FUNC_FTS_CORE.
63207         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63208         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63209         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63210         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63211         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63212         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63213         gl_FUNC_FCHOWNAT.
63214         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63215         gl_FUNC_STRFTIME.
63216         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63217         Reported by Ralf Wildenhues.
63218
63219 2007-01-24  Bruno Haible  <bruno@clisp.org>
63220
63221         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63222         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63223         gl_GETADDRINFO.
63224         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63225         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63226         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63227
63228 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63231         Don't use 'exit'; just return from 'main'.
63232         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63233
63234         * lib/fnmatch_.h: Readjust white space and comments to match
63235         glibc, to avoid spurious diffs.
63236
63237 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63238
63239         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63240         2004-12-01 change by Jakub Jelinek, since this code won't compile
63241         if !LIBC.  Problem reported by Bob Proulx.
63242
63243 2007-01-23  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/striconveh.c: Include c-strcaseeq.h.
63246         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63247         * modules/striconveh (Depends-on): Add c-strcaseeq.
63248
63249 2007-01-23  Bruno Haible  <bruno@clisp.org>
63250
63251         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63252
63253         * modules/c-strcaseeq: New file.
63254         * lib/c-strcaseeq.h: New file.
63255
63256         * modules/streq: New file.
63257         * lib/streq.h: New file.
63258
63259 2007-01-23  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/striconveha-tests: New file.
63262         * tests/test-striconveha.c: New file.
63263
63264         * lib/striconveha.h: Include <stdbool.h>.
63265         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63266         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63267         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63268         (mem_iconveha): New function.
63269         (str_iconveha_notranslit): Renamed from str_iconveha.
63270         (str_iconveha): New function.
63271         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63272         c-strcase.
63273
63274 2007-01-23  Bruno Haible  <bruno@clisp.org>
63275
63276         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63277         encodings without forgiving before trying any encoding with handler.
63278         (str_iconveha): Try all encodings without forgiving before trying any
63279         encoding with handler.
63280
63281 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63282
63283         Import the following changes from libc.
63284
63285         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63286
63287         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63288
63289         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63290
63291         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63292         normal_bracket label.
63293
63294         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63295
63296         [BZ #361]
63297         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63298         to normal_bracket after fetching the next character.
63299
63300 2007-01-22  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63303         argument.
63304         * lib/striconveh.c (iconv_carefully_1): New function.
63305         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63306         argument.
63307         (str_cd_iconveh): Update.
63308         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63309         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63310         * tests/test-striconveh.c (MAGIC): New macro.
63311         (new_offsets): New function.
63312         (main): Test call with and without offsets.
63313
63314 2007-01-22  Bruno Haible  <bruno@clisp.org>
63315
63316         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63317         * modules/sys_select (Makefile.am): Likewise.
63318         * modules/sys_socket (Makefile.am): Likewise.
63319         * modules/sys_time (Makefile.am): Likewise.
63320
63321 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * modules/gettimeofday (License): Change from GPL to LGPL, since
63324         gettimeofday is a library function.
63325
63326 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63327
63328         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63329
63330 2007-01-21  Bruno Haible  <bruno@clisp.org>
63331
63332         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63333
63334 2007-01-21  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/striconveha: New file.
63337         * lib/striconveha.h: New file.
63338         * lib/striconveha.c: New file.
63339         * MODULES.html.sh (Internationalization functions): Add striconveha.
63340         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63341         string.
63342         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63343
63344 2007-01-21  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63347         * lib/striconveh.c (str_iconveh): Likewise.
63348
63349 2007-01-21  Bruno Haible  <bruno@clisp.org>
63350
63351         * lib/striconveh.h (mem_iconveh): New declaration.
63352         * lib/striconveh.c (mem_iconveh): New function.
63353         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63354
63355 2007-01-21  Bruno Haible  <bruno@clisp.org>
63356
63357         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63358
63359         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63360         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63361         original result buffer.
63362         (str_cd_iconveh): Update.
63363         * tests/test-striconveh.c (main): Update.
63364
63365         * lib/striconv.h (mem_cd_iconv): Change specification.
63366         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63367         result buffer.
63368         (str_cd_iconv): Update.
63369         * tests/test-striconv.c (main): Update.
63370
63371 2007-01-21  Bruno Haible  <bruno@clisp.org>
63372
63373         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63374
63375 2007-01-20  Jim Meyering  <jim@meyering.net>
63376
63377         * lib/userspec.c (parse_with_separator): If a user or group string
63378         starts with "+", skip the corresponding name-to-ID look-up, since
63379         such a look-up must fail: user and group names may not include "+".
63380
63381 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63384         since we now assume the sys_time module.
63385         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63386         check for sys/time.h; no longer needed.
63387         * modules/poll (Depends-on): Depend on sys_time.
63388
63389 2007-01-18  Bruno Haible  <bruno@clisp.org>
63390
63391         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63392         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63393
63394         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63395         gettimeofday.
63396
63397         * tests/test-gettimeofday.c: Include <time.h>.
63398         (dummy): Remove variable.
63399
63400         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63401         gl_HEADER_SYS_TIME_H.
63402         (gl_HEADER_SYS_TIME_H): New macro.
63403
63404         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63405         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63406         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63407         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63408         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63409         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63410         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63411         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63412         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63413         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63414         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63415
63416         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63417         last change; it caused a compilation error when cross-compiling to
63418         Cygwin.
63419
63420 2007-01-18  Jim Meyering  <jim@meyering.net>
63421
63422         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63423         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63424         than the race-prone "test -d sys || mkdir sys".
63425         (configure.ac): Use AC_PROG_MKDIR_P.
63426         * modules/sys_select: Likewise.
63427         * modules/sys_socket: Likewise.
63428         * modules/sys_time: Likewise.
63429
63430 2007-01-18  Eric Blake  <ebb9@byu.net>
63431
63432         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63433         replace gettimeofday.
63434         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63435         name, to avoid infinite recursion.
63436
63437 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63438
63439         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63440         module sys_time.
63441         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63442         assume timespec.h defines struct timeval.
63443         * lib/settime.c: Likewise.
63444         * lib/utimens.c: Likewise.
63445         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63446         since we now assume the gettimeofday module.
63447         * lib/tempname.c (__gen_tempname): Likewise.
63448         * lib/gettimeofday.h: Remove.
63449         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63450         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63451         Include <time.h>, for 'time()'.
63452         (localtime_buffer_addr): Also use this workaround if
63453         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63454         to simplify the uses.  All uses changed.
63455         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63456         that #undef is inside {}, and 'const' follows type name consistently.
63457         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63458         (gettimeofday): Do not use the maximum possible value for
63459         tv->tv_usec, since that might break usages other than ls.c.
63460         Instead, we'll leave ls.c alone.  This undoes today's patch
63461         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63462         we've never observed the problem but might as well keep the
63463         canary.
63464         * lib/nanosleep.c: Include timespec.h first, for interface check.
63465         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63466         now assume the sys_time module.
63467         * lib/tempname.c: Likewise.
63468         * lib/timespec.h: Likewise.
63469         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63470         needed.
63471         * lib/strftime.c: Likewise.
63472         * lib/timespec.h: Likewise.
63473         * lib/posixtm.c: Include posixtm.h first, for interface check.
63474         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63475         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63476         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63477         * lib/sys_time_.h: New file.
63478         * lib/timespec.h (struct timespec): Use long int, not long.
63479         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63480         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63481         Remove obsolescent call to AC_HEADER_TIME.
63482         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63485         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63486         Likewise.
63487         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63488         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63490         into the sys_time module.  Check for gettimeofday just once.
63491         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63492         for gettimeofday signature to just check the signature.  Merely
63493         compile it, since linking doesn't test signature.  Improve test for
63494         whether gettimeofday.o is actually needed.
63495         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63496         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63497         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63498         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63499         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63500         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63501         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63502         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63503         than worrying about sys/time.h.
63504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63505         Don't bother worrying about TIME_WITH_SYS_TIME.
63506         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63507         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63508         * m4/sys_time_h.m4: New file.
63509         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63510         Don't include sys/time.h.  Return from main rather than exiting.
63511         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63512         all uses changed.
63513         * modules/gethrxtime (Depends-on): Add sys_time.
63514         * modules/gettime (Depends-on): Likewise.
63515         * modules/gettimeofday (Depends-on): Likewise.
63516         * modules/nanosleep (Depends-on): Likewise.
63517         * modules/settime (Depends-on): Likewise.
63518         * modules/tempname (Depends-on): Likewise.
63519         * modules/utimens (Depends-on): Likewise.
63520         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63521         (Include): Change back to <sys/time.h>.
63522         (Maintainer): Add self.
63523         * modules/sys_time: New file.
63524         * modules/tempname (Depends-on): Add gettimeofday.
63525         * tests/test-gettimeofday.c: Include <sys/time.h>
63526         rather than gettimeofday.h.
63527
63528 2007-01-17  Bruno Haible  <bruno@clisp.org>
63529
63530         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63531         the license default to GPL.
63532         (func_create_testdir): Don't complain if a module is LGPL and its
63533         tests module depends on GPLed modules.
63534
63535 2007-01-17  Bruno Haible  <bruno@clisp.org>
63536
63537         * lib/gettimeofday.c (gettimeofday): Add code for the case
63538         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63539         maximum possible value for tv->tv_usec, rather than the minimum one.
63540
63541 2005-10-08  Martin Lambers  <marlam@marlam.de>
63542 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63543 2007-01-16  Bruno Haible  <bruno@clisp.org>
63544
63545         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63546         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63547         gl_FUNC_GETTIMEOFDAY.
63548         (Include): Add gettimeofday.h.
63549         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63550         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63551         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63552         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63553         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63554         * lib/gettimeofday.h: New file.
63555         * lib/gettimeofday.c: Include <sys/timeb.h>.
63556         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63557         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63558         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63559         fall back on time().
63560
63561         * tests/test-gettimeofday.c: New file.
63562         * modules/gettimeofday-tests: New file.
63563
63564 2007-01-16  Eric Blake  <ebb9@byu.net>
63565
63566         * modules/fnmatch (Depends-on): Depend on wchar.
63567         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63568         * m4/fnmatch.m4: Likewise.
63569         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63570         * m4/mbchar.m4: Likewise.
63571         * modules/mbswidth (Depends-on): Depend on wchar.
63572         * lib/mbswidth.c: Assume <wchar.h>.
63573         * m4/mbswidth.m4: Likewise.
63574         * modules/quotearg (Depends-on): Depend on wchar.
63575         * lib/quotearg.c: Assume <wchar.h>.
63576         * m4/quotearg.m4: Likewise.
63577         * modules/regex (Depends-on): Depend on wchar.
63578         * lib/regex_internal.h: Assume <wchar.h>.
63579         * m4/regex.m4: Likewise.
63580         * modules/stdint (Depends-on): Depend on wchar.
63581         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63582         * m4/stdint.m4: Likewise.
63583         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63584         * modules/strftime (Depends-on): Depend on wchar.
63585         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63586         * modules/strtol (Depends-on): Depend on wchar.
63587         * lib/strtol.c: Assume <wchar.h>.
63588         * modules/wcwidth (Depends-on): Depend on wchar.
63589         * lib/wcwidth.h: Assume <wchar.h>.
63590         * m4/wcwidth.m4: Likewise.
63591
63592 2007-01-16  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/csharpexec-script: New, created from...
63595         * modules/csharpexec: ... this.
63596
63597 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63598
63599         * modules/javaexec-script: New, created from...
63600         * modules/javaexec: ... this.
63601
63602 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63603
63604         * modules/poll (Dependencies): Add sys_select.
63605
63606 2007-01-15  Jim Meyering  <jim@meyering.net>
63607
63608         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63609         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63610         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63611         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63612
63613 2007-01-15  Bruno Haible  <bruno@clisp.org>
63614
63615         * modules/striconveh: New file.
63616         * lib/striconveh.h: New file.
63617         * lib/striconveh.c: New file.
63618         * MODULES.html.sh (Internationalization functions): Add striconveh.
63619
63620         * modules/striconveh-tests: New file.
63621         * tests/test-striconveh.c: New file.
63622
63623 2007-01-15  Bruno Haible  <bruno@clisp.org>
63624
63625         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63626         not from GNU libiconv or GNU libc.
63627
63628 2007-01-15  Bruno Haible  <bruno@clisp.org>
63629
63630         * doc/gnulib-intro.texi (Copyright): Explain the different license
63631         terms for module descriptions, autoconf macros, tests, documentation.
63632
63633 2007-01-14  Bruno Haible  <bruno@clisp.org>
63634
63635         * modules/striconv-tests: New file.
63636         * tests/test-striconv.c: New file.
63637
63638 2007-01-14  Bruno Haible  <bruno@clisp.org>
63639
63640         * modules/iconv-tests: New file.
63641         * tests/test-iconv.c: New file.
63642
63643 2007-01-14  Bruno Haible  <bruno@clisp.org>
63644
63645         * gnulib-tool (func_get_license): For test modules, use the license of
63646         the main module.
63647
63648 2007-01-14  Bruno Haible  <bruno@clisp.org>
63649
63650         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63651         if iconv is found to exist.
63652
63653 2007-01-14  Bruno Haible  <bruno@clisp.org>
63654
63655         * modules/c-ctype-tests: New file.
63656         * tests/test-c-ctype.c: New file.
63657
63658 2007-01-14  Bruno Haible  <bruno@clisp.org>
63659
63660         * modules/binary-io-tests: New file.
63661         * tests/test-binary-io.sh: New file.
63662         * tests/test-binary-io.c: New file.
63663
63664 2007-01-14  Bruno Haible  <bruno@clisp.org>
63665
63666         * modules/array-oset-tests: New file.
63667         * tests/test-array_oset.c: New file.
63668
63669 2007-01-14  Bruno Haible  <bruno@clisp.org>
63670
63671         * modules/array-list-tests: New file.
63672         * tests/test-array_list.c: New file.
63673
63674 2007-01-14  Bruno Haible  <bruno@clisp.org>
63675
63676         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63677         and make.
63678         Reported by Simon Josefsson in
63679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63680
63681 2007-01-14  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/allocsa-tests: New file.
63684         * tests/test-allocsa.c: New file.
63685
63686 2007-01-14  Bruno Haible  <bruno@clisp.org>
63687
63688         * modules/fchdir (Depends-on): Add absolute-header.
63689         * modules/unistd (Depends-on): Likewise.
63690
63691 2006-12-30  Bruno Haible  <bruno@clisp.org>
63692
63693         * modules/fchdir: New file.
63694         * modules/unistd (Files): Add lib/unistd_.h.
63695         (Makefile.am): Generate unistd.h from unistd_.h.
63696         * lib/fchdir.c: New file.
63697         * lib/dirent_.h: New file.
63698         * lib/unistd_.h: New file.
63699         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63700         * m4/fchdir.m4: New file.
63701         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63702         (gl_HEADER_UNISTD): Invoke it.
63703         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63704         function.
63705         * lib/backupfile.c (opendir, closedir): Undefine.
63706         * lib/chown.c (open, close): Undefine.
63707         * lib/clean-temp.c (open, close): Undefine.
63708         * lib/copy-file.c (open, close): Undefine.
63709         * lib/execute.c (open, close): Undefine.
63710         * lib/fsusage.c (open, close): Undefine.
63711         * lib/gc-gnulib.c (open, close): Undefine.
63712         * lib/getcwd.c (opendir, closedir): Undefine.
63713         * lib/glob.c (opendir, closedir): Undefine.
63714         * lib/javacomp.c (open, close): Undefine.
63715         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63716         * lib/openat-proc.c (open, close): Undefine.
63717         * lib/pagealign_alloc.c (open, close): Undefine.
63718         * lib/pipe.c (open, close): Undefine.
63719         * lib/progreloc.c (open, close): Undefine.
63720         * lib/savedir.c (opendir, closedir): Undefine.
63721         * lib/utime.c (open, close): Undefine.
63722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63723
63724 2007-01-10  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63727
63728 2007-01-12  Eric Blake  <ebb9@byu.net>
63729
63730         Provide a robust <wchar.h>.  Further simplifications are now
63731         possible in other modules, but not included here.
63732         * modules/wchar: New module.
63733         * m4/wchar.m4: New file.
63734         * lib/wchar_.h: Likewise.
63735         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63736         of the new module.
63737         * MODULES.html.sh (Extended multibyte and wide character utilities):
63738         New section.
63739
63740 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63741
63742         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63743         to a reasonable default for memory allocation.
63744         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63745         file system that reports garbage st_size values for symlinks.
63746         Problem reported by Liyang Hu.
63747
63748 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63749
63750         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63751         Emacs .#* auto-save files).
63752
63753 2007-01-11  Bruno Haible  <bruno@clisp.org>
63754
63755         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63756         directory.
63757
63758 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63759
63760         Use @...@ consistently in lib/wctype_.h.
63761         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63762         on it being set to 1 or 0.
63763         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63764         go back to AC_SUBSTing it.
63765         * modules/wctype (Makefile.am): Undo previous change.
63766
63767 2007-01-10  Eric Blake  <ebb9@byu.net>
63768
63769         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63770         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63771         * modules/wctype (Makefile.am): Likewise.
63772         Reported by Chris McGuire.
63773
63774 2007-01-10  Jim Meyering  <jim@meyering.net>
63775
63776         fts.c: a small readability/maintainability improvement
63777         * lib/fts.c (fts_read): Make this code slightly more readable and
63778         maintainable by hoisting the "sp->fts_cur = p" assignments to
63779         immediately follow the statements that set P.  Derived from
63780         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63781
63782 2007-01-10  Eric Blake  <ebb9@byu.net>
63783
63784         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63785         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63787         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63788         Reported by Chris McGuire.
63789
63790 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63791
63792         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63793         in sed script.
63794
63795 2007-01-09  Bruno Haible  <bruno@clisp.org>
63796
63797         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63798         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63799         variables.
63800         (func_module): Use them.
63801
63802 2007-01-09  Bruno Haible  <bruno@clisp.org>
63803
63804         * modules/unistr/base: New file.
63805         * lib/unistr.h: New file.
63806
63807         * modules/unistr/u8-to-u16: New file.
63808         * lib/unistr/u8-to-u16.c: New file.
63809
63810         * modules/unistr/u8-to-u32: New file.
63811         * lib/unistr/u8-to-u32.c: New file.
63812
63813         * modules/unistr/u16-to-u8: New file.
63814         * lib/unistr/u16-to-u8.c: New file.
63815
63816         * modules/unistr/u16-to-u32: New file.
63817         * lib/unistr/u16-to-u32.c: New file.
63818
63819         * modules/unistr/u32-to-u8: New file.
63820         * lib/unistr/u32-to-u8.c: New file.
63821
63822         * modules/unistr/u32-to-u16: New file.
63823         * lib/unistr/u32-to-u16.c: New file.
63824
63825         * modules/unistr/u8-check: New file.
63826         * modules/unistr/u16-check: New file.
63827         * modules/unistr/u32-check: New file.
63828         * lib/unistr/u8-check.c: New file.
63829         * lib/unistr/u16-check.c: New file.
63830         * lib/unistr/u32-check.c: New file.
63831
63832         * modules/unistr/u8-chr: New file.
63833         * modules/unistr/u16-chr: New file.
63834         * modules/unistr/u32-chr: New file.
63835         * lib/unistr/u8-chr.c: New file.
63836         * lib/unistr/u16-chr.c: New file.
63837         * lib/unistr/u32-chr.c: New file.
63838
63839         * modules/unistr/u8-cmp: New file.
63840         * modules/unistr/u16-cmp: New file.
63841         * modules/unistr/u32-cmp: New file.
63842         * lib/unistr/u8-cmp.c: New file.
63843         * lib/unistr/u16-cmp.c: New file.
63844         * lib/unistr/u32-cmp.c: New file.
63845
63846         * modules/unistr/u8-cpy: New file.
63847         * modules/unistr/u16-cpy: New file.
63848         * modules/unistr/u32-cpy: New file.
63849         * lib/unistr/u8-cpy.c: New file.
63850         * lib/unistr/u16-cpy.c: New file.
63851         * lib/unistr/u32-cpy.c: New file.
63852         * lib/unistr/u-cpy.h: New file.
63853
63854         * modules/unistr/u8-cpy-alloc: New file.
63855         * modules/unistr/u16-cpy-alloc: New file.
63856         * modules/unistr/u32-cpy-alloc: New file.
63857         * lib/unistr/u8-cpy-alloc.c: New file.
63858         * lib/unistr/u16-cpy-alloc.c: New file.
63859         * lib/unistr/u32-cpy-alloc.c: New file.
63860         * lib/unistr/u-cpy-alloc.h: New file.
63861
63862         * modules/unistr/u8-endswith: New file.
63863         * modules/unistr/u16-endswith: New file.
63864         * modules/unistr/u32-endswith: New file.
63865         * lib/unistr/u8-endswith.c: New file.
63866         * lib/unistr/u16-endswith.c: New file.
63867         * lib/unistr/u32-endswith.c: New file.
63868         * lib/unistr/u-endswith.h: New file.
63869
63870         * modules/unistr/u8-mblen: New file.
63871         * modules/unistr/u16-mblen: New file.
63872         * modules/unistr/u32-mblen: New file.
63873         * lib/unistr/u8-mblen.c: New file.
63874         * lib/unistr/u16-mblen.c: New file.
63875         * lib/unistr/u32-mblen.c: New file.
63876
63877         * modules/unistr/u8-mbtouc: New file.
63878         * modules/unistr/u16-mbtouc: New file.
63879         * modules/unistr/u32-mbtouc: New file.
63880         * lib/unistr/u8-mbtouc.c: New file.
63881         * lib/unistr/u16-mbtouc.c: New file.
63882         * lib/unistr/u32-mbtouc.c: New file.
63883
63884         * modules/unistr/u8-mbtouc-safe: New file.
63885         * modules/unistr/u16-mbtouc-safe: New file.
63886         * modules/unistr/u32-mbtouc-safe: New file.
63887         * lib/unistr/u8-mbtouc-safe.c: New file.
63888         * lib/unistr/u16-mbtouc-safe.c: New file.
63889         * lib/unistr/u32-mbtouc-safe.c: New file.
63890
63891         * modules/unistr/u8-move: New file.
63892         * modules/unistr/u16-move: New file.
63893         * modules/unistr/u32-move: New file.
63894         * lib/unistr/u8-move.c: New file.
63895         * lib/unistr/u16-move.c: New file.
63896         * lib/unistr/u32-move.c: New file.
63897         * lib/unistr/u-move.h: New file.
63898
63899         * modules/unistr/u8-next: New file.
63900         * modules/unistr/u16-next: New file.
63901         * modules/unistr/u32-next: New file.
63902         * lib/unistr/u8-next.c: New file.
63903         * lib/unistr/u16-next.c: New file.
63904         * lib/unistr/u32-next.c: New file.
63905
63906         * modules/unistr/u8-prev: New file.
63907         * modules/unistr/u16-prev: New file.
63908         * modules/unistr/u32-prev: New file.
63909         * lib/unistr/u8-prev.c: New file.
63910         * lib/unistr/u16-prev.c: New file.
63911         * lib/unistr/u32-prev.c: New file.
63912
63913         * modules/unistr/u8-set: New file.
63914         * modules/unistr/u16-set: New file.
63915         * modules/unistr/u32-set: New file.
63916         * lib/unistr/u8-set.c: New file.
63917         * lib/unistr/u16-set.c: New file.
63918         * lib/unistr/u32-set.c: New file.
63919         * lib/unistr/u-set.h: New file.
63920
63921         * modules/unistr/u8-startswith: New file.
63922         * modules/unistr/u16-startswith: New file.
63923         * modules/unistr/u32-startswith: New file.
63924         * lib/unistr/u8-startswith.c: New file.
63925         * lib/unistr/u16-startswith.c: New file.
63926         * lib/unistr/u32-startswith.c: New file.
63927         * lib/unistr/u-startswith.h: New file.
63928
63929         * modules/unistr/u8-stpcpy: New file.
63930         * modules/unistr/u16-stpcpy: New file.
63931         * modules/unistr/u32-stpcpy: New file.
63932         * lib/unistr/u8-stpcpy.c: New file.
63933         * lib/unistr/u16-stpcpy.c: New file.
63934         * lib/unistr/u32-stpcpy.c: New file.
63935         * lib/unistr/u-stpcpy.h: New file.
63936
63937         * modules/unistr/u8-stpncpy: New file.
63938         * modules/unistr/u16-stpncpy: New file.
63939         * modules/unistr/u32-stpncpy: New file.
63940         * lib/unistr/u8-stpncpy.c: New file.
63941         * lib/unistr/u16-stpncpy.c: New file.
63942         * lib/unistr/u32-stpncpy.c: New file.
63943         * lib/unistr/u-stpncpy.h: New file.
63944
63945         * modules/unistr/u8-strcat: New file.
63946         * modules/unistr/u16-strcat: New file.
63947         * modules/unistr/u32-strcat: New file.
63948         * lib/unistr/u8-strcat.c: New file.
63949         * lib/unistr/u16-strcat.c: New file.
63950         * lib/unistr/u32-strcat.c: New file.
63951         * lib/unistr/u-strcat.h: New file.
63952
63953         * modules/unistr/u8-strchr: New file.
63954         * modules/unistr/u16-strchr: New file.
63955         * modules/unistr/u32-strchr: New file.
63956         * lib/unistr/u8-strchr.c: New file.
63957         * lib/unistr/u16-strchr.c: New file.
63958         * lib/unistr/u32-strchr.c: New file.
63959
63960         * modules/unistr/u8-strcmp: New file.
63961         * modules/unistr/u16-strcmp: New file.
63962         * modules/unistr/u32-strcmp: New file.
63963         * lib/unistr/u8-strcmp.c: New file.
63964         * lib/unistr/u16-strcmp.c: New file.
63965         * lib/unistr/u32-strcmp.c: New file.
63966
63967         * modules/unistr/u8-strcpy: New file.
63968         * modules/unistr/u16-strcpy: New file.
63969         * modules/unistr/u32-strcpy: New file.
63970         * lib/unistr/u8-strcpy.c: New file.
63971         * lib/unistr/u16-strcpy.c: New file.
63972         * lib/unistr/u32-strcpy.c: New file.
63973         * lib/unistr/u-strcpy.h: New file.
63974
63975         * modules/unistr/u8-strcspn: New file.
63976         * modules/unistr/u16-strcspn: New file.
63977         * modules/unistr/u32-strcspn: New file.
63978         * lib/unistr/u8-strcspn.c: New file.
63979         * lib/unistr/u16-strcspn.c: New file.
63980         * lib/unistr/u32-strcspn.c: New file.
63981         * lib/unistr/u-strcspn.h: New file.
63982
63983         * modules/unistr/u8-strdup: New file.
63984         * modules/unistr/u16-strdup: New file.
63985         * modules/unistr/u32-strdup: New file.
63986         * lib/unistr/u8-strdup.c: New file.
63987         * lib/unistr/u16-strdup.c: New file.
63988         * lib/unistr/u32-strdup.c: New file.
63989         * lib/unistr/u-strdup.h: New file.
63990
63991         * modules/unistr/u8-strlen: New file.
63992         * modules/unistr/u16-strlen: New file.
63993         * modules/unistr/u32-strlen: New file.
63994         * lib/unistr/u8-strlen.c: New file.
63995         * lib/unistr/u16-strlen.c: New file.
63996         * lib/unistr/u32-strlen.c: New file.
63997         * lib/unistr/u-strlen.h: New file.
63998
63999         * modules/unistr/u8-strmblen: New file.
64000         * modules/unistr/u16-strmblen: New file.
64001         * modules/unistr/u32-strmblen: New file.
64002         * lib/unistr/u8-strmblen.c: New file.
64003         * lib/unistr/u16-strmblen.c: New file.
64004         * lib/unistr/u32-strmblen.c: New file.
64005
64006         * modules/unistr/u8-strmbtouc: New file.
64007         * modules/unistr/u16-strmbtouc: New file.
64008         * modules/unistr/u32-strmbtouc: New file.
64009         * lib/unistr/u8-strmbtouc.c: New file.
64010         * lib/unistr/u16-strmbtouc.c: New file.
64011         * lib/unistr/u32-strmbtouc.c: New file.
64012
64013         * modules/unistr/u8-strncat: New file.
64014         * modules/unistr/u16-strncat: New file.
64015         * modules/unistr/u32-strncat: New file.
64016         * lib/unistr/u8-strncat.c: New file.
64017         * lib/unistr/u16-strncat.c: New file.
64018         * lib/unistr/u32-strncat.c: New file.
64019         * lib/unistr/u-strncat.h: New file.
64020
64021         * modules/unistr/u8-strncmp: New file.
64022         * modules/unistr/u16-strncmp: New file.
64023         * modules/unistr/u32-strncmp: New file.
64024         * lib/unistr/u8-strncmp.c: New file.
64025         * lib/unistr/u16-strncmp.c: New file.
64026         * lib/unistr/u32-strncmp.c: New file.
64027
64028         * modules/unistr/u8-strncpy: New file.
64029         * modules/unistr/u16-strncpy: New file.
64030         * modules/unistr/u32-strncpy: New file.
64031         * lib/unistr/u8-strncpy.c: New file.
64032         * lib/unistr/u16-strncpy.c: New file.
64033         * lib/unistr/u32-strncpy.c: New file.
64034         * lib/unistr/u-strncpy.h: New file.
64035
64036         * modules/unistr/u8-strnlen: New file.
64037         * modules/unistr/u16-strnlen: New file.
64038         * modules/unistr/u32-strnlen: New file.
64039         * lib/unistr/u8-strnlen.c: New file.
64040         * lib/unistr/u16-strnlen.c: New file.
64041         * lib/unistr/u32-strnlen.c: New file.
64042         * lib/unistr/u-strnlen.h: New file.
64043
64044         * modules/unistr/u8-strpbrk: New file.
64045         * modules/unistr/u16-strpbrk: New file.
64046         * modules/unistr/u32-strpbrk: New file.
64047         * lib/unistr/u8-strpbrk.c: New file.
64048         * lib/unistr/u16-strpbrk.c: New file.
64049         * lib/unistr/u32-strpbrk.c: New file.
64050         * lib/unistr/u-strpbrk.h: New file.
64051
64052         * modules/unistr/u8-strrchr: New file.
64053         * modules/unistr/u16-strrchr: New file.
64054         * modules/unistr/u32-strrchr: New file.
64055         * lib/unistr/u8-strrchr.c: New file.
64056         * lib/unistr/u16-strrchr.c: New file.
64057         * lib/unistr/u32-strrchr.c: New file.
64058
64059         * modules/unistr/u8-strspn: New file.
64060         * modules/unistr/u16-strspn: New file.
64061         * modules/unistr/u32-strspn: New file.
64062         * lib/unistr/u8-strspn.c: New file.
64063         * lib/unistr/u16-strspn.c: New file.
64064         * lib/unistr/u32-strspn.c: New file.
64065         * lib/unistr/u-strspn.h: New file.
64066
64067         * modules/unistr/u8-strstr: New file.
64068         * modules/unistr/u16-strstr: New file.
64069         * modules/unistr/u32-strstr: New file.
64070         * lib/unistr/u8-strstr.c: New file.
64071         * lib/unistr/u16-strstr.c: New file.
64072         * lib/unistr/u32-strstr.c: New file.
64073         * lib/unistr/u-strstr.h: New file.
64074
64075         * modules/unistr/u8-strtok: New file.
64076         * modules/unistr/u16-strtok: New file.
64077         * modules/unistr/u32-strtok: New file.
64078         * lib/unistr/u8-strtok.c: New file.
64079         * lib/unistr/u16-strtok.c: New file.
64080         * lib/unistr/u32-strtok.c: New file.
64081         * lib/unistr/u-strtok.h: New file.
64082
64083         * modules/unistr/u8-uctomb: New file.
64084         * modules/unistr/u16-uctomb: New file.
64085         * modules/unistr/u32-uctomb: New file.
64086         * lib/unistr/u8-uctomb.c: New file.
64087         * lib/unistr/u16-uctomb.c: New file.
64088         * lib/unistr/u32-uctomb.c: New file.
64089
64090         * MODULES.html.sh (Unicode string functions): Add the new modules.
64091
64092 2007-01-08  Bruno Haible  <bruno@clisp.org>
64093
64094         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64095         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64096         subdirectories.
64097
64098 2007-01-08  Karl Berry  <karl@gnu.org>
64099
64100         * doc/error.texi: mention that main() fns must set program_name
64101         when progname is used.
64102
64103 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64106         WCTYPE_H is empty, for the benefit of builds from non-distclean
64107         directories.  Problem reported by Eric Blake in
64108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64109
64110 2007-01-08  Bruno Haible  <bruno@clisp.org>
64111
64112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64113         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64114         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64115         PROVIDE_CANONICALIZE_FILENAME_MODE.
64116         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64117
64118 2007-01-08  Bruno Haible  <bruno@clisp.org>
64119
64120         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64121         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64122         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64123         * lib/fts.c: Likewise.
64124         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64125
64126 2006-12-25  Bruno Haible  <bruno@clisp.org>
64127
64128         * modules/utf8-ucs4-safe: New file.
64129         * lib/utf8-ucs4-safe.h: New file.
64130         * lib/unistr/utf8-ucs4-safe.c: New file.
64131
64132         * modules/utf16-ucs4-safe: New file.
64133         * lib/utf16-ucs4-safe.h: New file.
64134         * lib/unistr/utf16-ucs4-safe.c: New file.
64135
64136         * MODULES.html.sh (Unicode string functions): Add the new modules.
64137
64138 2007-01-08  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64141         (Depends-on): Add unitypes.
64142         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64143         (u8_mbtouc_aux): Move out to separate file.
64144         (u8_mbtouc): Use ucs4_t, uint8_t types.
64145         * lib/unistr/utf8-ucs4.c: New file.
64146
64147         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64148         (Depends-on): Add unitypes.
64149         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64150         (u16_mbtouc_aux): Move out to separate file.
64151         (u16_mbtouc): Use ucs4_t, uint16_t types.
64152         * lib/unistr/utf16-ucs4.c: New file.
64153
64154         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64155         (Depends-on): Add unitypes.
64156         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64157         (u8_uctomb_aux): Move out to separate file.
64158         (u8_uctomb): Use ucs4_t, uint8_t types.
64159         * lib/unistr/ucs4-utf8.c: New file.
64160
64161         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64162         (Depends-on): Add unitypes.
64163         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64164         (u16_uctomb_aux): Move out to separate file.
64165         (u16_uctomb): Use ucs4_t, uint16_t types.
64166         * lib/unistr/ucs4-utf16.c: New file.
64167
64168 2006-12-25  Bruno Haible  <bruno@clisp.org>
64169
64170         * modules/unitypes: New file.
64171         * lib/unitypes.h: New file.
64172         * MODULES.html.sh (func_all_modules): New section "Unicode string
64173         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64174         this section. Add unitypes.
64175
64176 2007-01-08  Bruno Haible  <bruno@clisp.org>
64177
64178         Avoid variable names that conflict with those from libtool.
64179         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64180         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64181         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64182         library_names_spec to acl_library_names_spec, hardcode_* to
64183         acl_hardcode_*.
64184         Reported by Ralf Wildenhues.
64185
64186 2007-01-08  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64189         definition.
64190         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64191         definition.
64192         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64193         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64194         definition.
64195         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64196         definition.
64197         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64198         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64199         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64200         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64201         definition.
64202         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64203         definition.
64204         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64205         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64206         GC_USE_<algorithm>.
64207         * lib/gc-libgcrypt.c: Likewise.
64208         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64209         * modules/gc-arctwo (configure.ac): Likewise.
64210         * modules/gc-des (configure.ac): Likewise.
64211         * modules/gc-hmac-md5 (configure.ac): Likewise.
64212         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64213         * modules/gc-md2 (configure.ac): Likewise.
64214         * modules/gc-md4 (configure.ac): Likewise.
64215         * modules/gc-md5 (configure.ac): Likewise.
64216         * modules/gc-random (configure.ac): Likewise.
64217         * modules/gc-rijndael (configure.ac): Likewise.
64218         * modules/gc-sha1 (configure.ac): Likewise.
64219
64220 2007-01-08  Bruno Haible  <bruno@clisp.org>
64221
64222         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64223         macro definition.
64224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64225         definition.
64226         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64227         definition.
64228         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64229         * modules/fcntl-safer (configure.ac): Likewise.
64230         * modules/fopen-safer (configure.ac): Likewise.
64231         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64232         GNULIB_FWRITEERROR macro definition.
64233
64234 2007-01-08  Bruno Haible  <bruno@clisp.org>
64235
64236         * m4/gnulib-common.m4: New file.
64237         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64238         (func_get_filelist): Add m4/gnulib-common.m4.
64239
64240 2007-01-08  Bruno Haible  <bruno@clisp.org>
64241
64242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64243         command.
64244
64245 2007-01-08  Jim Meyering  <jim@meyering.net>
64246
64247         Use a more robust test for a "can't happen" condition.
64248         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64249         narrowed the st_size value.  Presuming the "can't happen" condition
64250         is true, that narrowing could conceivably convert an invalid st_size
64251         value into a valid one.  Instead, use a change based on Matthew
64252         Woehlke's original patch.
64253
64254         Slight readability improvement: use an assert-like macro
64255         in place of literal "abort ()" uses.
64256         * lib/fts.c (fts_assert): Define.
64257         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64258         Use this macro instead of a bare 'abort'.
64259
64260 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64261
64262         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64263         simply work around them.
64264         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64265         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64266         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64267         declaring.
64268         Don't bother to define as macros, since the standard doesn't require it.
64269         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64270         longer worry about IRIX 5.3.
64271         (HAVE_WCTYPE_CTMP_BUG): Remove.
64272
64273 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64276         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64277         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64278         Problems reported by Georg Schwarz for IRIX 5.3.
64279
64280         * gnulib-tool (autoconf_minversion): Take the maximum version number
64281         found, not the minimum.  Problem reported by James Youngman.
64282
64283 2007-01-03  Karl Berry  <karl@gnu.org>
64284
64285         * doc/error.texi: new file, explaining interaction with progname.
64286         * doc/gnulib.texi: include it.  Update copyright.
64287
64288 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64289
64290         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64291         AC_CANONICAL_HOST, to improve autobuild outputs.
64292
64293 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64294             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64295
64296         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64297         sockets, server sockets, and other file descriptors.  Count errors
64298         to compute the return value.  Reorder the code a bit to be easier
64299         to follow.  Don't set event bits that were not requested (except
64300         POLLERR and POLLHUP).
64301
64302 2007-01-01  Bruno Haible  <bruno@clisp.org>
64303
64304         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64305
64306 2007-01-03  Jim Meyering  <jim@meyering.net>
64307
64308         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64309
64310 2007-01-02  Bruno Haible  <bruno@clisp.org>
64311
64312         * modules/settime (Include): Require timespec.h.
64313         * modules/nanosleep (Include): Likewise.
64314
64315 2007-01-01  Bruno Haible  <bruno@clisp.org>
64316
64317         * gnulib-tool (func_emit_copyright_notice): Bump year.
64318         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64319
64320 2007-01-01  Bruno Haible  <bruno@clisp.org>
64321
64322         Improve support for OpenBSD.
64323         * build-aux/config.rpath (libname_spec): Export.
64324         (library_names_spec): New variable. Export.
64325         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64326         library_names_spec from the config.rpath output. Locate shared library
64327         through the name pattern in library_names_spec.
64328
64329 2007-01-01  Eric Blake  <ebb9@byu.net>
64330
64331         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64332
64333 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64334
64335         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64336         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64337         assume the C locale, and avoid an "eval" that could cause trouble.
64338         Problem with SORT reported by Bob Proulx.
64339
64340         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64341         Define.  Trivial patch from Henning Nielsen Lund, originally
64342         sent to bug-grep@gnu.org today.
64343
64344 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64345
64346         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64347         struct stat.  Problem reported by Henning Nielsen Lund.
64348         * lib/acl.c: Include acl.h first, to check interface.  Don't
64349         bother to include sys/types.h and sys/stat.h again.
64350
64351 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         Import the following change from libc; problem reported by
64354         Sven Verdoolaege.
64355
64356         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64357
64358         [BZ #1373]
64359         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64360
64361 2006-12-28  Jim Meyering  <jim@meyering.net>
64362
64363         * build-aux/announce-gen: Do not assume that the package
64364         builds any of tar.gz, tar.bz2, and .xdelta files.
64365         Suggestion from Simon Josefsson.
64366
64367 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64368
64369         * modules/announce-gen: New file.
64370
64371 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64372
64373         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64374         handles its gotchas now.
64375         * lib/mbswidth.c: Likewise.
64376         * lib/wcwidth.h: Likewise.
64377         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64378         and iswcntrl; the wctype module does this stuff now.
64379         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64381         * modules/mbchar (Depends-on): Add wctype.
64382         * modules/mbswidth (Depends-on): Likewise.
64383         * modules/wcwidth (Depends-on): Likewise.
64384
64385 2006-12-27  Eric Blake  <ebb9@byu.net>
64386
64387         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64388         module uses more than what <wctype.h> is required to provide.
64389
64390 2006-12-26  Eric Blake  <ebb9@byu.net>
64391
64392         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64393
64394 2006-12-26  Eric Blake  <ebb9@byu.net>
64395
64396         * modules/absolute-header: New module.
64397         * modules/fcntl (Depends-on): Depend on it.
64398         * modules/inttypes (Depends-on): Likewise.
64399         * modules/stdint (Depends-on): Likewise.
64400         * modules/sys_stat (Depends-on): Likewise.
64401         * modules/wctype (Depends-on): Likewise.
64402         * MODULES.html.sh (Support for building libraries and
64403         executables): Document it.
64404
64405 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         * gnulib-tool (SED): Remove, undoing previous change.
64408         The problem was that it broke coreutils on Solaris, because
64409         "sed --posix" leaked into a makefile.
64410         (sed): New alias, if 'alias' and GNU sed.
64411
64412 2006-12-24  Jim Meyering  <jim@meyering.net>
64413
64414         Work around an fchownat bug in glibc-2.4:
64415         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64416         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64417         in spite of the -P option.
64418         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64419         New macros.
64420         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64421         * modules/openat (Files): Add lib/fchownat.c.
64422         * lib/openat.c (fchownat): Don't define here.  Move to...
64423         * lib/fchownat.c: ...this new file.
64424
64425 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64426
64427         Fix bug reported by Bruno Haible in
64428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64429         where quotearg.c didn't compile on Mac OS X 10.2 because it
64430         lacks <wchar.h> and wint_t.
64431         * lib/wctype_.h (__wctype_wint_t): New type.
64432         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64433         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64434         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64435         Arg is now of type __wctype_wint_t, not wint_t.
64436         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64437         substitute HAVE_WINT_T.
64438         * modules/wctype (Files): Add m4/wint_t.m4.
64439         (wctype.h): Substitute HAVE_WINT_T.
64440
64441 2006-12-23  Bruno Haible  <bruno@clisp.org>
64442
64443         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64444
64445 2006-12-23  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64448         S_ISLNK.
64449         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64450         mingw.
64451
64452 2006-12-22  Bruno Haible  <bruno@clisp.org>
64453
64454         * lib/copy-file.c: Include acl.h.
64455         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64456         Close the file descriptors only after being done with copy_acl.
64457         * modules/copy-file (Depends-on): Add acl.
64458
64459 2006-12-22  Bruno Haible  <bruno@clisp.org>
64460
64461         * gnulib-tool (SED): New variable.
64462         Use $SED instead of sed everywhere.
64463
64464 2006-12-22  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/no-c++: New file.
64467         * m4/no-c++.m4: New file.
64468         * MODULES.html.sh (Support for building libraries and executables):
64469         Add no-c++.
64470
64471 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64474         Include <limits.h>, and use its INT_MAX to rewrite the
64475         j loop so that it does not overflow 'int'.  Problem reported by
64476         Ralf Wildenhues in
64477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64478         Play it safe by shifting left by 1 rather than multiplying by 2,
64479         as GCC is less likely to optimize this away when the value
64480         is signed (when it assumes overflow leads to undefined behavior).
64481         Also, don't assume time_t uses two's complement.
64482
64483 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         * MODULES.html.sh: New module wctype.
64486         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64487         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64488         <wctype.h>, since the new wctype module should fix this.
64489         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64490         the wctype module should arrange for it.
64491         * lib/regex_internal.h: Likewise.
64492         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64493         since the wctype module should handle this now.
64494         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64495         * modules/fnmatch (Depends-on): Add wctype.
64496         * modules/quotearg (Depends-on): Likewise.
64497         * modules/regex (Depends-on): Likewise.
64498
64499 2006-12-19  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64502         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64503
64504 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64505
64506         * modules/savewd (Depends-on): Fix dependency on fcntl.
64507
64508 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64511         conforms to C99, rather than relying on the user's environment
64512         setting of STDINT_H.
64513
64514 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64515         and Eric Blake  <ebb9@byu.net>
64516
64517         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64518         This is more consistent with the other defines here.
64519         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64520         Port to z/OS.  Problem reported by Paul Gilmartin.
64521         Change local vars to use gl_ prefix rather than ac_.
64522         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64523         with other defines.
64524         * modules/double-slash-root: New module.
64525         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64526         (Depends-on): Add double-slash-root.
64527         * MODULES.html.sh (File system functions): Mention new module.
64528
64529 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64530
64531         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64532         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64533         This is for the benefit of gzip, which doesn't do i18n.
64534
64535 2006-12-12  Jim Meyering  <jim@meyering.net>
64536
64537         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64538         Reported by Andreas Schwab <schwab@suse.de>.
64539
64540 2006-12-12  Bruno Haible  <bruno@clisp.org>
64541
64542         Merge these changes.
64543         2006-09-05  Bruno Haible  <bruno@clisp.org>
64544         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64545         iconv_alloc succeeded.
64546         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64547         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64548         test for " && dest " at the end - dest is always != NULL there. Call
64549         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64550         with 2xNULL arguments, also to flush the state storage. Handle the
64551         IRIX iconv behaviour. Realloc the final result, to throw away unused
64552         memory.
64553
64554 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64557         and fchmodat unconditionally, since glibc 2.4 has them.
64558         Problem reported by Arkadiusz Miskiewicz.
64559
64560 2006-12-10  Bruno Haible  <bruno@clisp.org>
64561
64562         * gnulib-tool (func_import): Show the include files only for those
64563         modules that are copied and specified.
64564         Reported by Karl Berry.
64565
64566 2006-12-08  Jim Meyering  <jim@meyering.net>
64567
64568         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64569         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64570
64571         * build-aux/announce-gen: Add two new options, both optional:
64572         --bootstrap-tools=TOOL_LIST
64573               a comma-separated list of tools, e.g.,
64574               autoconf,automake,bison,gnulib
64575         --gnulib-snapshot-date=DATE
64576               if gnulib is in the bootstrap tool list,
64577               then report this as the snapshot date.
64578               If not specified, use the current date/time.
64579               If you specify a date here, be sure it's UTC.
64580
64581 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64582
64583         * tests/test-argp-2.sh: Fix test to match actual output.
64584         (func_compare): Fix sed script to be portable.
64585
64586 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64589         workaround for this case.  It is not autoconfigured now; offhand
64590         it's hard to see how to autoconfigure it.
64591
64592 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64595         a directory that is about to be chowned.  Such a directory's
64596         initial file permissions should permit the owner only and this
64597         should not be changed until after the chown, since the group and
64598         other bits would be incorrect if they granted permission before
64599         the chown.
64600
64601         Fix porting problem for iswctype reported by Georg Schwarz in:
64602         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64603         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64604         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64605         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64606         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64607
64608 2006-12-03  Jim Meyering  <jim@meyering.net>
64609
64610         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64611         p->fts_statp may not yet be defined.
64612         (fts_read): Instead, set it in the caller, once p->fts_statp is
64613         sure to be defined, and corresponds to a top-level directory.
64614         This bug made du -x fail.  Here's the coreutils test case:
64615         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64616         Reported by Mike Frysinger.
64617
64618 2006-12-01  Jim Meyering  <jim@meyering.net>
64619
64620         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64621         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64622         Reported by Simon Josefsson.
64623
64624 2006-11-30  Jim Meyering  <jim@meyering.net>
64625
64626         * m4/warning.m4: Use the all-permissive copyright notice
64627         recommended by RMS (rather than LGPL).
64628         * m4/vararrays.m4: Likewise.
64629         * m4/flexmember.m4: Likewise.
64630
64631 2006-11-29  Bruno Haible  <bruno@clisp.org>
64632
64633         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64634         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64635         using +=.
64636         Reported by Simon Josefsson <simon@josefsson.org>.
64637
64638 2006-11-28  James Youngman <jay@gnu.org>
64639
64640         * README: Advise users that they might find the bug-gnulib@gnu.org
64641         and autotools-announce@gnu.org mailing lists useful.
64642
64643 2006-11-28  Bruno Haible  <bruno@clisp.org>
64644
64645         * m4/ptrdiff_max.m4: Remove file.
64646
64647 2006-11-21  Bruno Haible  <bruno@clisp.org>
64648
64649         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64650         _AC_COMPUTE_INT.
64651         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64652         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64653         _AC_COMPUTE_INT.
64654         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64655         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64656         _AC_COMPUTE_INT.
64657         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64658
64659 2006-11-28  Jim Meyering  <jim@meyering.net>
64660
64661         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64662         warning from "gcc -Wshadow" about shadowing the builtin.
64663
64664 2006-11-27  Bruno Haible  <bruno@clisp.org>
64665
64666         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64667         _AC_COMPUTE_INT.
64668         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64669
64670 2006-11-27  Bruno Haible  <bruno@clisp.org>
64671             Paul Eggert  <eggert@cs.ucla.edu>
64672
64673         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64674
64675 2006-11-26  Bruno Haible  <bruno@clisp.org>
64676
64677         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64678         noinst_LTLIBRARIES.
64679
64680 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64681             Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64684         if compiling with "gcc -ansi".
64685
64686 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64687
64688         Fix some incompatibilities with gcc -ansi -pedantic.
64689         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64690         if compiling pedantically with GCC, unless it's C99 or later.
64691         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64692         it mishandles gcc -ansi -pedantic as well.
64693         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64694         if gcc -pedantic.
64695         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64696         initializers for struct if -pedantic, unless it's C99 or later.
64697
64698 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64699
64700         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64701         Don't close an fd more than once. Identical atimes indicate
64702         success, not failure.
64703
64704 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64705
64706         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64707
64708 2006-11-23  Jim Meyering  <jim@meyering.net>
64709
64710         * build-aux/announce-gen: New file.  From coreutils.
64711
64712 2006-11-22  Jim Meyering  <jim@meyering.net>
64713
64714         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64715         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64716         (fts_read): Use a temporary to narrow the overused st_size member
64717         before using it in a switch statement.  Reported by Matthew Woehlke.
64718
64719         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64720         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64721
64722 2006-11-20  Bruno Haible  <bruno@clisp.org>
64723
64724         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64725         changequote instead of pairs of brackets.
64726         Reported by Andreas Schwab <schwab@suse.de>.
64727
64728 2006-11-21  Jim Meyering  <jim@meyering.net>
64729
64730         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64731         so as to remain compatible with older compilers.
64732         Patch from Michael Deutschmann.
64733
64734 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         * MODULES.html.sh (File system functions): Add openat.
64737
64738         * lib/openat.h (rpl_fstatat): New macro, if
64739         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64740         (fstatat): Define to rpl_fstatat under the same conditions,
64741         unless COMPILING_FSTATAT.
64742         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64743         seems to have the bug.
64744         * lib/fstatat.c: New file.
64745         * modules/openat (Files): Add it.
64746
64747 2006-11-20  Bruno Haible  <bruno@clisp.org>
64748
64749         * Makefile: New file.
64750
64751 2006-11-20  Jim Meyering  <jim@meyering.net>
64752
64753         The beginnings of syntax-related checks for gnulib.
64754         * lib/Makefile: New file.
64755         * lib/t-idcache: New script.  Ensure that the two halves of
64756         idcache.c stay in sync.
64757
64758         * lib/idcache.c: Adjust comments in user- and group- portions to
64759         be more accurate, and to be consistent with one another.
64760
64761 2006-11-20  Jim Meyering  <jim@meyering.net>
64762
64763         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64764         continue using the flexible array member (thus, this module performs
64765         half as many malloc calls), with the addition that...
64766         (getgroup, getuser): Consistently record a non-match via an empty
64767         "name" string, and map an empty string match to a NULL return value.
64768         * modules/idcache (Depends-on): Re-add flexmember.
64769
64770         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64771         (getuidbyname, getgroup, getgidbyname): Likewise.
64772
64773         Use cleaner syntax: NULL rather than 0.
64774         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64775
64776 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64779         It mishandled the case where the group was missing.
64780         Problem reported by Greg Schafer.
64781         * modules/idcache: Likewise.
64782
64783 2006-11-18  Jim Meyering  <jim@meyering.net>
64784
64785         * check-module (%exempt_header): Add exception for some
64786         conditionally-included headers.
64787
64788         * modules/i-ring (Depends-on): Add verify.
64789         (License): Change to LGPL.
64790
64791 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64792
64793         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64794         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64795         and inttostr.h.  Use snprintf rather than uinttostr, so that
64796         LGPLed code doesn't depend on GPLed.
64797
64798 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64799
64800         * modules/inline (License): Change from GPL to LGPL.
64801
64802 2006-11-17  Jim Meyering  <jim@meyering.net>
64803
64804         * modules/d-type (License): Switch to LGPL.
64805
64806 2006-11-15  Bruno Haible  <bruno@clisp.org>
64807
64808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64809
64810 2006-11-15  Eric Blake  <ebb9@byu.net>
64811
64812         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64813         the module dependency.
64814
64815 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64816             Bruno Haible  <bruno@clisp.org>
64817
64818         * gnulib-tool (func_create_testdir): Add license consistency check.
64819
64820 2006-11-15  Eric Blake  <ebb9@byu.net>
64821
64822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64823         random "(cached)" in configure output.
64824
64825 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64826
64827         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64828         test for conforming inttypes.h is both announced and cached.
64829
64830         * MODULES.html.sh (seen_modules, seen_files): New variables.
64831         (func_module): Rewrite to use a few less gnulib-tool and sed
64832         invocations.  Avoid a couple of quadratic algorithms for ...
64833         (missed_modules, missed_files): ... these, with ...
64834         (func_append, func_tmpdir): ... these new functions, from
64835         gnulib-tool.  Analogously, install traps for cleanup.
64836
64837         * tests/test-gc.c (main): Remove unused variables.
64838         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64839
64840 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * modules/inttostr (License): Change to LGPL.
64843
64844 2006-11-14  Eric Blake  <ebb9@byu.net>
64845
64846         * modules/tempname (License): Change to LGPL.
64847
64848 2006-11-14  Eric Blake  <ebb9@byu.net>
64849
64850         * doc/functions.texi (Function Portability): *printf functions on
64851         Cygwin now understand all POSIX size specifiers.
64852
64853 2006-11-14  Bruno Haible  <bruno@clisp.org>
64854
64855         * modules/c-ctype (License): Change to LGPL.
64856
64857 2006-11-12  Bruno Haible  <bruno@clisp.org>
64858
64859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64860         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64861         for GNOME libraries, for which the include files are installed in
64862         subdirectories of $prefix/include.
64863
64864 2006-11-12  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/lib-link.m4: Require at least autoconf-2.54.
64867         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64868         name to underscores for the --with option.
64869
64870 2006-11-13  Bruno Haible  <bruno@clisp.org>
64871
64872         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64873         the tests directory.
64874         Reported by Ralf Wildenhues.
64875
64876 2006-11-13  Bruno Haible  <bruno@clisp.org>
64877
64878         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64879         (func_emit_initmacro_end): Undo the override here.
64880         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64881         Works around the famous automake error in coreutils.
64882
64883 2006-11-13  Eric Blake  <ebb9@byu.net>
64884
64885         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64886         element, not its node.
64887
64888 2006-11-12  Bruno Haible  <bruno@clisp.org>
64889
64890         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64891         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64892
64893 2006-11-12  Bruno Haible  <bruno@clisp.org>
64894
64895         * gnulib-tool: New option --local-symlink.
64896         (func_usage): Document it.
64897         (lsymbolic): New variable.
64898         (func_import, func_create_testdir): If --symlink was not specified,
64899         test whether --local-symlink was specified and the file comes from
64900         the local_gnulib_dir.
64901
64902 2006-11-12  Bruno Haible  <bruno@clisp.org>
64903
64904         * gnulib-tool (func_ln): New function.
64905         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64906
64907 2006-11-12  Bruno Haible  <bruno@clisp.org>
64908
64909         Finish support for source files in subdirectories.
64910         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64911         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64912         AUTOMAKE_OPTIONS.
64913         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64914
64915 2006-11-12  Bruno Haible  <bruno@clisp.org>
64916
64917         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64918         EXTRA_lib_SOURCES augmentation.
64919         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64920
64921 2006-11-12  Jim Meyering  <jim@meyering.net>
64922
64923         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64924         file descriptors.  This also averts a failure on systems with
64925         native openat support when a traversed directory lacks "x" access.
64926         * lib/fts_.h: Include "i-ring.h"
64927         (struct FTS) [fts_fd_ring]: New member.
64928         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64929         (FCHDIR): Add parentheses.
64930         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64931         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64932         When descending, rather than simply closing the previous
64933         fts_cwd_fd value, push that file descriptor onto the ring.
64934         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64935         (fts_open): Initialize the new fd_ring member.
64936         (fts_close): Clear the ring.
64937         (fts_safe_changedir): When possible, use our new fd_ring to skip
64938         the diropen and fstat and dev/ino comparison that would normally
64939         accompany a virtual `chdir ("..")'.
64940
64941         * modules/fts (Depends-on): Add i-ring.
64942         * modules/i-ring: New module.
64943         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64944         * m4/i-ring.m4: New file.
64945
64946 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64947
64948         * gnulib-tool (func_create_testdir): Fix replacement of
64949         `build-aux' in configure.ac.  Run autotools in gltests
64950         subdirectory.
64951         (func_create_testdir, func_create_megatestdir, test): There is
64952         no need for '--force' in most autotool invocations in a new
64953         tree.  Actually fail the whole test if any of the tools, or the
64954         configure or make stages fail.
64955
64956         Sync from Automake.
64957         * build-aux/gnupload: Revert last change.  Add pointer to upload
64958         instructions of the GNU Maintenance Instructions.
64959         Suggestion by Karl Berry.
64960
64961 2006-11-10  Jim Meyering  <jim@meyering.net>
64962
64963         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64964
64965 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64968         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64969         (bind_textdomain_codeset) [! ENABLE_NLS]:
64970         Evaluate all the arguments.  That way, callers get compatible behavior
64971         if the arguments have side effects.  Also, it avoids some GCC
64972         diagnostics in some cases; Joel E. Denny reported problems when Bison
64973         was configured with --enable-gcc-warnigs.
64974
64975 2006-11-10  Jim Meyering  <jim@meyering.net>
64976
64977         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64978         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64979         account.
64980
64981 2006-11-10  Jim Meyering  <jim@meyering.net>
64982
64983         * modules/inline: New file/module.
64984         * modules/xalloc (Files): Remove m4/inline.m4.
64985         (Depends-on): Add inline, instead.
64986         * modules/oset: Likewise.
64987         * modules/list: Likewise.
64988
64989 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64990
64991         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64992         Problem reported by Matthew Woehlke.
64993
64994 2006-11-09  Bruno Haible  <bruno@clisp.org>
64995
64996         * lib/tempname.c (gen_tempname): Remove variant that invokes
64997         __gen_tempname.
64998         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64999         __gen_tempname.
65000
65001 2006-11-08  Bruno Haible  <bruno@clisp.org>
65002
65003         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65004         to 'yes' instead of 'cross-compiling'.
65005
65006 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65007
65008         * lib/quotearg.h (quotearg_free): New decl.
65009         * lib/quotearg.c (quotearg_free): New function.
65010         (slot0, nslots, slotvec0, slotvec):
65011         Now file-scope so that quotearg_free can get at them.
65012
65013 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65014
65015         Sync from Automake.
65016         * build-aux/gnupload: Add missing 'gnu' to example URL.
65017         Report by Karl Berry.
65018
65019 2006-11-08  Bruno Haible  <bruno@clisp.org>
65020
65021         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65022         Suggested by Paul Eggert.
65023
65024 2006-11-08  Jim Meyering  <jim@meyering.net>
65025
65026         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65027         It's already included if !_LIBC.
65028         (fts_safe_changedir): Add a comment.
65029
65030 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65033         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65034         Matthew Woehlke.
65035
65036         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65037         definitions up, to avoid colliding with change below.
65038         (static_inline) [HAVE_INLINE]: New macro.
65039         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65040         Provide extern decls when !HAVE_INLINE.  Do not define unless
65041         static_inline is defined, either by us or by xmalloc.c.  Use
65042         static_inline rather than static inline.
65043         (XCALLOC): Optimize sizeof(T) = 1 case.
65044         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65045
65046 2006-11-07  Bruno Haible  <bruno@clisp.org>
65047
65048         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65049         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65050         AC_C_INLINE.
65051         * modules/xalloc (Files): Add m4/inline.m4.
65052
65053 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65054
65055         * README: Fix typo.
65056         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65057         (Miscellanous Notes): ...from this.
65058
65059 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65062         Mention that offsetof should be used instead of sizeof.
65063         From Bruno Haible.
65064
65065 2006-11-07  Bruno Haible  <bruno@clisp.org>
65066
65067         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65068
65069 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65072         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65073         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65074         (gl_tree_add_before, gl_tree_add_after):
65075         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65076         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65077         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65078         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65079         (gl_linked_add_after, gl_linked_add_at): Likewise.
65080         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65081         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65082         (gl_tree_add_before, gl_tree_add_after): Likewise.
65083         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65084         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65085         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65086
65087 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65088
65089         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65090
65091 2006-11-06  Bruno Haible  <bruno@clisp.org>
65092
65093         * m4/inline.m4: New file.
65094         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65095         * modules/list (Files): Add m4/inline.m4.
65096         * modules/oset (Files): Likewise.
65097
65098 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * lib/idcache.c: Include <stddef.h>, for offsetof.
65101         (struct userid.name): Change from char * to a flexible array member.
65102         All uses changed.
65103         * modules/idcache (Depends-on): Add flexmember.
65104
65105         * MODULES.html.sh (Core language properties): New module flexmember.
65106         * modules/flexmember, m4/flexmember.m4: New files.
65107
65108         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65109         inline functions that are identical with the old xnmalloc_inline,
65110         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65111         that we can avoid some unnecessary integer multiplications and
65112         divisions in the common case where the element size is known at
65113         compile time.
65114         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65115         needed.
65116         (xnboundedmalloc): Remove.
65117         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65118         arguments, for consistency with rest of this header.
65119         (xcharalloc): Rewrite using XNMALLOC.
65120         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65121         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65122         versions have been moved to lib/xalloc.h and renamed to be the
65123         non-*_inline versions.
65124         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65125         and xnrealloc functions, since those functions are now inline and
65126         now call us.
65127         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65128         renaming described above.
65129         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65130         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65131         captures the dependency in AC_C_INLINE.
65132
65133         New module canonicalize-lgpl, proposed by Charles Wilson in
65134         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65135         with a few small changes afterwards.
65136         * MODULES.html.sh (File system functions): New module
65137         canonicalize-lgpl.
65138         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65139         and canonicalize_file_name.
65140         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65141         * modules/canonicalize-lgpl: New files.
65142
65143 2006-11-05  Bruno Haible  <bruno@clisp.org>
65144
65145         * gnulib-tool (func_import, func_create_testdir): Create directories
65146         also for files in subdirectories of lib/.
65147
65148 2006-11-05  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65151         ANSI C compliant.
65152
65153 2006-11-03  Bruno Haible  <bruno@clisp.org>
65154
65155         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65156         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65157         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65158         (xnboundedmalloc): New inline function.
65159         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65160         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65161         xmalloc.
65162         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65163         xmalloc.
65164         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65165         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65166         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65167         xmalloc.
65168         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65169         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65170         xmalloc.
65171         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65172         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65173         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65174         xmalloc.
65175         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65176         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65177         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65178         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65179         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65180         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65181         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65182
65183 2006-11-03  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/c-ctype.h [C++]: Define functions without name mangling.
65186         * lib/fwriteerror.h [C++]: Likewise.
65187         * lib/gcd.h [C++]: Likewise.
65188         * lib/linebreak.h [C++]: Likewise.
65189
65190 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65193         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65194         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65195         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65196         Check for functions and headers just once.
65197         Check for declaration of canonicalize_file_name.
65198         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65199
65200 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65201
65202         * gnulib-tool (func_import): Fix typo in actioncmd.
65203
65204 2006-11-02  Bruno Haible  <bruno@clisp.org>
65205
65206         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65207         newline sequence in the Makefile.am snippet as a space, like "make"
65208         does.
65209         Reported by Roger Persson <perrog@gmail.com>.
65210
65211 2006-11-01  Bruno Haible  <bruno@clisp.org>
65212
65213         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65214         already declared in <string.h>.
65215         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65216
65217 2006-11-01  Bruno Haible  <bruno@clisp.org>
65218
65219         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65220         * lib/strcase.h: Include <string.h>.
65221         (strcasecmp): Define to rpl_strcasecmp here.
65222
65223 2006-11-01  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65226
65227 2006-11-01  Eric Blake  <ebb9@byu.net>
65228
65229         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65230
65231         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65232
65233 2006-10-29  Bruno Haible  <bruno@clisp.org>
65234
65235         Make it compile in C++ mode.
65236         * lib/full-write.c (full_rw): Add a cast.
65237
65238 2006-11-01  Bruno Haible  <bruno@clisp.org>
65239
65240         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65241         be POSIX compliant.
65242         Reported by Roger Persson <perrog@gmail.com>.
65243
65244 2006-11-01  Eric Blake  <ebb9@byu.net>
65245
65246         * lib/getopt_.h: Fix comments.
65247
65248 2006-10-31  Eric Blake  <ebb9@byu.net>
65249
65250         * modules/tmpdir (Depends-on): Add sys_stat.
65251         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65252         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65253         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65254         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65255         tempname.
65256
65257 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         Avoid some C++ diagnostics reported by Bruno Haible.
65260         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65261         xmalloc.
65262         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65263         (struct slotvec): Move to top level.
65264         (quotearg_n_options): Rewrite to avoid xmalloc.
65265         * lib/xalloc.h (xcharalloc): New function.
65266         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65267         [defined __cplusplus]: Add function template that provides result
65268         type propagation.  This part of the change is from Bruno Haible.
65269
65270 2006-10-29  Bruno Haible  <bruno@clisp.org>
65271
65272         Make it compile in C++ mode.
65273         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65274         * lib/strnlen1.c (strnlen1): Cast memchr result.
65275         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65276         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65277         (create_temp_dir): Rename local variable 'template'.
65278         (compile_csharp_using_sscli): Add cast.
65279         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65280         * lib/findprog.c (find_in_path): Likewise.
65281         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65282         * lib/wait-process.c (register_slave_subprocess): Likewise.
65283
65284 2006-10-22  Bruno Haible  <bruno@clisp.org>
65285
65286         * modules/tsearch: New file.
65287         * lib/tsearch.h: New file.
65288         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65289         * m4/tsearch.m4: New file.
65290         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65291
65292 2006-10-29  Eric Blake  <ebb9@byu.net>
65293
65294         * lib/arcfour.c: Assume config.h.
65295         * lib/arctwo.c: Likewise.
65296         * lib/base64.c: Likewise.
65297         * lib/check-version.c: Likewise.
65298         * lib/crc.c: Likewise.
65299         * lib/des.c: Likewise.
65300         * lib/gc-gnulib.c: Likewise.
65301         * lib/gc-libgcrypt.c: Likewise.
65302         * lib/gc-pbkdf2-sha1.c: Likewise.
65303         * lib/getaddrinfo.c: Likewise.
65304         * lib/getdelim.c: Likewise.
65305         * lib/getline.c: Likewise.
65306         * lib/hmac-md5.c: Likewise.
65307         * lib/hmac-sha1.c: Likewise.
65308         * lib/iconvme.c: Likewise.
65309         * lib/md2.c: Likewise.
65310         * lib/md4.c: Likewise.
65311         * lib/memxor.c: Likewise.
65312         * lib/read-file.c: Likewise.
65313         * lib/readline.c: Likewise.
65314         * lib/rijndael-alg-fst.c: Likewise.
65315         * lib/rijndael-api-fst.c: Likewise.
65316         * lib/xgetdomainname.c: Likewise.
65317
65318 2006-10-28  Eric Blake  <ebb9@byu.net>
65319
65320         * lib/xstrndup.c: Assume config.h.
65321
65322 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65325         stat-macros.h is now for our own macros, whereas stat_h is for
65326         macros in the <sys/stat.h> name space.
65327         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65328         (STAT_MACROS_H): Remove.
65329         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65330         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65331         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65332         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65333         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65334         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65335         Move these macros to ...
65336         * lib/stat_.h: here.  Don't include stat-macros.h.
65337         * lib/canonicalize.c: Don't include stat-macros.h.
65338         * lib/chown.c: Likewise.
65339         * lib/euidaccess.c: Likewise.
65340         * lib/file-type.c: Likewise.
65341         * lib/filemode.c: Likewise.
65342         * lib/glob.c: Likewise.
65343         * lib/isapipe.c: Likewise.
65344         * lib/lchown.c: Likewise.
65345         * lib/lstat.c: Likewise.
65346         * lib/mkdir-p.c: Likewise.
65347         * lib/rmdir.c: Likewise.
65348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65350         unless mkdir isn't declared, to speed up 'configure'.
65351         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65352         would define all the S_* symbols.
65353         * modules/canonicalize (Depends-on):
65354         Depend on sys_stat, not stat-macros.
65355         * modules/chown: Likewise.
65356         * modules/euidaccess: Likewise.
65357         * modules/filemode: Likewise.
65358         * modules/file-type: Likewise.
65359         * modules/glob: Likewise.
65360         * modules/isapipe: Likewise.
65361         * modules/lchown: Likewise.
65362         * modules/lstat: Likewise.
65363         * modules/mkancesdirs: Likewise.
65364         * modules/rmdir: Likewise.
65365         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65366         * modules/modechange: Likewise.
65367         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65368         (configure.ac): Remove gl_STAT_MACROS.
65369         * modules/sys_stat (Depends-on): Remove stat-macros.
65370
65371 2006-10-27  Bruno Haible  <bruno@clisp.org>
65372
65373         * m4/signed.m4: Remove file.
65374         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65375         invocation.
65376         * modules/vasnprintf (Files): Remove m4/signed.m4.
65377
65378 2006-10-27  Bruno Haible  <bruno@clisp.org>
65379
65380         Update to GNU gettext 0.16.
65381         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65382         m4/inttypes-h.m4, m4/signed.m4.
65383         * m4/gettext.m4: Update to GNU gettext 0.16.
65384         * m4/intl.m4: New file, from GNU gettext.
65385         * m4/intldir.m4: New file, from GNU gettext.
65386         * config/srclist.txt: Update
65387
65388 2006-10-27  Eric Blake  <ebb9@byu.net>
65389
65390         * MODULES.html.sh: Document tempname.
65391         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65392         dependencies.
65393         (Files): Move lib/tempname.c...
65394         * modules/tempname: ...to this new module.
65395         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65396         (gl_PREREQ_TEMPNAME): Move...
65397         * m4/tempname.m4: ...to this new file.
65398         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65399         * modules/sys_stat (Depends-on): Add stat-macros.
65400         * lib/stat_.h (includes): Pick up stat macros.
65401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65402         if stat macros are broken.
65403         * lib/tempname.c (includes): No need to include "stat-macros.h".
65404         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65405         (direxists, __path_search) [!_LIBC]: Don't compile these in
65406         gnulib; the tmpdir module covers that.
65407         * lib/tempname.h: New file.
65408
65409 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65410
65411         * COPYING: Explain how gnulib-tool converts licence headers.
65412         Almost all wording by Eric Blake.
65413
65414 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * lib/mbchar.h (is_basic_table): Make read-only.
65417         * lib/mbchar.c (is_basic_table): Likewise.
65418         Reported by John Darrington.
65419
65420 2006-10-25  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/progname.h (set_program_name): Undefine before defining.
65423
65424 2006-10-25  Bruno Haible  <bruno@clisp.org>
65425
65426         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65427         false for non-gcc C++ compilers.
65428         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65429
65430 2006-10-24  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65433         iconv implementations like Irix iconv.
65434
65435 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         * modules/vararrays: New file.
65438         * m4/vararrays.m4: New file, taken from diffutils.
65439         * MODULES.html.sh: New module vararrays.
65440
65441 2006-10-24  Karl Berry  <karl@gnu.org>
65442
65443         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65444         Don't call GNU Unix.
65445
65446 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65447
65448         * users.txt: Add Libtool.
65449
65450         Sync from Libtool:
65451
65452         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65455         to gnulib's policy of including config.h unconditionally.
65456
65457 2006-10-24  Bruno Haible  <bruno@clisp.org>
65458
65459         * modules/wcwidth (Files): Add m4/wint_t.m4.
65460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65461         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65462
65463 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65466         to pacify GCC with some -W flags enabled.  Problem reported by
65467         Bruno Haible.
65468
65469 2006-10-24  Jim Meyering  <jim@meyering.net>
65470
65471         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65472         Reported by Karl Berry.
65473
65474 2006-10-23  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65477
65478 2006-10-24  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/gl_list.h: Use C comment style, not C++ comment style.
65481
65482 2006-10-23  Eric Blake  <ebb9@byu.net>
65483
65484         * lib/getaddrinfo.c (includes): Add missing include.
65485
65486 2006-10-23  Bruno Haible  <bruno@clisp.org>
65487             Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         Ability to rename obstack_free.
65490         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65491         obstack_free.
65492         (obstack_free): Invoke the __obstack_free macro.
65493         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65494
65495 2006-10-23  Bruno Haible  <bruno@clisp.org>
65496             Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65499         __argc, __argv from the declaration. (They are defined as macros on
65500         mingw.)
65501
65502 2006-10-22  Bruno Haible  <bruno@clisp.org>
65503
65504         * doc/gnulib-intro.texi: New file.
65505         * doc/gnulib.texi: Include it.
65506
65507 2006-10-21  Bruno Haible  <bruno@clisp.org>
65508
65509         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65510         "Introduction", "Miscellanous Notes", "Particular Modules".
65511
65512 2006-10-21  Bruno Haible  <bruno@clisp.org>
65513
65514         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65515         Change mostlyclean-local rule to avoid sh syntax error from bash
65516         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65517
65518 2006-10-23  Jim Meyering  <jim@meyering.net>
65519
65520         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65521         in place of snprintf.
65522
65523         * modules/inttostr (Files): Add lib/uinttostr.c.
65524         * lib/uinttostr.c (inttostr): New file/function.
65525         * lib/inttostr.h (uinttostr): Declare.
65526         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65527         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65528         Add uinttostr.
65529         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65530
65531 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * lib/canonicalize.c (ELOOP): Define if not already defined.
65534         Problem reported by Bruno Haible in
65535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65536
65537 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65540         Problem reported by Perry Smith and Ville Laurikari.
65541
65542         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65543         uses.
65544
65545 2006-10-19  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65548         for mingw.
65549
65550 2006-10-19  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65553         Needed for mingw.
65554
65555 2006-10-19  Bruno Haible  <bruno@clisp.org>
65556
65557         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65558
65559 2006-10-19  Bruno Haible  <bruno@clisp.org>
65560
65561         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65562         it.
65563
65564 2006-10-19  Bruno Haible  <bruno@clisp.org>
65565
65566         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65567         invocation.
65568
65569 2006-10-19  Bruno Haible  <bruno@clisp.org>
65570
65571         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65572         mountlist by default.
65573
65574 2006-10-16  Bruno Haible  <bruno@clisp.org>
65575
65576         * lib/c-strstr.c: Include c-strstr.h.
65577
65578 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65579
65580         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65581         in a slash.
65582
65583 2006-10-18  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/lock.h [C++]: Wrap definitions in extern "C".
65586
65587 2006-10-18  Bruno Haible  <bruno@clisp.org>
65588
65589         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65590         gl_LIBOBJS list.
65591
65592 2006-10-18  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65595
65596 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * lib/xstrtol.h: Include gettext.h.
65599         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65600         Problem reported by Eric Blake.
65601         * modules/xstrtol (Depends-on): Add gettext-h.
65602
65603 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65604
65605         * lib/strftime.c (advance): New macro.
65606         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65607         incomplete type, so you can't add 0 to it.  Problem and patch
65608         reported by Eelco Dolstra for dietlibc.
65609
65610 2006-10-18  Jim Meyering  <jim@meyering.net>
65611
65612         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65613         type for a local, and rename it: s/up/user_proc/.
65614
65615 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65616
65617         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65618         READ_UTMP_USER_PROCESS.
65619         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65620
65621 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65622
65623         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65624         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65625
65626 2006-10-17  Eric Blake  <ebb9@byu.net>
65627
65628         * lib/sigprocmask.c (sigprocmask): Fix typo.
65629
65630         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65631
65632         * modules/clean-temp (Makefile.am): Don't add to make output...
65633         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65634         config.h.
65635
65636 2006-10-17  Bruno Haible  <bruno@clisp.org>
65637
65638         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65639         differently if DEFAULT_TEXT_DOMAIN is set.
65640
65641 2006-10-16  Bruno Haible  <bruno@clisp.org>
65642
65643         * lib/clean-temp.c: Include fwriteerror.h.
65644
65645 2006-10-16  Bruno Haible  <bruno@clisp.org>
65646
65647         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65648
65649 2006-10-16  Bruno Haible  <bruno@clisp.org>
65650
65651         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65652         * lib/sigprocmask.h: Include <sys/types.h>.
65653         (sigset_t): Use the system's definition if present.
65654
65655 2006-10-17  Eric Blake  <ebb9@byu.net>
65656
65657         * lib/xvasprintf.c (includes): Assume config.h.
65658         * lib/xasprintf.c (includes): Likewise.
65659
65660 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65661
65662         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65663         at least as wide as intmax_t.
65664
65665 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65666
65667         (Imported from Automake.)
65668         * build-aux/gnupload: Update to version 1.1 of directive file.
65669
65670 2006-10-16  Eric Blake  <ebb9@byu.net>
65671
65672         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65673         match Automake 1.10a.
65674
65675 2006-10-14  Bruno Haible  <bruno@clisp.org>
65676
65677         * modules/sigprocmask: New file.
65678         * lib/sigprocmask.h: New file.
65679         * lib/sigprocmask.c: New file.
65680         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65681         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65682         request sigprocmask.o.
65683         (gl_PREREQ_SIGPROCMASK): New macro.
65684         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65685         (Depends-on): Add sigprocmask.
65686         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65687         gt_SIGNALBLOCKING. Test for 'raise' only once.
65688         * lib/fatal-signal.c: Include sigprocmask.h.
65689         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65690         unblock_fatal_signals): Define always.
65691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65692         sigprocmask.
65693
65694 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         Sync from Automake.
65697         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65698         which incorrectly sets the mode of an existing destination
65699         directory.  In some cases the unpatched install-sh could do the
65700         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65701         system.  We hope this is rare in practice, but it's clearly worth
65702         fixing.  Problem reported by Alex Unleashed in
65703         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65704         Also, don't bother to check for -m bugs unless we're using -m;
65705         suggested by Stepan Kasal.
65706
65707 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65708
65709         Sync from Automake.
65710         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65711         `-c' flag, so they appear at the same position as in %FASTDEP%
65712         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65713         which ignores unknown options only after the first non-option.
65714         Bug report against M4 by Nelson H. F. Beebe.
65715
65716 2006-10-13  Jim Meyering  <jim@meyering.net>
65717
65718         Fix a bug in yesterday's change.
65719         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65720         p->fts_statp->st_dev would be used uninitialized.
65721         Ensures that we always call fts_stat on the very first entry.
65722         Miklos Szeredi reported that find -xdev stopped working.
65723
65724 2006-10-12  Bruno Haible  <bruno@clisp.org>
65725
65726         * gnulib-tool (func_get_automake_snippet): Append an automatically
65727         computed EXTRA_DIST augmentation.
65728         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65729         * modules/alloca-opt (Makefile.am): Likewise.
65730         * modules/allocsa (Makefile.am): Likewise.
65731         * modules/arcfour (Makefile.am): Likewise.
65732         * modules/arctwo (Makefile.am): Likewise.
65733         * modules/argmatch (Makefile.am): Likewise.
65734         * modules/argz (Makefile.am): Likewise.
65735         * modules/atexit (Makefile.am): Likewise.
65736         * modules/backupfile (Makefile.am): Likewise.
65737         * modules/byteswap (Makefile.am): Likewise.
65738         * modules/c-strtod (Makefile.am): Likewise.
65739         * modules/c-strtold (Makefile.am): Likewise.
65740         * modules/calloc (Makefile.am): Likewise.
65741         * modules/canon-host (Makefile.am): Likewise.
65742         * modules/canonicalize (Makefile.am): Likewise.
65743         * modules/chdir-long (Makefile.am): Likewise.
65744         * modules/chdir-safer (Makefile.am): Likewise.
65745         * modules/check-version (Makefile.am): Likewise.
65746         * modules/chown (Makefile.am): Likewise.
65747         * modules/cloexec (Makefile.am): Likewise.
65748         * modules/close-stream (Makefile.am): Likewise.
65749         * modules/closeout (Makefile.am): Likewise.
65750         * modules/crc (Makefile.am): Likewise.
65751         * modules/csharpexec (Makefile.am): Likewise.
65752         * modules/cycle-check (Makefile.am): Likewise.
65753         * modules/des (Makefile.am): Likewise.
65754         * modules/dev-ino (Makefile.am): Likewise.
65755         * modules/dirfd (Makefile.am): Likewise.
65756         * modules/dirname (Makefile.am): Likewise.
65757         * modules/dup2 (Makefile.am): Likewise.
65758         * modules/eealloc (Makefile.am): Likewise.
65759         * modules/error (Makefile.am): Likewise.
65760         * modules/euidaccess (Makefile.am): Likewise.
65761         * modules/exclude (Makefile.am): Likewise.
65762         * modules/exitfail (Makefile.am): Likewise.
65763         * modules/fcntl-safer (Makefile.am): Likewise.
65764         * modules/fcntl (Makefile.am): Likewise.
65765         * modules/file-type (Makefile.am): Likewise.
65766         * modules/fileblocks (Makefile.am): Likewise.
65767         * modules/filemode (Makefile.am): Likewise.
65768         * modules/filenamecat (Makefile.am): Likewise.
65769         * modules/fnmatch (Makefile.am): Likewise.
65770         * modules/fopen-safer (Makefile.am): Likewise.
65771         * modules/fpending (Makefile.am): Likewise.
65772         * modules/fprintftime (Makefile.am): Likewise.
65773         * modules/free (Makefile.am): Likewise.
65774         * modules/fsusage (Makefile.am): Likewise.
65775         * modules/ftruncate (Makefile.am): Likewise.
65776         * modules/fts (Makefile.am): Likewise.
65777         * modules/gc-arcfour (Makefile.am): Likewise.
65778         * modules/gc-des (Makefile.am): Likewise.
65779         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65780         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65781         * modules/gc-md4 (Makefile.am): Likewise.
65782         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65783         * modules/gc-sha1 (Makefile.am): Likewise.
65784         * modules/gc (Makefile.am): Likewise.
65785         * modules/getaddrinfo (Makefile.am): Likewise.
65786         * modules/getcwd (Makefile.am): Likewise.
65787         * modules/getdelim (Makefile.am): Likewise.
65788         * modules/getdomainname (Makefile.am): Likewise.
65789         * modules/getgroups (Makefile.am): Likewise.
65790         * modules/gethostname (Makefile.am): Likewise.
65791         * modules/gethrxtime (Makefile.am): Likewise.
65792         * modules/getline (Makefile.am): Likewise.
65793         * modules/getloadavg (Makefile.am): Likewise.
65794         * modules/getlogin_r (Makefile.am): Likewise.
65795         * modules/getndelim2 (Makefile.am): Likewise.
65796         * modules/getopt (Makefile.am): Likewise.
65797         * modules/getpagesize (Makefile.am): Likewise.
65798         * modules/getpass-gnu (Makefile.am): Likewise.
65799         * modules/getpass (Makefile.am): Likewise.
65800         * modules/getsubopt (Makefile.am): Likewise.
65801         * modules/gettime (Makefile.am): Likewise.
65802         * modules/gettimeofday (Makefile.am): Likewise.
65803         * modules/getugroups (Makefile.am): Likewise.
65804         * modules/getusershell (Makefile.am): Likewise.
65805         * modules/glob (Makefile.am): Likewise.
65806         * modules/group-member (Makefile.am): Likewise.
65807         * modules/hard-locale (Makefile.am): Likewise.
65808         * modules/hash (Makefile.am): Likewise.
65809         * modules/hmac-md5 (Makefile.am): Likewise.
65810         * modules/hmac-sha1 (Makefile.am): Likewise.
65811         * modules/human (Makefile.am): Likewise.
65812         * modules/idcache (Makefile.am): Likewise.
65813         * modules/imaxabs (Makefile.am): Likewise.
65814         * modules/imaxdiv (Makefile.am): Likewise.
65815         * modules/inet_ntop (Makefile.am): Likewise.
65816         * modules/inet_pton (Makefile.am): Likewise.
65817         * modules/intprops (Makefile.am): Likewise.
65818         * modules/inttostr (Makefile.am): Likewise.
65819         * modules/inttypes (Makefile.am): Likewise.
65820         * modules/isapipe (Makefile.am): Likewise.
65821         * modules/javaversion (Makefile.am): Likewise.
65822         * modules/lchmod (Makefile.am): Likewise.
65823         * modules/lchown (Makefile.am): Likewise.
65824         * modules/localcharset (Makefile.am): Likewise.
65825         * modules/long-options (Makefile.am): Likewise.
65826         * modules/lstat (Makefile.am): Likewise.
65827         * modules/malloc (Makefile.am): Likewise.
65828         * modules/mathl (Makefile.am): Likewise.
65829         * modules/mbchar (Makefile.am): Likewise.
65830         * modules/md2 (Makefile.am): Likewise.
65831         * modules/md4 (Makefile.am): Likewise.
65832         * modules/md5 (Makefile.am): Likewise.
65833         * modules/memcasecmp (Makefile.am): Likewise.
65834         * modules/memchr (Makefile.am): Likewise.
65835         * modules/memcmp (Makefile.am): Likewise.
65836         * modules/memcoll (Makefile.am): Likewise.
65837         * modules/memcpy (Makefile.am): Likewise.
65838         * modules/memmem (Makefile.am): Likewise.
65839         * modules/memmove (Makefile.am): Likewise.
65840         * modules/mempcpy (Makefile.am): Likewise.
65841         * modules/memrchr (Makefile.am): Likewise.
65842         * modules/memset (Makefile.am): Likewise.
65843         * modules/memxor (Makefile.am): Likewise.
65844         * modules/mkancesdirs (Makefile.am): Likewise.
65845         * modules/mkdir-p (Makefile.am): Likewise.
65846         * modules/mkdir (Makefile.am): Likewise.
65847         * modules/mkdtemp (Makefile.am): Likewise.
65848         * modules/mkstemp (Makefile.am): Likewise.
65849         * modules/mktime (Makefile.am): Likewise.
65850         * modules/modechange (Makefile.am): Likewise.
65851         * modules/mountlist (Makefile.am): Likewise.
65852         * modules/nanosleep (Makefile.am): Likewise.
65853         * modules/obstack (Makefile.am): Likewise.
65854         * modules/openat (Makefile.am): Likewise.
65855         * modules/pagealign_alloc (Makefile.am): Likewise.
65856         * modules/pathmax (Makefile.am): Likewise.
65857         * modules/physmem (Makefile.am): Likewise.
65858         * modules/poll (Makefile.am): Likewise.
65859         * modules/posixtm (Makefile.am): Likewise.
65860         * modules/posixver (Makefile.am): Likewise.
65861         * modules/putenv (Makefile.am): Likewise.
65862         * modules/quote (Makefile.am): Likewise.
65863         * modules/quotearg (Makefile.am): Likewise.
65864         * modules/raise (Makefile.am): Likewise.
65865         * modules/read-file (Makefile.am): Likewise.
65866         * modules/readline (Makefile.am): Likewise.
65867         * modules/readlink (Makefile.am): Likewise.
65868         * modules/readtokens (Makefile.am): Likewise.
65869         * modules/readutmp (Makefile.am): Likewise.
65870         * modules/realloc (Makefile.am): Likewise.
65871         * modules/regex (Makefile.am): Likewise.
65872         * modules/rename-dest-slash (Makefile.am): Likewise.
65873         * modules/rename (Makefile.am): Likewise.
65874         * modules/rijndael (Makefile.am): Likewise.
65875         * modules/rmdir (Makefile.am): Likewise.
65876         * modules/rpmatch (Makefile.am): Likewise.
65877         * modules/safe-read (Makefile.am): Likewise.
65878         * modules/safe-write (Makefile.am): Likewise.
65879         * modules/same-inode (Makefile.am): Likewise.
65880         * modules/same (Makefile.am): Likewise.
65881         * modules/save-cwd (Makefile.am): Likewise.
65882         * modules/savedir (Makefile.am): Likewise.
65883         * modules/setenv (Makefile.am): Likewise.
65884         * modules/settime (Makefile.am): Likewise.
65885         * modules/sha1 (Makefile.am): Likewise.
65886         * modules/sig2str (Makefile.am): Likewise.
65887         * modules/snprintf (Makefile.am): Likewise.
65888         * modules/stat-macros (Makefile.am): Likewise.
65889         * modules/stat-time (Makefile.am): Likewise.
65890         * modules/stdbool (Makefile.am): Likewise.
65891         * modules/stdint (Makefile.am): Likewise.
65892         * modules/stdlib-safer (Makefile.am): Likewise.
65893         * modules/stpcpy (Makefile.am): Likewise.
65894         * modules/stpncpy (Makefile.am): Likewise.
65895         * modules/strcase (Makefile.am): Likewise.
65896         * modules/strcasestr (Makefile.am): Likewise.
65897         * modules/strchrnul (Makefile.am): Likewise.
65898         * modules/strcspn (Makefile.am): Likewise.
65899         * modules/strdup (Makefile.am): Likewise.
65900         * modules/strerror (Makefile.am): Likewise.
65901         * modules/strftime (Makefile.am): Likewise.
65902         * modules/strndup (Makefile.am): Likewise.
65903         * modules/strnlen (Makefile.am): Likewise.
65904         * modules/strpbrk (Makefile.am): Likewise.
65905         * modules/strsep (Makefile.am): Likewise.
65906         * modules/strstr (Makefile.am): Likewise.
65907         * modules/strtod (Makefile.am): Likewise.
65908         * modules/strtoimax (Makefile.am): Likewise.
65909         * modules/strtok_r (Makefile.am): Likewise.
65910         * modules/strtol (Makefile.am): Likewise.
65911         * modules/strtoll (Makefile.am): Likewise.
65912         * modules/strtoul (Makefile.am): Likewise.
65913         * modules/strtoull (Makefile.am): Likewise.
65914         * modules/strtoumax (Makefile.am): Likewise.
65915         * modules/strverscmp (Makefile.am): Likewise.
65916         * modules/sys_socket (Makefile.am): Likewise.
65917         * modules/sys_stat (Makefile.am): Likewise.
65918         * modules/sysexits (Makefile.am): Likewise.
65919         * modules/time_r (Makefile.am): Likewise.
65920         * modules/timegm (Makefile.am): Likewise.
65921         * modules/timespec (Makefile.am): Likewise.
65922         * modules/tmpfile-safer (Makefile.am): Likewise.
65923         * modules/trim (Makefile.am): Likewise.
65924         * modules/unistd-safer (Makefile.am): Likewise.
65925         * modules/unlinkdir (Makefile.am): Likewise.
65926         * modules/unlocked-io (Makefile.am): Likewise.
65927         * modules/userspec (Makefile.am): Likewise.
65928         * modules/utime (Makefile.am): Likewise.
65929         * modules/utimecmp (Makefile.am): Likewise.
65930         * modules/utimens (Makefile.am): Likewise.
65931         * modules/vasnprintf (Makefile.am): Likewise.
65932         * modules/vasprintf (Makefile.am): Likewise.
65933         * modules/vsnprintf (Makefile.am): Likewise.
65934         * modules/xalloc (Makefile.am): Likewise.
65935         * modules/xgetcwd (Makefile.am): Likewise.
65936         * modules/xnanosleep (Makefile.am): Likewise.
65937         * modules/xreadlink (Makefile.am): Likewise.
65938         * modules/xstrtod (Makefile.am): Likewise.
65939         * modules/xstrtol (Makefile.am): Likewise.
65940         * modules/xstrtold (Makefile.am): Likewise.
65941         * modules/yesno (Makefile.am): Likewise.
65942         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65943
65944 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * modules/error (Makefile.am): Distribute files through
65947         EXTRA_DIST, not lib_SOURCES.
65948
65949 2006-10-12  Eric Blake  <ebb9@byu.net>
65950
65951         * modules/error (Makefile.am): Distribute files in /lib.
65952         * modules/obstack (Makefile.am): Likewise.
65953
65954 2006-10-12  Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/acl (Makefile.am): Distribute all files in lib/ through
65957         EXTRA_DIST.
65958         * modules/arcfour (Makefile.am): Likewise.
65959         * modules/arctwo (Makefile.am): Likewise.
65960         * modules/argmatch (Makefile.am): Likewise.
65961         * modules/argz (Makefile.am): Likewise.
65962         * modules/atexit (Makefile.am): Likewise.
65963         * modules/backupfile (Makefile.am): Likewise.
65964         * modules/c-strtod (Makefile.am): Likewise.
65965         * modules/c-strtold (Makefile.am): Likewise.
65966         * modules/calloc (Makefile.am): Likewise.
65967         * modules/canon-host (Makefile.am): Likewise.
65968         * modules/canonicalize (Makefile.am): Likewise.
65969         * modules/chdir-long (Makefile.am): Likewise.
65970         * modules/chdir-safer (Makefile.am): Likewise.
65971         * modules/check-version (Makefile.am): Likewise.
65972         * modules/chown (Makefile.am): Likewise.
65973         * modules/cloexec (Makefile.am): Likewise.
65974         * modules/close-stream (Makefile.am): Likewise.
65975         * modules/closeout (Makefile.am): Likewise.
65976         * modules/crc (Makefile.am): Likewise.
65977         * modules/cycle-check (Makefile.am): Likewise.
65978         * modules/des (Makefile.am): Likewise.
65979         * modules/dirfd (Makefile.am): Likewise.
65980         * modules/dirname (Makefile.am): Likewise.
65981         * modules/dup2 (Makefile.am): Likewise.
65982         * modules/euidaccess (Makefile.am): Likewise.
65983         * modules/exclude (Makefile.am): Likewise.
65984         * modules/exitfail (Makefile.am): Likewise.
65985         * modules/fcntl-safer (Makefile.am): Likewise.
65986         * modules/file-type (Makefile.am): Likewise.
65987         * modules/fileblocks (Makefile.am): Likewise.
65988         * modules/filemode (Makefile.am): Likewise.
65989         * modules/filenamecat (Makefile.am): Likewise.
65990         * modules/fnmatch (Makefile.am): Likewise.
65991         * modules/fopen-safer (Makefile.am): Likewise.
65992         * modules/fpending (Makefile.am): Likewise.
65993         * modules/fprintftime (Makefile.am): Likewise.
65994         * modules/free (Makefile.am): Likewise.
65995         * modules/fsusage (Makefile.am): Likewise.
65996         * modules/ftruncate (Makefile.am): Likewise.
65997         * modules/fts (Makefile.am): Likewise.
65998         * modules/gc (Makefile.am): Likewise.
65999         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66000         * modules/getaddrinfo (Makefile.am): Likewise.
66001         * modules/getcwd (Makefile.am): Likewise.
66002         * modules/getdelim (Makefile.am): Likewise.
66003         * modules/getdomainname (Makefile.am): Likewise.
66004         * modules/getgroups (Makefile.am): Likewise.
66005         * modules/gethostname (Makefile.am): Likewise.
66006         * modules/gethrxtime (Makefile.am): Likewise.
66007         * modules/getline (Makefile.am): Likewise.
66008         * modules/getloadavg (Makefile.am): Likewise.
66009         * modules/getlogin_r (Makefile.am): Likewise.
66010         * modules/getopt (Makefile.am): Likewise.
66011         * modules/getpass (Makefile.am): Likewise.
66012         * modules/getpass-gnu (Makefile.am): Likewise.
66013         * modules/getsubopt (Makefile.am): Likewise.
66014         * modules/gettime (Makefile.am): Likewise.
66015         * modules/gettimeofday (Makefile.am): Likewise.
66016         * modules/getugroups (Makefile.am): Likewise.
66017         * modules/getusershell (Makefile.am): Likewise.
66018         * modules/glob (Makefile.am): Likewise.
66019         * modules/group-member (Makefile.am): Likewise.
66020         * modules/hard-locale (Makefile.am): Likewise.
66021         * modules/hash (Makefile.am): Likewise.
66022         * modules/hmac-md5 (Makefile.am): Likewise.
66023         * modules/hmac-sha1 (Makefile.am): Likewise.
66024         * modules/human (Makefile.am): Likewise.
66025         * modules/idcache (Makefile.am): Likewise.
66026         * modules/imaxabs (Makefile.am): Likewise.
66027         * modules/imaxdiv (Makefile.am): Likewise.
66028         * modules/inet_ntop (Makefile.am): Likewise.
66029         * modules/inet_pton (Makefile.am): Likewise.
66030         * modules/inttostr (Makefile.am): Likewise.
66031         * modules/isapipe (Makefile.am): Likewise.
66032         * modules/lchown (Makefile.am): Likewise.
66033         * modules/long-options (Makefile.am): Likewise.
66034         * modules/lstat (Makefile.am): Likewise.
66035         * modules/malloc (Makefile.am): Likewise.
66036         * modules/mathl (Makefile.am): Likewise.
66037         * modules/mbchar (Makefile.am): Likewise.
66038         * modules/md2 (Makefile.am): Likewise.
66039         * modules/md4 (Makefile.am): Likewise.
66040         * modules/md5 (Makefile.am): Likewise.
66041         * modules/memcasecmp (Makefile.am): Likewise.
66042         * modules/memchr (Makefile.am): Likewise.
66043         * modules/memcmp (Makefile.am): Likewise.
66044         * modules/memcoll (Makefile.am): Likewise.
66045         * modules/memcpy (Makefile.am): Likewise.
66046         * modules/memmem (Makefile.am): Likewise.
66047         * modules/memmove (Makefile.am): Likewise.
66048         * modules/mempcpy (Makefile.am): Likewise.
66049         * modules/memrchr (Makefile.am): Likewise.
66050         * modules/memset (Makefile.am): Likewise.
66051         * modules/memxor (Makefile.am): Likewise.
66052         * modules/mkancesdirs (Makefile.am): Likewise.
66053         * modules/mkdir (Makefile.am): Likewise.
66054         * modules/mkdir-p (Makefile.am): Likewise.
66055         * modules/mkdtemp (Makefile.am): Likewise.
66056         * modules/mkstemp (Makefile.am): Likewise.
66057         * modules/mktime (Makefile.am): Likewise.
66058         * modules/modechange (Makefile.am): Likewise.
66059         * modules/mountlist (Makefile.am): Likewise.
66060         * modules/nanosleep (Makefile.am): Likewise.
66061         * modules/openat (Makefile.am): Likewise.
66062         * modules/pagealign_alloc (Makefile.am): Likewise.
66063         * modules/physmem (Makefile.am): Likewise.
66064         * modules/poll (Makefile.am): Likewise.
66065         * modules/posixtm (Makefile.am): Likewise.
66066         * modules/posixver (Makefile.am): Likewise.
66067         * modules/putenv (Makefile.am): Likewise.
66068         * modules/quote (Makefile.am): Likewise.
66069         * modules/quotearg (Makefile.am): Likewise.
66070         * modules/raise (Makefile.am): Likewise.
66071         * modules/read-file (Makefile.am): Likewise.
66072         * modules/readline (Makefile.am): Likewise.
66073         * modules/readlink (Makefile.am): Likewise.
66074         * modules/readtokens (Makefile.am): Likewise.
66075         * modules/readutmp (Makefile.am): Likewise.
66076         * modules/realloc (Makefile.am): Likewise.
66077         * modules/regex (Makefile.am): Likewise.
66078         * modules/rename (Makefile.am): Likewise.
66079         * modules/rename-dest-slash (Makefile.am): Likewise.
66080         * modules/rijndael (Makefile.am): Likewise.
66081         * modules/rmdir (Makefile.am): Likewise.
66082         * modules/rpmatch (Makefile.am): Likewise.
66083         * modules/safe-read (Makefile.am): Likewise.
66084         * modules/safe-write (Makefile.am): Likewise.
66085         * modules/same (Makefile.am): Likewise.
66086         * modules/save-cwd (Makefile.am): Likewise.
66087         * modules/savedir (Makefile.am): Likewise.
66088         * modules/setenv (Makefile.am): Likewise.
66089         * modules/settime (Makefile.am): Likewise.
66090         * modules/sha1 (Makefile.am): Likewise.
66091         * modules/sig2str (Makefile.am): Likewise.
66092         * modules/snprintf (Makefile.am): Likewise.
66093         * modules/stdlib-safer (Makefile.am): Likewise.
66094         * modules/stpcpy (Makefile.am): Likewise.
66095         * modules/stpncpy (Makefile.am): Likewise.
66096         * modules/strcase (Makefile.am): Likewise.
66097         * modules/strcasestr (Makefile.am): Likewise.
66098         * modules/strchrnul (Makefile.am): Likewise.
66099         * modules/strcspn (Makefile.am): Likewise.
66100         * modules/strdup (Makefile.am): Likewise.
66101         * modules/strerror (Makefile.am): Likewise.
66102         * modules/strftime (Makefile.am): Likewise.
66103         * modules/strndup (Makefile.am): Likewise.
66104         * modules/strnlen (Makefile.am): Likewise.
66105         * modules/strpbrk (Makefile.am): Likewise.
66106         * modules/strsep (Makefile.am): Likewise.
66107         * modules/strstr (Makefile.am): Likewise.
66108         * modules/strtod (Makefile.am): Likewise.
66109         * modules/strtoimax (Makefile.am): Likewise.
66110         * modules/strtok_r (Makefile.am): Likewise.
66111         * modules/strtol (Makefile.am): Likewise.
66112         * modules/strtoll (Makefile.am): Likewise.
66113         * modules/strtoul (Makefile.am): Likewise.
66114         * modules/strtoull (Makefile.am): Likewise.
66115         * modules/strtoumax (Makefile.am): Likewise.
66116         * modules/strverscmp (Makefile.am): Likewise.
66117         * modules/time_r (Makefile.am): Likewise.
66118         * modules/timegm (Makefile.am): Likewise.
66119         * modules/tmpfile-safer (Makefile.am): Likewise.
66120         * modules/unistd-safer (Makefile.am): Likewise.
66121         * modules/unlinkdir (Makefile.am): Likewise.
66122         * modules/userspec (Makefile.am): Likewise.
66123         * modules/utime (Makefile.am): Likewise.
66124         * modules/utimecmp (Makefile.am): Likewise.
66125         * modules/utimens (Makefile.am): Likewise.
66126         * modules/vasnprintf (Makefile.am): Likewise.
66127         * modules/vasprintf (Makefile.am): Likewise.
66128         * modules/vsnprintf (Makefile.am): Likewise.
66129         * modules/xalloc (Makefile.am): Likewise.
66130         * modules/xgetcwd (Makefile.am): Likewise.
66131         * modules/xnanosleep (Makefile.am): Likewise.
66132         * modules/xreadlink (Makefile.am): Likewise.
66133         * modules/xstrtod (Makefile.am): Likewise.
66134         * modules/xstrtol (Makefile.am): Likewise.
66135         * modules/xstrtold (Makefile.am): Likewise.
66136         * modules/yesno (Makefile.am): Likewise.
66137
66138 2006-10-12  Jim Meyering  <jim@meyering.net>
66139
66140         * m4/getloadavg.m4: Revert the change below.
66141
66142         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66143         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66144         fail with a symlink, which is what coreutils' ./bootstrap now
66145         creates by default.
66146
66147 2006-10-12  Bruno Haible  <bruno@clisp.org>
66148
66149         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66150         mingw.
66151         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66152         MSVC and mingw explicitly.
66153
66154 2006-10-11  Simon Josefsson  <jas@extundo.com>
66155             Bruno Haible  <bruno@clisp.org>
66156
66157         Add support for multiple gnulib-tool invocations in the scope of a
66158         single configure.ac file.
66159         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66160         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66161         with the same contents as the _LIBADD variable.
66162         (func_emit_initmacro_start, func_emit_initmacro_end,
66163         func_emit_initmacro_done): New functions.
66164         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66165         gl_LIBOBJS and gl_LTLIBOBJS.
66166
66167 2006-10-11  Bruno Haible  <bruno@clisp.org>
66168
66169         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66170         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66171         autoreconf. Instead, invoke autopoint explicitly but move back the
66172         *.m4 files from gnulib.
66173
66174 2006-10-11  Bruno Haible  <bruno@clisp.org>
66175
66176         * gnulib-tool (func_usage): Make module names after --create-testdir
66177         optional.
66178         (func_create_testdir): If no module was specified, use nearly all
66179         modules.
66180
66181 2006-10-12  Jim Meyering  <jim@meyering.net>
66182
66183         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66184         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66185         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66186         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66187         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66188         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66189         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66190         (fts_set_stat_required): New function.
66191         (fts_open): Defer the calls to fts_stat, if possible or requested.
66192         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66193         into fts_stat itself.
66194         (fts_read): Perform any required (deferred) fts_stat call.
66195         (fts_build): Likewise, for the directory we're about to open and read.
66196         In the readdir loop, carefully decide whether each entry will require
66197         an eventual call to fts_stat, using dirent.d_type info if available.
66198         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66199         a command line argument into this function.  Update all callers.
66200         Map a return value of FTS_DOT to FTS_D for a command line argument.
66201         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66202         Thanks to Miklos Szeredi for his tenacity and for the initial
66203         bug report about "find" failing on a FUSE-based file system.
66204
66205         * lib/fts.c (fts_open): Use consistent indentation.
66206
66207 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66208
66209         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66210         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66211         reported by Jim Meyering.  All uses of cache variables renamed
66212         to match Autoconf's.
66213         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66214         the other one.
66215
66216         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66217         Fix misspelling in diagnostic.
66218
66219 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66220
66221         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66222         defined.  Problem reported by Matthew Woehlke.
66223
66224         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66225         Add support for Tandem NonStop R series.
66226         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66227         Use new macro.
66228
66229         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66230         (has_trailing_slash): Omit size arg; all callers changed.
66231         Omit 'inline', since it doesn't help performance and we'd
66232         need to configure it.
66233         Don't count //, ///, etc. as having a trailing slash.
66234         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66235         (rpl_rename_dest_slash): On failure, use rename's errno rather
66236         than (in some cases) an incorrect or junk errno.
66237         Simplify code by removing need to compute length; this does
66238         cause it to make two passes instead of one over the file name,
66239         but it's worth it.
66240
66241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66242         change, since Autoconf's version may no longer be appropriate now
66243         that we are using CVS Autoconf's version.  Add support for Tandem.
66244
66245 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66246             Bruno Haible  <bruno@clisp.org>
66247
66248         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66249         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66250         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66251         gl_AC_TYPE_LONG_LONG.
66252
66253         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66254         instead of HAVE_LONG_LONG.
66255         * lib/printf-args.c (printf_fetchargs): Likewise.
66256         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66257         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66258         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66259         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66260         gl_AC_TYPE_LONG_LONG.
66261
66262 2006-10-11  Bruno Haible  <bruno@clisp.org>
66263
66264         * m4/longlong.m4: Add comments.
66265         * m4/ulonglong.m4: Likewise.
66266
66267 2006-10-10  Bruno Haible  <bruno@clisp.org>
66268
66269         Make it possible to #define stpcpy, strdup to aliases.
66270         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66271         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66272
66273 2006-10-10  Bruno Haible  <bruno@clisp.org>
66274
66275         Make it possible to #define gcd to an alias.
66276         * lib/gcd.c: Include config.h.
66277
66278 2006-10-10  Bruno Haible  <bruno@clisp.org>
66279
66280         Make it possible to #define c_isascii to an alias.
66281         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66282         defined. Undefine the macros before defining them, to avoid gcc
66283         warnings.
66284         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66285         define NO_C_CTYPE_MACROS early.
66286
66287 2006-10-10  Bruno Haible  <bruno@clisp.org>
66288
66289         Make it possible to #define set_program_name to an alias.
66290         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66291         ENABLE_RELOCATABLE early.
66292
66293 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66294
66295         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66296         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66297         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66298         More generally, don't assume that 64-bit signed int is available
66299         if unsigned int is, and vice versa.
66300         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66301         unsigned symbols, not on their signed counterparts.
66302         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66303         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66304         (UINT64_C, UINTMAX_C):
66305         Likewise.
66306         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66307         unsigned counterparts.
66308         (Have_long_long, Unsigned): New macros.
66309         (Int): Renamed from INT.
66310         (strtoimax): Use the new macros.
66311         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66312         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66313         * modules/inttypes (inttypes.h): Substitute
66314         HAVE_UNSIGNED_LONG_LONG_INT.
66315         * modules/stdint (stdint.h): Likewise.
66316         (Files): Add m4/ulonglong.m4.
66317
66318 2006-10-10  Bruno Haible  <bruno@clisp.org>
66319
66320         Fix a gcc -Wshadow warning.
66321         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66322         to 'bucket'.
66323         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66324         gl_linked_indexof_from_to): Likewise.
66325         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66326         Likewise.
66327         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66328         Likewise.
66329         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66330         Reported by Eric Blake.
66331
66332 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66333
66334         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66335         for NetBSD.  Problem reported by Bruno Haible.
66336
66337 2006-10-09  Jim Meyering  <jim@meyering.net>
66338
66339         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66340         Patch from Bruno Haible.
66341
66342 2006-10-09  Jim Meyering  <jim@meyering.net>
66343
66344         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66345         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66346         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66347
66348 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         Don't include <config.h> twice; this doesn't work in some cases,
66351         e.g., when config.h has "#define intmax_t long long int" and
66352         we include <config.h>, <inttypes.h>, <config.h> in that order.
66353         Problem reported by Matthew Woehlke in:
66354         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66355         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66356         * lib/fts-cycle.c: Don't include config.h.
66357         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66358         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66359         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66360         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66361         inttypes.h.
66362         * lib/xstrtoumax.c: Likewise.
66363         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66364         __strtol and the like, so that this module is more like its siblings.
66365         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66366         Remove; no longer needed now that we assume gnulib inttypes.h.
66367
66368 2006-10-08  Bruno Haible  <bruno@clisp.org>
66369
66370         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66371         option.
66372
66373 2006-10-07  Jim Meyering  <jim@meyering.net>
66374
66375         * modules/inttypes (inttypes.h): Revert what seems to have been
66376         an inadvertent part of today's change: use "|", not "/" in the
66377         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66378
66379 2006-10-07  Bruno Haible  <bruno@clisp.org>
66380
66381         * modules/sublist: New file.
66382
66383 2006-10-07  Bruno Haible  <bruno@clisp.org>
66384
66385         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66386         * modules/argz (argz.h): Likewise.
66387         * modules/arpa_inet (arpa/inet.h): Likewise.
66388         * modules/byteswap (byteswap.h): Likewise.
66389         * modules/configmake (configmake.h): Likewise.
66390         * modules/fcntl (fcntl.h): Likewise.
66391         * modules/fnmatch (fnmatch.h): Likewise.
66392         * modules/getopt (getopt.h): Likewise.
66393         * modules/glob (glob.h): Likewise.
66394         * modules/inttypes (inttypes.h): Likewise.
66395         * modules/netinet_in (netinet/in.h): Likewise.
66396         * modules/poll (poll.h): Likewise.
66397         * modules/stdbool (stdbool.h): Likewise.
66398         * modules/stdint (stdint.h): Likewise.
66399         * modules/sys_select (sys/select.h): Likewise.
66400         * modules/sys_socket (sys/socket.h): Likewise.
66401         * modules/sys_stat (sys/stat.h): Likewise.
66402         * modules/sysexits (sysexits.h): Likewise.
66403         * modules/unistd (unistd.h): Likewise.
66404         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66405         Add a "DO NOT EDIT" comment to the generated file.
66406         (func_import): Likewise for gnulib-comp.m4.
66407
66408 2006-10-07  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/gl_sublist.h: New file.
66411         * lib/gl_sublist.c: New file.
66412
66413 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66416         name (relative to the original working directory) and the file
66417         name component (relative to the temporary working directory).  All
66418         callers changed.
66419         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66420         * lib/mkdir-p.c (make_dir_parents): Likewise.
66421         * lib/mkdir-p.h (make_dir_parents): Likewise.
66422
66423 2006-10-06  Eric Blake  <ebb9@byu.net>
66424
66425         Define several macros for use by the clean-temp module.
66426         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66428         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66429
66430         * lib/clean-temp.h (close_stream_temp): New declaration.
66431         * lib/clean-temp.c (includes): Pull in headers according to what
66432         other modules are in use.
66433         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66434
66435 2006-10-06  Bruno Haible  <bruno@clisp.org>
66436
66437         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66438         instead of fopen, fwriteerror.
66439
66440 2006-10-06  Bruno Haible  <bruno@clisp.org>
66441
66442         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66443         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66444         int.
66445         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66446         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66447         Return an error indicator.
66448         Suggested by Eric Blake.
66449
66450 2006-10-06  Bruno Haible  <bruno@clisp.org>
66451
66452         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66453         Reported by Eric Blake.
66454
66455 2006-10-06  Bruno Haible  <bruno@clisp.org>
66456
66457         * modules/closeout (Description): Mention stderr too.
66458
66459 2006-10-06  Bruno Haible  <bruno@clisp.org>
66460         and Paul Eggert  <eggert@cs.ucla.edu>
66461
66462         * lib/closeout.c (close_stdout): Also close stderr.
66463         * lib/closeout.h: Update comment.
66464
66465 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66468         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66469         * lib/dirchownmod.c: Include lchown.h.
66470         * lib/lchown.c: Don't include files that lchown.h now includes.
66471         Don't declare chown, since lchown.h now does that.
66472         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66473         (lchown): Define to rpl_chown if lchown is declared but
66474         does not exist.  Declare using a prototype if lchown is not
66475         declared.  Add a copyright notice.
66476         * lib/mkstemp.h: Include <unistd.h>.
66477         * lib/openat.c: Include lchown.h.
66478
66479         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66480         we now test for that separately.
66481         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66482         rather than O_NOFOLLOW, when testing whether it's possible to
66483         avoid a race condition reliably.
66484         * lib/savewd.c (savewd_chdir): Likewise.
66485
66486         Remove macros that are no longer needed now that stdint.h is
66487         reliable.
66488         * lib/fsusage.c (UINTMAX_MAX): Remove.
66489         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66490         * lib/utimecmp.c (SIZE_MAX): Remove.
66491
66492         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66493
66494         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66495         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66496         O_NOATIME works.
66497
66498 2006-10-05  Bruno Haible  <bruno@clisp.org>
66499
66500         * lib/gl_list.h (gl_sortedlist_search_from_to,
66501         gl_sortedlist_indexof_from_to): New declarations.
66502         (gl_list_implementation): New fields sortedlist_search_from_to,
66503         sortedlist_indexof_from_to.
66504         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66505         inline functions.
66506         * lib/gl_list.c (gl_sortedlist_search_from_to,
66507         gl_sortedlist_indexof_from_to): New functions.
66508         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66509         function.
66510         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66511         (gl_array_sortedlist_search_from_to): New function.
66512         (gl_array_list_implementation): Update.
66513         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66514         function.
66515         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66516         (gl_carray_sortedlist_search_from_to): New function.
66517         (gl_carray_list_implementation): Update.
66518         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66519         gl_linked_sortedlist_indexof_from_to): New functions.
66520         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66521         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66522         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66523         gl_tree_sortedlist_indexof_from_to): New functions.
66524         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66525         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66526         Update.
66527         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66528         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66529         Update.
66530
66531 2006-10-05  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66534         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66535         (struct gl_list_implementation): Add fields search_from_to,
66536         indexof_from_to. Remove fields search, indexof.
66537         (gl_list_search): Use the search_from_to method.
66538         (gl_list_search_from, gl_list_search_from_to): New functions.
66539         (gl_list_indexof): Use the indexof_from_to method.
66540         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66541         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66542         (gl_list_search_from, gl_list_search_from_to): New functions.
66543         (gl_list_indexof): Use the indexof_from_to method.
66544         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66545         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66546         gl_array_indexof. Add start_index, end_index arguments.
66547         (gl_array_search_from_to): Renamed from gl_array_search. Add
66548         start_index, end_index arguments.
66549         (gl_array_remove, gl_array_list_implementation): Update.
66550         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66551         gl_carray_indexof. Add start_index, end_index arguments.
66552         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66553         start_index, end_index arguments.
66554         (gl_carray_remove, gl_carray_list_implementation): Update.
66555         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66556         gl_linked_search. Add start_index, end_index arguments.
66557         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66558         start_index, end_index arguments.
66559         (gl_linked_remove): Update.
66560         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66561         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66562         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66563         field to 'size_t'.
66564         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66565         gl_tree_search. Add start_index, end_index arguments.
66566         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66567         start_index, end_index arguments.
66568         (gl_tree_remove): Update.
66569         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66570         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66571         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66572         function.
66573         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66574         gl_tree_search. Add start_index, end_index arguments.
66575         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66576         start_index, end_index arguments.
66577         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66578         Update.
66579         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66580
66581 2006-10-05  Bruno Haible  <bruno@clisp.org>
66582
66583         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66584
66585         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66586         fwriteerror_temp): New declarations.
66587         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66588         (descriptors): New variable.
66589         (cleanup): First, close the descriptors.
66590         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66591         fclose_temp, fwriteerror_temp): New functions.
66592
66593 2006-10-04  Jim Meyering  <jim@meyering.net>
66594
66595         * lib/fts.c (fts_open): Tiny comment change.
66596
66597 2006-10-04  Bruno Haible  <bruno@clisp.org>
66598
66599         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66600         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66601         gl_LOCK_BODY.
66602         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66603         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66604         gl_LOCK_EARLY_BODY.
66605         (gl_LOCK): Require gl_LOCK_BODY.
66606
66607 2006-10-04  Bruno Haible  <bruno@clisp.org>
66608
66609         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66610         (gl_oset_search_atleast): New declaration.
66611         (struct gl_oset_implementation): Add field 'search_atleast'.
66612         (gl_oset_search_atleast): New inline function.
66613         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66614         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66615         (gl_array_oset_implementation): Update.
66616         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66617         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66618         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66619
66620 2006-10-04  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66623
66624 2006-10-03  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66627         from gl_avltreehash_list_implementation.
66628
66629 2006-10-03  Bruno Haible  <bruno@clisp.org>
66630
66631         * lib/gl_oset.c (gl_oset_add): Fix return type.
66632
66633 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66634
66635         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66636
66637 2006-10-02  Eric Blake  <ebb9@byu.net>
66638
66639         * modules/strnlen (Depends-on): Add extensions.
66640
66641 2006-10-02  Eric Blake  <ebb9@byu.net>
66642
66643         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66644         definition in 2.60+.
66645
66646 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66647
66648         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66649         checks.
66650
66651 2006-10-02  Bruno Haible  <bruno@clisp.org>
66652
66653         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66654         to the AUTOMAKE_OPTIONS.
66655         Reported by Jim Meyering.
66656
66657 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66658
66659         Work around bug in Solaris 10 /proc file system:
66660         /proc/self/fd/NNN/.. isn't the parent directory of
66661         the directory whose file descriptor is NNN.  This needs to
66662         be worked around at run time, not compile time, since a
66663         program might be built on Solaris 8, where things work, and
66664         run on Solaris 10.
66665         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66666         to use the following interface instead:
66667         (OPENAT_BUFFER_SIZE): New macro.
66668         (openat_proc_name): New function.
66669         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66670         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66671         Likewise.
66672         * lib/openat-proc.c: New file.
66673         * modules/openat (Files): Add lib/openat-proc.c.
66674         (Depends-on): Add same-inode, stdbool.
66675         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66676
66677 2006-09-29  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66680         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66681         argument. Set stdout_closed before testing for ferror, not after.
66682         (fwriteerror, fwriteerror_no_ebadf): New functions.
66683
66684 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66685
66686         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66687
66688 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66689
66690         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66691         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66692
66693 2006-09-28  Jim Meyering  <jim@meyering.net>
66694
66695         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66696         Include <unistd.h>.
66697
66698 2006-09-28  Bruno Haible  <bruno@clisp.org>
66699
66700         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66701         * modules/linkedhash-list (Depends-on): Likewise.
66702         * modules/rbtreehash-list (Depends-on): Likewise.
66703
66704 2006-09-28  Bruno Haible  <bruno@clisp.org>
66705
66706         * lib/strndup.h: Simplify the redefinition of strndup.
66707         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66709
66710 2006-09-28  Bruno Haible  <bruno@clisp.org>
66711
66712         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66713         * lib/gl_linkedhash_list.c: Likewise.
66714         * lib/gl_rbtreehash_list.c: Likewise.
66715
66716 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66717
66718         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66719         getaddrinfo.
66720
66721         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66722         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66723         it causes <stdio_ext.h> to cause a compile-time error.
66724         Problem reported by Nelson H. F. Beebe.
66725         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66726         of HAVE_DECL___PENDING.
66727
66728         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66729         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66730         declaration.
66731
66732 2006-09-27  Jim Meyering  <jim@meyering.net>
66733
66734         This file could end up with a definition for a function
66735         named __strndup, rather than rpl_strndup on a system with
66736         incomplete weak_alias support.
66737         * lib/strndup.c (strndup): Rename from __strndup.
66738         Remove #defines that used to map __strndup to strndup.
66739         Don't use K&R prototypes.
66740         Remove LIBC-related code, since this file is not sync'd with glibc.
66741         * lib/strndup.h: Revamp, accordingly.
66742         * m4/strndup.m4: Modernize.
66743
66744 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66745
66746         * modules/savewd (Depends-on): Add 'raise'.
66747         * lib/savewd.c: Include <signal.h>, for 'raise'.
66748
66749 2006-09-26  Jim Meyering  <jim@meyering.net>
66750
66751         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66752         when we detect Darwin 8.7.0's acl_get_file bug.
66753         Rearrange to perform the new (below) run-test while $LIBS
66754         contains any acl-related library.  Set USE_ACL at the end.
66755         (gl_ACL_GET_FILE): New function.
66756
66757 2006-09-26  Eric Blake  <ebb9@byu.net>
66758
66759         * lib/verror.c: Include <config.h> unconditionally.
66760
66761 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66762
66763         * modules/clock-time (Maintainer): Add self.
66764         * modules/getlogin_r (Depends-on): Add extensions.
66765
66766 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66767
66768         * modules/clock-time: New module.
66769         * modules/nanosleep (Depends-on): Add clock-time.
66770         * modules/gethrxtime (Depends-on): Likewise.
66771         * modules/gettime (Depends-on): Likewise.
66772         * modules/settime (Depends-on): Likewise.
66773
66774         * modules/fts-lgpl: Depend on openat.
66775         * modules/mkancesdirs: Depend on savewd.
66776         * modules/mkdir-p: Likewise.
66777
66778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66779
66780         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66781
66782         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66783         `gl_have_arbitrary_file_name_length_limit' to
66784         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66785         actually works between configure runs.
66786
66787 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66788             Bruno Haible  <bruno@clisp.org>
66789
66790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66791
66792 2006-09-25  Jim Meyering  <jim@meyering.net>
66793
66794         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66795         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66796
66797 2006-09-25  Eric Blake  <ebb9@byu.net>
66798
66799         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66800         exec's in 2006-09-18 patch when shuffling fds.
66801
66802 2006-09-25  Bruno Haible  <bruno@clisp.org>
66803
66804         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66805         Reported by Jim Meyering.
66806
66807 2006-09-24  Jim Meyering  <jim@meyering.net>
66808
66809         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66810         compare a pointer against a literal "0".  That caused failures with
66811         at least HP-UX's hpcc.
66812
66813 2006-09-22  Simon Josefsson  <jas@extundo.com>
66814
66815         * modules/gc-sha1:
66816         * modules/gc-md4:
66817         * modules/gc-hmac-sha1:
66818         * modules/gc-hmac-md5:
66819         * modules/gc-des:
66820         * modules/gc-arcfour: Distribute more files.
66821
66822 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66823
66824         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66825         (gl_linked_iterator_from_to): Initialize struct completely.
66826         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66827         (gl_tree_iterator_from_to): Likewise
66828         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66829         * lib/gl_array_list.c [lint] (gl_array_iterator)
66830         (gl_array_iterator_from_to): Likewise.
66831         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66832         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66833         (gl_carray_iterator_from_to): Likewise.
66834
66835         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66836         * lib/md4.c (md4_process_block): Remove unused variable.
66837         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66838         parentheses for clarity.
66839
66840 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66841
66842         * modules/bison-i18n (Depends-on): Add gettext.
66843
66844 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66845
66846         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66847         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66848         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66849         also add missing comma that caused broken test.
66850         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66851         stdlib.h, for `abort'.
66852         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66853         variables.
66854         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66855         include unistd.h if present, for `rmdir'.
66856         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66857         variables.
66858         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66859         in the process include standard headers for prototypes.
66860         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66861         gets declared on GNU/Linux.
66862         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66863         unistd.h, for `rmdir'.
66864         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66865
66866         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66867         always true.
66868         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66869
66870         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66871
66872 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66873
66874         * gnulib-tool (func_version): Create output all at once.  This
66875         may help avoid triggering unnecessary SIGPIPEs, and at any
66876         rate it doesn't hurt.
66877
66878 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66879             Bruno Haible  <bruno@clisp.org>
66880
66881         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66882         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66883         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66884
66885         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66886         (gl_FUNC_VASPRINTF): Invoke it.
66887
66888 2006-09-22  Bruno Haible  <bruno@clisp.org>
66889
66890         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66891         getloadavg.c as first argument.
66892
66893 2006-09-22  Bruno Haible  <bruno@clisp.org>
66894
66895         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66896         at the beginning of the gl_INIT macro.
66897         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66898         gl_GETLOADAVG.
66899
66900 2006-09-22  Bruno Haible  <bruno@clisp.org>
66901
66902         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66903         module.
66904         Suggested by Ralf Wildenhues.
66905
66906 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66907
66908         Import this patch from libc:
66909
66910         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66911
66912         * lib/regex_internal.c (re_string_reconstruct): Handle
66913         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66914         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66915         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66916         re_string_context_at.
66917
66918         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66919         now requires it.
66920         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66921         gl_REGEX now does it for us.
66922         (gl_REGEX): Add test taken from
66923         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66924
66925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66926         Check that large offsets work.  Modernize Autoconf usages.
66927         Prefer "yes" to mean a good thing rather than a bad.
66928         Don't put "#define mkstemp" in config.h, as this might interfere
66929         with standard system headers that "#define mkstemp mkstemp64".
66930
66931         * modules/mkstemp (Depends-on): Add extensions, so that
66932         mkstemp is visible on some platforms.
66933         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66934         (Include): Change to "mkstemp.h" from <stdlib.h>.
66935         (Files): Add mkstemp.h.
66936
66937         * lib/mkstemp.h: New file, since some standard headers
66938         #define mkstemp.
66939         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66940         Include "mkstemp.h".
66941         Make the _LIBC code resemble glibc original more,
66942         e.g., use K&R style.
66943         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66944         (mkstemp): Remove, since mkstemp.h does this for us.
66945         * lib/stdlib--.h: Include mkstemp.h.
66946
66947         Import this patch from libc:
66948
66949         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66950
66951         * lib/tempname.c (__gen_tempname): Change attempts_min
66952         into a macro.  Use preprocessor to decide how to initialize
66953         attempts [Coverity CID 67].
66954
66955 2006-09-20  Bruno Haible  <bruno@clisp.org>
66956
66957         * lib/mkdtemp.c: Import from libc.
66958         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66959                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66960                 attempts_min into a macro.  Use preprocessor to decide how to
66961                 initialize attempts [Coverity CID 67].
66962         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66963                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66964                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66965
66966 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66967
66968         * gnulib-tool (func_exit): New function, to allow to pass the
66969         exit status portably through the trap.  Use everywhere.
66970         (--help, --version): Signal a write error.
66971         (trap): catch SIGPIPE, for write errors.
66972         Exit at the end of the trap, with the correct exit status.
66973
66974 2006-09-19  Karl Berry  <karl@gnu.org>
66975
66976         * doc/gnulib.texi: note about the license texinfo files.
66977
66978 2006-09-19  Eric Blake  <ebb9@byu.net>
66979
66980         * gnulib-tool: Avoid space-tab.
66981
66982 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66985         that prevented coreutils 6.1 from building.  Problem reported
66986         by Petter Reinholdtsen.
66987
66988 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66989
66990         * gnulib-tool (avoidlist): Fix typo that broke options like
66991         --avoid=lock that are used by coreutils bootstrap.
66992
66993 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66994
66995         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66996         more systematically.
66997
66998 2006-09-18  Jim Meyering  <jim@meyering.net>
66999
67000         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67001
67002 2006-09-18  Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67005
67006 2006-09-18  Bruno Haible  <bruno@clisp.org>
67007
67008         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67009         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67010         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67011         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67012         * m4/gettext.m4: Require autoconf >= 2.52.
67013         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67014         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67015         of gl_cv_header_inttypes_h.
67016
67017 2006-09-18  Bruno Haible  <bruno@clisp.org>
67018
67019         * lib/javaversion.c: Include configmake.h.
67020
67021 2006-09-18  Bruno Haible  <bruno@clisp.org>
67022
67023         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67024         avoid that the while loops be executed in a subshell.
67025
67026 2006-09-18  Bruno Haible  <bruno@clisp.org>
67027
67028         * MODULES.html.sh (func_module): Break long lines.
67029         Suggested by Bruce Korb <bkorb@gnu.org>.
67030
67031 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67032
67033         Speed up by a factor of 1.12.
67034         * gnulib-tool (nl): New variable.
67035         (func_import): Rewrite include directive extraction to only read each
67036         directive once.
67037
67038 2006-09-17  Bruno Haible  <bruno@clisp.org>
67039
67040         * modules/javaversion (Makefile.am): Remove DEFS setting.
67041         (Depends-on): Add configmake, for PKGDATADIR definition.
67042
67043 2006-09-17  Bruno Haible  <bruno@clisp.org>
67044
67045         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67046
67047 2006-09-17  Bruno Haible  <bruno@clisp.org>
67048
67049         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67050         (func_modules_transitive_closure, func_modules_add_dummy,
67051         func_modules_to_filelist, func_import, func_create_testdir,
67052         func_create_megatestdir, ...): Use it wherever possible.
67053         Suggested by Ralf Wildenhues.
67054
67055 2006-09-16  Karl Berry  <karl@gnu.org>
67056
67057         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67058         to avoid sectioning errors.
67059         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67060         [ifinfo]: blank line after @center-ed titles.
67061         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67062         Spell FSF address consistently with others.
67063         (These changes approved by rms.)
67064
67065 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67066
67067         Speed up by a factor of 1.61.
67068         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67069         already checked module names again.
67070
67071 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67072
67073         Speed up by a factor of 1.13.
67074         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67075         for new_files, and the input to func_add_or_update.
67076
67077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67078
67079         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67080         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67081
67082 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * modules/mkancesdirs (Depends-on): Add fcntl.
67085         * modules/savewd: New file.
67086         * MODULES.html.sh (File system functions): Add savewd.
67087
67088         * modules/configmake (Makefile.am): Add support for the
67089         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67090
67091 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * m4/savewd.m4: New file.
67094
67095 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67098         (dirchownmod): New arg FD.  All callers changed.
67099         Use FD rather than opening the directory ourself, as opening is
67100         now the caller's responsibility.
67101         * lib/dirchownmod.h: Likewise.
67102         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67103         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67104         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67105         (test_dir): Remove.
67106         (mkancesdirs): Return length of prefix of FILE that has already
67107         been made, or -2 if there is a child doing the work.  Redo
67108         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67109         ".", and treat ".." specially since it might stray back into
67110         already-created areas.  Use a subprocess if necessary.  New arg
67111         WD; all users changed.  MAKE_DIR function should now return 1
67112         if it creates a directory that is not readable.  Return -2 if
67113         a child process is spun off.
67114         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67115         Adjust signature to match code.
67116         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67117         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67118         all users changed.
67119         * lib/savewd.c, lib/savewd.h: New files.
67120
67121 2006-09-15  Jim Meyering  <jim@meyering.net>
67122
67123         * modules/rename-dest-slash: New module.
67124         * MODULES.html.sh (posix_compat): Add it here.
67125
67126         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67127
67128 2006-09-15  Jim Meyering  <jim@meyering.net>
67129
67130         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67131         file.
67132
67133         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67134
67135 2006-09-15  Jim Meyering  <jim@meyering.net>
67136
67137         * lib/rename-dest-slash.c (has_trailing_slash): Use
67138         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67139         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67140         test before testing whether SRC is a directory.
67141         Suggestions from Bruno Haible.
67142
67143         Avoid a warning about an unused variable.
67144         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67145         into the #ifdef block where it's used.
67146
67147         * lib/rename-dest-slash.c: New file.
67148
67149 2006-09-14  Bruno Haible  <bruno@clisp.org>
67150
67151         * lib/allocsa.c: Include <config.h> unconditionally.
67152         * lib/asnprintf.c: Likewise.
67153         * lib/asprintf.c: Likewise.
67154         * lib/c-strcasecmp.c: Likewise.
67155         * lib/c-strcasestr.c: Likewise.
67156         * lib/c-strncasecmp.c: Likewise.
67157         * lib/c-strstr.c: Likewise.
67158         * lib/classpath.c: Likewise.
67159         * lib/clean-temp.c: Likewise.
67160         * lib/concatpath.c: Likewise.
67161         * lib/copy-file.c: Likewise.
67162         * lib/csharpcomp.c: Likewise.
67163         * lib/csharpexec.c: Likewise.
67164         * lib/execute.c: Likewise.
67165         * lib/fatal-signal.c: Likewise.
67166         * lib/findprog.c: Likewise.
67167         * lib/fwriteerror.c: Likewise.
67168         * lib/gl_array_list.c: Likewise.
67169         * lib/gl_array_oset.c: Likewise.
67170         * lib/gl_avltree_list.c: Likewise.
67171         * lib/gl_avltree_oset.c: Likewise.
67172         * lib/gl_avltreehash_list.c: Likewise.
67173         * lib/gl_carray_list.c: Likewise.
67174         * lib/gl_linked_list.c: Likewise.
67175         * lib/gl_linkedhash_list.c: Likewise.
67176         * lib/gl_list.c: Likewise.
67177         * lib/gl_oset.c: Likewise.
67178         * lib/gl_rbtree_list.c: Likewise.
67179         * lib/gl_rbtree_oset.c: Likewise.
67180         * lib/gl_rbtreehash_list.c: Likewise.
67181         * lib/imaxabs.c: Likewise.
67182         * lib/imaxdiv.c: Likewise.
67183         * lib/javacomp.c: Likewise.
67184         * lib/javaexec.c: Likewise.
67185         * lib/javaversion.c: Likewise.
67186         * lib/linebreak.c: Likewise.
67187         * lib/localcharset.c: Likewise.
67188         * lib/lock.c: Likewise.
67189         * lib/mbchar.c: Likewise.
67190         * lib/mbswidth.c: Likewise.
67191         * lib/mkdtemp.c: Likewise.
67192         * lib/pipe.c: Likewise.
67193         * lib/printf-args.c: Likewise.
67194         * lib/printf-parse.c: Likewise.
67195         * lib/progname.c: Likewise.
67196         * lib/progreloc.c: Likewise.
67197         * lib/readlink.c: Likewise.
67198         * lib/sh-quote.c: Likewise.
67199         * lib/stpcpy.c: Likewise.
67200         * lib/stpncpy.c: Likewise.
67201         * lib/strcasecmp.c: Likewise.
67202         * lib/strcasestr.c: Likewise.
67203         * lib/strcspn.c: Likewise.
67204         * lib/striconv.c: Likewise.
67205         * lib/strncasecmp.c: Likewise.
67206         * lib/strnlen1.c: Likewise.
67207         * lib/strstr.c: Likewise.
67208         * lib/strtok_r.c: Likewise.
67209         * lib/tls.c: Likewise.
67210         * lib/tmpdir.c: Likewise.
67211         * lib/unicodeio.c: Likewise.
67212         * lib/unsetenv.c: Likewise.
67213         * lib/vasnprintf.c: Likewise.
67214         * lib/vasprintf.c: Likewise.
67215         * lib/wait-process.c: Likewise.
67216         * lib/xallocsa.c: Likewise.
67217         * lib/xsetenv.c: Likewise.
67218         * lib/xstriconv.c: Likewise.
67219
67220 2006-09-13  Simon Josefsson  <jas@extundo.com>
67221
67222         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67223         that internally, suggested by Ralf Wildenhues
67224         <Ralf.Wildenhues@gmx.de>.
67225
67226 2006-09-13  Simon Josefsson  <jas@extundo.com>
67227
67228         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67229         @LIBOBJS@.
67230         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67231
67232 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67235         longer worry about uses that don't define HAVE_CONFIG_H.
67236         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67237         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67238         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67239         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67240         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67241         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67242         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67243         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67244         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67245         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67246         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67247         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67248         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67249         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67250         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67251         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67252         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67253         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67254         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67255         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67256         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67257         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67258         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67259         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67260         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67261         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67262         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67263         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67264         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67265         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67266         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67267         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67268         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67269         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67270         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67271         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67272         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67273         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67274         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67275         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67276         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67277         Likewise.
67278
67279 2006-09-13  Eric Blake  <ebb9@byu.net>
67280
67281         * lib/getopt.c: Fix typo in last commit.
67282
67283 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67284
67285         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67286         dgettext.
67287
67288 2006-09-12  Jim Meyering  <jim@meyering.net>
67289
67290         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67291         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67292         Reported by Nelson H. F. Beebe.
67293
67294 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67295
67296         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67297         program_invocation_name and program_invocation_short_name are
67298         initialized.
67299         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67300         and program_invocation_short_name to argp.h, so they are visible
67301         to user programs.
67302         * lib/argp.h: Likewise
67303
67304 2006-09-10  Bruno Haible  <bruno@clisp.org>
67305
67306         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67307         m4/inttypes_h.m4, m4/uintmax_t.m4.
67308
67309 2006-09-10  Bruno Haible  <bruno@clisp.org>
67310
67311         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67312         gl_AC_TYPE_UINTMAX_T.
67313
67314 2006-09-10  Bruno Haible  <bruno@clisp.org>
67315
67316         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67317
67318 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67319
67320         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67321         convention.  Text proposed by Bruno Haible.
67322         (struct argp_option): Document the use of N_() wrappers.
67323
67324         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67325         '\v', and translate the two parts separately, instead of feeding
67326         the whole string to gettext.  This allows to exclude
67327         '\v' from the strings visible to the translator by writing doc
67328         strings as N_("..") "\v" N_("..").
67329
67330 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67331
67332         * config/srclist.txt: Undo latest change; the bug was fixed.
67333
67334 2006-09-09  Bruno Haible  <bruno@clisp.org>
67335
67336         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67337         assignments if building a library without libtool.
67338         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67339         in func_emit_lib_Makefile_am.
67340         (func_import): When building a static library libfoo.a, arrange to
67341         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67342         (func_create_testdir): Likewise.
67343         * modules/gc (configure.ac, Makefile.am): If building statically,
67344         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67345         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67346         * modules/striconv (configure.ac, Makefile.am): Likewise.
67347         Based on a suggestion by Ralf Wildenhues.
67348
67349 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67352         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67353         Also:
67354
67355         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67356         Add year_2050_test to catch glibc bug 2821
67357         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67358
67359         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67360         Prefer #ifdef to #if.
67361
67362         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67363         Return from 'main' instead of calling 'exit'.
67364
67365 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67368         returned the maximum time_t value rather than (time_t) -1.
67369         Problem originally reported by William Bardwell
67370         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67371
67372         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67373         Moved to here ...
67374         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67375         ... from here.
67376
67377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67378
67379         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67380         2821 is fixed.
67381
67382 2006-09-08  Jim Meyering  <jim@meyering.net>
67383
67384         Don't make generated files read-only.  That would bother too many
67385         people.  However, do retain the ability to work when targets are
67386         read-only: remove the destination and temporary files before writing
67387         them (when generated via sed or echo), or by using the -f option for
67388         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67389         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67390         * modules/byteswap, modules/configmake, modules/fcntl:
67391         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67392         * modules/localcharset, modules/netinet_in, modules/poll:
67393         * modules/stdbool, modules/stdint, modules/sys_select:
67394         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67395
67396 2006-09-08  Jim Meyering  <jim@meyering.net>
67397
67398         Avoid new build failure on FreeBSD 6.0.
67399         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67400         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67401         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67402
67403 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67404
67405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67406
67407 2006-09-07  Jim Meyering  <jim@meyering.net>
67408
67409         Fix global typo in last change: use chmod u-w, not chmod u-x.
67410         Spotted by Paul Eggert and Bruce Korb.
67411         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67412         * modules/byteswap, modules/configmake, modules/fcntl:
67413         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67414         * modules/localcharset, modules/netinet_in, modules/poll:
67415         * modules/stdbool, modules/stdint, modules/sys_select:
67416         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67417
67418 2006-09-06  Jim Meyering  <jim@meyering.net>
67419
67420         Make generated files be read-only.
67421         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67422         Ensure that each generated file is now read-only.
67423         * modules/argz: Likewise.
67424         * modules/arpa_inet: Likewise.
67425         * modules/byteswap: Likewise.
67426         * modules/configmake: Likewise.
67427         * modules/fcntl: Likewise.
67428         * modules/fnmatch: Likewise.
67429         * modules/getopt: Likewise.
67430         * modules/glob: Likewise.
67431         * modules/inttypes: Likewise.
67432         * modules/netinet_in: Likewise.
67433         * modules/poll: Likewise.
67434         * modules/stdbool: Likewise.
67435         * modules/stdint: Likewise.
67436         * modules/sys_select: Likewise.
67437         * modules/sys_socket: Likewise.
67438         * modules/sys_stat: Likewise.
67439         * modules/sysexits: Likewise.
67440         * modules/localcharset: Same as above, but continue using temporary
67441         file named "t-$@" (why different?) rather than the "$@-t" used
67442         everywhere else.
67443
67444         * modules/sysexits (Makefile.am): Replace literal occurrences
67445         of "sysexit.h" more readable, and more consistent, "$@".
67446
67447 2006-09-06  Bruno Haible  <bruno@clisp.org>
67448
67449         * modules/striconv: New file.
67450         * modules/xstriconv: New file.
67451         * MODULES.html.sh (Internationalization functions): Add striconv,
67452         xstriconv.
67453
67454 2006-09-06  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67457         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67458         not using libtool correctly.
67459
67460 2006-09-06  Bruno Haible  <bruno@clisp.org>
67461
67462         * lib/striconv.h: New file.
67463         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67464         iconvstring.c.
67465         * lib/xstriconv.h: New file.
67466         * lib/xstriconv.c: New file.
67467
67468 2006-09-06  Bruno Haible  <bruno@clisp.org>
67469
67470         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67471         lib_..._LDFLAGS.
67472
67473 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67474
67475         * lib/argz_.h: Sync from Libtool.
67476
67477         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67478                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67479
67480         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67481
67482 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67483
67484         * modules/trim: New file.
67485
67486 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67487
67488         * lib/trim.h: New file.
67489         * lib/trim.c: New file.
67490
67491 2006-09-05  Bruno Haible  <bruno@clisp.org>
67492
67493         * MODULES.html.sh (String handling): Add trim.
67494
67495 2006-09-04  Karl Berry  <karl@gnu.org>
67496
67497         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67498         until next release.
67499
67500 2006-09-03  Bruno Haible  <bruno@clisp.org>
67501
67502         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67503         correctly.
67504
67505 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67508         not gl_GETLOADAVG.  Omit unneeded semicolons.
67509         Problems reported by Ralf Wildenhues in
67510         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67511         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67512         at the end, which is the usual gnulib style.
67513
67514         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67515         of doing all the work ourselves.
67516         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67517         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67518
67519 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67522         Problem reported by Ralf Wildenhues in
67523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67524
67525         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67526         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67527
67528 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67531         yesterday's patch by changing test -n to test -z.
67532
67533 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67536         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67537         the former is now obsolescent.
67538
67539         * modules/chdir-long (Depends-on): Add fcntl.
67540
67541 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67544         obsolescent, and programs should use gnulib instead.
67545         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67546         but with prefixes changed.
67547
67548 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67551         or stdbool.h, because they might not exist while configuring.
67552
67553         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67554         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67555         does that for us.
67556         (O_DIRECTORY): Remove.
67557
67558 2006-08-31  Eric Blake  <ebb9@byu.net>
67559
67560         * gnulib-tool: Don't let emacs change spaces to TAB.
67561
67562 2006-08-31  Bruno Haible  <bruno@clisp.org>
67563
67564         * gnulib-tool: When calling func_import more than once, do it in a
67565         subshell.
67566         Reported by Eric Blake <ebb9@byu.net>.
67567
67568 2006-08-31  Bruno Haible  <bruno@clisp.org>
67569
67570         * gnulib-tool (nl): Remove variable.
67571         (sed_transform_lib_file): Use more robust test for config-h module.
67572         (func_import): Fix typo in 2006-08-25 patch.
67573
67574 2006-08-31  Bruno Haible  <bruno@clisp.org>
67575
67576         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67577         specified, augment Makefile.am variables instead of assigning them.
67578
67579 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         Work around a bug in both the Linux and SunOS 64-bit kernels:
67582         nanosleep mishandles sleeps for longer than 2**31 seconds.
67583         Problem reported by Frank v Waveren in
67584         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67586         Check for nanosleep bug.
67587         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67588
67589 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         Work around a bug in both the Linux and SunOS 64-bit kernels:
67592         nanosleep mishandles sleeps for longer than 2**31 seconds.
67593         Problem reported by Frank v Waveren in
67594         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67595         * lib/nanosleep.c (BILLION): New constant.
67596         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67597         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67598         implementation.
67599
67600 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         * modules/nanosleep (Depends-on): Add gettime.
67603
67604 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67605         and Simon Josefsson  <jas@extundo.com>
67606         and Oskar Liljeblad  <oskar@osk.mine.nu>
67607
67608         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67609         * gnulib-tool (func_import): New license type 'unmodifiable license
67610         text'.
67611         * modules/fdl: Use it.  Longer description.
67612         * module/gpl, module/lgpl: New files.
67613
67614 2006-08-30  Jim Meyering  <jim@meyering.net>
67615
67616         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67617         shadowing the parameter.
67618
67619 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67620
67621         Sync from Libtool:
67622
67623         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67624
67625         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67626         sharing with gnulib.  Report by Eric Blake.
67627
67628 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * modules/isapipe: New file.
67631         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67632
67633 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67634
67635         * modules/configmake (Makefile.am): Add a comment, and omit
67636         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67637         by Bruno Haible.
67638
67639 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         * m4/isapipe.m4: New file.
67642
67643 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/isapipe.c, lib/isapipe.h: New files.
67646
67647 2006-08-29  Jim Meyering  <jim@meyering.net>
67648
67649         * modules/configmake (Makefile.am): Make configmake.h depend on
67650         Makefile.  Otherwise, a stale configmake.h could hang around.
67651
67652 2006-08-29  Eric Blake  <ebb9@byu.net>
67653
67654         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67655         resolution of upstream bug 3044.
67656
67657 2006-08-29  Bruno Haible  <bruno@clisp.org>
67658
67659         * modules/localcharset (Depends-on): Add configmake.
67660         (Makefile.am): Remove setting of LIBDIR through DEFS.
67661
67662 2006-08-29  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67665         defined.
67666
67667 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * modules/fcntl: New file.
67670         * modules/chdir-safer (Depends-on): Add fcntl.
67671         * modules/fts: Likewise.
67672         * modules/mkdir-p: Likewise.
67673
67674         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67675         This undoes the most recent change, since we're now addressing the
67676         problem in a different way.
67677
67678         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67679         into output, since the output might be called Makefile.am even
67680         if $makefile_name is something different.
67681         (func_import): Use $makefile_am rather than
67682         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67683         empty.
67684
67685         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67686
67687 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67690         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67691         recent change to stdint.m4, since we're now addressing the problem in a
67692         different way.
67693
67694 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67695
67696         * m4/fcntl_h.m4: New file.
67697
67698 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * lib/fcntl_.h: New file.
67701         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67702         the fcntl module.
67703         * lib/dirchownmod.c: Likewise.
67704         * lib/fts.c: Likewise.
67705
67706         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67707         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67708         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67709         just before including <inttypes.h>, to avoid circular inclusion.
67710
67711 2006-08-28  Jim Meyering  <jim@meyering.net>
67712
67713         * doc/visibility.texi: Actually read and correct the grammar of the
67714         sentence affected by yesterday's change.
67715
67716 2006-08-28  Eric Blake  <ebb9@byu.net>
67717
67718         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67719         needs wrapper.
67720
67721 2006-08-28  Eric Blake  <ebb9@byu.net>
67722
67723         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67724
67725 2006-08-28  Eric Blake  <ebb9@byu.net>
67726
67727         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67728
67729 2006-08-28  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/c-strstr: New file, from GNU gettext.
67732         * MODULES.html.sh (String handling): Add c-strstr.
67733
67734 2006-08-28  Bruno Haible  <bruno@clisp.org>
67735
67736         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67737         macros.
67738         Reported by Eric Blake.
67739
67740 2006-08-28  Bruno Haible  <bruno@clisp.org>
67741
67742         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67743         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67744         * lib/vasprintf.c: Include errno.h, limits.h.
67745         (EOVERFLOW): New fallback definition.
67746         (vasprintf): Test here whether the string length is > INT_MAX.
67747         * lib/vsnprintf.c: Include errno.h, limits.h.
67748         (EOVERFLOW): New fallback definition.
67749         (vsnprintf): Fix bug when generated string was too long for the buffer.
67750         Test here whether the string length is > INT_MAX.
67751
67752 2006-08-28  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/inttypes_.h (SCNX*): Remove definitions.
67755         Reported by Eric Blake.
67756
67757 2006-08-28  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/c-strstr.h: New file, from GNU gettext.
67760         * lib/c-strstr.c: New file, from GNU gettext.
67761
67762 2006-08-28  Bruno Haible  <bruno@clisp.org>
67763
67764         * gnulib-tool: Reorder some statements.
67765
67766 2006-08-28  Bruno Haible  <bruno@clisp.org>
67767
67768         * gnulib-tool: New option --makefile-name.
67769         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67770         $makefile_name.
67771         (func_import): Write $makefile_name to the cache file, and read it from
67772         there unless explicitly specified. Use $makefile_name as file name
67773         instead of Makefile.am. Adjust the recommendations accordingly.
67774
67775 2006-08-28  Bruno Haible  <bruno@clisp.org>
67776
67777         * gnulib-tool (func_verify_module): Check against misapplying patch.
67778
67779 2006-08-28  Bruno Haible  <bruno@clisp.org>
67780
67781         * gnulib-tool (func_relativize, func_relconcat): New functions.
67782         Give an error if --local-dir is given with --update.
67783         Remove trailing slashes from $local_gnulib_dir.
67784         (func_import): Store the relativized $local_gnulib_dir in
67785         gnulib-cache.m4, and read it from there if not specified explicitly.
67786
67787 2006-08-28  Bruno Haible  <bruno@clisp.org>
67788
67789         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67790         is the current directory. Respect also $local_gnulib_dir.
67791
67792 2006-08-28  Bruno Haible  <bruno@clisp.org>
67793             Simon Josefsson  <jas@extundo.com>
67794
67795         BeOS portability.
67796         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67797
67798 2006-08-27  Jim Meyering  <jim@meyering.net>
67799
67800         * doc/visibility.texi: Remove duplicate word: "pointer".
67801
67802 2006-08-26  Bruno Haible  <bruno@clisp.org>
67803
67804         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67805         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67806         (Makefile.am): Create inttypes.h from inttypes_.h.
67807         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67808
67809         * modules/imaxabs: New file.
67810
67811         * modules/imaxdiv: New file.
67812
67813 2006-08-26  Bruno Haible  <bruno@clisp.org>
67814
67815         * m4/inttypes.m4: New file.
67816         * m4/_inttypes_h.m4: Remove file.
67817         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67818         PRI_MACROS_BROKEN.
67819         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67820
67821         * m4/imaxabs.m4: New file.
67822
67823         * m4/imaxdiv.m4: New file.
67824
67825 2006-08-26  Bruno Haible  <bruno@clisp.org>
67826
67827         * lib/inttypes_.h: New file.
67828         * lib/inttypes.h: Remove file.
67829         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67830
67831         * lib/imaxabs.c: New file.
67832
67833         * lib/imaxdiv.c: New file.
67834
67835 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         New config-h module, so that "make" output needn't be cluttered
67838         by -DHAVE_CONFIG_H.
67839         * MODULES.html.sh (Support for building libraries and executables):
67840         Add config-h.
67841         * modules/config-h: New file.
67842         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67843         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67844         the config-h module is used.
67845
67846         New configmake module, so that "make" output needn't be cluttered
67847         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67848         * MODULES.html.sh (Support for building libraries and executables):
67849         Add configmake.
67850         * modules/configmake: New file.
67851
67852 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * m4/config-h.m4: New file.
67855
67856 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         * config/srclist.txt: Add elisp-comp.
67859
67860 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67861
67862         * MODULES.html.sh (Support for building libraries and executables):
67863         Add elisp-comp.
67864         * build-aux/elisp-comp: New file.
67865         * modules/elisp-comp: New file.
67866
67867 2006-08-24  Bruno Haible  <bruno@clisp.org>
67868
67869         * gnulib-tool (func_create_testdir): Use non-default values of
67870         sourcebase and m4base.
67871
67872 2006-08-24  Bruno Haible  <bruno@clisp.org>
67873
67874         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67875         HTML structure.
67876
67877 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * modules/openat (Depends-on): Add lchown.
67880
67881 2006-08-23  Bruno Haible  <bruno@clisp.org>
67882
67883         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67884         of gl_LOCK_EARLY instead of gl_LOCK.
67885
67886 2006-08-23  Bruno Haible  <bruno@clisp.org>
67887
67888         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67889         on OSF/1 to no.
67890         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67891
67892 2006-08-23  Bruno Haible  <bruno@clisp.org>
67893
67894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67895         as unusable.
67896
67897         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67898         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67899         (gl_LOCK): New macro.
67900
67901 2006-08-22  Simon Josefsson  <jas@extundo.com>
67902
67903         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67904         to md5 module.
67905
67906 2006-08-22  Simon Josefsson  <jas@extundo.com>
67907
67908         * MODULES.html.sh: Add "Support for maintaining and release
67909         projects".
67910
67911         * build-aux/gnupload: New file, from coreutils.
67912
67913 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         Avoid the need for AC_LIBSOURCES in m4 macros.
67916         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67917         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67918         * modules/check-version (EXTRA_DIST): Add check-version.h.
67919         * modules/crc (EXTRA_DIST): Add crc.h.
67920         * modules/des (EXTRA_DIST): Add des.h.
67921         * modules/gc (EXTRA_DIST): Add gc.h.
67922         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67923         * modules/getline (EXTRA_DIST): Add getline.h.
67924         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67925         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67926         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67927         * modules/md2 (EXTRA_DIST): Add md2.h.
67928         * modules/md4 (EXTRA_DIST): Add md4.h.
67929         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67930         * modules/read-file (EXTRA_DIST): Add read-file.h.
67931         * modules/readline (EXTRA_DIST): Add readline.h.
67932         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67933         rijndael-api-fst.h.
67934
67935 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * m4/rijndael.m4 (gl_ARCFOUR):
67938         * m4/arctwo.m4 (gl_ARCTWO):
67939         * m4/check-version.m4 (gl_CHECK_VERSION):
67940         * m4/crc.m4 (gl_CRC):
67941         * m4/des.m4 (gl_DES):
67942         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67943         * m4/gc.m4 (gl_GC):
67944         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67945         * m4/getline.m4 (gl_FUNC_GETLINE):
67946         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67947         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67948         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67949         * m4/md2.m4 (gl_MD2):
67950         * m4/md4.m4 (gl_MD4):
67951         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67952         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67953         * m4/readline.m4 (gl_FUNC_READLINE):
67954         * m4/rijndael.m4 (gl_RIJNDAEL):
67955         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67956         to get the necessary .h files and whatnot.
67957
67958 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67959
67960         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67961         gnulib rather than the other way around.
67962         * config/srclistvars.sh (COREUTILS): Remove.
67963
67964 2006-08-22  Jim Meyering  <jim@meyering.net>
67965
67966         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67967
67968         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67969
67970 2006-08-22  Eric Blake  <ebb9@byu.net>
67971
67972         * modules/regexprops-generic: New file.
67973         * MODULES.html.sh (Support for building documentation): List it.
67974
67975 2006-08-22  Eric Blake  <ebb9@byu.net>
67976
67977         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67978         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67979         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67980         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67981
67982 2006-08-22  Bruno Haible  <bruno@clisp.org>
67983
67984         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67985         and lib_LTLIBRARIES like the other lib_* variables.
67986
67987 2006-08-22  Bruno Haible  <bruno@clisp.org>
67988
67989         * build-aux/x-to-1.in: New file, from GNU gettext.
67990
67991 2006-08-22  Bruno Haible  <bruno@clisp.org>
67992
67993         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67994         <utmpx.h> exists.
67995
67996 2006-08-22  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67999         <utmpx.h> exists.
68000
68001 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         BeOS portability.
68004         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68005         exist.
68006         Problem reported by Bruno Haible.
68007
68008 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         Avoid the need for AC_LIBSOURCES in m4 macros.
68011         * modules/acl (EXTRA_DIST): Add acl.h.
68012         * modules/argmatch (Files): Add m4/argmatch.m4.
68013         (configure.ac): Add gl_ARGMATCH.
68014         (EXTRA_DIST): Renamed from lib_SOURCES, for
68015         consistency with the other modules.  Remove argmatch.c.
68016         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68017         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68018         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68019         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68020         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68021         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68022         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68023         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68024         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68025         * modules/closeout (EXTRA_DIST): Add closeout.h.
68026         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68027         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68028         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68029         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68030         dirname.h; remove basename.c and stripslash.c.
68031         * modules/exclude (EXTRA_DIST): Add exclude.h.
68032         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68033         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68034         * modules/file-type (EXTRA_DIST): Add file-type.h.
68035         * modules/filemode (EXTRA_DIST): Add filemode.h.
68036         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68037         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68038         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68039         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68040         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68041         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68042         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68043         * modules/getdate (EXTRA_DIST): Add getdate.c.
68044         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68045         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68046         * modules/getpass (EXTRA_DIST): Add getpass.h.
68047         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68048         * modules/group-member (EXTRA_DIST): Add group-member.h.
68049         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68050         * modules/hash (EXTRA_DIST): Add hash.h.
68051         * modules/human (EXTRA_DIST): Add human.h.
68052         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68053         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68054         * modules/lchown (EXTRA_DIST): Add lchown.h.
68055         * modules/long-options (EXTRA_DIST): Add long-options.h.
68056         * modules/lstat (EXTRA_DIST): Add lstat.h.
68057         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68058         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68059         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68060         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68061         * modules/memxor (EXTRA_DIST): Add memxor.h.
68062         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68063         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68064         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68065         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68066         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68067         * modules/physmem (EXTRA_DIST): Add physmem.h.
68068         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68069         * modules/posixver (EXTRA_DIST): Add posixver.h.
68070         * modules/quote (EXTRA_DIST): Add quote.h.
68071         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68072         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68073         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68074         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68075         regex_internal.h regexec.c.
68076         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68077         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68078         * modules/same (EXTRA_DIST): Add same.h.
68079         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68080         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68081         * modules/savedir (EXTRA_DIST): Add savedir.h.
68082         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68083         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68084         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68085         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68086         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68087         * modules/strdup (EXTRA_DIST): Add strdup.h.
68088         * modules/strftime (EXTRA_DIST): Add strftime.h.
68089         * modules/strndup (EXTRA_DIST): Add strndup.h.
68090         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68091         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68092         * modules/time_r (EXTRA_DIST): Add time_r.h.
68093         * modules/timespec (EXTRA_DIST): Add timespec.h.
68094         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68095         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68096         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68097         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68098         * modules/userspec (EXTRA_DIST): Add userspec.h.
68099         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68100         * modules/utimens (EXTRA_DIST): Add utimens.h.
68101         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68102         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68103         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68104         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68105         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68106         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68107         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68108         * modules/yesno (EXTRA_DIST): Add yesno.h.
68109
68110 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68113
68114         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68115         * m4/dev-ino.m4, same-inode.m4: Remove.
68116
68117         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68118         * m4/acl.m4 (AC_FUNC_ACL):
68119         * m4/backupfile.m4 (gl_BACKUPFILE):
68120         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68121         * m4/canon-host.m4 (gl_CANON_HOST):
68122         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68124         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68125         * m4/cloexec.m4 (gl_CLOEXEC):
68126         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68127         * m4/closeout.m4 (gl_CLOSEOUT):
68128         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68129         * m4/dirname.m4 (gl_DIRNAME):
68130         * m4/exclude.m4 (gl_EXCLUDE):
68131         * m4/exitfail.m4 (gl_EXITFAIL):
68132         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68133         * m4/file-type.m4 (gl_FILE_TYPE):
68134         * m4/filemode.m4 (gl_FILEMODE):
68135         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68136         * m4/fpending.m4 (gl_FUNC_FPENDING):
68137         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68138         * m4/fts.m4 (gl_FUNC_FTS):
68139         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68140         * m4/getdate.m4 (gl_GETDATE):
68141         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68142         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68143         * m4/getpass.m4 (gl_FUNC_GETPASS):
68144         * m4/gettime.m4 (gl_GETTIME):
68145         * m4/getugroups.m4 (gl_GETUGROUPS):
68146         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68147         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68148         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68149         * m4/hash.m4 (gl_HASH):
68150         * m4/idcache.m4 (gl_IDCACHE):
68151         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68152         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68153         * m4/long-options.m4 (gl_LONG_OPTIONS):
68154         * m4/lstat.m4 (gl_FUNC_LSTAT):
68155         * m4/md5.m4 (gl_MD5):
68156         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68157         * m4/memcoll.m4 (gl_MEMCOLL):
68158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68160         * m4/memxor.m4 (gl_MEMXOR):
68161         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68162         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68163         * m4/modechange.m4 (gl_MODECHANGE):
68164         * m4/mountlist.m4 (gl_MOUNTLIST):
68165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68166         * m4/openat.m4 (gl_FUNC_OPENAT):
68167         * m4/pathmax.m4 (gl_PATHMAX):
68168         * m4/physmem.m4 (gl_PHYSMEM):
68169         * m4/posixtm.m4 (gl_POSIXTM):
68170         * m4/posixver.m4 (gl_POSIXVER):
68171         * m4/quote.m4 (gl_QUOTE):
68172         * m4/quotearg.m4 (gl_QUOTEARG):
68173         * m4/readtokens.m4 (gl_READTOKENS):
68174         * m4/readutmp.m4 (gl_READUTMP):
68175         * m4/regex.m4 (gl_REGEX):
68176         * m4/safe-read.m4 (gl_SAFE_READ):
68177         * m4/safe-write.m4 (gl_SAFE_WRITE):
68178         * m4/same.m4 (gl_SAME):
68179         * m4/save-cwd.m4 (gl_SAVE_CWD):
68180         * m4/savedir.m4 (gl_SAVEDIR):
68181         * m4/settime.m4 (gl_SETTIME):
68182         * m4/sha1.m4 (gl_SHA1):
68183         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68184         * m4/stat-macros.m4 (gl_STAT_MACROS):
68185         * m4/stat-time.m4 (gl_STAT_TIME):
68186         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68187         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68188         * m4/strdup.m4 (gl_FUNC_STRDUP):
68189         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68190         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68191         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68192         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68193         * m4/time_r.m4 (gl_TIME_R):
68194         * m4/timespec.m4 (gl_TIMESPEC):
68195         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68196         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68197         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68198         * m4/userspec.m4 (gl_USERSPEC):
68199         * m4/utimecmp.m4 (gl_UTIMECMP):
68200         * m4/utimens.m4 (gl_UTIMENS):
68201         * m4/xalloc.m4 (gl_XALLOC):
68202         * m4/xgetcwd.m4 (gl_XGETCWD):
68203         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68204         * m4/xreadlink.m4 (gl_XREADLINK):
68205         * m4/xstrtod.m4 (gl_XSTRTOD):
68206         * m4/yesno.m4 (gl_YESNO):
68207         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68208         to get the necessary .h files and whatnot.
68209
68210 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68211             Bruno Haible  <bruno@clisp.org>
68212
68213         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68214         /bin/sh understanding of '!' conditional negation.
68215
68216 2006-08-21  Jim Meyering  <jim@meyering.net>
68217
68218         * modules/openat (Depends-on): Really alphabetize.
68219
68220         * modules/acl (Depends-on): Add error and quote.
68221
68222         * check-module (find_included_lib_files): Add at-func.c to the
68223         ok-to-include-more-than-once white list.
68224
68225         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68226
68227 2006-08-21  Bruno Haible  <bruno@clisp.org>
68228
68229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68230         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68231         Reported by Martin Lambers <marlam@marlam.de>.
68232
68233 2006-08-21  Bruno Haible  <bruno@clisp.org>
68234
68235         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68236         specify an installation location, don't emit a noinst_LIBRARIES or
68237         noinst_LTLIBRARIES assignment.
68238
68239 2006-08-21  Bruno Haible  <bruno@clisp.org>
68240
68241         BeOS portability.
68242         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68243         BeOS has mbrtowc() but no <wctype.h>.
68244
68245 2006-08-21  Bruno Haible  <bruno@clisp.org>
68246
68247         BeOS portability.
68248         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68249         exist.
68250
68251 2006-08-21  Bruno Haible  <bruno@clisp.org>
68252
68253         BeOS portability.
68254         * lib/mbchar.h: Include <wctype.h> only if it exists.
68255
68256 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         Remove files that are no longer needed by their respective modules.
68259         * m4/obstack.m4: Remove.
68260         * m4/strerror_r.m4: Remove.
68261         * m4/uint32_t.m4: Remove.
68262         * m4/uintptr_t.m4: Remove.
68263         * m4/ullong_max.m4: Remove.
68264         * m4/xstrtoimax.m4: Remove.
68265         * m4/xstrtoumax.m4: Remove.
68266
68267         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68268         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68269         dependencies now capture this.
68270
68271         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68272         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68273         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68274         * m4/human.m4 (gl_HUMAN): Likewise.
68275         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68276         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68277
68278         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68279
68280         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68281         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68282         stdint.
68283         * m4/human.m4 (gl_HUMAN): Likewise.
68284         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68285         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68286         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68287         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68288         * m4/xstrtol (gl_XSTRTOL): Likewise.
68289
68290         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68291         AC_TYPE_LONG_LONG_INT.
68292         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68293         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68294         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68295         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68296
68297         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68298         on stdbool.
68299
68300         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68301         (gl_PREREQ_XSTRTOUL): Remove.
68302
68303         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68304
68305         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68306         mode.
68307
68308 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68309
68310         Add and change modules to make it easier for coreutils to use
68311         gnulib-tool.
68312         * modules/backupfile (Files): Remove m4/d-ino.m4.
68313         (Depends-on): Add d-ino.
68314         * modules/cycle-check (Depends-on): Add stdint.
68315         (lib_SOURCES): Add cycle-check.h.
68316         * modules/d-ino: New module.
68317         * modules/d-type: New module.
68318         * modules/error (Files): Remove m4/strerror_r.m4.
68319         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68320         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68321         m4/inttypes_h.m4, m4/uintmax_t.m4.
68322         (Depends-on): Add stdint.
68323         (lib_SOURCES): Add fsusage.h.
68324         * modules/getcwd (Files): Remove d-ino.m4.
68325         (Depends-on): Add d-ino.
68326         * modules/getndelim2 (Depends-on): Add stdint.
68327         * modules/glob (Files): Remove m4/d-type.m4.
68328         (Depends-on): Add d-type.
68329         * modules/host-os: New module.
68330         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68331         m4/inttypes_h.m4, m4/uintmax_t.m4.
68332         * Depends-on: Add stdint.
68333         (lib_SOURCES): Add human.h.
68334         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68335         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68336         m4/uintmax_t.m4, m4/ulonglong.m4.
68337         (Depends-on): Add stdint.
68338         (EXTRA_DIST): Add inttostr.h.
68339         * modules/lchmod: New module.
68340         * modules/link-follow: New module.
68341         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68342         (Depends-on): Add lchmod.
68343         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68344         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68345         (Depends-on): Add stdint.
68346         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68347         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68348         (Depends-on): Add stdint.
68349         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68350         * modules/perl: New module.
68351         * modules/regex (Depends-on): Add stdint.
68352         * modules/rmdir-errno: New module.
68353         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68354         m4/intmax_t.m4.
68355         (Depends-on): Add stdint.
68356         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68357         m4/uintmax_t.m4.
68358         (Depends-on): Add stdint.
68359         * modules/unlink-busy: New module.
68360         * modules/utimecmp (Depends-on): Add stdint.
68361         * modules/uptime: New module.
68362         * modules/winsz-ioctl: New module.
68363         * modules/winsz-termios: New module.
68364         * modules/xnanosleep (Depends-on): Add nanosleep.
68365         * modules/ullong_max: Remove.
68366         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68367         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68368         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68369         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68370         (Depends-on): Add inttypes.
68371         (lib_SOURCES): Add xstrtol.h.
68372         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68373         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68374         * MODULES.html.sh: Move 'assert' into the assert section.
68375         Move 'dummy' into the linking section.
68376         Remove ullong_max.
68377         Add section for compatibility checks for POSIX:2001 functions,
68378         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68379         winsz-ioctl, and winsz-termios into it.
68380         Add lchmod.
68381         Add top-level Misc section and put host-os, perl, and uptime
68382         into it.
68383
68384 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68387         now assume the stdint module.  Do not include inttypes.h.
68388         * lib/fsusage.h: Likewise.
68389         * lib/getndelim2.c: Likewise.
68390         * lib/human.h: Likewise.
68391         * lib/inttostr.h: Likewise.
68392         * lib/obstack.c: Likewise.
68393         * lib/regex_internal.h: Likewise.
68394         * lib/tempname.c: Likewise.
68395         * lib/utimecmp.c: Likewise.
68396         * lib/xstrtol.h: Likewise.
68397
68398         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68399
68400         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68401         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68402         * lib/xtime.h: Likewise.
68403
68404 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68405
68406         * modules/openat (Files): Add lib/fchmodat.c.
68407         Fixes problem reported by Jay Youngman.
68408
68409 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68412         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68413
68414 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68415             Bruno Haible  <bruno@clisp.org>
68416
68417         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68418         and is a script that invokes bison. Tighten the code. Add comments.
68419
68420 2006-08-18  Jim Meyering  <jim@meyering.net>
68421
68422         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68423         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68424         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68425         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68426
68427 2006-08-18  Bruno Haible  <bruno@clisp.org>
68428
68429         * modules/bison-i18n: New file.
68430         * MODULES.html.sh (Internationalization functions): Add it.
68431
68432 2006-08-18  Bruno Haible  <bruno@clisp.org>
68433
68434         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68435         sys/statvfs.h. When getmntinfo was found, check its declaration and
68436         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68437
68438 2006-08-18  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/bison-i18n.m4: New file, from bison.
68441
68442 2006-08-18  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68445         (ME_DUMMY): Treat "kernfs" as a dummy.
68446         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68447
68448 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         Update from coreutils.
68451
68452         2006-08-15  Jim Meyering  <jim@meyering.net>
68453
68454         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68455
68456         2006-01-17  Jim Meyering  <jim@meyering.net>
68457
68458         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68459
68460         2006-01-11  Jim Meyering  <jim@meyering.net>
68461
68462         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68463         Check for the lchmod function.
68464
68465 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         Update from coreutils.
68468
68469         * lib/__fpending.h: Add copyright notice.
68470         * lib/fprintftime.h: Likewise.
68471         * lib/savedir.c: Use (C) in copyright notice.
68472         * lib/savedir.h: Likewise.
68473
68474         2006-08-15  Jim Meyering  <jim@meyering.net>
68475
68476         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68477         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68478         in support of the EXPECTED_ERRNO macro.
68479         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68480         definitions.  Instead, define the appropriate symbols and include
68481         "at-func.c".
68482         * lib/mkdirat.c (mkdirat): Likewise.
68483         * lib/fchmodat.c (fchmodat): Likewise.
68484         (ENOSYS): Remove definition.
68485         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68486         it.  Don't include "unistd--.h" -- it wasn't ever used.
68487
68488         2006-01-17  Jim Meyering  <jim@meyering.net>
68489
68490         Rewrite fts.c not to change the current working directory,
68491         by using openat, fstatat, fdopendir, etc..
68492
68493         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68494         (HAVE_OPENAT_SUPPORT): Define.
68495         [_LIBC] (fchdir): Don't undef or define; no longer used.
68496         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68497         Now, this `function' always succeeds, and consumes its file descriptor
68498         parameter -- so callers must not close such FDs.  Update callers.
68499         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68500         (diropen): Add parameter, SP.  Adjust all callers.
68501         Implement using diropen_fd, rather than open.
68502         (fts_open): Initialize new member, fts_cwd_fd.
68503         Remove fts_rft-setting code.
68504         (fts_close): Close fts_cwd_fd, if necessary.
68505         (__opendir2): Define in terms of opendir or opendirat,
68506         depending on whether the FST_NOCHDIR flag is set.
68507         (fts_build): Since fts_safe_changedir consumes its FD, and since
68508         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68509         and close the dup'd file descriptor upon failure.
68510         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68511         (fts_safe_changedir): Tweak semantics to reflect that this function
68512         now calls cwd_advance_fd and hence consumes its FD argument.
68513         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68514         [struct FTS] (fts_rft): Remove now-unused member.
68515         [struct FTS] (fts_cycle.state): Improve comment.
68516
68517         * lib/openat.c (openat_needs_fchdir): New function.
68518         * lib/openat.h (openat_needs_fchdir): Declare it.
68519
68520 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68523         Problem and fix reported by Pádraig Brady in
68524         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68525
68526 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68529
68530 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68531
68532         * lib/memcoll.c (memcoll): Optimize for the common case where the
68533         arguments are bytewise equal.
68534
68535 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * doc/regexprops-generic.texi: Add a copyright notice.
68538
68539 2006-08-15  Bruno Haible  <bruno@clisp.org>
68540
68541         * modules/tmpdir (License): Change to LGPL.
68542
68543 2006-08-15  Bruno Haible  <bruno@clisp.org>
68544
68545         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68546         module.
68547
68548 2006-08-14  Simon Josefsson  <jas@extundo.com>
68549
68550         * config/srclist.txt: Add gnupload.
68551
68552 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         Change copyright notice from LGPL 2 to GPL 2, since that's the
68555         standard form used in the gnulib repository.
68556         * tests/test-lock.c: Likewise.
68557         * tests/test-stdint.c: Likewise.
68558         * tests/test-tls.c: Likewise.
68559
68560         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68561         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68562         Add copyright notice.
68563
68564         * check-module: Add copyright notice.  Output a copyright
68565         notice if "--version" is specified.
68566         * modules/COPYING: New file.
68567         * tests/test-getaddrinfo.c: Add copyright notice.
68568         * tests/test-verify.c: Likewise.
68569
68570 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         Change copyright notice from LGPL 2 to GPL 2, since that's the
68573         standard form used in the gnulib repository.
68574         * lib/lock.c: LGPL -> GPL.
68575         * lib/lock.h: Likewise.
68576         * lib/strnlen1.c: Likewise.
68577         * lib/strnlen1.h: Likewise.
68578         * lib/tls.c: Likewise.
68579         * lib/tls.h: Likewise.
68580         * lib/tmpdir.c: Likewise.
68581
68582         * lib/TODO: Remove; this belongs only in coreutils.
68583
68584 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68585
68586         Add copyright notices to long-enough files that lack them, since
68587         otherwise the files aren't clearly free.  Use the same notice that
68588         getdate.texi already uses.
68589         * doc/alloca-opt.texi: Add copyright notice.
68590         * doc/alloca.texi: Likewise.
68591         * doc/ctime.texi: Likewise.
68592         * doc/functions.texi: Likewise.
68593         * doc/gcd.texi: Likewise.
68594         * doc/gnulib-tool.texi: Likewise.
68595         * doc/inet_ntoa.texi: Likewise.
68596         * doc/visibility.texi: Likewise.
68597
68598         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68599         * doc/quote.texi: Add copyright notice.
68600
68601         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68602         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68603         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68604         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68605         is now obsolete, and give a pointer to the Sun list.
68606         Add copyright notice.
68607
68608 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         * config/srclistvars.sh: Add copyright notice.
68611
68612 2006-08-14  Eric Blake  <ebb9@byu.net>
68613
68614         Import the following change from libc:
68615
68616         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68617
68618         Upstream bug 2997.
68619         * lib/misc/error.c: Add space between program name and message if file
68620         name is missing.
68621
68622 2006-08-12  Karl Berry  <karl@gnu.org>
68623
68624         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68625         remove, these originate in gnulib now.
68626
68627 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68628
68629         * doc/Makefile (standards.info standards.html standards.dvi):
68630         Also depend on make-stds.texi.
68631
68632 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68635         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68636
68637         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68638         in wchar_t.  Problem reported by Eric Blake.
68639
68640         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68641         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68642         Also, help the compiler to keep LEN in a register.
68643
68644 2006-08-11  Eric Blake  <ebb9@byu.net>
68645
68646         * users.txt: Sort.  Add tar.
68647
68648 2006-08-11  Bruno Haible  <bruno@clisp.org>
68649
68650         * users.txt: New file.
68651
68652 2006-08-11  Bruno Haible  <bruno@clisp.org>
68653
68654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68655         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68656
68657 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * modules/snprintf (Depends-on): Remove minmax.
68660         (Maintainer): Add self and Bruno.
68661
68662 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68663
68664         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68665         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68666         (EOVERFLOW): Define if the system does not.
68667         Do not include "minmax.h"; it wasn't used.
68668         (snprintf): Don't assume size_t promotes to an unsigned type.
68669         Fix bug when generated string was too long for the buffer: the
68670         buffer's contents are supposed to be the initial prefix of the
68671         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68672         exceeds INT_MAX; do the check ourselves.
68673
68674         Import the following changes from libc:
68675
68676         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68677
68678         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68679         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68680         set wc to the byte which couldn't be converted.
68681         (re_string_reconstruct): Don't clear valid_raw_len before calling
68682         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68683         tip_context using re_string_context_at.
68684
68685         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68686
68687         * lib/posix/regex.h: g++ still cannot handled [restrict].
68688
68689         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68690
68691         * lib/posix/regex.h: Remove special handling for VMS.
68692
68693 2006-08-10  Jim Meyering  <jim@meyering.net>
68694
68695         * modules/same-inode: New module.
68696         * modules/dev-ino: New module.
68697         * modules/cycle-check: Depend on these modules, rather than simply
68698         including their .h files.
68699         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68700         required via m4/cycle-check.m4.
68701         * modules/same: Depend on new same-inode module, rather than
68702         including same-inode.h.
68703         * modules/chdir-safer: New file.
68704
68705         * modules/chown (Depends-on): Add stat-macros.
68706
68707 2006-08-10  Jim Meyering  <jim@meyering.net>
68708
68709         * m4/cycle-check.m4: New file.
68710         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68711         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68712
68713 2006-08-10  Eric Blake  <ebb9@byu.net>
68714
68715         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68716         in from original proposal.
68717
68718 2006-08-10  Eric Blake  <ebb9@byu.net>
68719         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68720
68721         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68722         namespace.
68723
68724 2006-08-10  Bruno Haible  <bruno@clisp.org>
68725
68726         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68727         as well.
68728
68729 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         Sync from coreutils.
68732
68733         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68734
68735         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68736         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68737
68738 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * modules/restrict: Remove; no longer needed now that we assume
68741         Autoconf 2.59 or later.
68742         * MODULES.html.sh: Remove 'restrict'.
68743         * modules/argp (Depends-on): Remove 'restrict'.
68744         * modules/base64 (Depends-on): Likewise.
68745         * modules/gc (Depends-on): Likewise.
68746         * modules/getaddrinfo (Depends-on): Likewise.
68747         * modules/glob (Depends-on): Likewise.
68748         * modules/inet_ntop (Depends-on): Likewise.
68749         * modules/inet_pton (Depends-on): Likewise.
68750         * modules/memxor (Depends-on): Likewise.
68751         * modules/regex (Depends-on): Likewise.
68752         * modules/strtok_r (Depends-on): Likewise.
68753         * modules/time_r (Depends-on): Likewise.
68754
68755 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68758         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68759         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68760         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68761         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68762         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68763         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68764         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68765
68766         Merge from coreutils.
68767         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68768         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68769         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68770         * m4/time_r.m4 (gl_TIME_R): Likewise.
68771
68772 2006-08-09  Karl Berry  <karl@gnu.org>
68773
68774         * config/srclist.txt: no more gettext-tools, per Bruno.
68775
68776 2006-08-08  Eric Blake  <ebb9@byu.net>
68777
68778         * modules/verror: New module.
68779         * MODULES.html.sh: Document it.
68780
68781 2006-08-08  Eric Blake  <ebb9@byu.net>
68782
68783         * lib/verror.h, lib/verror.c: New files.
68784
68785 2006-08-08  Eric Blake  <ebb9@byu.net>
68786
68787         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68788         verror_at_line output complies with GNU Coding Standards even when
68789         file is NULL.
68790
68791 2006-08-07  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68794         versions of AIX.
68795         Reported by Ralf Wildenhues.
68796
68797 2006-08-07  Bruno Haible  <bruno@clisp.org>
68798
68799         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68800         in an AC_DEFUN. Needed so that the autoconf snippets can use
68801         AC_REQUIRE.
68802
68803 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68804
68805         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68806         Initialize pkgdata_DATA.
68807         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68808         overriding it.
68809
68810 2006-08-06  Eric Blake  <ebb9@byu.net>
68811
68812         * lib/error.h: Fold in some upstream changes from glibc.
68813         * lib/error.c: Likewise.
68814
68815 2006-08-04  Bruno Haible  <bruno@clisp.org>
68816
68817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68818         Make the mostlyclean-local rule depend on mostlyclean-generic.
68819         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68820
68821 2006-07-31  Bruno Haible  <bruno@clisp.org>
68822
68823         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68824         <stdlib.h>, <string.h>.
68825
68826 2006-07-30  Bruno Haible  <bruno@clisp.org>
68827
68828         * modules/readlink (License): Change to LGPL.
68829
68830 2006-07-30  Bruno Haible  <bruno@clisp.org>
68831
68832         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68833         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68834         set PKGDATADIR to point to it.
68835
68836 2006-07-30  Bruno Haible  <bruno@clisp.org>
68837
68838         * modules/csharpexec (configure.ac): Comment out macro invocation.
68839         * modules/javaexec (configure.ac): Likewise.
68840         * modules/javacomp-script (configure.ac): Likewise.
68841
68842         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68843
68844 2006-07-30  Bruno Haible  <bruno@clisp.org>
68845
68846         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68847         linked-list.
68848
68849 2006-07-30  Bruno Haible  <bruno@clisp.org>
68850
68851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68852
68853 2006-07-30  Bruno Haible  <bruno@clisp.org>
68854
68855         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68856         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68857         get removed.
68858
68859 2006-07-29  Bruno Haible  <bruno@clisp.org>
68860
68861         Make it possible for gnulib-tool to work with locally modified or
68862         augmented gnulib repositories.
68863         * gnulib-tool (func_usage): Document --local-dir option.
68864         (local_gnulib_dir): New variable.
68865         Handle --local-dir option.
68866         (func_lookup_file): New function.
68867         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68868         (func_get_description, func_get_filelist, func_get_description,
68869         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68870         func_get_automake_snippet, func_get_include_directive,
68871         func_get_license, func_get_maintainer): Use func_lookup_file.
68872         (func_import, func_create_testdir): Use func_lookup_file.
68873
68874 2006-07-29  Bruno Haible  <bruno@clisp.org>
68875
68876         * modules/setenv (Depends-on): Add unistd.
68877
68878 2006-07-29  Bruno Haible  <bruno@clisp.org>
68879
68880         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68881
68882 2006-07-29  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68885
68886 2006-07-29  Bruno Haible  <bruno@clisp.org>
68887
68888         * gnulib-tool (import, update): If there is no Makefile.am, look at
68889         aclocal.m4, instead of bailing out.
68890
68891 2006-07-29  Bruno Haible  <bruno@clisp.org>
68892
68893         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68894         Categorize the options by when they are useful.
68895
68896 2006-07-29  Bruno Haible  <bruno@clisp.org>
68897
68898         * gnulib-tool (func_usage): Document option --no-libtool.
68899         Handle option --no-libtool.
68900         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68901         for changed semantics of $libtool variable.
68902         (func_import): Likewise. If libtool is not used, show this through
68903         an option --no-libtool.
68904         (func_create_testdir): Update.
68905
68906 2006-07-29  Bruno Haible  <bruno@clisp.org>
68907
68908         * gnulib-tool (func_import): Extend error message about missing
68909         --doc-base.
68910
68911 2006-07-29  Bruno Haible  <bruno@clisp.org>
68912
68913         * gnulib-tool (func_import): Don't create the $docbase directory if
68914         there is no file to store there.
68915
68916 2006-07-29  Bruno Haible  <bruno@clisp.org>
68917
68918         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68919         relevant, look for configure.ac there, not in the current directory.
68920         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68921
68922 2006-07-29  Bruno Haible  <bruno@clisp.org>
68923
68924         * gnulib-tool (SORT): New variable.
68925         (func_usage): Undocument --assume-autoconf option.
68926         Remove --assume-autoconf option handling.
68927         (autoconf_minversion): Determine from the contents of configure.ac.
68928         (func_import): Remove autoconf_minversion handling.
68929         Suggested by Eric Blake.
68930
68931 2006-07-29  Bruno Haible  <bruno@clisp.org>
68932
68933         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68934
68935 2006-07-29  Bruno Haible  <bruno@clisp.org>
68936
68937         * config/srclist.txt (*setenv.[ch]): Remove rules.
68938
68939 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68940
68941         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68942
68943 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68944
68945         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68946         arpa/inet.h.
68947
68948 2006-07-28  Simon Josefsson  <jas@extundo.com>
68949
68950         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68951         * modules/inet_pton (Depends-on): Likewise.
68952
68953 2006-07-28  Simon Josefsson  <jas@extundo.com>
68954
68955         * m4/netinet_in_h.m4: New file.
68956
68957 2006-07-28  Simon Josefsson  <jas@extundo.com>
68958
68959         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68960         #include's.
68961
68962 2006-07-28  Simon Josefsson  <jas@extundo.com>
68963
68964         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68965         #include's.
68966
68967 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68970         setgid on directories only if they set these bits.
68971         * lib/modechange.h: Remove obsolete comment about masks.
68972
68973 2006-07-28  Eric Blake  <ebb9@byu.net>
68974
68975         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68976         macro expansion.
68977
68978 2006-07-28  Bruno Haible  <bruno@clisp.org>
68979
68980         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68981
68982 2006-07-28  Bruno Haible  <bruno@clisp.org>
68983
68984         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68985
68986 2006-07-28  Bruno Haible  <bruno@clisp.org>
68987
68988         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68989         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68990         Define fallbacks.
68991         Avoids link error on FreeBSD 4.x.
68992         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68993
68994         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68995         encoding.
68996         * lib/mbswidth.c (iswcntrl): Likewise.
68997
68998 2006-07-27  Bruno Haible  <bruno@clisp.org>
68999
69000         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69001         test.
69002
69003 2006-07-27  Bruno Haible  <bruno@clisp.org>
69004
69005         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69006         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69007         defined.
69008
69009 2006-07-26  Eric Blake  <ebb9@byu.net>
69010
69011         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69012
69013 2006-07-26  Eric Blake  <ebb9@byu.net>
69014
69015         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69016         like mingw that lack mkstemp.
69017         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69018         avoid compilation warning on mingw.
69019
69020 2006-07-26  Bruno Haible  <bruno@clisp.org>
69021
69022         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69023         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69024         INT_FAST*_MIN, INTPTR_MIN.
69025
69026 2006-07-25  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/version-etc (Depends-on): Add stdarg.
69029
69030 2006-07-25  Bruno Haible  <bruno@clisp.org>
69031
69032         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69033         complex commands.
69034
69035 2006-07-25  Bruno Haible  <bruno@clisp.org>
69036
69037         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69038         defined in <stdarg.h> or config.h.
69039
69040 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69043         (gl_STDIO_SAFER): Remove.
69044
69045 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * MODULES.html.sh (File stream based Input/Output):
69048         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69049         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69050         * modules/fopen-safer, modules/tmpfile-safer: New files.
69051         * modules/stdio-safer: Remove.
69052
69053 2006-07-24  Bruno Haible  <bruno@clisp.org>
69054
69055         * modules/tmpdir: New file.
69056         * MODULES.html.sh (File system functions): Add it.
69057
69058 2006-07-24  Bruno Haible  <bruno@clisp.org>
69059
69060         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69061         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69062
69063 2006-07-24  Bruno Haible  <bruno@clisp.org>
69064
69065         * modules/clean-temp: New file.
69066
69067 2006-07-24  Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/tmpdir.m4: New file, from GNU gettext.
69070
69071 2006-07-24  Bruno Haible  <bruno@clisp.org>
69072
69073         * lib/tmpdir.h: New file, from GNU gettext.
69074         * lib/tmpdir.c: New file, from GNU gettext.
69075
69076 2006-07-24  Bruno Haible  <bruno@clisp.org>
69077
69078         * lib/clean-temp.h: New file, from GNU gettext.
69079         * lib/clean-temp.c: New file, from GNU gettext.
69080
69081 2006-07-23  Eric Blake  <ebb9@byu.net>
69082
69083         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69084         (Depends-on): Add binary-io.
69085
69086 2006-07-23  Eric Blake  <ebb9@byu.net>
69087
69088         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69089
69090 2006-07-23  Eric Blake  <ebb9@byu.net>
69091
69092         * lib/tmpfile-safer.c: New file.
69093         * lib/stdio-safer.h (fopen_safer): Add prototype.
69094         * lib/stdio--.h (tmpfile): Make safer.
69095
69096 2006-07-23  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69099         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69100         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69101         gl_linked_remove_at): Use it.
69102
69103 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69104         and Simon Josefsson <jas@extundo.com>
69105
69106         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69107
69108         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69109
69110 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * modules/close-stream: New file.
69113         * modules/closeout (Description): Make it clear that it exits
69114         with a diagnostic on error.
69115         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69116         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69117
69118 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69119
69120         * m4/close-stream.m4: New file.
69121
69122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         * lib/close-stream.c, lib/close-stream.h: New files.
69125
69126 2006-07-22  Bruno Haible  <bruno@clisp.org>
69127
69128         Merge from GNU gettext 0.15.
69129
69130         2006-05-01  Bruno Haible  <bruno@clisp.org>
69131
69132                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69133
69134         2006-07-22  Bruno Haible  <bruno@clisp.org>
69135
69136                 * modules/javaversion: New file.
69137                 * MODULES.html.sh (Java): Add javaversion.
69138
69139         2006-03-12  Bruno Haible  <bruno@clisp.org>
69140
69141                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69142
69143         2005-12-04  Bruno Haible  <bruno@clisp.org>
69144
69145                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69146                 (untested).
69147
69148         2006-06-21  Bruno Haible  <bruno@clisp.org>
69149
69150                 Avoid warnings from recent versions of mcs.
69151                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69152                 -o, -L, -r any more. Use options documented since mcs-1.0
69153                 instead. Similarly for -g.
69154
69155         2005-12-04  Bruno Haible  <bruno@clisp.org>
69156
69157                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69158                 .resources, not .resource.
69159
69160         2005-07-09  Bruno Haible  <bruno@clisp.org>
69161
69162                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69163                 add a .dll suffix.
69164                 Reported by Mark Junker <mjscod@gmx.de>.
69165
69166         2006-07-22  Bruno Haible  <bruno@clisp.org>
69167
69168                 * modules/gettext: Upgrade to gettext-0.15.
69169                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69170                 m4/visibility.m4.
69171                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69172
69173 2006-07-22  Bruno Haible  <bruno@clisp.org>
69174
69175         Merge from GNU gettext 0.15.
69176
69177         2006-03-25  Bruno Haible  <bruno@clisp.org>
69178
69179                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69180
69181         2006-07-21  Bruno Haible  <bruno@clisp.org>
69182
69183                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69184                 "1.1".
69185
69186         2006-05-09  Bruno Haible  <bruno@clisp.org>
69187
69188                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69189                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69190                 for the conftestver execution.
69191
69192         2006-05-01  Bruno Haible  <bruno@clisp.org>
69193
69194                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69195                 optional target-version argument. Verify that the compiler
69196                 groks source of the specified source-version, or add -source
69197                 option as necessary. Verify that the compiler produces
69198                 bytecode in the specified target-version, or add -target and
69199                 -source options as necessary. Make the result of the test
69200                 available as variable CONF_JAVAC. Also log error output in
69201                 config.log.
69202
69203         2006-03-11  Bruno Haible  <bruno@clisp.org>
69204
69205                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69206
69207         2006-05-09  Bruno Haible  <bruno@clisp.org>
69208
69209                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69210                 CLASSPATH_SEPARATOR to a semicolon.
69211
69212         2006-03-12  Bruno Haible  <bruno@clisp.org>
69213
69214                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69215                 available as variable CONF_JAVA, for subsequent autoconf
69216                 tests. Also log error output in config.log.
69217
69218         2006-07-19  Bruno Haible  <bruno@clisp.org>
69219
69220                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69221                 that getline works on glibc2 systems. Needed to avoid trouble
69222                 in relocatable.c.
69223                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69224
69225         2005-12-04  Bruno Haible  <bruno@clisp.org>
69226
69227                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69228                 launcher (untested).
69229
69230         2005-12-04  Bruno Haible  <bruno@clisp.org>
69231
69232                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69233
69234         2006-07-22  Bruno Haible  <bruno@clisp.org>
69235
69236                 * gettext.m4: Update from GNU gettext-0.15.
69237                 * nls.m4: Likewise.
69238                 * po.m4: Likewise.
69239                 * inttypes-pri.m4: Likewise.
69240                 * inttypes-h.m4: Renamed from inttypes.m4.
69241                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69242
69243 2006-07-22  Bruno Haible  <bruno@clisp.org>
69244
69245         Merge from GNU gettext 0.15.
69246
69247         2005-07-05  Bruno Haible  <bruno@clisp.org>
69248
69249                 * printf-args.c (printf_fetchargs): Work around broken
69250                 definition of wint_t on mingw.
69251
69252         2005-02-12  Bruno Haible  <bruno@clisp.org>
69253
69254                 * xallocsa.h: Add extern "C" for C++.
69255
69256         2006-05-17  Bruno Haible  <bruno@clisp.org>
69257
69258                 Cygwin portability.
69259                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69260
69261         2006-04-30  Bruno Haible  <bruno@clisp.org>
69262
69263                 * progreloc.c: Include <mach-o/dyld.h> if available.
69264                 (find_executable): Use _NSGetExecutablePath when possible.
69265
69266         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69267
69268                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69269                 function.
69270
69271         2005-12-29  Bruno Haible  <bruno@clisp.org>
69272
69273                 * progreloc.c (set_program_name_and_installdir): Fix
69274                 compilation error.
69275
69276         2005-12-04  Bruno Haible  <bruno@clisp.org>
69277
69278                 Cygwin portability.
69279                 * progreloc.c: Include <windows.h> also on Cygwin.
69280                 (find_executable): Add support for Cygwin.
69281                 (set_program_name_and_installdir): Handle also platforms with
69282                 nonempty EXEEXT.
69283
69284         2006-07-11  Bruno Haible  <bruno@clisp.org>
69285
69286                 * javacomp.c: Fix a comment.
69287                 Reported by Jim Meyering.
69288
69289         2006-04-30  Bruno Haible  <bruno@clisp.org>
69290
69291                 * javacomp.h (compile_java_class): Add source_version,
69292                 target_version arguments.
69293                 * javacomp.c: Rewritten to choose only a compiler that
69294                 respects the specified source_version and target_version.
69295
69296         2006-06-27  Bruno Haible  <bruno@clisp.org>
69297
69298                 Assume correct S_ISDIR macro.
69299                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69300
69301         2006-07-22  Bruno Haible  <bruno@clisp.org>
69302
69303                 * javaversion.h: New file, from GNU gettext.
69304                 * javaversion.c: New file, from GNU gettext.
69305                 * javaversion.java: New file, from GNU gettext.
69306                 * javaversion.class: New file, from GNU gettext.
69307
69308         2006-05-17  Bruno Haible  <bruno@clisp.org>
69309
69310                 Cygwin portability.
69311                 * javaexec.c (execute_java_class): Test for jview program
69312                 also on Cygwin.
69313
69314         2006-04-09  Bruno Haible  <bruno@clisp.org>
69315
69316                 * fatal-signal.c: Don't include string.h.
69317                 (at_fatal_signal): Use a copying loop instead of memcpy.
69318
69319         2005-12-04  Bruno Haible  <bruno@clisp.org>
69320
69321                 * csharpexec.c: Add support for 'clix' launcher (untested).
69322                 (execute_csharp_using_sscli): New function.
69323                 (execute_csharp_program): Call it.
69324
69325         2006-06-21  Bruno Haible  <bruno@clisp.org>
69326
69327                 Avoid warnings from recent versions of mcs.
69328                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69329                 -o, -L, -r any more. Use options documented since mcs-1.0
69330                 instead. Similarly for -g.
69331
69332         2005-07-09  Bruno Haible  <bruno@clisp.org>
69333
69334                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69335                 add a .dll suffix.
69336                 Reported by Mark Junker <mjscod@gmx.de>.
69337
69338         2006-06-17  Bruno Haible  <bruno@clisp.org>
69339
69340                 * config.charset: Update for NetBSD 3.0.
69341
69342         2006-05-17  Bruno Haible  <bruno@clisp.org>
69343
69344                 Cygwin portability.
69345                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69346
69347         2006-05-16  Bruno Haible  <bruno@clisp.org>
69348
69349                 * localcharset.c [CYGWIN]: Include <windows.h>.
69350                 (get_charset_aliases): For Cygwin, return the same CPxxx
69351                 aliases list as under WIN32.
69352                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69353                 the environment variables. Fall back to GetACP().
69354
69355         2006-04-05  Bruno Haible  <bruno@clisp.org>
69356
69357                 * config.charset: Update Juan Manuel Guerrero's address.
69358
69359         2005-02-12  Bruno Haible  <bruno@clisp.org>
69360
69361                 * allocsa.h: Add extern "C" for C++.
69362
69363         2005-02-10  Bruno Haible  <bruno@clisp.org>
69364
69365                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69366                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69367
69368         2006-07-22  Bruno Haible  <bruno@clisp.org>
69369
69370                 * gettext.h: Update to GNU gettext-0.15.
69371
69372 2006-07-22  Bruno Haible  <bruno@clisp.org>
69373
69374         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69375         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69376         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69377
69378 2006-07-21  Eric Blake  <ebb9@byu.net>
69379
69380         * modules/stdlib-safer: New file.
69381         * MODULES.html.sh (File stream based Input/Output): Add
69382         stdlib-safer.
69383
69384 2006-07-21  Eric Blake  <ebb9@byu.net>
69385
69386         * lib/stdlib-safer.h: New file from coreutils, required by
69387         stdlib--.h.
69388
69389 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69390
69391         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69392
69393 2006-07-20  Bruno Haible  <bruno@clisp.org>
69394
69395         * gnulib-tool: Recognize new option --assume-autoconf.
69396         (autoconf_minversion): New variable.
69397         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69398
69399 2006-07-20  Bruno Haible  <bruno@clisp.org>
69400
69401         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69402
69403 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69404
69405         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69406         Reindent and repaginate.
69407
69408 2006-07-19  Derek Price  <derek@ximbiot.com>
69409
69410         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69411         Correct grammar.
69412
69413 2006-07-17  Bruno Haible  <bruno@clisp.org>
69414
69415         * modules/list: New file.
69416         * modules/array-list: New file.
69417         * modules/carray-list, modules/carray-list-tests: New files.
69418         * modules/linked-list, modules/linked-list-tests: New files.
69419         * modules/avltree-list, modules/avltree-list-tests: New files.
69420         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69421         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69422         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69423         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69424         * modules/oset: New file.
69425         * modules/array-oset: New file.
69426         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69427         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69428         * tests/test-carray_list.c: New file.
69429         * tests/test-linked_list.c: New file.
69430         * tests/test-avltree_list.c: New file.
69431         * tests/test-rbtree_list.c: New file.
69432         * tests/test-linkedhash_list.c: New file.
69433         * tests/test-avltreehash_list.c: New file.
69434         * tests/test-rbtreehash_list.c: New file.
69435         * tests/test-avltree_oset.c: New file.
69436         * tests/test-rbtree_oset.c: New file.
69437         * MODULES.html.sh (Container data structures): New section.
69438
69439 2006-07-17  Bruno Haible  <bruno@clisp.org>
69440
69441         * m4/gl_list.m4: New file.
69442
69443 2006-07-17  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/gl_list.h: New file.
69446         * lib/gl_list.c: New file.
69447         * lib/gl_array_list.h: New file.
69448         * lib/gl_array_list.c: New file.
69449         * lib/gl_carray_list.h: New file.
69450         * lib/gl_carray_list.c: New file.
69451         * lib/gl_linked_list.h: New file.
69452         * lib/gl_linked_list.c: New file.
69453         * lib/gl_anylinked_list1.h: New file.
69454         * lib/gl_anylinked_list2.h: New file.
69455         * lib/gl_avltree_list.h: New file.
69456         * lib/gl_avltree_list.c: New file.
69457         * lib/gl_anyavltree_list1.h: New file.
69458         * lib/gl_anyavltree_list2.h: New file.
69459         * lib/gl_rbtree_list.h: New file.
69460         * lib/gl_rbtree_list.c: New file.
69461         * lib/gl_anyrbtree_list1.h: New file.
69462         * lib/gl_anyrbtree_list2.h: New file.
69463         * lib/gl_anytree_list1.h: New file.
69464         * lib/gl_anytree_list2.h: New file.
69465         * lib/gl_linkedhash_list.h: New file.
69466         * lib/gl_linkedhash_list.c: New file.
69467         * lib/gl_anyhash_list1.h: New file.
69468         * lib/gl_anyhash_list2.h: New file.
69469         * lib/gl_avltreehash_list.h: New file.
69470         * lib/gl_avltreehash_list.c: New file.
69471         * lib/gl_rbtreehash_list.h: New file.
69472         * lib/gl_rbtreehash_list.c: New file.
69473         * lib/gl_anytreehash_list1.h: New file.
69474         * lib/gl_anytreehash_list2.h: New file.
69475
69476         * lib/gl_oset.h: New file.
69477         * lib/gl_oset.c: New file.
69478         * lib/gl_array_oset.h: New file.
69479         * lib/gl_array_oset.c: New file.
69480         * lib/gl_avltree_oset.h: New file.
69481         * lib/gl_avltree_oset.c: New file.
69482         * lib/gl_rbtree_oset.h: New file.
69483         * lib/gl_rbtree_oset.c: New file.
69484         * lib/gl_anytree_oset.h: New file.
69485
69486 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * m4/mkancesdirs.m4: New file.
69489         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69490         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69491         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69492         it.
69493
69494 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69497         * lib/mkancesdirs.h: New files.
69498         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69499         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69500         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69501         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69502         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69503         callers changed.  Revamp internals significantly, by not
69504         attempting to create directories that are temporarily more
69505         permissive than the final results.  Do not attempt to use
69506         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69507         This removes some race conditions, fixes some bugs, and simplifies
69508         things.  Use new dirchownmod function to do owner and mode changes.
69509         * lib/mkdir-p.h: Likewise.
69510         * lib/modechange.c (octal_to_mode): New function.
69511         (struct mode_change): New member mentioned.
69512         (make_node_op_equals): New arg mentioned.  All callers changed.
69513         (mode_compile): Keep track of which mode bits the user has explicitly
69514         mentioned.
69515         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69516         New arg PMODE_BITS, to keep track of which mode bits the user
69517         mentioned; it treats S_ISUID and S_ISGID speciall.
69518         All callers changed.
69519         * lib/modechange.h: Likewise.
69520
69521 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * MODULES.html.sh: Add mkancestors.
69524         * modules/mkancesdirs: New module.
69525         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69526         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69527         The chdir-safer and afs files are now orphans; I'll remove them
69528         unless someone speaks up.
69529         Add lib/dirchownmod.c, lib/dirchownmod.h.
69530         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69531         Add lchown, mkancesdirs.
69532         (Maintainer): Add self.
69533
69534 2006-07-15  Karl Berry  <karl@gnu.org>
69535
69536         * gnulib-tool: help message wording/arrangement.
69537
69538 2006-07-14  Simon Josefsson  <jas@extundo.com>
69539
69540         * doc/gnulib.texi (Libtool and Windows): New section.
69541
69542 2006-07-12  Simon Josefsson  <jas@extundo.com>
69543
69544         * modules/gendocs (License): Fix license, approved by Karl.
69545
69546 2006-07-12  Eric Blake  <ebb9@byu.net>
69547
69548         * MODULES.html.sh: Add gendocs.
69549
69550 2006-07-11  Eric Blake  <ebb9@byu.net>
69551
69552         * modules/fdl: New module, to install doc/fdl.texi.
69553         * MODULES.html.sh: Add new section for documentation modules.
69554         * gnulib-tool: Avoid space-tab.
69555         (--doc-base): New option, to manage files from doc.
69556
69557 2006-07-11  Eric Blake  <ebb9@byu.net>
69558
69559         * m4/absolute-header.m4: Fix comments to match recent change.
69560
69561 2006-07-11  Eric Blake  <ebb9@byu.net>
69562
69563         * gnulib-tool: List --doc-base before --tests-base.
69564
69565 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69566
69567         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69568
69569 2006-07-11  Bruno Haible  <bruno@clisp.org>
69570
69571         * README: Mention where to put documentation.
69572
69573 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69574
69575         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69576
69577 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69580         to stdint.m4.
69581
69582 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69585         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69586         "no/such/file/stdint.h" when there is no such file, so that
69587         the resulting C code can be parsed by dodgy compilers.
69588         Problems reported by Bob Proulx.
69589
69590 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69591
69592         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69593         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69594         macros into the GNU _D_EXACT_NAMLEN.
69595         * lib/savedir.c:  Likewise.
69596         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69597
69598 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69599         and Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69602         * m4/savedir.m4:
69603         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69604         macros into the GNU _D_EXACT_NAMLEN.
69605
69606 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69609         around the absolute name, to work around a problem with the HP-UX
69610         11.23 native C compiler, reported by Bob Proulx.
69611
69612 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * doc/maintain.texi, make-stds.texi: Sync from
69615         <http://savannah.gnu.org/projects/gnustandards>.
69616
69617 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69620
69621 2006-07-09  Jim Meyering  <jim@meyering.net>
69622
69623         * m4/glob.m4: Remove a doubled word in a comment.
69624
69625 2006-07-09  Jim Meyering  <jim@meyering.net>
69626
69627         * lib/argp-pv.c: Remove a doubled word in a comment.
69628         * lib/check-version.c (check_version): Likewise.
69629         * lib/javacomp.c (compile_java_class): Likewise.
69630
69631 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69634         for the benefit of people using Autoconf 2.60.  If you want to
69635         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69636         (or m4/onceonly.m4, if pre-2.57) manually.
69637
69638 2006-07-08  Jim Meyering  <jim@meyering.net>
69639
69640         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69641         comment.
69642         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69643         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69644         comment.
69645
69646 2006-07-08  Jim Meyering  <jim@meyering.net>
69647
69648         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69649
69650 2006-07-07  Simon Josefsson  <jas@extundo.com>
69651
69652         * tests/test-crc.c: Change expected crc value, the test vector
69653         were probably computed using the old broken crc.c?
69654
69655 2006-07-06  Simon Josefsson  <jas@extundo.com>
69656
69657         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69658         now the canonical place for the M4 file).
69659
69660         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69661         from the sys_socket dependency now.
69662
69663         * modules/inet_pton (Files): Ditto.
69664
69665         * modules/inet_ntop (Files): Ditto.
69666
69667 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69668
69669         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69670         not gl_PREREQ_GETUSERSHELL.
69671
69672 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69673
69674         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69675         with only one argument, for Autoconf 2.60.
69676         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69677         expand to nothing, so add a shell command to avoid syntax error.
69678         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69679
69680 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69681
69682         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69683
69684 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69687         no longer needed.  Check for isblank decl.
69688         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69689         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69690         of existence.
69691
69692 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * lib/getloadavg.c: Use __VMS, not VMS.
69695         * lib/getopt.c: Likewise.
69696         * lib/getpagesize.h: Likewise.
69697         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69698         and probably does not work.
69699
69700 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69701
69702         * lib/.cppi-disable: Add wcwidth.
69703         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69704         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69705         (ISGRAPH): Remove.  All uses changed to isgraph.
69706         (FOLD) [!defined _LIBC]: Remove special case.
69707         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69708         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69709         HAVE_ISBLANK.
69710         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69711         case.
69712
69713 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69714
69715         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69716         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69717         brackets.  Other minor changes to suppress some compiler
69718         warnings.
69719
69720 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69721         and Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69724         of invoking obsolescent AC_HEADER_DIRENT macro.
69725         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69726         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69727         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69728         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69729         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69730         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69731         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69732         * m4/readdir.m4: Remove; no longer needed.
69733
69734 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69735         and Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69738         Don't worry about this obsolete case any more.
69739         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69740         directories.
69741         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69742         worry about this obsolete case any more.
69743         * lib/fts.c: Likewise.
69744         * lib/getcwd.c: Likewise.
69745         * lib/glob.h: Likewise.
69746         * lib/savedir.c: Likewise.
69747
69748 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69749
69750         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69751         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69752         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69753         needed.
69754         All uses removed.
69755         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69756         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69757         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69758         needed.
69759         * m4/getdate.m4 (gl_GETDATE): Likewise.
69760         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69761         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69762         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69763         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69764         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69765         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69766         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69767         needed.
69768
69769 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * lib/memcasecmp.c: Include <limits.h>.
69772         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69773         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69774         Don't assume isdigit succeeds only on '0' through '9'.
69775
69776 2006-07-05  Eric Blake  <ebb9@byu.net>
69777
69778         * modules/getaddrinfo (Depends-on): Add snprintf.
69779
69780 2006-07-05  Eric Blake  <ebb9@byu.net>
69781
69782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69783         to avoid 'header present but could not be compiled' on cygwin.
69784
69785 2006-07-05  Eric Blake  <ebb9@byu.net>
69786
69787         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69788         missing from netdb.h.
69789         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69790
69791 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69792
69793         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69794         no longer needed.
69795         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69796         * m4/getdate.m4 (gl_GETDATE): Likewise.
69797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69798         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69799         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69800         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69801         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69802
69803 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69804
69805         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69806         All uses of is_space replaced by isspace.
69807         * lib/exit.h: Don't talk about STDC_HEADERS.
69808         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69809         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69810         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69811         replaced by isprint etc.
69812         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69813         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69814         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69815         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69816         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69817         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69818
69819 2006-07-05  Bruno Haible  <bruno@clisp.org>
69820
69821         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69822         the function exists, before testing against AIX.
69823         Reported by Martin Lambers <marlam@marlam.de>.
69824
69825 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69826
69827         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69828         From Mark D. Baushke.
69829
69830 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69833         to the absolute name, not just one, to bypass Sun C 5.8's
69834         "warning: #include of /usr/include/... may be non-portable".
69835
69836 2006-07-04  Eric Blake  <ebb9@byu.net>
69837
69838         * modules/dirname-tests: New test module.
69839         * tests/test-dirname.c: New file, replacing dirname.c
69840         TEST_DIRNAME section that was recently deleted.
69841
69842 2006-07-04  Bruno Haible  <bruno@clisp.org>
69843
69844         Assume ANSI C header files and <ctype.h> functions.
69845         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69846         (mbsnwidth): Use isprint, iscntrl instead.
69847
69848 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69849
69850         Merge from coreutils.
69851         * MODULES.html.sh: Add xstrtold.
69852         * modules/xstrtold: New file.
69853         * modules/cycle-check (Files): Add lib/same-inode.h.
69854         * modules/dirname (Files): Add m4/double-slash-root.m4.
69855         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69856         * modules/mkdir-p (Files): Add lib/same-inode.h.
69857         * modules/same (Files): Add lib/same-inode.h.
69858
69859 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69860
69861         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69862         This is to keep the terminology clean; POSIX talks about
69863         "absolute pathnames", not "full pathnames", but the GNU
69864         Coding Standards say to use "path" for something else;
69865         so use "absolute" to keep both sides happy.
69866         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69867         Set gl_absolute_header, not gl_full_header_path.
69868         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69869         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69870         All uses changed.
69871
69872         Merge from coreutils.
69873
69874         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69877         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69878         want to require the building of c-strtod.o.
69879         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69880         needs -lm directly.
69881         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69882
69883         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69886         --as-needed option if available.  Problem reported by Albert Chin in
69887         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69888         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69889         cc merely issues a bunch of annoying warnings for --as-needed
69890         (this problem was reported by Bob Proulx).  Also, try linking with
69891         -lm to detect a bug in binutils 2.16 (this problem was reported
69892         by Ralf Wildenhues).
69893
69894         2006-06-18  Jim Meyering  <jim@meyering.net>
69895
69896         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69897         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69898         macro.
69899         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69900         also check for glibc-2.4's abort-inducing bug.
69901
69902         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69903         Low-probability clean-up should be to use rmdir to get rid of
69904         the just-created directory, not unlink.
69905
69906         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69907         configure fail, and request a bug report to inform us about it.
69908         Add a comment that, barring reports to the contrary, in 2007 we'll
69909         assume ftruncate is universally available.
69910
69911         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69914
69915         2006-03-12  Jim Meyering  <jim@meyering.net>
69916
69917         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69918         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69919         * m4/same.m4 (gl_SAME): Likewise.
69920         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69921
69922         2006-03-11  Eric Blake  <ebb9@byu.net>
69923
69924         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69925         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69926         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69927         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69928
69929 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69930
69931         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69932         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69933         reported by Mark D. Baushke, one in
69934         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69935
69936         Merge from coreutils.
69937
69938         * lib/.cppi-disable: Add stdint_.h.
69939         * lib/.cvsignore: Add stdint.h.
69940
69941         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69944         both double and long double versions.
69945         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69946         * lib/xstrtold.c: New file.
69947         * lib/xstrtod.h (xstrtold): New decl.
69948
69949         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69950
69951         * lib/filemode.c (setst): Remove.
69952         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69953         (arguably) clearer, and the generated code is a bit smaller on my
69954         Debian GNU/Linux stable x86 host.
69955
69956         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69959         Assume that filemode.h includes sys/types.h and sys/stat.h.
69960         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69961         (ftypelet): Reorder to put common cases first, for efficiency.
69962         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69963         to do 'M'.
69964         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69965         of 10, for compatibility with FreeBSD.  All callers changed.
69966         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69967         types that can't be deduced solely from st_mode.  First arg is now a
69968         const pointer.
69969         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69970         (strmode): Renamed from mode_string.
69971         (filemodestring): New decl.
69972         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69973         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69974         needed.
69975         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69976
69977         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69980         fsusage.h now does that.  Include fsusage.h first, to test interface.
69981         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69982         at most one method (the old code could have generated decls that
69983         didn't conform to C89, not that this was ever exercised).
69984         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69985
69986         2006-03-19  Jim Meyering  <jim@meyering.net>
69987
69988         Work even in a chroot where d_ino values for entries in "/"
69989         don't match the stat.st_ino values for the same names.
69990         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69991         number, iterate through all entries again, using lstat instead.
69992         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69993         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69994
69995         * lib/getcwd.c (__getcwd): Clarify a comment.
69996         Use memcpy in place of a call to strcpy.
69997
69998         2006-03-12  Jim Meyering  <jim@meyering.net>
69999
70000         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70001         matches that of the current directory (which we're about to chdir ".."
70002         out of), then save the dev-ino of the parent, instead.
70003
70004         * lib/same-inode.h (SAME_INODE): New file/macro.
70005         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70006         Include "same-inode.h", instead.
70007         * lib/same.c: Likewise.
70008         * lib/cycle-check.h: Include "same-inode.h".
70009         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70010         * lib/cycle-check.c (SAME_INODE): Remove definition.
70011         * lib/root-dev-ino.h: Include "same-inode.h".
70012
70013         2006-03-11  Eric Blake  <ebb9@byu.net>
70014
70015         * lib/same.c (same_name): s/base_name/last_component/
70016         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70017         * lib/filenamecat.c (file_name_concat): Likewise.
70018
70019         2006-03-11  Eric Blake  <ebb9@byu.net>,
70020                     Paul Eggert  <eggert@cs.ucla.edu>
70021
70022         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70023         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70024         drive prefix.
70025         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70026         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70027         (last_component): New method.
70028         * lib/dirname.c (dir_len): Determine when drive letters need a
70029         subsequent slash.  Preserve // when it is special.
70030         (dir_name): Don't append dot when drive letter is absolute.
70031         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70032         * lib/basename.c (base_name): New semantics - malloc the result.
70033         Preserve // when it is special.  Preserve relative files that look
70034         like drive letters.
70035         (base_len): Preserve // when it is special.
70036         (last_component): New method, similar to old base_name semantics.
70037         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70038         base_name.  Strip redundant slashes from ///.
70039
70040 2006-07-03  Jim Meyering  <jim@meyering.net>
70041
70042         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70043         macro is used before the first cycle_check call.
70044
70045 2006-07-03  Eric Blake  <ebb9@byu.net>
70046
70047         * modules/dirname (Depends-on): Add xstrndup.
70048
70049 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70052         test cases, so that config.log is a bit easier to follow.
70053
70054 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70057         both are 64 bits, since this seems to be the tradition, and this
70058         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70059         we ever run into a host that prefers long long to long in this
70060         case, we'll need another configure-time test.  Problem reported by
70061         Jim Meyering.
70062
70063 2006-07-02  Eric Blake  <ebb9@byu.net>
70064
70065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70066
70067 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * modules/inttypes (Depends-on): No longer depends on stdint.
70070         * modules/stdint (Description): Say more about assumptions.
70071         Say that the fast types might differ.  Say macros are used.
70072         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70073         (Makefile.am): Revise list of substituted symbols to match
70074         new stdint.m4.
70075         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70076         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70077         * tests/test-stdint.c (verify_same_types)
70078         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70079         the code conforms to C99/C89.
70080         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70081         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70082
70083 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70086         but fix a bug, by requiring at least 64 bits.
70087         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70088         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70089         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70090         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70091
70092         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70093         changes.  Make 2.59 a prerequisite.  Check and substitute for
70094         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70095         inttypes.h.  Do not use special include files; just use the
70096         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70097         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70098         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70099         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70100         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70101         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70102         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70103         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70104         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70105         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70106         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70107         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70108         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70109         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70110         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70111         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70112         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70113         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70114         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70115         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70116         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70117         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70118         not check for things that C99 does not require, e.g., int8_t.  If
70119         a test isn't needed unless <stdint.h> isn't working, and is
70120         unlikely to be needed for any other reason, then don't do it
70121         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70122         size_t, since we assume C89 freestanding at least.  Do not check
70123         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70124         the right thing even if the types are not defined.  Instead use:
70125         (gl_STDINT_TYPE_PROPERTIES): New macro.
70126         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70127         testing whether <sys/types.h> clashes, as Autoconf does this for
70128         us now.  All uses removed.
70129         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70130         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70131         (gl_CHECK_TYPE_SAME):
70132         Remove; no longer needed.
70133         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70134         exists, since we'll return 0 anyway in that case.
70135         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70136
70137 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70140         possible collision with system files.
70141         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70142         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70143         WCHAR_MIN and WCHAR_MAX in this case.
70144         (<stddef.h>): Do not include; no longer needed.
70145         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70146         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70147         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70148         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70149         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70150         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70151         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70152         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70153         !defined(__c99))]: Include in this case too, since it's harmless
70154         now.
70155         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70156         dangerous to do so.
70157         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70158         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70159         (_STDINT_MIN, _STDINT_MAX): New macros.
70160         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70161         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70162         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70163         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70164         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70165         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70166         macros, not typedefs; this simplifies things quite a bit.
70167         Use long int for all types narrower than int64_t.
70168         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70169         Define in terms of long long int or int64_t or long int,
70170         not int64_t or int32_t.  This saves some compile-time testing.
70171         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70172         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70173         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70174         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70175         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70176         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70177         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70178         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70179         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70180         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70181         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70182         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70183         undef any previous version and define our own version, for
70184         simplicity and consistency with the new macros for types.
70185         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70186         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70187         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70188         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70189         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70190         @WINT_T_SUFFIX@ to keep things simple here.
70191         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70192         Simplify by assuming typical 8/16/32/64 host, since we're
70193         already doing that elsewhere anyway.
70194         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70195         and assume long long int is 64 bits if available.  This
70196         speeds up 'configure'.
70197
70198 2006-07-01  Eric Blake  <ebb9@byu.net>
70199
70200         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70201         Reported by Andreas Buening.
70202
70203 2006-07-01  Eric Blake  <ebb9@byu.net>
70204
70205         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70206
70207 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70208
70209         * lib/getaddrinfo.c: fixed typo
70210
70211 2006-06-29  Jim Meyering  <jim@meyering.net>
70212
70213         * modules/strftime (Maintainer): Add my name, since with the
70214         FPRINTFTIME changes strftime.c has forked from glibc.
70215
70216 2006-06-29  Eric Blake  <ebb9@byu.net>
70217
70218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70219
70220 2006-06-29  Eric Blake  <ebb9@byu.net>
70221
70222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70223
70224 2006-06-29  Eric Blake  <ebb9@byu.net>
70225
70226         * lib/stat_.h: New file.
70227
70228 2006-06-29  Eric Blake  <ebb9@byu.net>
70229
70230         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70231         unused static function.
70232
70233 2006-06-29  Eric Blake  <ebb9@byu.net>
70234
70235         * doc/functions.texi (Function Portability): Document missing lstat
70236         on mingw.
70237
70238 2006-06-29  Eric Blake  <ebb9@byu.net>
70239
70240         * MODULES.html.sh: Add sys_stat.
70241         * modules/sys_stat: New module.
70242         * modules/mkstemp (Depends-on): Add sys_stat.
70243
70244 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70245
70246         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70247
70248 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70249
70250         * m4/c-bs-a.m4: Removed.
70251
70252 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70253
70254         * lib/strftime.c: Assume strftime() exists.
70255
70256 2006-06-29  Derek Price  <derek@ximbiot.com>
70257
70258         * modules/c-bs-a: Removed - \a is C89.
70259         * MODULES.html.sh: Remove c-bs-a.
70260
70261 2006-06-29  Bruno Haible  <bruno@clisp.org>
70262
70263         * modules/wcwidth (License): Change to LGPL.
70264
70265 2006-06-28  Simon Josefsson  <jas@extundo.com>
70266
70267         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70268         on _WIN32.
70269
70270         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70271         getnameinfo.
70272
70273 2006-06-28  Simon Josefsson  <jas@extundo.com>
70274
70275         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70276
70277 2006-06-28  Simon Josefsson  <jas@extundo.com>
70278
70279         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70280         functions there.  It will succeed on Windows XP, but on Windows
70281         2000 and (presumably) earlier, it will fail, and use the internal
70282         re-implementation.
70283         (use_win32_p): New function.
70284         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70285         Support AI_NUMERICSERV to disable getservbyname.
70286         (getnameinfo): New function, only supports
70287         NI_NUMERICHOST|NI_NUMERICSERV for now.
70288
70289         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70290         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70291         getnameinfo.
70292
70293 2006-06-28  Eric Blake  <ebb9@byu.net>
70294
70295         * modules/wcwidth: New file.
70296         * modules/mbchar (Depends-on): Add wcwidth.
70297         * modules/mbswidth (Depends-on): Add wcwidth.
70298         * MODULES.html.sh: Add wcwidth.
70299
70300 2006-06-28  Eric Blake  <ebb9@byu.net>
70301
70302         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70304
70305 2006-06-28  Eric Blake  <ebb9@byu.net>
70306
70307         * lib/xvasprintf.h: Fix comments.
70308
70309 2006-06-28  Eric Blake  <ebb9@byu.net>
70310
70311         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70312         * lib/mbswidth.c (wcwidth): Move from here...
70313         * lib/wcwidth.h: ...to this new file.
70314
70315 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70316
70317         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70318
70319         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70320         it's obsolete.
70321         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70322
70323 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70324
70325         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70326         Autoconf 2.60 says this stuff was obsolete.
70327
70328 2006-06-28  Bruno Haible  <bruno@clisp.org>
70329
70330         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70331
70332 2006-06-28  Bruno Haible  <bruno@clisp.org>
70333
70334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70335         gt_TYPE_WCHAR_T.
70336
70337 2006-06-28  Bruno Haible  <bruno@clisp.org>
70338
70339         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70340         declaration for wcwidth.
70341         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70342
70343 2006-06-28  Bruno Haible  <bruno@clisp.org>
70344
70345         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70346         (mkdir): Define using _mkdir.
70347
70348 2006-06-28  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/getaddrinfo.h: Fix POSIX URL.
70351         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70352         _WIN32.
70353         (use_win32_p): Make static.
70354         (getaddrinfo): Reject service name if it is empty or does not consist
70355         solely of decimal digits, or if its value is > 65535.
70356         (getnameinfo): Remove useless casts.
70357
70358 2006-06-27  Simon Josefsson  <jas@extundo.com>
70359
70360         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70361         Eggert and Martin Lambers.
70362
70363 2006-06-27  Simon Josefsson  <jas@extundo.com>
70364
70365         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70366         Eggert and Martin Lambers.
70367
70368 2006-06-27  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70371         result to 0, not to empty.
70372         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70373
70374 2006-06-27  Bruno Haible  <bruno@clisp.org>
70375
70376         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70377
70378 2006-06-26  Simon Josefsson  <jas@extundo.com>
70379
70380         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70381         present.
70382
70383 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70386         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70387         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70388
70389 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70390
70391         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70392
70393 2006-06-26  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70396
70397 2006-06-26  Bruno Haible  <bruno@clisp.org>
70398
70399         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70400
70401 2006-06-26  Bruno Haible  <bruno@clisp.org>
70402
70403         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70404         SGI C compiler in pre-C99 mode.
70405         Suggested by Mark D. Baushke and Larry Jones.
70406
70407 2006-06-26  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70410         WCHAR_MAX.
70411         Reported by Mark D. Baushke and Larry Jones.
70412
70413 2006-06-26  Bruno Haible  <bruno@clisp.org>
70414
70415         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70416         in pre-C99 mode.
70417         Suggested by Mark D. Baushke and Larry Jones.
70418
70419 2006-06-23  Simon Josefsson  <jas@extundo.com>
70420             Bruno Haible  <bruno@clisp.org>
70421
70422         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70423         Emit mostlyclean-local rule.
70424         (func_emit_tests_Makefile_am): Likewise.
70425         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70426
70427 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70428
70429         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70430
70431 2006-06-23  Bruno Haible  <bruno@clisp.org>
70432
70433         * tests/test-stdint.c: Update to match ISO C 99 Technical
70434         Corrigendum 1.
70435
70436 2006-06-23  Bruno Haible  <bruno@clisp.org>
70437
70438         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70439
70440 2006-06-23  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/stdint_.h: Treat IRIX like OpenBSD.
70443
70444 2006-06-23  Bruno Haible  <bruno@clisp.org>
70445
70446         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70447         ISO C 99 Technical Corrigendum 1.
70448
70449 2006-06-22  Simon Josefsson  <jas@extundo.com>
70450
70451         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70452         MinGW.
70453
70454 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70457         needed.  Some compiler complained about some of them.  Problem reported
70458         by Larry Jones in
70459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70460
70461 2006-06-21  Simon Josefsson  <jas@extundo.com>
70462
70463         * tests/test-getaddrinfo.c: New file.
70464
70465         * modules/getaddrinfo-tests: New file.
70466
70467         * MODULES.html.sh: Add inet_pton.
70468
70469         * modules/inet_pton: New file.
70470
70471 2006-06-21  Simon Josefsson  <jas@extundo.com>
70472
70473         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70474         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70475         of using the (limited) gnulib implementation on Windows XP.
70476
70477         * m4/inet_pton.m4: New file.
70478
70479 2006-06-21  Simon Josefsson  <jas@extundo.com>
70480
70481         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70482         variable.
70483
70484         * lib/socket_.h: Don't define WINVER.
70485
70486         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70487         slightly modified to work in gnulib.
70488
70489 2006-06-21  Simon Josefsson  <jas@extundo.com>
70490
70491         * doc/gnulib.texi (Windows sockets): Add.
70492
70493 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * lib/read-file.c (fread_file): Start with buffer allocation of
70496         0 bytes rather than 1 byte; this simplifies the code.
70497         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70498         code to free buffer and save/restore errno.
70499         (internal_read_file): Remove unused local.
70500
70501 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70504         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70505         Problem reported by Denis Excoffier in
70506         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70507
70508 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70509
70510         * modules/sys_socket, modules/socklen: Include sys/types since
70511         FreeBSD 4.x's sys/socket.h needs it.
70512
70513 2006-06-19  Simon Josefsson  <jas@extundo.com>
70514
70515         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70516
70517 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70520
70521 2006-06-19  Bruno Haible  <bruno@clisp.org>
70522
70523         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70524         and FULL_PATH_INTTYPES_H in angle brackets.
70525         Reported by Mark D. Baushke <mdb@gnu.org>.
70526
70527 2006-06-17  Eric Blake  <ebb9@byu.net>
70528
70529         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70530         errno.
70531
70532 2006-06-17  Bruno Haible  <bruno@clisp.org>
70533
70534         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70535         <sys/inttypes.h>.
70536
70537 2006-06-17  Bruno Haible  <bruno@clisp.org>
70538
70539         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70540         whether errno is declared. Assume <errno.h> declares errno.
70541
70542 2006-06-17  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70545
70546 2006-06-17  Bruno Haible  <bruno@clisp.org>
70547
70548         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70549         problem on Solaris 2.5.1.
70550
70551 2006-06-16  Eric Blake  <ebb9@byu.net>
70552
70553         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70554         * lib/unicodeio.c [!defined errno]: Likewise.
70555         * lib/strtol.c [!defined errno]: Likewise.
70556         * lib/strtod.c [!defined errno]: Likewise.
70557
70558 2006-06-15  Eric Blake  <ebb9@byu.net>
70559
70560         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70561
70562 2006-06-15  Eric Blake  <ebb9@byu.net>
70563
70564         * config/srclist.txt (ssize_t.m4): Lose sync.
70565
70566 2006-06-15  Bruno Haible  <bruno@clisp.org>
70567
70568         * modules/stdint (Files): Include m4/full-header-path.m4,
70569         m4/size_max.m4, m4/wchar_t.m4.
70570         (Makefile.am): Many more substitutions.
70571         * modules/stdint-tests: New file.
70572         * tests/test-stdint.c: New file.
70573
70574 2006-06-15  Bruno Haible  <bruno@clisp.org>
70575
70576         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70577         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70578         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70579         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70580         gl_CHECK_TYPE_SAME): New macros.
70581
70582 2006-06-15  Bruno Haible  <bruno@clisp.org>
70583
70584         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70585
70586 2006-06-15  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/stdint_.h: Rewritten to be fully auto-configured.
70589         Fixes bug on HP-UX/IA64.
70590
70591 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * lib/getdate.y (__attribute__): Don't define if already defined.
70594         Problem reported by Larry Jones.
70595         * lib/utimens.c (__attribute__): Likewise.
70596
70597 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70600         reported by Andreas Schwab.
70601
70602 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70603             Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70606         check for the declaration of strnlen and a run test that exposes the
70607         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70608         rpl_strndup.
70609
70610 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70611             Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70614
70615 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70616
70617         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70618         compile test, for Tru64 4.0D.
70619
70620 2006-05-28  Karl Berry  <karl@gnu.org>
70621
70622         * config/srclist.txt (printf-args.c): lose sync.
70623
70624 2006-05-26  Martin Lambers  <marlam@marlam.de>
70625
70626         * lib/getpass.c: Updates the test for the native W32 API, and adds
70627         missing includes, thus fixing compilation warnings.
70628
70629 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70630
70631         * lib/exclude.c (exclude_fnmatch): New function.
70632         (excluded_file_name): Call exclude_fnmatch.
70633         * lib/exclude.h (excluded_file_name): New prototype
70634
70635 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70636
70637         * lib/tempname.c (small_open, large_open): New macros.
70638         (__open, __open64) [!_LIBC]: Remove.
70639         (__gen_tempname): Use small_open and large_open instead of __open
70640         and __open64.  This fixes a portability bug on HP-UX 11.11i
70641         reported by Simon Wing-Tang in
70642         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70643
70644 2006-05-24  Bruno Haible  <bruno@clisp.org>
70645
70646         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70647         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70648         Reported by Thorsten Maerz <torte@netztorte.de> via
70649         Aaron Stone <aaron@serendipity.cx>.
70650
70651 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70654         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70655         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70656         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70657         not really conditional on the cache.
70658         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70659
70660 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70663         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70664         (my_usleep): Don't mishandle maximum value.
70665
70666 2006-05-19  Jim Meyering  <jim@meyering.net>
70667
70668         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70669
70670 2006-05-17  Bruno Haible  <bruno@clisp.org>
70671
70672         Cygwin portability.
70673         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70674
70675 2006-05-17  Bruno Haible  <bruno@clisp.org>
70676
70677         * lib/stdint_.h: Fix recognition of Cygwin.
70678
70679 2006-05-15  Bruno Haible  <bruno@clisp.org>
70680
70681         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70682         on libtool patch by Ralf Wildenhues.
70683
70684 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70687         test for C99 conformance; (bool) 0.5 is an integer constant
70688         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70689         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70690
70691 2006-05-11  Simon Josefsson  <jas@extundo.com>
70692
70693         * m4/xvasprintf.m4: Fix obvious typo.
70694
70695 2006-05-11  Jim Meyering  <jim@meyering.net>
70696
70697         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70698         James Lemley.
70699
70700 2006-05-10  Simon Josefsson  <jas@extundo.com>
70701
70702         * lib/md4.c: Typo fix, update copyright years.
70703         (K1, K2): Don't use L because it turn computations into 64-bit on
70704         64-bit platforms.
70705
70706 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70709         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70710         unwanted sign propagation, e.g., on hosts with 64-bit int.
70711         There still are some problems with reeelly weird theoretical hosts
70712         (e.g., 33-bit int) but it's not worth worrying about now.
70713         * lib/sha1.c (rol): Likewise.
70714         (K1, K2, K3, K4): Remove unnecessary L suffix.
70715
70716 2006-05-10  Bruno Haible  <bruno@clisp.org>
70717
70718         * lib/des.c: Cast to avoid warnings.
70719
70720 2006-05-09  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70723         (Depends-on): Depend also on xsize, stdarg.
70724         (configure.ac): Add gl_XVASPRINTF.
70725
70726 2006-05-09  Bruno Haible  <bruno@clisp.org>
70727
70728         * m4/xvasprintf.m4: New file.
70729
70730 2006-05-09  Bruno Haible  <bruno@clisp.org>
70731
70732         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70733         (EOVERFLOW): Define fallback value.
70734         (xstrcat): New function.
70735         (xvasprintf): Recognize the special case of a string concatenation.
70736
70737 2006-05-08  Eric Blake  <ebb9@byu.net>
70738
70739         * gnulib-tool (func_version): Base copyright year on CVS date.
70740         (func_emit_copyright_notice): New function.
70741         (func_emit_lib_Makefile_am): Use it.
70742         (func_emit_tests_Makefile_am): Likewise.
70743         (func_import): Likewise.
70744
70745 2006-05-08  Bruno Haible  <bruno@clisp.org>
70746
70747         * modules/stdarg: New file.
70748         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70749
70750 2006-05-08  Bruno Haible  <bruno@clisp.org>
70751
70752         * m4/stdarg.m4: New file, from GNU gettext.
70753
70754 2006-05-08  Bruno Haible  <bruno@clisp.org>
70755
70756         * config/srclist.txt (build-aux/config.rpath): different from latest
70757         release.
70758
70759 2006-05-08  Bruno Haible  <bruno@clisp.org>
70760
70761         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70762
70763 2006-05-05  Jim Meyering  <jim@meyering.net>
70764
70765         * m4/warning.m4: New file, derived from bison's file by the same name.
70766
70767 2006-05-03  Bruno Haible  <bruno@clisp.org>
70768
70769         * lib/stdint_.h: Shorter URL.
70770         * lib/inttypes.h: Likewise.
70771
70772 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70775
70776 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * lib/verify.h: Document the internals better.  Most of this change
70779         was written by Bruno Haible.
70780
70781 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * doc/verify.texi: New file, partly based on a proposal by
70784         Bruno Haible.
70785
70786 2006-05-02  Bruno Haible  <bruno@clisp.org>
70787
70788         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70789         test from here...
70790         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70791
70792 2006-04-29  Bruno Haible  <bruno@clisp.org>
70793
70794         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70795         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70796
70797 2006-04-29  Bruno Haible  <bruno@clisp.org>
70798
70799         * gnulib-tool: Make --update option actually work.
70800
70801 2006-04-29  Bruno Haible  <bruno@clisp.org>
70802
70803         * doc/gcd.texi: New file.
70804         * doc/gnulib.texi: Include it.
70805
70806 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         * lib/getdate.y (get_date): When adding relative date, start with the
70809         initial time, not with the result of the first mktime call.
70810
70811 2006-04-25  Bruno Haible  <bruno@clisp.org>
70812
70813         * gnulib-tool (func_import): Output the include directives in three
70814         blocks, sorted separately.
70815         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70816
70817 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70820         to define main with arguments, for C++.  Reported by Eric Blake.
70821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70822         Prefer 'int main ()' to 'int main (void)', for C++.
70823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70824         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70825         for 'main', for C99 and C++.
70826
70827 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70830         Don't assume that exit status -1 is valid.
70831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70832         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70833         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70834         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70835         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70836         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70837         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70838         functions can be used without declaring them, or that you can
70839         exit with status -1.
70840         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70841
70842 2006-04-24  Karl Berry  <karl@gnu.org>
70843
70844         * config/srclist.txt (longdouble.m4): sync lost.
70845
70846 2006-04-24  Eric Blake  <ebb9@byu.net>
70847
70848         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70849
70850 2006-04-24  Bruno Haible  <bruno@clisp.org>
70851
70852         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70853         poll() implementation in AIX.
70854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70855
70856 2006-04-24  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70859         assigned exactly once.
70860
70861 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70862             Bruno Haible  <bruno@clisp.org>
70863
70864         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70865         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70866         for AM_CPPFLAGS.
70867
70868 2006-04-23  Bruno Haible  <bruno@clisp.org>
70869
70870         * modules/copy-file: Depend on unistd.
70871         * modules/execute: Likewise.
70872         * modules/fatal-signal: Likewise.
70873         * modules/findprog: Likewise.
70874         * modules/mkdtemp : Likewise.
70875         * modules/pipe: Likewise.
70876         * modules/wait-process: Likewise.
70877
70878 2006-04-23  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70881         condition was already detected.
70882         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70883
70884 2006-04-23  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/copy-file.c: Include <unistd.h> unconditionally.
70887         * lib/execute.c: Likewise.
70888         * lib/fatal-signal.c: Likewise.
70889         * lib/findprog.c: Likewise.
70890         * lib/mkdtemp.c: Likewise.
70891         * lib/pipe.h: Likewise.
70892         * lib/pipe.c: Likewise.
70893         * lib/wait-process.h: Likewise.
70894
70895 2006-04-23  Bruno Haible  <bruno@clisp.org>
70896
70897         * gnulib-tool (func_usage): Fix --import description. Document
70898         --update.
70899         (func_import): Create temporary file in a temporary directory, if
70900         --dry-run is specified. Silence errors from 'grep' when there are no
70901         m4 files in $m4dir.
70902         (func_create_testdir): Silence errors from 'grep' when there are no
70903         m4 files in $m4dir.
70904         Reported by Karl Berry <karl@freefriends.org>.
70905
70906 2006-04-20  Bruno Haible  <bruno@clisp.org>
70907
70908         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70909         one argument, so that the code will be portable to Autoconf 2.60.
70910         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70911         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70912         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70913
70914 2006-04-19  Derek Price  <derek@ximbiot.com>
70915             Eric Blake  <ebb9@byu.net>
70916
70917         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70918         rather than "/full/path.h".  Update comment to match.  Shorten &
70919         generalize m4_translit call via AS_TR_CPP.
70920
70921 2006-04-19  Derek Price  <derek@ximbiot.com>
70922             Eric Blake  <ebb9@byu.net>
70923
70924         * lib/inttypes.h: Correct grammar in comment.
70925
70926 2006-04-18  Derek Price  <derek@ximbiot.com>
70927             Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * modules/inttypes: New file.
70930         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70931
70932 2006-04-18  Derek Price  <derek@ximbiot.com>
70933             Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70936         New files.
70937
70938 2006-04-18  Derek Price  <derek@ximbiot.com>
70939             Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * lib/inttypes.h: New file.
70942         * lib/strtoimax.c: Assume <inttypes.h>.
70943
70944 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70947         isn't mounted.  Problem reported by Kir Kolyshkin.
70948
70949 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70950
70951         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70952         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70953         Derek R. Price.
70954         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70955         implementation.
70956
70957 2006-04-12  Eric Blake  <ebb9@byu.net>
70958
70959         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70960         is now done automatically by the corresponding Autoconf macro.
70961
70962 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70965         time_r.h.
70966
70967 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         Merge regex changes from libc, removing some of our
70970         POSIX-conformance changes that were rejected and redoing them in a
70971         less-intrusive way.
70972
70973         * lib/regcomp.c (re_compile_internal, init_dfa):
70974         Length arg is now size_t, not Idx.  All uses changed.
70975         (peek_token): Forward decl now says internal_function.
70976         (__re_error_msgid, __re_error_msgid_idx):
70977         Now static rather than extern with attribute_hidden.
70978         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70979         For some reason libc prefers K&R style defns for external functions.
70980         (regerror) [!defined _LIBC]: Likewise.
70981         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70982         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70983         (build_range_exp, build_collating_symbol):
70984         Use K&R-style defn.
70985         (re_compile_fastmap): Use '\0' to memset, not 0.
70986         (utf8_sb_map): Make the calculations more obvious.
70987         (init_dfa, parse_bracket_exp, build_charclass_op):
70988         Call calloc and cast result, as glibc does.
70989         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70990         (build_range_exp, build_collating_symbol):
70991         Now internal functions.
70992
70993         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70994
70995         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70996         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70997         Don't depend on VMS; depend on __VMS instead, for POSIX
70998         namespace cleanness.
70999         (regoff_t): Define to ssize_t, not long int.
71000
71001         Remove the REG_ macros named below.  Instead, make the old names
71002         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71003         __USE_GNU_REGEX.
71004         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71005         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71006         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71007         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71008         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71009         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71010         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71011         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71012         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71013         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71014         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71015         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71016         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71017         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71018         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71019         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71020         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71021         (REG_NREGS):
71022         Remove.  All uses replaced by the old RE_* names.
71023         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71024         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71025         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71026         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71027         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71028         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71029         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71030         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71031         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71032         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71033         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71034         Don't bother having these macros be independent of each others'
71035         values, since they no longer exist in the POSIX name space.
71036
71037         Rename the following member names back to their old names,
71038         unless !__USE_GNU_REGEX.  All uses changed back.
71039         (buffer): Renamed from re_buffer.
71040         (allocated): Renamed from re_allocated.
71041         (used): Renamed from re_used.
71042         (syntax): Renamed from re_syntax.
71043         (fastmap): Renamed from re_fastmap.
71044         (translate): Renamed from re_translate.
71045         (can_be_null): Renamed from re_can_be_null.
71046         (regs_allocated): Renamed from re_regs_allocated.
71047         (fastmap_accurate): Renamed from re_fastmap_accurate.
71048         (no_sub): Renamed from re_no_sub.
71049         (not_bol): Renamed from re_not_bol.
71050         (not_eol): Renamed from re_not_eol.
71051         (newline_anchor): Renamed from re_newline_anchor.
71052         (num_regs): Renamed from rm_num_regs.
71053         (start): Renamed from rm_start.
71054         (end): Renamed from rm_end.
71055
71056         (free_state): Move up a bit.
71057
71058         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71059         #define to be empty.
71060         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71061         when that is what is intended.
71062         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71063         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71064         (MAX): New macro.
71065         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71066         All uses changed back to re_malloc, etc.  It's now the caller's
71067         responsibility to check for overflow; all callers changed.
71068         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71069         (re_x2nrealloc): Remove.
71070         (free_state): Remove decl.
71071
71072         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71073         (re_set_registers, re_exec):
71074         Use K&R-style defn.
71075
71076         2006-01-31  Roland McGrath  <roland@redhat.com>
71077
71078         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71079         Reported by Mike Frysinger <vapier@gentoo.org>.
71080
71081         2006-01-15  Andreas Jaeger  <aj@suse.de>
71082
71083         [BZ #1950]
71084         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71085         build_wcs_upper_buffer change.
71086         (build_wcs_upper_buffer): Change return type.
71087
71088         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71089
71090         * lib/regex_internal.h: Include <stdint.h> if available.
71091
71092         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71093
71094         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71095
71096         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71097
71098         * lib/regcomp.c: Adjust for changed secondary hash function.
71099
71100         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71101
71102         * lib/regex.h: Pretty printing.
71103         Clean up namespace a bit.
71104
71105         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71106
71107         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71108         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71109
71110         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71111                     Ulrich Drepper  <drepper@redhat.com>
71112
71113         [BZ #1302]
71114         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71115         changed.
71116         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71117
71118         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71119
71120         [BZ #281]
71121         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71122         * lib/regcomp.c: Remove unnecessary uses of
71123         unsigned RE_TRANSLATE_TYPE.
71124         * lib/regex_internal.h: Likewise.
71125         * lib/regex_internal.c: Likewise.
71126         * lib/regexec.c: Likewise.
71127         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71128
71129         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71130
71131         * lib/regexec.c (find_recover_state): Remove unnecessary
71132         initialization.
71133         (transit_state_bkref): Make DFA a const pointer.
71134         (get_subexp): Likewise.
71135         (check_arrival): Likewise.
71136         (update_cur_sifted_state): Likewise.
71137         (re_search_internal): Likewise.
71138         (prune_impossible_nodes): Likewise.
71139         (acquire_init_state_context): Likewise.
71140         (proceed_next_node): Likewise.
71141         (set_regs): Likewise.
71142         (free_fail_stack_return): Likewise.
71143         (check_arrival_expand_ecl): Mark DFA parameter as const.
71144         (check_arrival_expand_ecl_sub): Likewise.
71145         (check_subexp_limits): Likewise.
71146         (sub_epsilon_src_nodes):  Likewise.
71147         (add_epsilon_src_nodes):  Likewise.
71148         (merge_state_array): Likewise.
71149         (update_regs): Likewise.
71150         (build_trtable): Likewise.
71151         (sift_states_backward): Mark MCTX parameter as const.
71152         (build_sifted_states): Likewise.
71153         (update_cur_sifted_state): Likewise.
71154         (sift_states_mkref): Likewise.
71155         (check_arrival_expand_ecl): Mark eclosure as const.
71156         (check_dst_limits_calc_pos_1): Likewise.
71157         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71158         pointer.
71159
71160         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71161
71162         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71163         (transit_state_sb): Likewise.
71164         (transit_state_mb): Likewise.
71165         (sift_states_iter_mb): Likewise.
71166         (check_arrival_add_next_nodes): Likewise.
71167         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71168         [_LIBC] (re_search_2_stub): Use mempcpy.
71169
71170         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71171         mbrtowc for very simple UTF-8 case.
71172
71173         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71174         a pointer-to-const.
71175         (re_acquire_state_context): Likewise.
71176         * lib/regex_internal.h: Adjust prototypes.
71177
71178         * lib/regex.c: Prevent using C++ compilers.
71179
71180         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71181         (re_acquire_state_context): Likewise.
71182
71183 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71184
71185         * modules/regex (Depends-on): Add ssize_t.
71186
71187 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71190         translation table.
71191
71192 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71195
71196 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71197             Bruno Haible  <bruno@clisp.org>
71198
71199         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71200         <sys/types.h> and <inttypes.h>.
71201
71202 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71203
71204         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71205         `__error_t_defined', so argp.h will not typedef the former.
71206
71207 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71210         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71211         glibc names.  Even if glibc is changed to conform to POSIX, the
71212         traditional names will be available anyway, since regex depends on
71213         the extensions module.  Also, fix a longstanding typo in the
71214         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71215         reported by Emanuele Giaquinta.  Also, change sense of cached
71216         variable, so that the message makes sense.
71217
71218 2006-03-24  Simon Josefsson  <jas@extundo.com>
71219
71220         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71221         including some doc fixes.
71222         (base64_encode_alloc): Fix +1 bug on allocation failures.
71223
71224 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71225
71226         * lib/base64.c (base64_encode): Do not read past end of array with
71227         unsanitized input on systems with CHAR_BIT > 8.
71228
71229 2006-03-24  Eric Blake  <ebb9@byu.net>
71230
71231         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71232
71233 2006-03-22  Karl Berry  <karl@gnu.org>
71234
71235         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71236         * config/srclistvars.sh (COREUTILS): new var.
71237
71238 2006-03-17  Jim Meyering  <jim@meyering.net>
71239
71240         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71241         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71242
71243 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71246         no longer needs it.  Instead, check that regoff_t is as least
71247         as wide as ptrdiff_t.
71248
71249         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71250         so that our regex.h stays compatible with the installed regex.
71251         This is helpful for installers who configure --without-included-regex.
71252         Problem reported by Emanuele Giaquinta.
71253
71254 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71255
71256         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71257         Typedef to long int, not to off_, as POSIX will likely change
71258         in that direction.
71259
71260 2006-03-15  Eric Blake  <ebb9@byu.net>
71261
71262         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71263
71264 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71265
71266         * lib/argp-help.c (validate_uparams): Fix typo
71267         * lib/argp-parse.c (argp_default_options): Consistently begin help
71268         messages with a lowercase letter.
71269
71270 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71273         overrun buffers and shouldn't be used (much as gets shouldn't be
71274         used).
71275         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71276
71277 2006-03-08  Simon Josefsson  <jas@extundo.com>
71278
71279         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71280         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71281
71282 2006-03-08  Simon Josefsson  <jas@extundo.com>
71283
71284         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71285         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71286
71287 2006-03-08  Simon Josefsson  <jas@extundo.com>
71288
71289         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71290         signal that configure disabled the device.
71291
71292 2006-03-08  Simon Josefsson  <jas@extundo.com>
71293
71294         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71295         languages.
71296
71297 2006-03-07  Simon Josefsson  <jas@extundo.com>
71298
71299         * modules/getopt (Depends-on): Add unistd.
71300
71301         * modules/unistd: New file.
71302
71303 2006-03-07  Simon Josefsson  <jas@extundo.com>
71304
71305         * modules/gc-random: New file.
71306
71307 2006-03-07  Simon Josefsson  <jas@extundo.com>
71308
71309         * m4/unistd_h.m4: New file.
71310
71311 2006-03-07  Simon Josefsson  <jas@extundo.com>
71312
71313         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71314         test to be side-effect free by storing the result in the cache
71315         variable gl_cv_lib_readline, and moving the assignment of
71316         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71317         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71318
71319 2006-03-07  Simon Josefsson  <jas@extundo.com>
71320
71321         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71322         error on missing devices (the functions will return an error).
71323
71324         * m4/gc.m4: Move random stuff to gc-random.m4
71325
71326 2006-03-07  Simon Josefsson  <jas@extundo.com>
71327
71328         * lib/unistd_.h: New file.
71329
71330 2006-03-07  Simon Josefsson  <jas@extundo.com>
71331
71332         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71333
71334 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71337         Problem reported by Juan Manuel Guerrero.
71338
71339 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71340
71341         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71342         the unistd module.
71343         * lib/getlogin_r.c: Likewise.
71344         * lib/getlogin_r.h: Likewise.
71345         * lib/glob.c: Likewise.
71346         * lib/pagealign_alloc.c: Likewise.
71347         * lib/unistd_.h: Remove; no longer needed.
71348
71349 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71350
71351         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71352         Add unistd.
71353         * modules/c-stack (Depends-on): Add unistd.
71354         * modules/getlogin_r: Likewise.
71355         * modules/glob: Likewise.
71356         * modules/pagealign_alloc: Likewise.
71357         * modules/unistd (Files): Remove lib/unistd_.h.
71358         (EXTRA_DIST): Remove.
71359         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71360         need unistd_.h.
71361         (MOSTLYCLEANFILES): Remove unistd.h-t.
71362
71363 2006-03-03  Simon Josefsson  <jas@extundo.com>
71364
71365         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71366
71367 2006-03-03  Simon Josefsson  <jas@extundo.com>
71368
71369         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71370         libidn and bison.
71371
71372 2006-03-03  Simon Josefsson  <jas@extundo.com>
71373
71374         * build-aux/maint.mk: Add indent target.
71375
71376 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71377
71378         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71379         our replacement poll.h in any case, to avoid a differing
71380         declaration from a system header.  Seen on AIX.
71381
71382 2006-03-01  Simon Josefsson  <jas@extundo.com>
71383
71384         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71385         <kasal@ucw.cz>.
71386
71387 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * modules/gettime (Depends-on): Add extensions module.
71390         * modules/nanosleep (Depends-on): Likewise.
71391         * modules/settime (Depends-on): Likewise.
71392
71393 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71396         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71397         pedantically.
71398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71399         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71400
71401         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71402         not "==".  Reported by Ralf Wildenhues.
71403
71404 2006-03-01  Karl Berry  <karl@gnu.org>
71405
71406         * doc/Copyright/request-*: new files, synced from gnuorg.
71407
71408 2006-03-01  Karl Berry  <karl@gnu.org>
71409
71410         * config/srclist.txt (Copyright/*): new entries.
71411
71412 2006-02-28  Simon Josefsson  <jas@extundo.com>
71413
71414         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71415
71416 2006-02-27  Simon Josefsson  <jas@extundo.com>
71417
71418         * lib/base64.h: Indent #define's.  From Jim Meyering
71419         <jim@meyering.net>.
71420
71421 2006-02-27  Jim Meyering  <jim@meyering.net>
71422
71423         Revert the change of 2006-02-24, so these files can continue
71424         to be sync'd from gettext.
71425         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71426         of `config.h'.
71427
71428 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71429
71430         * modules/intprops: New file.
71431         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71432         Add intprops.
71433         * modules/getloadavg (Files): Remove lib/intprops.h.
71434         (Depends-on): Add intprops.
71435         * modules/human: Likewise.
71436         * modules/inttostr: Likewise.
71437         * modules/openat: Likewise.
71438         * modules/sig2str: Likewise.
71439         * modules/userspec: Likewise.
71440         * modules/utimecmp: Likewise.
71441         * modules/xnanosleep: Likewise.
71442         * modules/xstrtol: Likewise.
71443
71444 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71445
71446         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71447         * modules/lock-tests (TESTS): Use $(EXEEXT).
71448         * modules/tls-tests: Likewise.
71449         * modules/argp-tests: Likewise.
71450         (check_PROGRAMS): New var, replacing...
71451         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71452
71453 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71454
71455         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71456         `config.h'.
71457
71458 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71459
71460         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71461
71462 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71463
71464         Sync from coreutils.
71465         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71466         gl_CHDIR_SAFER.
71467
71468 2006-02-22  Jim Meyering  <jim@meyering.net>
71469
71470         Sync from coreutils.
71471         * m4/chdir-safer.m4: New file.
71472
71473 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71476         AT_FDCWD exceeds INT_MAX.
71477         * lib/openat.h (AT_FDCWD): Likewise.
71478
71479 2006-02-17  Eric Blake  <address@hidden>
71480
71481         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71482
71483 2006-02-16  Simon Josefsson  <jas@extundo.com>
71484
71485         * modules/getaddrinfo (Depends-on): Add sys_socket.
71486
71487 2006-02-15  Simon Josefsson  <jas@extundo.com>
71488
71489         * build-aux/maint.mk: Add dsyntax-check rule.
71490
71491 2006-02-15  Eric Blake  <ebb9@byu.net>
71492
71493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71494         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71495         'present but cannot compile' warnings on cygwin.
71496         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71497         use ws2tcpip.h if sys/socket.h works.
71498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71499         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71500
71501 2006-02-14  Simon Josefsson  <jas@extundo.com>
71502
71503         * modules/maintainer-makefile (Files): Rename.
71504
71505         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71506         and (the local) Makefile.cfg to maint-cfg.mk.
71507
71508         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71509         to the latter.
71510
71511         * modules/maintainer-makefile: New module.
71512
71513         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71514         severaly stripped to make it possible to build it up from scratch
71515         with reliable tests.
71516
71517         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71518         fixes to permit overriding the default actions when configure and
71519         makefile are not available.
71520
71521 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         Sync from coreutils.
71524         * modules/lstat (Depends-on): Don't depend on xalloc.
71525         (License): Change from GPL to LGPL, since this is now simply a
71526         replacement for a libc function.
71527
71528 2006-02-14  Jim Meyering  <jim@meyering.net>
71529
71530         Sync from coreutils.
71531
71532         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71533         failure on deficient systems, and simplify gnulib lgpl dependencies.
71534         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71535         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71536
71537         * lib/xalloc-die.c: Remove unused definition of N_.
71538
71539 2006-02-14  Jim Meyering  <jim@meyering.net>
71540
71541         Sync from coreutils.
71542         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71543         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71544         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71545         double-quote uses of that variable, to accommodate the rare case in
71546         which getmntent is available in none of the libraries checked.  This
71547         happens at least on FreeBSD 5.0.
71548
71549 2006-02-13  Simon Josefsson  <jas@extundo.com>
71550
71551         * gnulib-tool (Usage): Fix --import, from
71552         karl@freefriends.org (Karl Berry).
71553
71554 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71555
71556         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71557
71558 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71559
71560         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71561         "autoupdate" on 2005-12-12.
71562
71563 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * modules/closeout (Depends-on): Remove atexit.
71566
71567 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71568
71569         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71570         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71571
71572 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71575         __EXTENSIONS__ if this causes compilation to fail.  Problem
71576         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71577         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71578
71579 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71582         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71583         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71584         All uses changed.
71585
71586 2006-01-26  Simon Josefsson  <jas@extundo.com>
71587
71588         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71589         prototype is visible on mingw32.
71590
71591         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71592         for mingw32.
71593
71594         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71595         mingw32).
71596
71597 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71600         attempt to open for write; this always fails, at least on POSIX
71601         hosts.  This reinstates the 2006-01-09 change, which was
71602         inadvertently removed.
71603
71604 2006-01-26  Bruno Haible  <bruno@clisp.org>
71605
71606         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71607         Reported by Paul Eggert.
71608
71609 2006-01-26  Bruno Haible  <bruno@clisp.org>
71610             Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/stdbool_.h (_Bool)
71613         [(! (defined __cplusplus || defined __BEOS__)
71614           && !defined __GNUC__
71615           && !(defined __HP_cc || defined __xlc__
71616                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71617                || defined __sgi))]:
71618         #define to signed char in these cases too; this simplifies
71619         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71620         etc., separately) and makes it more conservative.
71621
71622 2006-01-25  Simon Josefsson  <jas@extundo.com>
71623
71624         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71625         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71626         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71627
71628 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71629
71630         * lib/argp-namefrob.h: Bugfix. Remove stray #
71631
71632 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71635         so that we test the test.
71636         Check for yet another HP-UX cc bug involving *bool |= bool.
71637
71638 2006-01-25  Karl Berry  <karl@gnu.org>
71639
71640         * config/srclist.txt (vasnprintf.c): sync lost.
71641
71642 2006-01-25  Jim Meyering  <jim@meyering.net>
71643
71644         Sync from the stable (b5) branch of coreutils:
71645
71646         * lib/fts.c (fts_children): Don't let close() clobber errno from
71647         failed fchdir().
71648
71649         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71650         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71651         a dangling symlink.  That can also happen at least for ELOOP.
71652         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71653         FYI, this bug predates the inclusion of fts.c in coreutils.
71654
71655         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71656         in their own block, so pre-c99 compilers don't object.
71657
71658         Avoid the double-free (first in fts_read, second in fts_close) that
71659         would occur when an `active' directory is made inaccessible (e.g.,
71660         via chmod a-x) during a traversal.
71661         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71662         before returning.  Reproduce this failure by
71663         mkdir -p a/b; cd a; chmod a-x . b
71664         Reported by Stavros Passas.
71665
71666 2006-01-25  Jim Meyering  <jim@meyering.net>
71667
71668         * lib/fileblocks.c: Remove more useless parentheses.
71669         * lib/readutmp.h: Likewise.
71670
71671 2006-01-25  Bruno Haible  <bruno@clisp.org>
71672
71673         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71674         warnings.
71675         Reported by Paul Eggert.
71676
71677 2006-01-25  Bruno Haible  <bruno@clisp.org>
71678
71679         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71680         rid of a trap command. For Solaris sh.
71681         Reported by Mark D. Baushke <mdb@gnu.org>.
71682
71683 2006-01-24  Simon Josefsson  <jas@extundo.com>
71684
71685         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71686         Bruno.
71687
71688 2006-01-24  Karl Berry  <karl@gnu.org>
71689
71690         * config/srclist.txt (argp-namefrob.h): sync lost.
71691
71692 2006-01-24  Jim Meyering  <jim@meyering.net>
71693
71694         * modules/openat (Files): Add lib/intprops.h.
71695         From Mark D. Baushke.
71696
71697 2006-01-24  Jim Meyering  <jim@meyering.net>
71698
71699         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71700         Reported by Mark D. Baushke.
71701
71702 2006-01-24  Jim Meyering  <jim@meyering.net>
71703
71704         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71705
71706 2006-01-24  Bruno Haible  <bruno@clisp.org>
71707
71708         * modules/strnlen (Maintainer): Change from glibc to all.
71709
71710 2006-01-24  Bruno Haible  <bruno@clisp.org>
71711
71712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71713         Patch by Paul Eggert.
71714
71715 2006-01-24  Bruno Haible  <bruno@clisp.org>
71716
71717         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71718         already has it.
71719         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71720         2005-11-26.
71721
71722         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71723         'signed char' to avoid problems with the built-in _Bool type.
71724         Reported by Paul Eggert on 2005-11-26.
71725
71726 2006-01-24  Bruno Haible  <bruno@clisp.org>
71727
71728         * gnulib-tool (func_import): Avoid constructing complicated sed
71729         expressions inside backquote.
71730         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71731
71732 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71733
71734         These changes imported from libc.
71735         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71736         test and two separate function calls.
71737         * lib/strndup.c (__strndup): Add libc_hidden_def.
71738
71739 2006-01-23  Simon Josefsson  <jas@extundo.com>
71740
71741         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71742         Remove the test_*_SOURCES variable: automake infers it by default.
71743         * modules/tls-tests: Likewise.
71744
71745 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         Work around porting bugs reported by Dieter in
71748         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71749         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71750         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71751         Include "getopt.h" first, to check interface.
71752         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71753         !HAVE_DECL_GETENV.
71754         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71755         (__strndup): Revert to K&R-style function dfns, the glibc style.
71756         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71757         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71758         Include strnlen.h first, to get prototype properly.
71759         (strnlen): Renamed from __strnlen.
71760         Remove weak alias.
71761
71762 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71765
71766 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * config/srclist.txt: Adjust to reflect glibc reorganization.
71769         This affects only comments.
71770
71771 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71772
71773          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71774          Reported by Bruce Korb <bkorb@gnu.org>.
71775
71776 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71777
71778         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71779         to pacify gcc -Wswitch-default.
71780
71781 2006-01-22  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71784         temporary buffer for sprintf, take into account the precision also
71785         for 'd', 'i', 'u', 'o', 'x', 'X'.
71786
71787 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71788
71789         * modules/argp-tests: New module
71790         * tests/test-argp.c: New file
71791         * tests/test-argp-2.sh: New file
71792
71793 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71794
71795         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71796         (__argp_base_name): Removed
71797         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71798         typo.
71799         (__argp_base_name): Provide macro definition or extern declaration
71800         depending on the configuration
71801
71802 2006-01-20  Simon Josefsson  <jas@extundo.com>
71803
71804         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71805
71806 2006-01-20  Simon Josefsson  <jas@extundo.com>
71807
71808         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71809
71810 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71813         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71814         Suggested by Bruno Haible.
71815
71816 2006-01-20  Karl Berry  <karl@gnu.org>
71817
71818         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71819         until changes propagate, I guess.
71820
71821 2006-01-19  Simon Josefsson  <jas@extundo.com>
71822
71823         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71824
71825 2006-01-19  Simon Josefsson  <jas@extundo.com>
71826
71827         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71828
71829 2006-01-19  Simon Josefsson  <jas@extundo.com>
71830
71831         * gnulib-tool: Set check_PROGRAMS.
71832
71833         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71834         modules/des-tests, modules/gc-arcfour-tests,
71835         modules/gc-arctwo-tests, modules/gc-des-tests,
71836         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71837         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71838         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71839         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71840         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71841         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71842         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71843         test_*_SOURCES.
71844
71845 2006-01-18  Simon Josefsson  <jas@extundo.com>
71846
71847         * modules/socklen (Depends-on): Depend on sys_socket.
71848
71849 2006-01-18  Simon Josefsson  <jas@extundo.com>
71850
71851         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71852         modules/des-tests, modules/gc-arcfour-tests,
71853         modules/gc-arctwo-tests, modules/gc-des-tests,
71854         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71855         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71856         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71857         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71858         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71859         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71860         $(EXEEXT) to automake TESTS variable, for mingw32.
71861
71862 2006-01-17  Simon Josefsson  <jas@extundo.com>
71863
71864         * modules/socklen (Include): Need sys/socket.h.
71865
71866 2006-01-17  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/ssize_t (Include): Add <sys/types.h>.
71869
71870 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71873         it's not portable and it doesn't work with cross-compiles.
71874         Problem reported by Bruno Haible.  Fix missing-$ typo in
71875         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71876         -zignore from being used with Sun's C compiler.
71877
71878 2006-01-12  Simon Josefsson  <jas@extundo.com>
71879
71880         * lib/base64.c: Fix warning, reported by Bruno Haible
71881         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71882
71883 2006-01-12  Bruno Haible  <bruno@clisp.org>
71884
71885         * modules/ldd: New file.
71886         * build-aux/ldd.sh.in: New file.
71887         * MODULES.html.sh (Support for building libraries and executables): Add
71888         ldd.
71889
71890 2006-01-12  Bruno Haible  <bruno@clisp.org>
71891
71892         * m4/ldd.m4: New file.
71893
71894 2006-01-12  Bruno Haible  <bruno@clisp.org>
71895
71896         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71897         endless loop while replacing $auxdir with build-aux.
71898
71899 2006-01-11  Simon Josefsson  <jas@extundo.com>
71900
71901         * lib/stdint_.h (SIZE_MAX): Add missing (.
71902
71903 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         Sync from coreutils.
71906         * lib/md5.c: Fix commentary typos.
71907         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71908         * lib/md5.h (__attribute__): Remove; unused.
71909         * lib/sha1.c: Fix commentary to match md5 better.
71910         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71911         so that we don't need to worry about alignment.  All uses changed.
71912         This merges the 2005-10-28 md5 change into sha1.
71913
71914 2006-01-11  Jim Meyering  <jim@meyering.net>
71915
71916         Sync from coreutils.
71917         * lib/md5.c (OP): Fix spacing.
71918
71919 2006-01-11  Bruno Haible  <bruno@clisp.org>
71920
71921         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71922         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71923         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71924
71925 2006-01-11  Bruno Haible  <bruno@clisp.org>
71926
71927         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71928         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71929         the "early" section as well.
71930
71931 2006-01-11  Bruno Haible  <bruno@clisp.org>
71932
71933         Avoid "ar: no archive members specified" error on MacOS X.
71934         * gnulib-tool (func_modules_add_dummy): New function.
71935         (func_import, func_create_testdir): Invoke it.
71936
71937 2006-01-11  Bruno Haible  <bruno@clisp.org>
71938
71939         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71940         with $auxdir in AC_CONFIG_FILES statements.
71941
71942 2006-01-11  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71945         Initialize also noinst_HEADERS to empty.
71946
71947 2006-01-11  Bruno Haible  <bruno@clisp.org>
71948
71949         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71950         variables.
71951         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71952         autoreconf.
71953
71954 2006-01-11  Bruno Haible  <bruno@clisp.org>
71955
71956         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71957         overridable by the user.
71958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71959
71960 2006-01-10  Simon Josefsson  <jas@extundo.com>
71961
71962         * modules/sys_socket: New file.
71963
71964 2006-01-10  Simon Josefsson  <jas@extundo.com>
71965
71966         * m4/sys_socket_h.m4: New file.
71967
71968 2006-01-10  Simon Josefsson  <jas@extundo.com>
71969
71970         * lib/socket_.h: New file.
71971
71972 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * modules/readutmp (Maintainer): Add myself.
71975
71976 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71977
71978         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71979         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71980         People who are still concerned with buggy memcmp implementations
71981         can invoke gl_FUNC_MEMCMP themselves.
71982
71983 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * lib/regex_internal.h (BITSET_WORD_BITS):
71986         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71987         preprocessor mishandles large unsigned values as if they were signed.
71988         Problem reported by Claudio Fontana in
71989         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71990
71991 2006-01-10  Jim Meyering  <jim@meyering.net>
71992
71993         Avoid the double-free (first in fts_read, second in fts_close) that
71994         would occur when an `active' directory is made inaccessible (e.g.,
71995         via chmod a-x) during a traversal.
71996         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71997         before returning.  Reproduce this failure by
71998         mkdir -p a/b; cd a; chmod a-x . b
71999         Reported by Stavros Passas.
72000
72001         Sync from coreutils.
72002         * lib/sha1.c: Tweak grammar in a comment.
72003
72004 2006-01-10  Jim Meyering  <jim@meyering.net>
72005
72006         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72007         Patch by Joerg Sonnenberger.
72008
72009 2006-01-10  Bruno Haible  <bruno@clisp.org>
72010
72011         * modules/readutmp: Depend on module free.
72012         * modules/strtok_r: Depend on module restrict.
72013
72014 2006-01-10  Bruno Haible  <bruno@clisp.org>
72015
72016         * modules/gettext (configure.ac): Add an invocation of
72017         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72018
72019 2006-01-10  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72022         Reported by Werner Lemberg <wl@gnu.org>.
72023
72024 2006-01-10  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/localcharset.c: Update from GNU gettext.
72027
72028 2006-01-10  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/argp.h (__const): Remove macro. Use const instead.
72031         * lib/argp-fmtstream.h (__const): Likewise.
72032         * lib/glob_.h (__const): Remove macro.
72033         * lib/glob-libc.h: Use const instead of __const.
72034
72035 2006-01-10  Bruno Haible  <bruno@clisp.org>
72036
72037         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72038         variable.
72039         Needed to avoid an automake error regarding the 'gettext' module.
72040
72041 2006-01-09  Simon Josefsson  <jas@extundo.com>
72042
72043         * modules/inet_ntop (Depends-on): Add restrict.
72044
72045 2006-01-09  Simon Josefsson  <jas@extundo.com>
72046
72047         * modules/gc-rijndael-tests (License): Put under LGPL.
72048
72049         * modules/gc-des-tests (License): Likewise.
72050
72051         * modules/gc-arcfour-tests (License): Likewise.
72052
72053         * modules/gc-arctwo-tests (License): Likewise.
72054
72055         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72056
72057         * modules/gc-hmac-sha1-tests (Files): Likewise.
72058
72059         * modules/gc-hmac-md5-tests (License): Likewise.
72060
72061         * modules/gc-sha1-tests (License): Likewise.
72062
72063         * modules/gc-md5-tests (License): Likewise.
72064
72065         * modules/gc-md4-tests (License): Likewise.
72066
72067         * modules/gc-md2-tests (License): Likewise.
72068
72069         * modules/gc-tests (License): Likewise.
72070
72071         * modules/des-tests (License): Likewise.
72072
72073         * modules/md4-tests (License): Likewise.
72074
72075         * modules/md2-tests (License): Likewise.
72076
72077 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72078
72079         Sync from coreutils:
72080
72081         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72082         * modules/lib-ignore: New file.
72083         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72084         chdir-safer.m4, lchmod.m4.
72085         * modules/openat: Add mkdirat.c, openat-priv.h.
72086
72087 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         Sync from coreutils.
72090         * m4/lib-ignore.m4: New file.
72091         * m4/lchmod.m4: New file.
72092
72093 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         Sync from coreutils.
72096         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72097         for write access: POSIX says that must fail.
72098         * lib/fts.c (diropen): Likewise.
72099         * lib/save-cwd.c (save_cwd): Likewise.
72100         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72101         well, for minor improvements on hosts that lack O_DIRECTORY.
72102         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72103         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72104         Fall back on chown if open failed with EACCES.
72105
72106         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72107         Report an error at compile-time if only a 1-second nominal clock
72108         resolution is found.
72109
72110         * lib/lchmod.h: New file.
72111         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72112         (make_dir_parents): Use lchown rather than chown, and
72113         lchmod rather than chmod.
72114
72115         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72116         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72117         "proc" reported by n0dalus.
72118
72119         * lib/mountlist.c: Include <limits.h>.
72120         (dev_from_mount_options)
72121         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72122         New function.  It no longer assumes "dev=" has the System V meaning
72123         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72124         (read_file_system_list)
72125         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72126         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72127         dev= in that case.
72128
72129         * lib/posixtm.h (PDS_PRE_2000): New macro.
72130         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72131         allow_century.  All usages changed.  Reject dates outside the range
72132         1969-1999 if PDS_PRE_2000 is used.
72133
72134 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         Sync from coreutils.
72137         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72138         (Time of day items): Mention the possibility of leap seconds.
72139         Problem reported by Dr. David Alan Gilbert.
72140
72141 2006-01-09  Jim Meyering  <jim@meyering.net>
72142
72143         Sync from coreutils.
72144
72145         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72146
72147         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72148
72149         * lib/modechange.c (mode_compile): Reject an invalid mode string
72150         that starts with an octal digit.  From Andreas Gruenbacher.
72151
72152         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72153         and dup to open_safer and dup_safer, respectively.
72154         (openat_permissive): Fix typo in comment.
72155
72156         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72157         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72158         (_): Remove; no longer needed.
72159         (openat): Renamed from rpl_openat; no need for rpl_openat
72160         since openat.h renames openat for us.
72161         Replace most of the body with a call to openat_permissive,
72162         to avoid duplicate code.
72163         Port to (probably hypothetical) environments were mode_t is
72164         wider than int.
72165         (openat_permissive): Require mode arg, so that we can check
72166         types better.  Put it just after flags.  Change cwd failure
72167         indicator from pointer-to-bool to pointer-to-errno-value.
72168         All callers changed.
72169         Invoke openat_save_fail and/or openat_restore_fail if
72170         cwd_errno is null, so that openat can call us.
72171         (openat_permissive, fdopendir, fstatat, unlinkat):
72172         Simplify errno handling to avoid some duplicate code,
72173         as it's OK to set errno on success.
72174         * lib/openat.h: Revamp code so that function macros depend on
72175         __OPENAT_PREFIX only, not also on AT_FDCWD.
72176         (openat_ro): Remove.  Caller changed to use openat_permissive.
72177         (openat_permissive): Now a macro, if not a function.
72178         (openat_restore_fail, openat_save_fail): Now always functions,
72179         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72180
72181         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72182         and openat.c.
72183         * lib/mkdirat.c: Include openat-priv.h.
72184         Remove definitions of macros defined therein.
72185         * lib/openat.c: Likewise.
72186
72187         * lib/mkdirat.c (mkdirat): New file and function.
72188         * lib/openat.h (mkdirat): Declare.
72189
72190         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72191
72192         * lib/openat.h (openat_permissive): Declare.
72193         (openat_ro): Define.
72194
72195         * lib/openat.c (EXPECTED_ERRNO): New macro.
72196         (openat_permissive): New function -- used in remove.c rewrite.
72197         (all functions): Set errno just before returning, only if there
72198         was an actual failure.
72199         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72200
72201         Emulate openat-family functions using Linux's procfs, if possible.
72202         Idea and some code based on Ulrich Drepper's glibc changes.
72203
72204         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72205         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72206         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72207         before falling back on save_cwd and restore_cwd.
72208         (fdopendir, fstatat, unlinkat): Likewise.
72209
72210         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72211         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72212
72213         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72214         as second argument to va_arg.  Otherwise, some versions of gcc
72215         warn that `if this code is reached, the program will abort'.
72216
72217 2006-01-09  Jim Meyering  <jim@meyering.net>
72218
72219         Sync from coreutils.
72220         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72221         Require openat-priv.h.
72222
72223 2006-01-09  Bruno Haible  <bruno@clisp.org>
72224
72225         * modules/strnlen (Include): Use strnlen.h.
72226
72227 2006-01-09  Bruno Haible  <bruno@clisp.org>
72228
72229         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72230
72231 2006-01-09  Bruno Haible  <bruno@clisp.org>
72232
72233         * lib/sysexit_.h (EX_OK): New macro.
72234         Suggested by Martin Lambers <marlam@marlam.de>.
72235
72236 2006-01-09  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72239         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72240
72241 2006-01-09  Bruno Haible  <bruno@clisp.org>
72242
72243         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72244         numbers.
72245
72246 2006-01-09  Bruno Haible  <bruno@clisp.org>
72247
72248         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72249         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72250         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72251         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72252
72253 2006-01-09  Bruno Haible  <bruno@clisp.org>
72254
72255         * build-aux/javacomp.sh.in: New file, moved from lib/.
72256         * modules/javacomp-script (Files): Update.
72257         (configure.ac): Add AC_CONFIG_FILES invocation.
72258         (EXTRA_DIST): Remove variable.
72259
72260         * build-aux/javaexec.sh.in: New file, moved from lib/.
72261         * modules/javaexec (Files): Update.
72262         (configure.ac): Add AC_CONFIG_FILES invocation.
72263         (EXTRA_DIST): Remove javaexec.sh.in.
72264
72265         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72266         * modules/csharpcomp-script (Files): Update.
72267         (configure.ac): Add AC_CONFIG_FILES invocation.
72268         (EXTRA_DIST): Remove variable.
72269
72270         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72271         * modules/csharpexec (Files): Update.
72272         (configure.ac): Add AC_CONFIG_FILES invocation.
72273         (EXTRA_DIST): Remove csharpexec.sh.in.
72274
72275 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72276
72277         Sync from coreutils.
72278
72279         Add POSIX ACL support
72280         * lib/acl.h (copy_acl, set_acl): Add declarations.
72281         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72282         systems other than Linux.
72283         (chmod_or_fchmod): New function: use fchmod when possible,
72284         and chmod otherwise.
72285         (file_has_acl): Add a POSIX ACL implementation, with a
72286         Linux-specific subcase.
72287         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72288         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72289         acls are unsupported.
72290         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72291         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72292         are unsupported.
72293
72294 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72295
72296         Sync from coreutils.
72297         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72298
72299 2006-01-07  Bruno Haible  <bruno@clisp.org>
72300
72301         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72302         gl_EARLY.
72303
72304 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72305
72306         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72307         Problem reported for Mingw by Mark Junker.
72308
72309 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * README: Gnulib normally doesn't generate a tarball.
72312
72313 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72314
72315         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72316         long int, not int, for nanosecond counts, so that people who are
72317         used to POSIX struct timespec won't be surprised.  Reported by Jim
72318         Meyering.
72319
72320 2005-12-28  Bruno Haible  <bruno@clisp.org>
72321
72322         * build-aux/config.rpath: Update from GNU gettext.
72323
72324 2005-12-16  Jim Meyering  <jim@meyering.net>
72325
72326         * modules/fprintftime: New module.
72327         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72328
72329 2005-12-16  Jim Meyering  <jim@meyering.net>
72330
72331         * m4/fprintftime.m4: New file.
72332
72333 2005-12-16  Jim Meyering  <jim@meyering.net>
72334
72335         * lib/fprintftime.c, lib/fprintftime.h: New files.
72336
72337 2005-12-15  Simon Josefsson  <jas@extundo.com>
72338
72339         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72340         new m4/socklen.m4.
72341
72342 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72343
72344         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72345         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72346
72347 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72348
72349         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72350         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72351         struct uparams is valid. Fall back to the default values if it is
72352         not.
72353
72354 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72355
72356         * modules/argp (Files): Add argp-pin.c
72357         (Depends-on): dirname
72358         (lib_SOURCES): Add argp-pin.c
72359
72360 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72361
72362         * m4/argp.m4:  Check if program_invocation_name and
72363         program_invocation_short_name are declared and define appropriate
72364         macros if they are not.
72365
72366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72367
72368         * lib/argp-help.c (__argp_base_name): New function
72369         (__argp_short_program_name): Rewrite using __argp_base_name
72370         * lib/argp-namefrob.h: Define program_invocation_name and
72371         program_invocation_short_name if requested
72372         (__argp_base_name): Add prototype
72373         * lib/argp-parse.c (argp_def): Use gettext wrappers
72374         (argp_default_parser): Use __argp_base_name
72375         * lib/argp-pin.c: New file. Defines program_invocation_name and
72376         program_invocation_short_name on systems that lack them.
72377
72378 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72379
72380         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72381         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72382         porting problem reported by Georg Schwarz in
72383         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72384
72385 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72388         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72389         porting problem reported by Georg Schwarz in
72390         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72391
72392 2005-12-05  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72395         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72396         Reported by Mark Junker <mjscod@gmx.de>.
72397
72398 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72399
72400         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72401         Use implementation from Albert Chin, with some
72402         comments/corrections by Stepan Kasal and myself.
72403
72404 2005-12-02  Bruno Haible  <bruno@clisp.org>
72405
72406         * gnulib-tool (func_import): Accept GPLed build tool modules when
72407         --lgpl is given.
72408         * modules/csharpcomp-script: New file.
72409         * modules/csharpcomp: Depend on it.
72410         * modules/javacomp-script: New file.
72411         * modules/javacomp: Depend on it.
72412         Suggested by Simon Josefsson.
72413
72414 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72417         statement, to work around an HP-UX 10.20 compiler bug reported by
72418         Peter O'Gorman.
72419
72420 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * modules/savedir (Depends-on): Add openat.
72423
72424 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72425
72426         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72427         (uintmax_t) [defined uintmax_t]: Do not declare.
72428         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72429         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72430         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72431         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72432         sake of portability to weird hosts that C allows (though we don't
72433         know of any practical examples).
72434
72435         * lib/savedir.h (fdsavedir): New decl.
72436         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72437         contains most of the former guts of savedir.
72438         (savedir): Use savedirstream.
72439         Include "openat.h".
72440
72441 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * modules/obstack (Files): Add m4/ulonglong.m4.
72444         Problem reported by Davide Angelocola.
72445
72446 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72449         coreutils no longer futzes with rounding modes.
72450
72451 2005-11-14  Jim Meyering  <jim@meyering.net>
72452
72453         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72454         replacement of mkstemp.
72455
72456 2005-11-10  Simon Josefsson  <jas@extundo.com>
72457
72458         * lib/readline.c: Remove EOL.
72459
72460 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * modules/gethrxtime (Depends-on): Add gettime.
72463
72464 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72467         or gettimeofday; no longer needed.
72468
72469 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72472         time business.
72473         (gethrxtime) [! (HAVE_NANOUPTIME
72474         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72475         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72476         our own approximation.
72477
72478 2005-11-08  Eric Blake  <ebb9@byu.net>
72479
72480         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72481
72482 2005-11-08  Eric Blake  <ebb9@byu.net>
72483
72484         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72485
72486 2005-11-04  Bruno Haible  <bruno@clisp.org>
72487
72488         * gnulib-tool: Implement --update mode.
72489
72490 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         Fix porting problem reported by Theodoros V. Kalamatianos.
72493         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72494         Don't assume that futimes failing means we must fail.
72495
72496 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72499         variables to suggest the intended function of the PATH_MAX check.
72500
72501 2005-10-30  Kean Johnston  <jkj@sco.com>
72502
72503         Trivial changes to support SCO systems.
72504         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72505         as PATH_MAX.
72506         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72507         where __ptr is null when no I/O is pending.
72508
72509 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72512         leave errno alone.  Problem reported by Dmitry V. Levin.
72513
72514 2005-10-28  Simon Josefsson  <jas@extundo.com>
72515
72516         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72517         Test more.
72518
72519         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72520
72521         * modules/md2, modules/md2-tests: New files.
72522
72523 2005-10-28  Simon Josefsson  <jas@extundo.com>
72524
72525         * m4/inet_ntop.m4: More tests.
72526
72527         * m4/gc-md2.m4, md2.m4: New file.
72528
72529 2005-10-28  Simon Josefsson  <jas@extundo.com>
72530
72531         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72532         "restrict" keywords, as per POSIX.  Protect the function
72533         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72534         Don't use K&R prototypes.  Check the sprintf return values.
72535         Re-define EAFNOSUPPORT if not present.  Indent.
72536
72537         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72538         suggested by Bruno Haible <bruno@clisp.org>.
72539
72540         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72541
72542         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72543
72544         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72545         libgcrypt).
72546
72547         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72548
72549         * lib/md2.h, lib/md2.c: New files.
72550
72551 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72554         errno alone.  Problem reported by Frederic Jolliton.
72555
72556 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * modules/verify (License): Change from GPL to LGPL.  This is a
72559         tiny module and there are apparently near-equivalents that are
72560         under the BSD license.
72561
72562 2005-10-24  Simon Josefsson  <jas@extundo.com>
72563
72564         * modules/sha1: Relicense to LGPL.
72565
72566 2005-10-24  Simon Josefsson  <jas@extundo.com>
72567
72568         * lib/md4.h: Shrink buffer size, now that we changed the type.
72569
72570 2005-10-23  Simon Josefsson  <jas@extundo.com>
72571
72572         * gnulib-tool (func_import): Fix --tests-base.
72573
72574 2005-10-22  Simon Josefsson  <jas@extundo.com>
72575
72576         * modules/arcfour (Depends-on): Need stdint.
72577
72578 2005-10-22  Simon Josefsson  <jas@extundo.com>
72579
72580         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72581         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72582
72583 2005-10-22  Simon Josefsson  <jas@extundo.com>
72584
72585         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72586         suggested by Bruno Haible <bruno@clisp.org>.
72587
72588 2005-10-22  Simon Josefsson  <jas@extundo.com>
72589
72590         * lib/crc.h: Include stddef.h, for size_t.
72591
72592 2005-10-22  Simon Josefsson  <jas@extundo.com>
72593
72594         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72595         arcfour_context struct (simplify test vector testing in GNU
72596         Shishi).
72597
72598 2005-10-21  Simon Josefsson  <jas@extundo.com>
72599
72600         * modules/des, modules/des-tests: New files.
72601
72602         * modules/gc-des, modules/gc-des-tests: New files.
72603
72604         * tests/test-des.c, tests/test-gc-des.c: New file.
72605
72606 2005-10-21  Simon Josefsson  <jas@extundo.com>
72607
72608         * modules/arctwo, modules/arctwo-tests: New files.
72609
72610         * tests/test-arctwo.c: New file.
72611
72612         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72613
72614         * tests/test-gc-arctwo.c: New file.
72615
72616 2005-10-21  Simon Josefsson  <jas@extundo.com>
72617
72618         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72619         Bruno Haible <bruno@clisp.org>.
72620
72621         * m4/gc-des.m4: New file.
72622
72623 2005-10-21  Simon Josefsson  <jas@extundo.com>
72624
72625         * m4/arctwo.m4: New file.
72626
72627         * m4/gc-arctwo.m4: New file.
72628
72629 2005-10-21  Simon Josefsson  <jas@extundo.com>
72630
72631         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72632         block.
72633
72634 2005-10-21  Simon Josefsson  <jas@extundo.com>
72635
72636         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72637         <bruno@clisp.org>.
72638
72639         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72640
72641         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72642         Bruno Haible <bruno@clisp.org>.
72643
72644         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72645         <bruno@clisp.org>.
72646
72647 2005-10-21  Simon Josefsson  <jas@extundo.com>
72648
72649         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72650
72651 2005-10-21  Simon Josefsson  <jas@extundo.com>
72652
72653         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72654
72655 2005-10-21  Simon Josefsson  <jas@extundo.com>
72656
72657         * lib/des.h, lib/des.c: New files.
72658
72659         * lib/gc-gnulib.c: Support DES.c
72660
72661 2005-10-21  Simon Josefsson  <jas@extundo.com>
72662
72663         * lib/arctwo.h, lib/arctwo.c: New files.
72664
72665         * lib/gc-gnulib.c: Support ARCTWO.
72666
72667 2005-10-21  Simon Josefsson  <jas@extundo.com>
72668
72669         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72670         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72671
72672 2005-10-21  Simon Josefsson  <jas@extundo.com>
72673
72674         * gnulib-tool (func_import, func_create_testdir): Define automake
72675         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72676         Makefile.am snippet),
72677         suggested by Bruno Haible <bruno@clisp.org>.
72678
72679         * modules/gc (Makefile.am): Use it.
72680
72681 2005-10-21  Bruno Haible  <bruno@clisp.org>
72682
72683         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72684         patch.
72685
72686 2005-10-19  Simon Josefsson  <jas@extundo.com>
72687
72688         * tests/test-gc-rijndael.c: New file.
72689
72690         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72691
72692 2005-10-19  Simon Josefsson  <jas@extundo.com>
72693
72694         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72695         interface too.
72696
72697 2005-10-19  Simon Josefsson  <jas@extundo.com>
72698
72699         * tests/test-gc-arcfour.c: New file.
72700
72701         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72702
72703 2005-10-19  Simon Josefsson  <jas@extundo.com>
72704
72705         * modules/gc-md4, modules/gc-md4-tests: New file.
72706
72707         * tests/test-gc-md4.c: New file.
72708
72709 2005-10-19  Simon Josefsson  <jas@extundo.com>
72710
72711         * m4/gc-md4.m4: New file.
72712
72713 2005-10-19  Simon Josefsson  <jas@extundo.com>
72714
72715         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72716         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72717         <kasal@ucw.cz>.
72718
72719 2005-10-19  Simon Josefsson  <jas@extundo.com>
72720
72721         * m4/gc-arcfour.m4: New file.
72722
72723         * m4/gc-rijndael.m4: New file.
72724
72725 2005-10-19  Simon Josefsson  <jas@extundo.com>
72726
72727         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72728
72729 2005-10-19  Simon Josefsson  <jas@extundo.com>
72730
72731         * lib/gc-gnulib.c: Support ARCFOUR.
72732
72733 2005-10-19  Simon Josefsson  <jas@extundo.com>
72734
72735         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72736         support.
72737
72738         * lib/gc.h: Add ECB enum type.
72739
72740         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72741
72742 2005-10-18  Simon Josefsson  <jas@extundo.com>
72743
72744         * tests/test-md5.c: New file.
72745
72746         * modules/md5-tests: New file.
72747
72748 2005-10-18  Simon Josefsson  <jas@extundo.com>
72749
72750         * tests/test-md4.c: New file.
72751
72752         * modules/md4, modules/md4-tests: New files.
72753
72754 2005-10-18  Simon Josefsson  <jas@extundo.com>
72755
72756         * m4/md4.m4: New file.
72757
72758 2005-10-18  Simon Josefsson  <jas@extundo.com>
72759
72760         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72761
72762 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72763
72764         * gnulib-tool (func_create_testdir): Omit the second check whether
72765         BUILT_SOURCES in nonempty.
72766
72767 2005-10-17  Simon Josefsson  <jas@extundo.com>
72768
72769         * tests/test-rijndael.c: New file.
72770
72771 2005-10-17  Simon Josefsson  <jas@extundo.com>
72772
72773         * modules/sha1: Depend on stdint instead of md5.
72774
72775         * modules/md5: Depend on stdint, remove uint32_t.
72776
72777 2005-10-17  Simon Josefsson  <jas@extundo.com>
72778
72779         * modules/gc-sha1-tests: New file.
72780
72781         * tests/test-gc-sha1.c: New file.
72782
72783 2005-10-17  Simon Josefsson  <jas@extundo.com>
72784
72785         * m4/md5.m4: Remove call to uint32_t.m4.
72786
72787 2005-10-17  Simon Josefsson  <jas@extundo.com>
72788
72789         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72790
72791         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72792         md5.h.
72793
72794         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72795
72796         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72797
72798 2005-10-17  Simon Josefsson  <jas@extundo.com>
72799
72800         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72801
72802 2005-10-17  Simon Josefsson  <jas@extundo.com>
72803
72804         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72805
72806 2005-10-17  Simon Josefsson  <jas@extundo.com>
72807
72808         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72809
72810         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72811
72812 2005-10-17  Bruno Haible  <bruno@clisp.org>
72813
72814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72815         that it can also be used in a test.
72816
72817 2005-10-16  Bruno Haible  <bruno@clisp.org>
72818
72819         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72820         TESTS_ENVIRONMENT, so that individual tests can augment it.
72821
72822         * gnulib-tool (func_create_testdir): Use an intermediate target for
72823         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72824         macros, like $(ALLOCA_H), which cannot be passed through the command
72825         line.
72826
72827 2005-10-15  Simon Josefsson  <jas@extundo.com>
72828
72829         * modules/rijndael-tests: New file.
72830
72831         * modules/rijndael: New file.
72832
72833 2005-10-15  Simon Josefsson  <jas@extundo.com>
72834
72835         * m4/rijndael.m4: New file.
72836
72837 2005-10-15  Simon Josefsson  <jas@extundo.com>
72838
72839         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72840
72841         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72842
72843 2005-10-14  Simon Josefsson  <jas@extundo.com>
72844
72845         * tests/test-arcfour.c: New file.
72846
72847         * modules/arcfour, modules/arcfour-tests: New files.
72848
72849 2005-10-14  Simon Josefsson  <jas@extundo.com>
72850
72851         * m4/arcfour.m4: New file.
72852
72853 2005-10-14  Simon Josefsson  <jas@extundo.com>
72854
72855         * lib/arcfour.h, lib/arcfour.c: New files.
72856
72857 2005-10-14  Roland McGrath  <roland@redhat.com>
72858
72859         Import from libc.  [BZ #1331]
72860         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72861         macro argument.
72862         Reported by Matej Vela <vela@debian.org>.
72863
72864 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72867         include <wchar.h>; no longer needed.
72868
72869 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72872
72873 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72874         and  Ulrich Drepper  <drepper@redhat.com>
72875
72876         Import from libc.
72877         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72878         instead of inline stream orientation test and two separate
72879         function calls.  Pay no attention to USE_IN_LIBIO.
72880
72881 2005-10-13  Simon Josefsson  <jas@extundo.com>
72882
72883         * modules/gc-hmac-md5-tests: New file.
72884
72885         * tests/test-gc-hmac-sha1.c: New file.
72886
72887         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72888
72889         * modules/gc-hmac-md5-tests: New file.
72890
72891         * tests/test-gc-md5.c: New file.
72892
72893         * modules/gc-md5-tests: New file.
72894
72895 2005-10-13  Simon Josefsson  <jas@extundo.com>
72896
72897         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72898         Move memory allocation outside of loop.
72899
72900 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72903         intermediate directory is in a read-only file system.  Problem
72904         reported by Eric Blake.
72905
72906 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72907
72908         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72909
72910 2005-10-12  Simon Josefsson  <jas@extundo.com>
72911
72912         * tests/test-hmac-sha1.c: New file.
72913
72914         * modules/hmac-sha1-tests: New file.
72915
72916         * modules/hmac-sha1: New file.
72917
72918 2005-10-12  Simon Josefsson  <jas@extundo.com>
72919
72920         * modules/gc-sha1: New file.
72921
72922 2005-10-12  Simon Josefsson  <jas@extundo.com>
72923
72924         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72925
72926         * tests/test-gc-pbkdf2-sha1.c: New file.
72927
72928 2005-10-12  Simon Josefsson  <jas@extundo.com>
72929
72930         * modules/gc-md5, modules/gc-hmac-md5: New files.
72931
72932         * modules/gc (Files): Remove md5, memxor and hmac files.
72933
72934 2005-10-12  Simon Josefsson  <jas@extundo.com>
72935
72936         * m4/gc-pbkdf2-sha1.m4: New file.
72937
72938         * m4/gc-hmac-sha1.m4: New file.
72939
72940         * m4/gc-sha1: New file.
72941
72942         * m4/hmac-sha1.m4: New file.
72943
72944 2005-10-12  Simon Josefsson  <jas@extundo.com>
72945
72946         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72947
72948         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72949
72950 2005-10-12  Simon Josefsson  <jas@extundo.com>
72951
72952         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72953         suggested by Bruno Haible <bruno@clisp.org>.
72954
72955 2005-10-12  Simon Josefsson  <jas@extundo.com>
72956
72957         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72958
72959 2005-10-12  Simon Josefsson  <jas@extundo.com>
72960
72961         * lib/gc-pbkdf2-sha1.c: New file.
72962
72963         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72964
72965 2005-10-12  Simon Josefsson  <jas@extundo.com>
72966
72967         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72968
72969         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72970
72971 2005-10-12  Simon Josefsson  <jas@extundo.com>
72972
72973         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72974         GC_USE_HMAC_MD5, respectively.
72975
72976         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72977         (gc_md5): Fix typo.
72978
72979         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72980
72981         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72982
72983         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72984
72985 2005-10-12  Bruno Haible  <bruno@clisp.org>
72986
72987         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72988         Reported by Stepan Kasal <kasal@ucw.cz>.
72989
72990 2005-10-11  Simon Josefsson  <jas@extundo.com>
72991
72992         * tests/test-crc.c: New file.
72993
72994         * modules/crc, modules/crc-tests: New files.
72995
72996 2005-10-11  Simon Josefsson  <jas@extundo.com>
72997
72998         * m4/crc.m4: New file.
72999
73000 2005-10-11  Simon Josefsson  <jas@extundo.com>
73001
73002         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73003
73004         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73005
73006         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73007
73008 2005-10-11  Simon Josefsson  <jas@extundo.com>
73009
73010         * lib/crc.h, lib/crc.c: New files.
73011
73012         * lib/gc.h (gc_hash_buffer): Add doc.
73013
73014 2005-10-11  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/c-strcasestr: New file.
73017         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73018
73019 2005-10-11  Bruno Haible  <bruno@clisp.org>
73020
73021         * modules/c-strcase: New file.
73022         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73023
73024 2005-10-11  Bruno Haible  <bruno@clisp.org>
73025
73026         * lib/strcasecmp.c: Include limits.h.
73027         (strcasecmp): Avoid integer overflow on exotic platforms.
73028         * lib/strncasecmp.c: Include limits.h.
73029         (strncasecmp): Avoid integer overflow on exotic platforms.
73030         Reported by Paul Eggert.
73031
73032 2005-10-11  Bruno Haible  <bruno@clisp.org>
73033
73034         * lib/c-strcasestr.h: New file, from GNU gettext.
73035         * lib/c-strcasestr.c: New file, from GNU gettext.
73036
73037 2005-10-11  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/c-strcase.h: New file, from GNU gettext.
73040         * lib/c-strcasecmp.c: New file, from GNU gettext.
73041         * lib/c-strncasecmp.c: New file, from GNU gettext.
73042
73043 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * modules/mempcpy (License): GPL -> LGPL.
73046         * modules/strchrnul (License): Likewise.
73047         * modules/sysexits (License): Likewise.
73048
73049 2005-10-08  Simon Josefsson  <jas@extundo.com>
73050
73051         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73052
73053 2005-10-07  Simon Josefsson  <jas@extundo.com>
73054
73055         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73056
73057 2005-10-06  Simon Josefsson  <jas@extundo.com>
73058
73059         * tests/test-hmac-md5.c: New file.
73060
73061         * modules/hmac-md5-tests: New file.
73062
73063         * modules/hmac-md5: New file.
73064
73065 2005-10-06  Simon Josefsson  <jas@extundo.com>
73066
73067         * m4/hmac-md5.m4: New file.
73068
73069         * m4/memxor.m4: Require gl_C_RESTRICT.
73070
73071 2005-10-06  Simon Josefsson  <jas@extundo.com>
73072
73073         * lib/memxor.c (memxor): Avoid casts and warnings.
73074
73075 2005-10-06  Simon Josefsson  <jas@extundo.com>
73076
73077         * lib/hmac-md5.c: New file.
73078
73079         * lib/hmac.h: New file.
73080
73081 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73084         promotes to int, not unsigned int, to catch the AIX 5.3
73085         compiler bug.
73086
73087 2005-10-05  Simon Josefsson  <jas@extundo.com>
73088
73089         * modules/memxor: New file.
73090
73091         * modules/iconv (Files): Move config.rpath to havelib, it is used
73092         there.
73093
73094         * modules/havelib (Files): Add config.rpath.
73095
73096 2005-10-05  Simon Josefsson  <jas@extundo.com>
73097
73098         * m4/memxor.m4: New file.
73099
73100 2005-10-05  Simon Josefsson  <jas@extundo.com>
73101
73102         * lib/memxor.c (memxor): Fix compiler error.
73103
73104         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73105         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73106
73107         * lib/memxor.h, lib/memxor.c: New files.
73108
73109         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73110         we assume all systems have it, suggested by Jim Meyering
73111         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73112         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73113         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73114         same reasons.
73115
73116 2005-10-05  Simon Josefsson  <jas@extundo.com>
73117
73118         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73119
73120 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73123         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73124         needed, since the source code now assumes these .h files.
73125
73126 2005-10-05  Derek Price  <derek@ximbiot.com>
73127
73128         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73129
73130 2005-10-05  Bruno Haible  <bruno@clisp.org>
73131
73132         * modules/stdint (License): Change to LGPL.
73133
73134 2005-10-04  Simon Josefsson  <jas@extundo.com>
73135
73136         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73137         D. Baushke" <mdb@gnu.org>.
73138
73139 2005-10-04  Bruno Haible  <bruno@clisp.org>
73140
73141         * lib/verify.h (verify_true): Provide alternative definition for C++.
73142
73143 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73146         (SSIZE_MAX): New macro, if not already defined.
73147         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73148         than 2 GiB.
73149
73150 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         Sync from coreutils.
73153         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73154         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73155         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73156         ULLONG_MAX doesn't work with 2.7.2.1.
73157
73158 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73161         From Ben Pfaff.
73162
73163         * modules/exclude (Depends-on): Depend on verify.
73164         * modules/strtoimax (Depends-on): Likewise.
73165         * modules/utimecmp (Depends-on): Likewise.
73166
73167 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73168
73169         * lib/exclude.c: Include verify.h.
73170         (verify): Remove.  All callers changed to use verify.h's version.
73171         * lib/strtoimax.c: Likewise.
73172         * lib/utimecmp.c: Likewis.e
73173
73174         Sync from coreutils.
73175         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73176         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73177         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73178         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73179         bother returning ENOSYS if settimeofday or stime fails; just let
73180         them return whatever errno they want to return.
73181         * lib/utimens.c: Include unistd.h, for dup2.
73182         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73183         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73184
73185 2005-10-02  Jim Meyering  <jim@meyering.net>
73186
73187         Sync from coreutils.
73188         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73189         from glibc-2.2.5 that fails for read-only files.
73190
73191 2005-10-02  Jim Meyering  <jim@meyering.net>
73192
73193         Sync from coreutils.
73194         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73195         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73196         `#if HAVE_CONFIG_H'.
73197         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73198         Remove AT_FDCWD test.
73199         Do not consume the fd unless successful.
73200         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73201         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73202         block, so that we don't even try to compile it if settimeofday is
73203         available.  This works around a compilation failure on OSF1 V5.1,
73204         due to stime requiring a `long int*' while tv_sec is `int'.
73205
73206 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73207
73208         Sync from coreutils.
73209         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73210         against `yes', rather than just testing for nonempty.
73211
73212 2005-10-01  Simon Josefsson  <jas@extundo.com>
73213
73214         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73215         and Darwin.
73216
73217         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73218         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73219         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73220         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73221         Check if struct addrinfo is declared.
73222
73223 2005-10-01  Simon Josefsson  <jas@extundo.com>
73224
73225         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73226         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73227         AI_* and EAI_* definitions.  Protect function declarations.
73228
73229 2005-10-01  Jim Meyering  <jim@meyering.net>
73230
73231         Sync from coreutils.
73232
73233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73234         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73235         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73237         in the inet and nsl libraries.  Required on Solaris 5.7.
73238
73239 2005-10-01  Jim Meyering  <jim@meyering.net>
73240
73241         Sync from coreutils.
73242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73243         in the inet and nsl libraries.  Required on Solaris 5.7.
73244
73245 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73246
73247         * lib/getdelim.c (getdelim): Remove unused variables.
73248
73249 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73252         so that the code works even with ancient cpp.  Portability problem
73253         with GCC 2.7.2.1 reported by Thomas M.Ott.
73254
73255 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * modules/regex (Depends-on): Add strcase.
73258
73259         * modules/gethostname (Licence): Change from GPL to LGPL, since
73260         gethostname.c is a trivial implementation of a standard library
73261         function.
73262         * modules/poll (License): Change from GPL to LGPL, since it's
73263         derived from LGPL code.
73264
73265 2005-09-27  Jim Meyering  <jim@meyering.net>
73266
73267         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73268         HAVE_CONFIG_H.
73269
73270         * lib/intprops.h (signed_type_or_expr__): Define.
73271         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73272         for unsigned types.
73273
73274 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         * lib/verify.h (verify_expr): Remove, replacing with:
73277         (verify_true): New macro that returns true instead of void.
73278         (verify_type__): Remove.
73279         (verify): Use verify_true rather than verify_type__.
73280
73281 2005-09-26  Bruno Haible  <bruno@clisp.org>
73282
73283         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73284         is necessary.
73285         (lib_SOURCES): Remove mbchar.c.
73286         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73287         (Files): Add m4/mbrtowc.m4.
73288         * modules/mbiter: Likewise.
73289         * modules/mbuiter: Likewise.
73290
73291 2005-09-26  Bruno Haible  <bruno@clisp.org>
73292
73293         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73294         compile mbchar.c if they are not both present.
73295         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73296         * m4/mbiter.m4 (gl_MBITER): Likewise.
73297         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73298         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73299         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73300
73301 2005-09-25  Jim Meyering  <jim@meyering.net>
73302
73303         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73304         also uses socklen_t.
73305
73306 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * lib/utimens.c (ENOSYS): Define if not already defined.
73309         (futimens): Support having a null PATH if the file descriptor
73310         is nonnegative.
73311
73312         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73313         Remove.
73314         (__attribute): Define to empty unless GCC 3.1 or later.
73315         This works around a core dump on OpenBSD 3.4, which has GCC
73316         2.95.3, which dumps core when given __attribute__(()).  It also
73317         simplifies other tests, since we really don't want to bother with
73318         worrying about which ancient version of GCC supported what.
73319         Original problem reported by Yoann Vandoorselaere, with part of
73320         the fix suggested by Derek Price.
73321
73322 2005-09-24  Jim Meyering  <jim@meyering.net>
73323
73324         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73325         so we can once again use a positive bitfield width of 1 -- now we
73326         don't have to explain why we were using a bitfield width of 2.
73327
73328 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73329
73330         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73331         and similarly for the other external symbols.  Problem reported
73332         by James Gallager.
73333
73334         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73335         bug reported by Jim Meyering.
73336
73337         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73339         not needed, since socklen is a prerequisite module.
73340
73341 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73342
73343         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73344         Problem reported by Eric Blake.
73345         (getaddrinfo): Initialize se so that it's not garbage.
73346         Redo internal storage allocation so that it doesn't make unportable
73347         assumptions about alignment.
73348         Fix a memory leak.
73349
73350         * lib/utimens.c (futimens): Use futimesat if available.
73351         Prefer it to futimes since it doesn't have the futimes bug.
73352
73353         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73354         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73355         Instead, declare a function that returns a pointer to an array,
73356         and use verify_type__ to declare the size of the array.
73357         Problem and germ of a solution reported by Bruno Haible.
73358         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73359         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73360
73361 2005-09-23  Jim Meyering  <jim@meyering.net>
73362
73363         Sync from coreutils.
73364         Correct build failure (socklen_t not defined) on at least
73365         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73366         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73367
73368 2005-09-23  Jim Meyering  <jim@meyering.net>
73369
73370         * modules/getaddrinfo (Depends-on): Add socklen.
73371
73372 2005-09-23  Bruno Haible  <bruno@clisp.org>
73373
73374         * tests/test-verify.c: New file.
73375
73376 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         Sync from coreutils.
73379
73380         * modules/argmatch (Depends-on): Add verify.
73381         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73382         unistd-safer.
73383         * modules/save-cwd (Depends-on): Likewise.
73384
73385         * modules/openat (Files): Add lib/openat-die.c.
73386         (Depends-on): Remove error, exitfail.
73387         Add dirname.
73388
73389         * modules/verify: New file.
73390         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73391         with "verify" module.
73392
73393 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73394
73395         Sync from coreutils.
73396
73397         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73398         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73399         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73400         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73401         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73402         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73403         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73404         Don't bother checking for string.h, stdlib.h, unistd.h.
73405         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73406         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73407         module's job.
73408         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73409         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73410
73411         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73412         (gl_GETDATE): Use it.
73413
73414         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73415
73416 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         Sync from coreutils.
73419
73420         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73421         stat-time.h.
73422         * lib/argmatch.h: Include verify.h
73423         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73424         (ARGMATCH_ASSERT): Remove; unused.
73425         * lib/canonicalize.c: Assume STDC_HEADERS.
73426         * lib/exclude.c: Include "strcase.h".
73427         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73428         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73429         and stdio-safer.h.
73430         (getusershell): Call fopen, not fopen_safer.
73431         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73432         Do not include unistd-safer.h.
73433         (save_cwd): Don't call fd_safer; no longer needed
73434         now that we include fcntl--.h.
73435
73436         * lib/getdate.y (relative_time): New type.
73437         (RELATIVE_TIME_0): New constant.
73438         (parser_control): Use relative_time instead of doing it ourselves.
73439         (%union): Add new relative_time rel member.
73440         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73441         Now typeless.
73442         (relunit, relunit_snumber): Now of type rel.
73443         (zone, rel, relunit, get_date): Adjust to above changes.
73444
73445         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73446         Do not include unistd-safer.h.
73447         (getloadavg): Don't call fd_safer; no longer needed
73448         now that we include fcntl--.h.
73449
73450         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73451         (make_dir_parents): Treat ENOSYS like EEXIST.
73452
73453         Improve quality of diagnostics on restore_cwd failure.
73454         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73455         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73456         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73457         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73458         each time through the loop.  Do not diagnose restore_cwd failure;
73459         that is the caller's job (and perhaps the caller does not care).
73460
73461         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73462         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73463         If the file already exists but is not a directory, don't bother
73464         to try to make its parents.
73465         Close potential file descriptor leak if we can't chdir("/") (!).
73466         Don't always return true if chdir($PWD) fails; return true only
73467         if the requested action was done successfully (except for the
73468         chdir($PWD)).
73469         Don't log final directory unless we actually made it.
73470         Refactor to avoid duplicate code to fix up permissions.
73471         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73472
73473         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73474         to make it a bit faster and (I hope) clearer.
73475         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73476         Fix bug in formats like %2N.
73477
73478         * lib/verify.h: New file.
73479
73480 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73481
73482         Sync from coreutils.
73483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73484
73485 2005-09-22  Jim Meyering  <jim@meyering.net>
73486
73487         Sync from coreutils.
73488
73489         * m4/lstat.m4 (gl_FUNC_LSTAT):
73490         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73491         Remove obsolete comment.
73492         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73493         * m4/xstrtod.m4: Likewise.
73494
73495         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73496
73497 2005-09-22  Jim Meyering  <jim@meyering.net>
73498
73499         Sync from coreutils.
73500
73501         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73502
73503         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73504         the .tm_year member, since otherwise gcc-4.0 would now warn about
73505         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73506
73507         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73508         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73509
73510         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73511         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73512         when run in a time zone for which daylight savings time is in effect
73513         for the starting date.
73514
73515         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73516         stop us from restricting permissions of just-created absolute-named
73517         directories.
73518         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73519         to restore initial working directory.
73520         * lib/mkdir-p.c (make_dir_parents): New parameter:
73521         different_working_dir, to tell caller if/when we change the working
73522         directory and are unable to return to the initial one.
73523         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73524         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73525         `return false'.  This fixes a bug introduced on 2004-07-30.
73526
73527         * lib/openat.c (fdopendir): Be sure to close the supplied
73528         file descriptor before returning.  This makes our replacement
73529         implementation a little closer to Solaris's, where fdopendir
73530         ties the file descriptor to the returned DIR* pointer.
73531         * lib/openat.c (unlinkat): New function.
73532         * lib/openat.h (unlinkat): Add prototype.
73533         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73534         (openat_restore_fail): Rename from openat_restore_die.
73535         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73536
73537         Provide an alternative to exiting immediately upon save_cwd or
73538         restore_cwd failure.  Now, an application can arrange e.g.,
73539         to perform a longjump in that case.
73540         * lib/openat.c: Include dirname.h.
73541         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73542         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73543         and openat_restore_die rather than calling error directly.
73544         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73545
73546         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73547         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73548         define.
73549
73550         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73551         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73552                             int utc, int nanoseconds);
73553         Background:
73554         date should not have to allocate a megabyte of virtual memory to
73555         handle a format argument like +%1048575T.  When implemented with
73556         strftime, it must allocate such a buffer, use strftime to fill it
73557         in, print it, then free it.
73558         With fprintftime, it simply prints everything and exits.
73559         With no need for memory allocation, that's one fewer way to fail.
73560         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73561         optional field width, not before, so we accept %9:z, not %:9z.
73562         (my_strftime): Be sure to use L_('x') for literals.
73563
73564         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73565         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73566         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73567         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73568         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73569         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73570         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73571         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73572         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73573         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73574         * lib/xgethostname.c, lib/xreadlink.c:
73575         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73576
73577         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73578         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73579         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73580         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73581         and don't include <sys/file.h>).
73582
73583 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73584
73585         Sync from coreutils.
73586
73587         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73588         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73589         [!LDAV_DONE]: Avoid unused variable warning.
73590
73591 2005-09-21  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/unicodeio.h (unicode_to_mb): New declaration.
73594
73595 2005-09-20  Derek Price  <derek@ximbiot.com>
73596
73597         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73598         getaddrinfo.h.
73599
73600 2005-09-20  Bruno Haible  <bruno@clisp.org>
73601
73602         * gnulib-tool: Remove trailing slashes from the values specified for
73603         --source-base, --m4-base, --tests-base, --aux-dir.
73604         Suggested by Simon Josefsson <jas@extundo.com>.
73605
73606 2005-09-20  Bruno Haible  <bruno@clisp.org>
73607
73608         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73609         func_modules_to_filelist, func_import, func_create_testdir): Make all
73610         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73611         change when gnulib-tool is invoked in a different locale.
73612
73613 2005-09-19  Simon Josefsson  <jas@extundo.com>
73614
73615         * m4/socklen.m4: Fix typo.
73616
73617 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73618
73619         Use a consistent style for including <config.h>.
73620         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73621         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73622         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73623         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73624         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73625         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73626         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73627         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73628         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73629         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73630         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73631         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73632         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73633         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73634         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73635         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73636         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73637         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73638         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73639         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73640         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73641         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73642         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73643         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73644         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73645         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73646         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73647         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73648         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73649         lib/xstrtoumax.c, lib/yesno.c:
73650         Standardize inclusion of config.h.
73651         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73652         lib/inttostr.h:  Removed inclusion of config.h from header files.
73653         * lib/inttostr.c:  Adjusted in-tree users.
73654         * lib/timespec.h: Remove superfluous warning to include config.h.
73655         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73656         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73657         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73658         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73659         config.h with HAVE_CONFIG_H.
73660
73661 2005-09-19  Jim Meyering  <jim@meyering.net>
73662
73663         * modules/pathmax (License): Change to LGPL.
73664
73665 2005-09-19  Derek Price  <derek@ximbiot.com>
73666
73667         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73668
73669 2005-09-19  Bruno Haible  <bruno@clisp.org>
73670
73671         * gnulib-tool (import): Provide default for --tests-base.
73672
73673 2005-09-19  Bruno Haible  <bruno@clisp.org>
73674
73675         * doc/quote.texi: New file, extracted from gnulib.texi.
73676         * doc/ctime.texi: New file, extracted from gnulib.texi.
73677         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73678         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73679         * doc/gnulib.texi: Include them.
73680
73681 2005-09-18  Bruno Haible  <bruno@clisp.org>
73682
73683         Portability fix.
73684         * gnulib-tool (func_readlink): New function.
73685         (func_ln_if_changed): Use it.
73686
73687 2005-09-18  Bruno Haible  <bruno@clisp.org>
73688
73689         * gnulib-tool: Support --with-tests also with --import.
73690         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73691         (func_import): Use variables $testsbase and $inctests. Emit a
73692         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73693         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73694         SUBDIRS += $testsdir.
73695         (func_create_testdir): Update.
73696
73697 2005-09-18  Bruno Haible  <bruno@clisp.org>
73698
73699         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73700         instead of $dry_run.
73701         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73702         (func_ln_if_changed): Don't handle dry-run here.
73703         (func_import): In dry-run mode, detect more precisely which actions
73704         would be performed, and don't use "...ing" verbs.
73705
73706 2005-09-18  Bruno Haible  <bruno@clisp.org>
73707
73708         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73709         (func_import): Use join on two temporary files instead of three nested
73710         loops, in order to determine which files are new or old.
73711
73712 2005-09-18  Bruno Haible  <bruno@clisp.org>
73713
73714         * gnulib-tool (func_import): Comment out code that spits out the
73715         new files with --dry-run.
73716
73717 2005-09-18  Bruno Haible  <bruno@clisp.org>
73718
73719         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73720
73721 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * lib/stat-time.h: New file.
73724         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73725         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73726         in a different way.
73727         (timespec_cmp): New function.
73728         * lib/utimecmp.c: Include stat-time.h.
73729         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73730         members exist, not on the obsolescent ST_MTIM_NSEC.
73731         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73732
73733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73736
73737 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * MODULES.html.sh (File system functions): Add stat-time.
73740         * modules/stat-time: New file.
73741         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73742         is now done in a different way, by the stat-time module.
73743         * modules/utimecmp (Depends-on): Add stat-time.
73744
73745 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * m4/st_mtim.m4: Remove.  Superseded by...
73748         * m4/stat-time.m4: New file.
73749         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73750         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73751
73752 2005-09-15  Derek Price  <derek@ximbiot.com>
73753
73754         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73755
73756 2005-09-15  Derek Price  <derek@ximbiot.com>
73757
73758         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73759         * lib/regex_internal.c: Ditto, using this...
73760         (__GNUC_PREREQ): ...new macro.
73761         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73762         using...
73763         (__GNUC_PREREQ): ...this new macro.
73764
73765         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73766
73767 2005-09-15  Derek Price  <derek@ximbiot.com>
73768             Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73771         changes, consolidating in...
73772         * lib/regex_internal.h: ...this file.
73773
73774 2005-09-13  Jim Meyering  <jim@meyering.net>
73775
73776         * lib/canon-host.c: Filter through gnu indent and reword comments
73777         slightly.
73778         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73779
73780 2005-09-13  Derek Price  <derek@ximbiot.com>
73781
73782         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73783         failure.
73784         Reported by Jim Meyering  <jim@meyering.net>.
73785
73786 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73787
73788         * lib/base64.c: Typo.
73789         (base64_encode): Put b64str in initialized data section.
73790
73791 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         Merge glibc and coreutils changes into gnulib, plus a few
73794         extra fixes.
73795         * lib/md5.c: Use #error rather than a string.
73796         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73797         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73798         (__attribute__): Define to empty for non recent-GCC.
73799         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73800         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73801         Renamed from their non-__ counterparts, with new macros replacing
73802         them if not _LIBC.  Add __THROW attribute.
73803         (rol): Remove.
73804         (struct md5_ctx): Align buffer if using GCC.
73805         * lib/sha1.h (struct sha1_ctx): Likewise.
73806         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73807         The old name was backwards.
73808         (NOTSWAP): Remove; not used.
73809         (rol): New macro, moved here from md5.h.
73810         (sha1_process_block): Remove a FIXME that doesn't make sense.
73811
73812 2005-09-12  Derek Price  <derek@ximbiot.com>
73813
73814         Return usable errors from canon-host.
73815         * lib/canon-host.h: New file.
73816         * lib/canon-host.c (canon_host): Wrap...
73817         (canon_host_r): ...this new function, which now relies exclusively on
73818         getaddrinfo.
73819         (ch_strerror): New function.
73820         (last_cherror): New global.
73821         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73822         interface.
73823         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73824         void *.
73825         (freeaddrinfo): Free ai->ai_canonname when set.
73826
73827 2005-09-12  Derek Price  <derek@ximbiot.com>
73828
73829         Make canon-host require getaddrinfo.
73830         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73831         AC_LIBSOURCE canon-host.h.  Call...
73832         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73833         gl_GETADDRINFO.
73834         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73835
73836 2005-09-12  Derek Price  <derek@ximbiot.com>
73837
73838         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73839         LGPL.
73840         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73841
73842 2005-09-12  Derek Price  <derek@ximbiot.com>
73843
73844         * lib/gai_strerror.c: Include config.h when available.  Include
73845         getaddrinfo.h before other headers to test interface.
73846         Reported by Larry Jones <lawrence.jones@ugs.com>.
73847
73848 2005-09-12  Derek Price  <derek@ximbiot.com>
73849             Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * modules/glob (Files): Add glob-libc.h.
73852
73853 2005-09-12  Derek Price  <derek@ximbiot.com>
73854             Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73857         glob_.h, glob-libc.h.
73858         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73859
73860 2005-09-12  Derek Price  <derek@ximbiot.com>
73861             Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73864         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73865         protecting things that should be done only in gnulib contexts.
73866         * lib/glob_.h: New file, containing only the glob things needed for
73867         gnulib.
73868         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73869         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73870         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73871         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73872         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73873         and to respect the namespace rules better.
73874
73875 2005-09-08  Simon Josefsson  <jas@extundo.com>
73876
73877         * modules/socklen: New file.
73878
73879 2005-09-08  Simon Josefsson  <jas@extundo.com>
73880
73881         * m4/socklen.m4: New file.
73882
73883 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * modules/utimens (Files): Add m4/utimbuf.m4, since
73886         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73887         Reported by Sergey Poznyakoff.
73888
73889 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73892         definitions, since that's the preferred style in glibc.
73893         Fix a minor spacing issue, and update copyright notice to match
73894         glibc's.
73895
73896 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73899
73900 2005-09-06  Simon Josefsson  <jas@extundo.com>
73901
73902         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73903         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73904
73905 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73908         warning.
73909
73910 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * config/srclist.txt: Add glibc bug 1302.
73913
73914 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         Change bitset word type from unsigned int to unsigned long int,
73917         as this has better performance on typical 64-bit hosts.
73918         Port bitset code to hosts with unusual word sizes.
73919         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73920         (build_collating_symbol):
73921         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73922         argument is a bitset.  This is merely a style issue, but it makes
73923         it clearer that an entire array is expected.
73924         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73925         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73926         Port to the case where bitset_word is not the same as unsigned int.
73927         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73928         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73929         Likewise.
73930         * lib/regexec.c (check_dst_limits_calc_pos_1,
73931         check_subexp_matching_top):
73932         (build_trtable, group_nodes_into_DFAstates):
73933         Likewise.
73934         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73935         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73936         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73937         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73938         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73939         * lib/regcomp.c (optimize_subexps, lower_subexp):
73940         Work even if bitset_word has holes in its bitwise representation.
73941         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73942         * lib/regexec.c (check_dst_limits_calc_pos_1,
73943         check_subexp_matching_top):
73944         Likewise.
73945         * lib/regex_internal.c (re_string_reconstruct):
73946         Don't assume UCHAR_MAX == 255.
73947         * lib/regex_internal.h (bitset_set_all): Likewise.
73948         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73949         All uses changed.
73950         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73951         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73952         All uses changed.
73953         (BITSET_WORD_MAX): New macro.
73954         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73955         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73956         (bitset_empty, bitset_copy):
73957         Prefer sizeof (bitset) to multiplying it out ourselves.
73958         (bitset_not_merge): Remove; unused.
73959         (bitset_contain): Return bool, not unsigned int with one bit on.
73960         All callers changed.
73961         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73962         alignment than re_node_set; do this by defining a new internal
73963         type struct dests_alloc and using it to allocate memory.
73964
73965 2005-09-05  Bruno Haible  <bruno@clisp.org>
73966
73967         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73968         links.
73969
73970 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73971
73972         * modules/size_max (Makefile.am): Add size_max.h
73973
73974 2005-09-04  Derek Price  <derek@ximbiot.com>
73975
73976         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73977
73978 2005-09-03  Simon Josefsson  <jas@extundo.com>
73979
73980         * gnulib-tool: Fix typo.
73981
73982 2005-09-03  Simon Josefsson  <jas@extundo.com>
73983
73984         * config/srclist.txt: Add glibc bug 1293.
73985
73986 2005-09-03  Derek Price  <derek@ximbiot.com>
73987
73988         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73989         From Larry Jones <lawrence.jones@ugs.com>.
73990
73991 2005-09-02  Simon Josefsson  <jas@extundo.com>
73992
73993         * modules/socklen: New file.
73994
73995 2005-09-02  Simon Josefsson  <jas@extundo.com>
73996
73997         * modules/havelib: New module.
73998
73999         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74000         Use havelib.
74001
74002 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         Check for arithmetic overflow when calculating sizes, to prevent
74005         some buffer-overflow issues.  These patches are conservative, in the
74006         sense that when I couldn't determine whether an overflow was possible,
74007         I inserted a run-time check.
74008         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74009         macros.
74010         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74011         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74012         (re_xnrealloc, re_x2nrealloc): New inline functions.
74013         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74014         parse_bracket_exp):
74015         (build_equiv_class, build_charclass): Check for arithmetic overflow
74016         in size expression calculations.
74017         * lib/regex_internal.c (re_string_realloc_buffers):
74018         (build_wcs_upper_buffer, re_node_set_add_intersect):
74019         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74020         (re_dfa_add_node, register_state): Likewise.
74021         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74022         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74023         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74024         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74025
74026 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74027
74028         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74029         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74030
74031 2005-09-02  Bruno Haible  <bruno@clisp.org>
74032
74033         Support for lib vs. lib64 distinction on biarch platforms.
74034         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74035         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74037
74038 2005-09-02  Bruno Haible  <bruno@clisp.org>
74039
74040         * gnulib-tool (import): In the other first-use case, provide defaults
74041         as well.
74042
74043 2005-09-02  Bruno Haible  <bruno@clisp.org>
74044
74045         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74046         patches not yet found in the latest gettext release.
74047
74048 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74051         to avoid a collision with bits/local_lim.h in glibc.
74052         All uses changed.  Problem reported by Dmitry V. Levin in
74053         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74054
74055         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74056         bugs in int versus size_t comparisons.
74057         (re_string_context_at): Fix bug where the code assumed that
74058         Idx is signed.
74059
74060         Use bool where appropriate.
74061         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74062         All callers changed.
74063         (calc_eclosure_iter): Likewise, for ROOT arg.
74064         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74065         (build_charclass_op): Likewise, for NON_MATCH arg.
74066         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74067         (re_string_construct_common): Likewise, for ICASE arg.
74068         * lib/regexec.c (re_search_2_stub, re_search_stub):
74069         Likewise, for RET_LEN arg.
74070         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74071         (set_regs): Likewise, for FL_BACKTRACK arg.
74072         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74073         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74074         (calc_eclosure_iter, parse_bracket_exp):
74075         Use bool for internal variables that are booleans.
74076         * lib/regexec.c (re_search_internal, check_matching,
74077         proceed_next_node):
74078         (set_regs, build_sifted_states, sift_states_bkref):
74079         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74080         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74081         (find_collation_sequence_value):
74082         Likewise.
74083         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74084         (re_node_set_compare):
74085         Return bool, not int. All callers changed.
74086         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74087         (build_trtable, check_node_accept): Likewise.
74088         * lib/regex_internal.h: Include stdbool.h.
74089
74090         Fix bugs uncovered when converting to bool.
74091         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74092         failure instead of charging ahead blindly.
74093         * lib/regex_internal.c (register_state): Likewise.
74094         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74095         for freeing internal storage.
74096         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74097         bitset pieces used as boolean, to avoid undefined behavior
74098         on hosts that do int overflow checking.
74099
74100 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74101
74102         * config/srclist.txt: Add glibc bugs 1285-1287.
74103
74104 2005-09-01  Jim Meyering  <jim@meyering.net>
74105
74106         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74107         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74108         Require gl_STAT_MACROS, too.
74109
74110 2005-09-01  Bruno Haible  <bruno@clisp.org>
74111
74112         * gnulib-tool (import): In the first-use case, provide defaults.
74113
74114 2005-09-01  Bruno Haible  <bruno@clisp.org>
74115
74116         * gnulib-tool (func_import): Remove the .tmp files.
74117
74118 2005-09-01  Bruno Haible  <bruno@clisp.org>
74119
74120         * gnulib-tool (func_import): Fix handling of symbolic links.
74121
74122 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74125         old glibc regex code mishandles strings longer than 2**31 bytes.
74126         This patch fixes this when the regex code is used in gnulib
74127         (i.e., outside glibc).
74128
74129         This patch should not affect the use of the regex code inside
74130         glibc.  No doubt this problem also needs to be handled for glibc
74131         as well, but the result will be an incompatible change to the
74132         glibc ABI, and the old ABI will have to be supported too.  That
74133         can be the the subject for another patch.
74134
74135         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74136         governing whether the rest of this patch is active.  By default,
74137         the macro is disabled and the patch has no effect.
74138         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74139         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74140         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74141         (re_match_2, re_set_registers): Use the new types.
74142         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74143         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74144         New macros.
74145         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74146         (re_string_context_at, bin_tree_t, re_dfastate_t):
74147         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74148         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74149         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74150         (re_string_char_size_at, re_string_wchar_at):
74151         (re_string_elem_size_at):
74152         Use the new types and macros to port to 64-bit hosts.
74153         Use unsigned types for internal values, so that the code
74154         mostly works even for arrays larger than SSIZE_MAX.
74155         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74156         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74157         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74158         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74159         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74160         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74161         (calc_inveclosure, parse_dup_op, build_range_exp):
74162         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74163         (fetch_number, create_token_tree, mark_opt_subexp):
74164         Likewise.
74165         * lib/regex_internal.c (re_string_construct_common,
74166         create_ci_newstate):
74167         (create_cd_newstate, re_string_allocate, re_string_construct):
74168         (re_string_realloc_buffers, build_wcs_upper_buffer):
74169         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74170         (re_string_reconstruct, re_string_peek_byte_case):
74171         (re_string_fetch_byte_case, re_string_context_at):
74172         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74173         (re_node_set_init_copy, re_node_set_add_intersect):
74174         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74175         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74176         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74177         (re_acquire_state, re_acquire_state_context, register_state):
74178         Likewise.
74179         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74180         search_cur_bkref_entry):
74181         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74182         (re_search_internal, re_search_2_stub, re_search_stub)
74183         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74184         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74185         (update_cur_sifted_state, check_dst_limits):
74186         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74187         (check_subexp_limits, sift_states_bkref, merge_state_array):
74188         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74189         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74190         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74191         (expand_bkref_cache, check_node_accept_bytes):
74192         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74193         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74194         (acquire_init_state_context, check_halt_node_context):
74195         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74196         (sift_states_backward, clean_state_log_if_needed):
74197         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74198         (find_recover_state, transit_state_sb, transit_state_mb):
74199         (transit_state_bkref, build_trtable, match_ctx_clean):
74200         Likewise.
74201         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74202         to work around an assumption that REG_MISSING is negative.
74203
74204         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74205         (seek_collating_symbol_entry) [defined _LIBC]:
74206         (lookup_collation_sequence_value) [defined _LIBC]:
74207         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74208         Use prototypes rather than old-style function definitions.
74209         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74210         (transit_state_sb) [0]:
74211         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74212
74213         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74214         rm_eo.
74215
74216         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74217         (optimize_subexps, lower_subexp):
74218         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74219         since the signed shift might overflow.  Use 1u<<31 instead.
74220         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74221         Likewise.
74222         * lib/regexec.c (check_dst_limits_calc_pos_1,
74223         check_subexp_matching_top): Likewise.
74224
74225         * lib/regcomp.c (optimize_subexps, lower_subexp):
74226         Use CHAR_BIT rather than 8, for clarity.
74227         * lib/regexec.c (check_dst_limits_calc_pos_1):
74228         (check_subexp_matching_top): Likewise.
74229         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74230         have to worry about portability issues when shifting it left.
74231         Remove no-longer-needed test for table_size > 0.
74232         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74233         in a word, as the resulting behavior is undefined.
74234         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74235         in one case, a <= should have been an <, and in another case the
74236         whole test was missing.
74237         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74238         the standard name CHAR_BIT.
74239         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74240         this is not true on one's complement and signed-magnitude hosts.
74241
74242         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74243         next_last_offset.
74244         (struct re_dfa_t): Remove unused member states_alloc.
74245         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74246
74247 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74250         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74251         and large-file glibc and in 32-bit large-file Solaris.
74252
74253 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74256         lengths fit in regoff_t; this isn't true if regoff_t is the same
74257         width as size_t.
74258         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74259         (= START + RANGE) instead of RANGE.  This avoids overflow
74260         problems when regoff_t is the same width as size_t.
74261         All callers changed.
74262         (re_search_2_stub): Check for overflow when adding the
74263         sizes of the two strings.
74264         (re_search_stub): Check for overflow when adding START
74265         to RANGE; if it occurs, substitute the extreme value.
74266
74267 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74268
74269         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74270
74271 2005-08-31  Jim Meyering  <jim@meyering.net>
74272
74273         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74274         a pointer-to-const.
74275         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74276         (register_state): Likewise.
74277         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74278         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74279         (group_nodes_into_DFAstates): Likewise.
74280
74281 2005-08-31  Jim Meyering  <jim@meyering.net>
74282
74283         * check-module: Add a FIXME comment.
74284
74285 2005-08-31  Eric Blake  <ebb9@byu.net>
74286
74287         * modules/unistd-safer (Files): Add unistd--.h.
74288         * modules/stdio-safer (Files): Add stdio--.h.
74289
74290 2005-08-31  Derek Price  <derek@ximbiot.com>
74291
74292         * lib/getdelim.c (getdelim): Return EOF on EOF.
74293         Reported by Larry Jones <lawrence.jones@ugs.com>.
74294
74295 2005-08-31  Bruno Haible  <bruno@clisp.org>
74296
74297         Avoid unnecessary diffs in the generated lib/Makefile.am.
74298         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74299         the generated files.
74300         (func_import): Don't set cmd.
74301
74302 2005-08-31  Bruno Haible  <bruno@clisp.org>
74303
74304         * lib/strstr.c: Include <stddef.h>, for NULL.
74305         * lib/strcasestr.c: Likewise.
74306         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74307
74308 2005-08-31  Bruno Haible  <bruno@clisp.org>
74309
74310         * gnulib-tool: New option --macro-prefix.
74311         (func_import): Use macro_prefix.
74312         (import): Handle option --macro-prefix.
74313
74314 2005-08-31  Bruno Haible  <bruno@clisp.org>
74315
74316         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74317         Also use new variables cached_lgpl, cached_libtool.
74318
74319 2005-08-31  Bruno Haible  <bruno@clisp.org>
74320
74321         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74322         always instantiating them.
74323
74324 2005-08-31  Bruno Haible  <bruno@clisp.org>
74325
74326         * gnulib-tool (func_import): Read the previous cached settings
74327         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74328         earlier added by gnulib but are now dropped. Warn when a gnulib file
74329         overwrites a non-gnulib file.
74330
74331 2005-08-31  Bruno Haible  <bruno@clisp.org>
74332
74333         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74334         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74335         projects that don't keep autogenerated files in CVS. Put into
74336         actioncmd only the specified modules, not the transitive closure.
74337
74338 2005-08-31  Bruno Haible  <bruno@clisp.org>
74339
74340         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74341         Create directories that shall be filled.
74342         (import): Don't look for gl_* macros in configure.ac. Recurse across
74343         all directories containing a gnulib-cache.m4 files, if meaningful.
74344
74345 2005-08-31  Bruno Haible  <bruno@clisp.org>
74346
74347         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74348         (import): Set seen_libtool when we see gl_LIBTOOL.
74349
74350 2005-08-31  Bruno Haible  <bruno@clisp.org>
74351
74352         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74353         declaration macro definitions from generated gnulib.m4.
74354
74355 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74356
74357         * lib/iconvme.h: Add prototype for iconv_alloc.
74358
74359 2005-08-29  Simon Josefsson  <jas@extundo.com>
74360
74361         * lib/iconvme.c: Fix errno.
74362
74363 2005-08-29  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74366         that it works when the directory contains spaces.
74367
74368 2005-08-29  Bruno Haible  <bruno@clisp.org>
74369
74370         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74371
74372 2005-08-29  Bruno Haible  <bruno@clisp.org>
74373
74374         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74375         Emit more advice.
74376
74377 2005-08-29  Bruno Haible  <bruno@clisp.org>
74378         and Stepan Kasal  <kasal@ucw.cz>
74379
74380         * check-module: If more parameters are given, check each of them
74381         separately; add more exceptions, as noted by Jim Meyering.
74382         (check_module): New procedure.
74383         (%exempt_header): Now contains all exceptions.
74384
74385 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74386
74387         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74388
74389 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74390
74391         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74392
74393 2005-08-28  Bruno Haible  <bruno@clisp.org>
74394
74395         * m4/gnulib-tool.m4: New file.
74396
74397 2005-08-27  Jim Meyering  <jim@meyering.net>
74398
74399         * modules/unistd-safer (Files): Add pipe-safer.c.
74400         * modules/fcntl-safer (Files): Add creat-safer.c.
74401
74402 2005-08-27  Jim Meyering  <jim@meyering.net>
74403
74404         * m4/stdlib-safer.m4: New file.  From coreutils.
74405         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74406         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74407         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74408         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74409         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74410
74411 2005-08-27  Jim Meyering  <jim@meyering.net>
74412
74413         * lib/fopen-safer.c: Merge minor changes from coreutils.
74414         * lib/dup-safer.c: Likewise.
74415         * lib/fd-safer.c: Likewise.
74416
74417         Merge from coreutils.
74418         * lib/stdio--.h: New file.
74419         * lib/stdlib--.h: New file.
74420         * lib/mkstemp-safer.c: New file.
74421
74422         GNU tar needs these.
74423         * lib/pipe-safer.c: New file.
74424         * lib/creat-safer.c: New file.
74425         * lib/fcntl--.h (creat): Define to creat_safer.
74426         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74427         * lib/unistd--.h (pipe): Define to pipe_safer.
74428         * lib/unistd-safer.h: Declare pipe_safer.
74429
74430 2005-08-26  Simon Josefsson  <jas@extundo.com>
74431
74432         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74433         Haible <bruno@clisp.org>.
74434
74435 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * lib/regex_internal.h: Remove all references to
74438         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74439         or better.
74440         (bitset_not, bitset_merge, bitset_not_merge):
74441         (bitset_mask, re_string_allocate, re_string_construct):
74442         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74443         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74444         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74445         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74446         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74447         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74448         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74449         (re_acquire_state_context):
74450         Remove unnecessary forward decls.
74451         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74452         Put __attribute at function definition,
74453         now that the function decl has been removed.
74454         * lib/regex_internal.c (re_string_peek_byte_case):
74455         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74456         Likewise.
74457
74458 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74459
74460         * m4/regex.m4: Add AC_PREREQ(2.50).
74461         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74462
74463 2005-08-25  Simon Josefsson  <jas@extundo.com>
74464
74465         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74466         __fsetlocking.
74467
74468 2005-08-25  Simon Josefsson  <jas@extundo.com>
74469
74470         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74471         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74472         GLIBC specific code.
74473
74474 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         Make regex safe for g++.  This fixes one real bug (an "err"
74477         that should have been "*err").  g++ problem reported by
74478         Sam Steingold.
74479         * lib/regex_internal.h (re_calloc): New macro, consistent with
74480         re_malloc etc.  All callers of calloc changed to use re_calloc.
74481         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74482         not int.  All callers changed.
74483         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74484         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74485         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74486         (find_recover_state): Change "err" to "*err"; this fixes what
74487         appears to be a real bug.
74488         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74489         versus int.
74490
74491 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * modules/regex (Depends-on): Add malloc, since the code
74494         assumes that !malloc(0) means failure.
74495
74496 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74499
74500         alloca modernization/simplification for regex.
74501         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74502         needs to be at the start of the file, and can be moved into
74503         regex_internal.h and simplified.
74504         * lib/regex_internal.h: Include <alloca.h>.
74505         (__libc_use_alloca) [!defined _LIBC]: New macro.
74506         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74507         now works outside glibc.
74508
74509 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * config/srclist.txt: Add glibc bugs 1241, 1245.
74512
74513 2005-08-25  Jim Meyering  <jim@meyering.net>
74514
74515         * lib/open-safer.c: Include <config.h>.
74516         Otherwise, we'd lose LARGEFILE support in any file using
74517         e.g. "fcntl--.h"
74518
74519 2005-08-25  Bruno Haible  <bruno@clisp.org>
74520
74521         * m4/minmax.m4: Require autoconf 2.52.
74522         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74523         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74524         alternatives of translit over the alphabet.
74525         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74526
74527 2005-08-24  Simon Josefsson  <jas@extundo.com>
74528
74529         * tests/test-getpass.c: New file.
74530
74531 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74534         for GNU regex features.
74535
74536 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74539         * lib/regex.h (regerror): Likewise.
74540
74541         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74542         requires this.  (The code never needed it.)
74543
74544         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74545         All uses of recently-renamed identifiers changed to use the new,
74546         POSIX-compliant names.  The code will build and run just fine
74547         without these changes, but it's better to eat our own dog food
74548         and use the standard-conforming names.
74549
74550         * lib/regex.h: Fix a multitude of POSIX name space violations.
74551         These changes have an effect only for programs that define
74552         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74553         do not change anything for programs compiled in the normal way.
74554         Also, there is no effect on the ABI.
74555
74556         (_REGEX_SOURCE): New macro.
74557         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74558         defined and _GNU_SOURCE is not; this fixes a name space violation.
74559
74560         Rename the following macros to obey POSIX requirements.
74561         The old names are still visible as macros if _REGEX_SOURCE is defined.
74562         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74563         RE_BACKSLASH_ESCAPE_IN_LISTS.
74564         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74565         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74566         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74567         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74568         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74569         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74570         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74571         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74572         (REG_INTERVALS): renamed from RE_INTERVALS.
74573         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74574         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74575         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74576         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74577         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74578         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74579         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74580         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74581         RE_UNMATCHED_RIGHT_PAREN_ORD.
74582         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74583         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74584         (REG_DEBUG): renamed from RE_DEBUG.
74585         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74586         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74587         unusual, since we can't clash with the POSIX REG_ICASE.
74588         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74589         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74590         (REG_NO_SUB): renamed from RE_NO_SUB.
74591         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74592         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74593         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74594         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74595         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74596         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74597         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74598         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74599         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74600         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74601         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74602         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74603         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74604         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74605         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74606         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74607         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74608         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74609         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74610         (REG_FIXED): Renamed from REGS_FIXED.
74611         (REG_NREGS): Renamed from RE_NREGS.
74612
74613         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74614         of other REG_* macros, since POSIX says the user is allowed to
74615         #undef these macros selectively.
74616
74617         (reg_errcode_t): Update comment stating what other tables need
74618         to be consistent.
74619
74620         Rename the following enum values to obey POSIX requirements.
74621         The old names are still visible as macros.
74622         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74623         is not defined, since GNU is supposed to be a superset of POSIX as
74624         much as possible, and since we want reg_errcode_t to be a signed
74625         type for implementation consistency.
74626         (_REG_NOERROR): Renamed from REG_NOERROR.
74627         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74628         (_REG_BADPAT): Renamed from REG_BADPAT.
74629         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74630         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74631         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74632         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74633         (_REG_EBRACK): Renamed from REG_EBRACK.
74634         (_REG_EPAREN): Renamed from REG_EPAREN.
74635         (_REG_EBRACE): Renamed from REG_EBRACE.
74636         (_REG_BADBR): Renamed from REG_BADBR.
74637         (_REG_ERANGE): Renamed from REG_ERANGE.
74638         (_REG_ESPACE): Renamed from REG_ESPACE.
74639         (_REG_BADRPT): Renamed from REG_BADRPT.
74640         (_REG_EEND): Renamed from REG_EEND.
74641         (_REG_ESIZE): Renamed from REG_ESIZE.
74642         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74643         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74644         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74645         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74646         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74647
74648         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74649         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74650         changed.  But support the old name if the new one is not defined
74651         and if _REGEX_SOURCE.
74652
74653         Change the following member names in struct re_pattern_buffer.
74654         The old names are still supported if !_REGEX_SOURCE.
74655         The new names are always supported, regardless of _REGEX_SOURCE.
74656         (re_buffer): Renamed from buffer.
74657         (re_allocated): Renamed from allocated.
74658         (re_used): Renamed from used.
74659         (re_syntax): Renamed from syntax.
74660         (re_fastmap): Renamed from fastmap.
74661         (re_translate): Renamed from translate.
74662         (re_can_be_null): Renamed from can_be_null.
74663         (re_regs_allocated): Renamed from regs_allocated.
74664         (re_fastmap_accurate): Renamed from fastmap_accurate.
74665         (re_no_sub): Renamed from no_sub.
74666         (re_not_bol): Renamed from not_bol.
74667         (re_not_eol): Renamed from not_eol.
74668         (re_newline_anchor): Renamed from newline_anchor.
74669
74670         Change the following member names in struct re_registers.
74671         The old names are still supported if !_REGEX_SOURCE.
74672         The new names are always supported, regardless of _REGEX_SOURCE.
74673         (rm_num_regs): Renamed from num_regs.
74674         (rm_start): Renamed from start.
74675         (rm_end): Renamed from end.
74676
74677         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74678         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74679         Prepend __ to parameter names.
74680
74681         Undo yesterday's changes.
74682
74683 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74686         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74687         lib/regex.c.
74688
74689 2005-08-24  Jim Meyering  <jim@meyering.net>
74690
74691         Sync from coreutils.
74692         * m4/fcntl-safer.m4: New file.
74693
74694         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74695         and object files for this module.
74696
74697 2005-08-24  Jim Meyering  <jim@meyering.net>
74698
74699         Sync from coreutils.
74700         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74701
74702 2005-08-24  Jim Meyering  <jim@meyering.net>
74703
74704         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74705         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74706
74707 2005-08-24  Jim Meyering  <jim@meyering.net>
74708
74709         * modules/fcntl-safer: New module.
74710         * modules/fts (Depends-on): Add fcntl-safer.
74711         * MODULES.html.sh (File descriptor based Input/Output):
74712         Add fcntl-safer.
74713
74714 2005-08-24  Bruno Haible  <bruno@clisp.org>
74715
74716         Support for unit test modules.
74717         * modules/README: Mention tests modules.
74718         * modules/TEMPLATE-TESTS: New file.
74719         * gnulib-tool: New options --extract-tests-module, --with-tests and
74720         --tests-base (unused for the moment).
74721         (testsbase, inctests): New variables.
74722         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74723         (func_verify_module): Exclude TEMPLATE-TESTS.
74724         (func_verify_nontests_module, func_verify_tests_module): New functions.
74725         (func_get_dependencies): Add implicit dependency for tests modules.
74726         (func_get_tests_module): New function.
74727         (func_modules_transitive_closure): When --with-tests was specified,
74728         include the unit tests as well, unless explicitly avoided.
74729         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74730         (func_emit_tests_Makefile_am): New function.
74731         (func_create_testdir): When --with-tests was specified, emit a
74732         tests/ directory.
74733         * MODULES.html.sh (Future developments): Update.
74734
74735 2005-08-24  Bruno Haible  <bruno@clisp.org>
74736
74737         * modules/tls-tests: New file.
74738         * tests/test-tls.c: New file, from GNU gettext.
74739
74740 2005-08-24  Bruno Haible  <bruno@clisp.org>
74741
74742         * modules/lock-tests: New file.
74743         * tests/test-lock.c: New file, from GNU gettext.
74744
74745 2005-08-24  Bruno Haible  <bruno@clisp.org>
74746
74747         * lib/lock.h: Add multiple inclusion guard.
74748         * lib/tls.h: Add multiple inclusion guard.
74749
74750 2005-08-24  Bruno Haible  <bruno@clisp.org>
74751
74752         * gnulib-tool: Add support for the --aux-dir option to
74753         --create-testdir, --create-megatestdir, --test, --megatest.
74754         (func_create_testdir, func_create_megatestdir): Optionally emit a
74755         AC_CONFIG_AUX_DIR directive.
74756         (create-testdir, create-megatestdir, test, megatest): Provide a
74757         default value for $auxdir.
74758
74759 2005-08-24  Bruno Haible  <bruno@clisp.org>
74760
74761         * gnulib-tool (import): Use compound statement instead of subshell
74762         where possible.
74763
74764 2005-08-24  Bruno Haible  <bruno@clisp.org>
74765
74766         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74767
74768 2005-08-24  Bruno Haible  <bruno@clisp.org>
74769
74770         * gnulib-tool (func_version): Update.
74771
74772 2005-08-24  Bruno Haible  <bruno@clisp.org>
74773
74774         * gnulib-tool (func_import, func_create_testdir,
74775         func_create_megatestdir): Quote all autoconf macro arguments.
74776
74777 2005-08-24  Bruno Haible  <bruno@clisp.org>
74778
74779         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74780         option --force, because --force causes the aclocal.m4 of each
74781         subdirectory to be newer than the corresponding config.h.in.
74782
74783 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74786         All contents moved to gl_REGEX.
74787         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74788         assume that it does.
74789
74790 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         * lib/regex.h (REG_NOSYS)
74793         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74794         Define, since POSIX requires it as of 2001.
74795         (_REG_ENOSYS)
74796         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74797         New private symbol, used to keep the enum signed in all cases.
74798         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74799         Youngman in
74800         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74801
74802         * lib/regex_internal.c (re_string_skip_chars, register_state):
74803         (calc_state_hash):
74804         Remove forward decls; no longer needed now that we use prototypes.
74805         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74806         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74807         (clean_state_log_if_needed): Likewise.
74808
74809 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * config/srclist.txt: Add glibc bugs 1231-1233.
74812
74813 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         Fix problems reported by Sam Steingold in
74816         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74817         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74818         assumed that reg_errcode_t is a signed type, which is not
74819         necessarily true if _XOPEN_SOURCE is not defined.
74820         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74821         since some compilers warn about it otherwise.
74822
74823 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74826         (init_word_char, create_initial_state, duplicate_node_closure):
74827         (fetch_token, peek_token_bracket, build_range_exp):
74828         (build_collating_symbol): Remove forward decls; no longer needed
74829         now that we use prototypes.
74830
74831         * lib/regcomp.c:
74832         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74833         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74834         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74835         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74836         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74837         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74838         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74839         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74840         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74841         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74842         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74843         (build_charclass, build_charclass_op, fetch_number, create_tree):
74844         (create_token_tree, mark_opt_subexp, duplicate_tree):
74845         Use prototypes rather than old-style definitions.
74846
74847         * lib/regex_internal.c:
74848         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74849         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74850         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74851         (re_string_reconstruct, re_string_peek_byte_case):
74852         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74853         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74854         (re_node_set_init_copy, re_node_set_add_intersect):
74855         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74856         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74857         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74858         (re_acquire_state, re_acquire_state_context, register_state):
74859         (create_ci_newstate, create_cd_newstate, free_state):
74860         Likewise.
74861         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74862         re_search_2):
74863         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74864         (re_search_internal, prune_impossible_nodes):
74865         (acquire_init_state_context, check_matching, static):
74866         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74867         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74868         (update_regs, sift_states_backward, build_sifted_states):
74869         (clean_state_log_if_needed, merge_state_array):
74870         (update_cur_sifted_state, add_epsilon_src_nodes):
74871         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74872         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74873         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74874         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74875         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74876         (check_arrival, check_arrival_add_next_nodes):
74877         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74878         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74879         (check_node_accept_bytes, check_node_accept, extend_buffers):
74880         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74881         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74882         (sift_ctx_init):
74883         Likewise.
74884
74885         * lib/regex_internal.h:
74886         (re_string_allocate, re_string_construct, re_string_reconstruct):
74887         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74888         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74889         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74890         (re_string_context_at, re_string_peek_byte_case):
74891         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74892         is defined, since we now use prototypes always.
74893
74894         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74895         C89 or better.  All uses removed.
74896
74897 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * config/srclist.txt: Add glibc bugs 1220-1227.
74900
74901 2005-08-20  Jim Meyering  <jim@meyering.net>
74902
74903         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74904         of unused local, dfa.
74905
74906 2005-08-20  Bruno Haible  <bruno@clisp.org>
74907
74908         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74909
74910 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74911
74912         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74913         (re_node_set_insert_last, re_dfa_add_node):
74914         Rename local variables to avoid GCC shadowing warnings.
74915
74916 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74919         [defined lint]: Suppress bogus uninitialized-variable warnings.
74920
74921         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74922         and let the caller return REG_ESPACE if out of space.  This
74923         removes an uninitialied-variable warning with GCC 4.0.1, and also
74924         avoids taking the address of a local variable.  All callers
74925         changed.
74926
74927 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74928
74929         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74930         $LIBCSRC/posix/regexec.c.
74931         Add glibc bug 1217 for regcomp.c.
74932
74933 2005-08-19  Jim Meyering  <jim@meyering.net>
74934
74935         * lib/regexec.c (proceed_next_node): Redo local variables to
74936         avoid GCC shadowing warnings.
74937
74938 2005-08-18  Bruno Haible  <bruno@clisp.org>
74939
74940         * lib/strstr.c (strstr): Fix return value in multibyte case.
74941         * lib/strcasestr.c (strcasestr): Likewise.
74942
74943 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74944
74945         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74946
74947 2005-08-17  Jim Meyering  <jim@meyering.net>
74948
74949         Make the %s format (seconds since the epoch) work for a negative
74950         number and when used with a zero-padded field width, e.g. %015s.
74951
74952         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74953         label so that it precedes the code to set `digits'.  Otherwise,
74954         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74955         print `00-22'.  Now, it prints `-0022', as it should.
74956
74957 2005-08-17  Bruno Haible  <bruno@clisp.org>
74958
74959         * modules/strstr (Files): Add m4/mbrtowc.m4.
74960         (Depends-on): Add mbuiter.
74961
74962 2005-08-17  Bruno Haible  <bruno@clisp.org>
74963
74964         * modules/strcasestr: New file.
74965         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74966         strcasestr.
74967
74968 2005-08-17  Bruno Haible  <bruno@clisp.org>
74969
74970         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74971
74972 2005-08-17  Bruno Haible  <bruno@clisp.org>
74973
74974         * modules/mbuiter: New file.
74975         * MODULES.html.sh (Extended multibyte and wide character utilities):
74976         Add mbuiter.
74977
74978 2005-08-17  Bruno Haible  <bruno@clisp.org>
74979
74980         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74981         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74982
74983 2005-08-17  Bruno Haible  <bruno@clisp.org>
74984
74985         * m4/strcasestr.m4: New file.
74986
74987 2005-08-17  Bruno Haible  <bruno@clisp.org>
74988
74989         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74990         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74991
74992 2005-08-17  Bruno Haible  <bruno@clisp.org>
74993
74994         * lib/strcasestr.h: New file.
74995         * lib/strcasestr.c: New file.
74996
74997 2005-08-17  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/strcasecmp.c: Use mbuiter.h.
75000
75001 2005-08-17  Bruno Haible  <bruno@clisp.org>
75002
75003         * lib/mbuiter.h: New file.
75004
75005 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75008         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75009         and gl_GETOPT are both invoked via different paths (as happens
75010         with GNU tar CVS because it uses both argp and getopt), the former
75011         wins.
75012
75013 2005-08-16  Bruno Haible  <bruno@clisp.org>
75014
75015         * modules/tls: New file.
75016         * MODULES.html.sh (Multithreading): Add tls.
75017
75018 2005-08-16  Bruno Haible  <bruno@clisp.org>
75019
75020         * modules/strnlen1: New file.
75021         * MODULES.html.sh (String handling): Add strnlen1.
75022
75023 2005-08-16  Bruno Haible  <bruno@clisp.org>
75024
75025         * modules/strcase (Files): Add m4/mbrtowc.m4.
75026         (Depends-on): Add strnlen1, mbchar.
75027
75028 2005-08-16  Bruno Haible  <bruno@clisp.org>
75029
75030         * modules/mbiter: New file.
75031         * MODULES.html.sh (Extended multibyte and wide character utilities):
75032         Add mbiter.
75033
75034 2005-08-16  Bruno Haible  <bruno@clisp.org>
75035
75036         * modules/mbfile: New file.
75037         * MODULES.html.sh (Extended multibyte and wide character utilities):
75038         Add mbfile.
75039
75040 2005-08-16  Bruno Haible  <bruno@clisp.org>
75041
75042         * modules/mbchar: New file.
75043         * MODULES.html.sh (Extended multibyte and wide character utilities):
75044         New section.
75045
75046 2005-08-16  Bruno Haible  <bruno@clisp.org>
75047
75048         * m4/tls.m4: New file, from GNU gettext.
75049
75050 2005-08-16  Bruno Haible  <bruno@clisp.org>
75051
75052         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75053         always.
75054         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75055
75056 2005-08-16  Bruno Haible  <bruno@clisp.org>
75057
75058         * m4/mbiter.m4: New file.
75059
75060 2005-08-16  Bruno Haible  <bruno@clisp.org>
75061
75062         * m4/mbfile.m4: New file.
75063
75064 2005-08-16  Bruno Haible  <bruno@clisp.org>
75065
75066         * m4/mbchar.m4: New file.
75067
75068 2005-08-16  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/tls.h: New file, from GNU gettext.
75071         * lib/tls.c: New file, from GNU gettext.
75072
75073 2005-08-16  Bruno Haible  <bruno@clisp.org>
75074
75075         * lib/strnlen1.h: New file.
75076         * lib/strnlen1.c: New file.
75077
75078 2005-08-16  Bruno Haible  <bruno@clisp.org>
75079
75080         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75081         (mbi_init): Update.
75082         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75083         NUL byte, not after it.
75084
75085 2005-08-16  Bruno Haible  <bruno@clisp.org>
75086
75087         * lib/strcase.h (strcasecmp): Add note in comments.
75088         * lib/strncasecmp.c: Use code from strcasecmp.c.
75089         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75090         (strcasecmp): Work correctly in multibyte locales.
75091
75092 2005-08-16  Bruno Haible  <bruno@clisp.org>
75093
75094         * lib/mbiter.h: New file.
75095
75096 2005-08-16  Bruno Haible  <bruno@clisp.org>
75097
75098         * lib/mbfile.h: New file.
75099
75100 2005-08-16  Bruno Haible  <bruno@clisp.org>
75101
75102         * lib/mbchar.h: New file.
75103         * lib/mbchar.c: New file.
75104
75105 2005-08-16  Bruno Haible  <bruno@clisp.org>
75106
75107         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75108         the valid ones. Makes the comparison operations transitive:
75109         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75110         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75111
75112 2005-08-15  Simon Josefsson  <jas@extundo.com>
75113
75114         * modules/ssize_t (License): Change to 'unlimited'.
75115
75116         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75117
75118 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75121         Add comments for each pending glibc patch.
75122
75123 2005-08-15  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75126         __cplusplus is defined.
75127
75128 2005-08-14  Jim Meyering  <jim@meyering.net>
75129
75130         Sync from coreutils.
75131
75132         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75133         Use the hash-table-based cycle-detection code not just when
75134         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75135         Reported by James Youngman in
75136         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75137         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75138         FTS_TIGHT_CYCLE_CHECK.
75139         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75140         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75141         once again.
75142         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75143         * lib/fts.c (fd_safer): Remove decl.
75144         Include fcntl--.h rather than unistd-safer.h
75145         (fts_safe_changedir): Don't call fd_safer; no longer needed
75146         now that we include fcntl--.h.
75147
75148 2005-08-12  Simon Josefsson  <jas@extundo.com>
75149
75150         * modules/getndelim2: Use ssize_t module.
75151         * modules/getnline: Likewise.
75152         * modules/safe-read: Likewise.
75153         * modules/xreadlink: Likewise.
75154
75155         * modules/ssize_t: New file.
75156
75157 2005-08-12  Simon Josefsson  <jas@extundo.com>
75158
75159         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75160
75161 2005-08-12  Simon Josefsson  <jas@extundo.com>
75162
75163         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75164         ssize_t.
75165
75166 2005-08-12  Simon Josefsson  <jas@extundo.com>
75167
75168         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75169         readline, getdelim and check_version.
75170         (Support for systems lacking ISO C 99: Sizes of integer types):
75171         Add size_max.
75172
75173 2005-08-12  Bruno Haible  <bruno@clisp.org>
75174
75175         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75176
75177 2005-08-11  Simon Josefsson  <jas@extundo.com>
75178
75179         * modules/readline: New file.
75180
75181         * modules/strnlen (Files): Add strnlen.h.
75182
75183 2005-08-11  Simon Josefsson  <jas@extundo.com>
75184
75185         * m4/readline.m4: New file.
75186
75187 2005-08-11  Simon Josefsson  <jas@extundo.com>
75188
75189         * lib/readline.h, readline.c: New file.
75190
75191 2005-08-11  Simon Josefsson  <jas@extundo.com>
75192
75193         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75194         gl_AVOID.
75195
75196 2005-08-11  Bruno Haible  <bruno@clisp.org>
75197
75198         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75199
75200 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75201
75202         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75203
75204 2005-08-10  Simon Josefsson  <jas@extundo.com>
75205
75206         * tests/test-iconvme.c: New file.
75207
75208 2005-08-10  Simon Josefsson  <jas@extundo.com>
75209
75210         * m4/strnlen.m4: New file.
75211
75212         * m4/strndup.m4: Don't check for strnlen declaration, done in
75213         strnlen.m4.
75214
75215 2005-08-10  Simon Josefsson  <jas@extundo.com>
75216
75217         * lib/strndup.c: Use strnlen.h.
75218
75219         * lib/strnlen.h: New file.
75220
75221 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75222
75223         * README: Typos.
75224
75225 2005-08-02  Simon Josefsson  <jas@extundo.com>
75226
75227         * modules/readline: New file.
75228
75229 2005-08-02  Simon Josefsson  <jas@extundo.com>
75230
75231         * modules/getdelim: New file.
75232
75233         * modules/getline: Rewrite, don't use getndelim2.
75234
75235 2005-08-02  Simon Josefsson  <jas@extundo.com>
75236
75237         * m4/getline.m4: Separate out getdelim stuff into separate module.
75238
75239         * m4/getdelim.m4: New file.
75240
75241 2005-08-02  Simon Josefsson  <jas@extundo.com>
75242
75243         * lib/getline.h, getline.c: Rewrite.
75244
75245         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75246
75247 2005-07-31  Bruno Haible  <bruno@clisp.org>
75248
75249         * lib/lock.h (gl_lock_initializer): New macro.
75250         (gl_lock_define_initialized): Use it.
75251         (gl_rwlock_initializer): New macro.
75252         (gl_rwlock_define_initialized): Use it.
75253         (gl_recursive_lock_initializer): New macro.
75254         (gl_recursive_lock_define_initialized): Use it.
75255
75256 2005-07-30  Karl Berry  <karl@gnu.org>
75257
75258         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75259         Report from Ben Pfaff, regarding getopt.
75260
75261 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75262
75263         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75264         normal way.
75265         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75266         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75267         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75268         (gl_GETOPT): Use the new macros.  Most of the implementation
75269         is moved to the new macros.  This is for programs like Emacs
75270         that don't want all the functionality of gl_GETOPT.
75271
75272 2005-07-26  Bruno Haible  <bruno@clisp.org>
75273
75274         * m4/lock.m4: Update from GNU gettext.
75275
75276 2005-07-26  Bruno Haible  <bruno@clisp.org>
75277
75278         * lib/lock.h: Update from GNU gettext.
75279         * lib/lock.c: Update from GNU gettext.
75280
75281 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75284         obsolescent AC_TRY_RUN.  Include the default includes files, for
75285         'exit'.
75286
75287 2005-07-24  Bruno Haible  <bruno@clisp.org>
75288
75289         * modules/visibility: New file.
75290         * MODULES.html.sh (Misc): Add visibility.
75291
75292 2005-07-24  Bruno Haible  <bruno@clisp.org>
75293
75294         * m4/visibility.m4: New file.
75295
75296 2005-07-24  Bruno Haible  <bruno@clisp.org>
75297
75298         * doc/visibility.texi: New file.
75299
75300 2005-07-22  Bruno Haible  <bruno@clisp.org>
75301
75302         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75303         $(ALLOCA_H), redundant through BUILT_SOURCES.
75304         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75305         redundant through BUILT_SOURCES.
75306         * modules/byteswap (Makefile.am): Remove explicit dependency on
75307         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75308         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75309         $(FNMATCH_H), redundant through BUILT_SOURCES.
75310         * modules/getopt (Makefile.am): Remove explicit dependency on
75311         $(GETOPT_H), redundant through BUILT_SOURCES.
75312         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75313         redundant through BUILT_SOURCES.
75314         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75315         redundant through BUILT_SOURCES.
75316         * modules/stdbool (Makefile.am): Remove explicit dependency on
75317         $(STDBOOL_H), redundant through BUILT_SOURCES.
75318         * modules/stdint (Makefile.am): Remove explicit dependency on
75319         $(STDINT_H), redundant through BUILT_SOURCES.
75320         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75321         Remove explicit dependency on $(SYSEXITS_H).
75322         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75323
75324 2005-07-18  Simon Josefsson  <jas@extundo.com>
75325
75326         * lib/check-version.c (check_version): Accept identical versions too.
75327
75328 2005-07-18  Bruno Haible  <bruno@clisp.org>
75329
75330         * modules/lock: New file.
75331         * MODULES.html.sh (Multithreading): New section.
75332
75333 2005-07-18  Bruno Haible  <bruno@clisp.org>
75334
75335         * m4/lock.m4: New file, from GNU gettext.
75336
75337 2005-07-18  Bruno Haible  <bruno@clisp.org>
75338
75339         * lib/lock.h: New file, from GNU gettext.
75340         * lib/lock.c: New file, from GNU gettext.
75341
75342 2005-07-18  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/lock.h (gl_once_t): New type.
75345         (gl_once_define, gl_once): New macros.
75346         * lib/lock.c (fresh_once): New variable.
75347         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75348         functions.
75349
75350 2005-07-16  Simon Josefsson  <jas@extundo.com>
75351
75352         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75353         workaround, suggested by Bruno.
75354
75355 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         * modules/xalloc (Depends-on): Add xalloc-die.
75358         * modules/xvasprintf (Depends-on): Add xalloc-die.
75359
75360 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75363         with a minor change.
75364
75365 2005-07-15  Bruno Haible  <bruno@clisp.org>
75366
75367         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75368         When using lib/poll.c, define poll as rpl_poll.
75369
75370 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         * modules/argp (Depends-on): Remove unlocked-io.
75373
75374 2005-07-14  Derek Price  <derek@ximbiot.com>
75375
75376         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75377         for glob symlink bug.
75378
75379 2005-07-14  Bruno Haible  <bruno@clisp.org>
75380
75381         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75382         Instead, test for *_unlocked function declarations directly.
75383
75384 2005-07-11  Simon Josefsson  <jas@extundo.com>
75385
75386         * modules/size_max: New file.
75387
75388         * modules/xsize: Depend on size_max module for size_max.m4.
75389
75390 2005-07-11  Simon Josefsson  <jas@extundo.com>
75391
75392         * lib/size_max.h: New file.
75393
75394 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75397         copyright symbol and the year.
75398         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75399         (version_etc_va): Use parameterized copyright notice.
75400         Reword to conform to the current GNU coding standards.
75401
75402 2005-07-11  Karl Berry  <karl@gnu.org>
75403
75404         * doc/gnulib.texi (Quoting): new node.
75405         (Initial import): more info, from Patrice.
75406
75407 2005-07-11  Bruno Haible  <bruno@clisp.org>
75408
75409         * gnulib-tool (func_usage): Document option --avoid.
75410         (Command line options): Handle --avoid.
75411         (func_acceptable): New function.
75412         (func_modules_transitive_closure): Use it.
75413
75414 2005-07-11  Bruno Haible  <bruno@clisp.org>
75415
75416         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75417         Reported by Jim Meyering.
75418
75419 2005-07-10  Bruno Haible  <bruno@clisp.org>
75420
75421         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75422         Needed when size_t is smaller than 'unsigned int'.
75423         Reported by Paul Eggert.
75424
75425 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75426
75427         * modules/argp (Depends-on): Add unlocked-io
75428
75429 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75430
75431         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75432         block of defines.
75433
75434 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75437         fix now.
75438
75439 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75440         and Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75443         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75444
75445 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         * modules/regex (Files): Add lib/regex_internal.c,
75448         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75449         (Depends-on): Add extensions.
75450         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75451
75452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75455         pathconf.
75456         * m4/same.m4 (gl_SAME): Likewise.
75457         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75458
75459         * m4/regex.m4: Adjust to new libc regex implementation.
75460         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75461         all the .c and .h parts of (the new) regex.
75462         Quote the m4 stuff better.
75463         Check for RE_ICASE bug of old gnulib.
75464         Check for REG_STARTEND of recent libc.
75465         Rename local variables from jm_* to gl_*.
75466         Quote operand of "test -f".
75467         Say "recent enough" version of libc, not "version 2".
75468         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75469         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75470         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75471         Remove check for btowc, isascii.
75472         Require AM_LANGINFO_CODESET.
75473
75474 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * lib/regex.c, regex.h: Sync from libc.
75477         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75478         * lib/regexec.c:
75479         New files, synced from libc, except that regex_internal.h
75480         currently has a small porting fix.
75481
75482 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75485         regex_internal.c, regexec.c.
75486         Add regex_internal.h too, but as a comment, since the libc version
75487         is currently broken in gnulib mode.
75488
75489 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         Support programs like Emacs that use gnulib but not gettext.
75492         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75493         * modules/gettext-h: New file.
75494         * modules/gettext (Files): Remove lib/gettext.h.
75495         (Depends-on): Add gettext-h.
75496         (Makefile.am): Remove lib_SOURCES.
75497         * modules/argmatch, modules/c-stack, modules/closeout:
75498         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75499         * modules/execute, modules/file-type, modules/getaddrinfo:
75500         * modules/getopt, modules/human, modules/javacomp:
75501         * modules/javaexec, modules/mkdir-p, modules/obstack:
75502         * modules/openat, modules/pagealign_alloc, modules/pipe:
75503         * modules/quotearg, modules/regex, modules/rpmatch:
75504         * modules/unicodeio, modules/userspec, modules/version-etc:
75505         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75506         * modules/xsetenv:
75507         Depend on gettext-h, not gettext.
75508
75509 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75510
75511         * gnulib-tool (func_import): Add support for 'public domain' license.
75512         * modules/alloca, modules/atexit, modules/memmove:
75513         Now public domain, not GPL.
75514         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75515         * modules/realloc, modules/strerror, modules/strtod:
75516         Now LGPL, not GPL.
75517
75518 2005-07-05  Bruno Haible  <bruno@clisp.org>
75519
75520         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75521         autoconf CVS. Needed for mingw.
75522
75523 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75524
75525         Remove the dependency of the strftime module on the tzset module.
75526         * modules/strftime (Depends-on): Remove dependency on tzset.
75527
75528 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         Remove the dependency of the strftime module on the tzset module.
75531         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75532         gl_FUNC_TZSET_CLOBBER.
75533
75534 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         Remove the dependency of the strftime module on the tzset module.
75537         * lib/strftime.c (my_strftime)
75538         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75539         Copy the input structure, to work around some of the bug with
75540         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75541         Solaris releases, you should also use the tzset module, but we won't
75542         require it as a dependency any more since we don't want LGPLed code
75543         to depend on GPLed code.
75544
75545 2005-07-02  Jim Meyering  <jim@meyering.net>
75546
75547         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75548         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75549         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75550         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75551
75552 2005-07-02  Jim Meyering  <jim@meyering.net>
75553
75554         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75555
75556 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75559         declares only 'struct timespec;' (!).
75560
75561 2005-07-01  Jim Meyering  <jim@meyering.net>
75562
75563         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75564         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75565         * lib/save-cwd.c, tempname.c:
75566         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75567         and don't include <sys/file.h>).
75568
75569 2005-06-29  Jim Meyering  <jim@meyering.net>
75570
75571         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75572         type name.  Use the variable name instead.
75573         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75574         Likewise.
75575
75576 2005-06-28  Simon Josefsson  <jas@extundo.com>
75577
75578         * modules/check-version (Files): Add check-version.m4.
75579
75580 2005-06-28  Simon Josefsson  <jas@extundo.com>
75581
75582         * m4/check-version.m4: New file, suggested by Jim Meyering
75583         <jim@meyering.net>.
75584
75585 2005-06-28  Simon Josefsson  <jas@extundo.com>
75586
75587         * lib/check-version.h, lib/check-version.c: New files.
75588
75589 2005-06-28  Simon Josefsson  <jas@extundo.com>
75590
75591         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75592         collision with global variable.  Better indentation.  Don't
75593         increment buffer pointer beyond buffer end.  Based on comments
75594         from Paul Eggert <eggert@cs.ucla.edu>.
75595
75596         * lib/base64.h: Indent.
75597
75598 2005-06-28  Simon Josefsson  <jas@extundo.com>
75599
75600         * doc/gnulib.texi (Library version handling): New section.
75601
75602 2005-06-28  Jim Meyering  <jim@meyering.net>
75603
75604         * check-module (find_included_lib_files): Hard-code another
75605         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75606         but modules/fts-lgpl (correctly) does not list those files.
75607
75608         * modules/canonicalize (Files): Add lib/pathmax.h.
75609
75610 2005-06-25  Simon Josefsson  <jas@extundo.com>
75611
75612         * modules/check-version: New file.
75613
75614 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75617         initializer of struct addrinfo, as an indication that we don't
75618         care how many members the structure has.
75619
75620 2005-06-24  Derek Price  <derek@ximbiot.com>
75621         and Bruno Haible  <bruno@clisp.org>
75622
75623         Remove stat module & update lstat.
75624         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75625         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75626         * m4/stat.m4: Remove this file.
75627
75628 2005-06-24  Derek Price  <derek@ximbiot.com>
75629         and Bruno Haible  <bruno@clisp.org>
75630
75631         Remove stat module & update lstat.
75632         * lib/stat.c: Remove this file...
75633         (slash_aware_lstat): ...moving this content and its support...
75634         * lib/lstat.c (rpl_lstat): ...into here.
75635         * lib/lstat.h: New file.
75636
75637 2005-06-24  Derek Price  <derek@ximbiot.com>
75638         and Bruno Haible  <bruno@clisp.org>
75639
75640         Remove stat module & update lstat.
75641         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
75648         * MODULES.html: Regenerated.
75649         * modules/lstat (Description): Correct function name.
75650         (Files): Add "lstat.h".
75651         (Depends-on): Remove stat, add xalloc, stat-macros.
75652         * modules/stat: Remove this file.
75653         (Include): Add "lstat.h", remove <sys/stat.h>.
75654
75655 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75656
75657         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75658         (ranged_convert): Don't save conversion in a temporary struct.
75659         This causes a warning with GCC 4.0.0, and anyway in the typical
75660         case it's not worth the extra 100 bytes or so of code.
75661         (ranged_convert, __mktime_internal): When calling a function via a
75662         pointer P, use P () rather than (*P) (), as we now assume C89 or
75663         better.
75664
75665 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75668         "who -r" failed to give output.  Problem reported by Tim Waugh.
75669
75670         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75671         (xcalloc): Use it to avoid needless tests.
75672         Problem reported by Jim Meyering.
75673
75674 2005-06-20  Derek Price  <derek@ximbiot.com>
75675
75676         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75677         unnecessary for Autoconfs > 2.59c.
75678
75679 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75680
75681         * lib/argp.h (__option_is_short): Check upper limit of
75682         __key. Isprint() requires its argument to have the value
75683         of an unsigned char or EOF.
75684
75685 2005-06-16  Jim Meyering  <jim@meyering.net>
75686
75687         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75688         when either N or S is zero.
75689
75690 2005-06-16  Derek Price  <derek@ximbiot.com>
75691
75692         * m4/bison.m4: Declare YACC & YFLAGS precious.
75693
75694 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75697         multibyte string or pattern, fall back on unibyte matching.
75698         Problem reported by James Youngman.
75699
75700 2005-06-08  Bruno Haible  <bruno@clisp.org>
75701
75702         * modules/csharpcomp: New file.
75703         * MODULES.html.sh (C#): Add csharpcomp.
75704
75705 2005-06-08  Bruno Haible  <bruno@clisp.org>
75706
75707         * m4/csharpcomp.m4: New file, from GNU gettext.
75708
75709 2005-06-08  Bruno Haible  <bruno@clisp.org>
75710
75711         * lib/csharpcomp.h: New file, from GNU gettext.
75712         * lib/csharpcomp.c: New file, from GNU gettext.
75713         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75714
75715 2005-06-08  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75718         warning on mingw.
75719
75720 2005-06-07  Derek Price  <derek@ximbiot.com>
75721
75722         Sync from CVS.
75723         * lib/glob_.h: Indent nested #ifdef.
75724
75725 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         Sync from coreutils.
75728         Use "file name" when talking about file names, instead of "filename"
75729         or "path", as per the GNU coding standards.
75730         * lib/mkdir-p.c: Renamed from makepath.c.
75731         (make_dir_parents): Renamed from make_path.  All callers changed.
75732         * lib/mkdir-p.h: Likewise.  All includers changed.
75733         * lib/filenamecat.c: Renamed from path-concat.c.
75734         (file_name_concat): Renamed from path_concat.  All callers changed.
75735         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75736         * lib/filenamecat.h: Likewise.  All includers changed.
75737         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75738         in comments or local variable names.
75739         * lib/basename.c: Likewise.
75740         * lib/canonicalize.c, canonicalize.h: Likewise.
75741         * lib/dirname.c, dirname.h: Likewise.
75742         * lib/euidaccess.c: Likewise.
75743         * lib/exclude.c: Likewise
75744         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75745         * lib/fsusage.c, fsuage.h: Likewise.
75746         * lib/fts.c, fts_.h: Likewise.
75747         * lib/getcwd.c: Likewise.
75748         * lib/getloadavg.c: Likewise.
75749         * lib/mkstemp.c: Likewise.
75750         * lib/mountlist.c, mountlist.h: Likewise.
75751         * lib/openat.c, openat.h: Likewise.
75752         * lib/readlink-stub.c: Likewise.
75753         * lib/readutmp.c, readutmp.h: Likewise.
75754         * lib/rename.c: Likewise.
75755         * lib/rmdir.c: Likewise.
75756         * lib/same.c: Likewise.
75757         * lib/savedir.c: Likewise.
75758         * lib/stripslash.c: Likewise.
75759         * lib/tempname.c: Likewise.
75760         * lib/xreadlink.c: Likewise.
75761         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75762         All uses changed.
75763         * lib/exclude.h: Likewise.
75764
75765         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75766         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75767         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75768         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75769         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75770         files have been getting away with it for years (MORE/BSD 4.3
75771         is extinct now).
75772         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75773         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75774
75775         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75776         Define to 256, not 255, as per modern POSIX.
75777
75778 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         Sync from coreutils.
75781         Use "file name" when talking about file names, instead of "filename"
75782         or "path", as per the GNU coding standards.
75783         * MODULES.html.sh: mkdir-p renamed from makepath.
75784         filenamecat renamed from path-concat.
75785         * modules/filenamecat: Renamed from modules/path-concat.
75786         (Files): filenamecat.h and filenamecat.c renamed from
75787         path-concat.h and path-concat.c.
75788         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75789         (Include): filenamecat.h, not path-concat.h.
75790         * modules/mkdir-p: Renamed from modules/makepath.
75791         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75792         makepath.c.
75793         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75794         (Include): mkdir-p.h, not makepath.h.
75795
75796 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         Sync from coreutils.
75799         * m4/mkdir-p.m4: Renamed from makepath.m4.
75800         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75801         Rename files from makepath.c to mkdir-p.c, and from
75802         makepath.h to mkdir-p.h.
75803         * m4/filenamecat.m4: Renamed from path-concat.m4.
75804         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75805         Rename files from path-concat.c to filenamecat.c,
75806         and from path-concat.h to filenamecat.h.
75807         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75808         "file name" in local variables or comments.
75809         * m4/rename.m4: Likewise.
75810
75811 2005-06-01  Bruno Haible  <bruno@clisp.org>
75812
75813         * modules/csharpexec: New file.
75814         * MODULES.html.sh (C#): New section.
75815
75816 2005-06-01  Bruno Haible  <bruno@clisp.org>
75817
75818         * m4/csharp.m4: New file, from GNU gettext.
75819         * m4/csharpexec.m4: New file, from GNU gettext.
75820
75821 2005-06-01  Bruno Haible  <bruno@clisp.org>
75822
75823         * lib/csharpexec.h: New file, from GNU gettext.
75824         * lib/csharpexec.c: New file, from GNU gettext.
75825         * lib/csharpexec.sh.in: New file, from GNU gettext.
75826
75827 2005-05-31  Derek Price  <derek@ximbiot.com>
75828             Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         Sync from cvs.
75831         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75832
75833 2005-05-31  Derek Price  <derek@ximbiot.com>
75834             Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         Sync from cvs.
75837         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75838
75839 2005-05-29  Derek Price  <derek@ximbiot.com>
75840
75841         * config/srclist.txt (glob_.h, glob.c): Add these files.
75842
75843 2005-05-29  Derek Price  <derek@ximbiot.com>
75844
75845         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75846         * modules/glob: New file.
75847         * modules/getlogin_r: Add link to POSIX spec in description.
75848
75849 2005-05-29  Derek Price  <derek@ximbiot.com>
75850             Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * m4/glob.m4: New file.
75853
75854 2005-05-29  Derek Price  <derek@ximbiot.com>
75855             Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * lib/glob_.h, lib/glob.c: New files.
75858
75859 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75862         * modules/fts-lgpl (Depends-on): Remove gettext.
75863
75864 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75867         and don't require gt_INTTYPES_PRI.
75868
75869 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75870
75871         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75872
75873         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75874         the configuration hassle isn't worth it.
75875         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75876         (LONGEST_MODIFIER, PRIuMAX): Remove.
75877
75878 2005-05-27  Bruno Haible  <bruno@clisp.org>
75879
75880         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75881
75882 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75885         _POSIX_PTHREAD_SEMANTICS for Solaris.
75886
75887 2005-05-25  Derek Price  <derek@ximbiot.com>
75888
75889         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75890
75891 2005-05-25  Derek Price  <derek@ximbiot.com>
75892             Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75895         * lib/getlogin_r.c, getlogin_r.h: New files.
75896
75897 2005-05-25  Bruno Haible  <bruno@clisp.org>
75898             Derek Price  <derek@ximbiot.com>
75899
75900         * lib/getlogin_r.h: Simplify API documentation.
75901
75902 2005-05-23  Derek Price  <derek@ximbiot.com>
75903
75904         * modules/minmax (Files): Add m4/minmax.m4.
75905         (configure.ac): Add gl_MINMAX.
75906
75907 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75910         so that unistd-safer.h (GPL'ed code) need not be included.
75911
75912 2005-05-22  Bruno Haible  <bruno@clisp.org>
75913
75914         * m4/minmax.m4: New file.
75915         Based on a patch by Derek Price <derek@ximbiot.com>.
75916
75917 2005-05-22  Bruno Haible  <bruno@clisp.org>
75918
75919         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75920         (INT64_MIN): Fix definition.
75921         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75922
75923         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75924         NEED_SIGNED_INT_TYPES.
75925
75926         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75927         HAVE_SYSTEM_INTTYPES.
75928
75929 2005-05-22  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75932         Also include <sys/param.h> if it defines MIN, MAX.
75933         Based on a patch by Derek Price <derek@ximbiot.com>.
75934
75935 2005-05-21  Jim Meyering  <jim@meyering.net>
75936
75937         * modules/fts (Files): Add m4/inttypes-pri.m4.
75938         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75939
75940 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         New fts module.
75943         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75944         (setup_dir, free_dir): New functions.
75945         (enter_dir, leave_dir): Define trivial
75946         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75947         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75948         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75949         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75950         Move to fts-cycle.c.
75951         (fts_open): Use setup_dir.
75952         (fts_close): Use free_dir.
75953         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75954         This adds a label and some gotos, but the alternatives were messier.
75955         Check for memory allocation failure when entering a dir.
75956         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75957         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75958         (FTS): New member fts_cycle, that is a union that contains the
75959         old active_dir_ht and cycle_state.  All uses changed to mention
75960         fts_cycle.ht and fts_cycle.state.
75961         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75962         fts.c, with the following changes:
75963         (setup_dir, free_dir): New functions.
75964         (enter_dir): Now returns bool.  Return true if successful, false
75965         if memory exhausted.  All callers changed.
75966         Do not bother partly cleaning up on
75967         memory allocation failure; that is free_dir's job.
75968         However, free ad if hash_insert fails, to avoid memory leak.
75969         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75970         fts->fts_options to see which union member to use.
75971
75972 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75975         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75976
75977 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75978
75979         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75980
75981 2005-05-20  Jim Meyering  <jim@meyering.net>
75982
75983         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75984         Now a macro, to pacify GCC.
75985
75986 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75987
75988         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75989         of -1.
75990
75991 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75992
75993         * lib/chown.c (rpl_chown): Return -1 on failure.
75994
75995 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75998         Don't check for stddef.h.
75999         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76000         don't use its results.
76001         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76002         since we include them unconditionally.  Don't require
76003         AM_STDBOOL_H, since stdbool is a prerequisite.
76004         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76005         since we assume C89 or better.
76006         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76007         as we don't use their results.
76008         Don't check for fchdir, memmove, memset, strrchr, as we use
76009         them unconditionally.
76010         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76011         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76012
76013 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76014
76015         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76016         Include <stddef.h> unconditionally, since we assume C89 now.
76017         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76018         * lib/fts.c: Include fts_.h first, to check interface.
76019         Do not include intprops.h; no longer needed.
76020         Include cycle-check.h and hash.h, since fts_.h no longer does.
76021         Remove unnecessary casts of closedir to void.
76022         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76023         decide whether to decrement nlinks.
76024         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76025         (FTS): Use struct hash_table * instead of Hash_table, so that
76026         we no longer need to include hash.h here.
76027
76028 2005-05-18  Jim Meyering  <jim@meyering.net>
76029
76030         * modules/dirfd (License): Change to LGPL.  Most of the code
76031         is already in the public domain.
76032
76033 2005-05-18  Jim Meyering  <jim@meyering.net>
76034
76035         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76036         Reported by Yoann Vandoorselaere.
76037
76038 2005-05-17  Jim Meyering  <jim@meyering.net>
76039
76040         * m4/fts.m4: New file, from coreutils.
76041
76042 2005-05-17  Jim Meyering  <jim@meyering.net>
76043
76044         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76045
76046 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         Sync from coreutils.
76049         * m4/unlinkdir.m4: New file.
76050
76051 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         Sync from coreutils.
76054         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76055         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76056         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76057         White space changes only.
76058         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76059         special.
76060         * lib/yesno.c: Include getline.h, not ctype.h.
76061         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76062         Use getline to remove arbitrary restriction on response length.
76063
76064 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * config/srclist-update: Spell out "Street" in FSF postal
76067         mail address; this is the style the FSF seems to prefer.
76068
76069         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76070         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76071         this updates FSF postal mail address.
76072
76073         Sync from coreutils.
76074         * modules/unlinkdir: New file.
76075         * modules/yesno (Depends-on): Add getline.
76076         * MODULES.html.sh (File system functions): Add unlinkdir.
76077
76078 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76081         lib/strsep.h:
76082         Change the initial comment to refer to GPL, not LGPL.
76083         gnulib-tool will change it to LGPL as needed.
76084
76085         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76086         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76087         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76088         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76089         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76090         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76091         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76092         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76093         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76094         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76095         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76096         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76097         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76098         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76099         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76100         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76101         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76102         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76103         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76104         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76105         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76106         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76107         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76108         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76109         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76110         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76111         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76112         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76113         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76114         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76115         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76116         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76117         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76118         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76119         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76120         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76121         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76122         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76123         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76124         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76125         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76126         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76127         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76128         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76129         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76130         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76131         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76132         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76133         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76134         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76135         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76136         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76137         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76138         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76139         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76140         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76141         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76142         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76143         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76144         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76145         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76146         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76147         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76148         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76149         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76150         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76151         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76152         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76153         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76154         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76155         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76156         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76157         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76158         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76159         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76160         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76161         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76162         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76163         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76164         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76165         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76166         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76167         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76168         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76169         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76170         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76171         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76172         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76173         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76174         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76175         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76176         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76177         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76178         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76179         lib/yesno.c, lib/yesno.h:
76180         Update FSF postal mail address.
76181
76182 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76183
76184         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76185         tests/test-memmem.c, tests/test-stpncpy.c:
76186         Update FSF postal mail address.
76187
76188 2005-05-13  Bruno Haible  <bruno@clisp.org>
76189
76190         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76191         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76192         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76193         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76194         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76195         Add support for 64-bit integers in the MSVC compiler.
76196
76197 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76198
76199         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76200
76201 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76202
76203         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76204
76205 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * doc/getdate.texi (General date syntax): Don't say that date
76208         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76209         Problem reported by Nic Ferrier.
76210
76211 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76212
76213         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76214         specified in ai_socktype. Fix invalid ai_protocol
76215         check. ai_protocol is usually set to 0 or depending on
76216         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76217         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76218         ai_socktype / ai_protocol in the returned addrinfo structure.
76219
76220 2005-05-10  Simon Josefsson  <jas@extundo.com>
76221
76222         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76223         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76224
76225 2005-05-10  Karl Berry  <karl@gnu.org>
76226
76227         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76228         (from http://www.gnu.org/licenses).
76229         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76230         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76231         fdl.texi suffices.
76232
76233 2005-05-10  Karl Berry  <karl@gnu.org>
76234
76235         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76236         (COPYING.DOC): remove.
76237
76238         * config/srclist-update: new FSF address.
76239
76240 2005-05-10  Derek Price  <derek@ximbiot.com>
76241
76242         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76243         possible.
76244
76245 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76246             Bruno Haible  <bruno@clisp.org>
76247
76248         * modules/inet_ntop: New file.
76249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76250         inet_ntop.
76251
76252 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76253             Bruno Haible  <bruno@clisp.org>
76254
76255         * m4/inet_ntop.m4: New file.
76256
76257 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76258             Bruno Haible  <bruno@clisp.org>
76259
76260         * lib/inet_ntop.h: New file.
76261         * lib/inet_ntop.c: New file, from glibc with modifications.
76262
76263 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * modules/time_r (License): Change to LGPL.
76266         * modules/extensions (License): Change to LGPL.  Actually,
76267         the license is more permissive than that, but currently gnulib-tool
76268         doesn't know how to handle more-permissive licenses.
76269
76270         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76271         Problem reported by Dave Love.
76272
76273 2005-05-08  Jim Meyering  <jim@meyering.net>
76274
76275         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76276         blank.
76277
76278 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         * modules/argmatch (Depends-on): Add stdbool.
76281         * modules/backupfile (Depends-on): Likewise.
76282         * modules/chdir-long (Depends-on): Likewise.
76283         * modules/closeout (Depends-on): Likewise.
76284         * modules/cycle-check (Depends-on): Likewise.
76285         * modules/dirname (Depends-on): Likewise.
76286         * modules/fnmatch (Depends-on): Likewise.
76287         * modules/fsusage (Depends-on): Likewise.
76288         * modules/fwriteerror (Depends-on): Likewise.
76289         * modules/getcwd (Depends-on): Likewise.
76290         * modules/getloadavg (Depends-on): Likewise.
76291         * modules/hard-locale (Depends-on): Likewise.
76292         * modules/makepath (Depends-on): Likewise.
76293         * modules/mountlist (Depends-on): Likewise.
76294         * modules/nanosleep (Depends-on): Likewise.
76295         * modules/posixtm (Depends-on): Likewise.
76296         * modules/quotearg (Depends-on): Likewise.
76297         * modules/readtokens (Depends-on): Likewise.
76298         * modules/readtokens0 (Depends-on): Likewise.
76299         * modules/readutmp (Depends-on): Likewise.
76300         * modules/save-cwd (Depends-on): Likewise.
76301         * modules/strftime (Depends-on): Likewise.
76302         * modules/userspec (Depends-on): Likewise.
76303         * modules/utimecmp (Depends-on): Likewise.
76304         * modules/xgetcwd (Depends-on): Likewise.
76305         * modules/xnanosleep (Depends-on): Likewise.
76306         * modules/xstrtod (Depends-on): Likewise.
76307         * modules/yesno (Depends-on): Likewise.
76308
76309 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76312         needless checks.
76313
76314 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76315
76316         Merge from coreutils.  Among other things,
76317         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76318         * lib/fd-safer.c: New file.
76319         * lib/fcntl-safer.h, open-safer.c: Remove.
76320         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76321         * lib/dup-safer.c: Include unistd-safer.h first.
76322         Don't include errno.h.
76323         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76324         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76325         * lib/file-type.c: Rely on file-type.h change.
76326         * lib/getloadavg.c: Include unistd-safer.h.
76327         (getloadavg): Use safer open.
76328         * lib/getusershell.c: Include "stdio-safer.h".
76329         (getusershell): Use safer fopen.
76330         * lib/long-options.c (long_options): Use NULL rather than 0.
76331         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76332         'free'.
76333         * lib/modechange.c: Likewise.
76334         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76335         (MODE_DONE): New constant.
76336         (struct mode_change): Remove 'next' member.
76337         (make_node_op_equals): New function; like the old one of the
76338         same name, except it allocates an array.
76339         (mode_compile, mode_create_from_ref): Use it.
76340         (mode_compile): Allocate result as an array, not a linked list.
76341         Parse octal string ourself, so that we catch mistakes like "+0".
76342         (mode_adjust): Arg is an array, not a linked list.
76343         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76344         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76345         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76346         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76347         Remove.  This is now stat-macros.h's job.
76348         (talloc): Remove.  All callers replaced by xalloc, so that
76349         our invokers don't have to worry about reporting memory failures.
76350         (make_node_op_equals): Remove.
76351         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76352         New constants.
76353         (struct mode_change): Moved here from modechange.h.
76354         (mode_append_entry): Remove.
76355         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76356         apps to have incorrect behavior.  Use simpler algorithm for head
76357         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76358         Detect more invalid usages rather than having somewhat-random behavior.
76359         Don't insert an "a=" action, as that leads to incorrect behavior.
76360         (mode_compile, mode_create_from_ref): Return NULL on error instead
76361         of an enum, since now there's only one way to have an error.  All
76362         callers changed.
76363         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76364         at the correct time.  Simplify calculation of "+u" and its ilk.
76365         Don't mishandle "+X".
76366         (mode_free): Remove "register" and localize decls.
76367         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76368         (struct mode_change): Move to modechange.c; callers don't
76369         need to see this stuff.
76370         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76371         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76372         (mode_change, mode_adjust): Reflect the new signatures noted above.
76373         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76374         that might redefine system include files.
76375         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76376         (my_usleep): Use NULL rather than (void *) 0.
76377         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76378         Use siginterrupt to specify that system calls should be interrupted.
76379         (rpl_nanosleep): Move initialization of suspended closer to call of
76380         my_usleep.
76381         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76382         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76383         (desirable_utmp_entry): New function.
76384         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76385         using x2nrealloc, to simplify logic.
76386         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76387         size calculation.  Do not assume utmp file is a regular file.
76388         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76389         (READ_UTMP_CHECK_PIDS): New constant.
76390         * lib/save-cwd.c: Include unistd-safer.h.
76391         (save_cwd): Use fd_safer.
76392         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76393         [!_LIBC] Include "stat-macros.h" instead.
76394         * lib/unistd-safer.h (fd_safer): New decl.
76395
76396 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * modules/getloadavg (Depends-on): Add unistd-safer.
76399         * modules/getusershell (Depends-on): Add stdio-safer.
76400         * modules/lstat (Depends-on): Remove xalloc.
76401         * modules/mkstemp (Depends-on): Add stat-macros.
76402         * modules/modechange (Depends-on): Remove xstrtol.
76403         Add stat-macros, xalloc.
76404         * modules/save-cwd (Depends-on): Add unistd-safer.
76405         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76406         * modules/unistd-safer (Files): Add lib/fd-safer.c
76407         (Makefile.am): Remove lib_SOURCES.
76408
76409         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76410         Remove fcntl-safer; unistd-safer supersedes it.
76411
76412 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76415         AC_HEADER_STAT.
76416         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76417         (gl_PREREQ_CHOWN): Remove.
76418         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76419         it.  Don't require AC_HEADER_STAT.
76420         (gl_PREREQ_LSTAT): Remove.
76421         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76422         Don't require AC_HEADER_STAT.
76423         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76424         (gl_PREREQ_RMDIR): Remove.
76425         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76426         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76427         the stat-macros module a prerequisite.
76428         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76429         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76430         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76431         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76432         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76433         variable names.
76434         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76435         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76436         variable prefixes.
76437         * m4/fcntl-safer.m4: Remove.
76438         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76439         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76440         Invoke gl_PREREQ_FD_SAFER.
76441         (gl_PREREQ_FD_SAFER): New macro.
76442         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76443         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76444         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76445         Remove duplicate call to AC_LIBOBJ(readutmp).
76446         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76447
76448         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76449         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76450
76451 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * MODULES.html.sh (Misc): Add byteswap.
76454
76455 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76456
76457         * modules/getcwd (Depends-on): Add extensions.
76458         * modules/openat (Depends-on): Likewise.
76459
76460 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76461
76462         * modules/byteswap: New file.
76463
76464 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76465
76466         * m4/byteswap.m4: New file.
76467
76468 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76469
76470         * lib/byteswap_.h: New file.
76471
76472 2005-04-25  Karl Berry  <karl@gnu.org>
76473
76474         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76475
76476 2005-04-25  Albert Chin  <china@thewrittenword.com>
76477
76478         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76479         Toolkit C bug.
76480
76481 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76482
76483         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76484         (func_ln_if_changed): Remove forcibly for no error message
76485         in case file does not exist.
76486
76487 2005-04-19  Simon Josefsson  <jas@extundo.com>
76488
76489         * gnulib-tool (Options): Make --symlink mean --symbolic.
76490
76491 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76492
76493         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76494
76495 2005-04-16  Simon Josefsson  <jas@extundo.com>
76496
76497         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76498
76499 2005-04-15  Simon Josefsson  <jas@extundo.com>
76500
76501         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76502
76503 2005-04-15  Simon Josefsson  <jas@extundo.com>
76504
76505         * gnulib-tool: Rename --symlink to --symbolic.
76506
76507 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76508
76509         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76510         symbolic links to files instead of copying/moving.  Add --aux-dir,
76511         specifying directory relative --dir where auxiliary build tools
76512         are placed.
76513
76514 2005-04-14  Bruno Haible  <bruno@clisp.org>
76515
76516         * modules/allocsa (License): Change to LGPL.
76517         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76518
76519 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76522         that "UTC +1 second" continues to work.  Problem reported
76523         by Dmitry V. Levin.
76524         (relunit_snumber): New rule.
76525         (relunit): Use it.
76526
76527 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/getdate.y (universal_time_zone_table): New constant.
76530         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76531         universal_time_zone_table.
76532         (lookup_zone): Prefer universal_time_zone_table to
76533         local_time_zone_table, so that "GMT" time stamps are allowed in
76534         London during the summer.  Problem reported by Ian Abbott.
76535
76536 2005-04-12  Jim Meyering  <jim@meyering.net>
76537
76538         * lib/human.c (humblock): Set *options even when returning due to
76539         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76540         warning from gcc-4.
76541
76542 2005-04-09  Jim Meyering  <jim@meyering.net>
76543
76544         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76545         -Wuninitialized: initialize tm0.tm_year.
76546
76547 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76550         count, since there's no maximum.  All uses changed.
76551         Add member dsts_seen.
76552         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76553         not being INT_MAX.
76554         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76555         Use pc_rels_seen to decide whther a date is absolute.
76556
76557         * lib/getdate.y (number): Don't overwrite year.
76558         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76559         check.
76560
76561 2005-04-02  Simon Josefsson  <jas@extundo.com>
76562
76563         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76564         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76565
76566 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76567
76568         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76569         where no absolute path name can be longer than PATH_MAX.
76570
76571 2005-03-27  Jim Meyering  <jim@meyering.net>
76572
76573         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76574
76575 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76578         "one's complement" -> "ones' complement" in comment, as per Knuth.
76579         "value of type" -> "type or expression" in comment.
76580         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76581
76582 2005-03-26  Jim Meyering  <jim@meyering.net>
76583
76584         Comment nits.
76585         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76586         Correct typos: s/or/of/.
76587
76588 2005-03-26  Jim Meyering  <jim@meyering.net>
76589
76590         * modules/check-include-files: Move to ../ and rename to...
76591         * check-module: ...this.
76592
76593 2005-03-25  Jim Meyering  <jim@meyering.net>
76594
76595         * modules/xvasprintf (Files): Add xalloc.h.
76596
76597 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * modules/gettext (Files): config/config.rpath ->
76600         build-aux/config.rpath
76601         * modules/iconv (Files): Likewise.
76602         Problem reported by Oskar Liljeblad.
76603
76604 2005-03-23  Jim Meyering  <jim@meyering.net>
76605
76606         * modules/check-include-files: New script to check for
76607         missing dependencies, multiple includes, etc.
76608
76609         * modules/c-strtold (Depends-on): Add xalloc.
76610         * modules/c-strtod (Depends-on): Add xalloc.
76611         * modules/hash (Depends-on): Add xalloc.
76612         (Files): Remove lib/xalloc.h.
76613
76614         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76615         * modules/userspec (Files): Add lib/inttostr.h.
76616
76617 2005-03-23  Jim Meyering  <jim@meyering.net>
76618
76619         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76620
76621 2005-03-22  Jim Meyering  <jim@meyering.net>
76622
76623         * modules/stat-macros: New module.
76624         * modules/canonicalize, modules/euidaccess, modules/file-type,
76625         * modules/filemode, modules/lchown, modules/makepath,
76626         * modules/rmdir, modules/stat: Depend on new stat-macros module
76627         rather than listing lib/stat-macros.h manually.
76628         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76629
76630 2005-03-22  Jim Meyering  <jim@meyering.net>
76631
76632         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76633
76634 2005-03-22  Bruno Haible  <bruno@clisp.org>
76635
76636         * config/srclist.txt: Replace target directory 'config' with
76637         'build-aux'.
76638         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76639         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76640         ../build-aux/.
76641
76642 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         * modules/chdir-long (Depends-on): Add mempcpy.
76645
76646         * modules/acl, modules/backupfile, modules/c-strtod,
76647         modules/c-strtold, modules/canon-host, modules/canonicalize,
76648         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76649         modules/exclude, modules/exitfail, modules/file-type,
76650         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76651         modules/getdate, modules/getline, modules/getpagesize,
76652         modules/getpass, modules/getugroups, modules/group-member,
76653         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76654         modules/inttostr, modules/long-options, modules/makepath,
76655         modules/md5, modules/memcasecmp, modules/memcoll,
76656         modules/modechange, modules/mountlist, modules/path-concat,
76657         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76658         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76659         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76660         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76661         modules/strftime, modules/strndup, modules/strverscmp,
76662         modules/timespec, modules/unlocked-io, modules/userspec,
76663         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76664         modules/yesno:
76665         Remove lib_SOURCES line from Makefile.am section, as this is now
76666         done automatically by the corresponding Autoconf macro.
76667
76668 2005-03-21  Jim Meyering  <jim@meyering.net>
76669
76670         Changes imported from coreutils.
76671
76672         * lib/cycle-check.c: Don't include xalloc.h.
76673
76674         * lib/path-concat.c: Don't include assert.h.
76675         (path_concat): Remove assertion that would have triggered
76676         for ABASE starting with more than one slash.
76677         Reported by Andreas Schwab.
76678
76679         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76680         properly when ABASE is an absolute file name.
76681         Correct the description of this function.
76682         Include <assert.h>.
76683         Add an assertion and a test driver.
76684         This fixes a bug introduced on 2004-07-02.
76685         Andreas Schwab reported the resulting failure of cp --parents:
76686         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76687
76688 2005-03-21  Jim Meyering  <jim@meyering.net>
76689
76690         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76692
76693 2005-03-21  Jim Meyering  <jim@meyering.net>
76694         and  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76697         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76698         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76699         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76700         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76701         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76702         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76703         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76704         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76705         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76706         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76707         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76708         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76709         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76710         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76711         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76712         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76713         for these modules.
76714
76715 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76718         (which shouldn't happen), generate nothing instead of returning 0
76719         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76720
76721 2005-03-16  Bruno Haible  <bruno@clisp.org>
76722
76723         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76724         HAVE_LONGLONG_64BIT.
76725
76726 2005-03-16  Bruno Haible  <bruno@clisp.org>
76727
76728         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76729         HAVE_LONGLONG_64BIT.
76730
76731 2005-03-16  Bruno Haible  <bruno@clisp.org>
76732
76733         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76734         HAVE_LONGLONG_64BIT.
76735
76736 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76739         reliably distinguish strftime failure from empty output on POSIX
76740         hosts.
76741
76742 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76745         (iconv_string): Don't guess a size-zero buffer, as that might cause
76746         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76747         result would be 'too large', where 'too large' is (heuristically)
76748         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76749         overflow concerns.  This will prevent some unwanted malloc failures
76750         when the inputs are very large.
76751
76752 2005-03-15  Karl Berry  <karl@gnu.org>
76753
76754         * config/srclist.txt (config.rpath): from gettext.
76755         * config/config.rpath: update.
76756
76757 2005-03-15  Bruno Haible  <bruno@clisp.org>
76758
76759         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76760         to 'negate'.
76761
76762         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76763         variable.
76764
76765         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76766         results.
76767
76768 2005-03-14  Simon Josefsson  <jas@extundo.com>
76769
76770         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76771         <fx@gnu.org>.
76772
76773 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76774
76775         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76776         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76777         intprops.h.
76778         * lib/strtol.c: Likewise.
76779
76780 2005-03-14  Jim Meyering  <jim@meyering.net>
76781
76782         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76783         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76784         to be nonzero so that we (and caller) can detect the difference
76785         between a valid zero-length expansion and an error return, even
76786         when the underlying strftime fails before writing anything into
76787         that location.
76788
76789 2005-03-14  Bruno Haible  <bruno@clisp.org>
76790
76791         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76792         Update from GNU gettext 0.14.3.
76793
76794 2005-03-10  Jim Meyering  <jim@meyering.net>
76795
76796         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76797
76798 2005-03-10  Jim Meyering  <jim@meyering.net>
76799
76800         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76801         so that this module works on systems without fchdir.
76802
76803 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         Factor int-properties macros into a single file, except for
76806         glibc-related files.
76807         * lib/intprops.h: New file.
76808         * lib/getloadavg.c: Include it instead of limits.h.
76809         (INT_STRLEN_BOUND): Remove.
76810         * lib/human.c: Include intprops.h.
76811         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76812         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76813         302/1000.
76814         * lib/inttostr.h: Include intprops.h instead of limits.h.
76815         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76816         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76817         for consistency with intprops.h.
76818         (time_t_is_integer, twos_complement_arithmetic): Use them.
76819         * lib/sig2str.h: Include <signal.h>, intprops.h.
76820         (INT_STRLEN_BOUND): Remove.
76821         * lib/strftime.c (TYPE_SIGNED): Remove.
76822         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76823         * lib/strtol.c: Adjust comments to match intprops.h.
76824         * lib/userspec.c: Include intprops.h.
76825         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76826         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76827         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76828         instead of rolling our own expressions.
76829         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76830
76831         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76832         instead of int.
76833         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76834         the right thing even if adding 1900 would overflow.  Similarly
76835         for tm_mon + 1 and tm_yday + 1.
76836         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76837         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76838         (DO_SIGNED_NUMBER): New macro.
76839         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76840
76841 2005-03-07  Bruno Haible  <bruno@clisp.org>
76842
76843         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76844
76845 2005-03-07  Bruno Haible  <bruno@clisp.org>
76846
76847         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76848
76849 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76850
76851         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76852         (func_import): Only replace files via --import when they have actually
76853         changed.
76854
76855 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76856
76857         * m4/mmap-anon.m4: New file.
76858         * m4/pagealign_alloc.m4: New file.
76859
76860 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76861             Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/pagealign_alloc: New file.
76864         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76865
76866 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76867             Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/pagealign_alloc.h: New file.
76870         * lib/pagealign_alloc.c: New file.
76871
76872 2005-03-03  Bruno Haible  <bruno@clisp.org>
76873
76874         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76875         Use an all-permissive copyright notice, recommended by RMS.
76876
76877 2005-03-02  Bruno Haible  <bruno@clisp.org>
76878
76879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76880         of AIX, the replacement has to be done only after <string.h> is
76881         included, therefore not in config.h. stpncpy.h does the replacement,
76882         and stpncpy.c uses it.
76883
76884 2005-03-02  Bruno Haible  <bruno@clisp.org>
76885
76886         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76887         stpncpy.c uses it.
76888
76889 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76892         The workaround isn't strictly needed for POSIX conformance, and
76893         it's too much of a pain to configure and maintain.  We'll ask
76894         people to fix their kernels instead.
76895         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76896         (NANOSLEEP_BUG_WORKAROUND): Remove.
76897         (xnanosleep): Remove the workaround.
76898
76899 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76902         Reported by Derek Price.
76903         (Include): Add "timespec.h".
76904
76905         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76906
76907 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76910         to detect nanosleep bug.
76911
76912 2005-03-01  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76915
76916 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * modules/gethrxtime: New file.
76919         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76920         (Depends-on): Add gethrxtime.
76921         (configure.ac): Add gl_XNANOSLEEP.
76922         (Makefile.am): Remove lib_SOURCES line.
76923
76924 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76925
76926         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76927         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76928
76929 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76932         * lib/timespec.h (gettime): Return void, since it always
76933         succeeds now.  All uses changed.
76934         * lib/gettime.c (gettime): Likewise.
76935         [HAVE_NANOTIME]: Prefer nanotime.
76936         Assume gettimeofday succeeds, as POSIX requires.
76937         Assime time () succeeds, since other code already does.
76938         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76939         (timespec_subtract): Remove.
76940         (NANOSLEEP_BUG_WORKAROUND): New constant.
76941         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76942         things considerably.  Use it only on GNU/Linux hosts, since the
76943         workaround shouldn't be needed elsewhere.
76944
76945 2005-02-24  Bruno Haible  <bruno@clisp.org>
76946
76947         * modules/gettext (Files): Add m4/glibc2.m4.
76948
76949 2005-02-24  Bruno Haible  <bruno@clisp.org>
76950
76951         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76952         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76953         * m4/progtest.m4:
76954         Update from GNU gettext 0.14.2.
76955         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76956
76957 2005-02-24  Bruno Haible  <bruno@clisp.org>
76958
76959         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76960         * lib/config.charset: Update from GNU gettext 0.14.2.
76961
76962 2005-02-24  Bruno Haible  <bruno@clisp.org>
76963
76964         * lib/gettext.h: Update from GNU gettext 0.14.2.
76965
76966 2005-02-23  Simon Josefsson  <jas@extundo.com>
76967
76968         * m4/iconvme.m4: New file.
76969
76970 2005-02-23  Jim Meyering  <jim@meyering.net>
76971
76972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76973         change.
76974         Thanks to Bruno Haible for catching it.
76975
76976 2005-02-22  Simon Josefsson  <jas@extundo.com>
76977
76978         * modules/iconvme: New file.
76979
76980         * MODULES.html.sh: Add iconvme.
76981
76982 2005-02-22  Simon Josefsson  <jas@extundo.com>
76983
76984         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76985
76986 2005-02-22  Simon Josefsson  <jas@extundo.com>
76987
76988         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76989
76990 2005-02-22  Jim Meyering  <jim@meyering.net>
76991
76992         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76993         s/ifndef/ifdef/.
76994
76995 2005-02-20  Neil Conway  <neilc@samurai.com>
76996
76997         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76998         returned by OSX/Darwin if the specified buffer is not large
76999         enough for the hostname.
77000
77001 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77002
77003         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77004         pass it to _help, otherwise the latter coredumps trying to
77005         dereference state.root_argp.
77006
77007 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77008
77009         * modules/chdir-long (Depends-on): Add memrchr.
77010         * modules/memrchr (Files): Add lib/memrchr.h.
77011         (Include): "memrchr.h".
77012
77013 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77016
77017 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * lib/memrchr.h: New file.
77020         * lib/chdir-long.c: Include it.
77021         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77022         Don't bother including stddef.h.
77023
77024 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77025
77026         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77027         inclusion.
77028         Include <sys/types.h>, for dev_t.
77029         (ME_DUMMY, ME_REMOTE): Move from here....
77030         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77031         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77032         Dmitry V. Levin.
77033         Include mountlist.h first, to test the interface.
77034
77035 2005-01-29  Bruno Haible  <bruno@clisp.org>
77036
77037         * lib/progname.c (program_name): Initialize.
77038         Needed when linking statically on MacOS X.
77039
77040 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         Sync from coreutils.
77043         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77044         (Depends-on): Add c-strtod.
77045         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77046
77047 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77048
77049         Sync from coreutils.
77050         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77051
77052         Remove files that are specific to coreutils.
77053         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77054
77055 2005-01-28  Bruno Haible  <bruno@clisp.org>
77056
77057         * modules/javacomp: New file.
77058         * MODULES.html.sh (Java): Add javacomp.
77059
77060 2005-01-28  Bruno Haible  <bruno@clisp.org>
77061
77062         * m4/javacomp.m4: New file, from GNU gettext.
77063
77064 2005-01-28  Bruno Haible  <bruno@clisp.org>
77065
77066         * lib/javacomp.sh.in: New file, from GNU gettext.
77067         * lib/javacomp.h: New file, from GNU gettext.
77068         * lib/javacomp.c: New file, from GNU gettext.
77069
77070 2005-01-26  Simon Josefsson  <jas@extundo.com>
77071
77072         * lib/gai_strerror.c: Use GPL in header.
77073
77074 2005-01-26  Bruno Haible  <bruno@clisp.org>
77075
77076         * modules/javaexec: New file.
77077         * MODULES.html.sh (Java): Add javaexec.
77078
77079 2005-01-26  Bruno Haible  <bruno@clisp.org>
77080
77081         * m4/javaexec.m4: New file, from GNU gettext.
77082
77083 2005-01-26  Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/javaexec.sh.in: New file, from GNU gettext.
77086         * lib/javaexec.h: New file, from GNU gettext.
77087         * lib/javaexec.c: New file, from GNU gettext.
77088
77089 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77090
77091         * modules/lchown (Depends-on): Remove lchown.h
77092
77093 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77094
77095         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77096         must be defined if the header file was not found, in order
77097         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77098
77099 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77100
77101         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77102         initializers for struct pentry_state.
77103         (__argp_error): Check return value of __asprintf
77104         (__argp_failure): Translate error message
77105
77106         * lib/argp-parse.c: Removed braces around the expansion of N_()
77107
77108 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77111         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77112         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77113         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77114         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77115         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77116         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77117         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77118         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77119         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77120         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77121         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77122         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77123         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77124         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77125         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77126         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77127         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77128         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77129         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77130         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77131         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77132         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77133         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77134         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77135         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77136         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77137         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77138         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77139         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77140         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77141         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77142         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77143         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77144         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77145         Use an all-permissive copyright notice, recommended by RMS.
77146
77147 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * modules/chdir-long (Depends-on): Remove mempcpy.
77150
77151 2005-01-21  Jim Meyering  <jim@meyering.net>
77152
77153         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77154         same value as for Solaris 9.
77155
77156         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77157         component length.  This included changing the parameter to be
77158         of type `char *' rather than `char const *'.
77159         * lib/chdir-long.h (chdir_long): Update prototype.
77160
77161         * lib/openat.c (fdopendir, fstatat): New functions.
77162         * lib/openat.h: Include headers required for use of DIR and struct
77163         stat.
77164         [AT_SYMLINK_NOFOLLOW]: Define.
77165         (fdopendir, fstatat): Add prototypes.
77166
77167 2005-01-21  Bruno Haible  <bruno@clisp.org>
77168
77169         * modules/classpath: New file.
77170         * MODULES.html.sh (Java): Add classpath.
77171
77172 2005-01-21  Bruno Haible  <bruno@clisp.org>
77173
77174         * lib/classpath.h: New file, from GNU gettext.
77175         * lib/classpath.c: New file, from GNU gettext.
77176
77177 2005-01-20  Simon Josefsson  <jas@extundo.com>
77178
77179         * modules/version-etc-fsf: New file.
77180
77181 2005-01-20  Simon Josefsson  <jas@extundo.com>
77182
77183         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77184         * lib/version-etc.c: Remove version_etc_copyright.
77185         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77186         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77187
77188 2005-01-20  Simon Josefsson  <jas@extundo.com>
77189
77190         * lib/base64.h (isbase64): Add.
77191
77192         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77193         using a unsigned prototype, don't inline.
77194         (base64_decode): Use it.
77195
77196 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77197
77198         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77199         it.
77200
77201 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * lib/save-cwd.c (save_cwd): Remove code to support the case
77204         where fchdir is missing or flaky.
77205
77206 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77209
77210 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77213         AC_LIBSOURCES now does this.
77214         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77215         with new ullong_max module.
77216
77217 2005-01-19  Bruno Haible  <bruno@clisp.org>
77218
77219         * modules/sh-quote: New file.
77220         * MODULES.html.sh (Executing programs): Add sh-quote.
77221
77222 2005-01-19  Bruno Haible  <bruno@clisp.org>
77223
77224         * lib/sh-quote.h: New file, from GNU gettext.
77225         * lib/sh-quote.c: New file, from GNU gettext.
77226
77227 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         Merge from coreutils.
77230         * m4/ullong_max.m4: New file.
77231         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77232         (gl_MACROS): Assume localeconv exists.
77233
77234 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         Merge changes from coreutils, as described below in several
77237         changelogs dated today.
77238
77239         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77240         (O_DIRECTORY): Remove; not needed here, since "." must be
77241         a directory.  All uses removed.
77242         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77243         universal on Suns, and we also need to test for IRIX.
77244         Revamp code to use 'if' rather than '#if'.
77245         Avoid unnecessary comparison of cwd->desc to 0.
77246
77247         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77248         for known valid error numbers rather than observed invalid ones.
77249
77250 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         * modules/ullong_max: New file.
77253
77254         * modules/chdir-long, modules/openat: New files.
77255         * modules/save-cwd (Depends-on): Depend on chdir-long.
77256         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77257
77258 2005-01-18  Jim Meyering  <jim@meyering.net>
77259
77260         Merge from coreutils.
77261         * m4/chdir-long.m4, m4/openat.m4: New files.
77262         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77263         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77264         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77265         is sane and DOES follow symlinks.  Besides, testing 20 different
77266         systems found no broken chown implementations.
77267         Prompted by a change in rsync's copy of this macro.
77268         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77269
77270         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77271
77272         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77273         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77274         NULL-means-set-to-current-time semantics.
77275         Remove temporary file immediately, rather than waiting
77276         for configure's at-exit trap code to do it.
77277
77278 2005-01-18  Jim Meyering  <jim@meyering.net>
77279
77280         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77281
77282         * lib/utimens.c (futimens): Account for the fact that futimes
77283         can also fail with errno == ENOSYS or errno == ENOENT.
77284         Patch from Dmitry V. Levin.
77285
77286         Change the name of the robust chdir function from chdir to chdir_long.
77287         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77288         (restore_cwd): Use chdir_long, not chdir.
77289         * lib/chdir-long.c: Renamed from chdir.c.
77290         * lib/chdir-long.h: Renamed from chdir.h.
77291         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77292         Hurd.
77293
77294 2005-01-18  Bruno Haible  <bruno@clisp.org>
77295
77296         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77297         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77298         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77299         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77300         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77301         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77302         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77303         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77304         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77305         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77306         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77307         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77308         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77309         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77310         Use an all-permissive copyright notice, recommended by RMS.
77311
77312 2005-01-18  Bob Proulx  <bob@proulx.com>
77313
77314         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77315         simplify offsetof() macro construct to avoid compile failure with
77316         native HP-UX 11.0 ANSI C compiler.
77317
77318 2005-01-17  Bruno Haible  <bruno@clisp.org>
77319
77320         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77321         redundant because stpncpy.m4 takes care of it.
77322
77323 2005-01-17  Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77326
77327 2005-01-17  Bruno Haible  <bruno@clisp.org>
77328
77329         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77330         used.
77331
77332 2005-01-17  Bruno Haible  <bruno@clisp.org>
77333
77334         * lib/fwriteerror.h (fwriteerror): Change specification to include
77335         fclose.
77336         * lib/fwriteerror.c: Include <stdbool.h>.
77337         (fwriteerror): At the end, close the file stream. Record whether
77338         stdout was already closed.
77339
77340 2005-01-17  Bruno Haible  <bruno@clisp.org>
77341
77342         * lib/execute.c (environ): Declare if needed.
77343         * lib/pipe.c (environ): Likewise.
77344         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77345
77346 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77347
77348         * modules/argp: Depend on vsnprintf
77349
77350 2005-01-10  Jim Meyering  <jim@meyering.net>
77351
77352         * modules/closeout (Depends-on): Add atexit.
77353
77354 2005-01-06  Bruno Haible  <bruno@clisp.org>
77355
77356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77357
77358 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77361         definitions to be after all include files, to avoid collisions.
77362         Problem reported by Bob Proulx.
77363
77364 2005-01-04  Jim Meyering  <jim@meyering.net>
77365
77366         Changes imported from coreutils.
77367         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77368         as the mkstemp template, use a temporary directory and an
77369         8.3-friendly template to avoid trouble on systems like DJGPP.
77370         Reported by Juan M. Guerrero via Stepan Kasal.
77371         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77372         close. Remove the temporary directory right away, rather than waiting
77373         for configure's at-exit trap code to do it.
77374         Suggestion from Stepan Kasal.
77375
77376 2005-01-01  Simon Josefsson  <jas@extundo.com>
77377
77378         * gnulib-tool: Print #include directives when --import'ing.
77379
77380 2004-12-28  Simon Josefsson  <jas@extundo.com>
77381
77382         * tests/test-base64.c: Include required header files.  Remove
77383         unused variables.
77384
77385 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77386
77387         * modules/error (Depends-on): Remove gettext.
77388
77389 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77392         not needed.  This removes a dependency on the gettext module.
77393         [defined _LIBC]: Do not include <libintl.h>; not needed.
77394
77395 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77398         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77399
77400 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77401
77402         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77403         HAVE_DECL_STRTOLD.
77404
77405 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * modules/getdate (Depends-on): Remove alloca-opt.
77408
77409 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77412
77413 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * lib/argp-parse.c: Include <stddef.h>.
77416         (alignof, alignto): New macros.
77417         (parser_init): Don't assume that void * is aligned sufficiently
77418         for struct option.
77419
77420         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77421         need to extend the stack.
77422         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77423         large.
77424
77425 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77426
77427         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77428
77429 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77432         (2004-10-24) change.  Apparently this was a false alarm.
77433
77434         * modules/getdate: Depend on alloca-opt, not alloca.
77435
77436 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77437
77438         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77439         Remove now-obsolete comment about AIX.
77440         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77441         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77442         (YYMAXDEPTH): New macro.
77443
77444 2004-12-18  Simon Josefsson  <jas@extundo.com>
77445
77446         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77447
77448 2004-12-18  Bruno Haible  <bruno@clisp.org>
77449
77450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77451
77452 2004-12-18  Bruno Haible  <bruno@clisp.org>
77453
77454         * lib/fatal-signal.c (fatal_signals): Make non-const.
77455         (init_fatal_signals): New function.
77456         (uninstall_handlers, install_handlers): Ignore signals that were set to
77457         SIG_IGN.
77458         (at_fatal_signal): Call init_fatal_signals.
77459         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77460         SIG_IGN.
77461         Reported by Paul Eggert.
77462
77463 2004-12-18  Bruno Haible  <bruno@clisp.org>
77464
77465         * doc/alloca.texi: New file.
77466         * doc/alloca-opt.texi: New file.
77467
77468 2004-12-17  Jim Meyering  <jim@meyering.net>
77469
77470         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77471         Otherwise, install-sh could exit with improper exit status when
77472         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77473
77474 2004-12-16  Simon Josefsson  <jas@extundo.com>
77475
77476         * tests/test-base64.c: Add license.
77477
77478 2004-12-15  Stepan Kasal  <address@hidden>
77479
77480         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77481
77482 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77483
77484         * modules/getcwd (Files): Add m4/d-ino.m4.
77485         Suggested by Mark D. Baushke.
77486
77487 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * lib/getdate.y (textint): New member "negative".
77490         (time_zone_hhmm): New function.
77491         Expect 14 shift-reduce conflicts, not 13.
77492         (o_colon_minutes): New rule.
77493         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77494         (yylex): Set the "negative" member of signed numbers.
77495
77496 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77497
77498         * doc/getdate.texi (Time of day items, Time zone items):
77499         Describe new formats +00:00, UTC+00:00.
77500
77501 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77504         spurious "-l"s.  Problem reported by Stepan Kasal.
77505
77506 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77507
77508         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77509         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77510
77511 2004-12-04  Simon Josefsson  <jas@extundo.com>
77512
77513         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77514         Vandoorselaere <yoann@prelude-ids.org>.
77515
77516 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         Changes imported from coreutils.
77519         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77520         exist.
77521         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77522
77523 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77524
77525         Changes imported from coreutils.
77526         * lib/hard-locale.c: Assume <locale.h> exists.
77527         Include "strdup.h".
77528         (GLIBC_VERSION): New macro.
77529         (hard_locale): Assume setlocale exists.
77530         Rewrite to avoid #ifdef.
77531         Use strdup rather than malloc + strcpy.
77532         * lib/human.c: Assume <locale.h> exists.
77533         (human_readable): Assume localeconv exists.
77534
77535 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * modules/hard-locale (Depends-on): Add strdup.
77538
77539 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77540
77541         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77542         convert T2, not T.  (Imported from libc.)
77543
77544 2004-11-30  Simon Josefsson  <jas@extundo.com>
77545
77546         * modules/restrict (License): Change to LGPL.
77547
77548 2004-11-30  Simon Josefsson  <jas@extundo.com>
77549
77550         * m4/restrict.m4: Add copyright and copying conditions.
77551
77552 2004-11-30  Simon Josefsson  <jas@extundo.com>
77553
77554         * m4/base64.m4: New file.
77555
77556 2004-11-30  Simon Josefsson  <jas@extundo.com>
77557
77558         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77559         base64.
77560
77561         * tests/test-base64.c: New file.
77562
77563         * modules/base64: New file.
77564
77565 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77568         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77569
77570         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77571
77572 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77575         (__getcwd.c): Don't restore errno; glibc doesn't.
77576         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77577         first, falling back to our code only if its results look suspicious.
77578         Ensure that the resulting buffer is only as large as necessary.
77579
77580         * lib/readutmp.c: Include readutmp.h first.
77581         Include <errno.h>, since readutmp.h no longer does that.
77582         * lib/readutmp.h: Don't include <errno.h>,
77583         <sys/param.h>, <time.h>; not needed to establish interface.
77584         (errno): Remove decl.
77585         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77586         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77587         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77588
77589 2004-11-28  Simon Josefsson  <jas@extundo.com>
77590
77591         * lib/base64.h, base64.c: New file.
77592
77593 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77596
77597 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77598
77599         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77600         (Depends-on): Remove pathmax, same.  Add mempcpy.
77601         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77602         (Makefile.am): Append getcwd.h to lib_SOURCES.
77603         (Include): Add getcwd.h.
77604         (Maintainer): Change from Jim Meyering to "all, glibc",
77605         since getdate now uses intended-for-glibc code.
77606         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77607         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77608
77609 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77612         HP's ANSI C compiler.
77613         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77614         Declaring int functions causes warnings on some modern systems and
77615         shouldn't be needed to compile on ancient ones.
77616         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77617         defined.
77618
77619         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77620         with the following changes.
77621         (__set_errno): Parenthesize properly.
77622         Include <stdbool.h>.
77623         (MIN, MAX, MATCHING_INO): New macros.
77624         (__getcwd): Define with prototype, not K&R form.
77625         Use heuristics to allocate default buffer on stack if possible.
77626         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77627         behavior, and to avoid the PATH_MAX limit when computing
77628         ../../../../...
77629         Use MATCHING_INO to compare inode number to file.
77630         Check for arithmetic overflow in size calculations.
77631         Fix bug in reallocation of dot array that caused getcwd to fail
77632         on directories nested deeper than 75.
77633         Be more careful about saving errno on error.
77634         Do not use realloc; use only free+malloc, as this is a bit
77635         more flexible and avoids a needless copy operation.
77636         Do not inspect st_dev and st_ino for symbolic links; POSIX
77637         doesn't specify the latter.
77638         Check for closedir errors.
77639         Avoid needless casts.
77640         Use "#ifdef weak_alias" around weak_alias, to be like other
77641         glibc code.
77642         The following changes to getcwd.c have effect only when used in
77643         gnulib; they have no effect inside glibc proper.
77644         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77645         as alloca isn't used.
77646         (alloca, __alloca): Likewise.
77647         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77648         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77649         unconditionally, as gnulib assumes C89 or better.
77650         Do not include <sys/param.h>.
77651         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77652         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77653         better.
77654         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77655         Include <dirent.h> in a way that is compatible with modern Autoconf.
77656         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77657         New macros, if not already defined.
77658         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77659         Use "_LIBC", not "defined _LIBC", for consistency.
77660         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77661         a mempcpy module.
77662         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77663         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77664         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77665         credit only to Jim Meyering and adjust the copyright dates.
77666         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77667         <stdlib.h>, <unistd.h>, "pathmax.h".
77668         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77669         (INITIAL_BUFFER_SIZE): Remove.
77670         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77671
77672 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77673
77674         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77675         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77676         Use the _ONCE methods, for efficiency.
77677         Check for fcntl.h.  In test program, include <errno.h>
77678         and <fcntl.h> if available.  Remove old K&R cruft from
77679         test program.  Check for common errors in GNU/Linux,
77680         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77681         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77682         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77683         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77684         name accordingly.
77685         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77686         accommodate new getcwd.c.
77687         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77688         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77689         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77690         that's all we need now.
77691
77692 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77693
77694         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77695         argp-parse.c depends on getopt internals, that means we should
77696         always use our getopt, to be on the safe side.
77697         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77698         order not to spoil the result of an eventual previous invocation
77699         of gl_GETOPT_SUBSTITUTE.
77700
77701 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77702
77703         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77704         redefinition warnings. To avoid them, include the defines
77705         in `#if !defined __need_getopt ... #endif'. The only place
77706         where __getopt_argv_const is used is in definitions
77707         of getopt_long and getopt_long_only below, which are as well
77708         protected by `#ifndef __need_getopt'.
77709         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77710         __need_getopt after including <stdio.h> and <unistd.h> These
77711         headers might have defined it.
77712
77713 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77716
77717 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77720         (futimens): New function, which uses futimes if available.
77721         (futimens, utimens): Support timespec==NULL, with same semantics
77722         as utime and utimens.
77723         * lib/utimens.h (futimens): New decl.
77724
77725 2004-11-23  Jim Meyering  <jim@meyering.net>
77726
77727         * lib/getopt_.h: Remove trailing blanks.
77728
77729 2004-11-23  Jim Meyering  <jim@meyering.net>
77730
77731         * lib/__fpending.c: Add comment.
77732
77733 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * modules/canonicalize (Depends-on): Add xreadlink.
77736         Problem reported by James Youngman.
77737
77738 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77741         New macros.
77742         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77743         optopt): Use them instead of invoking ## directly; otherwise, the
77744         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77745
77746 2004-11-19  Bruno Haible  <bruno@clisp.org>
77747
77748         * lib/strtok_r.c: Move comments from here...
77749         * lib/strtok_r.h: ... to here.
77750
77751 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77754         implementations that mishandle size_t overflow.
77755
77756 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77759         might fail.  Problem reported by Yoann Vandoorselaere.
77760         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77761         implementations that mishandle size_t overflow.
77762
77763 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * modules/canon-host (Depends-on): Add strdup.
77766
77767 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77770
77771 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * lib/canon-host.c: Include "strdup.h".
77774         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77775         Use strdup instead of malloc/strcpy to duplicate strings.
77776
77777         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77778         (human_space_before_unit): New constant.
77779         * lib/human.c (human_readable): Support it.
77780
77781         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77782         (xgetcwd): Set errno correctly when failing.
77783         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77784         the failure is actually due to a PATH_MAX problem.
77785
77786         Further getopt changes to make it more likely that glibc will
77787         buy the changes back.
77788         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77789         (getopt): Use it, so to preserve glibc semantic
77790         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77791         when compiling for libc.
77792         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77793         (getopt_long, getopt_long_only): Use it.
77794
77795         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77796         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77797         (getopt): Argv is now char * const *, as per standard.
77798         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77799         not char *__getopt_argv_const *.
77800         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77801         _getopt_long_only_r): Likewise.
77802         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77803         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77804         _getopt_long_r, _getopt_long_only_r): Likewise.
77805         * lib/getopt_.h (__getopt_argv_const): Remove.
77806         (getopt): Argv is now char * const *, as per standard.
77807
77808         * lib/getdate.y (tORDINAL): New token.
77809         (day, relunit): Allow it for relative times.
77810         (relative_time_table): Use tORDINAL for ordinals.
77811
77812 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77815         Document that "second" isn't allowed as an ordinal number.
77816
77817 2004-11-16  Jim Meyering  <jim@meyering.net>
77818
77819         * modules/closeout (Depends-on): Add fpending.
77820
77821 2004-11-15  Jim Meyering  <jim@meyering.net>
77822
77823         * lib/closeout.c: Include "__fpending.h" once again.
77824         Include <stdbool.h>.
77825         (close_stdout): Don't fail just because stdout was closed initially,
77826         since some programs don't write to stdout in the normal course of
77827         operation (other than --version and --help), and we don't want this
77828         function to make e.g. `touch file >&-' fail.
77829         But do fail if it was closed and someone has tried to write to it.
77830         E.g., `printf foo >&-' must fail.
77831
77832 2004-11-13  Jim Meyering  <jim@meyering.net>
77833
77834         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77835
77836 2004-11-12  Simon Josefsson  <jas@extundo.com>
77837
77838         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77839         small doc fix is still pending.
77840
77841 2004-11-11  Simon Josefsson  <jas@extundo.com>
77842
77843         * modules/strtok_r: New file.
77844
77845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77846         strtok_r.
77847
77848 2004-11-11  Simon Josefsson  <jas@extundo.com>
77849
77850         * m4/strtok_r.m4: New file.
77851
77852         * m4/getopt.m4: Replace opterr.
77853
77854 2004-11-11  Simon Josefsson  <jas@extundo.com>
77855
77856         * lib/strtok_r.h, strtok_r.c: New file.
77857
77858 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77859
77860         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77861         of replacing opterr, getopt, etc.  This should handle the
77862         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77863
77864 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77867         we can stop lying to compilers about the constness of argv when we
77868         are compiled outside glibc.
77869         (getopt, getopt_long, getopt_long_only): Use it.
77870         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77871         _getopt_internal, getopt): Likewise.
77872         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77873         _getopt_long_only_r): Likewise.
77874         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77875         _getopt_long_r, _getopt_long_only_r): Likewise.
77876
77877         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77878         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77879         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77880         the other external symbols.
77881         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77882         declaration, since the above renaming now works around collisions.
77883
77884 2004-11-11  Jim Meyering  <jim@meyering.net>
77885
77886         * lib/linebreak.c: Remove trailing blanks.
77887         * lib/alloca_.h: Likewise.
77888         * lib/acosl.c: Likewise.
77889         * lib/euidaccess.c: Likewise.
77890         * lib/allocsa.h: Likewise.
77891
77892 2004-11-10  Simon Josefsson  <jas@extundo.com>
77893
77894         * m4/getaddrinfo.m4: New file.
77895
77896 2004-11-10  Simon Josefsson  <jas@extundo.com>
77897
77898         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77899
77900 2004-11-10  Simon Josefsson  <jas@extundo.com>
77901
77902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77903         getaddrinfo.
77904
77905         * modules/getaddrinfo: New file.
77906
77907 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77910
77911 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77912
77913         * lib/mktime.c (SHR): New macro, which is a portable
77914         substitute for >> that should work even on Crays.
77915         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77916         Problem reported by Mark D. Baushke in
77917         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77918         * lib/getdate.y (SHR): Likewise.
77919         (tm_diff): Use it.
77920         * lib/strftime.c (SHR): Likewise.
77921         (tm_diff): Use it.
77922         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77923         quote_these_too, so that right shifts are well defined.  All uses
77924         changed.
77925
77926 2004-11-10  Jim Meyering  <jim@meyering.net>
77927
77928         Ensure that no close failure goes unreported.
77929         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77930         return early when it seems there's nothing to flush.
77931         Don't include __fpending.h.
77932
77933 2004-11-10  Jim Meyering  <jim@meyering.net>
77934
77935         * modules/closeout (Depends-on): Remove fpending.
77936
77937 2004-11-10  Jim Meyering  <jim@meyering.net>
77938
77939         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77940
77941 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77944         gl_FUNC_STRFTIME.
77945         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77946         and AC_REQUIRE when possible, to avoid duplicate checks.
77947         Check for <wchar.h>.
77948
77949 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77952
77953 2004-11-09  Bruno Haible  <bruno@clisp.org>
77954
77955         * m4/sockpfaf.m4: New file.
77956
77957 2004-11-05  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77960         Reported by Mark D. Baushke <mdb@cvshome.org>.
77961
77962 2004-11-04  Bruno Haible  <bruno@clisp.org>
77963
77964         2004-09-11  Bruno Haible  <bruno@clisp.org>
77965                 * allocsa.valgrind: New file.
77966         2004-02-06  Bruno Haible  <bruno@clisp.org>
77967                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77968                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77969                 Reported by Christopher Seip <chris.seip@hp.com>.
77970
77971 2004-11-04  Bruno Haible  <bruno@clisp.org>
77972
77973         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77974         (Makefile.am): Distribute it.
77975
77976 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77979         with errno == ERANGE if the buffer is too small.
77980         Problem reported by Mark D. Baushke.
77981
77982 2004-11-03  Albert Chin  <china@thewrittenword.com>
77983             Paul Eggert  <eggert@cs.ucla.edu>
77984
77985         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77986         equivalent, substitute $ac_type for equivalent type rather than
77987         blindly using uint32_t *always* which won't work if uint32_t is not
77988         available.  Define _UINT32_T to work around typedef of uint32_t if
77989         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77990         2.5.1.
77991
77992 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77993
77994         * m4/jm-macros.m4: Sync from coreutils.
77995         (gl_MACROS): Check for mbrlen, for pathchk.
77996         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77997
77998 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * lib/xreadlink.c (MAXSIZE): New macro.
78001         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78002         size does not exceed MAXSIZE.  Avoid cast.
78003         As suggested by Mark D. Baushke in
78004         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78005         if readlink fails with buffer size just under MAXSIZE, try again
78006         with MAXSIZE.
78007
78008 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78011
78012 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78013         and  Paul Eggert  <eggert@cs.ucla.edu>
78014
78015         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78016         (get_date): Overparenthesize to avoid GCC warning.
78017
78018 2004-11-02  Bruno Haible  <bruno@clisp.org>
78019
78020         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78021         returns void.
78022
78023 2004-11-02  Bruno Haible  <bruno@clisp.org>
78024
78025         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78026         function returns void.
78027
78028 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78031         fflush_unlocked, flockfile, funlockfile, funlockfile,
78032         fputs_unlocked, putc_unlocked.
78033
78034 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78037         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78038         already declared.
78039
78040 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * modules/getdate (Files): Add doc/getdate.texi.
78043         (Depends-on): Add setenv, xalloc.
78044
78045 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * lib/getdate.y: Add support for TZ="foo" within a date string.
78048         Fix some bugs near time_t boundaries.  Reject dates with
78049         out-of-range components, e.g., "Sept 31".
78050         Include <stdlib.h>, "setenv.h", "xalloc.h".
78051         (ISDIGIT_LOCALE): Remove; unused.
78052         Note that the TZ and time functions used here are not reentrant.
78053         (mktime_ok, get_tz): New functions.
78054         (TZBUFSIZE): New constant.
78055         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78056         This requires that we sometimes generate our own TZ="XXX..." setting.
78057
78058 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78059
78060         * doc/getdate.texi: New file, from coreutils with modifications for
78061         the new TZ parsing.
78062
78063 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78064
78065         * lib/mktime.c (not_equal_tm): Remove redundant check.
78066
78067 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * modules/regex (lib_SOURCES): Add regex.c.
78070         Reported by James Youngman in
78071         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78072
78073 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/getdate.y: Use Bison 1.875 features, and some minor
78076         code cleanups.  This change does not affect semantics.
78077         Don't include <stdlib.h>; no longer needed.
78078         Don't include unlocked-io.h; only the "#if TEST" code uses
78079         stdio, and performance isn't crucial there.
78080         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78081         Bison 1.875 features as described below.
78082         All uses of "PC." replaced by "pc->".
78083         (YYSTYPE): Add a forward declaration.
78084         (yylex, yyerror): Use full prototypes in forward decls.
78085         Use "%pure-parser" rather than obsolescent "%pure_parser".
78086         Use %parse-param and %lex-param instead of obsolescent
78087         YYPARSE_PARAM and YYLEX_PARAM.
78088         (meridian_table, month_and_day_table, time_units_table,
78089         relative_time_table, time_zone_table, military_table,
78090         lookup_zone, lookup_word, get_date):
78091         Use NULL instead of 0 where appropriate.
78092         (to_hour): Avoid abort (), to avoid a dependency on
78093         stdlib.h.
78094         (yyerror, yylex): Now accepts parser_control * arg.
78095         (main) [TEST]: Use '\0' rather than 0 for char.
78096
78097 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78100
78101 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78102
78103         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78104         It's now the caller's responsibility to handle the case where
78105         !HAVE_GETPAGESIZE && !defined getpagesize.
78106
78107         * lib/mktime.c (leapyear): Arg is long int, not int.
78108
78109 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78112
78113 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78116         missing.  Problem reported by James Youngman.
78117
78118 2004-10-16  Simon Josefsson  <jas@extundo.com>
78119
78120         * gnulib-tool: Fix comments.  Fix parse problem.
78121         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78122
78123 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78126         implementation of getopt_long.  Problem reported by Alexander Taler in:
78127         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78128
78129 2004-10-15  Bruno Haible  <bruno@clisp.org>
78130
78131         * gnulib-tool: Untabify. Initialize supplied_libname.
78132         (func_usage): More homogenous output.
78133         (func_modules_transitive_closure, func_modules_to_filelist,
78134         func_emit_lib_Makefile_am): New functions.
78135         (func_import): New function, extracted from big case statement. Use
78136         func_get_license, func_modules_transitive_closure,
78137         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78138         opt_lgpl. Don't use test -a, as it's not portable.
78139         (func_create_testdir): Use func_modules_transitive_closure,
78140         func_modules_to_filelist, func_emit_lib_Makefile_am.
78141
78142 2004-10-15  Bruno Haible  <bruno@clisp.org>
78143
78144         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78145
78146 2004-10-15  Bruno Haible  <bruno@clisp.org>
78147
78148         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78149         the portions belonging to each module.
78150         Suggested by Derek Robert Price <derek@ximbiot.com>.
78151
78152 2004-10-12  Simon Josefsson  <jas@extundo.com>
78153
78154         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78155         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78156         to real functions.
78157
78158 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78159
78160         * modules/vsnprintf: New file.
78161
78162 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78163
78164         * m4/vsnprintf.m4: New file.
78165
78166 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78167
78168         * lib/vsnprintf.h: New file.
78169         * lib/vsnprintf.c: New file.
78170
78171 2004-10-11  Bruno Haible  <bruno@clisp.org>
78172
78173         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78174         vsnprintf.
78175
78176 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78179
78180 2004-10-07  Bruno Haible  <bruno@clisp.org>
78181
78182         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78183         fits into the provided buffer.
78184
78185 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78186
78187         * lib/diacrit.c, diacrit.h: Add GPL notice.
78188
78189         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78190         notice.
78191         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78192         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78193         This avoids a potential constant-folding bug.
78194
78195 2004-10-05  Bruno Haible  <bruno@clisp.org>
78196
78197         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78198         for the declaration of strsep.
78199
78200 2004-10-05  Bruno Haible  <bruno@clisp.org>
78201
78202         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78203
78204 2004-10-04  Simon Josefsson  <jas@extundo.com>
78205
78206         * modules/memmem: New file.
78207         * tests/test-memmem.c: New file.
78208         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78209
78210 2004-10-04  Simon Josefsson  <jas@extundo.com>
78211
78212         * m4/memmem.m4: New file.
78213
78214 2004-10-04  Simon Josefsson  <jas@extundo.com>
78215
78216         * lib/memmem.h: New file.
78217         * lib/memmem.c: New file, taken from glibc.
78218
78219 2004-10-04  Simon Josefsson  <jas@extundo.com>
78220
78221         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78222         '#ifdef USE_UNLOCKED_IO'.
78223
78224 2004-10-04  Simon Josefsson  <jas@extundo.com>
78225
78226         * config/srclist.txt: Add memmem from glibc.
78227
78228 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78231
78232         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78233         modules/exclude, modules/getdate, modules/getline,
78234         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78235         modules/getusershell, modules/linebuffer, modules/md5,
78236         modules/mountlist, modules/posixtm, modules/readtokens,
78237         modules/readutmp, modules/regex, modules/sha1,
78238         modules/version-etc, modules/yesno:
78239         Remove dependency on unlocked-io.
78240
78241 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78242
78243         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78244
78245         * m4/unlocked-io.m4: Add copyright notice.
78246         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78247
78248 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78251         * lib/xmalloc.c (xmemdup): Likewise.
78252         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78253         XFREE): Remove these long-obsolescent macros.
78254         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78255         * lib/xstrdup.c: Remove.
78256
78257         * lib/regex.c (re_comp): Cast gettext return value to char *,
78258         Problem reported by Martin Neitzel via Mark D. Baushke.
78259
78260 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78263         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78264         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78265         regex.c, sha1.c, version-etc.c, yesno.c:
78266         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78267         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78268         the includer's responsibility.
78269
78270         Sync from coreutils.
78271
78272         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78273         points to the start of a string, as the C Standard says the
78274         resulting behavior is undefined.
78275
78276         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78277         simple -> simple_backups, numbered_existing ->
78278         numbered_existing_backups, numbered -> numbered_backups
78279         to avoid shadowing problems.  All uses changed.
78280         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78281         * lib/backupfile.c (check_extension, numbered_backup):
78282         Rename locals to avoid shadowing 'basename'.
78283         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78284         once.
78285
78286         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78287         * lib/.cvsignore: Add getopt.h.
78288
78289 2004-10-04  Bruno Haible  <bruno@clisp.org>
78290
78291         * modules/README: New file.
78292         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78293         not a module.
78294
78295 2004-10-02  Jim Meyering  <jim@meyering.net>
78296
78297         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78298
78299 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78300
78301         * modules/strsep: New file.
78302
78303 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78304
78305         * m4/strsep.m4: New file.
78306
78307 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78308
78309         * lib/strsep.h: New file.
78310         * lib/strsep.c: New file.
78311
78312 2004-10-01  Simon Josefsson  <jas@extundo.com>
78313
78314         * lib/snprintf.c (snprintf): Handle size==0.
78315
78316 2004-10-01  Simon Josefsson  <jas@extundo.com>
78317             Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78320         (snprintf): Declare 'args'.
78321
78322 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * lib/snprintf.c: Remove comments as to why each header is needed.
78325
78326 2004-10-01  Bruno Haible  <bruno@clisp.org>
78327
78328         * MODULES.html.sh: Add strsep.
78329
78330 2004-09-30  Simon Josefsson  <jas@extundo.com>
78331
78332         * modules/snprintf: New file.
78333
78334 2004-09-30  Simon Josefsson  <jas@extundo.com>
78335
78336         * m4/snprintf.m4: New file.
78337
78338 2004-09-30  Simon Josefsson  <jas@extundo.com>
78339
78340         * lib/snprintf.h, lib/snprintf.c: New files.
78341
78342 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78343
78344         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78345         (hol_entry_help): Never translate an empty string.
78346         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78347         * lib/argp.h (OPTION_NO_TRANS): New option.
78348
78349 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78350
78351         * modules/argp (Maintainer): Replace Simon Josefsson
78352         by Sergey Poznyakoff.
78353
78354 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78357         changes merged back into glibc.
78358
78359 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78362
78363 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78364
78365         * lib/xvasprintf.c: Include xalloc.h.
78366         (xvasprintf): Use xalloc_die, not xmalloc_die.
78367
78368 2004-09-29  Bruno Haible  <bruno@clisp.org>
78369
78370         * modules/alloca-opt: New file, derived from modules/alloca.
78371         * modules/allocsa: Depend on alloca-opt instead of alloca.
78372         * modules/setenv: Likewise.
78373         * modules/vasnprintf: Likewise.
78374         * MODULES.html.sh: Add alloca-opt.
78375
78376 2004-09-28  Simon Josefsson  <jas@extundo.com>
78377
78378         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78379         LGPL, and to replace license template from GPL to LGPL.
78380
78381 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * modules/dummy: Change license to LGPL.
78384
78385 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78388
78389 2004-09-24  Simon Josefsson  <jas@extundo.com>
78390
78391         * modules/minmax (License): Change from GPL to LGPL.
78392
78393 2004-09-23  Simon Josefsson  <jas@extundo.com>
78394
78395         * gnulib-tool (--import): Typo.
78396
78397 2004-09-23  Simon Josefsson  <jas@extundo.com>
78398
78399         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78400
78401 2004-09-22  Bruno Haible  <bruno@clisp.org>
78402
78403         * modules/*: Add 'License' field.
78404         * gnulib-tool: Accept --extract-license option.
78405         (func_get_license): New function.
78406
78407 2004-09-21  Bruno Haible  <bruno@clisp.org>
78408
78409         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78410         Reported by Simon Josefsson.
78411
78412 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78413
78414         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78415         gl_AC_TYPE_LONG_LONG.
78416
78417 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78420
78421 2004-09-18  Simon Josefsson  <jas@extundo.com>
78422         and  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78425         calls with autoreconf.  Define GL_LIB.
78426
78427 2004-09-14  Karl Berry  <karl@gnu.org>
78428
78429         * config/srclist.txt: unsync setenv.c, sigh.
78430
78431 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78432
78433         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78434         Problem reported by Bruno Haible in:
78435         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78436
78437 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78438
78439         * config/srclist.txt: Comment out argp-pvh.c.
78440
78441 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78444         in case some system header has #define'd it.  Problem reported by
78445         Soeren D. Schulze in
78446         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78447
78448 2004-09-09  Karl Berry  <karl@gnu.org>
78449
78450         * regex.[ch]: delete from the root.  These were supposed to be
78451                 synced with emacs cvs, but this has not happened for about
78452                 a year, and anyway nothing else uses emacs regex.[ch].
78453                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78454                 lib/regex[.ch] is untouched.
78455
78456 2004-09-09  Bruno Haible  <bruno@clisp.org>
78457
78458         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78459
78460 2004-09-09  Bruno Haible  <bruno@clisp.org>
78461
78462         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78463         modifications.
78464         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78465
78466 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78467
78468         * modules/xvasprintf: New file.
78469         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78470
78471 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78472
78473         * lib/xvasprintf.h: New file.
78474         * lib/xvasprintf.c: New file.
78475         * lib/xasprintf.c: New file.
78476
78477 2004-09-08  Bruno Haible  <bruno@clisp.org>
78478
78479         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78480
78481 2004-09-08  Bruno Haible  <bruno@clisp.org>
78482
78483         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78484         length is > INT_MAX.
78485         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78486         more.
78487
78488 2004-09-08  Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/stdint_.h: New file, taken from GNU clisp.
78491
78492 2004-09-08  Bruno Haible  <bruno@clisp.org>
78493             Oskar Liljeblad  <oskar@osk.mine.nu>
78494
78495         * modules/stdint: New file.
78496         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78497
78498 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         Import from coreutils.
78501         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78502         strings on unbounded length.  alloca's performance benefits aren't
78503         that important here.
78504         (V_STRDUP): Remove.
78505         (parse_with_separator): New function, with most of the internals
78506         of the old parse_user_spec.  Allow user to omit both user and group,
78507         for compatibility with FreeBSD.
78508         Clone only the user name, not the entire spec.
78509         Do not set *uid, *gid unless entirely successful.
78510         Avoid memory leak in some failing cases.
78511         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78512         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78513         (parse_user_spec): Rewrite to use parse_with_separator.
78514
78515 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78516
78517         * modules/userspec: Don't depend on alloca.
78518
78519 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78522
78523 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78526         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78527         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78528
78529 2004-08-16  Simon Josefsson  <jas@extundo.com>
78530
78531         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78532         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78533         Add --dry-run for --import.
78534         Let user provided command line parameters override configure.ac
78535         settings.
78536
78537 2004-08-12  Simon Josefsson  <jas@extundo.com>
78538
78539         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78540         as discussed with Paul Eggert in threads rooted at
78541         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78542         and
78543         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78544         Before, the test was empty, and relied on ELIDE_CODE in source
78545         code.)
78546         (gl_PREREQ_GETOPT): New macro.
78547         (gl_GETOPT): Use them.
78548
78549 2004-08-12  Simon Josefsson  <jas@extundo.com>
78550
78551         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78552         * lib/getopt_.h: Renamed from getopt.h.
78553
78554 2004-08-12  Simon Josefsson  <jas@extundo.com>
78555
78556         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78557         Change default library name from libfoo to libgnu.
78558         Now, if you have a configure.ac that says:
78559                 gl_SOURCE_BASE(gl)
78560                 gl_M4_BASE(gl/m4)
78561                 gl_MODULES(error getopt etcetera)
78562                 gl_INIT
78563         you can import all you need by running:
78564                 ../gnulib/gnulib-tool --import
78565
78566         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78567         (Makefile.am): Rewrite, use logic from argz.
78568         (Include): Use <getopt.h> instead of "getopt.h".
78569
78570 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * modules/argp (Files): Add m4/unlocked-io.m4.
78573         (Depends-on): Add extensions.
78574
78575 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78576
78577         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78578         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78579         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78580         Check for program_invocation_name, program_invocation_short_name,
78581         flockfile, funlockfile, features.h, _getopt_long_only_r.
78582
78583 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78586         its complicated substitute.
78587         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78588         and program_invocation_name.
78589         (__argp_basename) [!_LIBC]: Remove; the only use was
78590         replaced by its body.
78591         (__argp_short_program_name): Change condition from
78592         !defined __argp_short_program_name to
78593         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78594         to match argp-namefrob.h.
78595         (__argp_failure): Don't assume strerror_r returns char *.
78596         * lib/argp-parse.c (N_): Define unconditionally.
78597         (argp_default_options): Fill out initializers with 0 to avoid
78598         gcc warnings.
78599
78600 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78603         getopt1.c.
78604
78605 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78606
78607         Merge from coreutils.
78608
78609         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78610
78611         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78612         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78613
78614 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         Merge from coreutils.
78617
78618         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78619         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78620         for Reliant Unix 5.43.
78621
78622         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78623         (union fooround): Use uintmax_t, not long int.
78624         The rest is a merge from libc:
78625         [defined _LIBC]: Include <shlib-compat.h>.
78626         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78627
78628         * lib/settime.c (settime): Recode to avoid warning with
78629         Sun Forte C 6U2.
78630
78631         * lib/strverscmp.c: Convert to UTF-8.
78632
78633 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78636         m4/uintmax_t.m4.
78637
78638 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * modules/xalloc-die: New file.
78641         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78642
78643         * modules/md5 (Files): Add m4/uint32_t.m4.
78644         * modules/sha1: Renamed from modules/sha.
78645         (Files):
78646         Rename lib/sha.h to lib/sha1.h.
78647         Rename lib/sha.c to lib/sha1.c.
78648         Rename m4/sha.m4 to m4/sha1.m4.
78649         (lib_SOURCES): Likewise.
78650         (configure.ac): Rename gl_SHA to gl_SHA1.
78651         (Include): sha.h -> sha1.h.
78652
78653 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78656         * m4/sha1.m4: Renamed from sha.m4.
78657         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78658
78659 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78660
78661         * lib/obstack.h (obstack_empty_p):
78662         Don't assume that chunk->contents is suitably aligned.
78663         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78664         Likewise. Problem reported by Benno in
78665         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78666
78667         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78668         readable.  This could be improved further but it'd take some work.
78669
78670 2004-08-08  Simon Josefsson  <jas@extundo.com>
78671
78672         * modules/xgethostname (Depends-on): Remove exit and error (not
78673         used).
78674
78675         * modules/getpass-gnu: Add getpass.h.
78676         (Depends-on): Add stdbool.
78677         * modules/getpass: Add getpass.h.
78678
78679 2004-08-08  Simon Josefsson  <jas@extundo.com>
78680
78681         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78682         Check getpass declaration.
78683
78684 2004-08-08  Simon Josefsson  <jas@extundo.com>
78685
78686         * lib/xgethostname.c: Don't include error.h (not used).
78687
78688         * lib/getpass.h: Add.
78689         * lib/getpass.c: Include getpass.h first.
78690
78691 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * lib/xalloc-die.c: New file.
78694         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78695         All uses removed.
78696         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78697         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78698         xalloc-die.c.
78699         (_, N_, xalloc_die): Move to xalloc-die.c.
78700         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78701         so that we needn't mess with xalloc_msg_memory_exhausted.
78702
78703         * lib/sha1.h: Renamed from sha.h.
78704         (SHA1_H): Renamed from _SHA_H.
78705         (sha1_ctx): Renamed from sha_ctx.
78706         (sha1_init_ctx): Renamed from sha_init_ctx.
78707         (sha1_process_block): Renamed from sha_process_block.
78708         (sha1_process_bytes): Renamed from sha_process_bytes.
78709         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78710         (sha1_read_ctx): Renamed from sha_read_ctx.
78711         (sha1_stream): Renamed from sha_stream.
78712         (sha1_buffer): Renamed from sha_buffer.
78713         * lib/sha1.c: Likewise; renamed from sha.c.
78714         Do not include <sys/types.h>.
78715         Include <stddef.h> rather than <stdlib.h>.
78716
78717 2004-08-08  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78720         FILESYSTEM_PREFIX_LEN.
78721         * lib/progreloc.c: Likewise.
78722         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78723
78724 2004-08-06  Simon Josefsson  <jas@extundo.com>
78725
78726         * modules/progname (Depends-on): Don't depend on stdbool.
78727
78728 2004-08-06  Simon Josefsson  <jas@extundo.com>
78729
78730         * modules/getsubopt: New file.
78731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78732         getsubopt.
78733
78734 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78735
78736         More merge from coreutils.
78737
78738         * m4/utimens.m4, m4/utimecmp.m4: New files.
78739         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78740         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78741         prereq.m4, sha.m4: Import changes from coreutils.
78742
78743 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         More merge from coreutils.
78746         * modules/raise, modules/readtokens0, modules/utimens:
78747         * modules/utimecmp, module/xnanosleep: New files.
78748         * modules/strftime: Add lib/strftime.h.
78749         Change include from <time.h> to "strftime.h".
78750         * modules/yesno: Add lib/yesno.h.
78751         * modules/backupfile: Remove lib/addext.c.
78752         * modules/euidaccess: Add stat-macros.h.
78753         * modules/canonicalize, modules/euidaccess,
78754         modules/filemode, modules/lchown, modules/makepath,
78755         modules/rmdir, modules/stat: Likewise.
78756
78757 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         Merge from tar.
78760         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78761         SIZE_MAX is a valid preprocessor constant.
78762         (__argp_basename): Change from "#ifndef _LIBC"
78763         to "#ifndef __argp_short_program_name", so that
78764         we don't compile these functions for tar.
78765
78766         More merges from coreutils.
78767         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78768         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78769         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78770         * lib/addext.c: Remove; no longer needed.
78771         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78772         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78773         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78774         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78775         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78776         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78777         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78778         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78779         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78780         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78781         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78782         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78783         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78784         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78785         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78786         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78787         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78788         Import changes from coreutils.
78789
78790 2004-08-05  Simon Josefsson  <jas@extundo.com>
78791
78792         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78793
78794 2004-08-05  Simon Josefsson  <jas@extundo.com>
78795
78796         * m4/getsubopt.m4: New file.
78797
78798 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78799
78800         Merge from coreutils.
78801
78802         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78803         * m4/getcwd-path-max.m4: New files.
78804
78805         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78806         FILESYSTEM_PREFIX_LEN ->
78807         FILE_SYSTEM_PREFIX_LEN.
78808         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78809         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78810         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78811         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78812
78813         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78814         prerequisite modules now handle the DOS stuff.
78815         Don't check for unistd.h.
78816
78817 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         Merge from coreutils.
78820
78821         * lib/.gdb-history: Remove; this doesn't belong here.
78822
78823         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78824         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78825         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78826         * lib/getcwd.c: New files.
78827
78828         * lib/dirname.h: Include <stdbool.h>.
78829         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78830         for consistency with POSIX terminology.  All uses changed.
78831         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78832         (strip_trailing_slashes): Use bool for booleans.
78833         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78834
78835         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78836         sometimes returns a positive errno value even when it succeeds.
78837         (print_errno_message) [!LIBC]: Fall back on strerror if
78838         __strerror_r fails.
78839
78840         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78841         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78842         (longest_relative_suffix): New function.
78843         (path_concat): Use it.  Assume first argument is not NULL.
78844         Port to DOS.  Omit redundant separators.
78845         Report an error instead of returning NULL.
78846         Use mempcpy instead of memcpy.
78847         (xpath_concat): Remove: not declared or used.
78848
78849         * lib/same.h: Include <stdbool.h>
78850         (same_name): Return bool, not int.
78851         * lib/same.c (same_name): Likewise.
78852         (errno): Don't declare; we assume C89 or better now.
78853
78854         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78855         if not already defined.
78856
78857         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78858         * lib/dup-safer.c (errno): Likewise.
78859
78860 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78861
78862         Merge from coreutils.
78863         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78864         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78865         * modules/path-concat: Don't depend on strdup.
78866
78867 2004-08-03  Simon Josefsson  <jas@extundo.com>
78868
78869         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78870         * lib/progname.h: Don't include stdbool.h.
78871
78872 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78873
78874         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78875         * MODULES.html.sh (func_all_modules): Remove fatal.
78876
78877 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78880
78881 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78884         working.
78885
78886 2004-08-02  Simon Josefsson  <jas@extundo.com>
78887
78888         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78889         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78890         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78891
78892 2004-08-01  Simon Josefsson  <jas@extundo.com>
78893
78894         * lib/xgetdomainname.c: Include stdlib.h, for free().
78895
78896 2004-07-19  Bruno Haible  <bruno@clisp.org>
78897
78898         * MODULES.html.sh (func_all_modules): Add dummy.
78899
78900 2004-07-16  Simon Josefsson  <jas@extundo.com>
78901
78902         * modules/dummy: New file.
78903
78904 2004-07-16  Simon Josefsson  <jas@extundo.com>
78905
78906         * lib/dummy.c: New file.
78907
78908 2004-07-16  Bruno Haible  <bruno@clisp.org>
78909
78910         * lib/backupfile.h: Add extern "C" for C++.
78911         * lib/closeout.h: Likewise.
78912         * lib/copy-file.h: Likewise.
78913         * lib/findprog.h: Likewise.
78914         * lib/full-write.h: Likewise.
78915         * lib/pathname.h: Likewise.
78916         * lib/progname.h: Likewise.
78917         * lib/stpcpy.h: Likewise.
78918         * lib/stpncpy.h: Likewise.
78919         * lib/strcase.h: Likewise.
78920         * lib/strstr.h: Likewise.
78921         * lib/xalloc.h: Likewise.
78922
78923         * lib/mbswidth.h: Add extern "C" for C++.
78924         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78925
78926 2004-07-13  Robert Millan  <robertmh@gnu.org>
78927
78928         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78929
78930 2004-07-09  Simon Josefsson  <jas@extundo.com>
78931
78932         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78933         failed without this.)
78934
78935 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78936
78937         * modules/chown (Files): Add lib/fchown-stub.c, since
78938         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78939
78940 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * lib/fchown-stub.c: New file.
78943
78944 2004-06-24  Jim Meyering  <jim@meyering.net>
78945
78946         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78947
78948 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * modules/argz: Omit "#include".
78951
78952         * MODULES.html.sh (func_all_modules): Add calloc, to match
78953         2004-06-01 addition of calloc module.
78954
78955 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * m4/argz.m4: New file, which is autoupdated from libtool.
78958
78959 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78962         libtool.
78963
78964 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * config/srclist-update: Don't insist on "USA." before the
78967         close-comment, as libtool omits the period and puts the */ on a
78968         separate line.
78969         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78970         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78971
78972 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78973
78974         * modules/argz: New file.
78975         * MODULES.html.sh (func_all_modules): Add argz.
78976
78977 2004-06-12  Jim Meyering  <jim@meyering.net>
78978         and  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * modules/hash (Files): Add lib/xalloc.h.
78981         * modules/pipe (Depends-on): Add wait-process.
78982         * modules/stat (Depends-on): Add xalloc.
78983         * modules/userspec (Files): Add lib/userspec.h.
78984         * modules/xstrto
78985
78986         Upgrade from gettext-0.13.
78987         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78988         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78989         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78990
78991 2004-06-10  Jim Meyering  <jim@meyering.net>
78992
78993         * lib/calloc.c: New file.
78994
78995 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * lib/getdate.y (yylex): Allow space between sign and number.
78998         Problem reported by Dan Jacobson.
78999
79000 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         Merge from coreutils CVS.
79003
79004         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79005         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79006         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79007         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79008         xstrtol.m4: Fix copyright date and/or serial number.
79009
79010         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79011         See if we need an fchown replacement.
79012         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79013         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79014         and use the replacement function if we detect either defect.
79015
79016         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79017         gl_UTIMECMP.
79018
79019 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79020         and  Jim Meyering  <jim@meyering.net>
79021
79022         Merge from coreutils CVS.
79023
79024         * lib/stat-macros.h: New file, with contents from file-type.h
79025         and coreutils' system.h.
79026         * lib/file-type.c: Include "stat-macros.h".
79027         * lib/file-type.h (file_type): Move all macro definitions to new file,
79028         stat-macros.h.
79029
79030         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79031         Wrap old code with this conditional.
79032         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79033         function that does not dereference symlinks.
79034         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79035
79036         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79037         dependency problems.
79038         (xreadlink): Accept new arg SIZE, for efficiency.
79039         All decls and uses changed.
79040         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79041
79042         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79043         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79044
79045         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79046         sysexits.h.
79047
79048 2004-06-01  Jim Meyering  <jim@meyering.net>
79049
79050         * m4/calloc.m4: New file.
79051
79052 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79055         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79056         Also, fix a typo in a diagnostic.
79057
79058 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79059
79060         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79061         or AC_FUNC_REALLOC.
79062
79063 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79064
79065         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79066         macros to be defined.
79067         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79068         the allocator returns NULL because the requested size is zero.
79069
79070 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79073         var.  Add comment explaining why libc still defines it.  This
79074         merges the following patch from glibc:
79075         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79076
79077 2004-05-20  Andreas Schwab  <schwab@suse.de>
79078
79079         * m4/free.m4: Replace free if it not known to work, not the other
79080         way round.
79081
79082 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79085         present in glibc since revision 1.1 of this file.
79086         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79087         obstack_alignment_mask, obstack_alloc, obstack_base,
79088         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79089         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79090         obstack_grow0, obstack_init, obstack_int_grow,
79091         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79092         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79093         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79094         nonexistent functions.
79095
79096 2004-05-18  Karl Berry  <karl@gnu.org>
79097
79098         * config/srclist.txt: break link for vasnprintf.c.
79099
79100 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79101
79102         Port obstack to the AS/400, where pointers are 16 bytes wide and
79103         you cannot cast an integer to a valid pointer.  This patch is
79104         currently waiting to be integrated into glibc; see
79105         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79106
79107         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79108         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79109         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79110         (struct obstack): temp member is now a union of a pointer and
79111         an integer, instead of an integer.  All integer uses changed.
79112         This does not affect the physical layout of struct obstack,
79113         except on hosts (like the AS/400) where the size or alignment of
79114         void * is greater than that of ptrdiff_t.
79115         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79116         __STDC__)]: Store temporary in pointer member of union, not
79117         integer member.
79118         * lib/obstack.c: Include <stddef.h>, for offsetof.
79119         (struct fooalign): Remove; it doesn't need a name.
79120         (union fooround): Change double to long double, and add void *.
79121         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79122         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79123         not a macro.  Hence the values are always int; so remove all
79124         casts-to-int in uses.
79125
79126 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79127
79128         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79129         we can get this patch merged into glibc.
79130
79131 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79132             Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         * m4/argp: Depend on alloca.
79135
79136 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79137             Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79140         freecoding.
79141
79142 2004-05-17  Bruno Haible  <bruno@clisp.org>
79143
79144         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79145         precision that consists of a '.' followed by an empty digit string.
79146         Patch by Tor Lillqvist <tml@iki.fi>.
79147
79148 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79149
79150         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79151         for backward compatibility with older code.  We need our own
79152         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79153         it under some other name, and our alloca.h will define it.
79154
79155 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79156             Derek Price  <derek@ximbiot.com>
79157
79158         * lib/alloca.c: Include <alloca.h>, to get our interface.
79159         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79160         include <alloca.h> first.  Use C89 prototype for alloca; this
79161         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79162         Use #elif for simplicity, since we can assume C89 now.
79163         Don't try to source the system alloca.h since it will not be found
79164         and to prevent recursively including its replacement.
79165         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79166         * lib/regex.c: Likewise.
79167
79168 2004-05-16  Derek Price  <derek@ximbiot.com>
79169             Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         getline cleanup.  This changes the getndelim2 API: both order of
79172         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79173         no delimiter).
79174
79175         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79176         interface does that.
79177         (getline): Always use getdelim, so that we don't have two
79178         copies of this code.
79179         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79180         if available.
79181         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79182         (GETNDELIM2_MAXIMUM): New macro.
79183         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79184         instead of the old practice of delim2==0.  All callers changed.
79185         Return -1 on overflow, instead of returning junk.
79186         Do not set *linesize unless allocation succeeds.
79187         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79188         that we include sys/types.h.
79189         * lib/getnline.h: Likewise.
79190         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79191         (getndelim2): Reorder arguments.
79192         * lib/getnline.c (getnline, getndelim):
79193         Don't discard the NMAX argument.
79194         (getnline): Invoke getndelim, to avoid code duplication.
79195         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79196         of (size_t) -1 by callers of the getnline family.
79197
79198 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79201         Check for gettimeofday.
79202         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79203         Check for settimeofday, stime.
79204
79205 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * lib/nanosleep.c (suspended): Change its type from int to
79208         sig_atomic_t volatile.
79209         (first_call): Make it private to rpl_nanosleep, and have it
79210         be zero initially as that's a bit faster.
79211         (my_usleep): Round up fractional times instead of truncating them,
79212         as this is the usual meaning for 'sleep'.
79213
79214         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79215         doesn't work.
79216         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79217         (ENOSYS): Define if not defined.
79218         (settime): Fall back on stime if it exists and settimeofday fails.
79219         But don't bother with fallbacks if a method fails with errno == EPERM.
79220
79221 2004-05-11  Jim Meyering  <jim@meyering.net>
79222
79223         Prior to this change, the save_cwd caller required read access to the
79224         current directory on most systems (ones with the fchdir function).
79225
79226         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79227         fails, try write-only, and finally, resort to using xgetcwd.
79228
79229 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * lib/obstack.c, obstack.h: Import changes from libc.
79232
79233 2004-04-28  Bruno Haible  <bruno@clisp.org>
79234
79235         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79236         also implicitly appends .exe to executables.
79237         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79238         accepts Windows pathnames.
79239         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79240         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79241         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79242         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79243         Reported by Derek Robert Price <derek@ximbiot.com>.
79244
79245 2004-04-21  Karl Berry  <karl@gnu.org>
79246
79247         * config/srclist.txt (localcharset.c): break sync.
79248
79249 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79250
79251         * m4/host-os.m4: Add a copyright notice.
79252
79253 2004-04-20  Jim Meyering  <jim@meyering.net>
79254
79255         Change UTILS_ to gl_ in AC_DEFINE'd names.
79256         Change utils_- and jm_-prefixed variables, too.
79257         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79258         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79260
79261         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79262         Don't emit trailing blanks.
79263         Also rename jm_-prefixed variables to have gl_ prefix.
79264
79265         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79266         Also rename jm_-prefixed variables to have gl_ prefix.
79267
79268         * m4/jm-macros.m4: Reflect the renamings.
79269         * m4/prereq.m4: Likewise.
79270
79271 2004-04-20  Jim Meyering  <jim@meyering.net>
79272
79273         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79274         memory.
79275
79276 2004-04-20  Jim Meyering  <jim@meyering.net>
79277             Bruno Haible  <bruno@clisp.org>
79278
79279         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79280         memory when realloc fails.
79281
79282 2004-04-19  Jim Meyering  <jim@meyering.net>
79283
79284         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79285         now that readutmp.c may call `free (0)'.
79286
79287 2004-04-19  Bruno Haible  <bruno@clisp.org>
79288
79289         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79290         * m4/inttypes_h.m4: Likewise.
79291         * m4/stdint_h.m4: Likewise.
79292         * m4/intmax_t.m4: Likewise.
79293         * m4/uintmax_t.m4: Likewise.
79294
79295 2004-04-18  Jim Meyering  <jim@meyering.net>
79296
79297         * m4/prereq.m4: Don't forbid jm_ prefix.
79298
79299         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79300         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79301         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79302         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79303         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79304         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79305         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79306         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79307         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79308         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79309         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79310         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79311         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79312         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79313         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79314         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79315         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79316         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79317         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79318
79319 2004-04-18  Jim Meyering  <jim@meyering.net>
79320
79321         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79322         failure, don't leak memory and do call END_UTMP_ENT.
79323
79324 2004-04-16  Jim Meyering  <jim@meyering.net>
79325
79326         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79327         coreutils' stat program.
79328         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79329
79330 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79331
79332         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79333         C89.
79334         (CHAR_BIT): Remove, since we assume C89.
79335         Include <stdint.h> if available, as per current Autoconf CVS advice.
79336
79337 2004-03-31  Jim Meyering  <jim@meyering.net>
79338
79339         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79340         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79341         * m4/xalloc.m4: Likewise.
79342
79343 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79344
79345         Merge from coreutils.
79346
79347         * m4/inttostr.m4: New file.
79348         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79349         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79350         Require gl_CLOCK_TIME.
79351         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79352
79353 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79354
79355         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79356         not bool, to be more consistent with Unix conventions.
79357         Suggested by Bruno Haible.
79358
79359         Merge from coreutils.
79360
79361         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79362         * lib/umaxtostr.c: New files.
79363
79364         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79365         the usual <time.h> dance.
79366         (get_date): Change signature to support fractional time stamps.
79367         All callers changed.
79368         * lib/getdate.y: Include "getdate.h" first, as we can now
79369         assume C89 and don't need to worry about 'const'.
79370         Similarly, include "unlocked-io.h" near start, not in middle.
79371         Include <limits.h>.
79372         (textint.value): Use long int rather than int.
79373         (textint.digits): Use size_t rather than int.
79374         (BILLION, LOG10_BILLION): New constants.
79375         (parser_control): New member rel_ns.  Members day_ordinal,
79376         time_zone, month, day, hour, minutes, rel_year, rel_month,
79377         rel_day, rel_hour, rel_minutes, rel_seconds
79378         are now long int, not int.  Member seconds is now struct timespec,
79379         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79380         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79381         not int.
79382         (%union.intval): Now long int, not int.
79383         New member timespec.
79384         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79385         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79386         (spec): Now is a timespec or an item list.
79387         (timespec, items): New nonterminals.
79388         (time, rel, relunit, number, get_date):
79389         Add support for fractional seconds.
79390         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79391         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79392         (to_hour): First arg is now long int, not int.
79393         (to_year): Returns long int, not int.
79394         Don't treat year -70 like 70.
79395         (tm_diff): Returns long int, not int.
79396         (lookup_word): Use bool instead of int when appropriate.
79397         (yylex): Use size_t for count, not int.
79398         Detect overflow when parsing large integer constants.
79399         Add support for fractions.
79400         (get_date): Make pointers 'const' if possible.
79401         Use more-portable code to detect integer overflow.
79402         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79403         Don't use ctime; it's not reliable if the year has >4 digits.
79404
79405         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79406         This is for compatibility with BSD.
79407
79408         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79409         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79410         From coreutils' system.h.
79411
79412         * lib/userspec.c: Don't include "posixver.h".
79413         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79414         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79415         compatible extension.  Simplify code by removing a boolean int
79416         that was always nonzero if a string was nonnull.
79417
79418 2004-03-30  Jim Meyering  <jim@meyering.net>
79419
79420         Merge from coreutils.
79421
79422         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79423         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79424         on some systems one must include <grp.h> before it.
79425         Reported by Christian Krackowizer.
79426
79427 2004-03-30  Jim Meyering  <jim@meyering.net>
79428
79429         Merge from coreutils.
79430
79431         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79432
79433         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79434         an empty input stream.
79435
79436         * lib/readtokens.c: Include <stdbool.h>.
79437         (readtoken): Use `size_t' rather than int/long.
79438         All callers adjusted.
79439         Use `bool' rather than `int' where appropriate.
79440         Use memset rather than an explicit loop.
79441         Use x2nrealloc rather than xrealloc.
79442         Allow the use of `\0' as a delimiter.
79443         (readtokens): Likewise.
79444         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79445
79446 2004-03-30  Jim Meyering  <jim@meyering.net>
79447
79448         * m4/realloc.m4: Remove file, since now it does no more than
79449         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79450         the `configure.ac' section of module/realloc.
79451         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79452
79453 2004-03-30  Bruno Haible  <bruno@clisp.org>
79454
79455         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79456         nonnull.
79457
79458 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79459
79460         Merge changes to getloadavg.c from coreutils and Emacs.
79461
79462         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79463         Define to an expression, not to the empty string.
79464         Include cloexec.h and xalloc.h.
79465         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79466         Use set_cloexec_flag rather than rolling our own.
79467         * lib/cloexec.c, lib/cloexec.h: New files.
79468
79469 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79470
79471         * m4/cloexec.m4: New file.
79472
79473 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79474
79475         * lib/getopt.h: Sync with libc CVS.
79476
79477 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79478             Bruno Haible  <bruno@clisp.org>
79479
79480         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79481         mbswidth.
79482
79483 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79484             Bruno Haible  <bruno@clisp.org>
79485
79486         * lib/mbswidth.h: Include <wchar.h> only if
79487         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79488         <wchar.h>.
79489         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79490
79491 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79492
79493         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79494         Sync with libc CVS.
79495         * lib/getopt_int.h: New file, also synced from libc.
79496
79497 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79498
79499         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79500         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79501         Bring back getopt.c, getopt.h, getopt1.c.
79502
79503 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79504
79505         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79506         All uses changed.  Check for sa_sigaction member; this fixes
79507         a bug first reported by Jason Andrade in
79508         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79509
79510 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79511
79512         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79513         '#if' expressions.  Unlike the code it replaces, it does not
79514         depend on (defined _SC_PAGESIZE).  However, it does depend on
79515         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79516         first reported by Jason Andrade in
79517         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79518
79519 2004-02-25  Simon Josefsson  <jas@extundo.com>
79520
79521         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79522
79523 2004-02-25  Simon Josefsson  <jas@extundo.com>
79524
79525         * lib/strdup.h: New file.
79526         * lib/strdup.c: Include it.
79527         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79528         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79529
79530 2004-02-23  Karl Berry  <karl@gnu.org>
79531
79532         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79533         (from fencepost.gnu.org:/gd/gnuorg).
79534
79535 2004-02-23  Karl Berry  <karl@gnu.org>
79536
79537         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79538         * config/srclist.txt: add maintain/standards documents.
79539
79540 2004-02-18  Bruno Haible  <bruno@clisp.org>
79541
79542         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79543         Reported by Derek Robert Price <derek@ximbiot.com>.
79544
79545 2004-02-16  Karl Berry  <karl@gnu.org>
79546
79547         * config/mkinstalldirs, install-sh: update from automake.
79548
79549 2004-02-06  Karl Berry  <karl@gnu.org>
79550
79551         * m4/po.m4: update from gettext 0.14.1.
79552
79553 2004-02-06  Karl Berry  <karl@gnu.org>
79554
79555         * lib/config.charset: update from gettext 0.14.1.
79556
79557 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79558
79559         Add comments and code, prompted by suggestions from Bruno Haible
79560         for sh-quote.
79561         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79562         describing the enum quoting_style values.
79563         * lib/quotearg.c (quotearg_alloc): New function.
79564         (quotearg_buffer_restyled): Treat lone { and } as special.
79565         Treat = as special.  Work around bug with older shells
79566         that "see" a '\' that is really the 2nd byte of a multibyte char.
79567         Quote empty string with shell_quoting_style.
79568
79569 2004-02-03  Bruno Haible  <bruno@clisp.org>
79570
79571         * m4/pipe.m4: New file, from GNU gettext.
79572
79573 2004-02-03  Bruno Haible  <bruno@clisp.org>
79574
79575         * lib/pipe.h: New file, from GNU gettext.
79576         * lib/pipe.c: New file, from GNU gettext.
79577
79578 2004-01-27  Bruno Haible  <bruno@clisp.org>
79579
79580         * m4/execute.m4: New file, from GNU gettext.
79581
79582 2004-01-27  Bruno Haible  <bruno@clisp.org>
79583
79584         * lib/execute.h: New file, from GNU gettext.
79585         * lib/execute.c: New file, from GNU gettext.
79586         * lib/w32spawn.h: New file, from GNU gettext.
79587
79588 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79589
79590         Merge from diffutils.
79591
79592         * lib/file-type.c (file_type): Add typed memory objects.
79593         * lib/file-type.h (S_TYPEISTMO): New macro.
79594
79595         * lib/c-stack.h (c_stack_action): Remove argv argument.
79596         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79597         (die): Don't calculate message unless segv_action returns.
79598         (get_stack_location, min_address_from_argv, max_address_from_argv,
79599         volatile stack_base, volatile_stack_size): Remove.
79600         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79601         that every segmentation violation is a stack overflow.  (Ouch!)
79602         See Debian bug 136249 (still outstanding) for more info about why
79603         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79604
79605 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79606
79607         Exit-status fix from coreutils.
79608
79609         Use exit_failure consistently in place of EXIT_FAILURE,
79610         so that program exit statuses are consistent on failure.
79611
79612         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79613         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79614         * lib/argmatch.h: Comment fix to match the above.
79615         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79616         Now a macro referring to exit_failure, instead of a separate
79617         variable.  Include "exitfail.h" to get it.
79618         * lib/xstrtol.h: Include "exitfail.h".
79619         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79620
79621         * lib/long-options.c (parse_long_options): Use prototype
79622         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79623         for clarity.
79624
79625 2004-01-21  Jim Meyering  <jim@meyering.net>
79626
79627         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79628         so as not to conflict with a different-sized __mktime_internal
79629         function in GNU libc.
79630         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79631         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79632
79633 2004-01-20  Karl Berry  <karl@gnu.org>
79634
79635         * config/config.guess: update from config.
79636
79637         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79638
79639 2004-01-20  Bruno Haible  <bruno@clisp.org>
79640
79641         Safer stack allocation.
79642         * lib/setenv.c: Include allocsa.h.
79643         (alloca): Remove fallback definition.
79644         (freea): Remove macro.
79645         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79646         instead of freea.
79647
79648 2004-01-20  Bruno Haible  <bruno@clisp.org>
79649
79650         * m4/eealloc.m4: New file, from GNU gettext.
79651
79652 2004-01-20  Bruno Haible  <bruno@clisp.org>
79653
79654         * m4/allocsa.m4: New file, from GNU gettext.
79655
79656 2004-01-20  Bruno Haible  <bruno@clisp.org>
79657
79658         * lib/xallocsa.h: New file, from GNU gettext.
79659         * lib/xallocsa.c: New file, from GNU gettext.
79660
79661 2004-01-20  Bruno Haible  <bruno@clisp.org>
79662
79663         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79664
79665 2004-01-20  Bruno Haible  <bruno@clisp.org>
79666
79667         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79668         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79669         specially.
79670
79671 2004-01-20  Bruno Haible  <bruno@clisp.org>
79672
79673         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79674         patch.
79675
79676 2004-01-20  Bruno Haible  <bruno@clisp.org>
79677
79678         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79679
79680 2004-01-20  Bruno Haible  <bruno@clisp.org>
79681
79682         * lib/eealloc.h: New file.
79683
79684 2004-01-20  Bruno Haible  <bruno@clisp.org>
79685
79686         * lib/binary-io.h: Avoid warnings on Cygwin.
79687
79688 2004-01-20  Bruno Haible  <bruno@clisp.org>
79689
79690         * lib/allocsa.h: New file, from GNU gettext.
79691         * lib/allocsa.c: New file, from GNU gettext.
79692
79693 2004-01-18  Karl Berry  <karl@gnu.org>
79694
79695         * doc/gpl.texi, doc/lgpl.texi: new files.
79696
79697 2004-01-18  Karl Berry  <karl@gnu.org>
79698
79699         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79700         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79701
79702 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79703
79704         Merge from coreutils.
79705
79706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79707         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79708         (gl_DEFAULT_POSIX2_VERSION): Move
79709         the documentation from 'configure' into 'config.hin',
79710         so that 'configure --help' isn't burdened by it and
79711         we don't have to worry about its formatting there.
79712         Reword the documentation so that it's more succinct
79713         and can be run together into a single paragraph.
79714         * m4/same.m4 (gl_SAME): Check for pathconf.
79715
79716 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79717
79718         Merge from coreutils.
79719
79720         * lib/posixver.c: Include posixver.h.
79721
79722         * lib/same.c: Include <stdbool.h>, <limits.h>.
79723         (_POSIX_NAME_MAX): Define if not defined.
79724         (MIN): New macro.
79725         (same_name): If file names are silently truncated, report
79726         that the file names are the same if they are the same after
79727         the silent truncation.
79728
79729         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79730         conversion function.
79731         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79732         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79733         longer needed.
79734
79735 2004-01-15  Jim Meyering  <jim@meyering.net>
79736
79737         Merge from coreutils.
79738
79739         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79740         if no library is required.
79741         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79742         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79743         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79744         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79745         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79746         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79747         value, $ac_cv_search_crypt, if it's "none required".
79748         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79749         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79750         not gl_FUNC_GETLOADAVG.
79751         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79752         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79753
79754 2004-01-15  Jim Meyering  <jim@meyering.net>
79755
79756         Merge from coreutils.
79757
79758         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79759         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79760         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79761
79762         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79763         optional configure-time default.
79764
79765         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79766
79767         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79768
79769 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79770
79771         Merge from coreutils.
79772
79773         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79774         value, $ac_cv_search_nanosleep, if it's "none required".
79775
79776 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79777
79778         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79779         with like-named macro in fnmatch.c.
79780         (EXT): Use an internal constant instead.
79781
79782         Merge fnmatch patches from glibc.
79783         * lib/fnmatch.c (mbsinit): Remove define.
79784         Add libc_hidden_ver (__fnmatch, fnmatch).
79785         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79786         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79787
79788 2004-01-14  Karl Berry  <karl@gnu.org>
79789
79790         * config/install-sh: update from automake.
79791
79792 2004-01-13  Karl Berry  <karl@gnu.org>
79793
79794         * config/install-sh: update from automake.
79795
79796 2004-01-09  Karl Berry  <karl@gnu.org>
79797
79798         * config/install-sh: update from automake.
79799
79800 2004-01-05  Karl Berry  <karl@gnu.org>
79801
79802         * config/config.{sub,guess}: update from config.
79803
79804 2003-12-31  Karl Berry  <karl@gnu.org>
79805
79806         * config/depcomp: update from automake.
79807
79808 2003-12-14  Karl Berry  <karl@gnu.org>
79809
79810         * lib/config.charset: update from gettext-runtime.
79811
79812 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79813
79814         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79815         Bug reported by Alfred M. Szmidt.
79816
79817 2003-12-03  Bruno Haible  <bruno@clisp.org>
79818
79819         * m4/gettext.m4: Upgrade from gettext-0.13.
79820         * m4/po.m4: Upgrade from gettext-0.13.
79821         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79822         * m4/intmax.m4: New file, from gettext-0.13.
79823         * m4/printf-posix.m4: New file, from gettext-0.13.
79824
79825 2003-11-29  Karl Berry  <karl@gnu.org>
79826
79827         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79828
79829 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79830             Bruno Haible  <bruno@clisp.org>
79831
79832         * lib/printf-parse.h: Don't include sys/types.h.
79833         (ARG_NONE): New macro.
79834         (char_directive): Change type of *arg_index fields to size_t.
79835         * lib/printf-parse.c: Don't include sys/types.h.
79836         (SSIZE_MAX): Remove macro.
79837         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79838         Remove unnecessary overflow check.
79839         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79840         fields.
79841
79842 2003-11-25  Bruno Haible  <bruno@clisp.org>
79843
79844         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79845
79846 2003-11-25  Bruno Haible  <bruno@clisp.org>
79847
79848         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79849         gt_TYPE_SSIZE_T.
79850
79851 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79852
79853         * modules/alloca: Remove dependency on xalloc.
79854
79855 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79856
79857         * lib/alloca.c: Remove dependency on xalloc module.
79858         (xalloc_die): Remove.
79859         (memory_full) [!defined emacs]: New macro.
79860         [!defined emacs]: Don't include xalloc.h.
79861         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79862         address arithmetic overflows.  Change datatypes a bit to avoid
79863         unnecessary casts.
79864
79865 2003-11-22  Jim Meyering  <jim@meyering.net>
79866
79867         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79868         s/size/size_t/.
79869
79870 2003-11-21  Karl Berry  <karl@gnu.org>
79871
79872         * config/config.{sub,guess}: update from config.
79873
79874 2003-11-18  Karl Berry  <karl@gnu.org>
79875
79876         * config/config.{sub,guess}: update from config.
79877
79878         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79879
79880 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79881
79882         * README: Mention that S+T cannot overflow if S is the size of
79883         an existing object and T is sufficiently small.
79884
79885 2003-11-17  Jim Meyering  <jim@meyering.net>
79886
79887         On systems without utime and without a utimes function capable of
79888         dealing with a NULL struct utimbuf* argument, this utime replacement
79889         could -- in unusual circumstances -- leak a file descriptor.
79890         * lib/utime.c: Include <unistd.h> and <errno.h>.
79891         (utime_null): Be sure to close `fd' and to preserve errno.
79892         Reported by Geoff Collyer via Arnold Robbins.
79893
79894 2003-11-17  Bruno Haible  <bruno@clisp.org>
79895
79896         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79897         (Depends-on): Add xsize.
79898
79899 2003-11-17  Bruno Haible  <bruno@clisp.org>
79900
79901         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79902
79903 2003-11-17  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/vasnprintf.c (alloca): Remove fallback definition.
79906         (freea): Remove definition.
79907         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79908         Reported by Paul Eggert.
79909
79910 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79911             Bruno Haible  <bruno@clisp.org>
79912
79913         Protect against address arithmetic overflow.
79914         * lib/printf-args.h: Include stddef.h.
79915         (arguments): Change type of field 'count' to size_t.
79916         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79917         'unsigned int' where appropriate.
79918         * lib/printf-parse.h: Include sys/types.h.
79919         (char_directive): Change type of *arg_index fields to ssize_t.
79920         (char_directives): Change type of fields 'count', max_*_length to
79921         size_t.
79922         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79923         (SSIZE_MAX): Define fallback value.
79924         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79925         instead of 'int' where appropriate. Check a_allocated, d_allocated
79926         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79927         * lib/vasnprintf.c: Include xsize.h.
79928         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79929         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79930         overflow. Avoid wraparound when converting a width or precision from
79931         decimal to binary.
79932
79933 2003-11-16  Bruno Haible  <bruno@clisp.org>
79934
79935         Update from GNU gettext.
79936         * lib/printf-parse.c: Generalize to it can be compiled for wide
79937         strings.
79938         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79939         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79940         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79941         SNPRINTF): New macros.
79942         Don't include <alloca.h> if the file is used inside libintl.
79943         (local_wcslen): New function, for Solaris 2.5.1.
79944         (VASNPRINTF): Use it instead of wcslen.
79945
79946 2003-11-16  Bruno Haible  <bruno@clisp.org>
79947
79948         * lib/xsize.h (xmax): New function.
79949         (xsum, xsum3, xsum4): Declare as "pure" functions.
79950
79951 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79952
79953         * modules/xalloc (Files): Undo latest change, since xalloc.h
79954         no longer needs SIZE_MAX or PTRDIFF_MAX.
79955
79956 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79957
79958         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79959         gl_PTRDIFF_MAX.
79960
79961 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79962
79963         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79964         "return", to pacify some unknown compiler.  Problem reported
79965         by Joerg Schilling.
79966
79967 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79968
79969         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79970         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79971         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79972         heuristic is just as accurate as far as we know, and it removes a
79973         dependency on size_max.m4 and ptrdiff_max.m4.
79974
79975 2003-11-11  Bruno Haible  <bruno@clisp.org>
79976
79977         * modules/xsize (Files): Add m4/size_max.m4.
79978         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79979
79980 2003-11-11  Bruno Haible  <bruno@clisp.org>
79981
79982         * m4/size_max.m4: New file.
79983         * m4/ptrdiff_max.m4: New file.
79984         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79985         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79986         (gl_XALLOC): Invoke it.
79987
79988 2003-11-11  Bruno Haible  <bruno@clisp.org>
79989
79990         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79991         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79992         defined.
79993
79994 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79995
79996         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79997         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79998         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79999         From Bruno Haible.
80000         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80001         not (size_t) -1, since it's defined here.
80002
80003 2003-11-09  Karl Berry  <karl@gnu.org>
80004
80005         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80006
80007 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80008
80009         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80010         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80011         Reject sizes of exactly SIZE_MAX bytes.
80012         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80013         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80014
80015 2003-11-05  Bruno Haible  <bruno@clisp.org>
80016
80017         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80018         SIZE_MAX defined in <limits.h> on Solaris.
80019
80020 2003-11-04  Jim Meyering  <jim@meyering.net>
80021
80022         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80023         variable names, rather than @VAR@.
80024         * modules/poll: Likewise.
80025
80026 2003-11-04  Bruno Haible  <bruno@clisp.org>
80027
80028         * modules/xsize: New file.
80029         * modules/linebreak: Depend on xsize.
80030         * MODULES.html.sh (func_all_modules): Add xsize.
80031
80032 2003-11-04  Bruno Haible  <bruno@clisp.org>
80033
80034         * m4/xsize.m4: New file.
80035
80036 2003-11-04  Bruno Haible  <bruno@clisp.org>
80037
80038         * lib/xsize.h: New file.
80039         * lib/linebreak.c: Include xsize.h.
80040         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80041         argument for overflow.
80042         Suggested by Paul Eggert.
80043
80044 2003-11-03  Karl Berry  <karl@gnu.org>
80045
80046         * config/config.{guess,sub}: update from config.
80047
80048 2003-11-03  Jim Meyering  <jim@meyering.net>
80049
80050         * modules/userspec (lib_SOURCES): Add userspec.h.
80051         (Include): Add "userspec.h".
80052         Improve description.
80053
80054 2003-11-03  Jim Meyering  <jim@meyering.net>
80055
80056         * lib/userspec.c: Include "userspec.h".
80057         * lib/userspec.h: New file.
80058
80059 2003-11-03  Bruno Haible  <bruno@clisp.org>
80060
80061         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80062
80063 2003-11-03  Bruno Haible  <bruno@clisp.org>
80064
80065         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80066         available, to avoid (extremely rare) race condition.
80067         Suggested by Paul Eggert.
80068
80069 2003-11-02  Karl Berry  <karl@gnu.org>
80070
80071         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80072
80073 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80074
80075         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80076         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80077         (read_filesystem_list): Set and use me_type_malloced.
80078         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80079         whatever the type happens to be), for brevity and consistency.
80080         Check for size calculation overflow on Alphas running OSF/1.
80081
80082 2003-10-31  Jim Meyering  <jim@meyering.net>
80083
80084         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80085
80086         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80087
80088 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80089             Bruno Haible  <bruno@clisp.org>
80090
80091         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80092         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80093
80094 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80095
80096         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80097         netbsd*-gnu*.  Suggested by Robert Millan.
80098
80099 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80100
80101         * modules/group-member: Depend on stdbool.
80102
80103 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80104
80105         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80106
80107 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80108
80109         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80110         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80111         after the 'gnu' in these cases.  This fixes some bugs in the
80112         previous change, and is based on suggestions by Robert Millan.
80113
80114 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80115
80116         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80117         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80118         no longer needed.
80119         * lib/quotearg.c (quotearg_n_options): Use it.
80120         * lib/group-member.c: Include <stdbool.h>.
80121         (free_group_info): Arg is now const *; don't free arg.
80122         (get_group_info): Now returns bool and accepts struct group_info *,
80123         rather than returning a malloc'ed struct group_info *.
80124         All uses changed.  Check for overflow in internal size calculation.
80125
80126         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80127         rather than xmalloc/xrealloc.
80128         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80129         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80130         conformance bug: the old code used a pointer after freeing the
80131         storage that it addressed.
80132         * lib/hash.c (hash_initialize): Simplify the code by using
80133         xalloc_oversized rather than doing it by hand.
80134         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80135         the buffer preserved.  Use free and xmalloc instead.
80136         * lib/quotearg.c (quotearg_n_options): Likewise.
80137         Use a simpler test for size overflow.  Don't use xalloc_oversized
80138         because unsigned int might be wider than size_t (!); this suggests
80139         that we should switch from unsigned int to size_t for slot numbers.
80140
80141 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80142
80143         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80144         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80145         NetBSD kernels.  Requested by Richard Stallman.
80146
80147 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80148
80149         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80150         to allocate the returned structure.  Do not allocate a subarray,
80151         as x2nrealloc will do that.
80152         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80153         instead of xnrealloc.
80154         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80155
80156 2003-10-27  Bruno Haible  <bruno@clisp.org>
80157
80158         * lib/stdbool_.h: Better support for BeOS.
80159
80160 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80161
80162         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80163         now uses inline.
80164
80165 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80166
80167         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80168         callers that want to do their own size-overflow checking.  Include
80169         <stdbool.h>, since xalloc_oversized returns bool.
80170         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80171         to use xalloc_oversized.
80172
80173         Add two functions x2realloc, x2nrealloc, for programs that grow
80174         arrays dynamically by doubling their sizes.
80175         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80176         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80177         New functions.
80178
80179         Port to C99 semantics for 'inline' of external functions.
80180         Bug reported by Bruno Haible.
80181         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80182         with the old contents of xnmalloc.
80183         (xnmalloc, xmalloc): Use it.
80184         (xnrealloc_inline): New static inline function,
80185         with the old contents of xnrealloc.
80186         (xnrealloc, xrealloc): Use it.
80187
80188         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80189         that.
80190
80191 2003-10-26  Karl Berry  <karl@gnu.org>
80192
80193         * config/srclist.txt (COPYING.DOC): no longer available from
80194         /gd/gnuorg; don't know where the ultimate source is.
80195
80196 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80197
80198         Fix several address-calculation bugs in the hash modules,
80199         plus some minor code cleanup.
80200
80201         * lib/hash.h: Include <stdbool.h>, for bool.
80202         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80203         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80204         hash_get_n_entries, hash_get_max_bucket_length,
80205         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80206         hash_rehash): Use size_t rather than unsigned.
80207         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80208         hash_get_n_buckets_used, hash_get_n_entries,
80209         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80210         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80211         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80212         Likewise.
80213         (SIZE_MAX): Define if not defined.
80214         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80215         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80216         hash_print):
80217         Use const * when possible.
80218         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80219         (check_tuning): Fix bug: if tuning parameters were very close to
80220         0 or 1, rounding errors could have caused subscript violations.
80221         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80222         (hash_initialize): Add 'fail:' label
80223         to free table and return NULL, and use it to simplify code.
80224         Use calloc rather than clearing the storage ourself.
80225         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80226         buffer size calculations.
80227         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80228         Include <stddef.h>, for size_t.
80229         * lib/hash-pjw.c (hash_pjw): Likewise.
80230         Switch to method described by Bruno Haible.
80231         Include <limits.h>, for CHAR_BIT.
80232         (SIZE_BITS): New macro.
80233
80234 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80235
80236         * m4/getline.m4 (AM_FUNC_GETLINE):
80237         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80238         hosts.  Problem reported by Derek Robert Price in
80239         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80240         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80241         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80242
80243 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80244
80245         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80246         ceiling the allocation at NMAX bytes rather than silently
80247         discarding input bytes before NMAX is reached.  This makes
80248         a difference only if NMAX exceeds SIZE_MAX / 2.
80249
80250         * lib/obstack.c: Merge from glibc.
80251         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80252         Add libc_hidden_def (_obstack_newchunk).
80253         (_obstack_free) [! defined _LIBC]: Remove.
80254         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80255         a clone of the function body.
80256         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80257         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80258
80259         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80260         glibc.
80261         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80262         arg to memcpy.
80263
80264         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80265         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80266         Don't use lvalue casts, as GCC plans to remove support for them
80267         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80268         was also present in the non-GCC version, indicating that this
80269         code had always been buggy and had never been widely used.
80270         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80271         Use the fast variant of each macro, rather than copying the
80272         definiens of the fast variant; that way, we'll be more likely to
80273         catch future bugs in the fast variants.
80274
80275 2003-10-20  Bruno Haible  <bruno@clisp.org>
80276
80277         * modules/wait-process: New file.
80278         * MODULES.html.sh (func_all_modules): Add wait-process.
80279
80280 2003-10-20  Bruno Haible  <bruno@clisp.org>
80281
80282         * m4/wait-process.m4: New file.
80283
80284 2003-10-20  Bruno Haible  <bruno@clisp.org>
80285
80286         * lib/wait-process.h: New file, from GNU gettext.
80287         * lib/wait-process.c: New file, from GNU gettext.
80288
80289 2003-10-19  Jim Meyering  <jim@meyering.net>
80290
80291         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80292         HPUX 10.20.
80293
80294 2003-10-18  Karl Berry  <karl@gnu.org>
80295
80296         * config/config.guess: update from config.
80297
80298 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80299
80300         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80301         (getgroups): First arg is int, not size_t.
80302         Don't let 'free' mangle errno.
80303
80304 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80305
80306         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80307
80308 2003-10-16  Karl Berry  <karl@gnu.org>
80309
80310         * config/config.{guess,sub}: update from config.
80311
80312 2003-10-16  Jim Meyering  <jim@meyering.net>
80313
80314         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80315         memcpy.
80316
80317 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80318
80319         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80320         (SIZE_MAX): Remove.
80321         (new_exclude, add_exclude_file): Initial size no longer needs to
80322         be a power of 2.
80323         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80324         our own address arithmetic overflow checking.
80325
80326         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80327         (fnmatch): Do not alloca more than 2000 wide characters;
80328         instead, use malloc for large buffers.
80329         Check for address arithmetic overflow, and return -1
80330         with errno set to ENOMEM in that case.
80331         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80332         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80333         instead, return -1.  Check for address arithmetic overflow.
80334
80335 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80336
80337         Handle invalid suffixes and overflow independently, so that
80338         callers can treat them independently as needed.  Fix some bugs in
80339         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80340         suffix for a human-readable blocksize.  The major caller-visible
80341         change is the addition of a new
80342         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80343         that both overflow and suffix chars were found.
80344
80345         * lib/human.c (humblock): Don't check separately for invalid suffix
80346         char; that is xstrtoumax's job (now that its bug is fixed).
80347         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80348         INTMAX_MAX]: New macros.
80349         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80350         TYPE_MAXIMUM): New macros.
80351         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80352         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80353         if overflow occurs, as it's what __strtol does and it's more useful
80354         in practice.
80355         (__xstrtol): If __strtol reports some error other than ERANGE,
80356         reflect it to the caller as LONGINT_INVALID.  If it reports
80357         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80358         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80359         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80360         value.
80361         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80362         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80363         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80364         [defined UINTMAX_MAX]: New macros.
80365
80366 2003-10-14  Bruno Haible  <bruno@clisp.org>
80367
80368         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80369
80370 2003-10-14  Bruno Haible  <bruno@clisp.org>
80371
80372         * m4/sig_atomic_t: New file, from GNU gettext.
80373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80374
80375 2003-10-14  Bruno Haible  <bruno@clisp.org>
80376
80377         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80378         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80379         Also use volatile where needed.
80380
80381 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80382
80383         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80384         Change maintainer from Bruno Haible to 'all'.
80385
80386 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80387
80388         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80389
80390 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80391
80392         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80393         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80394         and define in terms of the other primitives.
80395         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80396         (SIZE_MAX): Define if not already defined.
80397         (array_size_overflow): New function.
80398         (xalloc_die): Abort instead of exiting if 'error' returns.
80399         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80400         (xmalloc, xrealloc): Use them.
80401         (xcalloc): Check for address arithmetic overflow.
80402         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80403         a bit faster than strcpy.
80404
80405 2003-10-10  Simon Josefsson  <jas@extundo.com>
80406
80407         * modules/argp (Depends-on): Add restrict and strcase.
80408
80409 2003-10-10  Simon Josefsson  <jas@extundo.com>
80410
80411         * m4/argp.m4: Add AC_C_INLINE.
80412
80413 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80414
80415         Merge getpass from libc, plus a few fixes.
80416
80417         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80418         Include <stdbool.h>.
80419         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80420         __fsetlocking to empty.
80421         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80422         do include <bits/libc-lock.h>.
80423         Do not include <fcntl.h>; not needed.
80424         [_LIBC]: Include <wchar.h>.
80425         (NOTCANCEL_MODE): New macro.
80426         (flockfile, funlockfile) [_LIBC]: New macros.
80427         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80428         [!_LIBC]: New macros.
80429         (call_fclose): New function.
80430         (getpass): Use it.  Save tty stream separately; this simplifies the
80431         code and makes it more reliable if stdin happens to equal stdout.
80432         Invoke __fsetlocking on tty.
80433         Handle thread cancellation if needed.
80434         Namespace cleanup (use __tcgetattr, __getline).
80435         Use bool for Booleans.
80436         [USE_IN_LIBIO]: Handle wide streams.
80437         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80438         stream might go where.
80439
80440         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80441         doesn't have to include <stdio.h> before us.
80442         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80443         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80444         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80445         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80446         if not declared, so that we can use getpass.c code from libc without
80447         rewriting it.
80448         (flockfile, ftrylockfile, funlockfile): New macros.
80449
80450 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80451
80452         * modules/getpass: Depend on stdbool.
80453
80454 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80455
80456         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80457
80458 2003-10-07  Karl Berry  <karl@gnu.org>
80459
80460         * config/config.{guess,sub}: update from config.
80461
80462 2003-10-06  Jim Meyering  <jim@meyering.net>
80463             Bruno Haible  <bruno@clisp.org>
80464
80465         This lets translators provide better translations for the
80466         "Written by ..." part of --version output.
80467         * lib/version-etc.h: Include stdarg.h.
80468         (version_etc_copyright): Declare as readonly.
80469         (version_etc): Make this function variadic with a NULL-terminated list
80470         of author name strings.
80471         (version_etc_va): New declaration.
80472         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80473         (version_etc_copyright): Declare as readonly.
80474         (version_etc_va): New function. Provide a different translatable string
80475         for each possible number of authors < 10. Abbreviate when there are 10
80476         authors or more.
80477         (version_etc): Make this function variadic. Call version_etc_va.
80478         Suggestion from Gary V. Vaughan.
80479
80480         * lib/long-options.h (parse_long_options): Change prototype: the
80481         authors string is moved to the end and becomes variadic.
80482         * lib/long-options.c: Include stdarg.h.
80483         (parse_long_options): Make this function variadic, too.
80484         Call version_etc_va, not version_etc.
80485
80486 2003-10-06  Bruno Haible  <bruno@clisp.org>
80487
80488         * modules/version-etc-2: Remove file.
80489         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80490
80491 2003-10-06  Bruno Haible  <bruno@clisp.org>
80492
80493         * modules/fatal-signal: New file.
80494         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80495
80496 2003-10-06  Bruno Haible  <bruno@clisp.org>
80497
80498         * m4/fatal-signal.m4: New file.
80499         * m4/signalblocking.m4: New file, from GNU gettext.
80500
80501 2003-10-06  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/version-etc-2.h: Remove file.
80504         * lib/version-etc-2.c: Remove file.
80505
80506 2003-10-06  Bruno Haible  <bruno@clisp.org>
80507
80508         * lib/fatal-signal.h: New file, from GNU gettext.
80509         * lib/fatal-signal.c: New file, from GNU gettext.
80510
80511 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80512
80513         * README: Rework advice for preventing empty .o files.
80514         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80515         not <sys/types.h>.
80516
80517 2003-10-04  Karl Berry  <karl@gnu.org>
80518
80519         * lib/argp*: update from libc.
80520
80521 2003-10-04  Karl Berry  <karl@gnu.org>
80522
80523         * config/config.{guess,sub}: update from config.
80524
80525 2003-10-02  Bruno Haible  <bruno@clisp.org>
80526
80527         * modules/lchown (Include): Add lchown.h.
80528         * modules/time_r (Include): Use "..." syntax.
80529         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80530
80531 2003-10-01  Simon Josefsson  <jas@extundo.com>
80532
80533         * MODULES.html.sh (func_all_modules): Move gethostname from section
80534         'based on' to section 'lacking' POSIX:2001.
80535
80536 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80537
80538         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80539         to output mode on the same stream.
80540
80541 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80542
80543         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80544         Fix arg typo in previous patch.
80545
80546 2003-09-28  Jim Meyering  <jim@meyering.net>
80547
80548         * lib/error.c: Correct cpp indentation.
80549
80550 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80551
80552         * modules/free: New file.
80553
80554 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80555
80556         * m4/free.m4: New file.
80557
80558 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80559
80560         * lib/minmax.h (MIN, MAX)
80561         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80562         Omit the special code that used __typeof__, since we worry that
80563         it could be more trouble than it's worth.  See:
80564         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80565         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80566
80567         * lib/free.c: New file.
80568
80569 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80570
80571         Trivial fixes to Makefile.am parts of module listings.
80572         * modules/strstr: Append strstr.h to lib_SOURCES.
80573         * modules/strcase: Likewise, for strcase.h.
80574
80575 2003-09-27  Karl Berry  <karl@gnu.org>
80576
80577         * config/mkinstalldirs: update from automake.
80578
80579 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80580
80581         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80582         (error_tail): Do not loop, reallocating temporary buffer, since
80583         the output cannot contain more wide characters than the input
80584         contains bytes, the size must be big enough already.  This avoids
80585         one potential size overflow calculation.  Check for size overflow
80586         when calculating temporary buffer size.  Free temporary buffer
80587         when done, if it was allocated with malloc; this plugs a memory
80588         leak.  Remove casts from void * to pointers, that are no longer
80589         needed now that we're assuming C89 or better.
80590
80591         Merge error changes from glibc.
80592
80593         * lib/error.c, error.h: Update copyright notice header to match glibc.
80594         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80595         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80596         Disable cancellation while printing error.
80597         * lib/error.h: Prepend __ to parameter names.
80598
80599 2003-09-26  Jim Meyering  <jim@meyering.net>
80600
80601         * lib/error.c (error_tail): Move some declarations
80602         into inner scope where the local variables are used.
80603
80604 2003-09-26  Bruno Haible  <bruno@clisp.org>
80605
80606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80607         stpncpy().
80608         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80609
80610 2003-09-26  Bruno Haible  <bruno@clisp.org>
80611
80612         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80613         (stpncpy): Define as alias for gnu_stpncpy.
80614         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80615
80616 2003-09-25  Simon Josefsson  <jas@extundo.com>
80617
80618         * lib/xgetdomainname.h: New file.
80619         * lib/xgetdomainname.c: New file.
80620
80621 2003-09-25  Simon Josefsson  <jas@extundo.com>
80622             Bruno Haible  <bruno@clisp.org>
80623
80624         * modules/getdomainname: New file.
80625         * modules/xgetdomainname: New file.
80626         * MODULES.html.sh (func_all_modules): Add getdomainname,
80627         xgetdomainname.
80628
80629 2003-09-25  Simon Josefsson  <jas@extundo.com>
80630             Bruno Haible  <bruno@clisp.org>
80631
80632         * m4/getdomainname.m4: New file.
80633
80634 2003-09-25  Simon Josefsson  <jas@extundo.com>
80635             Bruno Haible  <bruno@clisp.org>
80636
80637         * lib/getdomainname.h: New file.
80638         * lib/getdomainname.c: New file.
80639
80640 2003-09-25  Karl Berry  <karl@gnu.org>
80641
80642         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80643
80644 2003-09-25  Karl Berry  <karl@gnu.org>
80645
80646         * config/install-sh: update from automake.
80647
80648 2003-09-25  Bruno Haible  <bruno@clisp.org>
80649
80650         * modules/version-etc-2: New file, from modules/version-etc with
80651         modifications.
80652         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80653
80654 2003-09-25  Bruno Haible  <bruno@clisp.org>
80655
80656         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80657         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80658
80659 2003-09-24  Simon Josefsson  <jas@extundo.com>
80660
80661         * modules/xgethostname: Add xgethostname.h.
80662
80663 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80664
80665         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80666         the buffer associated with the argument.  Bug reported by
80667         Simon Josefsson.
80668
80669 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80670
80671         * README: Document assumptions that 'int' is at least 32 bits
80672         wide, that integer arithmetic is 2's complement without overflow,
80673         that there are no holes in integer values, that adding sizes of
80674         two nonoverlapping objects can't overflow, and that all-bits-zero
80675         yields scalar zero.  Fix spelling and capitalization typos.
80676
80677 2003-09-19  Karl Berry  <karl@gnu.org>
80678
80679         * lib/argp.h: update from libc.
80680
80681 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80682
80683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80684         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80685         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80686
80687 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80688
80689         * gnulib-tool: Use "test -h", not "test -L", for portability
80690         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80691         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80692         (sed_extract_prog): Issue s commands one-by-one, rather than
80693         using \| in one s command.
80694
80695 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80696
80697         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80698         input error, instead of returning NULL the next time we are called
80699         (and therefore losing track of errno).
80700
80701 2003-09-16  Bruno Haible  <bruno@clisp.org>
80702
80703         * gnulib-tool (func_create_testdir): Warn about duplicated
80704         dependencies.
80705
80706 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80707
80708         * modules/argmatch, modules/fatal, modules/obstack,
80709         modules/xalloc, modules/xgethostname: Sort dependencies by
80710         importance, not alphabetically.
80711
80712 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80713
80714         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80715         fails, so that the caller gets the proper errno.
80716
80717         * lib/readutmp.c (read_utmp): Likewise.
80718         Check for fstat error.  Close stream and free storage
80719         when failing.
80720
80721 2003-09-14  Karl Berry  <karl@gnu.org>
80722
80723         * config/srclist.txt (strdup.c): disable for c89 changes.
80724
80725 2003-09-14  Jim Meyering  <jim@meyering.net>
80726
80727         * lib/getloadavg.c: Correct cpp indentation.
80728         * lib/strdup.c: Likewise.
80729         * lib/vasnprintf.c: Likewise.
80730
80731 2003-09-14  Bruno Haible  <bruno@clisp.org>
80732
80733         * modules/fwriteerror: New file.
80734         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80735
80736 2003-09-14  Bruno Haible  <bruno@clisp.org>
80737
80738         * lib/fwriteerror.h: New file.
80739         * lib/fwriteerror.c: New file.
80740
80741 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80742
80743         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80744         modules/xgethostname, modules/xalloc: Depend on exit.
80745
80746 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80747
80748         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80749
80750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80751         and AC_MINIX, too, so that their extensions are available.
80752
80753         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80754         This macro has been superseded by gl_BACKUPFILE.
80755
80756         More patches to assume C89 or better.
80757
80758         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80759
80760         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80761         unconditionally.
80762         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80763         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80764         Include <string.h>, <stdlib.h> unconditionally.
80765         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80766         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80767         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80768         headers or for string.h.
80769         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80770         or strtoul.
80771
80772         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80773         headers.
80774         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80775         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80776         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80777         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80779         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80780         memcpy, memset.
80781         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80782         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80783         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80784         strtol.
80785         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80786         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80787         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80788         strtoul.
80789
80790 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80791
80792         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80793         * lib/obstack.c [!defined _LIBC]: Likewise.
80794         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80795         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80796         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80797
80798         More changes to assume C89 or better.
80799
80800         * lib/error.c (error_tail): Assume vprintf.
80801
80802         * lib/argmatch.c (getenv): Remove decl.
80803         * lib/progreloc.c (get_full_program_name): Define via prototype.
80804         * lib/setenv.c (clearenv): Likewise.
80805         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80806         needed.
80807         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80808         (malloc, memcpy): Remove decls.
80809         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80810         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80811         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80812         (memcpy): Remove macro.
80813         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80814         (__P): Remove.  All uses removed.
80815         (PTR): Remove.  All uses changed to void *.
80816         (CHAR_BIT, NULL): Remove.
80817         (spaces, zeros, memset_space, memset_zero)
80818         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80819         Remove.
80820         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80821         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80822         Define with prototype.
80823         Remove now-unnecessary prototype decl.
80824         (extra_args_spec): Assume ANSI C.  All uses changed.
80825         (extra_args_spec_iso): Remove.
80826         (my_strftime, emacs_strftimeu): Define via prototype.
80827         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80828         unconditionally.
80829         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80830         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80831         (strtoul, strtol): Remove decls.
80832         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80833         LONG_MAX): Remove.
80834         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80835         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80836         (LOCALE_PARAM_PROTO): New macro.
80837         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80838         (INTERNAL (strtol), strtol): Define with a prototype.
80839         (PARAMS): Remove.  All uses removed.
80840         * lib/tempname.c: Include <string.h> unconditionally.
80841         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80842         * lib/xgethostname.c (main): Define with a prototype.
80843         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80844         Include <stdlib.h> unconditionally.
80845         (calloc, malloc, realloc, free): Remove decls.
80846         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80847         Include <stdlib.h> unconditionally.  Sort include file names.
80848         (strtod): Remove.
80849         (xstrtod): Define with a prototype.
80850         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80851         (strtol, strtoul): Remove decls.
80852
80853 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80854
80855         More patches to assume C89 or better.
80856         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80857         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80858         string.h, memchr, STDC_HEADERS.
80859
80860 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80861
80862         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80863         Include <stdlib.h>, <string.h> unconditionally.
80864         Remove now-unnecessary cast to char *.
80865         * lib/strnlen.c: Include <string.h> unconditionally.
80866         * lib/yesno.c (yesno): Define with a prototype.
80867
80868 2003-09-11  Bruno Haible  <bruno@clisp.org>
80869
80870         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80871
80872 2003-09-10  Jim Meyering  <jim@meyering.net>
80873
80874         * lib/error.c: Correct indentation of cpp directives.
80875
80876 2003-09-10  Bruno Haible  <bruno@clisp.org>
80877
80878         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80879         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80880         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80881         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80882         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80883         <stdlib.h> and <string.h> checks.
80884         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80885         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80886
80887 2003-09-10  Bruno Haible  <bruno@clisp.org>
80888
80889         * lib/strcspn.c: Include <string.h> unconditionally.
80890         * lib/strpbrk.c: Include <string.h> unconditionally.
80891         * lib/strstr.c: Include <string.h> unconditionally.
80892         * lib/unicodeio.c: Include <string.h> unconditionally.
80893         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80894         * lib/unsetenv.c: Likewise.
80895         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80896         * lib/yesno.c: Include <stdlib.h> unconditionally.
80897         (rpmatch): Add prototype.
80898
80899 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80900
80901         More patches to assume C89 or better.
80902         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80903         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80904         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80905         or for string.h.
80906         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80907         stdlib.h.
80908         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80909         C headers.
80910         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80911         string.h.
80912         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80913         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80914         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80915         or for string.h.
80916         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80917         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80918         C headers.
80919         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80920         memcpy.
80921         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80922         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80923         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80924         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80925         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80926         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80927         string.h, free.
80928         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80929         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80930         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80931         C headers, or for string.h.
80932         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80933         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80934         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80935         headers, memory.h, stdlib.h, string.h, strings.h.
80936         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80937         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80938         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80939         strchr.
80940         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80941         headers, memory.h, string.h.
80942         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80943         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80944         free.
80945         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80946         headers.
80947         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80948         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80949         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80950         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80951         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80952
80953 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80954
80955         More K&R removal.
80956
80957         * lib/acosl.c (main): Use a prototype.
80958         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80959         tanl.c: Likewise.
80960
80961         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80962
80963         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80964         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80965         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80966         with a prototype.
80967         * lib/getopt.c (const): Remove macro.
80968         Include <string.h> unconditionally.
80969         (my_index): Remove; all uses changed to strchr.
80970         (strlen): Remove decl.
80971         (exchange): Remove forward decl; no longer needed.
80972         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80973         Define with prototype.
80974         * lib/getopt1.c (const): Remove macro.
80975         (getopt_long, getopt_long_only, main): Define with prototype.
80976
80977         * lib/getugroups.c: Include <string.h> unconditionally.
80978
80979         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80980         (getusershell, setusershell, endusershell, readname, main):
80981         Define with prototypes.
80982
80983         * lib/group-member.c: Include group-member.h first.
80984         Include <stdlib.h> unconditionally.
80985
80986         * lib/hard-locale.c: Include hard-locale.h first.
80987         Include <stdlib.h>, <string.h> unconditionally.
80988
80989         * lib/hash.c (free, malloc): Remove decls.
80990         Include <stdlib.h> unconditionally.
80991
80992         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80993         (getenv): Do not declare.
80994
80995         * lib/idcache.c: Include <string.h> unconditionally.
80996
80997         * lib/long-options.c: Include long-options.h first, to test interface.
80998         Include <stdlib.h> unconditionally.
80999
81000         * lib/makepath.c: Include makepath.h first, to test interface.
81001         Include <stdlib.h> and <string.h> unconditionally.
81002
81003         * lib/linebuffer.c: Include <stdlib.h>.
81004         (free): Remove decl.
81005
81006         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81007         stddef.h. rpl_malloc returns void *, not char *.
81008         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81009         prototype.
81010
81011         * lib/md5.h: Include <limits.h> unconditionally.
81012         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81013         (__P): Remove; all uses removed.
81014         * lib/md5.c: Include "md5.h" first.
81015         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81016         md5_buffer, md5_process_bytes, md5_process_block):
81017         Define with prototypes.
81018         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81019         * lib/sha.c: Include "sha.h" first.
81020         Include <stdlib.h>, <string.h> unconditionally.
81021
81022         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81023         * lib/memcmp.c (__ptr_t): Likewise.
81024         * lib/memrchr.c (__ptr_t): Likewise.
81025         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81026         Include <string.h> unconditionally.
81027         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81028         * lib/memchr.c: Include <stdlib.h> unconditionally.
81029         * lib/memchr.c (LONG_MAX): Remove.
81030         * lib/memrchr.c (LONG_MAX): Likewise.
81031         * lib/memchr.c (__memchr): Define via a prototype.
81032         * lib/memrchr.c (__memrchr): Likewise.
81033         * lib/memcmp.c (__P): Remove, and remove all uses.
81034         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81035         Remove forward decls; no longer needed.
81036         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81037         Use types required by C89 in prototype.
81038
81039         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81040         * lib/savedir.c: Likewise.
81041         * lib/mkdir.c (free): Remove decl.
81042         * lib/rmdir.c (rmdir): Define with a prototype.
81043         * lib/savedir.c: Include savedir.h first, to test interface.
81044
81045         * lib/mktime.c (STDC_HEADERS): Remove.
81046         Include <stdlib.h>, <string.h> unconditionally.
81047
81048         * lib/modechange.c: Include <stdlib.h> unconditionally.
81049         (malloc): Remove decl.
81050
81051         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81052         (free): Remove decl.
81053
81054         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81055         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81056         (This type really should be intptr_t, but that's a C99ism.)
81057         (_obstack_memcpy): Remove: all uses changed to memcpy.
81058         Include <string.h> unconditionally.
81059         (struct obstack): Assume __STDC__ for types of members
81060         chunkfun, freefun, extra_arg.
81061         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81062         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81063         obstack_begin, obstack_specify_allocation,
81064         obstack_specify_allocation_with_arg, obstack_chunkfun,
81065         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81066         Remove unprototyped decls and the macros that use them.
81067         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81068         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81069         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81070         (defined __STDC__ && __STDC__)]:
81071         Remove nonprototyped code.
81072         Include <stdlib.h> unconditionally.
81073         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81074         _obstack_allocated_p, _obstack_free, obstack_free,
81075         _obstack_memory_used, print_and_abort):
81076         Define using prototypes.
81077         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81078         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81079         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81080         obstack_next_free, obstack_object_size, obstack_room) [0]:
81081         Remove unused, unprototyped code.
81082
81083         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81084
81085         * lib/physmem.c (physmem_total, physmem_available, main): Define
81086         with prototypes.
81087
81088         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81089         (main): Define with a prototype.
81090
81091         * lib/posixver.c (getenv): Remove decl.
81092
81093         * lib/putenv.c (malloc): Returns void *, not char *.
81094         Include <string.h> unconditionally.
81095         (strchr, memcpy, NULL): Do not define.
81096
81097         * lib/readtokens.c: Include readtokens.h first, to test interface.
81098         Include <stdlib.h>, <string.h> unconditionally.
81099         (init_tokenbuffer): Define with a prototype.
81100
81101         * lib/regex.c (PARAMS): Remove.  All uses removed.
81102         All uses of _RE_ARGS removed, too.
81103         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81104         unconditionally.
81105         (bzero): Assume memset exists.
81106         (memcmp, memcpy, NULL): Remove.
81107         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81108         char, or assignments to local vars of type signed char.
81109         (init_syntax_once, PREFIX(extract_number_and_incr),
81110         PREFIX(print_partial_compiled_pattern),
81111         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81112         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81113         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81114         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81115         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81116         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81117         wcs_compile_range, byte_compile_range, truncate_wchar,
81118         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81119         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81120         count_mbs_length, wcs_re_match_2_internal,
81121         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81122         PREFIX(alt_match_null_string_p),
81123         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81124         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81125         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81126         now-unnecessary declaration, if any.
81127         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81128         regcomp, regexec):
81129         Remove now-unnecessary casts among pointer types.
81130         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81131
81132         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81133         (free): Remove decl.
81134
81135         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81136
81137         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81138         (free): Remove decl.
81139
81140         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81141         * lib/xgetcwd.c: Likewise.
81142
81143         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81144         (free): Remove decl.
81145
81146         * lib/strchrnul.c (strchrnul): Define with a prototype.
81147         Fix bug: c_in was not converted to char before searching.
81148
81149         The following changes are not K&R related:
81150
81151         * lib/group-member.h: Include <sys/types.h>, so that this file is
81152         self-contained.
81153         * lib/makepath.h: Likewise.
81154
81155         * lib/getusershell.c (readname, default_index, line_size, readname):
81156         Use size_t, not int, for sizes.
81157         (readname): If the size overflows, report an error instead of
81158         looping forever.
81159
81160 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81161
81162         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81163         libc.
81164
81165 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81166
81167         * README: New section: portability guidelines.
81168
81169 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81170
81171         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81172         C89 spec.
81173
81174 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81175
81176         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81177
81178 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81179
81180         Assume C89 or better; remove K&R cruft.
81181         A few of these changes were first proposed by Derek Robert Price
81182         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81183
81184         * lib/addext.c: Include <string.h> unconditionally.
81185         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81186         Don't declare getenv or malloc.
81187
81188         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81189         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81190         (NULL): Remove.
81191         (find_stack_direction, alloca): Use prototypes.
81192
81193         * lib/atexit.c (atexit): Define using a prototype.
81194
81195         * lib/basename.c, dirname.c, stripslash.c:
81196         Include <string.h> unconditionally.
81197
81198         * lib/bcopy.c: Include <stddef.h>.
81199         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81200
81201         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81202
81203         * lib/error.h (error, error_at_line, error_print_progname)
81204         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81205         * lib/error.c: Include error.h first, to check interface.
81206         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81207         (VA_START): Remove; all uses changeed to va_start.
81208         (exit, strerror): Remove decls.
81209         (error_print_progname): Prototype uncondionally.
81210         Don't include <errno.h>; no longer needed.
81211         (private_strerror): Remove.
81212         (error_tail): Always define.
81213         (error, error_at_line): Assume C89 or better; always use prototypes.
81214         * lib/fatal.c: Include "fatal.h" first, to test interface.
81215         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81216         (VA_START): Remove; all uses changed to va_start.
81217         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81218         this case.
81219         (exit): Remove decl.
81220         (fatal): Prototype unconditionally.  Assume va_start works.
81221         Abort at end, to pacify gcc.
81222
81223         * lib/euidaccess.c (main): Define with a prototype.
81224
81225         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81226
81227         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81228
81229         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81230         prototypes.
81231         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81232         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81233         (getenv): Remove decl.
81234         (fnmatch): Define using a prototype.
81235         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81236         (FCT): Define using a prototype.
81237
81238         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81239
81240         * lib/gethostname.c: Include <stddef.h>.
81241         (gethostname): Define with prototype.  Length is size_t, not int.
81242
81243 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81244
81245         Assume C89 or better; remove K&R cruft.
81246         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81247         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81248         string.h, getenv, malloc.
81249         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81250         headers.
81251         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81252         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81253         do not check for strerror.
81254         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81255         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81256         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81257         do not check for doprnt or vprintf.
81258         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81259         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81260
81261 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81262
81263         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81264         getversion.c should have been removed then, but was accidentally
81265         preserved.
81266
81267         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81268         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81269
81270 2003-09-08  Karl Berry  <karl@gnu.org>
81271
81272         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81273                 config, forget about prep.
81274
81275         * config/depcomp, missing: update from automake.
81276
81277 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81278
81279         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81280         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81281
81282 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81283
81284         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81285         copy_tm_result.  Bug reported by Simon Josefsson in
81286         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81287
81288 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81289
81290         * m4/time_r.m4: New file.
81291         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81292         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81293         is. Check for timegm declaration.
81294         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81295         Do not check for gmtime_r.
81296         Replace mktime if __mktime_internal does not exist and if mktime
81297         hasn't been replaced already.
81298
81299 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81300
81301         * lib/time_r.c, lib/time_r.h: New files.
81302
81303         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81304         __localtime_r.
81305         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81306         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81307
81308         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81309         __gmtime_r.
81310         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81311         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81312         Include <time_r.h>.
81313
81314         * lib/timegm.c: Switch to glibc implementation, with the following
81315         changes:
81316         [defined HAVE_CONFIG_H]: Include <config.h>.
81317         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81318         (__mktime_internal) [!defined _LIBC]: New decl.
81319         (__gmtime_r) [!defined _LIBC]: New macro and function.
81320         (timegm): Use a prototype, since gnulib assumes C89.
81321         Do not bother declaring tmp to be const, as it's not really usefu.
81322         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81323         (timegm): Declare only if HAVE_DECL_TIMEGM.
81324
81325 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81326
81327         * MODULES.html.sh (func_all_modules): Add time_r.
81328         * modules/time_r: New file.
81329         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81330         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81331
81332 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81333
81334         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81335         Bug reported by Lute Kamstra in
81336         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81337
81338         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81339         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81340         course with correspondingly smaller numbers for tomorrow and
81341         yesterday.  From Tadayoshi Funaba.  Originally installed into
81342         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81343         coreutils merge?).
81344
81345 2003-08-31  Simon Josefsson  <jas@extundo.com>
81346
81347         * modules/timegm: New file.
81348         * MODULES.html.sh (func_all_modules): Add timegm.
81349
81350 2003-08-31  Simon Josefsson  <jas@extundo.com>
81351
81352         * m4/timegm.m4: New file.
81353
81354 2003-08-31  Simon Josefsson  <jas@extundo.com>
81355
81356         * lib/timegm.h: New file.
81357         * lib/timegm.c: New file.  Based on
81358         wget-1.8.2/src/http.c:mktime_from_utc.
81359
81360 2003-08-31  Karl Berry  <karl@gnu.org>
81361
81362         * lib/argp.h: update from libc.
81363
81364 2003-08-28  Bruno Haible  <bruno@clisp.org>
81365
81366         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81367         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81368         followed by '#define fnmatch fnmatch_posix' gives an error.
81369
81370 2003-08-28  Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81373         warning on QNX, which defines O_BINARY to 000000.
81374
81375 2003-08-27  Jim Meyering  <jim@meyering.net>
81376
81377         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81378         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81379         would fail after 32.  Reported by Danny Levinson.  Details here:
81380         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81381
81382 2003-08-24  Bruno Haible  <bruno@clisp.org>
81383
81384         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81385         MSVC7 <stdio.h> is included later.
81386
81387 2003-08-22  Simon Josefsson  <jas@extundo.com>
81388
81389         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81390
81391 2003-08-20  Karl Berry  <karl@gnu.org>
81392
81393         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81394
81395 2003-08-20  Bruno Haible  <bruno@clisp.org>
81396
81397         * modules/progname: New file.
81398         * MODULES.html.sh (func_all_modules): Add progname.
81399
81400 2003-08-20  Bruno Haible  <bruno@clisp.org>
81401
81402         * lib/progname.h: New file, from GNU gettext.
81403         * lib/progname.c: New file, from GNU gettext.
81404         * lib/progreloc.c: New file, from GNU gettext.
81405
81406 2003-08-19  Jim Meyering  <jim@meyering.net>
81407
81408         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81409         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81410
81411 2003-08-19  Bruno Haible  <bruno@clisp.org>
81412
81413         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81414         more.
81415
81416 2003-08-19  Bruno Haible  <bruno@clisp.org>
81417
81418         * lib/xstrdup.c: Assume <string.h> exists.
81419
81420 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81421
81422         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81423         in makefile rules.
81424
81425 2003-08-18  Jim Meyering  <jim@meyering.net>
81426
81427         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81428         * m4/lib-ld.m4: Likewise.
81429
81430 2003-08-18  Jim Meyering  <jim@meyering.net>
81431
81432         * lib/setenv.h: Indent nested cpp directive.
81433         * lib/vasnprintf.c: Remove trailing blanks.
81434
81435 2003-08-17  Simon Josefsson  <jas@extundo.com>
81436
81437         * modules/xstrndup: New file.
81438         * MODULES.html.sh (func_all_modules): Add xstrndup.
81439
81440 2003-08-17  Simon Josefsson  <jas@extundo.com>
81441
81442         * modules/argp: Fix autoconf macro name. Add more dependencies.
81443
81444 2003-08-17  Simon Josefsson  <jas@extundo.com>
81445
81446         * m4/xstrndup.m4: New file.
81447
81448 2003-08-17  Simon Josefsson  <jas@extundo.com>
81449
81450         * m4/argp.m4: New file.
81451
81452 2003-08-17  Simon Josefsson  <jas@extundo.com>
81453             Bruno Haible  <bruno@clisp.org>
81454
81455         * lib/xstrndup.h: New file.
81456         * lib/xstrndup.c: New file.
81457
81458 2003-08-17  Bruno Haible  <bruno@clisp.org>
81459
81460         * modules/strndup (Files, Include): Add lib/strndup.h.
81461
81462 2003-08-17  Bruno Haible  <bruno@clisp.org>
81463
81464         * modules/euidaccess (Files): Add lib/euidaccess.h.
81465
81466 2003-08-17  Bruno Haible  <bruno@clisp.org>
81467
81468         * lib/strndup.h: New file.
81469
81470 2003-08-17  Bruno Haible  <bruno@clisp.org>
81471
81472         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81473         like AC_GNU_SOURCE.
81474         * modules/extensions (configure.ac): Comment out the invocation of
81475         gl_USE_SYSTEM_EXTENSIONS.
81476
81477 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81478
81479         Merges from coreutils, etc.
81480         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81481         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81482         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81483         fixing a typo.
81484         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81485         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81486
81487 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81488
81489         Document merge from coreutils.
81490         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81491         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81492         * modules/utime: Add m4/utimes-null.m4.
81493
81494 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81495
81496         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81497         space, undoing this 2003-08-12 change:
81498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81499
81500 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81501
81502         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81503         strtoul.c from libc, undoing this 2003-08-12 change:
81504         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81505
81506 2003-08-16  Jim Meyering  <jim@meyering.net>
81507
81508         Merges from coreutils.
81509         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81510         prefix.  Adjust cache variables similarly.  Create 500 rather than
81511         just 300 files, to exercise bug on Darwin6.5, too.
81512         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81513         $missing_dir.
81514         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81515         AM_SYS_POSIX_TERMIOS.
81516         Reported by mkc@mathdogs.com.
81517         Also change use of $am_cv_sys_posix_termios
81518         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81519         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81520         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81521         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81522         in /proc/mounts until it finds one with matching device number.  This
81523         is unnecessary when the FILE argument *is* a mount point.  No stat call
81524         is necessary in that case.  So, disable the statvfs-testing code on
81525         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81526         as RedHat bug# 84846.
81527         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81528         to 1MB, so as not to render systems with no stack size limit (e.g.,
81529         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81530         Include <unistd.h>.  On some systems,
81531         it is required for the definition of _SC_PAGESIZE.
81532
81533 2003-08-16  Jim Meyering  <jim@meyering.net>
81534
81535         Merge from coreutils.
81536         * lib/xstrtoimax.c: #else #if -> #elif.
81537         * lib/xstrtoumax.c: Likewise.
81538
81539 2003-08-16  Jim Meyering  <jim@meyering.net>
81540
81541         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81542         * m4/utimes.m4: Removed.
81543         * m4/utimes-null.m4: Renamed from utimes.m4.
81544
81545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81546         to 1MB, so as not to render systems with no stack size limit (e.g.,
81547         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81548         Include <unistd.h>.  On some systems,
81549         it is required for the definition of _SC_PAGESIZE.
81550
81551 2003-08-16  Jim Meyering  <jim@meyering.net>
81552         and Paul Eggert  <eggert@cs.ucla.edu>
81553
81554         Merges from coreutils, etc.
81555
81556         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81557         using the latest version from cvs.  This avoids problems with #line
81558         directives using a vendor (Sun) compiler.
81559         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81560         Don't set GETGROUPS_LIB here; now it's
81561         done via getgroups.m4's wrapper function.
81562         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81563         rather than just in sh-util/configure.in, so that the
81564         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81565         same.
81566         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81567         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81568         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81569         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81570         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81571         Remove code that is now done by the newly-required macros.
81572         Append $(EXEEXT) to DF_PROG.
81573         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81574         Do not invoke or require the following here,
81575         since prereq.m4 or some gnulib .m4 now does this for us:
81576         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81577         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81578         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81579         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81580         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81581         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81582         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81583         AC_FUNC_OBSTACK.
81584         Do not replace the following functions, as this is now the job
81585         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81586         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81587         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81588         atexit getpass, strdup, getpagesize.
81589         Replace 'raise'.
81590         Do not check for the following functions, as this is now the job
81591         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81592         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81593         setregid.
81594         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81595         Check for sys/sysctl.h.
81596         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81597         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81598         of checking for ssize_t ourselves.
81599
81600         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81601         Require every macro that gnulib/modules/* suggests for us.
81602         (jm_PREREQ_ADDEXT): New macro.
81603         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81604         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81605
81606         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81607         (gl_PHYSMEM): Use it.
81608         Also check for `table' function.
81609         Check for new headers and functions.
81610         Add check for sys/sysmp.h.
81611         With suggestions from Kaveh Ghazi.
81612         Ignore headers that are present but cannot be compiled.  This
81613         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81614         C 5.4.
81615
81616 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81617
81618         Document merge from coreutils.
81619         * modules/userspec: Depend on posixver.
81620         * modules/strftime: Depend on tzset.
81621
81622 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81623
81624         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81625         rather than tab, after '#' in shell-script copyright notices.
81626         Suggested by Bruno Haible.
81627
81628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81629
81630         * config/srclist-update: Use three spaces, rather than tab, after '#'
81631         in shell-script copyright notices.  Suggested by Bruno Haible.
81632         Remove unnecessary parenthesization in regular expression.
81633
81634 2003-08-15  Jim Meyering  <jim@meyering.net>
81635
81636         Merge from coreutils.
81637         * lib/xgethostname.c: Include <stdlib.h>.
81638         (xghostname): Don't exit for anything other than memory-related
81639         failure; just return NULL.
81640         * lib/userspec.c: Include "posixver.h".
81641         (parse_user_spec): Accept `.' as a separator only
81642         in pre-POSIX-200112 mode.
81643         * lib/strtoimax.c: Use #elif rather than #else #if.
81644         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81645         Remove function, now that we can rely on a working tzset function.
81646         [!_LIBC]: Ensure that the required autoconf test has been run.
81647         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81648         Use underlying_strftime for %r.
81649         * lib/sha.c: Merge in some clean-up and optimization changes from
81650         glibc.
81651         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81652         Ensure that it is a multiple of 64.
81653         Rearrange loop exit tests so as to avoid performing an
81654         additional fread after encountering an error or EOF.
81655         * lib/realloc.c: Update copyright date.
81656
81657 2003-08-15  Jim Meyering  <jim@meyering.net>
81658         and Paul Eggert  <eggert@twinsun.com>
81659
81660         Merge from coreutils.
81661         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81662         member but strut utmpx does not.  Needed for AIX 4.3.3.
81663         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81664
81665 2003-08-15  Jim Meyering  <jim@meyering.net>
81666         and Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         Merges from coreutils, etc.
81669         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81670         Require gl_FUNC_TZSET_CLOBBER.
81671         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81672         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81673         members.
81674
81675 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81676
81677         Help the merge from coreutils.
81678         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81679         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81680         * m4/tzset.m4: Use it too.
81681
81682 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81683
81684         * modules/tzset: New file.
81685
81686 2003-08-14  Jim Meyering  <jim@meyering.net>
81687
81688         Merges from coreutils.
81689         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81690         variable names, rather than @FNMATCH_H@.
81691         * modules/alloca: Likewise for $(ALLOCA_H).
81692
81693         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81694         the three copies of the literal target, `fnmatch.h'.
81695         * modules/alloca (alloca.h): Likewise.
81696
81697 2003-08-14  Jim Meyering  <jim@meyering.net>
81698
81699         Merge from coreutils.
81700         * m4/tzset.m4: New file.
81701         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81702         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81703         otherwise, AIX 5.1 systems would end up using the latter.
81704         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81705         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81706         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81707         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81708
81709 2003-08-14  Jim Meyering  <jim@meyering.net>
81710
81711         Merge from coreutils.
81712         * lib/obstack.h: Whitespace changes.
81713         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81714         and xcalloc return values.
81715         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81716         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81717         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81718         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81719         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81720         error from mntctl.
81721         Use mntctl's return value to drive the entry-processing loop, since
81722         we can't rely on the value of the vmt_length member in the last
81723         entry.  On some systems doing so could result in exhausting
81724         virtual memory.  Based in part on a patch from Mike Jetzer.
81725
81726 2003-08-14  Jim Meyering  <jim@meyering.net>
81727         and Paul Eggert  <eggert@twinsun.com>
81728
81729         Merges from coreutils, plus other fixes.
81730         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81731         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81732         for credits and details.  Thanks to Kaveh Ghazi for helping
81733         to keep these files in sync.
81734         (ARRAY_SIZE): Define it.
81735         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81736         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81737         (memcasecmp): Don't assume size_t fits in unsigned int.
81738         Remove casts and duplicate code.
81739         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81740         (memcpy): Remove definition.
81741         Merge in some clean-up and optimization changes from glibc.
81742         [BLOCKSIZE]: Move definition to top of file.
81743         Ensure that it is a multiple of 64.
81744         Rearrange loop exit tests so as to avoid performing an
81745         additional fread after encountering an error or EOF.
81746         * lib/md5.h (md5_uintptr): Define.
81747         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81748         return to the initial working directory.  Preserve errno
81749         for caller.
81750         * lib/idcache.c: Include "xalloc.h".
81751         (xmalloc, xrealloc): Remove decls.
81752         (getuser): Remove casts no longer required in C89.
81753         * lib/human.c: Include stdio.h, for sprintf.
81754         * lib/group-member.c: Include "xalloc.h".
81755         (xmalloc, xrealloc): Remove decls.
81756         (get_group_info): Remove casts no longer required in C89.
81757         * lib/getusershell.c (readname): Remove casts no longer required in
81758         C89.
81759         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81760         * lib/getline.c: Whitespace fix, from coreutils.
81761
81762 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81763
81764         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81765         Check for isascii.
81766
81767         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81768         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81769         Undo previous (whitespace-only) change.
81770
81771 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81772
81773         * lib/exclude.c: Include <ctype.h>
81774         (IN_CTYPE_DOMAIN): New macro.
81775         (is_space): New fn.
81776         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81777         and empty lines.
81778
81779         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81780         Undo previous (whitespace-only) change.
81781
81782 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81783
81784         * config/srclist-update: Change update back to the old behavior,
81785         leaving whitespace alone.  Use one 'sed' command rather than a
81786         pipeline.
81787         (fixlicense): Now a variable, not a function.
81788         (remove_trailing_blanks): Remove.
81789         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81790         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81791         Undo previous (whitespace-only) change.
81792
81793 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81794
81795         Merge from coreutils.
81796         * modules/euidaccess: Add lib_SOURCES, include for new
81797         file euidaccess.h
81798
81799 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81800
81801         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81802         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81803         Normalize leading white space and remove trailing white space.
81804
81805         Merge from coreutils
81806         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81807
81808         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81809         0.12.1.  These files are now being upgraded automatically by
81810         ../config/srclist-update.
81811
81812 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81813
81814         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81815         Normalize leading white space and remove trailing white space.
81816         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81817         notice, as per ../config/srclist-update.
81818
81819         Merge from coreutils.
81820         * lib/euidaccess.h: New file.
81821         * lib/euidaccess.c: Include it.
81822         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81823         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81824         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81825
81826 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81827
81828         * config/srclist-update: Add copyright notice.
81829         (remove_id_lines, remove_trailing_blanks): New constants.
81830         (fixfile): Use them to normalize spacing a bit in copied files.
81831         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81832         Normalize leading white space and remove trailing white space.
81833
81834         * config/texinfo.tex: Sync with texinfo.
81835
81836         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81837         strtoul.c from libc, to merge coreutils whitespace changes.
81838
81839         * config/srclist.txt: Get the following m4 files from gettext:
81840         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81841         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81842         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81843         wint_t.m4.
81844
81845 2003-08-12  Karl Berry  <karl@gnu.org>
81846
81847         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81848         been made.
81849
81850 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81851
81852         * modules/gnu-source, m4/gnu-source.m4:
81853         Remove; we're assuming Autoconf 2.54 or later now.
81854         Suggested by Bruno Haible.
81855         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81856
81857 2003-08-11  Bruno Haible  <bruno@clisp.org>
81858
81859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81860
81861 2003-08-11  Bruno Haible  <bruno@clisp.org>
81862
81863         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81864         (vasnprintf): Use it instead of wcslen.
81865
81866 2003-08-11  Bruno Haible  <bruno@clisp.org>
81867
81868         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81869         value to ensure that _Bool promotes to int. Use #define for _Bool when
81870         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81871
81872 2003-08-10  Karl Berry  <karl@gnu.org>
81873
81874         * lib/regex.h: update from libc (whitespace fix).
81875
81876 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81877
81878         Merge some files from coreutils.  These changes were
81879         originally made by Jim Meyering.
81880         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81881         many older Unixes require this.
81882         * lib/alloca.c (alloca): Remove cast to argument of free;
81883         no longer needed in C89.
81884         * lib/alloca_.h, regex.h: Fix white space to match
81885         what GNU indent does.
81886
81887 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81888
81889         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81890         apparently Emacs's Unicode mode got confused before my 2003-08-05
81891         checkin.
81892
81893 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81894
81895         * m4/extensions.m4: New file.
81896         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81897         Require gl_USE_SYSTEM_EXTENSIONS.
81898         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81899         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81900
81901 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81902
81903         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81904         * modules/extensions, modules/gnu-source: New files.
81905         * modules/timespec, modules/unlocked-io: Depend on extensions.
81906
81907 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81908
81909         * modules/restrict: New file.
81910         * MODULES.html.sh (func_all_modules): Add restrict.
81911         * modules/regex: Depend on restrict.
81912
81913 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81914
81915         * m4/restrict.m4: New file.
81916         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81917
81918 2003-08-07  Bruno Haible  <bruno@clisp.org>
81919
81920         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81921         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81922
81923 2003-08-07  Bruno Haible  <bruno@clisp.org>
81924
81925         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81926         makes the module 'getndelim2' compatible with the module 'getline'.
81927
81928 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81929
81930         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81931         byte with "\201" to avoid glitches when editing that source file
81932         with multi-gnome-terminal.
81933
81934 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81935
81936         * lib/bumpalloc.h: Remove.
81937
81938 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81939
81940         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81941         * modules/bumpalloc: Remove.
81942
81943 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81944
81945         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81946         GNU coding style.
81947
81948         Merge from coreutils.
81949         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81950         1. From glibc.
81951         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81952         from Karl Berry, implemented by Jim Meyering.
81953         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81954         from Dmitry V. Levin.
81955         Remove anachronistic cast of xrealloc.
81956         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81957         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81958         type. Otherwise, it wouldn't compile with at least /bin/cc on
81959         ymp-cray-unicos9.0.2.X.
81960         Combine two mostly-identical uses of alloca into one.
81961         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81962
81963 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81964
81965         [From Emacs.]
81966
81967         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81968         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81969         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81970         obsolete NLIST_NAME_UNION.
81971         [__GNU__]: Undef BSD and FSCALE.
81972         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81973
81974 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81975
81976         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81977         an enum type, so that it's guaranteed to promote to int.  See:
81978         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81979
81980 2003-08-03  Karl Berry  <karl@gnu.org>
81981
81982         * config/depcomp: update from automake.
81983
81984 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81985
81986         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81987         (strerror): Don't assume that a printable int fits in 14 bytes.
81988
81989 2003-07-31  Bruno Haible  <bruno@clisp.org>
81990
81991         * modules/getpass-gnu: New file.
81992         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81993
81994 2003-07-31  Bruno Haible  <bruno@clisp.org>
81995
81996         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81997
81998 2003-07-24  Karl Berry  <karl@gnu.org>
81999
82000         * config/missing: update from automake.
82001
82002 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82003             Bruno Haible  <bruno@clisp.org>
82004
82005         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82006         * lib/getline.c (getline, getdelim): Likewise.
82007         Remove _GNU_SOURCE define; now it's defined in config.h through
82008         m4/getline.m4.
82009
82010 2003-07-23  Karl Berry  <karl@gnu.org>
82011
82012         * config/config.sub: update from prep.
82013
82014 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82015
82016         * modules/xalloc (Depends-on): Add exitfail.
82017         * modules/xmemcoll: Likewise.
82018
82019 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82020
82021         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82022         over-parenthesization in macros.
82023
82024         Sync with coreutils.
82025
82026         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82027         required by C99.
82028
82029         Use `exit_failure' for xalloc and xmemcoll instead of their own
82030         private exit-failure variables.
82031         * lib/xalloc.h (xalloc_exit_failure): Remove.
82032         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82033         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82034         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82035         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82036         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82037
82038 2003-07-20  Jim Meyering  <jim@meyering.net>
82039
82040         * modules/closeout (Depends-on): Add exitfail.
82041         Suggestion from Bruno Haible.
82042
82043 2003-07-19  Karl Berry  <karl@gnu.org>
82044
82045         * config/config.sub: update from prep.
82046
82047 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82048
82049         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82050         Remove.
82051         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82052         to test that it can stand by itself.  Include "exitfail.h".
82053         Clients should set exit_failure instead.
82054         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82055
82056 2003-07-18  Bruno Haible  <bruno@clisp.org>
82057
82058         * modules/getndelim2: New file.
82059         * modules/getline: Share files with module getndelim2.
82060         * modules/getnline: Depend on getndelim2 instead of sharing files with
82061         it. Add getnline.c to lib_SOURCES.
82062         * MODULES.html.sh (func_all_modules): Add getndelim2.
82063
82064 2003-07-18  Bruno Haible  <bruno@clisp.org>
82065
82066         * m4/getndelim2.m4: New file.
82067         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82068         invoke gl_PREREQ_GETNDELIM2.
82069         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82070         gl_PREREQ_GETNDELIM2.
82071         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82072         gl_GETNDELIM2.
82073
82074 2003-07-18  Bruno Haible  <bruno@clisp.org>
82075
82076         * lib/getndelim2.h: New file.
82077         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82078         getndelim2.h.
82079         (getndelim2): Make non-static. Change return type to ssize_t.
82080         * lib/getline.h: Change argument names.
82081         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82082         * lib/getnline.c: Include getndelim2.h.
82083
82084 2003-07-18  Andreas Schwab  <schwab@suse.de>
82085
82086         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82087
82088 2003-07-17  Karl Berry  <karl@gnu.org>
82089
82090         * config/config.sub: update from prep.
82091
82092 2003-07-17  Bruno Haible  <bruno@clisp.org>
82093
82094         * modules/getnline: New file.
82095         * modules/getline: Add lib/getndelim2.c to source file list.
82096         * MODULES.html.sh (func_all_modules): Add getnline.
82097
82098 2003-07-17  Bruno Haible  <bruno@clisp.org>
82099
82100         * m4/getnline.m4: New file.
82101
82102 2003-07-17  Bruno Haible  <bruno@clisp.org>
82103
82104         * m4/Makefile.am.in: Remove file.
82105         * m4/Makefile.am: Remove file.
82106         * m4/Makefile.in: Remove file.
82107
82108 2003-07-17  Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/getnline.h: New file.
82111         * lib/getnline.c: New file.
82112         * lib/getndelim2.c: New file, extracted from getline.c.
82113         (getndelim2): Renamed from getdelim2, with added nmax argument.
82114         * lib/getline.c: Include getndelim2.c.
82115         (getdelim2): Moved out to getndelim2.c.
82116         (getline, getdelim): Update.
82117
82118 2003-07-17  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/Makefile.am: Remove file.
82121         * lib/Makefile.in: Remove file.
82122
82123 2003-07-17  Bruno Haible  <bruno@clisp.org>
82124
82125         * configure.in: Remove file.
82126         * Makefile.in: Remove file.
82127
82128 2003-07-17  Bruno Haible  <bruno@clisp.org>
82129
82130         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82131
82132 2003-07-16  Karl Berry  <karl@gnu.org>
82133
82134         * config/srclist-update: was running fixlicense twice, which caused
82135                 texinfo.tex to be nullified for some reason.  Simplify,
82136                 $gplsrc is no longer needed as far as I can see?
82137
82138 2003-07-16  Jim Meyering  <jim@meyering.net>
82139
82140         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82141
82142 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82143
82144         * config/srclist.txt: Get the following files from gettext-runtime/intl
82145         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82146         ref-del.sin.  From Bruno Haible.
82147         * config/srclist-update (fixfile): Change grep pattern again, since the
82148         previous fix didn't work (there was another trailing $).  Use
82149         '[$]' to escape the $s.
82150
82151 2003-07-15  Karl Berry  <karl@gnu.org>
82152
82153         * lib/vasnprintf.c: update from gettext.
82154
82155 2003-07-15  Karl Berry  <karl@gnu.org>
82156
82157         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82158         gets expanded when surrounded by '$'.
82159
82160 2003-07-15  Jim Meyering  <jim@meyering.net>
82161
82162         * modules/save-cwd: Don't depend on error.  From Derek Price.
82163
82164 2003-07-15  Jim Meyering  <jim@meyering.net>
82165
82166         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82167
82168 2003-07-14  Simon Josefsson  <jas@extundo.com>
82169
82170         * modules/mempcpy: New file.
82171         * MODULES.html.sh (func_all_modules): Add mempcpy.
82172
82173 2003-07-14  Simon Josefsson  <jas@extundo.com>
82174
82175         * m4/mempcpy.m4: New file.
82176
82177 2003-07-14  Simon Josefsson  <jas@extundo.com>
82178
82179         * lib/mempcpy.h: New file.
82180         * lib/mempcpy.c: New file.
82181
82182 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82183
82184         * modules/getdate, modules/posixtm: Depend on mktime.
82185
82186 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82187
82188         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82189         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82190         unicodeio.c, unicodeio.h, unlocked-io.h:
82191         Switch from LGPL to GPL.
82192
82193 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82194
82195         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82196         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82197         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82198         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82199         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82200         updated automatically by ../config/srclist-update.  This changes
82201         their license from LPGL to GPL.
82202
82203 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82204
82205         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82206         assumed to refer to the root of the most recent stable gettext version.
82207         * config/srclistvars.sh: Add defaults for eggert.
82208         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82209         Match "This program" as well as "The program".  This is needed
82210         for gettext.
82211
82212 2003-07-14  Jim Meyering  <jim@meyering.net>
82213
82214         Don't emit diagnostics.  Let callers do that.
82215         * lib/save-cwd.c: Don't include "error.h".
82216         (save_cwd): Don't call error.  Ensure that errno is valid
82217         when returning nonzero.
82218
82219         * lib/save-cwd.h (restore_cwd): Update prototype.
82220         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82221         Simplify.  Don't call error upon failure.  Let callers do that.
82222         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82223         when auditing is enabled.  But don't bother updating the #if.
82224
82225 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82226
82227         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82228         it breaks C++ compilation.
82229         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82230
82231 2003-07-10  Simon Josefsson  <jas@extundo.com>
82232
82233         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82234
82235 2003-07-10  Jim Meyering  <jim@meyering.net>
82236
82237         * m4/clock_time.m4: Remove trailing blank.
82238         * m4/intmax_t.m4: Likewise.
82239
82240 2003-07-10  Jim Meyering  <jim@meyering.net>
82241
82242         * lib/vasnprintf.c: Remove trailing blanks.
82243         Make cpp indentation consistent.
82244
82245 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82246
82247         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82248         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82249         Switch from LGPL to GPL.
82250
82251 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82252
82253         * config/srclist.txt: Sort sublists.  Add
82254         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82255         that differ from gnulib for one reason or another; we'd like this list
82256         to be smaller but for now let's document what we have.
82257
82258 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82259
82260         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82261         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82262         and sweeter "eval x=$x".
82263         * config/srclist.txt: Get lib/argp* from glibc.
82264
82265 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82266
82267         * lib/mktime.c: Fix some boundary cases and remove need for floating
82268         point.
82269
82270         Issue a compile-time diagnostic if time_t is floating point, or if
82271         two's complement arithmetic is not in effect, or if arithmetic
82272         right shift does not propagate the sign.  These assumptions were
82273         all in the original code but they weren't checked.
82274
82275         (TIME_T_MIDPOINT, verify): New macros.
82276         (__isleap): Remove; it has integer overflow problems.
82277         (leapyear): New function, without those problems.
82278         (ydhms_tm_diff): Remove; splitting into two parts.
82279         (ydhms_diff): New function, containing the arithmetic part of
82280         the old ydhms_tm_diff function.  Issue a compile-time
82281         diagnostic if we are not using C99 integer division.
82282         Avoid casts when possible.
82283         (guess_time_tm): New function, containing the checking part of
82284         the old ydhms_tm_diff function.  Return the new value, rather than
82285         the difference between it and the old.  Accept a new argument T
82286         so that *T specifies the old value.  Check for overflow in the result.
82287
82288         (__mktime_internal): Use a time_t offset, not a long int offset.
82289         This undoes the 2003-06-04 change, which is no longer needed now
82290         that we have better overflow checking.
82291         (localtime_offset): Likewise.
82292
82293         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82294         and long are 64-bit but int is only 32-bit.
82295         (ydhms_diff): Use long int to store year1 and yday1.
82296         Issue a compile-time diagnostic if long int is not wide enough.
82297
82298         (__mktime_internal): Use long int to store adjusted year and yday.
82299         Use plain C rather than preprocessor commands, if that doesn't
82300         affect efficiency.
82301         Check for overflow (and try to repair) after each probe
82302         rather than checking only at the very end.  This avoids some bugs
82303         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82304         does not equal GMT offset at maximum time).
82305         Use integer to check for overflow rather than floating point; this
82306         is more portable to non-IEEE hosts, and is a tad faster.
82307         When we detect that we are oscillating between two values,
82308         don't check whether tm_isdst has the requested value, since
82309         we already know the answer.  When tm_isdst has the wrong value,
82310         use a different heuristic to find the right one, based on the
82311         extreme values actually observed in practice in tz2003a,
82312         rather than the (overly optimistic) "previous 3 calendar quarters".
82313
82314         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82315         "T const" to accommodate glibc style.
82316         (check_result): Use less-confusing report format.  "long" -> "long int.
82317         (main): Likewise.
82318         Don't loop if the iteration overflows time_t.
82319         Allow a negative step in the iteration.
82320
82321 2003-07-06  Karl Berry  <karl@gnu.org>
82322
82323         * config/depcomp: update from automake.
82324         * config/config.sub: update from prep.
82325
82326 2003-07-03  Karl Berry  <karl@gnu.org>
82327
82328         * config/config.guess: update from prep.
82329
82330 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82331
82332         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82333         xreadlink.c now includes it unconditionally.
82334
82335 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82336
82337         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82338         having it depend on HAVE_SYS_TYPES_H.
82339
82340 2003-07-01  Bruno Haible  <bruno@clisp.org>
82341
82342         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82343         <sys/types.h> should be sufficient.
82344         Reported by Paul Eggert.
82345
82346 2003-06-26  Karl Berry  <karl@gnu.org>
82347
82348         * config/depcomp: update from automake.
82349
82350 2003-06-26  Bruno Haible  <bruno@clisp.org>
82351
82352         * modules/human: Depend on module stdbool.
82353
82354 2003-06-25  Bruno Haible  <bruno@clisp.org>
82355
82356         * modules/readlink: New file.
82357         * modules/xreadlink: Depend on it.
82358         * MODULES.html.sh (func_all_modules): Add readlink.
82359
82360 2003-06-25  Bruno Haible  <bruno@clisp.org>
82361
82362         * m4/readlink.m4: New file.
82363
82364 2003-06-25  Bruno Haible  <bruno@clisp.org>
82365
82366         * lib/readlink.c: New file.
82367
82368 2003-06-22  Karl Berry  <karl@gnu.org>
82369
82370         * config/srclist.txt: update mkinstalldirs from automake.
82371         * config/mkinstalldirs: update.
82372
82373 2003-06-22  Bruno Haible  <bruno@clisp.org>
82374
82375         Portability to mingw32.
82376         * m4/ssize_t.m4: New file, from GNU gettext.
82377         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82378         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82379
82380 2003-06-22  Bruno Haible  <bruno@clisp.org>
82381
82382         * modules/safe-read: Add m4/ssize_t.m4.
82383         * modules/xreadlink: Add m4/ssize_t.m4.
82384
82385 2003-06-20  Bruno Haible  <bruno@clisp.org>
82386
82387         Assume C89, so PARAMS isn't needed.
82388         * lib/unicodeio.h (PARAMS): Remove.
82389         * lib/unicodeio.c: Don't use PARAMS.
82390
82391 2003-06-18  Karl Berry  <karl@gnu.org>
82392
82393         * config/config.{guess,sub}: update from prep.
82394
82395 2003-06-18  Jim Meyering  <jim@meyering.net>
82396
82397         Merge changes from coreutils.
82398         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82399         Remove explicit declarations of xmalloc and realloc.
82400         Include xalloc.h.
82401         (read_utmp): Remove anachronistic cast of xmalloc.
82402
82403 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82404
82405         Assume C89, so PARAMS isn't needed.
82406         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82407         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82408         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82409         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82410         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82411         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82412         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82413         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82414         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82415         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82416         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82417         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82418         no longer needed. Anyway, config.h should always be included before any
82419         other file.
82420
82421 2003-06-11  Simon Josefsson  <jas@extundo.com>
82422
82423         * modules/sysexits: New file.
82424         * MODULES.html.sh (func_all_modules): Add sysexits.
82425
82426 2003-06-11  Simon Josefsson  <jas@extundo.com>
82427
82428         * lib/sysexit_.h: New file.
82429
82430 2003-06-11  Derek Price  <derek@ximbiot.com>
82431
82432         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82433         necessary.
82434
82435 2003-06-11  Bruno Haible  <bruno@clisp.org>
82436
82437         * m4/sysexits.m4: New file.
82438
82439 2003-06-10  Simon Josefsson  <jas@extundo.com>
82440
82441         * lib/argp.h: New file, from glibc.
82442         * lib/argp-ba.c: New file, from glibc.
82443         * lib/argp-eexst.c: New file, from glibc.
82444         * lib/argp-fmtstream.c: New file, from glibc.
82445         * lib/argp-fmtstream.h: New file, from glibc.
82446         * lib/argp-fs-xinl.c: New file, from glibc.
82447         * lib/argp-help.c: New file, from glibc.
82448         * lib/argp-namefrob.h: New file, from glibc.
82449         * lib/argp-parse.c: New file, from glibc.
82450         * lib/argp-pv.c: New file, from glibc.
82451         * lib/argp-pvh.c: New file, from glibc.
82452         * lib/argp-xinl.c: New file, from glibc.
82453
82454 2003-06-10  Simon Josefsson  <jas@extundo.com>
82455
82456         * modules/strchrnul: New file.
82457
82458 2003-06-10  Simon Josefsson  <jas@extundo.com>
82459
82460         * modules/argp: New file.
82461
82462 2003-06-10  Simon Josefsson  <jas@extundo.com>
82463
82464         * m4/strchrnul.m4: New file.
82465
82466 2003-06-10  Simon Josefsson  <jas@extundo.com>
82467
82468         * lib/strchrnul.h: New file.
82469         * lib/strchrnul.c: New file.
82470
82471 2003-06-10  Bruno Haible  <bruno@clisp.org>
82472
82473         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82474
82475 2003-06-07  Karl Berry  <karl@gnu.org>
82476
82477         * config/config.{guess,sub}: update from prep.
82478
82479 2003-06-07  Jim Meyering  <jim@meyering.net>
82480
82481         * modules/strtod: Use $(...) notation, not @...@ for
82482         AC_REPLACE'd variables.
82483         * modules/localcharset: Likewise.
82484
82485 2003-06-07  Jim Meyering  <jim@meyering.net>
82486
82487         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82488         in place of my name in the copyright comment.
82489         Remove definition and uses of __P.
82490
82491         From coreutils.
82492         * lib/stat.c: Don't declare xmalloc explicitly.
82493         Instead, include "xalloc.h".
82494         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82495         xrealloc, and xcalloc return values.
82496         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82497         Improve comment.
82498         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82499
82500 2003-06-07  Bruno Haible  <bruno@clisp.org>
82501
82502         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82503         avoid AC_CONFIG_LINKS.
82504         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82505         fnmatch.h, to avoid AC_CONFIG_LINKS.
82506         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82507
82508 2003-06-07  Bruno Haible  <bruno@clisp.org>
82509
82510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82511         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82512         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82513         directory.
82514         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82515         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82516         directory.
82517
82518 2003-06-06  Jim Meyering  <jim@meyering.net>
82519
82520         Merge from coreutils.
82521         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82522         Consolidate declarations and initializations of *_base* locals.
82523
82524         Merge from coreutils.
82525         This avoids a core dump on systems without GNU putenv,
82526         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82527         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82528         (unsetenv): New static function, from GNU libc.
82529         (rpl_putenv): Use it.
82530
82531         * lib/modechange.c: Remove trailing blanks.
82532
82533         Merge from coreutils.
82534         * lib/fsusage.c: Remove declaration of statfs.
82535         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82536
82537         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82538
82539 2003-06-06  Jim Meyering  <jim@meyering.net>
82540
82541         * lib/stdbool_.h: Renamed from stdbool.h.in.
82542
82543 2003-06-06  Jim Meyering  <jim@meyering.net>
82544             Bruno Haible  <bruno@clisp.org>
82545
82546         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82547         Adjust Makefile.am snippet not to redirect directly to target.
82548         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82549
82550 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82551
82552         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82553         mismatch, look in future quarters as well as past.  This fixes a
82554         bug when processing fall-backwards gaps immediately after a long
82555         period of daylight-saving time.
82556
82557         * lib/mktime.c: Assume freestanding C89 or better.
82558         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82559         (__P): Remove; not used.
82560         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82561         (mktime, not_equal_tm, print_tm, check_result,
82562         main): Use prototypes.  Use const * where appropriate.
82563         (main): Fix typo in testing code that uncovered by above changes.
82564         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82565
82566 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82567
82568         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82569         locale.h, localeconv.  This merges changes from coreutils.
82570
82571         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82572         It can be removed after the next Autoconf is released.
82573         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82574         needed.
82575
82576 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82577
82578         * lib/mktime.c: Fix Debian bug 177940
82579         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82580         (localtime_offset): Now long int, not time_t, because we want it
82581         to be guaranteed to be signed.  All uses changed.
82582         (__mktime_internal): If overflow would occur when adding offset,
82583         don't add it.
82584
82585         Merge 'human' changes from coreutils.  Rewrite to support
82586         locale-specific notations like thousands separators.
82587         * lib/human.c: Simplify authorship notice.
82588         Include human.h immediately after config.h.
82589         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82590         <limits.h>: Do not include, since human.h does.
82591         (SIZE_MAX, UINTMAX_MAX): New macros.
82592         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82593         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82594         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82595         (power_letter): Renamed from suffixes.
82596         (generate_suffix_backwards): Remove.
82597         (adjust_value): Now takes int style (because of human.h changes)
82598         and long double value (for greater precision on some platforms).
82599         (group_number): New function.
82600         (human_readable): Use it.  Use integer options, not enum.
82601         Put the options before the sizes in the arg list.
82602         Support all the new options.
82603         The old human_readable function has been removed;
82604         use inttostr.h instead.
82605         (human_readable, default_block_size, humblock):
82606         Use uintmax_t, not int, for block sizes.
82607         (human_readable_inexact, block_size_types): Remove.
82608         (block_size_opts): New constant.
82609         (human_options): Renamed from human_block_size, with new signature
82610         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82611         * lib/human.h: Add copyright and authorship notice.
82612         Include <limits.h> and <stdbool.h> unconditionally.
82613         (PARAMS): Remove.  All uses removed.
82614         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82615         (enum human_inexact_style): Remove tag; now a nameless enum.
82616         (human_floor, human_ceiling, human_round_to_even): Now have
82617         values 2, 0, 1 rather than -1, 1, 0.
82618         (human_group_digits, human_suppress_point_zero, human_autoscale,
82619         human_base_1024, human_SI, human_B): New constants.
82620         (human_readable_inexact, human_block_size): Remove.
82621         (human_readable): Size args are now uintmax_t, not int.
82622         (human_options): New decl.
82623
82624         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82625         unnecessary now that we assume C89 or better.  This change
82626         imported from coreutils.
82627
82628         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82629         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82630         in the 2003-05-30 sync from glibc.
82631
82632         .h files should stand alone, but we shouldn't include <sys/types.h>
82633         if we can get away with just <stddef.h>.
82634
82635         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82636         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82637         rather than <sys/types.h>, as we merely need size_t.
82638         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82639         to get size_t.
82640         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82641         Include <stdio.h>, to get FILE.
82642         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82643         memcasecmp.h has included <stddef.h> and all we need is size_t.
82644         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82645         our interface, instead of including <sys/types.h>
82646
82647 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82648
82649         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82650         now, as glibc mktime is buggy on non-glibc systems.
82651
82652 2003-06-03  Karl Berry  <karl@gnu.org>
82653
82654         * config/config.sub: update from prep.
82655
82656 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82657
82658         [from coreutils]
82659         Fix some minor time-related bugs with POSIX time arguments.
82660         Some valid time stamps were being rejected (notably -1, and
82661         time stamps before 1900 on 64-bit hosts).  And some invalid
82662         time stamps were being accepted, e.g. September 31.
82663
82664         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82665         that we can return (time_t) -1 successfully.
82666         * lib/posixtm.c: Likewise.
82667         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82668         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82669         (t): Remove static var.
82670         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82671         of static var.  All uses changed.
82672         (year): Do not reject years before 1900; they can occur with
82673         64-bit time_t.
82674         (posix_time_parse): Do not check for out-of-range components;
82675         that is now the caller's responsibility, since our checks were
82676         only approximations.
82677         (posixtime): Use mktime to check for out-of-range components,
82678         since it knows them exactly.
82679         If mktime returns (time_t) -1, check whether an error actually occurred
82680         by invoking localtime on -1.
82681         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82682         posixtime failures better.
82683         Improve the test data (in comments only).
82684
82685 2003-06-02  Karl Berry  <karl@gnu.org>
82686
82687         * config/mkinstalldirs (version): new variable.
82688         (--version): new option.
82689         (usage): improve message.
82690
82691 2003-05-30  Karl Berry  <karl@gnu.org>
82692
82693         * lib/mktime.c: update from libc.
82694
82695 2003-05-30  Bruno Haible  <bruno@clisp.org>
82696
82697         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82698         * config/config.rpath: Upgrade to gettext-0.12.1.
82699
82700 2003-05-30  Bruno Haible  <bruno@clisp.org>
82701
82702         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82703         * m4/nls.m4: New file, from gettext-0.12.1.
82704         * m4/po.m4: New file, from gettext-0.12.1.
82705         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82706
82707 2003-05-30  Bruno Haible  <bruno@clisp.org>
82708
82709         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82710         * lib/localcharset.h: Likewise.
82711         * lib/localcharset.c: Likewise.
82712
82713 2003-05-29  Karl Berry  <karl@gnu.org>
82714
82715         * config/config.rpath: update from gettext.
82716
82717 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82718
82719         Assume the headers required for C89 freestanding compilers.
82720         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82721         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82722         * m4/human.m4 (gl_HUMAN): Likewise.
82723         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82724         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82725         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82726         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82728         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82729
82730 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82731
82732         Assume the headers required for C89 freestanding compilers.
82733         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82734         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82735         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82736         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82737         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82738         define, since <limits.h> is guaranteed to do that.
82739         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82740         * lib/exclude.c: Include <stdbool.h> unconditionally.
82741         * lib/tempname.c: Include <stddef.h> unconditionally.
82742         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82743         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82744         <stddef.h> does that.
82745         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82746         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82747         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82748         needed.
82749         * lib/xstrtol.c: Likewise.
82750         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82751         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82752
82753         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82754         warnings on some platforms.
82755
82756         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82757         arbitrarily.
82758
82759 2003-05-26  Jim Meyering  <jim@meyering.net>
82760
82761         Merge in a change from coreutils:
82762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82763         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82764         that condition, rather than `-1' which is slightly misleading.
82765         Change the name of the cache variable to have the gl_ prefix.
82766         Prompted by a patch from Richard Dawe for DJGPP.
82767
82768 2003-05-24  Karl Berry  <karl@gnu.org>
82769
82770         * config/config.guess: update from prep.
82771
82772 2003-05-22  Karl Berry  <karl@gnu.org>
82773
82774         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82775
82776 2003-05-20  Karl Berry  <karl@gnu.org>
82777
82778         * config/config.guess: update from prep.
82779
82780 2003-05-18  Karl Berry  <karl@gnu.org>
82781
82782         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82783         might actually be set by the user.
82784
82785         * config/depcomp, install-sh, mdate-sh: update from automake.
82786
82787 2003-05-17  Bruno Haible  <bruno@clisp.org>
82788
82789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82790         invalid expansion for AC_EGREP_CPP.
82791         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82792         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82793         Suggested by Akim Demaille <akim@epita.fr> in
82794         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82795
82796 2003-05-12  Jim Meyering  <jim@meyering.net>
82797
82798         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82799         the space-padded-by-default conversion specifiers, %e, %k, %l.
82800
82801 2003-05-12  Bruno Haible  <bruno@clisp.org>
82802
82803         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82804         the string is longer than 4 KB.
82805
82806 2003-05-11  Karl Berry  <karl@gnu.org>
82807
82808         * config/config.{guess,sub}: update from prep.
82809
82810 2003-05-09  Bruno Haible  <bruno@clisp.org>
82811
82812         * modules/error: Add m4/strerror_r.m4 to file list.
82813
82814 2003-05-03  Bruno Haible  <bruno@clisp.org>
82815
82816         Upgrade to Unicode-4.0.
82817         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82818         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82819         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82820         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82821         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82822         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82823         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82824         Change width of U+E0100..U+E01EF from 1 to 0.
82825
82826 2003-04-25  Jim Meyering  <jim@meyering.net>
82827
82828         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82829         of type size_t, not int.
82830
82831 2003-04-25  Bruno Haible  <bruno@clisp.org>
82832
82833         * lib/copy-file.c: Include <stddef.h>, for size_t.
82834
82835 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82836
82837         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82838         code which expansion is under static control.  Patch imported from
82839         Akim Demaille's patch to Bison; see
82840         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82841
82842 2003-04-14  Bruno Haible  <bruno@clisp.org>
82843
82844         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82845
82846 2003-04-11  Jim Meyering  <jim@meyering.net>
82847
82848         Merge changes from Coreutils.
82849
82850         2003-03-22  Jim Meyering  <jim@meyering.net>
82851
82852         * lib/strftime.c (widen): Cast alloca return value to proper type.
82853
82854         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82855
82856         From GNU libc.
82857         * lib/strftime.c (my_strftime): Handle very large width
82858         specifications for numeric values correctly.  Improve checks for
82859         overflow.
82860
82861         2003-01-19  Jim Meyering  <jim@meyering.net>
82862
82863         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82864         definitions.
82865         (nl_get_alt_digit) [! defined my_strftime]: Define.
82866         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82867         _nl_get_alt_digit and _nl_get_walt_digit.
82868
82869         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82870         libc. These changes have no effect outside of _LIBC.
82871
82872 2003-04-10  Bruno Haible  <bruno@clisp.org>
82873
82874         * modules/findprog: New file.
82875         * MODULES.html.sh (func_all_modules): Add it.
82876
82877 2003-04-10  Bruno Haible  <bruno@clisp.org>
82878
82879         * m4/findprog.m4: New file.
82880         * m4/eaccess.m4: New file.
82881
82882 2003-04-10  Bruno Haible  <bruno@clisp.org>
82883
82884         * lib/findprog.h: New file, from GNU gettext.
82885         * lib/findprog.c: New file, from GNU gettext.
82886
82887 2003-04-05  Jim Meyering  <jim@meyering.net>
82888
82889         Merge changes from Coreutils.
82890
82891         * lib/exclude.h (PARAMS): Remove definition and uses.
82892         * lib/exclude.c: Remove uses of `PARAMS'.
82893
82894         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82895         Add test-cases for DOS filenames. Declare program_name.
82896         (main): Set up program_name.  Patch by Rich Dawe.
82897
82898         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82899         error from mntctl.
82900         Use mntctl's return value to drive the entry-processing loop, since
82901         we can't rely on the value of the vmt_length member in the last
82902         entry.  On some systems doing so could result in exhausting
82903         virtual memory.  Based in part on a patch from Mike Jetzer.
82904
82905 2003-04-04  Bruno Haible  <bruno@clisp.org>
82906
82907         * modules/linebreak: New file.
82908         * MODULES.html.sh (func_all_modules): Add it.
82909
82910 2003-04-04  Bruno Haible  <bruno@clisp.org>
82911
82912         * m4/linebreak.m4: New file.
82913
82914 2003-04-04  Bruno Haible  <bruno@clisp.org>
82915
82916         * lib/linebreak.h: New file, from GNU gettext.
82917         * lib/linebreak.c: New file, from GNU gettext with slight
82918         modifications.
82919         * lib/lbrkprop.h: New file, from GNU gettext.
82920
82921 2003-04-03  Bruno Haible  <bruno@clisp.org>
82922
82923         * modules/utf8-ucs4: New file.
82924         * modules/utf16-ucs4: New file.
82925         * modules/ucs4-utf8: New file.
82926         * modules/ucs4-utf16: New file.
82927         * MODULES.html.sh (func_all_modules): Add them.
82928
82929 2003-04-03  Bruno Haible  <bruno@clisp.org>
82930
82931         * m4/utf-ucs4.m4: New file.
82932         * m4/ucs4-utf.m4: New file.
82933
82934 2003-04-03  Bruno Haible  <bruno@clisp.org>
82935
82936         * lib/utf8-ucs4.h: New file, from GNU gettext.
82937         * lib/utf16-ucs4.h: New file, from GNU gettext.
82938         * lib/ucs4-utf8.h: New file, from GNU gettext.
82939         * lib/ucs4-utf16.h: New file, from GNU gettext.
82940
82941 2003-04-02  Bruno Haible  <bruno@clisp.org>
82942
82943         * modules/binary-io: New file.
82944         * MODULES.html.sh (func_all_modules): Add it.
82945
82946 2003-04-02  Bruno Haible  <bruno@clisp.org>
82947
82948         * lib/binary-io.h: New file, from GNU gettext.
82949
82950 2003-04-01  Bruno Haible  <bruno@clisp.org>
82951
82952         * modules/pathname: New file.
82953         * MODULES.html.sh (func_all_modules): Add it.
82954
82955 2003-04-01  Bruno Haible  <bruno@clisp.org>
82956
82957         * lib/pathname.h: New file, from GNU gettext.
82958         * lib/concatpath.c: New file, from GNU gettext.
82959
82960 2003-03-30  Bruno Haible  <bruno@clisp.org>
82961
82962         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82963
82964 2003-03-30  Bruno Haible  <bruno@clisp.org>
82965
82966         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82967         function chown() doesn't exist.
82968
82969 2003-03-28  Bruno Haible  <bruno@clisp.org>
82970
82971         * modules/copy-file: New file.
82972         * MODULES.html.sh (func_all_modules): Add it.
82973
82974 2003-03-28  Bruno Haible  <bruno@clisp.org>
82975
82976         * m4/copy-file.m4: New file.
82977
82978 2003-03-28  Bruno Haible  <bruno@clisp.org>
82979
82980         * lib/copy-file.h: New file, from GNU gettext.
82981         * lib/copy-file.c: New file, from GNU gettext.
82982
82983 2003-03-18  Jim Meyering  <jim@meyering.net>
82984
82985         * lib/quote.c (quote_n): Fix typo in comment.
82986
82987 2003-03-18  Bruno Haible  <bruno@clisp.org>
82988
82989         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82990         checking.
82991         * m4/onceonly_2_57.m4: Likewise.
82992
82993 2003-03-17  Bruno Haible  <bruno@clisp.org>
82994
82995         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82996         (m4_quote): Remove macro.
82997         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82998
82999 2003-03-14  Jim Meyering  <jim@meyering.net>
83000
83001         Merge changes from Coreutils.
83002         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83003         to be const, in order to avoid warnings.
83004         (obstack_room): Likewise.
83005         (obstack_empty_p): Likewise.
83006
83007 2003-03-14  Bruno Haible  <bruno@clisp.org>
83008
83009         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83010         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83011
83012 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83013
83014         Merge changes from Bison.
83015         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83016         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83017         when compiling Bison 1.875's `bitset bset = obstack_alloc
83018         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83019         * lib/hash.c: Include <stdbool.h> unconditionally.
83020
83021 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83022
83023         * m4/onceonly.m4 (m4_quote): New macro.
83024         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83025         Quote AC_FOREACH variable-expansions properly.
83026
83027 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83028
83029         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83030
83031 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83032
83033         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83034         Reported by Bruce Becker; see:
83035         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83036
83037 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83038             Bruno Haible  <bruno@clisp.org>
83039
83040         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83041         Reported by John Hughes, see
83042         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83043
83044 2003-02-20  Bruno Haible  <bruno@clisp.org>
83045
83046         * MODULES.html.sh (func_all_modules): Add poll.
83047
83048 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83049
83050         * modules/poll: New file.
83051
83052 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83053
83054         * lib/poll_.h: New file.
83055         * lib/poll.c: New file.
83056
83057 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83058
83059         * m4/poll.m4: New file.
83060
83061 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83062
83063         * modules/mathl: New file.
83064
83065 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83066
83067         * lib/mathl.h: New file.
83068         * lib/acosl.c: New file.
83069         * lib/asinl.c: New file.
83070         * lib/atanl.c: New file.
83071         * lib/ceill.c: New file.
83072         * lib/cosl.c: New file.
83073         * lib/expl.c: New file.
83074         * lib/floorl.c: New file.
83075         * lib/frexpl.c: New file.
83076         * lib/ldexpl.c: New file.
83077         * lib/logl.c: New file.
83078         * lib/sincosl.c: New file.
83079         * lib/sinl.c: New file.
83080         * lib/sqrtl.c: New file.
83081         * lib/tanl.c: New file.
83082         * lib/trigl.c: New file.
83083         * lib/trigl.h: New file.
83084
83085 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83086
83087         * m4/mathl.m4: New file.
83088
83089 2003-02-18  Bruno Haible  <bruno@clisp.org>
83090
83091         * MODULES.html.sh (func_all_modules): Add mathl.
83092
83093 2003-02-17  Bruno Haible  <bruno@clisp.org>
83094
83095         * modules/mkdtemp: New module.
83096         * MODULES.html.sh (func_all_modules): Add it.
83097
83098 2003-02-17  Bruno Haible  <bruno@clisp.org>
83099
83100         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83101
83102 2003-02-17  Bruno Haible  <bruno@clisp.org>
83103
83104         * lib/mkdtemp.h: New file, from GNU gettext.
83105         * lib/mkdtemp.c: New file, from GNU gettext.
83106
83107 2003-02-02  Jim Meyering  <jim@meyering.net>
83108
83109         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83110         e.g. glibc-2.2.93.
83111
83112 2003-01-31  Bruno Haible  <bruno@clisp.org>
83113
83114         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83115         'rpl_rename'.
83116         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83117         'rpl_strnlen'.
83118         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83119         'rpl_strtod'.
83120         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83121         'rpl_utime'.
83122
83123 2003-01-31  Bruno Haible  <bruno@clisp.org>
83124
83125         * lib/rename.c: #undef rename before defining rpl_rename.
83126         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83127
83128 2003-01-30  Bruno Haible  <bruno@clisp.org>
83129
83130         * modules/vasnprintf, modules/vasprintf: New modules.
83131         * MODULES.html.sh (func_all_modules): Add them.
83132
83133 2003-01-30  Bruno Haible  <bruno@clisp.org>
83134
83135         * m4/signed.m4: New file, from GNU gettext.
83136         * m4/longdouble.m4: New file, from GNU gettext.
83137         * m4/wchar_t.m4: New file, from GNU gettext.
83138         * m4/wint_t.m4: New file, from GNU gettext.
83139         * m4/vasnprintf.m4: New file.
83140         * m4/vasprintf.m4: New file.
83141
83142 2003-01-30  Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/printf-args.h: New file, from GNU gettext.
83145         * lib/printf-args.c: New file, from GNU gettext.
83146         * lib/printf-parse.h: New file, from GNU gettext.
83147         * lib/printf-parse.c: New file, from GNU gettext.
83148         * lib/vasnprintf.h: New file, from GNU gettext.
83149         * lib/vasnprintf.c: New file, from GNU gettext.
83150         * lib/asnprintf.c: New file, from GNU gettext.
83151         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83152         * lib/vasprintf.c: New file, from GNU gettext.
83153         * lib/asprintf.c: New file, from GNU gettext.
83154
83155 2003-01-29  Bruno Haible  <bruno@clisp.org>
83156
83157         * modules/stpncpy: New module.
83158         * MODULES.html.sh (func_all_modules): Add it.
83159
83160 2003-01-29  Bruno Haible  <bruno@clisp.org>
83161
83162         * m4/stpncpy.m4: New file.
83163
83164 2003-01-29  Bruno Haible  <bruno@clisp.org>
83165
83166         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83167         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83168
83169 2003-01-28  Bruno Haible  <bruno@clisp.org>
83170
83171         * modules/c-ctype: New module.
83172         * MODULES.html.sh (func_all_modules): Add it.
83173
83174 2003-01-28  Bruno Haible  <bruno@clisp.org>
83175
83176         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83177         Paul Eggert.
83178         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83179         Paul Eggert.
83180
83181 2003-01-27  Bruno Haible  <bruno@clisp.org>
83182
83183         * modules/xsetenv: New module.
83184         * MODULES.html.sh (func_all_modules): Add it.
83185
83186 2003-01-27  Bruno Haible  <bruno@clisp.org>
83187
83188         * lib/xsetenv.h: New file, from GNU gettext.
83189         * lib/xsetenv.c: New file, from GNU gettext.
83190
83191 2003-01-23  Jim Meyering  <jim@meyering.net>
83192
83193         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83194         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83195
83196 2003-01-23  Bruno Haible  <bruno@clisp.org>
83197
83198         * modules/minmax: New module.
83199         * MODULES.html.sh (func_all_modules): Add it.
83200
83201 2003-01-23  Bruno Haible  <bruno@clisp.org>
83202
83203         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83204         Eggert.
83205
83206 2003-01-22  Bruno Haible  <bruno@clisp.org>
83207
83208         * modules/exit: New module.
83209         * MODULES.html.sh (func_all_modules): Add it.
83210
83211 2003-01-22  Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/exit.h: New file, from GNU gettext.
83214
83215 2003-01-19  Bruno Haible  <bruno@clisp.org>
83216
83217         * gnulib-tool: Recognize option --extract-maintainer.
83218         (func_get_maintainer): New function.
83219         * modules/*: Add Maintainer entry.
83220
83221 2003-01-16  Jim Meyering  <jim@meyering.net>
83222
83223         * m4/regex.m4: The `regex' struct is both input and output.
83224         Initialize it before each use.  Patch by Tim Waugh.
83225
83226 2003-01-16  Bruno Haible  <bruno@clisp.org>
83227
83228         * MODULES.html.sh: Add a table of contents. Add the module name as
83229         leftmost column. Add hyperlinks.
83230
83231 2003-01-15  Bruno Haible  <bruno@clisp.org>
83232
83233         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83234
83235 2003-01-15  Bruno Haible  <bruno@clisp.org>
83236
83237         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83238         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83239         suffix.
83240
83241 2003-01-15  Bruno Haible  <bruno@clisp.org>
83242
83243         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83244
83245 2003-01-15  Bruno Haible  <bruno@clisp.org>
83246
83247         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83248         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83249
83250 2003-01-14  Jim Meyering  <jim@meyering.net>
83251
83252         * lib/same.c (same_name): Tweak a comment.
83253
83254 2003-01-14  Bruno Haible  <bruno@clisp.org>
83255
83256         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83257         when a string comparison is sufficient.
83258
83259 2003-01-14  Bruno Haible  <bruno@clisp.org>
83260
83261         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83262         'unsigned int'.
83263
83264 2003-01-14  Bruno Haible  <bruno@clisp.org>
83265
83266         * lib/hash-pjw.c: Add comment about low quality of this function.
83267
83268 2003-01-13  Bruno Haible  <bruno@clisp.org>
83269
83270         * modules/stpcpy: Distribute lib/stpcpy.h.
83271         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83272
83273 2003-01-13  Bruno Haible  <bruno@clisp.org>
83274
83275         * modules/*: Add a description.
83276         * modules/strpbrk: Fix Makefile.am snippet.
83277         * modules/strtoimax: Fix dependencies.
83278         * modules/strtoumax: Likewise.
83279
83280 2003-01-13  Bruno Haible  <bruno@clisp.org>
83281
83282         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83283         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83284         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83285
83286 2003-01-13  Bruno Haible  <bruno@clisp.org>
83287
83288         * gnulib-tool (func_create_testdir): Store config/* files in the main
83289         directory.
83290         * config.rpath: Move to ...
83291         * config/config.rpath: ... here.
83292         * modules/gettext: Contains config/config.rpath, not config.rpath.
83293         * modules/iconv: Likewise.
83294
83295 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83296
83297         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83298         to avoid collisions with libcurses and libreadline.
83299
83300         * m4/getstr.m4: Remove.
83301         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83302
83303 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83304
83305         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83306         to avoid collisions with libcurses and libreadline.
83307
83308         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83309         * lib/getstr.h, getstr.c: Remove.
83310         * lib/getline.c: Include "getline.h", to check interface.
83311         Move body of old getstr.c here: this defines MIN_CHUNK and
83312         declares getdelim2, which is renamed from getstr.
83313         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83314
83315         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83316         All uses changed.
83317         * lib/linebuffer.h: Likewise.
83318         (readline): Remove backward-compatibility macro.
83319
83320 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83321
83322         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83323         to avoid collisions with libcurses and libreadline.
83324         * getstr: Remove.
83325         * MODULES.html.sh: Remove getstr.
83326         * modules/getline: Depend on unlocked-io, not getstr.
83327
83328 2003-01-12  Jim Meyering  <jim@meyering.net>
83329
83330         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83331
83332 2003-01-10  Bruno Haible  <bruno@clisp.org>
83333
83334         * modules/alloca: Change Makefile.am requirements. Simplify Include
83335         requirements. Add lib/alloca_.h to file list.
83336
83337 2003-01-10  Bruno Haible  <bruno@clisp.org>
83338
83339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83340
83341 2003-01-10  Bruno Haible  <bruno@clisp.org>
83342
83343         * lib/alloca_.h: New file.
83344         * lib/getdate.y: Unconditionally include alloca.h.
83345         * lib/makepath.c: Likewise.
83346         * lib/setenv.c: Likewise.
83347         * lib/userspec.c: Likewise.
83348
83349 2003-01-09  Karl Berry  <karl@gnu.org>
83350
83351         * MODULES.html.sh: include `dirname $0` in PATH, to find
83352         gnulib-tool.
83353
83354 2003-01-09  Bruno Haible  <bruno@clisp.org>
83355
83356         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83357         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83358
83359 2003-01-09  Bruno Haible  <bruno@clisp.org>
83360
83361         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83362
83363 2003-01-09  Bruno Haible  <bruno@clisp.org>
83364
83365         * lib/stdbool.h.in: New file.
83366
83367 2003-01-09  Bruno Haible  <bruno@clisp.org>
83368
83369         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83370         * MODULES.html.sh: Likewise.
83371
83372 2003-01-08  Jim Meyering  <jim@meyering.net>
83373
83374         * lib/full-write.c: Undefine and define-away `const' after inclusion
83375         of errno.h, not before.  Suggestion from Bruno Haible.
83376
83377 2003-01-08  Bruno Haible  <bruno@clisp.org>
83378
83379         * modules/full-read: Depend on full-write.
83380
83381 2003-01-08  Bruno Haible  <bruno@clisp.org>
83382
83383         * lib/safe-read.c: Include specification header first, to ensure its
83384         selfcontainedness.
83385         * lib/full-write.c: Likewise.
83386
83387 2003-01-07  Jim Meyering  <jim@meyering.net>
83388
83389         * lib/full-write.c: Rework so that it may serve to define full_read,
83390         too.
83391         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83392
83393 2003-01-07  Bruno Haible  <bruno@clisp.org>
83394
83395         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83396         <inttypes.h>.
83397         * lib/xstrtol.h: Likewise.
83398         * lib/xstrtoimax.c: Likewise.
83399         * lib/xstrtoumax.c: Likewise.
83400         * lib/human.h: Likewise.
83401
83402         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83403         on systems that have <inttypes.h> but not <stdint.h>.
83404
83405 2003-01-07  Bruno Haible  <bruno@clisp.org>
83406
83407         * MODULES.html.sh: Add copyright notice.
83408         (missed_files): Omit CVS directory entries.
83409         (func_module): Make it work with sed-3.02.
83410         * MODULES.txt: Remove file.
83411
83412 2003-01-06  Jim Meyering  <jim@meyering.net>
83413
83414         * lib/version-etc.c: Update year in translatable copyright string.
83415
83416 2003-01-03  Karl Berry  <karl@gnu.org>
83417
83418         * config/config.{guess,sub}: update from prep.
83419
83420 2003-01-02  Karl Berry  <karl@gnu.org>
83421
83422         * doc/COPYING.DOC: belatedly updated to 1.2.
83423
83424 2003-01-01  Karl Berry  <karl@gnu.org>
83425
83426         * gnulib-tool (func_verify_module): report module name $module in
83427         error message, not $1.
83428         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83429         be created, only if it doesn't exist.
83430         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83431
83432 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83433
83434         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83435
83436 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83437
83438         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83439         memcmp if strcoll doesn't work.
83440
83441 2002-12-31  Bruno Haible  <bruno@clisp.org>
83442
83443         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83444         nonempty.
83445
83446 2002-12-31  Bruno Haible  <bruno@clisp.org>
83447
83448         * lib/memcoll.c (STRCOLL): New macro.
83449         (memcoll): Use it.
83450
83451 2002-12-31  Bruno Haible  <bruno@clisp.org>
83452
83453         * lib/localcharset.h: New file.
83454         * lib/localcharset.c: Include it.
83455         * lib/unicodeio.c: Likewise.
83456
83457 2002-12-31  Bruno Haible  <bruno@clisp.org>
83458
83459         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83460         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83461
83462 2002-12-31  Bruno Haible  <bruno@clisp.org>
83463
83464         * lib/getline.h: Include <stddef.h>, for size_t.
83465
83466         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83467         * lib/unicodeio.c: Don't include <stddef.h>.
83468
83469 2002-12-31  Bruno Haible  <bruno@clisp.org>
83470
83471         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83472         HAVE_TM_ZONE.
83473
83474 2002-12-24  Karl Berry  <karl@gnu.org>
83475
83476         * config/config.guess: update from prep.
83477
83478 2002-12-24  Bruno Haible  <bruno@clisp.org>
83479
83480         General infrasructure.
83481         * m4/README: Rewritten.
83482         * m4/onceonly.m4: New file.
83483         * m4/onceonly_2_57.m4: New file.
83484
83485         Module atexit.
83486         * m4/atexit.m4: New file.
83487
83488         Module strtod.
83489         * m4/strtod.m4: New file.
83490
83491         Module strtol.
83492         * m4/strtol.m4: New file.
83493
83494         Module strtoul.
83495         * m4/strtoul.m4: New file.
83496
83497         Module memchr.
83498         * m4/memchr.m4: New file.
83499
83500         Module memcmp.
83501         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83502         (jm_FUNC_MEMCMP): Invoke it.
83503
83504         Module memcpy.
83505         * m4/memcpy.m4: New file.
83506
83507         Module memmove.
83508         * m4/memmove.m4: New file.
83509
83510         Module memset.
83511         * m4/memset.m4: New file.
83512
83513         Module strcspn.
83514         * m4/strcspn.m4: New file.
83515
83516         Module strpbrk.
83517         * m4/strpbrk.m4: New file.
83518
83519         Module strstr.
83520         * m4/strstr.m4: New file.
83521
83522         Module strerror.
83523         * m4/strerror.m4: New file.
83524
83525         Module mktime.
83526         * m4/mktime.m4: Renamed from jm-mktime.m4.
83527         (gl_PREREQ_MKTIME): New macro.
83528         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83529
83530         Module malloc.
83531         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83532         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83533         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83534
83535         Module realloc.
83536         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83537         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83538         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83539
83540         Module strftime.
83541         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83542         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83543         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83544         gl_TM_GMTOFF.
83545         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83546
83547         Module xalloc.
83548         * m4/xalloc.m4: New file.
83549
83550         Module alloca.
83551         * m4/alloca.m4: New file.
83552
83553         Module putenv.
83554         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83555         (jm_FUNC_PUTENV): Invoke it.
83556
83557         Module setenv.
83558         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83559         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83560         when invoked twice.
83561         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83562         gt_FUNC_SETENV.
83563
83564         Module memrchr.
83565         * m4/memrchr.m4: New file.
83566
83567         Module stpcpy.
83568         * m4/stpcpy.m4: New file.
83569
83570         Module strcase.
83571         * m4/strcase.m4: New file.
83572
83573         Module strdup.
83574         * m4/strdup.m4: New file.
83575
83576         Module strnlen.
83577         * m4/strnlen.m4: New file.
83578
83579         Module strndup.
83580         * m4/strndup.m4: New file.
83581
83582         Module xstrtod.
83583         * m4/xstrtod.m4: New file.
83584
83585         Module xstrtol.
83586         * m4/xstrtol.m4: New file.
83587
83588         Module getdate.
83589         * m4/getdate.m4: New file.
83590
83591         Module unlocked-io.
83592         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83593         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83594         * m4/jm-glibc-io.m4n: Remove file.
83595
83596         Module long-options.
83597         * m4/long-options.m4: New file.
83598
83599         Module md5.
83600         * m4/md5.m4: New file.
83601
83602         Module sha.
83603         * m4/sha.m4: New file.
83604
83605         Module getstr.
83606         * m4/getstr.m4: New file.
83607
83608         Module getline.
83609         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83610         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83611         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83612         simply getline. Infoke gl_PREREQ_GETLINE.
83613
83614         Module obstack.
83615         * m4/obstack.m4: New file.
83616
83617         Module hash.
83618         * m4/hash.m4: New file.
83619
83620         Module readtokens.
83621         * m4/readtokens.m4: New file.
83622
83623         Module strverscmp.
83624         * m4/strverscmp.m4: New file.
83625
83626         Module stdbool.
83627         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83628         OSF/1.
83629
83630         Module strtoll.
83631         * m4/strtoll.m4: New file.
83632
83633         Module strtoull.
83634         * m4/strtoull.m4: New file.
83635
83636         Module strtoimax.
83637         * m4/strtoimax.m4: New file.
83638
83639         Module strtoumax.
83640         * m4/strtoumax.m4: New file.
83641
83642         Module xstrtoimax.
83643         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83644         jm_AC_PREREQ_XSTRTOIMAX.
83645         Moved the strtol prerequisites to strtol.m4.
83646         Moved the strtoll prerequisites to strtoll.m4.
83647         Moved the strtoimax prerequisites to strtoimax.m4.
83648
83649         Module xstrtoumax.
83650         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83651         jm_AC_PREREQ_XSTRTOUMAX.
83652         Moved the strtoul prerequisites to strtoul.m4.
83653         Moved the strtoull prerequisites to strtoull.m4.
83654         Moved the strtoumax prerequisites to strtoumax.m4.
83655
83656         Module chown.
83657         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83658         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83659
83660         Module dup2.
83661         * m4/dup2.m4: New file.
83662
83663         Module ftruncate.
83664         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83665         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83666
83667         Module getgroups.
83668         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83669         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83670
83671         Module gettimeofday.
83672         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83673         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83674         gl_PREREQ_GETTIMEOFDAY.
83675
83676         Module mkdir.
83677         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83678         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83679
83680         Module mkstemp.
83681         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83682         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83683         jm_AC_TYPE_UINTMAX_T.
83684         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83685
83686         Module stat.
83687         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83688         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83689
83690         Module lstat.
83691         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83692         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83693
83694         Module timespec.
83695         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83696         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83697         * m4/st_mtim.m4: Indentation.
83698
83699         Module nanosleep.
83700         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83701         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83702         gl_PREREQ_NANOSLEEP.
83703
83704         Module regex.
83705         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83706         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83707         (gl_REGEX): New macro.
83708
83709         Module rename.
83710         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83711         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83712
83713         Module rmdir.
83714         * m4/rmdir.m4: New file.
83715
83716         Module utime.
83717         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83718         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83719         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83720
83721         Module dirname.
83722         * m4/dirname.m4: New file.
83723
83724         Module getopt.
83725         * m4/getopt.m4: New file.
83726
83727         Module unistd-safer.
83728         * m4/unistd-safer.m4: New file.
83729
83730         Module fnmatch.
83731         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83732         declaration.
83733         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83734         (gl_FUNC_FNMATCH_POSIX): New macro.
83735         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83736         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83737         simply fnmatch.
83738
83739         Module exclude.
83740         * m4/exclude.m4: New file.
83741
83742         Module human.
83743         * m4/human.m4: New file.
83744
83745         Module acl.
83746         * m4/acl.m4: Nop.
83747
83748         Module backupfile.
83749         * m4/backupfile.m4: New file.
83750         * m4/d-ino.m4: Indentation.
83751
83752         Module fsusage.
83753         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83754         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83755         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83756
83757         Module dirfd.
83758         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83759         requirements.
83760
83761         Module euidaccess.
83762         * m4/euidaccess.m4: New file.
83763
83764         Module file-type.
83765         * m4/file-type.m4: New file.
83766
83767         Module fileblocks.
83768         * m4/fileblocks.m4: New file.
83769
83770         Module filemode.
83771         * m4/filemode.m4: New file.
83772
83773         Module isdir.
83774         * m4/isdir.m4: New file.
83775
83776         Module lchown.
83777         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83778         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83779
83780         Module makepath.
83781         * m4/makepath.m4: New file.
83782
83783         Module modechange.
83784         * m4/modechange.m4: New file.
83785
83786         Module mountlist.
83787         * m4/mountlist.m4: New file.
83788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83789         Indentation.
83790
83791         Module path-concat.
83792         * m4/path-concat.m4: New file.
83793
83794         Module pathmax.
83795         * m4/pathmax.m4: New file.
83796
83797         Module same.
83798         * m4/same.m4: New file.
83799
83800         Module save-cwd.
83801         * m4/save-cwd.m4: New file.
83802
83803         Module savedir.
83804         * m4/savedir.m4: New file.
83805
83806         Module xgetcwd.
83807         * m4/xgetcwd.m4: New file.
83808         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83809
83810         Module xreadlink.
83811         * m4/xreadlink.m4: New file.
83812
83813         Module safe-read.
83814         * m4/safe-read.m4: New file.
83815
83816         Module safe-write.
83817         * m4/safe-write.m4: New file.
83818
83819         Module closeout.
83820         * m4/closeout.m4: New file.
83821
83822         Module stdio-safer.
83823         * m4/stdio-safer.m4: New file.
83824
83825         Module getpass.
83826         * m4/getpass.m4: New file.
83827
83828         Module getugroups.
83829         * m4/getugroups.m4: New file.
83830
83831         Module group-member.
83832         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83833         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83834
83835         Module idcache.
83836         * m4/idcache.m4: New file.
83837
83838         Module userspec.
83839         * m4/userspec.m4: New file.
83840
83841         Module gettime.
83842         * m4/clock_time.m4: New file.
83843         * m4/gettime.m4: New file.
83844
83845         Module settime.
83846         * m4/settime.m4: New file.
83847
83848         Module posixtm.
83849         * m4/posixtm.m4: New file.
83850
83851         Module gethostname.
83852         * m4/gethostname.m4: New file.
83853
83854         Module canon-host.
83855         * m4/canon-host.m4: New file.
83856
83857         Module gettext.
83858         * m4/codeset.m4: New file, from gettext-0.11.5.
83859         * m4/gettext.m4: New file, from gettext-0.11.5.
83860         * m4/glibc21.m4: New file, from gettext-0.11.5.
83861         * m4/iconv.m4: New file, from gettext-0.11.5.
83862         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83863         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83864         * m4/inttypes.m4: New file, from gettext-0.11.5.
83865         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83866         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83867         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83868         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83869         * m4/lib-link.m4: New file, from gettext-0.11.5.
83870         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83871         * m4/progtest.m4: New file, from gettext-0.11.5.
83872         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83873         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83874         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83875
83876         Module localcharset.
83877         * m4/localcharset.m4: New file.
83878
83879         Module hard-locale.
83880         * m4/hard-locale.m4: New file.
83881
83882         Module mbswidth.
83883         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83884         onceonly macros.
83885         * m4/mbrtowc.m4: Add comment.
83886
83887         Module memcasecmp.
83888         * m4/memcasecmp.m4: New file.
83889
83890         Module memcoll.
83891         * m4/memcoll.m4: New file.
83892
83893         Module unicodeio.
83894         * m4/unicodeio.m4: New file.
83895
83896         Module rpmatch.
83897         * m4/rpmatch.m4: New file.
83898
83899         Module yesno.
83900         * m4/yesno.m4: New file.
83901
83902         Module exitfail.
83903         * m4/exitfail.m4: New file.
83904
83905         Module c-stack.
83906         * m4/c-stack.m4 (gl_C_STACK): New macro.
83907         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83908
83909         Module error.
83910         * m4/error.m4 (gl_ERROR): New macro.
83911         (jm_PREREQ_ERROR): Use onceonly macros.
83912
83913         Module fatal.
83914         * m4/fatal.m4: New file.
83915
83916         Module getloadavg.
83917         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83918         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83919
83920         Module getpagesize.
83921         * m4/getpagesize.m4: New file.
83922
83923         Module getusershell.
83924         * m4/getusershell.m4: New file.
83925
83926         Module physmem.
83927         * m4/physmem.m4: New file.
83928
83929         Module posixver.
83930         * m4/posixver.m4: New file.
83931
83932         Module quotearg.
83933         * m4/quotearg.m4: New file.
83934
83935         Module quote.
83936         * m4/quote.m4: New file.
83937
83938         Module readutmp.
83939         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83940
83941         Module sig2str.
83942         * m4/sig2str.m4: New file.
83943
83944         Other.
83945         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83946         ulonglong.m4.
83947         * m4/intmax_t.m4: New file.
83948         * m4/d-type.m4: Indentation.
83949         * m4/jm-macros.m4: Update.
83950         * m4/prereq.m4 (jm_PREREQ): Update.
83951         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83952         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83953         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83954         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83955         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83956         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83957         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83958         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83959         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83960         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83961         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83962         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83963         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83964         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83965         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83966         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83967         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83968         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83969         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83970
83971 2002-12-24  Bruno Haible  <bruno@clisp.org>
83972
83973         * MODULES.txt: Update according to m4/ changes.
83974
83975         Module gettext.
83976         * config.rpath: New file, from gettext-0.11.5.
83977
83978         * modules/*: New module descriptions.
83979         * gnulib-tool: New file.
83980         * MODULES.html.sh: New file.
83981
83982 2002-12-21  Karl Berry  <karl@gnu.org>
83983
83984         * doc/fdl.texi: update to version 1.2.
83985
83986 2002-12-19  Karl Berry  <karl@gnu.org>
83987
83988         * config/config.guess: update from prep.
83989
83990 2002-12-18  Bruno Haible  <bruno@clisp.org>
83991
83992         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83993         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83994
83995 2002-12-17  Bruno Haible  <bruno@clisp.org>
83996
83997         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83998         stdlib.h, string.h.
83999
84000 2002-12-17  Bruno Haible  <bruno@clisp.org>
84001
84002         * lib/canon-host.c (strdup): Remove unused declaration.
84003
84004         * lib/fsusage.c: Include full_read.h.
84005         (get_fs_usage): Use full_read instead of safe_read.
84006
84007         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84008
84009 2002-12-12  Karl Berry  <karl@gnu.org>
84010
84011         * config/config.guess: update from prep.
84012
84013 2002-12-11  Bruno Haible  <bruno@clisp.org>
84014
84015         * m4/setenv.m4: New file, from gettext-0.11.5.
84016
84017 2002-12-11  Bruno Haible  <bruno@clisp.org>
84018
84019         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84020         not unsetenv().
84021         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84022         modifications:
84023
84024         2002-12-11  Bruno Haible  <bruno@clisp.org>
84025
84026                 * setenv.c (alloca): Fall back to malloc.
84027                 (freea): New macro.
84028                 (setenv): Use freea() to free memory allocated with alloca().
84029
84030         2002-11-13  Bruno Haible  <bruno@clisp.org>
84031
84032                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84033                 function declarations.
84034                 * unsetenv.c (unsetenv): Likewise.
84035
84036         2002-03-04  Bruno Haible  <bruno@clisp.org>
84037
84038                 Portability to AIX 4.3.3.
84039                 * unsetenv.c: New file, extracted from setenv.c.
84040                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84041
84042         2001-12-20  Bruno Haible  <bruno@clisp.org>
84043
84044                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84045                 use malloc instead. For SunOS 4.
84046
84047         2001-12-11  Bruno Haible  <bruno@clisp.org>
84048
84049                 * setenv.c: Declare alloca.
84050                 (compar_fn_t): New typedef.
84051                 (KNOWN_VALUE, STORE_VALUE): Use it.
84052
84053         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84054         setenv.h.
84055
84056 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84057
84058         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84059         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84060         Choose values that are less likely to collide with system fnmatch
84061         options.
84062         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84063         defined (e.g., a pure POSIX system).
84064         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84065         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84066
84067 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84068
84069         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84070         a pain in practice to deal with generated m4 files.  This change
84071         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84072
84073         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84074         and jm-glibc-io.m4, as they are no longer a special case.
84075         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84076         kludge and the auto-generation stuff.  Check only whether the
84077         functions are declared, not whether they exist, since older hosts
84078         that don't declare the functions can't use the optimization anyway.
84079
84080 2002-12-06  Jim Meyering  <jim@meyering.net>
84081
84082         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84083
84084         Merge in changes from libc's misc/error.c, in preparation
84085         for the merge of gnulib's changes back into libc.
84086
84087         * lib/error.c (_): Define only if not already defined.
84088         Move definition to follow all #include directives.
84089         Include unlocked-io.h only if !_LIBC.
84090         [_LIBC]: Include <libio/libioP.h>.
84091         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84092         (fflush): Tweak definition to use INTUSE.
84093         (putc): Define.
84094
84095 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84096
84097         * lib/alloca.c [defined emacs]: Include "lisp.h".
84098         (xalloc_die) [defined emacs]: New macro.
84099         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84100         [! defined emacs]: Include <xalloc.h>.
84101         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84102         (pointer): Typedef to POINTER_TYPE *.
84103         (malloc): Remove decl; we now always use xmalloc.
84104         (alloca): Use old-style definition, since Emacs needs this.
84105         Check for arithmetic overflow when computing combined size.
84106
84107 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84108
84109         Do not generate unlocked-io.h automatically, since it's easier to
84110         maintain it by hand.
84111
84112         * lib/unlocked-io.h: New file, from GNU diffutils,
84113         but with proper copyright notice and attribution.
84114         * lib/gen-uio: Remove.
84115         * lib/Makefile.am: Add copyright notice.
84116         (libfetish_a_SOURCES): Add unlocked-io.h.
84117         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84118         (DISTCLEANFILES, io_functions): Remove macros.
84119         (EXTRA_DIST): Remove gen_uio.
84120         (unlocked-io.h): Remove rule.
84121
84122 2002-12-04  Jim Meyering  <jim@meyering.net>
84123
84124         Reflect the fact that stat.c and lstat.c are no longer generated.
84125         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84126         (DISTCLEANFILES): Likewise.
84127         (EXTRA_DIST): Likewise.
84128         (all_local): Don't depend on stat.c or lstat.c.
84129         (stat.c, lstat.c): Remove rules.
84130         (EXTRA_DIST): Remove xstat.in.
84131
84132         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84133         * lib/stat.c: New file.  Contents mostly from xstat.in.
84134         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84135         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84136
84137         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84138         too.
84139         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84140
84141 2002-12-03  Jim Meyering  <jim@meyering.net>
84142
84143         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84144         but not semantics, to minimize the differences between these two files.
84145         (safe_read): Change comment to mention SAFE_READ_ERROR.
84146
84147         * lib/safe-read.c (IS_EINTR): Define.
84148         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84149
84150 2002-12-02  Jim Meyering  <jim@meyering.net>
84151
84152         * lib/safe-read.c (EINTR): Define.
84153         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84154         (INT_MAX): Provide fallback.
84155         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84156
84157         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84158
84159 2002-12-02  Bruno Haible  <bruno@clisp.org>
84160
84161         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84162         Define, taken from safe-read.c.
84163         (INT_MAX): Provide fallback.
84164         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84165         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84166
84167         * lib/safe-read.c (EINTR): Remove definition.
84168         (safe_read): Don't use EINTR if it is absent.
84169
84170 2002-12-01  Jim Meyering  <jim@meyering.net>
84171
84172         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84173         zero.
84174         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84175
84176 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84177
84178         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84179         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84180         with `if (! (value < limit)) abort ();', for readability.
84181
84182 2002-11-26  Karl Berry  <karl@gnu.org>
84183
84184         * lib/strdup.c: copy from libc again, with jim's ok.
84185         * lib/.cppi-disable: re-add strdup.c
84186
84187 2002-11-25  Karl Berry  <karl@gnu.org>
84188
84189         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84190         instead of "strtol.c".
84191
84192 2002-11-25  Karl Berry  <karl@gnu.org>
84193
84194         * config/install-sh: update from automake for variable quoting, $0 in
84195         error msgs, etc.
84196
84197         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84198         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84199         entry.
84200
84201 2002-11-25  Jim Meyering  <jim@meyering.net>
84202
84203         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84204
84205 2002-11-24  Karl Berry  <karl@gnu.org>
84206
84207         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84208         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84209
84210 2002-11-24  Jim Meyering  <jim@meyering.net>
84211
84212         Update from coreutils:
84213
84214         * lib/mktime.c: Merge in changes from libc.
84215
84216         Avoid a link-time failure on some Linux systems.
84217         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84218         (otherwise).
84219         (__mon_yday): Declare with the STATIC attribute.
84220         (__mktime_internal): Likewise.
84221         Based on a report from Greg Schafer.
84222
84223 2002-11-23  Jim Meyering  <jim@meyering.net>
84224
84225         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84226         Use `unsigned', not `int', as type of index.
84227
84228         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84229
84230         * lib/fsusage.c: Remove unneeded parentheses around operands of
84231         `defined'.
84232
84233 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84234
84235         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84236         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84237         so that we can be included first.
84238         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84239         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84240         No need to include stddef.h or sys/types.h any more.
84241         Surround local include files with "", not "<>".
84242         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84243         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84244         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84245         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84246         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84247         (ISPRINT): Remove; no longer needed now that we assume C89.
84248
84249         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84250         Preserve errno.
84251
84252         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84253         quotearg_char): Use SIZE_MAX rather than
84254         (size_t) -1 when we are talking about "infinity".
84255
84256         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84257
84258 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84259
84260         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84261         hint that one should use `if (! x) abort ();' rather than `assert
84262         (x);', and anyway it's one less thing to worry about configuring.
84263         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84264         hash_rehash, hash_insert): Use abort rather than assert.
84265
84266 2002-11-22  Bruno Haible  <bruno@clisp.org>
84267
84268         * lib/safe-read.h: Assume C89. Add comments.
84269         (safe_read): Change return type to size_t.
84270         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84271         byte counts > SSIZE_MAX correctly.
84272         * lib/safe-write.h: New file.
84273         * lib/safe-write.c: New file.
84274         * lib/full-read.h: New file.
84275         * lib/full-read.c: New file.
84276         * lib/full-write.h: Assume C89. Add comments.
84277         * lib/full-write.c: Include safe-write.h.
84278         (full_write): Rewritten to use safe_write.
84279         Suggested by Jim Meyering and Paul Eggert.
84280
84281 2002-11-21  Jim Meyering  <jim@meyering.net>
84282
84283         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84284
84285         Merge in changes from the coreutils.
84286
84287         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84288         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84289         <stdint.h>.
84290         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84291         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84292         int.  Work more efficiently if X is the same width as uintmax_t.
84293         Do not compare X to -1, to avoid bogus compiler warning.
84294         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84295         Don't assume that f_frsize and f_bsize are the same type.
84296
84297         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84298         warning on FreeBSD.
84299
84300         * lib/makepath.c (make_path): Restore umask *before* creating the final
84301         component.
84302         (make_path): Minor reformatting.
84303
84304         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84305         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84306         HAVE_MALLOC/HAVE_REALLOC.
84307
84308         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84309         dummy ones.  At least on GNU/Linux systems, `auto' means something
84310         else.
84311         From Michael Stone.
84312
84313 2002-11-21  Bruno Haible  <bruno@clisp.org>
84314
84315         Remove case insensitive option matching.
84316         * lib/argmatch.h (argcasematch): Remove declaration.
84317         (ARGCASEMATCH): Remove macro.
84318         (__xargmatch_internal): Remove case_sensitive argument.
84319         (XARGMATCH): Update.
84320         (XARGCASEMATCH): Remove macro.
84321         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84322         case_sensitive argument.
84323         (argcasematch): Remove function.
84324         (__xargmatch_internal): Remove case_sensitive argument.
84325         (main): Use XARGMATCH instead of XARGCASEMATCH.
84326
84327         * lib/xmalloc.c: Change compile-time error message. Add comment about
84328         required autoconf version.
84329
84330 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84331
84332         Merge argmatch cleanups from Bison.  Assume C89.
84333
84334         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84335         Include stdlib.h, for EXIT_FAILURE.
84336         Always include <string.h>, since we assume C89.
84337         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84338         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84339         Include <stddef.h> instead, since it's all we need for size_t.
84340         (PARAMS): Remove.  All uses removed.
84341         (ARRAY_CARDINALITY): Do not bother to #undef.
84342         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84343         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84344         Remove unnecessary parentheses.
84345         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84346         Insert necessary parentheses.
84347         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84348         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84349
84350 2002-11-19  Bruno Haible  <bruno@clisp.org>
84351
84352         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84353         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84354
84355         * lib/mbswidth.h (PARAMS): Remove macro.
84356         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84357         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84358
84359         * lib/gcd.h (PARAMS): Remove macro.
84360         (gcd): Use ANSI C function declarations.
84361         * lib/gcd.c (gcd): Likewise.
84362
84363 2002-11-15  Bruno Haible  <bruno@clisp.org>
84364
84365         * lib/strcspn.c: Include <stddef.h>.
84366         (strcspn): Use ANSI C function declaration. Change return type to
84367         size_t. Use NULL.
84368         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84369         (strpbrk): Use NULL.
84370         * lib/strpbrk.h (PARAMS): Remove macro.
84371         (strpbrk): Use ANSI C function declaration.
84372         * lib/strstr.c: Don't include <sys/types.h>.
84373         * lib/strstr.h (PARAMS): Remove macro.
84374         (strstr): Use ANSI C function declarations.
84375
84376 2002-11-14  Karl Berry  <karl@gnu.org>
84377
84378         * config/mkinstalldirs: `do' on separate line, instead of
84379         `for var; do'.
84380
84381 2002-11-06  Bruno Haible  <bruno@clisp.org>
84382
84383         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84384         * lib/gcd.c (gcd): Likewise.
84385
84386 2002-11-05  Bruno Haible  <bruno@clisp.org>
84387
84388         * lib/gcd.h: New file, from gettext-0.11.5.
84389         * lib/gcd.c: New file, from gettext-0.11.5.
84390
84391 2002-11-05  Bruno Haible  <bruno@clisp.org>
84392
84393         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84394         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84395         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84396         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84397
84398         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84399         <libintl.h>.
84400         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84401         <libintl.h>.
84402
84403         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84404         * lib/human.c: Include gettext.h instead of <libintl.h>.
84405         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84406         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84407         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84408         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84409         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84410         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84411         (textdomain): Remove definition.
84412         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84413
84414         * lib/long-options.c: Remove include of <libintl.h> and definition of
84415         _.
84416         * lib/same.c: Remove include of <libintl.h> and definition of _.
84417
84418 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84419
84420         * lib/config.charset: A few additions for Solaris.
84421
84422 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84423
84424         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84425         * lib/localcharset.c (locale_charset): Declare as extern "C".
84426
84427 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84428
84429         * lib/config.charset: msdos in uk_UA uses CP1125.
84430
84431 2002-11-04  Bruno Haible  <bruno@clisp.org>
84432
84433         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84434         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84435         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84436         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84437         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84438
84439 2002-11-04  Bruno Haible  <bruno@clisp.org>
84440
84441         * lib/localcharset.c (locale_charset): Don't return an empty string.
84442
84443 2002-11-04  Bruno Haible  <bruno@clisp.org>
84444
84445         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84446         aliases.
84447
84448 2002-11-04  Bruno Haible  <bruno@clisp.org>
84449
84450         * lib/config.charset: Update for newest glibc. Add canonical names
84451         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84452
84453 2002-11-04  Bruno Haible  <bruno@clisp.org>
84454
84455         * lib/config.charset: Add support for NetBSD.
84456
84457 2002-11-04  Bruno Haible  <bruno@clisp.org>
84458
84459         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84460
84461 2002-11-01  Bruno Haible  <bruno@clisp.org>
84462
84463         * configure.in: Add AC_CONFIG_AUX_DIR call.
84464         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84465         test/Makefile.
84466         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84467
84468 2002-09-28  Karl Berry  <karl@gnu.org>
84469
84470         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84471         installed automake until the next release, since changes have been
84472         made.
84473
84474 2002-09-25  Karl Berry  <karl@gnu.org>
84475
84476         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84477         * lib/getopt*: copy from libc/posix.
84478         * lib/gettext.h: copy from gettext.
84479         * lib/.cppi-disable: add strdup.c, gettext.h.
84480
84481 2002-09-25  Karl Berry  <karl@gnu.org>
84482
84483         * config/srclist.txt: enable gettext.h check.
84484         * config/config.{guess,sub}: update from prep.
84485         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84486                 from automake 1.6.3.
84487         See srclist*.
84488
84489 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84490
84491         * regex.c (PATFETCH): Remove the translating fetch.
84492         (PATFETCH_RAW): Rename to PATFETCH.
84493         (set_image_of_range): New fun.
84494         (SET_RANGE_TABLE_WORK_AREA): Use it.
84495         (regex_compile): Don't translate the pattern chars so eagerly.
84496         Only do it when inserting an `exactn' bytecode or when handling
84497         a char-range.
84498         (mutually_exclusive_p): Avoid empty statement.
84499
84500 2002-07-06  Jim Meyering  <meyering@lucent.com>
84501
84502         * m4/README: Don't mention Makefile.am.in.
84503         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84504
84505 2002-07-01  Jim Meyering  <meyering@lucent.com>
84506
84507         * lib/c-stack.c: Include sys/time.h.
84508         From Volker Borchert.
84509
84510 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84511
84512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84513
84514 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84515
84516         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84517         New macro.  Use it uniformly instead of
84518         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84519         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84520         reported by Vin Shelton.
84521
84522 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84523
84524         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84525         Do not assume SA_SIGINFO behavior.
84526         Bug reported by Jim Meyering on NetBSD 1.5.2.
84527
84528 2002-06-22  Jim Meyering  <meyering@lucent.com>
84529
84530         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84532
84533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84534         now that configure.ac uses AC_GNU_SOURCE.
84535         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84536         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84537
84538         Update to latest tools.  Suggestions from Paul Eggert.
84539         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84540         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84541         * m4/fnmatch.m4: Likewise.
84542         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84543         to AC_HEADER_STDBOOL
84544
84545 2002-06-22  Jim Meyering  <meyering@lucent.com>
84546
84547         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84548         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84549
84550 2002-06-22  Jim Meyering  <meyering@lucent.com>
84551
84552         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84553
84554         * lib/exitfail.c, exitfail.h: Likewise.
84555         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84556
84557         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84558         of fnmatch.h.
84559         (EXTRA_DIST): Add fnmatch_loop.c.
84560         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84561
84562         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84563         * lib/fnmatch.c: Update from diffutils-2.8.2.
84564         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84565         * lib/fnmatch.h: Remove file.
84566
84567 2002-06-21  Jim Meyering  <meyering@lucent.com>
84568
84569         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84570         * m4/mbrtowc.m4: Likewise.
84571
84572         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84573         * m4/mbswidth.m4: Reflect name change:
84574         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84575         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84576
84577         * m4/lib-link.m4: Update from gettext-0.11.2.
84578         * m4/gettext.m4: Likewise.
84579
84580         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84581         From Alfred M. Szmidt.
84582
84583 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84584
84585         * lib/file-type.h: Report an error if neither S_ISREG nor
84586         S_IFREG is defined, instead of using a test specific to glibc
84587         2.2.  This should be safe, since POSIX requires S_ISREG and
84588         Unix Version 7 had S_IFREG.  We don't need to check for
84589         <sys/types.h> since we don't use any symbols that it defines.
84590
84591 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84592
84593         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84594         $@-t, so that each temporary file name is unique and valid in the first
84595         8 characters, for operation under DOS.
84596
84597 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84598
84599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84600
84601 2002-06-15  Jim Meyering  <meyering@lucent.com>
84602
84603         Work even with DJGPP 2.03, which lacks support for symlinks.
84604         From Richard Dawe.
84605         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84606         is defined.
84607         * lib/lchown.c (S_ISLNK): Likewise.
84608
84609 2002-06-15  Jim Meyering  <meyering@lucent.com>
84610
84611         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84612         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84613         have been included before this file.
84614
84615 2002-06-14  Jim Meyering  <meyering@lucent.com>
84616
84617         * lib/file-type.h: Use the version from diffutils-2.8.2.
84618         * lib/file-type.c: Likewise.
84619
84620 2002-06-07  Jim Meyering  <meyering@lucent.com>
84621
84622         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84623         They're needed at least for NetBSD 1.5.2.
84624         ($statxfs_includes): Include those same headers.
84625         ($statxfs_includes): Include sys/vfs.h if available.
84626         ($statxfs_includes): Likewise for sys/statvfs.h.
84627         Check for the following members in both structs statfs and statvfs:
84628         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84629
84630 2002-06-01  Jim Meyering  <meyering@lucent.com>
84631
84632         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84633         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84634
84635 2002-05-28  Jim Meyering  <meyering@lucent.com>
84636
84637         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84638         Reported by Volker Borchert.
84639
84640 2002-05-27  Jim Meyering  <meyering@lucent.com>
84641
84642         Fix a problem seen only on nonconforming systems whereby ls.c's
84643         use of localtime, and then of gettimeofday would cause trouble:
84644         the localtime call used to initialize rpl_gettimeofday's save
84645         mechanism would clobber ls's current local time information so
84646         that in any long listing the first file would always be listed
84647         with date 1970-01-01.  Analysis by Volker Borchert.
84648
84649         * lib/gettimeofday.c (localtime): Undefine.
84650         (rpl_localtime): New function.
84651
84652 2002-05-27  Jim Meyering  <meyering@lucent.com>
84653
84654         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84655         localtime.
84656
84657         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84658         use the replacement function; it wouldn't resolve at link time.
84659         Reported by Volker Borchert.
84660
84661 2002-05-22  Jim Meyering  <meyering@lucent.com>
84662
84663         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84664         file-type.h.
84665         * lib/file-type.h: New file.
84666         * lib/file-type.c (file_type): New file/function.  Extracted from
84667         diffutils.
84668
84669 2002-04-30  Jim Meyering  <meyering@lucent.com>
84670
84671         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84672
84673 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84674
84675         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84676
84677 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84678
84679         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84680         Do not check for alloca.h (no longer used) or stdbool.h (was never
84681         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84682
84683 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84684
84685         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84686
84687 2002-04-29  Jim Meyering  <meyering@lucent.com>
84688
84689         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84690         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84691         Use AC_FUNC_STRNLEN here instead.
84692
84693         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84694         With autoconf-2.53a, it's part of AC_PROG_CC.
84695
84696 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84697
84698         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84700
84701 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84702
84703         * lib/sig2str.h, lib/sig2str.c: New files.
84704         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84705
84706 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84707
84708         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84709         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84710         of 127, since 64 is the largest conceivable number for ancient
84711         nonstandard hosts.
84712         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84713
84714 2002-04-28  Jim Meyering  <meyering@lucent.com>
84715
84716         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84717
84718 2002-04-24  Jim Meyering  <meyering@lucent.com>
84719
84720         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84721         (jm_PREREQ): Use it.
84722
84723         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84724         mach/mach.h fcntl.h.
84725         Check for this function: setlocale.
84726
84727 2002-04-24  Jim Meyering  <meyering@lucent.com>
84728
84729         * lib/gettext.h: New file, from Gettext.
84730         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84731         (libfetish_a_SOURCES): Add gettext.h.
84732
84733 2002-04-16  Jim Meyering  <meyering@lucent.com>
84734
84735         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84736         ut_pid, ut_id, ut_exit.
84737
84738 2002-04-16  Jim Meyering  <meyering@lucent.com>
84739
84740         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84741         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84742         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84743
84744 2002-04-12  Jim Meyering  <meyering@lucent.com>
84745
84746         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84747         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84748         existence of the getmntinfo function.  Needed for Darwin 5.3.
84749
84750         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84751         This is necessary at least on Darwin 5.3.
84752
84753         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84754         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84755         strnlen.o in the library, and that makes some versions of ranlib
84756         object.
84757
84758 2002-04-12  Jim Meyering  <meyering@lucent.com>
84759
84760         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84761
84762 2002-04-09  Jim Meyering  <meyering@lucent.com>
84763
84764         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84765         to be more precise.  Rather than saying we're checking whether the
84766         function `works', say what we're testing.
84767         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84768         Reported by Bruno Haible.
84769
84770 2002-03-10  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84773         Suggestion from Santiago Vila.
84774
84775 2002-03-08  Jim Meyering  <meyering@lucent.com>
84776
84777         * lib/rename.c: Mention that this wrapper is needed also on
84778         mips-dec-ultrix4.4 systems.
84779
84780 2002-03-02  Jim Meyering  <meyering@lucent.com>
84781
84782         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84783         not HAVE_CLOCK_SETTIME.
84784
84785 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84786
84787         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84788         Check for clock_settime.
84789
84790 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84791
84792         * lib/nanosleep.h: Rename to....
84793         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84794
84795         * lib/gettime.c: New file.
84796         * lib/settime.c: New file.
84797         * lib/stime.c: Remove.
84798
84799         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84800         timespec.h.  Remove nanosleep.h.
84801
84802 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84803
84804         * m4/acl.m4: New file.
84805         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84806         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84807
84808 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84809
84810         * lib/acl.c, lib/acl.h: New files.
84811         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84812
84813 2002-02-24  Jim Meyering  <meyering@lucent.com>
84814
84815         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84816         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84817         cause trouble.  Reported by Nelson Beebe.
84818
84819 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84820
84821         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84822         compilers that don't know that xalloc_die never returns.
84823
84824 2002-02-20  Jim Meyering  <meyering@lucent.com>
84825
84826         * lib/getdate.c: Regenerate using bison-1.33.
84827
84828 2002-02-17  Jim Meyering  <meyering@lucent.com>
84829
84830         * config/config.guess (main): Don't use `head -1'; it's no longer
84831         portable. Use `sed 1q' instead.
84832
84833 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84834
84835         * m4/codeset.m4: Upgrade to gettext-0.11.
84836         * m4/gettext.m4: Upgrade to gettext-0.11.
84837         * m4/glibc21.m4: Upgrade to gettext-0.11.
84838         * m4/iconv.m4: Upgrade to gettext-0.11.
84839         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84840         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84841         * m4/lib-ld.m4: New file, from gettext-0.11.
84842         * m4/lib-link.m4: New file, from gettext-0.11.
84843         * m4/lib-prefix.m4: New file, from gettext-0.11.
84844         * m4/progtest.m4: Upgrade to gettext-0.11.
84845
84846 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84847
84848         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84849         (jm_PREREQ): Use it.
84850
84851 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84852
84853         * lib/posixver.c, lib/posixver.h: New files.
84854         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84855
84856 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84857             Bruno Haible  <bruno@clisp.org>
84858
84859         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84860         (fwrite_success_callback): New declaration.
84861         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84862         print_unicode_char. Call failure callback instead of error.
84863         (fwrite_success_callback): New function.
84864         (exit_failure_callback): New function.
84865         (fallback_failure_callback): New function.
84866         (print_unicode_char): Call unicode_to_mb.
84867
84868 2002-01-26  Jim Meyering  <meyering@lucent.com>
84869
84870         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84871         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84872
84873 2002-01-26  Jim Meyering  <meyering@lucent.com>
84874
84875         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84876
84877 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84878
84879         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84880
84881 2002-01-22  Jim Meyering  <meyering@lucent.com>
84882
84883         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84884         Otherwise, some versions of automake would omit the rule that makes
84885         Makefile from Makefile.in.
84886
84887 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84888
84889         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84890         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84891         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84892         (memcoll): Set errno to zero if there is no error.
84893
84894         * lib/quotearg.c (quotearg_buffer_restyled):
84895         Fix bug with quoting buffers containing NUL when backslashing escapes.
84896         This bug was exposed by the other changes in this patch.
84897         (quotearg_n_options): New arg ARGSIZE.
84898         All callers changed.
84899         (quoting_options_from_style): New function.
84900         (quotearg_n_style): Use it.
84901         (quotearg_n_style_mem): New function.
84902
84903         * lib/quotearg.h (quotearg_n_style_mem): New function.
84904
84905 2002-01-19  Jim Meyering  <meyering@lucent.com>
84906
84907         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84908         Remove useless quotes: DF_PROG="df".
84909         * m4/strnlen.m4: New file.
84910
84911 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84912
84913         * lib/backupfile.c (ISDIGIT): Comment fix.
84914         * lib/getdate.y (ISDIGIT): Likewise.
84915         * lib/posixtm.c (ISDIGIT, year): Likewise.
84916         * lib/strverscmp.c (ISDIGIT): Likewise.
84917         * lib/userspec.c (ISDIGIT): Likewise.
84918
84919 2002-01-16  Jim Meyering  <meyering@lucent.com>
84920
84921         * lib/getdate.y: Add three semicolons, each just before a closing
84922         brace. Bison (as of version 1.31) no longer papers over that mistake.
84923
84924 2002-01-05  Jim Meyering  <meyering@lucent.com>
84925
84926         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84927
84928 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84929
84930         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84931         not silently exit merely because the output buffer happens to
84932         have nothing pending.
84933
84934 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84935
84936         See the big note in ../ChangeLog.
84937         * lib/human.c (suffixes): Prefer K to k for 1024.
84938         (generate_suffix_backwards): New function.
84939         (human_readable_inexact): Use it.
84940         * lib/xstrtol.c (__xstrtol): If there is no number but there
84941         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84942         Accept 'K' as well as 'k'.
84943
84944 2001-12-15  Jim Meyering  <meyering@lucent.com>
84945
84946         * lib/regex.h (__restrict_arr): Update from libc.
84947
84948         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84949         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84950         (STREQ): Define.
84951
84952 2001-12-14  Jim Meyering  <meyering@lucent.com>
84953
84954         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84955         Suggestion from Bruno Haible.
84956
84957 2001-12-10  Jim Meyering  <meyering@lucent.com>
84958
84959         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84960         xrealloc, Instead, include "xalloc.h".
84961         (initbuffer): Don't cast xmalloc return value to char*.
84962         (readline): Reword comment.
84963         Don't cast xrealloc return value to char*
84964         Return NULL, not 0.
84965
84966 2001-12-09  Jim Meyering  <meyering@lucent.com>
84967
84968         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84969         about `signed and unsigned type in conditional expression'.
84970         * lib/posixtm.c (posix_time_parse): Likewise.
84971
84972         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84973
84974         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84975         to avoid a pedantic warning.
84976
84977         * lib/getstr.c: Don't include assert.h.
84978         (getstr): Remove warning-evoking assertions.
84979         Return -1 if offset parameter is out of bounds.
84980         Change the type of a local from int to size_t.
84981
84982         * lib/strftime.c (my_strftime_localtime_r): Include this function
84983         definition in the `#if ! HAVE_TM_GMTOFF' block.
84984
84985         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84986         Include xalloc.h instead.
84987
84988 2001-12-02  Jim Meyering  <meyering@lucent.com>
84989
84990         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84991         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84992         included.
84993
84994         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84995         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84996
84997 2001-11-30  Akim Demaille  <akim@epita.fr>
84998
84999         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85000         before being defined.
85001
85002 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85003
85004         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85005         First arg is int, not unsigned.
85006         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85007         (SIZE_MAX, UINT_MAX): New macros.
85008         (quotearg_n_options): Abort if N is negative.
85009         Avoid overflow check on hosts where size_t is 64 bits and int
85010         is 32 bits, as overflow is impossible there.
85011         Fix off-by-one typo that caused unnecessary reallocation.
85012
85013 2001-11-27  Jim Meyering  <meyering@lucent.com>
85014
85015         * lib/tempname.c: Merge with version from libc.
85016         * lib/regex.c: Likewise.
85017
85018         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85019         systems for which STDC_HEADERS is 0, it was not included, resulting in
85020         a warning about an integer-to-pointer conversion problem with getenv.
85021         Reported by Volker Borchert.
85022
85023 2001-11-26  Jim Meyering  <meyering@lucent.com>
85024
85025         * lib/gtod.h: Remove file.
85026         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85027         * lib/gettimeofday.c: Don't include gtod.h.
85028         (GTOD_init): Remove function.
85029         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85030         Suggestion from Volker Borchert.
85031
85032 2001-11-23  Jim Meyering  <meyering@lucent.com>
85033
85034         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85035         it.
85036         * lib/hash.c (struct hash_table): Define it here instead.
85037
85038 2001-11-22  Jim Meyering  <meyering@lucent.com>
85039
85040         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85041
85042 2001-11-20  Jim Meyering  <meyering@lucent.com>
85043
85044         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85045         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85046
85047 2001-11-19  Jim Meyering  <meyering@lucent.com>
85048
85049         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85050         directory.  Use "conftestXXXXXX" as the template.
85051         Suggestion from Paul Eggert.
85052
85053         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85054         immediately, so the test doesn't mistakenly hit the max-open-files
85055         limit.
85056
85057 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85058
85059         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85060         (TEMPORARIES): New macro.
85061         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85062         removes an artificial limitation (e.g. HP-UX 10.20, where
85063         TMP_MAX is 17576).
85064
85065 2001-11-18  Jim Meyering  <meyering@lucent.com>
85066
85067         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85068
85069 2001-11-18  Jim Meyering  <meyering@lucent.com>
85070
85071         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85072         on SunOS 4.
85073
85074         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85075         files will be created before anything else.
85076
85077 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85078
85079         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85080         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85081
85082 2001-11-17  Jim Meyering  <meyering@lucent.com>
85083
85084         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85085         Prompted by a report from Bob Proulx.
85086
85087         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85088         Instead, require UTILS_FUNC_MKSTEMP.
85089
85090 2001-11-17  Jim Meyering  <meyering@lucent.com>
85091
85092         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85093         Now, that's done as part of AC_FUNC_STRTOD.
85094
85095 2001-11-17  Jim Meyering  <meyering@lucent.com>
85096
85097         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85098         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85099         rather than group writable.  Patch by Juan F. Codagnone.
85100
85101         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85102         xrealloc, Instead, include "xalloc.h".
85103
85104         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85105         Remove explicit declarations of xmalloc, xrealloc,
85106         and xstrdup.  Instead, include "xalloc.h".
85107
85108         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85109         unlocked-io.h.
85110         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85111         Likewise.
85112         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85113
85114         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85115         Reported by Padraig Brady.
85116
85117         * lib/mkstemp.c: #undef mkstemp.
85118         Include config.h.
85119         (rpl_mkstemp): Rename from mkstemp.
85120         Protoize.
85121
85122 2001-11-16  Jim Meyering  <meyering@lucent.com>
85123
85124         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85125         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85126         determine the amount of total physical memory, use pstat_getstatic.
85127         HPUX-11 doesn't define _SC_PHYS_PAGES.
85128         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85129         If sysconf couldn't be used to determine the amount of available
85130         physical memory, use both pstat_getstatic and pstat_getdynamic.
85131         Based on a patch from Bob Proulx.
85132
85133 2001-11-10  Jim Meyering  <meyering@lucent.com>
85134
85135         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85136         (jm_PREREQ): Use it.
85137
85138 2001-11-09  Jim Meyering  <meyering@lucent.com>
85139
85140         * m4/jm-macros.m4: Require autoconf-2.52f.
85141         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85142         Use these AC_-prefixed names, not the AM_-prefixed ones.
85143
85144         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85145
85146 2001-11-05  Jim Meyering  <meyering@lucent.com>
85147
85148         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85149
85150 2001-11-04  Jim Meyering  <meyering@lucent.com>
85151
85152         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85153         $DEFS.
85154
85155 2001-11-03  Jim Meyering  <meyering@lucent.com>
85156
85157         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85158         of AC_DEFUN.
85159
85160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85161         know the name of the variable in the macro definition.
85162
85163 2001-11-03  Jim Meyering  <meyering@lucent.com>
85164
85165         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85166         in argmatch_to_argument call.
85167
85168         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85169         argument.
85170
85171         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85172         e.g., a fault due to an attempt to free a NULL pointer.
85173
85174 2001-11-01  Jim Meyering  <meyering@lucent.com>
85175
85176         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85177         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85178
85179 2001-11-01  Jim Meyering  <meyering@lucent.com>
85180
85181         * lib/dirfd.c, lib/dirfd.h: New files.
85182         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85183
85184         * lib/hash.c (hash_print) [TESTING]: Clean up.
85185
85186 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85187
85188         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85189         to avoid a warning if -Wall.
85190
85191 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85192
85193         * README: New file
85194         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85195         (per RMS's instructions, this is now the canonical source)
85196         * lgpl/, gpl/: New directories.
85197
85198 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85199
85200         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85201
85202 2001-10-21  Jim Meyering  <meyering@lucent.com>
85203
85204         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85205         this code would end up calling gettext even in packages built
85206         with --disable-nls.
85207         * lib/getopt.c (_): Likewise.
85208         * lib/regex.c (_): Likewise.
85209
85210 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85211
85212         * m4/error.m4 (jm_PREREQ_ERROR):
85213         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85214         AC_FUNC_STRERROR_R does that.
85215         Check for strerror declaration.
85216
85217         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85218         are supposed to have them these days.
85219         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85220         Merge changes from latest Autoconf CVS.
85221         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85222         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85223         POSIX decided to standardize on the int flavor of strerror_r.
85224
85225 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85226
85227         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85228         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85229         Use strerror_r that is only a macro, even if it is not a function.
85230         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85231         (private_strerror): Use prototypes, not old-style function definition.
85232         (print_errno_message): New function.
85233         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85234         char*-flavored one.
85235         (error_tail, error, error_at_line): Use it.
85236
85237 2001-10-11  Jim Meyering  <meyering@lucent.com>
85238
85239         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85240         and quote_n (1, ... to avoid clobbering a buffer.
85241
85242 2001-10-05  Jim Meyering  <meyering@lucent.com>
85243
85244         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85245         hash-pjw.h.
85246         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85247         * lib/hash-pjw.h: New file.
85248
85249 2001-09-30  Jim Meyering  <meyering@lucent.com>
85250
85251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85252         `struct fsstat' has the `f_fstypename' member.
85253         Use that to define FS_TYPE, which is now used to make
85254         the getfsstat link test tighter.
85255
85256 2001-09-30  Jim Meyering  <meyering@lucent.com>
85257
85258         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85259         Include <sys/ucred.h>, for Apple Darwin.
85260         Include sys/mount.h and sys/fs_types.h only if available.
85261         (FS_TYPE): Define.
85262         (read_filesystem_list): Use FS_TYPE.
85263
85264 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85265
85266         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85267         a boolean context.
85268
85269 2001-09-29  Jim Meyering  <meyering@lucent.com>
85270
85271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85272         [one-argument getmntent function]): Include stdio.h before mntent.h.
85273         SunOS 4.1.x needs it for the declaration of `FILE'.
85274         Patch by Volker Borchert.
85275
85276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85277         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85278         sys/fs_types.h, and make the link-test for getfsstat guard #include
85279         directives with appropriate #if HAVE_*_H tests so that we can
85280         detect getfsstat on Apple Darwin1.3.7 systems.
85281         Reported by Nelson Beebe.
85282         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85283
85284 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85285
85286         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85287         #defines strtoimax.  Also treat the other strto* functions
85288         like strtoimax.
85289
85290         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85291         Check for strtoul and strtoumax,
85292         as those declarations are made even in the signed case.
85293         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85294         Likewise, for strtol and strtoimax.
85295
85296 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85297
85298         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85299         #defines strtoimax.  Also treat the other strto* functions
85300         like strtoimax.
85301
85302         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85303         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85304         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85305
85306 2001-09-26  Jim Meyering  <meyering@lucent.com>
85307
85308         Most macros in unlocked-io.h had the wrong number of arguments.
85309         * lib/gen-uio: New script.
85310         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85311         * lib/unlocked-io.hin: Remove file.
85312         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85313         rather than trying to embed it here.
85314         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85315         Reported by Padraig Brady.
85316
85317 2001-09-25  Volker Borchert  <bt@teknon.de>
85318
85319         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85320         `result'.
85321
85322 2001-09-24  Jim Meyering  <meyering@lucent.com>
85323
85324         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85325
85326 2001-09-23  Jim Meyering  <meyering@lucent.com>
85327
85328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85329         instead of the mere test for existence of mntent.h.  The latter
85330         would get a false-positive on AIX 3.4 systems.
85331         In the outer getmntent if-block, don't die if neither of the getmntent
85332         tests succeeds.  Instead, just fall through and continue with the
85333         remaining tests.
85334
85335 2001-09-23  Jim Meyering  <meyering@lucent.com>
85336
85337         * lib/mountlist.c: Remove useless parentheses in #if directives.
85338         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85339         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85340
85341 2001-09-22  Jim Meyering  <meyering@lucent.com>
85342
85343         * m4/gettext.m4: New file.  From gettext.
85344         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85345         * m4/progtest.m4: Likewise
85346         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85347         * m4/glibc21.m4: Likewise.
85348
85349         * m4/libintl.m4: Remove.  No longer used.
85350
85351 2001-09-22  Jim Meyering  <meyering@lucent.com>
85352
85353         * lib/localcharset.c: Update from latest gettext.
85354         * lib/config.charset: Likewise.
85355
85356 2001-09-20  Jim Meyering  <meyering@lucent.com>
85357
85358         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85359         strtoimax.
85360         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85361         strtoumax.
85362
85363 2001-09-20  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/xstrtol.c (strtoimax): Guard declaration with
85366         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85367         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85368         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85369         (strtoumax): Likewise, for completeness (it wasn't necessary).
85370
85371 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85372
85373         * lib/strtoimax.c (HAVE_LONG_LONG):
85374         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85375         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85376         to work around bug in IBM C compiler.
85377
85378 2001-09-17  Jim Meyering  <meyering@lucent.com>
85379
85380         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85381         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85382         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85383         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85384         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85385         whenever the right hand side need not be expanded by the shell.
85386
85387 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85388
85389         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85390         library.  It's not correct, as some older glibcs are buggy.
85391         fnmatch wasn't fixed until glibc 2.2.
85392
85393         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85394         special shell magic here.
85395
85396 2001-09-16  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85399         * m4/jm-macros.m4: Require it.
85400
85401 2001-09-16  Jim Meyering  <meyering@lucent.com>
85402
85403         * lib/mkdir.c: New file.
85404
85405 2001-09-15  Jim Meyering  <meyering@lucent.com>
85406
85407         * m4/jm-macros.m4: Check for help2man.
85408
85409 2001-09-11  Jim Meyering  <meyering@lucent.com>
85410
85411         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85412         The body, by Paul Eggert, was moved here from configure.in.
85413         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85414
85415 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85416
85417         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85418         (jm_PREREQ): Use it.
85419
85420 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85421
85422         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85423         Use ssize_t, not int, to store result of readlink.
85424         Check for ssize_t overflow as well as size_t overflow,
85425         as POSIX says the result of readlink is implementation-defined
85426         when ssize_t overflows.
85427         Remove unnecessary cast to char*.
85428         Use free+malloc instead of realloc, as the storage doesn't need
85429         to be preserved and it's clearer and can be more efficient that way.
85430         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85431         * lib/xreadlink.h (xreadlink): Update prototype.
85432
85433 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85434
85435         * lib/xgetcwd.c: Revert some of the previous change; intead,
85436         fix the HAVE_GETCWD_NULL code to behave more like the
85437         !HAVE_GETCWD_NULL code used to.
85438
85439         Include "xalloc.h".
85440         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85441         invoke xalloc_die.
85442
85443 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85444
85445         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85446         sys/param.h, as pathmax.h includes them.
85447
85448 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85449
85450         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85451         (jm_PREREQ_XGETCWD): New macro.
85452
85453         * m4/getcwd.m4: New file.
85454
85455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85456
85457         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85458         like the HAVE_GETCWD_NULL code.
85459         Include pathmax.h if not HAVE_GETCWD.
85460         Do not include xalloc.h.
85461         (INITIAL_BUFFER_SIZE): New symbol.
85462         Do not use xmalloc / xrealloc, since the caller is responsible for
85463         handling errors.  Preserve errno around `free' during failure.
85464         Do not overrun buffer when using getwd.
85465
85466 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85467
85468         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85469         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85470         getcwd (NULL, 0).
85471
85472 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85473
85474         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85475         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85476         spotted by Jim Meyering.
85477
85478 2001-09-03  Jim Meyering  <meyering@lucent.com>
85479
85480         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85481         failure.
85482
85483 2001-09-02  Jim Meyering  <meyering@lucent.com>
85484
85485         * lib/error.c: Update from GNU libc.
85486
85487 2001-09-01  Jim Meyering  <meyering@lucent.com>
85488
85489         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85490         Used by df.
85491
85492 2001-09-01  Jim Meyering  <meyering@lucent.com>
85493
85494         * lib/xreadlink.c: New file.
85495         * lib/xreadlink.h: New file.
85496         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85497         xreadlink.h.
85498
85499         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85500         doesn't conflict with sparc Solaris 7's definition in
85501         /usr/include/sys/int_types.h.
85502
85503         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85504         files.
85505         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85506         and strncasecmp as r-values.  Unixware didn't have declarations.
85507
85508 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85509
85510         * lib/xstrtol.h: Add copyright notice.
85511         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85512         LONGINT_INVALID_SUFFIX_CHAR.
85513
85514 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85515
85516         * lib/xstrtol.c (strtoimax): New decl.
85517
85518 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85519
85520         * lib/xgetcwd.c: Don't include pathmax.h.
85521         Include stdlib.h and unistd.h if available.
85522         Include xalloc.h.
85523         (xmalloc, xstrdup, free): Remove decls.
85524         (xgetcwd): Don't assume sizes fit in unsigned.
85525         Check for overflow when computing sizes.
85526         Simplify reallocation code.
85527
85528 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85529
85530         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85531         a directory's st_size can have an arbitrary value, so the old
85532         usage could waste an arbitrary amount of memory.  All uses
85533         changed.
85534         * lib/savedir.h: Update prototype.
85535
85536 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85537
85538         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85539
85540         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85541         old strtoimax.c.
85542
85543         Also, make the following further changes to make this file's
85544         configuration more similar to that of strtol.c:
85545         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85546         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85547         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85548         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85549         changed to signed values.
85550
85551         And make the following changes as well:
85552         Fix copyright notice, as 1999 was missing.
85553         (verify): New macro.
85554         (strtoimax): Check sizes at compile-time, not run-time.
85555         Prefer strtol to strtoll if both work.
85556         (main): Remove; it was not that useful and was a pain to maintain.
85557
85558         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85559
85560 2001-08-31  Jim Meyering  <meyering@lucent.com>
85561
85562         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85563         Use an initial, malloc'd, buffer of length 128 rather than
85564         a statically allocated one of length 1024.
85565
85566 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85567
85568         Simplify code, partly by assuming autoconf 2.52 semantics.
85569
85570         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85571
85572         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85573         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85574         All uses removed.
85575         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85576         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85577         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85578         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85579         jm_AC_HEADER_INTTYPES_H.
85580         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85581
85582         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85583
85584         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85585         Quote first arg of AC_DEFUN.
85586         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85587         since they are needed to parse the include file even if we need
85588         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85589         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85590         but with opposite signedness.
85591
85592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85593
85594         Merge 'exclude' changes from tar 1.13.22.
85595         This fixes one or two unlikely storage allocation overflow bugs,
85596         but doesn't change user-visible behavior otherwise.
85597
85598 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85599
85600         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85601         (jm_PREREQ_EXCLUDE): New macro.
85602
85603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85604
85605         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85606         tm to be declared.
85607
85608 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85609
85610         * lib/hash.c: Remove '2001' from copyright notice.
85611
85612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85613
85614         * lib/full-write.h: New file.
85615         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85616         * lib/full-write.c: Correct credits, as cccp.c no longer
85617         exists and anyway it was so heavily changed from the old cccp
85618         code as to be unrecognizable.  Include full-write.h.
85619         (full_write): Return size_t, with short writes meaning failure.
85620         All callers changed.  This fixes a bug with large buffers
85621         on 64-bit hosts.
85622         * lib/utime.c: Include full-write.h.
85623
85624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85625
85626         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85627         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85628         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85629         Include if available.
85630         (<xalloc.h>): Include
85631         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85632         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85633         collide with FNM macros.
85634         (struct patopts): New struct.
85635         (struct exclude): Use it, as exclude patterns now come with options.
85636         (new_exclude): Support above changes.
85637         (new_exclude, add_exclude_file):
85638         Initial size must now be a power of two to simplify overflow checking.
85639         (free_exclude, fnmatch_no_wildcards): New function.
85640         (excluded_filename): No longer requires options arg, as the options
85641         are determined by add_exclude.  Now returns bool, not int.
85642         (excluded_filename, add_exclude):
85643         Add support for the fancy new exclusion options.
85644         (add_exclude, add_exclude_file): Now takes int options arg.
85645         Check for arithmetic overflow when computing sizes.
85646         (add_exclude_file): xrealloc might modify errno, so don't
85647         realloc until after errno might be used.
85648
85649         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85650         New macros.
85651         (free_exclude): New decl.
85652         (add_exclude, add_exclude_file): Now takes int options arg.
85653         (excluded_filename): No longer requires options arg, as the options
85654         are determined by add_exclude.  Now returns bool, not int.
85655
85656 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85657
85658         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85659
85660 2001-08-27  Jim Meyering  <meyering@lucent.com>
85661
85662         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85663
85664         * lib/version-etc.c (N_): Remove definition.
85665         Revert most of last change.
85666         Instead, simply don't mark the `Copyright...' string for translation.
85667         Based on advice from Paul Eggert.
85668
85669         * lib/strtoxmax.c: Tweak comment.
85670
85671 2001-08-26  Jim Meyering  <meyering@lucent.com>
85672
85673         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85674
85675         * m4/xstrtoimax.m4: New file.
85676         * m4/xstrtoumax.m4: Add comments explaining why we
85677         AC_REPLACE_FUNCS(strtol).
85678
85679 2001-08-26  Jim Meyering  <meyering@lucent.com>
85680
85681         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85682         of copyright with `%s' so translators don't get an untranslated
85683         message in 2002.
85684         (COPYRIGHT_YEAR): Define.
85685         (version_etc): Use fprintf rather than fputs.
85686         Suggestion from Ulrich Drepper.
85687
85688         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85689
85690         * lib/strtoll.c: New file, from GNU libc.
85691         * lib/xstrtoimax.c: New file.
85692
85693         * lib/xstrtol.h: Add xstrtoimax.
85694         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85695         * lib/strtoimax.c: New file.  Likewise, but first define
85696         STRTOUXMAX_SIGNED.
85697
85698         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85699         ...
85700         * lib/strtoxmax.c: ... then renamed to this.
85701
85702 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85703
85704         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85705         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85706         (jm_AC_TYPE_INTMAX_T): New macro.
85707         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85708
85709         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85710
85711         * m4/longlong.m4: Renamed from ulonglong.m4.
85712         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85713         * m4/uintmax_t.m4: Removed.
85714
85715 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85716
85717         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85718         Port to Solaris 8, where 'sed' requires a space after the 'r'
85719         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85720         Redirect output to $tmp just once.
85721
85722 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85723
85724         * lib/addext.c (<errno.h>): Include.
85725         (errno): Declare if not defined.
85726         (addext): Work correctly when pathconf returns -1 and leaves
85727         errno alone because there is no limit.  Also, work even if
85728         pathconf returns a value greater than SIZE_MAX.
85729
85730 2001-08-12  Jim Meyering  <meyering@lucent.com>
85731
85732         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85733         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85734         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85735         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85736         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85737         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85738         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85739         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85740         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85741         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85742         utime.m4, utimes.m4, xstrtoumax.m4:
85743         Quote the first argument in each use of AC_DEFUN.
85744
85745 2001-08-12  Jim Meyering  <meyering@lucent.com>
85746
85747         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85748         Simply `return getcwd (NULL, 0);'.
85749         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85750         Use 1300 as initial value for length, not PATH_MAX.
85751
85752         * lib/pathmax.h: Clean up cpp syntax.
85753
85754 2001-08-12  Jim Meyering  <meyering@lucent.com>
85755
85756         * lib/gettimeofday.c: New file.
85757         * lib/gtod.h: New file.
85758         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85759
85760 2001-08-05  Jim Meyering  <meyering@lucent.com>
85761
85762         * m4/jm-macros.m4: Require autoconf-2.52.
85763
85764 2001-08-04  Jim Meyering  <meyering@lucent.com>
85765
85766         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85767         stmt, to get in sync with glibc.
85768
85769 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85770
85771         The following changes are from gettext 0.10.39 as maintained by
85772         Bruno Haible.
85773
85774         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85775         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85776         with inverted sense.  All uses changed.
85777
85778         * lib/mbswidth.c: Don't include <limits.h>.
85779         Include <stdlib.h> and <string.h> unconditionally.
85780         (iswcntrl, mbsinit, ISCNTRL): New macros.
85781         (mbsnwidth): Use K&R style function declarations.
85782         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85783         can optimize it when MB_CUR_MAX == 1.
85784         The width of control characters is zero, not 1.
85785
85786 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85787
85788         The following changes are from gettext 0.10.39 as maintained by
85789         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85790
85791         * m4/codeset.m4: Upgrade to serial AM1.
85792         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85793         all uses changed.  Quote first arg of AC_DEFUN.
85794         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85795
85796         * m4/iconv.m4: Upgrade to serial AM2.
85797         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85798         Add --with-libconv-prefix.
85799         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85800         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85801         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85802         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85803         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85804
85805         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85806         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85807         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85808         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85809         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85810         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85811         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85812         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85813         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85814
85815         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85816         string.h any more.
85817
85818         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85819         not the default value.
85820
85821         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85822         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85823         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85824         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85825         Also check for iswcntrl, used for wcwidth fallback.
85826         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85827         to Autoconf 2.13.
85828
85829 2001-08-03  Jim Meyering  <meyering@lucent.com>
85830
85831         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85832         as it was in the original.  Reported by Paul Eggert.
85833
85834 2001-07-16  Jim Meyering  <meyering@lucent.com>
85835
85836         * m4/gettimeofday.m4: New file.
85837         Prompted by a report from Bernhard Baehr.
85838
85839 2001-07-15  Jim Meyering  <meyering@lucent.com>
85840
85841         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85842         stuff. Now it's in ../Makefile.cfg.
85843
85844 2001-07-15  Jim Meyering  <meyering@lucent.com>
85845
85846         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85847         (BUILT_SOURCES): Add unlocked-io.h.
85848         (io_functions): Define.
85849         (unlocked-io.h): New rule.
85850         (DISTCLEANFILES): Add unlocked-io.h.
85851         (all-local): Depend on unlocked-io.h, to ensure it is created.
85852
85853         * lib/unlocked-io.hin: New file
85854
85855         * lib/regex.c: Update from glibc.
85856
85857 2001-07-05  Jim Meyering  <meyering@lucent.com>
85858
85859         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85860         recommendation.
85861         (libfetish_a_SOURCES): Put all .h files here instead.
85862         Remove a thus-exposed (better checks in automake) duplicate and
85863         two unnecessary .h files.
85864
85865 2001-07-04  Jim Meyering  <meyering@lucent.com>
85866
85867         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85868         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85869         distcheck failure.
85870
85871 2001-07-02  Jim Meyering  <meyering@lucent.com>
85872
85873         The following changes were prompted by suggestions from Bruno Haible.
85874
85875         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85876         is now generated.
85877         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85878         definition of EXTRA_DIST.
85879         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85880         ensure that the generated file is created/updated whenever the list
85881         of $(unlocked_functions) is changed.
85882         (jm-glibc-io.m4): New rule.
85883         (unlocked-io.h): New rule -- currently unused.
85884
85885 2001-06-24  Jim Meyering  <meyering@lucent.com>
85886
85887         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85888         unmatched right bracket, rather than kludging it with an extra,
85889         falsely-matching quote in a comment.  Patch by Akim Demaille.
85890
85891 2001-06-11  Jim Meyering  <meyering@lucent.com>
85892
85893         * lib/regex.c: Update from GNU libc.
85894
85895 2001-05-27  Jim Meyering  <meyering@lucent.com>
85896
85897         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85898         Check for ut_type in struct utmp.
85899
85900 2001-05-27  Jim Meyering  <meyering@lucent.com>
85901
85902         * lib/readutmp.h (UT_TYPE): Define.
85903
85904 2001-05-24  Jim Meyering  <meyering@lucent.com>
85905
85906         * lib/argmatch.c: Include "quote.h".
85907         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85908         quote function.  Reported by Göran Uddeborg.
85909
85910 2001-05-22  Jim Meyering  <meyering@lucent.com>
85911
85912         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85913         now that we use the package-supplied version unconditionally.
85914         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85915
85916 2001-05-21  Jim Meyering  <meyering@lucent.com>
85917
85918         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85919         shell syntax errors.
85920
85921 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85922
85923         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85924
85925 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85926
85927         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85928         Don't bother to check library strftime, since
85929         we'll be using our own my_strftime function anyway.
85930         Define my_strftime instead of strftime.
85931
85932 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85933
85934         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85935         which is not yet declared.
85936
85937 2001-05-15  Jim Meyering  <meyering@lucent.com>
85938
85939         * m4/regex.m4: Use proper quoting so brackets appear in the test
85940         program.
85941         Reported by, and with help from, Bruno Haible.
85942
85943 2001-05-13  Jim Meyering  <meyering@lucent.com>
85944
85945         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85946         undefined.
85947
85948 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85949
85950         dirname code cleanup.  base_name now behaves more compatibly
85951         with POSIX basename when given file names that have trailing
85952         slashes, and similarly for dir_name.  Add new primitives
85953         base_len and dir_len.  Put the directory-name-related decls
85954         into dirname.h.
85955
85956         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85957         * lib/backupfile.c (base_name): Likewise.
85958         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85959         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85960         * lib/makepath.c (strip_trailing_slashes): Likewise.
85961         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85962         ISSLASH): Likewise.
85963         * lib/rename.c (strip_trailing_slashes): Likewise.
85964         * lib/same.c (base_name): Likewise.
85965         * lib/stripslash.c (ISSLASH): Likewise.
85966
85967         * lib/addext.c: Include <dirname.h> after size_t is defined.
85968         * lib/backupfile.c: Likewise.
85969
85970         * lib/addext.c (addext): Use base_len to trim redundant
85971         trailing slashes instead of doing it ourselves.
85972         But do not trim the last slash if it is not redundant.
85973
85974         * lib/backupfile.c (find_backup_file_name,
85975         max_backup_version): Use base_len instead of rolling it ourselves.
85976         Handle the case of "" and (on DOS) "C:" correctly.
85977
85978         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85979         needed. Include <string.h>, <dirname.h>.
85980         (base_name): Allow file names ending in slashes, other than names
85981         that are all slashes.  In this case, return the basename followed
85982         by the slashes.  This is more general, and can be used in places
85983         where the original base_name purposely had an assertion failure.
85984         (base_len): New function.
85985
85986         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85987         Do not include <assert.h>; no longer needed.
85988         Include xalloc.h.
85989         (memrchr): Remove decl.
85990         (dir_name_r): Remove.
85991         (dir_len): Renamed from dirlen.  All callers changed.
85992         Rewrite in terms of base_name, for simplicity and consistency.
85993         (dir_name): Never return NULL.  All callers changed.
85994         Do not include <stdlib.h> in test program; no longer needed.
85995         return 0; is fine for test program.
85996
85997         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85998         New macros.
85999         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86000
86001         * lib/path-concat.c (path_concat): Use base_len to compute
86002         base length, not strlen; this means we cannot rely on memcpy
86003         to null-terminate.
86004
86005         * lib/same.c (STREQ): Remove.
86006         (same_name): Handle the case where the basename ends in trailing '/'.
86007
86008         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86009         a slash was stripped.  Do not strip the last slash after a
86010         file system prefix.
86011
86012 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86013
86014         * lib/Makefile.am (libfetish_a_SOURCES):
86015         Add strftime.c, since we now compile it on all hosts.
86016
86017         * lib/strftime.c (my_strftime):
86018         Define to nstrftime if emacs, but only if my_strftime is not defined.
86019         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86020         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86021         Add one more extra argument: a nanoseconds value.
86022         All uses changed.
86023         (ns): New macro.
86024         (my_strftime function): Add %N format.
86025         (emacs_strftimeu): Renamed from emacs_strftime,
86026         with extra ut argument.
86027
86028 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86029
86030         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86031
86032 2001-04-21  Jim Meyering  <meyering@lucent.com>
86033
86034         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86035         doesn't interfere.
86036
86037 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86038
86039         * m4/ftruncate.m4: Check for chsize.
86040         Link with ftruncate.o unconditionally if ftruncate is missing.
86041         This was required when cross-compiling to i586-mingw32msvc.
86042
86043 2001-04-08  Jim Meyering  <meyering@lucent.com>
86044
86045         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86046         recomputed; that's necessary when the offset spans a DST transition.
86047         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86048
86049 2001-04-02  Jim Meyering  <meyering@lucent.com>
86050
86051         * lib/regex.h, regex.c: Update from GNU libc.
86052
86053 2001-03-24  Jim Meyering  <meyering@lucent.com>
86054
86055         * m4/jm-macros.m4: Require autoconf-2.49d.
86056
86057 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86058
86059         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86060
86061 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86062
86063         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86064
86065 2001-03-17  Jim Meyering  <meyering@lucent.com>
86066
86067         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86068         now that the version in autoconf is equivalent.
86069         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86070
86071         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86072         Suggestion from Akim Demaille.
86073
86074         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86075         (jm_PREREQ_TEMPNAME): New function.
86076
86077 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86078
86079         * lib/tempname.c (uint64_t): Define to uintmax_t if
86080         not defined, and if UINT64_MAX is not defined.
86081         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86082         Reported by John David Anglin.
86083
86084 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86085
86086         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86087         resolve alias if codeset is empty.
86088         * lib/config.charset (BeOS): Use wildcard syntax.
86089
86090 2001-03-13  Jim Meyering  <meyering@lucent.com>
86091
86092         * lib/path-concat.c (path_concat)
86093         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86094         concatenating e.g., `C:' and `foo'.
86095         From Bruno Haible.
86096
86097 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86098
86099         * lib/localcharset.c (locale_charset): Don't use
86100         setlocale(LC_CTYPE,NULL). Don't return NULL.
86101         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86102
86103 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86104
86105         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86106         support for DOS/DJGPP.
86107
86108 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86109
86110         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86111         lacks mkstemp.  Compile our own tempname.c if we compile our own
86112         mkstemp.c, as mkstemp relies on tempname.
86113
86114 2001-03-01  Jim Meyering  <meyering@lucent.com>
86115
86116         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86117         AH_VERBATIM really does output its argument verbatim.
86118
86119 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86120
86121         * lib/Makefile.am (libfetish_a_SOURCES):
86122         Add dup-safer.c, fopen-safer.c.
86123         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86124
86125         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86126         * lib/unistd-safer.h: New files.
86127
86128 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86129
86130         The mkstemp replacement is taken from glibc 2.2.2, with some
86131         portability fixes for use outside glibc, as follows:
86132
86133         * lib/tempname.c (struct_stat64): New macro.
86134         (direxists, __gen_tempname): Use it.
86135         This avoids a portability problem with Solaris 8.
86136
86137         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86138         (<stddef.h>, <stdint.h>, <string.h>):
86139         Include only if STDC_HEADERS || _LIBC.
86140         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86141         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86142         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86143         (__set_errno): Define this macro if <errno.h> doesn't.
86144         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86145         Define these macros if <stdio.h> doesn't.
86146         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86147         Define these macros if <sys/stat.h>
86148         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86149         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86150         __xstat64): Define if not _LIBC.
86151         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86152         (__gen_tempname): Invoke gettimeofday only if
86153         HAVE_GETTIMEOFDAY || _LIBC;
86154         otherwise, fall back on plain "time".
86155         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86156
86157         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86158
86159         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86160
86161 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86162
86163         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86164
86165 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86166
86167         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86168         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86169         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86170         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86171
86172 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86173
86174         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86175         Remove workaround macros for hosts that have mbrtowc but not
86176         mbstate_t, as we now insist on proper declarations for both
86177         before using mbrtowc.
86178
86179 2001-02-17  Jim Meyering  <meyering@lucent.com>
86180
86181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86182         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86183         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86184         UnixWare 7.1.1.
86185
86186         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86187         rather than AC_CACHE_VAL.
86188
86189 2001-02-17  Jim Meyering  <meyering@lucent.com>
86190
86191         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86192         around included file name.
86193
86194         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86195
86196         * lib/strftime.c: Update from GNU libc (the only changes were to
86197         comments).
86198
86199 2001-02-17  Jim Meyering  <meyering@lucent.com>
86200
86201         * lib/regex.c: Update from libc.
86202
86203 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86204
86205         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86206         clash.
86207
86208 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86209
86210         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86211         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86212         Reported by Mark Hounschell via Paul Eggert.
86213
86214 2001-02-07  Jim Meyering  <meyering@lucent.com>
86215
86216         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86217
86218 2001-02-05  Jim Meyering  <meyering@lucent.com>
86219
86220         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86221         it includes the patch required for `large file' support with at least
86222         HP-UX's 10.20 /bin/cc.
86223
86224 2001-02-03  Jim Meyering  <meyering@lucent.com>
86225
86226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86227         AS_IF, now that it works once again (mysteriously).
86228         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86229
86230 2001-01-30  Jim Meyering  <meyering@lucent.com>
86231
86232         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86233         * m4/chown.m4: Rename conftestchown to conftest.chown.
86234         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86235         s/conftestdir2/conftest.d2/.
86236         * m4/utimes.m4: s/conftestdata/conftest.data/
86237         Inspired by Pavel Roskin's change in autoconf.
86238
86239 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86240
86241         * lib/config.charset: Update for FreeBSD 4.2.
86242
86243 2001-01-27  Jim Meyering  <meyering@lucent.com>
86244
86245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86246         a use of AS_IF.
86247         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86248
86249 2001-01-26  Jim Meyering  <meyering@lucent.com>
86250
86251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86252         quotearg.c includes it.
86253
86254 2001-01-26  Jim Meyering  <meyering@lucent.com>
86255
86256         * lib/quotearg.c: Include stddef.h.
86257         * lib/quote.c: Include stddef.h.
86258         Reported by Axel Kittenberger.
86259
86260         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86261         line in double quotes so that it evokes a better diagnostic.
86262         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86263         Reported by Axel Kittenberger.
86264
86265 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86266
86267         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86268         as if it was a `charset'.
86269
86270 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86271
86272         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86273         has const.
86274
86275 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86276
86277         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86278         to avoid a warning.  Add back 'const' to inptr.
86279
86280 2001-01-20  Jim Meyering  <meyering@lucent.com>
86281
86282         Be sure that headers are checked before used in code compiled
86283         for the type checks.
86284         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86285         In place of that, invoke jm_CHECK_ALL_TYPES.
86286         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86287         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86288         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86289         The check for ssize_t was mistakenly run before the test for unistd.h.
86290
86291         The configure-time check for stdbool.h was missing.
86292         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86293         (jm_PREREQ_HASH): New function.
86294
86295 2001-01-17  Jim Meyering  <meyering@lucent.com>
86296
86297         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86298         for autoconf-2.49c.
86299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86300
86301 2001-01-16  Jim Meyering  <meyering@lucent.com>
86302
86303         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86304         From Bruno Haible.
86305
86306 2001-01-14  Jim Meyering  <meyering@lucent.com>
86307
86308         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86309         foo and bar.  Create conftestdir/ in the script, not in the C code.
86310         Remove directories in the script, not in the C code.
86311         Remove conftestdir{,2} before trying to create the directory.
86312         Make the entire configure script fail if the mkdir fails.
86313
86314 2001-01-14  Jim Meyering  <meyering@lucent.com>
86315
86316         * lib/rename.c: New file.  From Volker Borchert.
86317         Include stdlib.h, string.h or strings.h, and xalloc.h.
86318         Use strip_trailing_slashes rather than open-coding it.
86319
86320 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86321
86322         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86323
86324 2001-01-03  Jim Meyering  <meyering@lucent.com>
86325
86326         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86327         of local `inptr' to avoid warning with some system declarations of
86328         iconv.
86329
86330 2001-01-02  Volker Borchert  <bt@teknon.de>
86331
86332         * m4/rename.m4: New file.
86333         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86334
86335 2001-01-01  Jim Meyering  <meyering@lucent.com>
86336
86337         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86338         even on systems with utmpx.h.  It's necessary for the declaration of
86339         utmp's ut_user member.  Reported by Andreas Jaeger.
86340
86341         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86342         available. They are required for the declarations of getgrgid and
86343         getpwuid resp.
86344         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86345         Reported by Andreas Jaeger.
86346
86347 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86348
86349         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86350         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86351         so `make install' also works in VPATH builds.
86352
86353 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86354
86355         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86356         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86357         can be used in subdirectories.
86358
86359 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86360
86361         * lib/modechange.c: Do not assume that mode_t uses the
86362         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86363         the other-execute bit of FOO even if S_IXOTH != 1.
86364
86365         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86366         WOTH, XOTH, ALLM): New macros.
86367         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86368          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86369         Use them.
86370         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86371         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86372         (mode_compile):
86373         No need to use uintmax_t; unsigned long is long enough.
86374         Don't bother to get suffix since we don't use it.
86375
86376 2000-12-26  Jim Meyering  <meyering@lucent.com>
86377
86378         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86379         better with autoheader.
86380
86381 2000-12-24  Jim Meyering  <meyering@lucent.com>
86382
86383         * lib/hash.c (is_prime): Return explicit boolean values.
86384         (hash_get_first): Return NULL to appease Irix5.6's 89.
86385         Reported by Nelson Beebe.
86386
86387 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86388
86389         * lib/localcharset.c (locale_charset): Add support for Win32.
86390
86391 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86392
86393         * lib/physmem.h, lib/physmem.c: New files.
86394
86395         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86396         (noinst_HEADERS): Add physmem.h.
86397
86398         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86399         't' for compatibility with Solaris 8 sort.
86400
86401 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86402
86403         * lib/config.charset: Add support for BeOS.
86404
86405 2000-12-17  Jim Meyering  <meyering@lucent.com>
86406
86407         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86408         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86409
86410 2000-12-16  Jim Meyering  <meyering@lucent.com>
86411
86412         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86413         N and M) would have treated it like `chown N:N FILE'.
86414
86415         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86416
86417 2000-12-16  Jim Meyering  <meyering@lucent.com>
86418
86419         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86420         SHELLS_FILE to a file name that's useful on djgpp systems.
86421         Include stdlib.h.
86422         (ADDITIONAL_DEFAULT_SHELLS): Define.
86423         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86424         Based mostly on a patch from Prashant TR.
86425
86426 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86427
86428         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86429         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86430         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86431
86432 2000-12-08  Andreas Schwab  <schwab@suse.de>
86433
86434         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86435         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86436
86437 2000-12-07  Jim Meyering  <meyering@lucent.com>
86438
86439         * lib/stripslash.c (ISSLASH): Define.
86440         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86441         `/'.
86442         From Prashant TR.
86443
86444         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86445         (dir_name_r): Declare this function as static.
86446         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86447         manifest itself on a name containing a mix of slashes and
86448         backslashes.
86449         Make this function work with names starting with a DOS-style
86450         drive letter and colon prefix.
86451         (dir_name): Append `.' if necessary.
86452         Based mostly on patches from Prashant TR and Eli Zaretskii.
86453
86454         * lib/dirname.h (dir_name_r): Remove prototype.
86455
86456 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86457
86458         * m4/off_t-format.m4: Remove this file.
86459         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86460
86461 2000-12-06  Jim Meyering  <meyering@lucent.com>
86462
86463         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86464         replacement strtoull, we may well need the replacement strtoul, too.
86465         Check for declarations of strtoul and strtoull.
86466         Check for strtol.  Mainly as a cue to cause automake to include
86467         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86468         Check for limits.h -- strtol.c needs it.
86469
86470 2000-12-05  Jim Meyering  <meyering@lucent.com>
86471
86472         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86473
86474 2000-12-04  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86477         Also include memory.h, stdlib.h, unistd.h if appropriate.
86478         Reported by Andreas Jaeger (conflicting declaration of malloc).
86479
86480 2000-12-02  Jim Meyering  <meyering@lucent.com>
86481
86482         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86483         * m4/jm-macros.m4 (jm_MACROS): require it.
86484
86485 2000-12-02  Jim Meyering  <meyering@lucent.com>
86486
86487         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86488
86489 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86490
86491         * lib/memrchr.c: Include <config.h> before any system include file.
86492
86493 2000-11-30  Jim Meyering  <meyering@lucent.com>
86494
86495         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86496
86497 2000-11-30  Jim Meyering  <meyering@lucent.com>
86498
86499         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86500
86501 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86504
86505 2000-11-26  Jim Meyering  <meyering@lucent.com>
86506
86507         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86508
86509 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86510
86511         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86512         size of (size_t) -1; it's not portable.
86513
86514 2000-11-17  Jim Meyering  <meyering@lucent.com>
86515
86516         * lib/strstr.c: Update from GNU libc.
86517
86518 2000-11-17  Akim Demaille  <akim@epita.fr>
86519
86520         * lib/obstack.h: Formatting changes.
86521         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86522         prevent type checking.
86523         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86524         cast the value to (void *): assigning a `foo *' to a `void *'
86525         variable is valid.
86526         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86527
86528 2000-11-16  Jim Meyering  <meyering@lucent.com>
86529
86530         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86531
86532 2000-11-11  Jim Meyering  <meyering@lucent.com>
86533
86534         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86535
86536 2000-11-10  Jim Meyering  <meyering@lucent.com>
86537
86538         * lib/obstack.h: Update from GNU libc.
86539         * lib/obstack.c: Likewise.
86540
86541 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86542
86543         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86544
86545 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86546
86547         * lib/getusershell.c (setusershell): Use rewind rather than
86548         fseek/fseeko, to avoid configuration hassles with fseeko.
86549         Don't bother opening SHELLS_FILE if shellstream is NULL;
86550         it's not necessary.
86551
86552 2000-11-05  Jim Meyering  <meyering@lucent.com>
86553
86554         * lib/makepath.h (make_dir): Declare.
86555         * lib/makepath.c (make_dir): Remove `static' attribute.
86556         Tweak a comment.
86557
86558 2000-11-04  Jim Meyering  <meyering@lucent.com>
86559
86560         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86561
86562 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86563
86564         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86565         last one in a bucket, advance to the next bucket.
86566
86567 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86568
86569         * lib/fnmatch.c: Do not comment out all the code if we are using
86570         the GNU C library, because in some cases we are replacing buggy
86571         code in the GNU C library itself.
86572
86573 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86574
86575         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86576         (regex_compile): Catch bogus \(\1\).
86577
86578 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86579
86580         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86581         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86582         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86583
86584 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86585
86586         * lib/error.h, getline.h, modechange.h:
86587         Remove "2000" from Copyright line, as the file hasn't been
86588         changed this year other than in the copyright notice.
86589
86590         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86591         was changed this year.
86592
86593 2000-10-29  Jim Meyering  <meyering@lucent.com>
86594
86595         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86596         renaming.
86597         * m4/ls-mntd-fs.m4: Likewise
86598
86599 2000-10-29  Jim Meyering  <meyering@lucent.com>
86600
86601         * lib/xstat.in: Fix grammar in comment.
86602
86603 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86604
86605         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86606         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86607         doesn't define __restrict_arr.
86608
86609 2000-10-28  Jim Meyering  <meyering@lucent.com>
86610
86611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86612         (jm_PREREQ_MEMCHR): New function.
86613
86614 2000-10-28  Jim Meyering  <meyering@lucent.com>
86615
86616         * lib/memchr.c: Update from libc.
86617         Adjust for portability:
86618         [HAVE_STDLIB_H]: Include stdlib.h.
86619         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86620         Undef __memchr, too.
86621         [!weak_alias]: Define __memchr to memchr.
86622
86623         * lib/regex.c: Update from libc.
86624         * lib/regex.h: Likewise.
86625         * lib/getopt1.c: Likewise.
86626         * lib/memcmp.c: Likewise.
86627
86628         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86629         Avoid using fseek, when possible -- it's broken by design.
86630         Patch by Ulrich Drepper.
86631
86632 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86633
86634         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86635         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86636         Giving in to popular pressure to shut up the compiler with casts.
86637
86638 2000-10-26  Jim Meyering  <meyering@lucent.com>
86639
86640         * lib/strftime.c: Update from libc.
86641
86642 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86643
86644         * regex.c: More `unsigned char' -> `re_char' changes.
86645         Also change several `int' into `re_wchar_t'.
86646         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86647         (PUSH_FAILURE_POINTER): Don't cast any more.
86648         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86649         We want GCC to complain, since this piece of code makes
86650         re_match non-reentrant, which *should* be fixed.
86651         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86652         (EXTEND_BUFFER): Use RETALLOC.
86653         (SET_LIST_BIT): Don't cast.
86654         (re_wchar_t): New type.
86655         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86656         that those two functions will always properly return.
86657         (IMMEDIATE_QUIT_CHECK): Cast to void.
86658         (analyse_first): Use recursion rather than an explicit stack.
86659         (re_compile_fastmap): Can't fail anymore.
86660         (re_search_2): Don't check re_compile_fastmap for failure.
86661         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86662         Now also sets the new value (passed in a new argument).
86663         (re_match_2_internal): Use it.
86664         Also, use a new var `reg' of type size_t when looping through regs
86665         rather than reuse the inappropriate `mcnt'.
86666
86667 2000-10-25  Jim Meyering  <meyering@lucent.com>
86668
86669         * lib/obstack.c: Update from libc.
86670
86671 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86672
86673         * regex.c (regex_compile): Change the way of handling a range from
86674         a char less than 256 to a char not less than 256.
86675
86676 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86677
86678         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86679         NT-Emacs only.
86680         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86681         so that re_search functions only quit when callers expect them to.
86682
86683 2000-10-23  Jim Meyering  <meyering@lucent.com>
86684
86685         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86686         wrong.  That set_locale call must not have any side effects.
86687         From Paul Eggert.
86688
86689 2000-10-22  Jim Meyering  <meyering@lucent.com>
86690
86691         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86692         [CYCLIC]: Remove now-unused definition.
86693
86694         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86695         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86696         Suggestion from Ulrich Drepper.
86697
86698 2000-10-21  Jim Meyering  <meyering@lucent.com>
86699
86700         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86701         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86702         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86703
86704 2000-10-21  Jim Meyering  <meyering@lucent.com>
86705
86706         * lib/dirname.c (memrchr): Declare if necessary.
86707         (dir_name): Remove the restriction that there be no
86708         trailing slashes.  Now, this code skips past them, effectively
86709         ignoring them.
86710         [TEST_DIRNAME] (main): New unit tests.
86711
86712         * lib/memrchr.c: New file from GNU libc.
86713         Undef __memrchr, too.
86714         [!weak_alias]: Define __memrchr to memrchr.
86715         Guard weak_alias use with `#ifdef weak_alias'.
86716
86717 2000-10-21  Jim Meyering  <meyering@lucent.com>
86718
86719         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86720         (dir_name): Use dir_name_r.
86721         * lib/dirname.h (dir_name_r): Declare it.
86722
86723 2000-10-17  Jim Meyering  <meyering@lucent.com>
86724
86725         * lib/quote.h (PARAMS): Define and use.
86726         Reported by Akim Demaille.
86727
86728         * lib/getopt.c: Update from libc.
86729
86730 2000-10-16  Jim Meyering  <meyering@lucent.com>
86731
86732         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86733         setlocale.
86734         From Jan Fedak.
86735
86736 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86737
86738         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86739
86740 2000-09-25  Jim Meyering  <meyering@lucent.com>
86741
86742         * lib/md5.h (rol): Define (from GnuPG).
86743
86744         * lib/sha.c: Give credit (GnuPG) where due.
86745         (M): Use rol rather than open-coding it.
86746         Add a FIXME comment.
86747
86748 2000-09-21  Jim Meyering  <meyering@lucent.com>
86749
86750         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86751         Reported by Michael Stone.
86752
86753 2000-09-20  Jim Meyering  <meyering@lucent.com>
86754
86755         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86756         (noinst_HEADERS): Add sha.h.
86757         Based on code from Scott G. Miller and from GnuPG.
86758
86759 2000-09-18  Jim Meyering  <meyering@lucent.com>
86760
86761         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86762         LIBS. Otherwise, everyone ends up linking with -lelf for some
86763         configurations.
86764         Reported by Mike Stone.
86765
86766 2000-09-15  Jim Meyering  <meyering@lucent.com>
86767
86768         * lib/regex.c: Update from libc.
86769
86770 2000-09-10  Jim Meyering  <meyering@lucent.com>
86771
86772         * lib/getopt.c (_getopt_internal): Update from glibc.
86773
86774 2000-09-09  Jim Meyering  <meyering@lucent.com>
86775
86776         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86777         think it should be used as a general replacement for isascii.
86778         * lib/fnmatch.c: Likewise.
86779         * lib/mbswidth.c: Likewise
86780         * lib/regex.c: Likewise.
86781
86782         Don't use atoi.
86783         * lib/userspec.c: Include sys/param.h and limits.h.
86784         Include xstrtol.h.
86785         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86786         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86787         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86788         UID, GID.  Check range.
86789
86790 2000-09-06  Jim Meyering  <meyering@lucent.com>
86791
86792         * lib/getopt.c (_getopt_internal): Update from glibc.
86793
86794 2000-08-30  Jim Meyering  <meyering@lucent.com>
86795
86796         * lib/strftime.c: Merge in changes from GNU libc.
86797
86798 2000-08-26  Jim Meyering  <meyering@lucent.com>
86799
86800         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86801         * m4/fpending.m4: New file.
86802
86803 2000-08-26  Jim Meyering  <meyering@lucent.com>
86804
86805         * lib/closeout.c: Include "__fpending.h".
86806         (close_stdout_status): Return right away if there's nothing to flush.
86807
86808         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86809         * lib/__fpending.c: New file.
86810         * lib/__fpending.h: New file.
86811
86812 2000-08-20  Jim Meyering  <meyering@lucent.com>
86813
86814         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86815         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86816         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86817
86818 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86819
86820         Improve fileutils installation on systems where running
86821         programs (like install) can't be unlinked.
86822         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86823         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86824
86825 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86826
86827         Standardize on "memory exhausted" instead of "Memory exhausted"
86828         or "virtual memory exhausted".
86829         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86830         "virtual memory exhausted".
86831         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86832         our own message.
86833         * lib/userspec.c (parse_user_spec): Likewise.
86834         * lib/bumpalloc.h: comment fix
86835         * lib/same.c, userspec.c: Include xalloc.h.
86836
86837         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86838         not char *const and pointing to a constant array.
86839         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86840         (xrealloc): Comment fix.
86841
86842         * lib/userspec.c (parse_user_spec):
86843         Don't translate a message until just before returning,
86844         to avoid unnecessary translation.
86845
86846 2000-08-07  Jim Meyering  <meyering@lucent.com>
86847
86848         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86849         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86850         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86851         getgroups.c, gethostname.c, getopt.h, group-member.c,
86852         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86853         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86854         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86855         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86856         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86857         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86858         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86859         yesno.c: Back out Copyright date changes for each file with no change
86860         this year.  This eases coordination with other programs using the same
86861         source code modules.  From Paul Eggert.
86862
86863 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86864
86865         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86866         not char, for compatibility with glibc 2.1.3 strftime.c.
86867
86868 2000-08-03  Greg McGary  <greg@mcgary.org>
86869
86870         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86871         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86872         (EXTEND_BUFFER): Use them.
86873
86874 2000-08-01  Jim Meyering  <meyering@lucent.com>
86875
86876         * lib/dirname.c (ISSLASH): Define.
86877         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86878         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86879         both `\' and `/' may be use as path separators.
86880         Based on a patch from Prashant TR.
86881
86882 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86883
86884         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86885         slot vector a constant, since it might get modified.
86886
86887 2000-07-31  Jim Meyering  <meyering@lucent.com>
86888
86889         * lib/xmalloc.c: Use `virtual memory exhausted', not
86890         `Memory exhausted'.
86891         * lib/obstack.c (print_and_abort): Likewise.
86892
86893 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86894
86895         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86896         buffer, so that the caller can always quote one small
86897         component of a "memory exhausted" message in slot 0.
86898         From a suggestion by Jim Meyering.
86899
86900 2000-07-30  Jim Meyering  <meyering@lucent.com>
86901
86902         * lib/makepath.c (make_path): Quote the other instance, too.
86903
86904         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86905         (STATIC_BUF_SIZE): Define.
86906         (quotearg_n_options): Use only statically allocated storage when
86907         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86908         than STATIC_BUF_SIZE.
86909
86910 2000-07-29  Jim Meyering  <meyering@lucent.com>
86911
86912         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86913         * lib/dirname.c (dir_name): Likewise.
86914
86915         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86916         `/'.
86917
86918         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86919         (dir_name): Assert that there are no trailing slashes.
86920
86921 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86922
86923         * lib/mbswidth.h (mbswidth): Add a flags argument.
86924         (mbswidth): New declaration.
86925         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86926         * lib/mbswidth.c (mbswidth): Add a flags argument.
86927         (mbsnwidth): New function.
86928
86929 2000-07-24  Jim Meyering  <meyering@lucent.com>
86930
86931         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86932
86933 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86934
86935         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86936
86937 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86938
86939         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86940         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86941         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86942         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86943         invoke multibyte primitives.
86944
86945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86946
86947         * lib/quotearg.c:
86948         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86949         so that mbstate_t is always defined.
86950
86951         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86952         be 1 in at least one GCC installation, and this configuration
86953         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86954         performance on hosts that have mbrtowc but have only unibyte
86955         locales, but I assume these hosts are rare.
86956
86957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86958
86959         * lib/mbswidth.c (_XOPEN_SOURCE):
86960         Don't define; this causes problems on Solaris 7.
86961         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86962
86963 2000-07-23  Jim Meyering  <meyering@lucent.com>
86964
86965         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86966         too: getgrgid, getpwuid, getuid.
86967
86968 2000-07-23  Jim Meyering  <meyering@lucent.com>
86969
86970         * lib/basename.c (base_name): Add an assertion.
86971
86972 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86973
86974         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86975         shadow its mbsinit function.
86976
86977 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86978
86979         * lib/mbswidth.h: New file.
86980         * lib/mbswidth.c: New file.
86981         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86982         (noinst_HEADERS): Add mbswidth.h.
86983
86984 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86985
86986         * lib/config.charset: Add support for FreeBSD. Improve support for
86987         HP-UX and IRIX 6.
86988
86989 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86990
86991         * m4/mbswidth.m4: New file.
86992         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86993
86994 2000-07-15  Jim Meyering  <meyering@lucent.com>
86995
86996         * lib/makepath.c: Include quote.h.
86997         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86998         corresponding argument in a `quote (...)' call.
86999         Give better diagnostics.
87000
87001         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87002         (noinst_HEADERS): Add quote.h.
87003
87004         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87005         from tar's src/misc.c.
87006         * lib/quote.h: New file.  Prototypes for same.
87007
87008 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87009
87010         From a suggestion by Bruno Haible.
87011         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87012         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87013         to decide whether to define the BeOS workaround macro;
87014         this adjusts to the change to AC_MBSTATE_T.
87015
87016 2000-07-14  Jim Meyering  <meyering@lucent.com>
87017
87018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87019         jm_AC_TYPE_UINTMAX_T.
87020
87021 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87022
87023         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87024
87025         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87026         quotearg_buffer_restyled): Add support for
87027         clocale_quoting_style.  Undo previous change to
87028         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87029         and "{RIGHT QUOTATION MARK}" msgids.
87030
87031 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87032
87033         From a suggestion by Bruno Haible.
87034         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87035         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87036         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87037         and mbstate_t, to a single-part test that simply defines mbstate_t.
87038         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87039         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87040
87041 2000-07-10  Jim Meyering  <meyering@lucent.com>
87042
87043         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87044
87045         * m4/gnu-source.m4: Output to confdefs.h directly.
87046         Suggestion from Akim Demaille.
87047
87048 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87049
87050         The old behavior of quoting `like this' doesn't look good with
87051         newer, ISO-style fonts.  See:
87052         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87053
87054         Instead, quote "like this" by default.  Let the translator
87055         tailor the locale-specific quoting behavior by providing
87056         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87057
87058         * lib/quotearg.c (N_): New macro.
87059         (gettext_default): New function.
87060         (quotearg_buffer_restyled): Use
87061         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87062         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87063
87064 2000-07-09  Jim Meyering  <meyering@lucent.com>
87065
87066         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87067         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87068
87069         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87071
87072 2000-07-09  Jim Meyering  <meyering@lucent.com>
87073
87074         * lib/Most files: Update copyright dates to include 2000.
87075
87076 2000-07-08  Jim Meyering  <meyering@lucent.com>
87077
87078         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87079         if not defined.
87080         (xgethostname): Remove now-unnecessary #ifdef.
87081         Move declaration of `err' into loop where it's used.
87082
87083 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87084         and Bruno Haible  <haible@clisp.cons.org>
87085
87086         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87087         only if the test for an object-type mbstate_t fails.  This
87088         prevents us from mistakenly reporting that mbstate_t is a
87089         system object type after we "#define mbstate_t int" to work
87090         around its lack.
87091
87092 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87093         and Bruno Haible  <haible@clisp.cons.org>
87094
87095         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87096
87097 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87098
87099         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87100         to strerror_r.
87101         Include <ctype.h> for use of isalpha.
87102
87103 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87104
87105         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87106         by allocating a larger buffer. Test the gethostname return value for
87107         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87108         returns an error and ENAMETOOLONG isn't defined.
87109
87110 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87111
87112         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87113         dimension.
87114
87115 2000-07-04  Jim Meyering  <meyering@lucent.com>
87116
87117         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87118         of the deprecated AC_CHECKING.
87119
87120 2000-07-04  Jim Meyering  <meyering@lucent.com>
87121
87122         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87123         Reported by Bruno Haible.
87124
87125 2000-07-04  Jim Meyering  <meyering@lucent.com>
87126
87127         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87128         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87129         lacks mbrtowc.
87130
87131 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87132
87133         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87134         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87135
87136 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87137         and Bruno Haible  <haible@clisp.cons.org>
87138
87139         * lib/quotearg.c (mbrtowc):
87140         Assign to *pwc, and return 1 only if result is nonzero.
87141         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87142
87143 2000-07-03  Jim Meyering  <meyering@lucent.com>
87144
87145         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87146
87147 2000-07-03  Jim Meyering  <meyering@lucent.com>
87148
87149         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87150         This is necessary to get a definition of e.g., UTMP_FILE on
87151         HP-UX 10.20.
87152         From Bob Proulx.
87153
87154 2000-07-02  Jim Meyering  <meyering@lucent.com>
87155
87156         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87157
87158         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87159         AC_LIBOBJ(function_name).
87160         * m4/chown.m4: Likewise.
87161         * m4/fnmatch.m4: Likewise.
87162         * m4/ftruncate.m4: Likewise.
87163         * m4/getgroups.m4: Likewise.
87164         * m4/getline.m4: Likewise.
87165         * m4/group-member.m4: Likewise.
87166         * m4/jm-macros.m4: Likewise.
87167         * m4/lstat.m4: Likewise.
87168         * m4/malloc.m4: Likewise.
87169         * m4/memcmp.m4: Likewise.
87170         * m4/nanosleep.m4: Likewise.
87171         * m4/putenv.m4: Likewise.
87172         * m4/realloc.m4: Likewise.
87173         * m4/regex.m4: Likewise.
87174         * m4/stat.m4: Likewise.
87175         * m4/strftime.m4: Likewise.
87176
87177 2000-07-02  Jim Meyering  <meyering@lucent.com>
87178
87179         * lib/quotearg.c (mbstate_t): Don't define here.
87180
87181 2000-07-02  Jim Meyering  <meyering@lucent.com>
87182
87183         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87184
87185 2000-07-01  Jim Meyering  <meyering@lucent.com>
87186
87187         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87188
87189 2000-07-01  Jim Meyering  <meyering@lucent.com>
87190
87191         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87192         problem.
87193
87194 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87195
87196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87197         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87198
87199 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87200
87201         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87202         per change in ../m4/ls-mntd-fs.m4.
87203         (read_filesystem_list): Ignore symbolic links.
87204
87205 2000-06-29  Jim Meyering  <meyering@lucent.com>
87206
87207         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87208         for declaration of strcmp.
87209
87210         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87211
87212         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87213         Avoid warning by casting result to `char *' to remove `const'.
87214
87215 2000-06-28  Jim Meyering  <meyering@lucent.com>
87216
87217         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87218         included by quotearg.c, for which we perform this test.  From
87219         Bruno Haible.
87220
87221 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87222
87223         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87224         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87225         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87226
87227 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87228
87229         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87230
87231 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87232
87233         savedir now sets errno on failure and invokes xmalloc to get memory.
87234         Fix a couple of other minor bugs while we're at it.
87235
87236         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87237         (NAMLEN): Remove macro.
87238         (malloc, realloc): Remove decls.
87239         (stpcpy): Likewise.
87240         ("xalloc.h"): Include.
87241         (NAME_SIZE_DEFAULT): New macro.
87242         (savedir): Use xmalloc / xrealloc to allocate memory.
87243         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87244         Skip "" directory entries.
87245         Use strlen to calculate directory entry length, since the old method
87246         is rarely used these days and isn't worth supporting.
87247         Don't use a pointer after freeing it.
87248         Check for integer overflow when calculating allocation size.
87249         Use memcpy to copy entries, instead of stpcpy.
87250         Set errno properly when returning NULL.
87251         Check for readdir error.
87252
87253 2000-06-26  Jim Meyering  <meyering@lucent.com>
87254
87255         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87256
87257 2000-06-25  Jim Meyering  <meyering@lucent.com>
87258
87259         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87260         Linux header bug when _XOPEN_SOURCE is defined to 500.
87261
87262 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87263
87264         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87265         deficiency.
87266
87267 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87268
87269         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87270         Include xalloc.h.
87271         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87272
87273 2000-06-24  Jim Meyering  <meyering@lucent.com>
87274
87275         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87276         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87277         for which strerror does return char*, but which lacks a conveniently
87278         accessible declaration of the function.  If the compile-test says
87279         strerror_r doesn't work, then resort to a `run'-test that works on
87280         BeOS and segfaults on DEC Unix.
87281
87282 2000-06-24  Jim Meyering  <meyering@lucent.com>
87283
87284         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87285
87286 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87287
87288         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87289         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87290
87291 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87292
87293         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87294         (mbrtowc, mbstate_t): Define substitutes if
87295         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87296         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87297         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87298
87299 2000-06-23  Jim Meyering  <meyering@lucent.com>
87300
87301         * m4/afs.m4: Add missing AC_MSG_RESULT.
87302         Reported by Bruno Haible.
87303
87304         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87305         Suggestion from Bruno Haible.
87306
87307 2000-06-23  Jim Meyering  <meyering@lucent.com>
87308
87309         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87310
87311 2000-06-21  Jim Meyering  <meyering@lucent.com>
87312
87313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87314
87315 2000-06-21  Jim Meyering  <meyering@lucent.com>
87316
87317         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87318         (noinst_HEADERS): Add getstr.h.
87319
87320         * lib/getline.c (getstr): Move into a separate file.
87321         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87322         the following changes: new parameter, delim2; both delim[12]
87323         parameters have type `int', not `char'.  The latter would lose
87324         with 8-bit delimiters.
87325         * lib/getstr.h: New file.
87326
87327 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87328
87329         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87330         than 1024, return a memory chunk of least possible size, instead
87331         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87332         Use free/xmalloc instead of xrealloc to avoid copying for very long
87333         paths.
87334
87335 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87336
87337         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87338         the empty string.
87339
87340 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87341
87342         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87343         address, not strdup.  Include <stdlib.h> and don't declare free().
87344
87345 2000-06-19  Jim Meyering  <meyering@lucent.com>
87346
87347         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87348
87349 2000-06-18  Jim Meyering  <meyering@lucent.com>
87350
87351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87352
87353         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87354         `checking whether...' message to be consistent with that of the
87355         lstat test.
87356
87357 2000-06-18  Jim Meyering  <meyering@lucent.com>
87358
87359         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87360         Besides, these days every porting target provides a mkdir function.
87361
87362         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87363         needed. (this snippet comes from src/system.h).
87364
87365 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87366
87367         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87368
87369 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87370
87371         * lib/human.c (adjust_value): New function.
87372         (human_readable_inexact): Apply rounding style even when
87373         printing approximate values.
87374
87375 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87376
87377         * lib/human.c (human_readable_inexact): Allow an input block
87378         size that is not a multiple of the output block size, and vice versa.
87379         Reported by Piergiorgio Sartor.
87380
87381 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87382
87383         * lib/getdate.y (get_date): Apply relative times after time
87384         zone indicator, not before.  Reported by Todd A. Jacobs.
87385
87386 2000-06-13  Jim Meyering  <meyering@lucent.com>
87387
87388         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87389
87390         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87391
87392 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87393
87394         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87395
87396 2000-06-12  Jim Meyering  <meyering@lucent.com>
87397
87398         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87399         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87400         optional argument.
87401         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87402         the optional argument, `lib'.
87403
87404 2000-06-08  Jim Meyering  <meyering@lucent.com>
87405
87406         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87407
87408 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87409
87410         Rewrite largefile configuration so that we don't need to run
87411         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87412         AC_CANONICAL_HOST in configure.in -- jmm]
87413
87414         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87415         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87416         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87417         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87418         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87419         All uses changed.
87420         Instead of inspecting the output of getconf, try to compile the
87421         test program without and with the macro definition.
87422         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87423         for getconf.  Instead, check for the needed flags by compiling
87424         test programs.
87425
87426 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87427
87428         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87429
87430 2000-06-04  Jim Meyering  <meyering@lucent.com>
87431
87432         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87433         SunOS 4.1.4 for which gid_t is an unsigned type.
87434
87435 2000-06-03  Jim Meyering  <meyering@lucent.com>
87436
87437         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87438         now that autoconf requires that.
87439
87440         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87441         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87442         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87443
87444 2000-06-03  Jim Meyering  <meyering@lucent.com>
87445
87446         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87447
87448 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87449
87450         * m4/glibc21.m4: New file.
87451         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87452
87453 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87454
87455         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87456         newer, don't install charset.alias.
87457         * lib/config.charset: Change the Linux/glibc rules so they become empty
87458         on glibc-2.1 or newer.
87459
87460 2000-06-02  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/mountlist.c: Back out last change.  Instead, do this...
87463         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87464         me_dummy member using the same `ignore'-testing code.
87465         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87466         fs_type strings.
87467         From Mark D. Roth.
87468
87469 2000-05-29  Jim Meyering  <meyering@lucent.com>
87470
87471         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87472         mounts with the `ignore' attribute.  Based on a patch from
87473         Mark D. Roth.
87474
87475 2000-05-28  Jim Meyering  <meyering@lucent.com>
87476
87477         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87478         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87479         * m4/stat.m4: Likewise.
87480         * m4/lstat.m4: Likewise.
87481         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87482
87483         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87484         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87485
87486 2000-05-26  Jim Meyering  <meyering@lucent.com>
87487
87488         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87489
87490 2000-05-24  Jim Meyering  <meyering@lucent.com>
87491
87492         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87493         autoconf requires that.
87494         * m4/lib-check.m4: Likewise.
87495         * m4/jm-macros.m4: Likewise.
87496         * m4/strftime.m4: Likewise.
87497
87498         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87499         AC_CHECK_DECLS, now that autoconf requires that.
87500
87501 2000-05-22  Jim Meyering  <meyering@lucent.com>
87502
87503         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87504         * m4/lstat.m4: Likewise.
87505
87506 2000-05-22  Jim Meyering  <meyering@lucent.com>
87507
87508         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87509
87510 2000-05-20  Jim Meyering  <meyering@lucent.com>
87511
87512         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87513         (jm_PREREQ): Use it.
87514
87515 2000-05-18  Jim Meyering  <meyering@lucent.com>
87516
87517         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87518         back, too, since it may have been modified by allocate_entry.
87519         (hash_delete): Rewrite to use neither the assignment operator
87520         nor the comma operator in an if-expression.
87521
87522 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87523
87524         * lib/closeout.c:
87525         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87526         Remove; no longer needed.
87527         "quotearg.h": Add include.
87528         (file_name): Do not bother to explicitly initialize to NULL; it's less
87529         efficient on some hosts.
87530         (close_stdout_status): Remove test as to whether stdout was already
87531         closed; it breaks for the case "echo x | sort >&-".
87532         Quote file name colons.
87533         Do not assume that _("write error") lacks format strings.
87534
87535 2000-05-15  Jim Meyering  <meyering@lucent.com>
87536
87537         * lib/version-etc.c (version_etc_copyright): Update the copyright
87538         string used in all --version output.
87539
87540 2000-05-14  Jim Meyering  <meyering@lucent.com>
87541
87542         * lib/closeout.c (close_stdout_set_file_name): New function.
87543         (close_stdout_status): Use new file-scoped global.
87544         Return right away if fstat says the stdout file descriptor is invalid.
87545         * lib/closeout.h (close_stdout_set_file_name): Declare.
87546
87547 2000-05-10  Jim Meyering  <meyering@lucent.com>
87548
87549         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87550         (close_stdout_set_status): New function.
87551         * lib/closeout.h (close_stdout_set_status): Declare.
87552
87553 2000-05-09  Jim Meyering  <meyering@lucent.com>
87554
87555         * m4/gettext.m4: Rename this...
87556         * m4/libintl.m4: ...to this.
87557
87558 2000-05-08  Jim Meyering  <meyering@lucent.com>
87559
87560         * lib/long-options.c: Don't include closeout.h.
87561         (parse_long_options): Don't call close_stdout for --version.
87562
87563 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87564
87565         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87566         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87567         2.1.3 bug.  This avoids a clash when files like regex.c define
87568         _GNU_SOURCE.
87569
87570 2000-05-06  Jim Meyering  <meyering@lucent.com>
87571
87572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87573         (AC_REPLACE_FUNCS): Add strnlen.
87574
87575         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87576         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87577
87578         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87579         AC_SEARCH_LIBS call for nanosleep.
87580         (LIB_NANOSLEEP): Set and AC_SUBST.
87581
87582 2000-05-06  Jim Meyering  <meyering@lucent.com>
87583
87584         * lib/strnlen.c: Undefine __strnlen and strnlen.
87585         [!weak_alias]: Define __strnlen to strnlen.
87586
87587         * lib/atexit.c: New file, from libiberty.
87588
87589 2000-05-06  Jim Meyering  <meyering@lucent.com>
87590
87591         * lib/closeout.c (close_stdout_status): Also check for errors on the
87592         stderr stream.
87593
87594 2000-05-05  Jim Meyering  <meyering@lucent.com>
87595
87596         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87597         AC_SEARCH_LIBS call for clock_gettime.
87598         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87599
87600         * m4/search-libs.m4: Update from autoconf.
87601
87602         su doesn't work on Solaris 2.6.
87603         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87604         <shadow.h>.  Reported by Dragos Harabor.
87605
87606 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87607
87608         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87609         memcpy instead of xmalloc, xrealloc, path_concat.
87610         (locale_charset): Treat empty environment variables as absent.
87611         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87612
87613 2000-05-04  Jim Meyering  <meyering@lucent.com>
87614
87615         * lib/getopt.c: Update from glibc.
87616         * lib/obstack.c: Likewise.
87617         * lib/obstack.h: Likewise.
87618         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87619         file
87620
87621         * lib/regex.h: Likewise.
87622         * lib/strndup.c: Likewise.
87623         * lib/strnlen.c: New file, from glibc.
87624
87625 2000-05-03  Jim Meyering  <meyering@lucent.com>
87626
87627         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87628
87629 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87630
87631         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87632         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87633         compile-time test, rather than inspecting host and OS, to
87634         decide whether to define _LARGEFILE_SOURCE.
87635
87636 2000-05-01  Jim Meyering  <meyering@lucent.com>
87637
87638         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87639
87640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87641         Based on a patch from Bruno Haible.
87642
87643 2000-05-01  Jim Meyering  <meyering@lucent.com>
87644
87645         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87646
87647 2000-04-29  Jim Meyering  <meyering@lucent.com>
87648
87649         * lib/path-concat.c: Declare strdup only if it's not defined.
87650         * lib/canon-host.c: Likewise.
87651
87652 2000-04-28  Jim Meyering  <meyering@lucent.com>
87653
87654         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87655         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87656         is included first, then limits.h is included by locale.h by libintl.h.
87657         From John David Anglin.
87658
87659 2000-04-25  Jim Meyering  <meyering@lucent.com>
87660
87661         * lib/makepath.c (S_IRWXUGO): Define.
87662         (make_path): Always perform explicit chmod if MODE specifies any
87663         of the `special' permission bits.  Prompted by a bug report against
87664         install from Mate Wierdl and Joost van Baal.
87665
87666 2000-04-18  Jim Meyering  <meyering@lucent.com>
87667
87668         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87669         (jm_PREREQ): Use it.
87670
87671 2000-04-18  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/README: New file.
87674
87675         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87676         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87677
87678 2000-04-17  Jim Meyering  <meyering@lucent.com>
87679
87680         Get it right :-)
87681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87682         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87683         Suggestion from Akim Demaille.
87684
87685 2000-04-17  Jim Meyering  <meyering@lucent.com>
87686
87687         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87688         the definition of it to rpl_strftime also defined-away the system's
87689         declaration.
87690
87691 2000-04-15  Jim Meyering  <meyering@lucent.com>
87692
87693         Use `C' to denote so-called `contiguous' files, the same way
87694         that tar does.
87695         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87696         (ftypelet): Use S_ISCTG.
87697         From Michael Deutschmann.
87698
87699 2000-04-14  Jim Meyering  <meyering@lucent.com>
87700
87701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87702         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87703         clobbered.
87704
87705 2000-04-14  Jim Meyering  <meyering@lucent.com>
87706
87707         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87708
87709 2000-04-13  Jim Meyering  <meyering@lucent.com>
87710
87711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87712         AH_VERBATIM to insert required #ifndef into config.h.in.
87713         Suggestion from Akim Demaille.
87714
87715 2000-04-12  Jim Meyering  <meyering@lucent.com>
87716
87717         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87718         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87719         Christian Krackowizer.
87720
87721         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87722         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87723         (AC_SYS_LARGEFILE): Require.
87724         (AM_C_PROTOTYPES): Require.
87725
87726 2000-04-08  Jim Meyering  <meyering@lucent.com>
87727
87728         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87729         names don't conflict.  Reported by Eli Zaretskii.
87730
87731 2000-04-07  Jim Meyering  <meyering@lucent.com>
87732
87733         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87734         sys/types.h, to work around system header problems on AIX 3.2.5.
87735         From Bruno Haible.
87736
87737 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87738
87739         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87740         bug.  Deal with the different error behavior of Irix iconv.
87741
87742 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87743
87744         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87745         IRIX if the installer said otherwise.
87746
87747 2000-04-05  Jim Meyering  <meyering@lucent.com>
87748
87749         Portability tweaks required for ultrix4.3.
87750         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87751         (jm_CHECK_DECLS): Add getutent to the list of functions.
87752         (_jm_DECL_HEADERS): Add utmpx.h.
87753         From John David Anglin.
87754
87755         * m4/strftime.m4: Back out the 2000-04-02 change.
87756         Instead of that change, simply undefine putenv in the test program.
87757
87758 2000-04-05  Jim Meyering  <meyering@lucent.com>
87759
87760         Portability tweaks required for ultrix4.3.
87761         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87762         getutent.
87763         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87764         * lib/canon-host.c: Declare strdup.
87765         * lib/path-concat.c: Likewise.
87766         From John David Anglin.
87767
87768 2000-04-04  Jim Meyering  <meyering@lucent.com>
87769
87770         Be more DOS 8.3-friendly.
87771         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87772         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87773         * lib/Makefile.am: Reflect renaming.
87774         Reported by Eli Zaretskii.
87775
87776         Use a temporary file name that won't clash with `charset.alias'
87777         in the DOS 8.3 name space.
87778         * lib/Makefile.am (charset_tmp): Define.
87779         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87780         (uninstall-local): Likewise.
87781         Reported by Eli Zaretskii.
87782
87783 2000-04-03  Jim Meyering  <meyering@lucent.com>
87784
87785         * m4/gettext.m4: Fix typo in comment.
87786
87787         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87788         textutils/configure.in).  Suggestion from Paul Eggert.
87789         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87790
87791 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87792
87793         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87794         variable in the shell rather than using putenv, which isn't
87795         portable.  This avoids the configure-time inter-test dependency
87796         on the potentially-renamed putenv function.
87797
87798 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87799
87800         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87801         before checking struct stat.st_blksize, so that
87802         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87803
87804 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87805
87806         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87807         since strftime.c uses HAVE_STRFTIME to decide whether to use
87808         the underlying strftime.
87809
87810 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87811
87812         * lib/time/strftime.c (my_strftime): Make sure we call the system
87813         strftime, not ourselves, when invoking the underlying strftime.
87814
87815 2000-03-24  Jim Meyering  <meyering@lucent.com>
87816
87817         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87818         (charset_alias): Define.
87819         (install-exec-local): Factor out common code.
87820         (uninstall-local): Split lines longer than 80.
87821         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87822         (SUFFIXES): Define.
87823         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87824         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87825
87826 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87827
87828         * lib/config.charset: Output a line containing "Packages using this
87829         file".
87830         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87831         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87832         ref-del.sed): New rules.
87833
87834 2000-03-17  Jim Meyering  <meyering@lucent.com>
87835
87836         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87837         Otherwise, include <strings.h>
87838
87839 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87840
87841         * lib/unicodeio.c (utf8_wctomb): New function.
87842         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87843         format instead of in UCS-4 with platform dependent endianness.
87844
87845 2000-03-10  Jim Meyering  <meyering@lucent.com>
87846
87847         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87848         From Marco Franzen.
87849
87850 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87851
87852         * lib/savedir.c (savedir): Work even if directory size is
87853         negative; this can happen with some screwy NFS configurations.
87854
87855 2000-03-06  Jim Meyering  <meyering@lucent.com>
87856
87857         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87858         if it's NULL (because we ran out of memory).  From Bruno Haible.
87859
87860 2000-03-05  Jim Meyering  <meyering@lucent.com>
87861
87862         * lib/localcharset.c ("path-concat.h"): Include.
87863         (get_charset_aliases): Use path_concat instead of ANSI string
87864         concatenation.
87865
87866         * lib/unicodeio.h (PARAMS): Define.
87867         Use it to guard prototype.
87868
87869 2000-03-04  Jim Meyering  <meyering@lucent.com>
87870
87871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87872         for lib/localcharset.c.
87873
87874 2000-03-04  Jim Meyering  <meyering@lucent.com>
87875
87876         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87877         installing into it.
87878         (uninstall-local): Uncomment this rule so `make distcheck' works
87879         once again.
87880
87881         * lib/unicodeio.c (<errno.h>): Include it.
87882         (errno): Declare if not defined.
87883
87884         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87885
87886         * lib/config.charset: New version, incorporating remarks from a linux
87887         i18n mailing list.  From Bruno Haible.
87888
87889 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87890
87891         * m4/codeset.m4: New file.
87892         * m4/iconv.m4: New file.
87893         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87894
87895 2000-03-03  Jim Meyering  <meyering@lucent.com>
87896
87897         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87898
87899 2000-03-02  Jim Meyering  <meyering@lucent.com>
87900
87901         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87902         the messages come out on separate lines.
87903
87904         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87905         rather than jm_CHECK_DECLARATIONS.
87906         * m4/decl.m4: Remove now-unused file.
87907
87908         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87909         geteuid.
87910
87911 2000-03-02  Jim Meyering  <meyering@lucent.com>
87912
87913         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87914
87915 2000-03-01  Jim Meyering  <meyering@lucent.com>
87916
87917         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87918         * lib/unicodeio.c: Likewise.
87919
87920 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87921
87922         * lib/config.charset: New file.
87923         * lib/localcharset.c: New file.
87924         * lib/unicodeio.h, lib/unicodeio.c: New files.
87925         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87926         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87927         (noinst_HEADERS): Add unicodeio.h.
87928         (all-local, install-exec-local, charset.alias): New targets.
87929
87930 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87931
87932         * lib/quotearg.c (ALERT_CHAR): New macro.
87933         (quotearg_buffer_restyled): Use it.
87934
87935 2000-02-27  Jim Meyering  <meyering@lucent.com>
87936
87937         * m4/check-decl.m4: Add getenv to the list.
87938
87939 2000-02-27  Jim Meyering  <meyering@lucent.com>
87940
87941         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87942         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87943
87944         * lib/backupfile.c: Guard inclusion of stdlib.h with
87945         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87946         Declare malloc if needed.
87947
87948         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87949         `#ifndef HAVE_DECL..'
87950         now that autoconf always defines the HAVE_DECL_ symbols.
87951         * lib/human.c: Likewise.
87952         * lib/same.c: Likewise.
87953         * lib/strtoumax.c: Likewise.
87954
87955         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87956         declaration check was not run.
87957         * lib/hash.c: Likewise.
87958         * lib/human.c: Likewise.
87959         * lib/same.c: Likewise.
87960         * lib/strtoumax.c: Likewise.
87961
87962         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87963         `.', then first look up the entire `.'-containing string as a login
87964         name.
87965
87966 2000-02-23  Jim Meyering  <meyering@lucent.com>
87967
87968         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87969         in place of my hack.
87970
87971 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87972
87973         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87974         (textint): New typedef.
87975         (parser_control): Member year changed from int to textint.
87976         All uses changed.
87977         (YYSTYPE): Removed; replaced by %union with int and textint members.
87978         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87979         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87980         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87981         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87982         (date, number, to_year): Use width of number in digits, not its value,
87983         to determine whether it's a 2-digit year, or a 2-digit time.
87984         (yylex): Store number of digits of numeric tokens.
87985         Reported by John Kendall.
87986
87987         (parser_control): Changed from struct parser_control to typedef (for
87988         consistency).  All uses changed.
87989
87990         (tID): Removed; not used.
87991         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87992
87993 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87994
87995         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87996         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87997
87998 2000-02-12  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/userspec.c (ISDIGIT): Define it.
88001         (isdigit): Remove definition.
88002         (is_number): Use ISDIGIT, not isdigit.
88003         <libintl.h>: Include.
88004         (_ and N_): Define.
88005         (parse_user_spec): Mark translatable strings.
88006
88007 2000-02-10  Jim Meyering  <meyering@lucent.com>
88008
88009         With these changes, nanosleep.[ch] are finally enough like the other
88010         lib/* replacement files to compile on a few more losing systems.
88011
88012         * lib/nanosleep.h: Don't include config.h.
88013         Remove prototype from declaration of nanosleep.
88014         (PARAMS): Remove now-unneeded definition.
88015         * lib/nanosleep.c: #undef nanosleep.
88016         (rpl_nanosleep): Rename from nanosleep.
88017
88018 2000-02-10  Jim Meyering  <meyering@lucent.com>
88019
88020         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88021         gnu_nanosleep to rpl_nanosleep.
88022
88023 2000-02-09  Jim Meyering  <meyering@lucent.com>
88024
88025         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88026         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88027
88028 2000-02-08  Akim Demaille  <akim@epita.fr>
88029
88030         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88031         `[' and `]' and remove uses of `changequote'.
88032         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88033         (AC_SYS_LARGEFILE): Likewise.
88034         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88035         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88036         of changequote.
88037         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88038         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88039         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88040         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88041
88042 2000-02-05  Jim Meyering  <meyering@lucent.com>
88043
88044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88045         Remove explicit use of AC_HEADER_TIME.  It is required by
88046         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88047         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88048         in autoconf whereby the expansion of the latter ended up preceding
88049         the expansion of its prerequisite, AC_HEADER_TIME.
88050         Reported by Volker Borchert.
88051
88052 2000-02-03  Jim Meyering  <meyering@lucent.com>
88053
88054         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88055
88056 2000-02-03  Jim Meyering  <meyering@lucent.com>
88057
88058         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88059         rather than with `#if HAVE_UTMPNAME'.
88060
88061 2000-02-02  Jim Meyering  <meyering@lucent.com>
88062
88063         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88064         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88065         Reported by Eli Zaretskii.
88066
88067 2000-02-01  Jim Meyering  <meyering@lucent.com>
88068
88069         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88070
88071 2000-01-31  Jim Meyering  <meyering@lucent.com>
88072
88073         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88074         functions.  Add the time.h and sys/time.h headers along with the
88075         AC_REQUIRE'ment of AC_HEADER_TIME.
88076
88077 2000-01-31  Jim Meyering  <meyering@lucent.com>
88078
88079         * lib/nanosleep.h (nanosleep): Guard declaration with
88080         `#if ! HAVE_DECL_NANOSLEEP'.
88081         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88082         the declaration in that vendor's sys/timers.h.
88083         Reported by Christian Krackowizer.
88084
88085         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88086         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88087         (ISPRINT): Likewise.
88088         Reported by Tom Tromey.
88089
88090 2000-01-30  Jim Meyering  <meyering@lucent.com>
88091
88092         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88093
88094         * m4/prereq.m4 (utmp_includes): Define.
88095         Check for ut_user and ut_name members in both struct utmpx
88096         and struct utmp.
88097
88098 2000-01-30  Jim Meyering  <meyering@lucent.com>
88099
88100         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88101         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88102         header files where only utmpx.ut_user is declared.
88103
88104         * lib/readutmp.h (UT_USER): Define.
88105
88106 2000-01-29  Jim Meyering  <meyering@lucent.com>
88107
88108         * m4/lib-check.m4: New file containing library-related checks from
88109         fileutils and sh-utils (textutils had none).
88110
88111 2000-01-28  Jim Meyering  <meyering@lucent.com>
88112
88113         * m4/perl.m4: Change format of warning message to look more like that
88114         from the missing script.  Suggestion from François Pinard.
88115
88116 2000-01-25  Jim Meyering  <meyering@lucent.com>
88117
88118         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88119         well as time.h in the compile check.
88120         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88121         Fix typo in cross-compiling case: s/yes/no/.
88122
88123 2000-01-23  Jim Meyering  <meyering@lucent.com>
88124
88125         * m4/jm-macros.m4: Move df-related tests here from
88126         fileutils/configure.in
88127
88128         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88129         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88130
88131         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88132         s/space/ac_fsusage_space/.
88133         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88134
88135         * m4/ftruncate.m4: New file (derived from part of
88136         fileutils/configure.in).
88137         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88138         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88139
88140         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88141         AC_SUBST these here, rather than just in sh-util/configure.in, so
88142         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88143         all the same.
88144         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88145         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88146         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88147         (AC_SUBST(POW_LIBM)): Likewise.
88148         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88149
88150 2000-01-23  Jim Meyering  <meyering@lucent.com>
88151
88152         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88153         obstack.c.
88154
88155 2000-01-22  Jim Meyering  <meyering@lucent.com>
88156
88157         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88158
88159         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88160
88161         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88162         configure.in
88163         (AC_CHECK_HEADERS): Likewise for sh-utils.
88164         (AC_CHECK_HEADERS): Likewise for textutils.
88165         Merge the three lists of headers.
88166
88167         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88168         from fileutils' configure.in.
88169
88170         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88171         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88172         check-decl.m4.
88173
88174         * m4/check-decl.m4: Use #if rather than #ifdef.
88175         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88176         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88177         (_jm_DECL_HEADERS): Define new function.
88178         (jm_CHECK_DECLARATIONS): Require it.
88179
88180 2000-01-22  Jim Meyering  <meyering@lucent.com>
88181
88182         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88183         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88184         Required for some AIX systems.  Reported by Christian Krackowizer.
88185         [TESTING] (main): New function.
88186
88187         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88188         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88189         letters.
88190
88191         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88192         iswprint.
88193
88194         * lib/strverscmp.c (ISDIGIT): Define.
88195         (strverscmp): Use ISDIGIT, not isdigit.
88196
88197 2000-01-19  Jim Meyering  <meyering@lucent.com>
88198
88199         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88200         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88201         defines `struct timespec' in <sys/time.h>
88202
88203         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88204         Thanks to Akim for explaining.
88205
88206 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88207
88208         * lib/nanosleep.c (nanosleep):
88209         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88210         POSIX.1 doesn't require SA_INTERRUPT and some systems
88211         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88212         it's been part of POSIX.1 since day 1 (in 1988).
88213
88214 2000-01-17  Jim Meyering  <meyering@lucent.com>
88215
88216         * lib/interlock: Remove unused file.  Reported by François Pinard.
88217
88218 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88219
88220         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88221         alert, backslash, formfeed, and vertical tab unnecessarily in
88222         shell quoting style.
88223
88224 2000-01-16  Jim Meyering  <meyering@lucent.com>
88225
88226         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88227         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88228         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88229         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88230
88231 2000-01-16  Jim Meyering  <meyering@lucent.com>
88232
88233         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88234         because the latter didn't work.
88235
88236 2000-01-15  Jim Meyering  <meyering@lucent.com>
88237
88238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88239         (AC_REPLACE_FUNCS): Add memcpy and memset.
88240         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88241         Add strpbrk.
88242         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88243
88244 2000-01-12  Jim Meyering  <meyering@lucent.com>
88245
88246         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88247         (jm_PREREQ): Use it.
88248         (jm_PREREQ_READUTMP): New macro.
88249         (jm_PREREQ): Use it.
88250
88251 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88252
88253         Quote multibyte characters correctly.
88254         * m4/c-bs-a.m4: New file.
88255         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88256         (jm_PREREQ): Use it.
88257
88258 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88259
88260         * m4/uintmax_t.m4: Port to autoconf 2.13.
88261
88262 2000-01-08  Jim Meyering  <meyering@ascend.com>
88263
88264         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88265         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88266
88267 2000-01-04  Jim Meyering  <meyering@ascend.com>
88268
88269         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88270         jm_STRUCT_DIRENT_D_TYPE.
88271         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88272         jm_STRUCT_DIRENT_D_INO.
88273         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88274         jm_STRUCT_UTIMBUF.
88275         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88276         renamings.
88277         * m4/utime.m4: Likewise.
88278
88279         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88280         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88281
88282 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88283
88284         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88285         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88286
88287 2000-01-02  Jim Meyering  <meyering@ascend.com>
88288
88289         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88290         remember if this is necessary.
88291
88292 1999-12-26  Jim Meyering  <meyering@ascend.com>
88293
88294         * m4/jm-macros.m4: Use it here.
88295         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88296
88297 1999-12-23  Jim Meyering  <meyering@ascend.com>
88298
88299         * m4/jm-macros.m4: Check for clock_gettime (moved from
88300         fileutils/configure.in)
88301         Check for gettimeofday.
88302
88303 1999-12-20  Jim Meyering  <meyering@ascend.com>
88304
88305         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88306         autoconf-2.14a-1999-12-20.
88307
88308 1999-12-19  Jim Meyering  <meyering@ascend.com>
88309
88310         * m4/lstat-slash.m4: New file.
88311         * m4/jm-macros.m4: Use the new macro:
88312         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88313
88314 1999-12-07  Jim Meyering  <meyering@ascend.com>
88315
88316         * m4/perl.m4: Require that File::Compare be available, too.
88317         Too many systems seem to lack it.
88318
88319         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88320         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88321
88322 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88323
88324         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88325         problem with the QNX 4.25 shell, which doesn't propagate exit
88326         status of failed commands inside shell assignments.
88327
88328 1999-11-17  Jim Meyering  <meyering@ascend.com>
88329
88330         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88331
88332 1999-11-07  Jim Meyering  <meyering@ascend.com>
88333
88334         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88335
88336 1999-11-06  Jim Meyering  <meyering@ascend.com>
88337
88338         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88339         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88340
88341 1999-11-05  Jim Meyering  <meyering@ascend.com>
88342
88343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88344         configure.in of textutils, fileutils, and sh-utils into this one
88345         (shared between those packages) file.
88346         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88347         AC_STRUCT_ST_BLKSIZE.
88348
88349 1999-11-03  Jim Meyering  <meyering@ascend.com>
88350
88351         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88352         of AC_CHECK_TYPE checks includes unistd.h.
88353         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88354         Suggestion from Akim Demaille.
88355
88356 1999-10-30  Jim Meyering  <meyering@ascend.com>
88357
88358         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88359         m4-quoted string.
88360         * m4/ls-mntd-fs.m4: Likewise.
88361         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88362         * m4/jm-winsz1.m4: Likewise.
88363
88364         * m4/const.m4: Remove file, since the fix made it into the experimental
88365         version of autoconf.
88366         * m4/mktime.m4: Likewise.
88367
88368         * m4/check-type.m4: Remove file, now that the latest version of
88369         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88370
88371         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88372         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88373         AC_CHECK_TYPE.
88374
88375 1999-10-04  Jim Meyering  <meyering@ascend.com>
88376
88377         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88378
88379 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88380
88381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88382         2.95.1 bug with HP-UX 10.20.
88383
88384 1999-09-17  Jim Meyering  <meyering@ascend.com>
88385
88386         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88387         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88388         due to missing strdup (against sh-utils-2.0).
88389
88390 1999-08-29  Jim Meyering  <meyering@ascend.com>
88391
88392         * m4/jm-macros.m4: Require jm_BISON.
88393         * m4/bison.m4: New file.
88394
88395 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88396
88397         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88398         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88399
88400 1999-08-05  Jim Meyering  <meyering@ascend.com>
88401
88402         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88403         to avoid conflicts with `conftest' on 8+3 filesystems.
88404         Suggestion from Eli Zaretskii.
88405
88406 1999-08-04  Jim Meyering  <meyering@ascend.com>
88407
88408         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88409         fileutils and sh-utils (textutils's getline test was inadequate).
88410         (AM_FUNC_GETLINE): Run this test.
88411         (AC_CHECK_FUNCS): Check for getdelim.
88412         Reported by Bob Proulx.
88413
88414 1999-08-02  Jim Meyering  <meyering@ascend.com>
88415
88416         * m4/jm-macros.m4: Add a comment.
88417
88418 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88419
88420         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88421         <inttypes.h> defines strtoumax as a macro (and not as a
88422         function).
88423
88424 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88425
88426         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88427         that we can shift, multiply and divide unsigned long long
88428         values; Ultrix cc can't do it.
88429
88430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88431
88432         * m4/mktime.m4: New file, which is a preview of what should appear
88433         in the next public autoconf release.
88434
88435 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88436
88437         * m4/lfs.m4: Remove this file.
88438         * m4/largefile.m4: New file.  It contains the old contents of
88439         lfs.m4, except that all names with prefix AC_LFS have been
88440         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88441         compatible with future autoconf versions.  Also, some minor m4
88442         quoting problems have been fixed.
88443
88444 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88445
88446         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88447         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88448         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88449         and simplify the shell code.
88450
88451 1999-08-01  Jim Meyering  <meyering@ascend.com>
88452
88453         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88454         m4.
88455
88456 1999-07-20  Jim Meyering  <meyering@ascend.com>
88457
88458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88459
88460 1999-07-15  Jim Meyering  <meyering@ascend.com>
88461
88462         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88463
88464 1999-05-22  Jim Meyering  <meyering@ascend.com>
88465
88466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88467
88468 1999-05-20  Jim Meyering  <meyering@ascend.com>
88469
88470         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88471         Add a colon after each `then' in case $4 is empty.
88472
88473 1999-05-16  Jim Meyering  <meyering@ascend.com>
88474
88475         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88476
88477 1999-05-10  Jim Meyering  <meyering@ascend.com>
88478
88479         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88480
88481         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88482         AC_FUNC_MKTIME.
88483
88484 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88485
88486         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88487
88488 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88489
88490         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88491         not CPPFLAGS, so that linking works correctly in IRIX.
88492
88493 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88494
88495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88496
88497 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88498
88499         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88500         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88502         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88503         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88504
88505         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88506
88507 1999-04-20  Jim Meyering  <meyering@ascend.com>
88508
88509         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88510         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88511         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88512
88513 1999-04-18  Jim Meyering  <meyering@ascend.com>
88514
88515         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88516         * m4/jm-macros.m4: Use it.
88517
88518 1999-04-06  Jim Meyering  <meyering@ascend.com>
88519
88520         * m4/strftime.m4: Remove test for %f.
88521
88522 1999-03-29  Jim Meyering  <meyering@ascend.com>
88523
88524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88525         superset of the AC_TYPE_* checks in the textutils, fileutils,
88526         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88527         AC_TYPE_PID_T.
88528
88529 1999-03-28  Jim Meyering  <meyering@ascend.com>
88530
88531         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88532         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88533         replaced e.g., in the *.sh files of the sh-utils.
88534
88535 1999-03-20  Jim Meyering  <meyering@ascend.com>
88536
88537         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88538         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88539         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88540
88541 1999-03-19  Jim Meyering  <meyering@ascend.com>
88542
88543         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88544
88545 1999-03-12  Jim Meyering  <meyering@ascend.com>
88546
88547         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88548
88549 1999-03-07  Jim Meyering  <meyering@ascend.com>
88550
88551         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88552         declared.
88553
88554 1999-02-17  Jim Meyering  <meyering@ascend.com>
88555
88556         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88557         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88558
88559 1999-02-07  Jim Meyering  <meyering@ascend.com>
88560
88561         * m4/group-member.m4: New file -- extracted from sh-utils'
88562         configure.in.
88563
88564         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88565         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88566
88567 1999-02-06  Jim Meyering  <meyering@ascend.com>
88568
88569         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88570         * m4/fnmatch.m4: Likewise.
88571         * m4/getgroups.m4: Likewise.
88572         * m4/lstat.m4: Likewise.
88573         * m4/malloc.m4: Likewise.
88574         * m4/putenv.m4: Likewise.
88575         * m4/realloc.m4: Likewise.
88576         * m4/regex.m4: Likewise.
88577         * m4/stat.m4: Likewise.
88578         * m4/strftime.m4: Likewise.
88579         Suggestion from Alain Magloire.
88580
88581         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88582         * m4/fnmatch.m4: Likewise.
88583         * m4/getgroups.m4: Likewise.
88584         * m4/getline.m4: Likewise.
88585         * m4/lstat.m4: Likewise.
88586         * m4/malloc.m4: Likewise.
88587         * m4/memcmp.m4: Likewise.
88588         * m4/putenv.m4: Likewise.
88589         * m4/realloc.m4: Likewise.
88590         * m4/regex.m4: Likewise.
88591         * m4/stat.m4: Likewise.
88592         * m4/strftime.m4: Likewise.
88593         Suggestion from Alain Magloire.
88594
88595         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88596         an argument.
88597
88598         * m4/regex.m4: Add a run-time Test for proper operation of
88599         re_compile_pattern.
88600
88601 1999-01-31  Jim Meyering  <meyering@ascend.com>
88602
88603         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88604
88605 1999-01-30  Jim Meyering  <meyering@ascend.com>
88606
88607         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88608
88609         * m4/jm-mktime.m4: Make this a wrapper around the official
88610         AM_FUNC_MKTIME rather than my private copy, now that the official one
88611         is up to date.
88612         * m4/mktime.m4: Remove file.
88613
88614         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88615         * m4/uptime.m4: Likewise.
88616         * m4/uintmax_t.m4: Likewise.
88617
88618 1999-01-28  Jim Meyering  <meyering@ascend.com>
88619
88620         * m4/jm-macros.m4: Use jm_AFS.
88621         * m4/afs.m4: New file (from fileutils' configure.in).
88622
88623         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88624         * m4/chown.m4: Likewise.
88625         * m4/d-ino.m4: Likewise.
88626         * m4/d-type.m4: Likewise.
88627         * m4/fnmatch.m4: Likewise.
88628         * m4/getgroups.m4: Likewise.
88629         * m4/gettext.m4: Likewise.
88630         * m4/jm-mktime.m4: Likewise.
88631         * m4/jm-winsz2.m4: Likewise.
88632         * m4/lcmessage.m4: Likewise.
88633         * m4/ls-mntd-fs.m4: Likewise.
88634         * m4/malloc.m4: Likewise.
88635         * m4/memcmp.m4: Likewise.
88636         * m4/putenv.m4: Likewise.
88637         * m4/realloc.m4: Likewise.
88638         * m4/st_mtim.m4: Likewise.
88639         * m4/strftime.m4: Likewise.
88640
88641 1999-01-16  Jim Meyering  <meyering@ascend.com>
88642
88643         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88644         (ARGMATCH_DIE_DECL): Define.
88645
88646 1999-01-12  Jim Meyering  <meyering@ascend.com>
88647
88648         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88649         Reported by Lars Hecking.
88650
88651 1999-01-10  Jim Meyering  <meyering@ascend.com>
88652
88653         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88654         gross kludge.
88655         * m4/inttypes_h.m4: Likewise.
88656         * m4/lstat.m4: Likewise.
88657         * m4/malloc.m4: Likewise.
88658         * m4/readdir.m4: Likewise.
88659         * m4/realloc.m4: Likewise.
88660         * m4/st_dm_mode.m4: Likewise.
88661         * m4/stat.m4: Likewise.
88662         * m4/utimbuf.m4: Likewise.
88663         * m4/utimes.m4: Likewise.
88664
88665         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88666         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88667         comments in config.h.in are meaningful.
88668
88669         * m4/jm-macros.m4: Require autoconf-2.13 here.
88670
88671         * m4/regex.m4: By default, don't use the included regex.c on systems
88672         with glibc 2.  Suggestion from Uli Drepper.
88673
88674 1999-01-02  Jim Meyering  <meyering@ascend.com>
88675
88676         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88677
88678 1998-12-18  Jim Meyering  <meyering@ascend.com>
88679
88680         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88681         Based on a suggestion from Lars Hecking.
88682
88683 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88684
88685         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88686
88687 1998-11-16  Jim Meyering  <meyering@ascend.com>
88688
88689         * m4/lfs.m4: Double-quote the `uname...` expression.
88690
88691 1998-11-14  Jim Meyering  <meyering@ascend.com>
88692
88693         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88694         * m4/stat.m4: Likewise.
88695
88696 1998-11-03  Jim Meyering  <meyering@ascend.com>
88697
88698         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88699         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88700
88701 1998-10-18  Jim Meyering  <meyering@ascend.com>
88702
88703         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88704
88705 1998-10-17  Jim Meyering  <meyering@ascend.com>
88706
88707         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88708         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88709         calls for those previously hard-coded headers.  Instead, take a new
88710         parameter.
88711         (jm_CHECK_DECLARATIONS): Reflect interface change.
88712         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88713         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88714
88715         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88716
88717 1998-10-14  Jim Meyering  <meyering@ascend.com>
88718
88719         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88720         instead of "TZ=America/Vancouver".  From Paul Eggert.
88721
88722 1998-10-11  Jim Meyering  <meyering@ascend.com>
88723
88724         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88725         This adds a test for a recently added compatibility fix for mktime.c.
88726         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88727
88728 1998-09-27  Jim Meyering  <meyering@ascend.com>
88729
88730         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88731
88732         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88733         ../configure.in, including a change from Gordon Matzigkeit to allow
88734         cross-compiling for the Hurd.
88735
88736         * m4/glibc.m4: New file/macro to test for the GNU C Library
88737         versions 1 and 2.  From Gordon Matzigkeit.
88738         Indent.
88739
88740 1998-09-21  Jim Meyering  <meyering@ascend.com>
88741
88742         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88743
88744 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88745
88746         Port nanosecond-resolution times to UnixWare 2.1.2 and
88747         pedantic Solaris 2.6.
88748
88749         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88750         AC_STRUCT_ST_MTIM.
88751         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88752         Generate name of ns member, instead of just 1 or undef.
88753         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88754
88755 1998-08-15  Jim Meyering  <meyering@ascend.com>
88756
88757         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88758         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88759         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88760         instead of jm_TYPE_SSIZE_T.
88761
88762 1998-08-12  Jim Meyering  <meyering@ascend.com>
88763
88764         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88765
88766 1998-08-02  Jim Meyering  <meyering@ascend.com>
88767
88768         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88769         in acconfig.h manually.
88770
88771 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88772
88773         * m4/st_mtim.m4: New file.
88774
88775 1998-07-28  Jim Meyering  <meyering@ascend.com>
88776
88777         * m4/utimes.m4: Undef stat.
88778
88779 1998-07-25  Jim Meyering  <meyering@ascend.com>
88780
88781         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88782         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88783
88784 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88785
88786         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88787         uid and gid actually remain unchanged.
88788
88789 1998-07-07  Jim Meyering  <meyering@ascend.com>
88790
88791         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88792
88793 1998-07-04  Jim Meyering  <meyering@ascend.com>
88794
88795         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88796         to prove that this macro can be used in packages without regex.c.
88797
88798 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88799
88800         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88801         is to be used.
88802
88803 1998-07-03  Jim Meyering  <meyering@ascend.com>
88804
88805         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88806
88807         * m4/gettext.m4: New file -- from gettext-0.10.35.
88808         * m4/lcmessage.m4: Likewise.
88809         * m4/progtest.m4: Likewise.
88810
88811         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88812         * m4/jm-macros.m4: Require the new macro.
88813
88814 1998-06-29  Jim Meyering  <meyering@ascend.com>
88815
88816         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88817         for the definition of NGROUPS (used in a system header included
88818         by sys/mount.h).
88819
88820 1998-06-28  Jim Meyering  <meyering@ascend.com>
88821
88822         * m4/ls-mntd-fs.m4: New file.
88823         * m4/fstypename.m4: New file.
88824
88825         * m4/jm-macros.m4: Require the new macro.
88826         * m4/jm-glibc-io.m4: New file.
88827
88828 1998-05-19  Jim Meyering  <meyering@ascend.com>
88829
88830         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88831         * m4/lchown.m4: New file.
88832
88833         * m4/Makefile.am.in: New file.
88834         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88835
88836 1998-05-14  Jim Meyering  <meyering@ascend.com>
88837
88838         * m4/Makefile.am (EXTRA_DIST): Add them.
88839         * m4/jm-macros.m4: New file.
88840         * m4/utimbuf.m4: New file.
88841
88842 1998-05-12  Jim Meyering  <meyering@ascend.com>
88843
88844         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88845
88846 1998-05-11  Jim Meyering  <meyering@ascend.com>
88847
88848         * m4/isc-posix.m4: New file.
88849
88850 1998-05-10  Jim Meyering  <meyering@ascend.com>
88851
88852         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88853
88854 1998-05-09  Jim Meyering  <meyering@ascend.com>
88855
88856         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88857         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88858         with automake.
88859
88860         * m4/ssize_t.m4: New file.
88861         * m4/mktime.m4: Remove file -- the new automake has this now.
88862
88863 1998-04-26  Jim Meyering  <meyering@ascend.com>
88864
88865         * m4/assert.m4: New file.
88866         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88867
88868 1998-04-05  Jim Meyering  <meyering@ascend.com>
88869
88870         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88871         (jm_PREREQ): Use it here.
88872
88873 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88874
88875         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88876         in acconfig.h.
88877
88878 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88879
88880         * m4/prereq.m4: New file.
88881         * m4/error.m4: New file.
88882         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88883
88884 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88885
88886         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88887         cache-check for the same variable -- that defeated the purpose of
88888         the test; the test program was never run.  This was a problem only
88889         on systems with losing getline functions -- HP-UX 10.20 is one.
88890         Reported by Bjorn Helgaas.
88891
88892 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88893
88894         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88895
88896 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88897
88898         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88899
88900         * m4/const.m4: New file.  Use an initializer in this declaration
88901         typedef int charset[2]; const charset x;
88902         Reported by Bob Glickstein.
88903
88904 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88905
88906         * m4/chown.m4: Fix reversed types on -1 args to chown.
88907         From Kaveh Ghazi.
88908
88909 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88910
88911         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88912         Add lseek and memchr.
88913
88914         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88915         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88916         have a 20-character limit on names.
88917
88918 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88919
88920         * m4/inttypes_h.m4: New file.
88921         * m4/uintmax_t.m4: New file.
88922         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88923
88924
88925         -----
88926
88927         Local Variables:
88928         coding: utf-8
88929         End:
88930
88931         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88932
88933         Copying and distribution of this file, with or without
88934         modification, are permitted provided the copyright notice
88935         and this notice are preserved.