errno, strerror-override: Support for MSVC 10.
[gnulib.git] / ChangeLog
1 2011-10-22  Bruno Haible  <bruno@clisp.org>
2
3         errno, strerror-override: Support for MSVC 10.
4         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11         Assign values compatible with MSVC 10.
12         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
13         New macros.
14         (GNULIB_defined_EWINSOCK): New macro.
15         * lib/strerror-override.c (strerror_override): Update accordingly.
16         * lib/strerror-override.h: Likewise.
17         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
18         longer equal to the corresponding errno value.
19         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20
21 2011-10-22  Bruno Haible  <bruno@clisp.org>
22
23         perror: Recognize when test program crashes.
24         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
25         strerror, set gl_cv_func_perror_works to no.
26         Reported by Daniel Richard G. <skunk@iskunk.org>.
27
28         perror: Fix indentation.
29         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30
31 2011-10-22  Bruno Haible  <bruno@clisp.org>
32
33         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
34         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
35         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
36         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
37         functions, not as a macro.
38         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
39         macros.
40         (isfinite, isinf, isnan, signbit): Check overloaded functions and
41         absence of macro.
42         Suggested by Eric Blake.
43         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
44
45 2011-10-21  Bruno Haible  <bruno@clisp.org>
46
47         relocatable-prog-wrapper: Don't leave object files behind.
48         * build-aux/install-reloc: Re-synchronize list of .o files to be
49         removed with list of compilation units.
50
51 2011-10-20  Bruno Haible  <bruno@clisp.org>
52
53         openpty, posix_openpt: Remove code duplication.
54         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
55         * lib/openpty.c: Include <stdlib.h>.
56         (openpty): Use posix_openpt on all platforms except IRIX.
57         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
58
59 2011-10-20  Bruno Haible  <bruno@clisp.org>
60
61         unlockpt: Detect invalid argument.
62         * lib/unlockpt.c: Include <fcntl.h>.
63         (unlockpt): Check whether fd is valid, using fcntl().
64         * modules/unlockpt (Depends-on): Add fcntl-h.
65
66 2011-10-20  Bruno Haible  <bruno@clisp.org>
67
68         openpty: Avoid compilation error on AIX 6.1.
69         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
70
71 2011-10-20  Bruno Haible  <bruno@clisp.org>
72
73         posix_openpt: Support for OpenBSD.
74         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
75         (posix_openpt) [OpenBSD]: New code.
76         * lib/grantpt.c: Include <fcntl.h>.
77         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
78         * modules/grantpt (Depends-on): Add fcntl-h.
79
80 2011-10-20  Bruno Haible  <bruno@clisp.org>
81
82         posix_openpt test: Coding style.
83         * tests/test-posix_openpt.c: Use GNU coding style.
84
85 2011-10-20  Bruno Haible  <bruno@clisp.org>
86
87         grantpt: Support --avoid=pt_chown.
88         * modules/grantpt (Files): Add lib/pty-private.h.
89
90 2011-10-20  Bruno Haible  <bruno@clisp.org>
91
92         posix_openpt: Fix autoconf macro.
93         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
94         unneeded check for _getpty.
95
96 2011-10-20  Bruno Haible  <bruno@clisp.org>
97
98         openpty: Update comments.
99         * lib/openpty.c: Add comments about Minix.
100
101 2011-10-19  Eric Blake  <eblake@redhat.com>
102
103         openpty: relax license
104         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
105
106         pt_chown: use configmake to simplify build
107         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
108
109         ptsname and others: relax license
110         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
111         * modules/unlockpt (License): Likewise.
112         * modules/pt_chown (License): Likewise.
113         * modules/ptsname (License): Likewise.
114         * modules/ttyname_r (License): Likewise.
115
116 2011-10-19  Jim Meyering  <meyering@redhat.com>
117
118         posix_openpt: remove spurious #endif
119         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
120
121 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
122
123         maint.mk: Respect $(build_aux) in web-manual rule.
124         * top/maint.mk (web-manual): Find gen-announce script in user's
125         $(build_aux) directory instead of hard-coding 'build-aux'.
126
127 2011-10-19  Bruno Haible  <bruno@clisp.org>
128
129         posix_openpt: Fix compilation error.
130         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
131         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
132         Mention the openpty module as an alternative.
133
134 2011-10-19  Bruno Haible  <bruno@clisp.org>
135
136         Support for old NeXTstep 3.3 frexp().
137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
138         execution time of the test to 5 seconds.
139         Reported by Daniel Richard G. <skunk@iskunk.org>.
140
141 2011-10-19  Bruno Haible  <bruno@clisp.org>
142
143         Support for old NeXTstep 3.3 sed.
144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
145         part, use /.../, not \|...|. Escape periods in the header file name.
146         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
147         Reported by Daniel Richard G. <skunk@iskunk.org>.
148
149 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
150
151         Support for old NeXTstep 3.3 gcc.
152         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
153         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
154         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
155         * lib/spawn.in.h (_Restrict_arr_): Likewise.
156         * lib/regex.h (_Restrict_arr_): Likewise.
157         * lib/regex_internal.h (re_token_t): Likewise.
158         * lib/regexec.c (check_node_accept_bytes): Likewise.
159         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
160
161 2011-10-18  Eric Blake  <eblake@redhat.com>
162
163         posix_openpt: new module
164         * modules/posix_openpt: New module.
165         * m4/posix_openpt.m4: New file.
166         * lib/posix_openpt.c: Likewise.
167         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
168         (gl_STDLIB_H_DEFAULTS): Set defaults.
169         * modules/stdlib (Makefile.am): Substitute macros.
170         * lib/stdlib.in.h (posix_openpt): Declare.
171         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
172         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
173         * modules/posix_openpt-tests: New test module.
174         * tests/test-posix_openpt.c: New test.
175
176 2011-10-15  Bruno Haible  <bruno@clisp.org>
177
178         xstrtoll: Fix compilation failure.
179         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
180         from lib/strtol.c.
181         * doc/posix-headers/limits.texi: Mention missing numerical limits on
182         some platforms.
183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
184
185 2011-10-15  Bruno Haible  <bruno@clisp.org>
186
187         vasnprintf: Optimize bit search operation.
188         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
190         gl_DOUBLE_EXPONENT_LOCATION.
191         * modules/vasnprintf (Files): Add m4/exponentd.m4.
192         * modules/unistdio/u8-vasnprintf (Files): Likewise.
193         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
194         * modules/unistdio/u16-vasnprintf (Files): Likewise.
195         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
196         * modules/unistdio/u32-vasnprintf (Files): Likewise.
197         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
198         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
199         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
200
201 2011-10-15  Bruno Haible  <bruno@clisp.org>
202
203         vasnprintf: Fix comments.
204         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
205
206 2011-10-14  Bruno Haible  <bruno@clisp.org>
207
208         Tests for module 'integer_length_ll'.
209         * modules/integer_length_ll-tests: New file.
210         * tests/test-integer_length_ll.c: New file.
211
212         New module 'integer_length_ll'.
213         * lib/integer_length_ll.c: New file.
214         * modules/integer_length_ll: New file.
215
216 2011-10-14  Bruno Haible  <bruno@clisp.org>
217
218         Tests for module 'integer_length_l'.
219         * modules/integer_length_l-tests: New file.
220         * tests/test-integer_length_l.c: New file.
221
222         New module 'integer_length_l'.
223         * lib/integer_length_l.c: New file.
224         * modules/integer_length_l: New file.
225
226 2011-10-14  Bruno Haible  <bruno@clisp.org>
227
228         Tests for module 'integer_length'.
229         * modules/integer_length-tests: New file.
230         * tests/test-integer_length.c: New file.
231
232         New module 'integer_length'.
233         * lib/integer_length.h: New file.
234         * lib/integer_length.c: New file.
235         * modules/integer_length: New file.
236
237 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
238
239         popen: Fix dependency conditions.
240         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
241
242 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
243
244         perror: Fix autoconf test.
245         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
246         <stdlib.h> and <string.h>.
247
248 2011-10-14  Bruno Haible  <bruno@clisp.org>
249
250         ffsl: Optimize on 64-bit platforms.
251         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
252         unrolling.
253
254 2011-10-13  Bruno Haible  <bruno@clisp.org>
255
256         ffsl: Optimize on 32-bit platforms.
257         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
258         use ffs() without a loop.
259
260         ffsl, ffsll: Optimize for GCC.
261         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
262         * lib/ffsl.c (GCC_BUILTIN): New macro.
263         * lib/ffsll.c (GCC_BUILTIN): Likewise.
264
265 2011-10-13  Bruno Haible  <bruno@clisp.org>
266
267         ffs, bcopy, memset: Support symbol renaming via config.h.
268         * lib/ffs.c: Include <config.h>.
269         * lib/bcopy.c: Likewise.
270         * lib/memset.c: Likewise.
271
272 2011-10-10  Bruno Haible  <bruno@clisp.org>
273
274         atanl: Simplify for platforms where 'long double' == 'double'.
275         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
276         alternative implementation.
277         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
278         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
279         * modules/atanl (Depends-on): Add atan. Update conditions.
280
281 2011-10-10  Bruno Haible  <bruno@clisp.org>
282
283         acosl: Simplify for platforms where 'long double' == 'double'.
284         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
285         alternative implementation.
286         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
287         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
288         * modules/acosl (Depends-on): Add acos. Update conditions.
289
290 2011-10-10  Bruno Haible  <bruno@clisp.org>
291
292         asinl: Simplify for platforms where 'long double' == 'double'.
293         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
294         alternative implementation.
295         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
296         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
297         * modules/asinl (Depends-on): Add asin. Update conditions.
298
299 2011-10-10  Bruno Haible  <bruno@clisp.org>
300
301         tanl: Simplify for platforms where 'long double' == 'double'.
302         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
303         implementation.
304         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
305         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
306         * modules/tanl (Depends-on): Add tan. Update conditions.
307         (configure.ac): Don't compile trigl.c if
308         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
309
310 2011-10-10  Bruno Haible  <bruno@clisp.org>
311
312         cosl: Simplify for platforms where 'long double' == 'double'.
313         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
314         implementation.
315         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
316         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
317         * modules/cosl (Depends-on): Add cos. Update conditions.
318         (configure.ac): Don't compile sincosl.c and trigl.c if
319         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
320
321 2011-10-10  Bruno Haible  <bruno@clisp.org>
322
323         sinl: Simplify for platforms where 'long double' == 'double'.
324         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
325         implementation.
326         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
327         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
328         * modules/sinl (Depends-on): Add sin. Update conditions.
329         (configure.ac): Don't compile sincosl.c and trigl.c if
330         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
331
332 2011-10-10  Bruno Haible  <bruno@clisp.org>
333
334         logl: Simplify for platforms where 'long double' == 'double'.
335         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
336         implementation.
337         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
338         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
339         * modules/logl (Depends-on): Add log. Update conditions.
340
341 2011-10-10  Bruno Haible  <bruno@clisp.org>
342
343         expl: Simplify for platforms where 'long double' == 'double'.
344         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
345         implementation.
346         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
347         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
348         * modules/expl (Depends-on): Add exp. Update conditions.
349
350 2011-10-10  Bruno Haible  <bruno@clisp.org>
351
352         sqrtl: Simplify for platforms where 'long double' == 'double'.
353         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
354         alternative implementation.
355         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
356         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
357         * modules/sqrtl (Depends-on): Update conditions.
358
359 2011-10-10  Bruno Haible  <bruno@clisp.org>
360
361         ldexpl: Simplify for platforms where 'long double' == 'double'.
362         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
363         alternative implementation.
364         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
365         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
366         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
367
368 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
369
370         ffsll: set correct witness
371         * modules/ffsll (configure.ac): Fix typo.
372
373 2011-10-10  Bruno Haible  <bruno@clisp.org>
374
375         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
376         * lib/printf-frexpl.c: Include <config.h>.
377         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
378         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
379         second time.
380         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
381         gl_LONG_DOUBLE_VS_DOUBLE.
382         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
383         conditions.
384
385 2011-10-10  Bruno Haible  <bruno@clisp.org>
386
387         frexpl: Simplify for platforms where 'long double' == 'double'.
388         * lib/frexpl.c: Include <config.h>.
389         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
390         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
391         time.
392         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
393         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
394         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
395         * modules/frexpl (Depends-on): Add frexp. Update conditions.
396         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
397         conditions.
398
399 2011-10-10  Jim Meyering  <meyering@redhat.com>
400
401         test-renameat: don't leave behind a temporary file
402         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
403           ERROR: files left in build directory after distclean:
404           ./gltests/test-renameat.too
405           make[1]: *** [distcleancheck] Error 1
406         Reported by Tom G. Christensen.
407
408 2011-10-09  Bruno Haible  <bruno@clisp.org>
409
410         rint: Determine RINT_LIBM correctly on AIX 7.
411         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
412         directly, not only through a function pointer. Also accept an optional
413         4th argument with extra code.
414         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
415         rintf() call by gcc when optimizing.
416
417         mathfunc.m4: Refactor.
418         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
419         m4 variable.
420
421 2011-10-09  Bruno Haible  <bruno@clisp.org>
422
423         rintl: Simplify for platforms where 'long double' == 'double'.
424         * lib/rintl.c: Include <config.h>.
425         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
426         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
427         time.
428         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
429         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
430         * modules/rintl (Depends-on): Add rint. Update conditions.
431
432 2011-10-09  Bruno Haible  <bruno@clisp.org>
433
434         roundl: Simplify for platforms where 'long double' == 'double'.
435         * lib/roundl.c: Include <config.h>.
436         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
437         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
438         time.
439         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
440         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
441         * modules/roundl (Depends-on): Add round. Update conditions.
442
443 2011-10-09  Bruno Haible  <bruno@clisp.org>
444
445         truncl: Simplify for platforms where 'long double' == 'double'.
446         * lib/truncl.c: Include <config.h>.
447         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
448         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
449         time.
450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
451         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
452         * modules/truncl (Depends-on): Add trunc. Update conditions.
453
454 2011-10-09  Bruno Haible  <bruno@clisp.org>
455
456         ceill: Simplify for platforms where 'long double' == 'double'.
457         * lib/ceill.c: Include <config.h>.
458         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
459         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
460         time.
461         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
462         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
463         * modules/ceill (Depends-on): Add ceil. Update conditions.
464
465 2011-10-09  Bruno Haible  <bruno@clisp.org>
466
467         floorl: Simplify for platforms where 'long double' == 'double'.
468         * lib/floorl.c: Include <config.h>.
469         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
470         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
471         time.
472         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
473         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
474         * modules/floorl (Depends-on): Add floor. Update conditions.
475
476 2011-10-09  Bruno Haible  <bruno@clisp.org>
477
478         rint: Fix ordering constraints.
479         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
480         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
481         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
482
483 2011-10-09  Bruno Haible  <bruno@clisp.org>
484
485         copysignl: Simplify for platforms where 'long double' == 'double'.
486         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
487         alternative.
488         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
489         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
490         * modules/copysignl (Depends-on): Add copysign. Update conditions.
491
492 2011-10-09  Bruno Haible  <bruno@clisp.org>
493
494         Tests for module 'rintl'.
495         * modules/rintl-tests: New file.
496         * tests/test-rintl.c: New file.
497
498         New module 'rintl'.
499         * lib/math.in.h (rintl): New declaration.
500         * lib/rintl.c: New file.
501         * m4/rintl.m4: New file.
502         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
504         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
505         * modules/rintl: New file.
506         * tests/test-math-c++.cc: Check the declaration of rintl.
507         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
508         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
509         * doc/posix-functions/rintl.texi: Mention the new module.
510
511 2011-10-09  Bruno Haible  <bruno@clisp.org>
512
513         Tests for module 'rintf'.
514         * modules/rintf-tests: New file.
515         * tests/test-rintf.c: New file.
516
517         New module 'rintf'.
518         * lib/math.in.h (rintf): New declaration.
519         * lib/rintf.c: New file.
520         * m4/rintf.m4: New file.
521         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
523         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
524         * modules/rintf: New file.
525         * tests/test-math-c++.cc: Check the declaration of rintf.
526         * doc/posix-functions/rintf.texi: Mention the new module.
527
528 2011-10-09  Bruno Haible  <bruno@clisp.org>
529
530         rint: Support for MSVC.
531         * lib/math.in.h (rint): New declaration.
532         * lib/rint.c: New file.
533         * m4/rint.m4: New file.
534         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
536         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
537         * modules/rint (Description): Fix.
538         (Files): Add lib/rint.c, m4/rint.m4.
539         (Depends-on): Add math.
540         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
541         gl_MATH_MODULE_INDICATOR.
542         * tests/test-math-c++.cc: Check the declaration of rint.
543         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
544         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
545         * doc/posix-functions/rint.texi: Mention the replacement provided by
546         the module.
547
548         rint tests: More tests.
549         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
550         minus-zero.h, infinity.h, nan.h.
551         (main): Skip the test if the current rounding mode is not standard. Add
552         tests for negative numbers, minus zero, infinity, NaN.
553         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
554         tests/nan.h.
555         (Depends-on): Add isnand-nolibm.
556
557 2011-10-09  Bruno Haible  <bruno@clisp.org>
558
559         Tests for module 'copysignl'.
560         * modules/copysignl-tests: New file.
561         * tests/test-copysignl.c: New file.
562
563         New module 'copysignl'.
564         * lib/math.in.h (copysignl): New declaration.
565         * lib/copysignl.c: New file.
566         * m4/copysignl.m4: New file.
567         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
569         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
570         HAVE_COPYSIGNL.
571         * modules/copysignl: New file.
572         * tests/test-math-c++.cc: Check the declaration of copysignl.
573         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
574         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
575         * doc/posix-functions/copysignl.texi: Mention the new module.
576
577 2011-10-09  Bruno Haible  <bruno@clisp.org>
578
579         Tests for module 'copysignf'.
580         * modules/copysignf-tests: New file.
581         * tests/test-copysignf.c: New file.
582
583         New module 'copysignf'.
584         * lib/math.in.h (copysignf): New declaration.
585         * lib/copysignf.c: New file.
586         * m4/copysignf.m4: New file.
587         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
589         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
590         HAVE_COPYSIGNF.
591         * modules/copysignf: New file.
592         * tests/test-math-c++.cc: Check the declaration of copysignf.
593         * doc/posix-functions/copysignf.texi: Mention the new module.
594
595 2011-10-09  Bruno Haible  <bruno@clisp.org>
596
597         Ensure that HAVE_* variables are set to 1 before they are set to 0.
598         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
599         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
600         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
601         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
602         gl_SIGNAL_H_DEFAULTS.
603
604 2011-10-09  Bruno Haible  <bruno@clisp.org>
605
606         poll: Make macro safer.
607         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
608         ac_cv_header_poll_h is not set.
609
610 2011-10-09  Bruno Haible  <bruno@clisp.org>
611
612         copysign: Provide replacement.
613         * lib/math.in.h (copysign): New declaration.
614         * lib/copysign.c: New file.
615         * m4/copysign.m4: New file.
616         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
618         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
619         HAVE_COPYSIGN.
620         * modules/copysign (Description): Clarify.
621         (Files): Add lib/copysign.c, m4/copysign.m4.
622         (Depends-on): Add math, signbit.
623         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
624         gl_MATH_MODULE_INDICATOR.
625         * tests/test-math-c++.cc: Check the declaration of copysign.
626         * doc/posix-functions/copysign.texi: Mention the effects of the module
627         on Minix and MSVC.
628
629 2011-10-09  Bruno Haible  <bruno@clisp.org>
630
631         isinf: Ensure macro on AIX 5.1.
632         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
633         macro.
634         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
635
636 2011-10-09  Bruno Haible  <bruno@clisp.org>
637
638         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
639         * modules/snprintf-posix-tests (configure.ac): Require
640         gl_LONG_DOUBLE_VS_DOUBLE.
641         * modules/sprintf-posix-tests (configure.ac): Likewise.
642         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
643         * modules/vasprintf-posix-tests (configure.ac): Likewise.
644         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
645         * modules/vsprintf-posix-tests (configure.ac): Likewise.
646         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
647         tests on platforms where 'long double' is the same as 'double'.
648         * tests/test-sprintf-posix.h (test_function): Likewise.
649         * tests/test-vasnprintf-posix.c (test_function): Likewise.
650         * tests/test-vasprintf-posix.c (test_function): Likewise.
651
652         *printf: Fix for platforms where 'long double' == 'double'.
653         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
654         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
655         * modules/dprintf-posix (Files): Add m4/math_h.m4.
656         * modules/fprintf-posix (Files): Likewise.
657         * modules/obstack-printf-posix (Files): Likewise.
658         * modules/snprintf-posix (Files): Likewise.
659         * modules/sprintf-posix (Files): Likewise.
660         * modules/vasnprintf (Files): Likewise.
661         * modules/vasnprintf-posix (Files): Likewise.
662         * modules/vasprintf-posix (Files): Likewise.
663         * modules/vdprintf-posix (Files): Likewise.
664         * modules/vfprintf-posix (Files): Likewise.
665         * modules/vsnprintf-posix (Files): Likewise.
666         * modules/vsprintf-posix (Files): Likewise.
667         * modules/unistdio/u8-vasnprintf (Files): Likewise.
668         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
669         * modules/unistdio/u16-vasnprintf (Files): Likewise.
670         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
671         * modules/unistdio/u32-vasnprintf (Files): Likewise.
672         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
673         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
674
675         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
676         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
677         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
678         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
679         'long double'.
680         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
681
682         isinf: Fix for platforms where 'long double' == 'double'.
683         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
684         Don't blindly assume 80-bit 'long double'.
685
686         isfinite: Fix for platforms where 'long double' == 'double'.
687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
688         Don't blindly assume 80-bit 'long double'.
689
690         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
691         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
692         * modules/isfinite-tests (configure.ac): Require
693         gl_LONG_DOUBLE_VS_DOUBLE.
694         * modules/isinf-tests (configure.ac): Likewise.
695         * modules/isnan-tests (configure.ac): Likewise.
696         * modules/isnanl-tests (configure.ac): Likewise.
697         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
698         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
699         tests on platforms where 'long double' is the same as 'double'.
700         * tests/test-isinf.c (test_isinfl): Likewise.
701         * tests/test-isnan.c (test_long_double): Likewise.
702         * tests/test-isnanl.h (main): Likewise.
703
704 2011-10-08  Bruno Haible  <bruno@clisp.org>
705
706         Tests for module 'tanhf'.
707         * modules/tanhf-tests: New file.
708         * tests/test-tanhf.c: New file.
709
710         New module 'tanhf'.
711         * lib/math.in.h (tanhf): New declaration.
712         * lib/tanhf.c: New file.
713         * m4/tanhf.m4: New file.
714         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
716         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
717         * modules/tanhf: New file.
718         * tests/test-math-c++.cc: Check the declaration of tanhf.
719         * doc/posix-functions/tanhf.texi: Mention the new module.
720
721         tanh: Use a .m4 file.
722         * m4/tanh.m4: New file.
723         * modules/tanh (Files): Add it.
724         (configure.ac): Just invoke gl_FUNC_TANH.
725
726 2011-10-08  Bruno Haible  <bruno@clisp.org>
727
728         Tests for module 'coshf'.
729         * modules/coshf-tests: New file.
730         * tests/test-coshf.c: New file.
731
732         New module 'coshf'.
733         * lib/math.in.h (coshf): New declaration.
734         * lib/coshf.c: New file.
735         * m4/coshf.m4: New file.
736         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
738         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
739         * modules/coshf: New file.
740         * tests/test-math-c++.cc: Check the declaration of coshf.
741         * doc/posix-functions/coshf.texi: Mention the new module.
742
743         cosh: Use a .m4 file.
744         * m4/cosh.m4: New file.
745         * modules/cosh (Files): Add it.
746         (configure.ac): Just invoke gl_FUNC_COSH.
747
748 2011-10-08  Bruno Haible  <bruno@clisp.org>
749
750         Tests for module 'sinhf'.
751         * modules/sinhf-tests: New file.
752         * tests/test-sinhf.c: New file.
753
754         New module 'sinhf'.
755         * lib/math.in.h (sinhf): New declaration.
756         * lib/sinhf.c: New file.
757         * m4/sinhf.m4: New file.
758         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
760         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
761         * modules/sinhf: New file.
762         * tests/test-math-c++.cc: Check the declaration of sinhf.
763         * doc/posix-functions/sinhf.texi: Mention the new module.
764
765         sinh: Use a .m4 file.
766         * m4/sinh.m4: New file.
767         * modules/sinh (Files): Add it.
768         (configure.ac): Just invoke gl_FUNC_SINH.
769
770 2011-10-08  Bruno Haible  <bruno@clisp.org>
771
772         Tests for module 'atan2f'.
773         * modules/atan2f-tests: New file.
774         * tests/test-atan2f.c: New file.
775
776         New module 'atan2f'.
777         * lib/math.in.h (atan2f): New declaration.
778         * lib/atan2f.c: New file.
779         * m4/atan2f.m4: New file.
780         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
782         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
783         * modules/atan2f: New file.
784         * tests/test-math-c++.cc: Check the declaration of atan2f.
785         * doc/posix-functions/atan2f.texi: Mention the new module.
786
787         atan2: Use a .m4 file.
788         * m4/atan2.m4: New file.
789         * modules/atan2 (Files): Add it.
790         (configure.ac): Just invoke gl_FUNC_ATAN2.
791
792 2011-10-08  Bruno Haible  <bruno@clisp.org>
793
794         Tests for module 'atanf'.
795         * modules/atanf-tests: New file.
796         * tests/test-atanf.c: New file.
797
798         New module 'atanf'.
799         * lib/math.in.h (atanf): New declaration.
800         * lib/atanf.c: New file.
801         * m4/atanf.m4: New file.
802         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
804         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
805         * modules/atanf: New file.
806         * tests/test-math-c++.cc: Check the declaration of atanf.
807         * doc/posix-functions/atanf.texi: Mention the new module.
808
809         atan: Use a .m4 file.
810         * m4/atan.m4: New file.
811         * modules/atan (Files): Add it.
812         (configure.ac): Just invoke gl_FUNC_ATAN.
813
814 2011-10-08  Bruno Haible  <bruno@clisp.org>
815
816         Tests for module 'acosf'.
817         * modules/acosf-tests: New file.
818         * tests/test-acosf.c: New file.
819
820         New module 'acosf'.
821         * lib/math.in.h (acosf): New declaration.
822         * lib/acosf.c: New file.
823         * m4/acosf.m4: New file.
824         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
826         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
827         * modules/acosf: New file.
828         * tests/test-math-c++.cc: Check the declaration of acosf.
829         * doc/posix-functions/acosf.texi: Mention the new module.
830
831         acos: Use a .m4 file.
832         * m4/acos.m4: New file.
833         * modules/acos (Files): Add it.
834         (configure.ac): Just invoke gl_FUNC_ACOS.
835
836 2011-10-08  Bruno Haible  <bruno@clisp.org>
837
838         Tests for module 'asinf'.
839         * modules/asinf-tests: New file.
840         * tests/test-asinf.c: New file.
841
842         New module 'asinf'.
843         * lib/math.in.h (asinf): New declaration.
844         * lib/asinf.c: New file.
845         * m4/asinf.m4: New file.
846         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
848         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
849         * modules/asinf: New file.
850         * tests/test-math-c++.cc: Check the declaration of asinf.
851         * doc/posix-functions/asinf.texi: Mention the new module.
852
853         asin: Use a .m4 file.
854         * m4/asin.m4: New file.
855         * modules/asin (Files): Add it.
856         (configure.ac): Just invoke gl_FUNC_ASIN.
857
858 2011-10-08  Bruno Haible  <bruno@clisp.org>
859
860         Tests for module 'tanf'.
861         * modules/tanf-tests: New file.
862         * tests/test-tanf.c: New file.
863
864         New module 'tanf'.
865         * lib/math.in.h (tanf): New declaration.
866         * lib/tanf.c: New file.
867         * m4/tanf.m4: New file.
868         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
870         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
871         * modules/tanf: New file.
872         * tests/test-math-c++.cc: Check the declaration of tanf.
873         * doc/posix-functions/tanf.texi: Mention the new module.
874
875         tan: Use a .m4 file.
876         * m4/tan.m4: New file.
877         * modules/tan (Files): Add it.
878         (configure.ac): Just invoke gl_FUNC_TAN.
879
880 2011-10-08  Bruno Haible  <bruno@clisp.org>
881
882         Tests for module 'cosf'.
883         * modules/cosf-tests: New file.
884         * tests/test-cosf.c: New file.
885
886         New module 'cosf'.
887         * lib/math.in.h (cosf): New declaration.
888         * lib/cosf.c: New file.
889         * m4/cosf.m4: New file.
890         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
892         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
893         * modules/cosf: New file.
894         * tests/test-math-c++.cc: Check the declaration of cosf.
895         * doc/posix-functions/cosf.texi: Mention the new module.
896
897         cos: Use a .m4 file.
898         * m4/cos.m4: New file.
899         * modules/cos (Files): Add it.
900         (configure.ac): Just invoke gl_FUNC_COS.
901
902 2011-10-08  Bruno Haible  <bruno@clisp.org>
903
904         Tests for module 'sinf'.
905         * modules/sinf-tests: New file.
906         * tests/test-sinf.c: New file.
907
908         New module 'sinf'.
909         * lib/math.in.h (sinf): New declaration.
910         * lib/sinf.c: New file.
911         * m4/sinf.m4: New file.
912         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
914         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
915         * modules/sinf: New file.
916         * tests/test-math-c++.cc: Check the declaration of sinf.
917         * doc/posix-functions/sinf.texi: Mention the new module.
918
919         sin: Use a .m4 file.
920         * m4/sin.m4: New file.
921         * modules/sin (Files): Add it.
922         (configure.ac): Just invoke gl_FUNC_SIN.
923
924 2011-10-08  Bruno Haible  <bruno@clisp.org>
925
926         Tests for module 'powf'.
927         * modules/powf-tests: New file.
928         * tests/test-powf.c: New file.
929
930         New module 'powf'.
931         * lib/math.in.h (powf): New declaration.
932         * lib/powf.c: New file.
933         * m4/powf.m4: New file.
934         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
936         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
937         * modules/powf: New file.
938         * tests/test-math-c++.cc: Check the declaration of powf.
939         * doc/posix-functions/powf.texi: Mention the new module.
940
941         pow: Use a .m4 file.
942         * m4/pow.m4: New file.
943         * modules/pow (Files): Add it.
944         (configure.ac): Just invoke gl_FUNC_POW.
945
946 2011-10-08  Bruno Haible  <bruno@clisp.org>
947
948         Tests for module 'log10f'.
949         * modules/log10f-tests: New file.
950         * tests/test-log10f.c: New file.
951
952         New module 'log10f'.
953         * lib/math.in.h (log10f): New declaration.
954         * lib/log10f.c: New file.
955         * m4/log10f.m4: New file.
956         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
958         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
959         * modules/log10f: New file.
960         * tests/test-math-c++.cc: Check the declaration of log10f.
961         * doc/posix-functions/log10f.texi: Mention the new module.
962
963         log10: Use a .m4 file.
964         * m4/log10.m4: New file.
965         * modules/log10 (Files): Add it.
966         (configure.ac): Just invoke gl_FUNC_LOG10.
967
968 2011-10-08  Bruno Haible  <bruno@clisp.org>
969
970         Tests for module 'logf'.
971         * modules/logf-tests: New file.
972         * tests/test-logf.c: New file.
973
974         New module 'logf'.
975         * lib/math.in.h (logf): New declaration.
976         * lib/logf.c: New file.
977         * m4/logf.m4: New file.
978         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
980         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
981         * modules/logf: New file.
982         * tests/test-math-c++.cc: Check the declaration of logf.
983         * doc/posix-functions/logf.texi: Mention the new module.
984
985         log: Use a .m4 file.
986         * m4/log.m4: New file.
987         * modules/log (Files): Add it.
988         (configure.ac): Just invoke gl_FUNC_LOG.
989
990 2011-10-08  Bruno Haible  <bruno@clisp.org>
991
992         Tests for module 'expf'.
993         * modules/expf-tests: New file.
994         * tests/test-expf.c: New file.
995
996         New module 'expf'.
997         * lib/math.in.h (expf): New declaration.
998         * lib/expf.c: New file.
999         * m4/expf.m4: New file.
1000         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1002         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1003         * modules/expf: New file.
1004         * tests/test-math-c++.cc: Check the declaration of expf.
1005         * doc/posix-functions/expf.texi: Mention the new module.
1006
1007         exp: Use a .m4 file.
1008         * m4/exp.m4: New file.
1009         * modules/exp (Files): Add it.
1010         (configure.ac): Just invoke gl_FUNC_EXP.
1011
1012 2011-10-08  Bruno Haible  <bruno@clisp.org>
1013
1014         Tests for module 'sqrtf'.
1015         * modules/sqrtf-tests: New file.
1016         * tests/test-sqrtf.c: New file.
1017
1018         New module 'sqrtf'.
1019         * lib/math.in.h (sqrtf): New declaration.
1020         * lib/sqrtf.c: New file.
1021         * m4/sqrtf.m4: New file.
1022         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1024         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1025         * modules/sqrtf: New file.
1026         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1027         * doc/posix-functions/sqrtf.texi: Mention the new module.
1028
1029 2011-10-08  Bruno Haible  <bruno@clisp.org>
1030
1031         Tests: Avoid link failures w.r.t. libintl.
1032         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1033         $(LIBINTL).
1034         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1035         $(LIBINTL).
1036         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1037         against $(LIBINTL).
1038         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1039         $(LIBINTL).
1040         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1041         $(LIBINTL).
1042         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1043
1044 2011-10-08  Bruno Haible  <bruno@clisp.org>
1045
1046         pow tests: Defeat compiler optimizations.
1047         * tests/test-pow.c (main): Assign arguments to x and y before use.
1048
1049 2011-10-08  Bruno Haible  <bruno@clisp.org>
1050
1051         gnulib-tool: Improve last commit.
1052         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1053         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1054         ignore dependencies that are not among the modules list.
1055
1056 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         gnulib-tool: don't follow dependencies to avoided modules
1059         This fixes a bug that is related to the previous one.
1060         * gnulib-tool (func_modules_transitive_closure)
1061         (func_emit_autoconf_snippets):
1062         Check whether a dependency is acceptable before using it.
1063         (--extract-dependencies): Report an error if --avoid is also used,
1064         since this combination of options is not yet supported.
1065
1066         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1067         Problem reported by Peter Dyballa in
1068         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1069         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1070         when echoing "$condition".
1071
1072 2011-10-07  Bruno Haible  <bruno@clisp.org>
1073
1074         Fix documentation about math functions on MacOS X.
1075         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1076         MacOS X 10.5.
1077         * doc/posix-functions/fdim.texi: Likewise.
1078         * doc/posix-functions/feclearexcept.texi: Likewise.
1079         * doc/posix-functions/fegetenv.texi: Likewise.
1080         * doc/posix-functions/fegetround.texi: Likewise.
1081         * doc/posix-functions/feholdexcept.texi: Likewise.
1082         * doc/posix-functions/feraiseexcept.texi: Likewise.
1083         * doc/posix-functions/fesetenv.texi: Likewise.
1084         * doc/posix-functions/fesetround.texi: Likewise.
1085         * doc/posix-functions/fetestexcept.texi: Likewise.
1086         * doc/posix-functions/feupdateenv.texi: Likewise.
1087         * doc/posix-functions/fmax.texi: Likewise.
1088         * doc/posix-functions/fmin.texi: Likewise.
1089         * doc/posix-functions/log2.texi: Likewise.
1090         * doc/posix-functions/modff.texi: Likewise.
1091         * doc/posix-functions/nan.texi: Likewise.
1092         * doc/posix-functions/nanf.texi: Likewise.
1093         * doc/posix-functions/nextafterf.texi: Likewise.
1094         * doc/posix-functions/remquo.texi: Likewise.
1095
1096 2011-10-07  Bruno Haible  <bruno@clisp.org>
1097
1098         modff: Drop assumption about library that defines modff.
1099         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1100         AC_CHECK_FUNCS.
1101         * modules/modff (Files): Add m4/mathfunc.m4.
1102
1103 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1104
1105         raise tests: Avoid a GCC warning.
1106         * tests/test-raise.c (handler): Use _Noreturn.
1107
1108 2011-10-07  Bruno Haible  <bruno@clisp.org>
1109
1110         Tests for module 'ldexpf'.
1111         * modules/ldexpf-tests: New file.
1112         * tests/test-ldexpf.c: New file.
1113
1114         New module 'ldexpf'.
1115         * lib/math.in.h (ldexpf): New declaration.
1116         * lib/ldexpf.c: New file.
1117         * m4/ldexpf.m4: New file.
1118         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1120         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1121         * modules/ldexpf: New file.
1122         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1123         * doc/posix-functions/ldexpf.texi: Mention the new module.
1124
1125 2011-10-06  Bruno Haible  <bruno@clisp.org>
1126
1127         frexpf: Work around problems on IRIX and mingw.
1128         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1130         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1131         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1132         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1133         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1134         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1135
1136 2011-10-06  Bruno Haible  <bruno@clisp.org>
1137
1138         fabsf: Drop assumption about library that defines fabsf.
1139         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1140         AC_CHECK_FUNCS.
1141         * modules/fabsf (Files): Add m4/mathfunc.m4.
1142
1143 2011-10-06  Bruno Haible  <bruno@clisp.org>
1144
1145         frexpf: Drop assumption about library that defines frexpf.
1146         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1147         'int *', 'float *', 'long double *', 'float', 'long double'.
1148         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1149         AC_CHECK_FUNCS.
1150         * modules/frexpf (Files): Add m4/mathfunc.m4.
1151
1152         Tests for module 'frexpf'.
1153         * modules/frexpf-tests: New file.
1154         * tests/test-frexpf.c: New file.
1155
1156         New module 'frexpf'.
1157         * lib/math.in.h (frexpf): New declaration.
1158         * lib/frexpf.c: New file.
1159         * m4/frexpf.m4: New file.
1160         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1162         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1163         * modules/frexpf: New file.
1164         * tests/test-math-c++.cc: Check the declaration of frexpf.
1165         * doc/posix-functions/frexpf.texi: Mention the new module.
1166
1167 2011-10-06  Bruno Haible  <bruno@clisp.org>
1168
1169         math: Sort function declarations of math.in.h.
1170         * lib/math.in.h (frexp, logb): Move declarations.
1171
1172 2011-10-05  Bruno Haible  <bruno@clisp.org>
1173
1174         Tests for module 'modff'.
1175         * modules/modff-tests: New file.
1176         * tests/test-modff.c: New file.
1177
1178         New module 'modff'.
1179         * lib/math.in.h (modff): New declaration.
1180         * lib/modff.c: New file.
1181         * m4/modff.m4: New file.
1182         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1184         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1185         * modules/modff: New file.
1186         * tests/test-math-c++.cc: Check the declaration of modff.
1187         * doc/posix-functions/modff.texi: Mention the new module.
1188
1189         modf tests: Make test sharper.
1190         * tests/test-modf.c (main): Strengthen upper bound.
1191
1192         modf: Use a .m4 file.
1193         * m4/modf.m4: New file.
1194         * modules/modf (Files): Add it.
1195         (configure.ac): Just invoke gl_FUNC_MODF.
1196
1197 2011-10-05  Bruno Haible  <bruno@clisp.org>
1198
1199         Tests for module 'fmodf'.
1200         * modules/fmodf-tests: New file.
1201         * tests/test-fmodf.c: New file.
1202
1203         New module 'fmodf'.
1204         * lib/math.in.h (fmodf): New declaration.
1205         * lib/fmodf.c: New file.
1206         * m4/fmodf.m4: New file.
1207         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1209         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1210         * modules/fmodf: New file.
1211         * tests/test-math-c++.cc: Check the declaration of fmodf.
1212         * doc/posix-functions/fmodf.texi: Mention the new module.
1213
1214         fmod: Use a .m4 file.
1215         * m4/fmod.m4: New file.
1216         * modules/fmod (Files): Add it.
1217         (configure.ac): Just invoke gl_FUNC_FMOD.
1218
1219 2011-10-05  Bruno Haible  <bruno@clisp.org>
1220
1221         Tests for module 'fabsf'.
1222         * modules/fabsf-tests: New file.
1223         * tests/test-fabsf.c: New file.
1224
1225         New module 'fabsf'.
1226         * lib/math.in.h (fabsf): New declaration.
1227         * lib/fabsf.c: New file.
1228         * m4/fabsf.m4: New file.
1229         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1231         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1232         * modules/fabsf: New file.
1233         * tests/test-math-c++.cc: Check the declaration of fabsf.
1234         * doc/posix-functions/fabsf.texi: Mention the new module.
1235
1236         fabs: Use a .m4 file.
1237         * m4/fabs.m4: New file.
1238         * modules/fabs (Files): Add it.
1239         (configure.ac): Just invoke gl_FUNC_FABS.
1240
1241 2011-10-05  Jim Meyering  <meyering@redhat.com>
1242
1243         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1244         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1245         ls -lL regression introduced in coreutils-8.12, it does so at the
1246         cost of an additional stat call in the common case.  Besides, now
1247         that the kernel change that prompted commit 95f7c57f has been reverted
1248         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1249         we have no use for commit 95f7c57f, "file-has-acl: use
1250         acl_extended_file_nofollow if available".
1251
1252 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1253
1254         file-has-acl: revert unintended change in behavior of ls -L
1255         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1256         derived from...
1257         (file_has_acl): ...code here.  Call it.
1258         This problem was introduced with 2011-07-22 commit 95f7c57f,
1259         "file-has-acl: use acl_extended_file_nofollow if available".
1260         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1261
1262 2011-10-03  Bruno Haible  <bruno@clisp.org>
1263
1264         poll: Avoid link errors on MSVC.
1265         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1266         * modules/poll (Depends-on): Add sockets.
1267         (Link): New section.
1268         * NEWS: Mention the change.
1269         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1270         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1271         $(LIB_POLL) instead of $(LIBSOCKET).
1272
1273 2011-10-03  Bruno Haible  <bruno@clisp.org>
1274
1275         sys_select tests: Fix link error on MSVC 9.
1276         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1277         with $(LIB_SELECT) instead of $(LIBSOCKET).
1278
1279 2011-10-03  Bruno Haible  <bruno@clisp.org>
1280
1281         sys_select: Fix compilation error on mingw.
1282         * lib/sys_select.in.h: On native Windows, include <io.h>.
1283
1284 2011-10-03  Bruno Haible  <bruno@clisp.org>
1285
1286         wmemset: Support for MSVC.
1287         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1288         whether wmemset() exists.
1289
1290 2011-10-03  Bruno Haible  <bruno@clisp.org>
1291
1292         wmemmove: Support for MSVC.
1293         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1294         whether wmemmove() exists.
1295
1296 2011-10-03  Bruno Haible  <bruno@clisp.org>
1297
1298         wmemcpy: Support for MSVC.
1299         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1300         whether wmemcpy() exists.
1301
1302 2011-10-03  Bruno Haible  <bruno@clisp.org>
1303
1304         wmemcmp: Support for MSVC.
1305         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1306         whether wmemcmp() exists.
1307
1308 2011-10-03  Bruno Haible  <bruno@clisp.org>
1309
1310         wmemchr: Support for MSVC.
1311         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1312         whether wmemchr() exists.
1313
1314 2011-10-03  Bruno Haible  <bruno@clisp.org>
1315
1316         glthread/*, strsignal: Support for MSVC.
1317         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1318         including <winsock.h> on MSVC 9.
1319         * lib/glthread/lock.h: Likewise.
1320         * lib/glthread/thread.h: Likewise.
1321         * lib/glthread/tls.h: Likewise.
1322         * lib/glthread/yield.h: Likewise.
1323         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1324         if HAVE_UNISTD_H is false.
1325         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1326
1327 2011-10-03  Bruno Haible  <bruno@clisp.org>
1328
1329         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1330         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1331         Set to 100000.
1332
1333 2011-10-03  Bruno Haible  <bruno@clisp.org>
1334
1335         acl: Fix specification.
1336         * lib/file-has-acl.c (file_has_acl): Fix specification.
1337
1338 2011-10-03  Bruno Haible  <bruno@clisp.org>
1339
1340         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1341         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1342         (compute_curr_prefix, shared_library_fullname,
1343         find_shared_library_fullname, get_shared_library_fullname, relocate):
1344         Use it together with PIC && INSTALLDIR.
1345         Reported by <jojelino@gmail.com>
1346         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1347
1348 2011-10-01  Jim Meyering  <meyering@redhat.com>
1349
1350         maint.mk: adjust a release-related rule not to require use of gzip
1351         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1352         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1353         projects that build only .tar.xz files.  Also fix an erroneous test.
1354
1355         test-linkat: don't leave behind a temporary file
1356         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1357         Otherwise, coreutils' "make distcheck" would fail with this:
1358           Only in /c/cu/tests/torture/coreutils/test/\
1359             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1360           make[2]: *** [my-distcheck] Error 1
1361
1362         float, math: add omitted file
1363         * lib/itold.c: Add file, required for yesterday's float change.
1364
1365 2011-10-01  Bruno Haible  <bruno@clisp.org>
1366
1367         isinf: Fix for OpenBSD/x86.
1368         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1369         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1370         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1371
1372 2011-10-01  Bruno Haible  <bruno@clisp.org>
1373
1374         isfinite: Fix syntax error in configure test.
1375         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1376
1377         isfinite: Fix typo.
1378         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1379         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1380
1381 2011-10-01  Bruno Haible  <bruno@clisp.org>
1382
1383         nonblocking tests: Fix test failure on Linux/IA-64.
1384         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1385         Set to 270000.
1386
1387 2011-10-01  Bruno Haible  <bruno@clisp.org>
1388
1389         mkfifoat tests: Fix a test failure on mingw.
1390         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1391         with error ENOSYS.
1392
1393 2011-09-30  Bruno Haible  <bruno@clisp.org>
1394
1395         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1396         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1397         'long double'. Set REPLACE_ITOLD.
1398         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1399         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1400         * lib/itold.c: New file.
1401         * modules/float (Files): Add lib/itold.c.
1402         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1403         (Makefile.am): Substitute REPLACE_ITOLD.
1404         * modules/math (Depends-on): Add float.
1405         (Makefile.am): Substitute REPLACE_ITOLD.
1406         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1407         * doc/posix-headers/math.texi: Likewise.
1408         * doc/posix-functions/logl.texi: Likewise.
1409
1410 2011-09-30  Bruno Haible  <bruno@clisp.org>
1411
1412         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1413         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1414         Set to 140000.
1415
1416 2011-09-30  Bruno Haible  <bruno@clisp.org>
1417
1418         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1419         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1420         invocation, say "right after AC_PROG_CC_STDC", not "right after
1421         AC_PROG_CC".
1422         Reported by Gary V. Vaughan <gary@gnu.org>.
1423
1424 2011-09-30  Bruno Haible  <bruno@clisp.org>
1425
1426         Centralize C99 requirement.
1427         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1428         * modules/stdarg (configure.ac-early): Invoke it instead of
1429         AC_PROG_CC_STDC.
1430         Reported by Gary V. Vaughan and Paul Eggert.
1431
1432 2011-09-29  Bruno Haible  <bruno@clisp.org>
1433
1434         float: Fix LDBL_MAX value on Linux/PowerPC.
1435         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1436         on Linux/PowerPC.
1437         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1438         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1439         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1440         platform.
1441         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1442
1443 2011-09-29  Bruno Haible  <bruno@clisp.org>
1444
1445         doc: Improve doc about gl_EARLY.
1446         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1447         AC_PROG_CC_STDC invocation.
1448         Reported by Gary V. Vaughan <gary@gnu.org>.
1449
1450 2011-09-28  Bruno Haible  <bruno@clisp.org>
1451
1452         fgetc, fputc, fread, fwrite tests: Fix link error.
1453         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1454         on non-MSVC platforms.
1455         * tests/test-fputc.c (main): Likewise.
1456         * tests/test-fread.c (main): Likewise.
1457         * tests/test-fwrite.c (main): Likewise.
1458         Reported by Jim Meyering.
1459
1460 2011-09-27  Bruno Haible  <bruno@clisp.org>
1461
1462         fputc, fwrite tests: Avoid test failure on MSVC.
1463         * tests/test-fgetc.c: Include msvc-inval.h.
1464         (main): Invoke gl_msvc_inval_ensure_handler.
1465         * tests/test-fputc.c: Include msvc-inval.h.
1466         (main): Invoke gl_msvc_inval_ensure_handler.
1467         * tests/test-fread.c: Include msvc-inval.h.
1468         (main): Invoke gl_msvc_inval_ensure_handler.
1469         * tests/test-fwrite.c: Include msvc-inval.h.
1470         (main): Invoke gl_msvc_inval_ensure_handler.
1471         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1472         * modules/fputc-tests (Depends-on): Likewise.
1473         * modules/fread-tests (Depends-on): Likewise.
1474         * modules/fwrite-tests (Depends-on): Likewise.
1475
1476 2011-09-27  Bruno Haible  <bruno@clisp.org>
1477
1478         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1479         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1480         (raise): Remove older, duplicated declaration.
1481         (_gl_raise_SIGPIPE): New declaration.
1482         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1483         (rpl_raise): Remove function.
1484         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1485         a gnulib-defined SIGPIPE here.
1486         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1487         'sigprocmask' has detected missing signal-blocking and the module
1488         'sigpipe' is enabled.
1489         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1490
1491 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1492
1493         base64-tests: avoid memory leak
1494         * tests/test-base64.c (main): Plug memory leak.
1495
1496         base32: new module
1497         * modules/base32: New module.
1498         * lib/base32.c: New file.
1499         * lib/base32.h: Likewise.
1500         * m4/base32.m4: Likewise.
1501         * modules/base32-tests: New test.
1502         * tests/test-base32.c: Likewise.
1503         * MODULES.html.sh (Misc): Mention it.
1504
1505 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1506
1507         gnulib: use more-standard license notice wording
1508         * gnulib-tool (func_emit_copyright_notice): When emitting a
1509         license notice into a file, use the standard wording as suggested
1510         by the current information for GNU maintainers, except say "file"
1511         rather than "program".  The new wording gives a license version
1512         number, which addresses an issue raised by Glenn Morris in
1513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1514         * m4/onceonly.m4: Use that same wording here, too.
1515
1516         dup2: minor simplification
1517         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1518         as lib/dup2.c no longer uses 'inline'.
1519
1520 2011-09-25  Bruno Haible  <bruno@clisp.org>
1521
1522         strings: Fix compilation error on MSVC.
1523         * lib/strings.in.h: Include <stddef.h> for size_t.
1524
1525 2011-09-25  Bruno Haible  <bruno@clisp.org>
1526
1527         fflush et al.: Document limitation on MSVC.
1528         * doc/posix-functions/fflush.texi: Document possible crash in handling
1529         mode other than DEFAULT_HANDLING.
1530         * doc/posix-functions/fgetc.texi: Likewise.
1531         * doc/posix-functions/fputc.texi: Likewise.
1532         * doc/posix-functions/fread.texi: Likewise.
1533         * doc/posix-functions/fwrite.texi: Likewise.
1534
1535 2011-09-25  Bruno Haible  <bruno@clisp.org>
1536
1537         msvc-inval: Allow three invalid parameter handling modes.
1538         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1539         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1540         macros.
1541         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1542         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1543         SANE_LIBRARY_HANDLING as a no-op.
1544         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1545         <stdlib.h>.
1546         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1547
1548 2011-09-25  Bruno Haible  <bruno@clisp.org>
1549
1550         msvc-inval: Make handler multithread-safe.
1551         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1552         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1553         declarations.
1554         (gl_msvc_inval_current): New declaration.
1555         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1556         Operate on the structure returned by gl_msvc_inval_current().
1557         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1558         Remove varaiables.
1559         (tls_index, tls_initialized): New variables.
1560         (not_per_thread): New variable.
1561         (gl_msvc_inval_current): New function.
1562         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1563         returned by gl_msvc_inval_current().
1564
1565 2011-09-25  Bruno Haible  <bruno@clisp.org>
1566
1567         msvc-inval: Install handler globally.
1568         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1569         !_MSC_VER.
1570         (gl_msvc_invalid_parameter_handler): Remove declaration.
1571         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1572         declarations.
1573         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1574         Install the handler globally, don't uninstall it.
1575         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1576         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1577         currently valid, call RaiseException instead.
1578         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1579         for !_MSC_VER.
1580
1581 2011-09-25  Bruno Haible  <bruno@clisp.org>
1582
1583         strerror_r-posix: Fix for MSVC 9.
1584         * lib/strerror_r.c (local_snprintf): New function.
1585         (snprintf): Define to local_snprintf, not to _snprintf.
1586
1587 2011-09-25  Bruno Haible  <bruno@clisp.org>
1588
1589         ftruncate: Support for MSVC 9.
1590         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1591         (chsize_nothrow): New function.
1592         (chsize): Redefine as a macro.
1593         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1594         * modules/ftruncate (Depends-on): Add msvc-inval.
1595
1596 2011-09-25  Bruno Haible  <bruno@clisp.org>
1597
1598         New module 'fstat'.
1599         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1600         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1601         * lib/fchdir.c (rpl_fstat): Remove function.
1602         * m4/fstat.m4: New file.
1603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1604         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1605         declared.
1606         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1607         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1608         * modules/fstat: New file.
1609         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1610         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1611         is set.
1612         * doc/posix-functions/fstat.texi: Mention the new module and the
1613         problem on MSVC.
1614         * NEWS: Mention the change.
1615         * modules/acl (Depends-on): Add fstat.
1616         * modules/chdir-safer (Depends-on): Likewise.
1617         * modules/chown (Depends-on): Likewise.
1618         * modules/copy-file (Depends-on): Likewise.
1619         * modules/fchdir (Depends-on): Likewise.
1620         * modules/fdopendir (Depends-on): Likewise.
1621         * modules/fopen (Depends-on): Likewise.
1622         * modules/fts (Depends-on): Likewise.
1623         * modules/getcwd (Depends-on): Likewise.
1624         * modules/isapipe (Depends-on): Likewise.
1625         * modules/linkat (Depends-on): Likewise.
1626         * modules/lseek (Depends-on): Likewise.
1627         * modules/mkdir-p (Depends-on): Likewise.
1628         * modules/open (Depends-on): Likewise.
1629         * modules/openat (Depends-on): Likewise.
1630         * modules/read-file (Depends-on): Likewise.
1631         * modules/renameat (Depends-on): Likewise.
1632         * modules/utimens (Depends-on): Likewise.
1633
1634 2011-09-25  Bruno Haible  <bruno@clisp.org>
1635
1636         linkat: Fix compilation on MSVC 9.
1637         * lib/linkat.c: Don't include <stdint.h>.
1638
1639 2011-09-25  Bruno Haible  <bruno@clisp.org>
1640
1641         fclose: Support for MSVC 9.
1642         * lib/fclose.c: Include msvc-inval.h.
1643         (fclose_nothrow): New function.
1644         (rpl_fclose): Use it.
1645         * modules/fclose (Depends-on): Add msvc-inval.
1646         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1647
1648 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1649
1650         dup2: minor simplifications
1651         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1652         that it's a performance win.
1653         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1654         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1655
1656 2011-09-24  Jim Meyering  <meyering@redhat.com>
1657
1658         test-futimens: avoid a warning from gcc -Wshadow
1659         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1660         to avoid a shadowing warning.
1661
1662 2011-09-24  Bruno Haible  <bruno@clisp.org>
1663
1664         fdopen: Support for MSVC 9.
1665         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1666         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1667         * lib/fdopen.c: Include msvc-inval.h.
1668         (fdopen_nothrow): New function.
1669         (rpl_fdopen): Use it.
1670         * modules/fdopen (Depends-on): Add msvc-inval.
1671         * modules/fclose-tests (Depends-on): Add fdopen.
1672         * modules/fflush-tests (Depends-on): Likewise.
1673         * modules/fgetc-tests (Depends-on): Likewise.
1674         * modules/fputc-tests (Depends-on): Likewise.
1675         * modules/fread-tests (Depends-on): Likewise.
1676         * modules/freopen-tests (Depends-on): Likewise.
1677         * modules/fseeko-tests (Depends-on): Likewise.
1678         * modules/ftello-tests (Depends-on): Likewise.
1679         * modules/fwrite-tests  (Depends-on): Likewise.
1680         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1681
1682 2011-09-24  Bruno Haible  <bruno@clisp.org>
1683
1684         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1685         * modules/fgetc-tests (Depends-on): Add unistd.
1686         * modules/fputc-tests (Depends-on): Likewise.
1687         * modules/fread-tests (Depends-on): Likewise.
1688         * modules/fwrite-tests (Depends-on): Likewise.
1689
1690 2011-09-24  Bruno Haible  <bruno@clisp.org>
1691
1692         dup: Simplify autoconf test.
1693         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1694         on gl_MSVC_INVAL's result.
1695
1696 2011-09-24  Bruno Haible  <bruno@clisp.org>
1697
1698         Tests for function fwrite().
1699         * modules/fwrite-tests: New file.
1700         * tests/test-fwrite.c: New file.
1701         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1702
1703         Tests for function fread().
1704         * modules/fread-tests: New file.
1705         * tests/test-fread.c: New file.
1706         * modules/stdio-tests (Depends-on): Add fread-tests.
1707
1708         Activate fputc tests.
1709         * modules/stdio-tests (Depends-on): Add fputc-tests.
1710
1711         Enhance fgetc, fputc tests.
1712         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1713         * tests/test-fputc.c (main): Likewise.
1714
1715 2011-09-24  Bruno Haible  <bruno@clisp.org>
1716
1717         write: Support for MSVC 9.
1718         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1719         is not 1.
1720         * lib/write.c (write_nothrow): New function.
1721         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1722         not 1. Use write_nothrow.
1723         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1724         invalid parameter handler.
1725         (gl_PREREQ_WRITE): New macro.
1726         * modules/write (Depends-on): Add msvc-inval.
1727         (configure.ac): Invoke gl_PREREQ_WRITE.
1728         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1729
1730 2011-09-24  Bruno Haible  <bruno@clisp.org>
1731
1732         read: Fix last commit.
1733         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1734
1735 2011-09-24  Bruno Haible  <bruno@clisp.org>
1736
1737         dup2: Fix last commit.
1738         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1739         (rpl_dup2): Disable fcntl workaround on native Windows.
1740
1741         sigprocmask: Make code safer.
1742         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1743         section that changes macro definitions for this compilation unit.
1744
1745 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1746
1747         dup2: clarify by coalescing Windows-specific material
1748         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1749         "msvc-nothrow.h"' to the Windows-specific section, so that the
1750         Emacs source need not contain these include files.
1751         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1752         Windows-specific fixes into this function rather than just the
1753         nothrow fix, as this shortens and clarifies the code.  Always
1754         define as a function, as that's a bit cleaner than having it be
1755         sometimes a function and sometimes a macro.
1756         (rpl_dup2): Move the Windows-specific stuff out of here and into
1757         ms_windows_dup2.  Don't protect the Haiku-related fix with
1758         "#if !defined __linux__", as the same code also works around
1759         a Linux kernel bug, and it doesn't add any system calls on any
1760         platform.  Add comment about FreeBSD 6.1.
1761
1762         sigprocmask: move #include directive
1763         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1764         Windows-specific section, so that the Emacs source need not
1765         contain msvc-inval.h.
1766
1767 2011-09-23  Bruno Haible  <bruno@clisp.org>
1768
1769         read: Support for MSVC 9.
1770         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1771         is not 1.
1772         * lib/read.c (read_nothrow): New function.
1773         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1774         read_nothrow.
1775         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1776         invalid parameter handler.
1777         (gl_PREREQ_READ): New macro.
1778         * modules/read (Depends-on): Add msvc-inval.
1779         (configure.ac): Invoke gl_PREREQ_READ.
1780         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1781
1782 2011-09-23  Bruno Haible  <bruno@clisp.org>
1783
1784         close: Support for MSVC 9.
1785         * lib/close.c: Include <errno.h>, msvc-inval.h.
1786         (close_nothrow): New function.
1787         (rpl_close): Use it.
1788         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1789         invalid parameter handler.
1790         * modules/close (Depends-on): Add msvc-inval.
1791         * modules/dup2-tests (Depends-on): Add close.
1792         * modules/dup3-tests (Depends-on): Likewise.
1793         * modules/fcntl-tests (Depends-on): Likewise.
1794         * modules/spawn-pipe-tests (Depends-on): Likewise.
1795         * modules/unistd-safer-tests (Depends-on): Likewise.
1796         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1797
1798 2011-09-23  Bruno Haible  <bruno@clisp.org>
1799
1800         New module 'dup'.
1801         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1802         Allow replacement.
1803         * lib/dup.c: New file.
1804         * lib/fchdir.c (rpl_dup): Remove function.
1805         * m4/dup.m4: New file.
1806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1807         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1809         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1810         * modules/dup: New file.
1811         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1812         'dup' module is in use.
1813         * modules/fdopendir (Depends-on): Add dup.
1814         * modules/fdutimensat-tests (Depends-on): Likewise.
1815         * modules/fts (Depends-on): Likewise.
1816         * modules/futimens-tests (Depends-on): Likewise.
1817         * modules/posix_spawnp-tests (Depends-on): Likewise.
1818         * modules/unistd-safer-tests (Depends-on): Likewise.
1819         * modules/utimens-tests (Depends-on): Likewise.
1820         * doc/posix-functions/dup.texi: Mention the new module and the problem
1821         on MSVC.
1822
1823 2011-09-23  Bruno Haible  <bruno@clisp.org>
1824
1825         getdtablesize: Support for MSVC 9.
1826         * lib/getdtablesize.c: Include msvc-inval.h.
1827         (_setmaxstdio_nothrow): New function.
1828         (_setmaxstdio): Redefine it.
1829         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1830         * modules/getdtablesize (Depends-on): Add msvc-inval.
1831         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1832
1833 2011-09-23  Bruno Haible  <bruno@clisp.org>
1834
1835         signal-h: Rename from signal.
1836         * modules/signal-h: Renamed from modules/signal.
1837         * modules/pthread_sigmask (Depends-on): Update.
1838         * modules/raise (Depends-on): Likewise.
1839         * modules/sigaction (Depends-on): Likewise.
1840         * modules/sigpipe (Depends-on): Likewise.
1841         * modules/sigprocmask (Depends-on): Likewise.
1842         * modules/sys_select (Depends-on): Likewise.
1843         * modules/signal-h-tests: Renamed from modules/signal-tests.
1844         (Files, Depends-on, Makefile.am): Update.
1845         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1846         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1847         (Files, Makefile.am): Update.
1848         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1849         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1850         * modules/signal: New placeholder file.
1851         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1852         * doc/posix-headers/signal.texi: Update.
1853         * NEWS: Mention the change.
1854
1855 2011-09-23  Bruno Haible  <bruno@clisp.org>
1856
1857         sigprocmask: Avoid crashes through signal() on MSVC 9.
1858         * lib/sigprocmask.c: Include msvc-inval.h.
1859         (signal_nothrow): New function.
1860         (signal): Redefine it.
1861         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1862         * modules/sigprocmask (Depends-on): Add msvc-inval.
1863         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1864
1865 2011-09-23  Bruno Haible  <bruno@clisp.org>
1866
1867         Tests for module 'raise'.
1868         * modules/raise-tests: New file.
1869         * tests/test-raise.c: New file.
1870
1871         raise: Support for MSVC.
1872         * lib/signal.in.h (raise): New declaration.
1873         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1874         for native Windows platforms.
1875         * m4/raise.m4: New file.
1876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1877         HAVE_RAISE, REPLACE_RAISE.
1878         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1879         REPLACE_RAISE.
1880         * modules/raise (Status, Notice): Remove fields.
1881         (Files): Add m4/raise.m4.
1882         (Depends-on): Add signal, msvc-inval.
1883         (configure.ac): Use the common idioms.
1884         (Maintainer): Add me.
1885         * tests/test-signal-c++.cc: Check the signature of raise.
1886         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1887
1888 2011-09-23  Bruno Haible  <bruno@clisp.org>
1889
1890         pipe2: Fix compilation on pre-C99 compilers.
1891         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1892
1893 2011-09-23  Bruno Haible  <bruno@clisp.org>
1894
1895         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1896         * lib/msvc-nothrow.h: New file.
1897         * lib/msvc-nothrow.c: New file.
1898         * m4/msvc-nothrow.m4: New file.
1899         * modules/msvc-nothrow: New file.
1900         * lib/dup2.c: Include msvc-nothrow.h.
1901         (rpl_dup2): No need to protect _get_osfhandle call here.
1902         * lib/accept4.c: Include msvc-nothrow.h.
1903         * lib/error.c: Likewise.
1904         * lib/fcntl.c: Likewise.
1905         * lib/lseek.c: Likewise.
1906         * lib/nonblocking.c: Likewise.
1907         * lib/poll.c: Likewise.
1908         * lib/read.c: Likewise.
1909         * lib/select.c: Likewise.
1910         * lib/sockets.h: Likewise.
1911         * lib/sockets.c: Likewise.
1912         * lib/stdio-read.c: Likewise.
1913         * lib/stdio-write.c: Likewise.
1914         * lib/write.c: Likewise.
1915         * lib/w32sock.h: Likewise.
1916         * lib/w32spawn.h: Likewise.
1917         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1918         * lib/fsync.c: Likewise.
1919         * lib/isapipe.c: Likewise.
1920         * modules/dup2 (Depends-on): Add msvc-nothrow.
1921         * modules/accept4 (Depends-on): Likewise.
1922         * modules/error (Depends-on): Likewise.
1923         * modules/fcntl (Depends-on): Likewise.
1924         * modules/lseek (Depends-on): Likewise.
1925         * modules/nonblocking (Depends-on): Likewise.
1926         * modules/poll (Depends-on): Likewise.
1927         * modules/read (Depends-on): Likewise.
1928         * modules/select (Depends-on): Likewise.
1929         * modules/sockets (Depends-on): Likewise.
1930         * modules/sigpipe (Depends-on): Likewise.
1931         * modules/write (Depends-on): Likewise.
1932         * modules/accept (Depends-on): Likewise.
1933         * modules/bind (Depends-on): Likewise.
1934         * modules/connect (Depends-on): Likewise.
1935         * modules/gethostname (Depends-on): Likewise.
1936         * modules/getpeername (Depends-on): Likewise.
1937         * modules/getsockname (Depends-on): Likewise.
1938         * modules/getsockopt (Depends-on): Likewise.
1939         * modules/ioctl (Depends-on): Likewise.
1940         * modules/listen (Depends-on): Likewise.
1941         * modules/recv (Depends-on): Likewise.
1942         * modules/recvfrom (Depends-on): Likewise.
1943         * modules/send (Depends-on): Likewise.
1944         * modules/sendto (Depends-on): Likewise.
1945         * modules/setsockopt (Depends-on): Likewise.
1946         * modules/shutdown (Depends-on): Likewise.
1947         * modules/socket (Depends-on): Likewise.
1948         * modules/execute (Depends-on): Likewise.
1949         * modules/spawn-pipe (Depends-on): Likewise.
1950         * modules/flock (Depends-on): Likewise.
1951         * modules/fsync (Depends-on): Likewise.
1952         * modules/isapipe (Depends-on): Likewise.
1953         * tests/test-cloexec.c: Include msvc-nothrow.h.
1954         * tests/test-dup-safer.c: Likewise.
1955         * tests/test-dup2.c: Likewise.
1956         * tests/test-dup3.c: Likewise.
1957         * tests/test-fcntl.c: Likewise.
1958         * tests/test-pipe.c: Likewise.
1959         * tests/test-pipe2.c: Likewise.
1960         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1961         * modules/unistd-safer-tests (Depends-on): Likewise.
1962         * modules/dup2-tests (Depends-on): Likewise.
1963         * modules/dup3-tests (Depends-on): Likewise.
1964         * modules/fcntl-tests (Depends-on): Likewise.
1965         * modules/pipe-posix-tests (Depends-on): Likewise.
1966         * modules/pipe2-tests (Depends-on): Likewise.
1967
1968 2011-09-23  Bruno Haible  <bruno@clisp.org>
1969
1970         dup2: Make code more maintainable.
1971         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1972         (rpl_dup2): Use it.
1973         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1974         * modules/dup2 (configure.ac): Invoke it.
1975         Reported by Paul Eggert.
1976
1977 2011-09-23  Bruno Haible  <bruno@clisp.org>
1978
1979         msvc-inval: Fix compilation error.
1980         * lib/msvc-inval.h: Include <excpt.h>.
1981
1982 2011-09-23  Bruno Haible  <bruno@clisp.org>
1983
1984         mkdir: Tweak for MSVC 9.
1985         * lib/sys_stat.in.h: Update comments.
1986         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1987
1988         Tests for module 'chdir'.
1989         * modules/chdir-tests: New file.
1990         * tests/test-chdir.c: New file.
1991
1992         New module 'chdir'.
1993         * modules/chdir: New file.
1994         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1995         (chdir): New declaration.
1996         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1997         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1998         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1999         * tests/test-unistd-c++.cc: Check signature of chdir.
2000         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2001         * modules/chdir-long (Depends-on): Add chdir.
2002         * modules/fchdir (Depends-on): Likewise.
2003         * modules/rename (Depends-on): Likewise.
2004         * modules/savewd (Depends-on): Likewise.
2005
2006         rmdir: Support for mingw, MSVC 9.
2007         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2008         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2009
2010         getcwd: Tweak for MSVC 9.
2011         * lib/unistd.in.h: Update comments.
2012         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2013
2014 2011-09-22  Bruno Haible  <bruno@clisp.org>
2015
2016         strerror_r-posix: Avoid a link error on MSVC.
2017         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2018         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2019
2020 2011-09-22  Bruno Haible  <bruno@clisp.org>
2021
2022         select: Avoid link errors on MSVC.
2023         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2024         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2025         * modules/pselect (Link): Likewise.
2026         * NEWS: Mention the change.
2027         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2028         test-select-stdin against $(LIB_SELECT).
2029         * modules/pselect-tests (Makefile.am): Link test-pselect against
2030         $(LIB_SELECT).
2031
2032 2011-09-22  Bruno Haible  <bruno@clisp.org>
2033
2034         select: Avoid compilation error on MSVC.
2035         * lib/select.c: Don't include <stdbool.h>.
2036
2037 2011-09-21  Bruno Haible  <bruno@clisp.org>
2038
2039         Consolidate all uses of PATH_MAX in *.m4 files.
2040         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2041         macros.
2042         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2043         and gl_PATHMAX_SNIPPET.
2044         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2046         * modules/chdir-long (Files): Add m4/pathmax.m4.
2047         * modules/getcwd (Files): Likewise.
2048
2049 2011-09-21  Bruno Haible  <bruno@clisp.org>
2050
2051         ftruncate: Un-deprecate, concentrate on Win32 support.
2052         * modules/ftruncate (Status, Notice): Remove sections.
2053         (Depends-on): Add largefile.
2054         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2055         non-mingw platforms.
2056         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2057         include <io.h>.
2058         * modules/perror-tests (Depends-on): Add ftruncate.
2059         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2060         'ftruncate' module.
2061
2062 2011-09-21  Bruno Haible  <bruno@clisp.org>
2063
2064         Add dependencies to new dirent related modules.
2065         * modules/opendir (Depends-on): Add closedir.
2066         * modules/getcwd (Depends-on): Add opendir, closedir.
2067         * modules/dirent-safer-tests (Depends-on): Likewise.
2068         * modules/fdopendir-tests (Depends-on): Likewise.
2069         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2070         * modules/renameat-tests (Depends-on): Likewise.
2071
2072 2011-09-21  Bruno Haible  <bruno@clisp.org>
2073
2074         opendir: Avoid compilation error on mingw.
2075         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2076         * modules/opendir (Depends-on): Add unistd.
2077
2078 2011-09-21  Bruno Haible  <bruno@clisp.org>
2079
2080         ftruncate tests: Avoid a test failure on mingw.
2081         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2082
2083 2011-09-21  Bruno Haible  <bruno@clisp.org>
2084
2085         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2086         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2087         native Windows.
2088
2089 2011-09-21  Bruno Haible  <bruno@clisp.org>
2090
2091         New module 'fdopen'.
2092         * lib/stdio.in.h (fdopen): New declaration.
2093         * lib/fdopen.c: New file.
2094         * m4/fdopen.m4: New file.
2095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2096         REPLACE_FDOPEN.
2097         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2098         REPLACE_FDOPEN.
2099         * modules/fdopen: New file.
2100         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2101         * tests/test-stdio-c++.cc: Check signature of fdopen.
2102         * doc/posix-functions/fdopen.texi: Mention the new module.
2103
2104 2011-09-21  Bruno Haible  <bruno@clisp.org>
2105
2106         unlockpt tests: Avoid test failure on NetBSD 5.1.
2107         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2108         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2109
2110 2011-09-21  Bruno Haible  <bruno@clisp.org>
2111
2112         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2113         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2114         * tests/test-getlogin_r.c (main): Likewise.
2115
2116 2011-09-20  Bruno Haible  <bruno@clisp.org>
2117
2118         time tests: Don't require pid_t.
2119         * doc/posix-headers/time.texi: Revert last change.
2120         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2121         * tests/test-time.c: Comment out the check for pid_t.
2122
2123 2011-09-20  Bruno Haible  <bruno@clisp.org>
2124
2125         fsync tests: Avoid a test failure on mingw.
2126         * tests/test-fsync.c (main): Allow a failure with EIO.
2127
2128 2011-09-20  Bruno Haible  <bruno@clisp.org>
2129
2130         euidaccess: Update comments.
2131         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2132
2133 2011-09-20  Bruno Haible  <bruno@clisp.org>
2134
2135         Ensure EBADF returns for socket functions on mingw.
2136         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2137         descriptor is invalid.
2138         * lib/bind.c (rpl_bind): Likewise.
2139         * lib/connect.c (rpl_connect): Likewise.
2140         * lib/getpeername.c (rpl_getpeername): Likewise.
2141         * lib/getsockname.c (rpl_getsockname): Likewise.
2142         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2143         * lib/listen.c (rpl_listen): Likewise.
2144         * lib/recv.c (rpl_recv): Likewise.
2145         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2146         * lib/send.c (rpl_send): Likewise.
2147         * lib/sendto.c (rpl_sendto): Likewise.
2148         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2149         * lib/shutdown.c (rpl_shutdown): Likewise.
2150
2151 2011-09-20  Bruno Haible  <bruno@clisp.org>
2152
2153         select tests: EBADF tests.
2154         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2155         test_bad_fd): New functions.
2156         (test_function): Invoke also test_bad_fd.
2157
2158 2011-09-20  Bruno Haible  <bruno@clisp.org>
2159
2160         Tests for module 'posix_spawn_file_actions_addopen.
2161         * modules/posix_spawn_file_actions_addopen-tests: New file.
2162         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2163
2164         Tests for module 'posix_spawn_file_actions_adddup2'.
2165         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2166         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2167
2168         Tests for module 'posix_spawn_file_actions_addclose'.
2169         * modules/posix_spawn_file_actions_addclose-tests: New file.
2170         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2171
2172 2011-09-20  Bruno Haible  <bruno@clisp.org>
2173
2174         Tests for module 'unlockpt'.
2175         * modules/unlockpt-tests: New file.
2176         * tests/test-unlockpt.c: New file.
2177         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2178
2179         Tests for module 'grantpt'.
2180         * modules/grantpt-tests: New file.
2181         * tests/test-grantpt.c: New file.
2182         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2183
2184 2011-09-20  Bruno Haible  <bruno@clisp.org>
2185
2186         freopen tests: EBADF tests.
2187         * tests/test-freopen.c: Include errno.h, unistd.h.
2188         (main): Add tests for EBADF, commented out for the moment.
2189
2190         fclose tests: EBADF tests.
2191         * tests/test-fclose.c (main): Add tests for EBADF.
2192
2193         fflush tests: EBADF tests.
2194         * tests/test-fflush.c: Include errno.h, macros.h.
2195         (main): Add tests for EBADF.
2196
2197         ftello tests: EBADF tests.
2198         * tests/test-ftello4.sh: New file.
2199         * tests/test-ftello4.c: New file.
2200         * modules/ftello-tests (Files): Add them.
2201         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2202
2203         fseeko tests: EBADF tests.
2204         * tests/test-fseeko4.sh: New file.
2205         * tests/test-fseeko4.c: New file.
2206         * modules/fseeko-tests (Files): Add them.
2207         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2208
2209         Tests for function fputc().
2210         * modules/fputc-tests: New file.
2211         * tests/test-fputc.c: New file.
2212         * modules/stdio-tests (Depends-on): Add fputc-tests.
2213
2214         Tests for function fgetc().
2215         * modules/fgetc-tests: New file.
2216         * tests/test-fgetc.c: New file.
2217         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2218
2219         Tests for function fdopen().
2220         * modules/fdopen-tests: New file.
2221         * tests/test-fdopen.c: New file.
2222         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2223
2224         Tests for module 'vdprintf'.
2225         * modules/vdprintf-tests: New file.
2226         * tests/test-vdprintf.c: New file.
2227
2228         Tests for module 'dprintf'.
2229         * modules/dprintf-tests: New file.
2230         * tests/test-dprintf.c: New file.
2231
2232 2011-09-20  Bruno Haible  <bruno@clisp.org>
2233
2234         Tests for module 'ioctl'.
2235         * modules/ioctl-tests: New file.
2236         * tests/test-ioctl.c: New file.
2237
2238 2011-09-20  Bruno Haible  <bruno@clisp.org>
2239
2240         fcntl tests: EBADF tests.
2241         * tests/test-fcntl.c (main): Add more tests for EBADF.
2242
2243 2011-09-20  Bruno Haible  <bruno@clisp.org>
2244
2245         utimensat tests: EBADF tests.
2246         * tests/test-utimensat.c (main): Add tests for EBADF.
2247
2248         renameat tests: EBADF tests.
2249         * tests/test-renameat.c (main): Add tests for EBADF.
2250
2251         mkfifoat tests: EBADF tests.
2252         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2253
2254         readlinkat tests: EBADF tests.
2255         * tests/test-readlinkat.c (main): Add tests for EBADF.
2256
2257         symlinkat tests: EBADF tests.
2258         * tests/test-symlinkat.c (main): Add tests for EBADF.
2259
2260         linkat tests: EBADF tests.
2261         * tests/test-linkat.c (main): Add tests for EBADF.
2262
2263         Tests for module 'faccessat'.
2264         * modules/faccessat-tests: New file.
2265         * tests/test-faccessat.c: New file.
2266
2267         fdopendir tests: EBADF tests.
2268         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2269
2270         openat tests: EBADF tests.
2271         * tests/test-fchownat.c (main): Add tests for EBADF.
2272         * tests/test-fstatat.c (main): Likewise.
2273         * tests/test-mkdirat.c (main): Likewise.
2274         * tests/test-openat.c (main): Likewise.
2275         * tests/test-unlinkat.c (main): Likewise.
2276         * tests/test-fchmodat.c: New file.
2277         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2278         (Makefile.am): Also run 'test-fchmodat'.
2279
2280 2011-09-20  Bruno Haible  <bruno@clisp.org>
2281
2282         utimens, futimens, fdutimensat tests: EBADF tests.
2283         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2284
2285         Tests for function fstat().
2286         * modules/fstat-tests: New file.
2287         * tests/test-fstat.c: New file.
2288         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2289
2290 2011-09-20  Bruno Haible  <bruno@clisp.org>
2291
2292         test-ttyname_r tests: EBADF tests.
2293         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2294
2295         Tests for module 'isatty'.
2296         * modules/isatty-tests: New file.
2297         * tests/test-isatty.c: New file.
2298
2299         Tests for module 'write'.
2300         * modules/write-tests: New file.
2301         * tests/test-write.c: New file.
2302
2303         Tests for module 'read'.
2304         * modules/read-tests: New file.
2305         * tests/test-read.c: New file.
2306
2307         pwrite tests: EBADF tests.
2308         * tests/test-pwrite.c (main): Add tests for EBADF.
2309
2310         pread tests: EBADF tests.
2311         * tests/test-pread.c (main): Add tests for EBADF.
2312
2313         lseek tests: EBADF tests.
2314         * tests/test-lseek.c (main): Add more tests for EBADF.
2315
2316         Tests for module 'ftruncate'.
2317         * modules/ftruncate-tests: New file.
2318         * tests/test-ftruncate.sh: New file.
2319         * tests/test-ftruncate.c: New file.
2320
2321         fsync tests: EBADF tests.
2322         * tests/test-fsync.c (main): Add more tests for EBADF.
2323
2324         fdatasync tests: EBADF tests.
2325         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2326
2327         Tests for module 'fchown'.
2328         * modules/fchown-tests: New file.
2329         * tests/test-fchown.c: New file.
2330
2331         Tests for module 'fchmod'.
2332         * modules/fchmod-tests: New file.
2333         * tests/test-fchmod.c: New file.
2334
2335         fchdir tests: EBADF tests.
2336         * tests/test-fchdir.c (main): Add more tests for EBADF.
2337
2338         dup2 tests: EBADF tests.
2339         * tests/test-dup2.c (main): Add more tests for EBADF.
2340
2341         Tests for module 'dup'.
2342         * modules/dup-tests: New file.
2343         * tests/test-dup.c: New file.
2344
2345         Tests for module 'close'.
2346         * modules/close-tests: New file.
2347         * tests/test-close.c: New file.
2348
2349 2011-09-20  Bruno Haible  <bruno@clisp.org>
2350
2351         Tests for module 'shutdown'.
2352         * modules/shutdown-tests: New file.
2353         * tests/test-shutdown.c: New file.
2354
2355         Tests for module 'setsockopt'.
2356         * modules/setsockopt-tests: New file.
2357         * tests/test-setsockopt.c: New file.
2358
2359         Tests for module 'sendto'.
2360         * modules/sendto-tests: New file.
2361         * tests/test-sendto.c: New file.
2362
2363         Tests for module 'send'.
2364         * modules/send-tests: New file.
2365         * tests/test-send.c: New file.
2366
2367         Tests for module 'recvfrom'.
2368         * modules/recvfrom-tests: New file.
2369         * tests/test-recvfrom.c: New file.
2370
2371         Tests for module 'recv'.
2372         * modules/recv-tests: New file.
2373         * tests/test-recv.c: New file.
2374
2375         Tests for module 'listen'.
2376         * modules/listen-tests: New file.
2377         * tests/test-listen.c: New file.
2378
2379         Tests for module 'getsockopt'.
2380         * modules/getsockopt-tests: New file.
2381         * tests/test-getsockopt.c: New file.
2382
2383         Tests for module 'getsockname'.
2384         * modules/getsockname-tests: New file.
2385         * tests/test-getsockname.c: New file.
2386
2387         Tests for module 'getpeername'.
2388         * modules/getpeername-tests: New file.
2389         * tests/test-getpeername.c: New file.
2390
2391         Tests for module 'connect'.
2392         * modules/connect-tests: New file.
2393         * tests/test-connect.c: New file.
2394
2395         Tests for module 'bind'.
2396         * modules/bind-tests: New file.
2397         * tests/test-bind.c: New file.
2398
2399         accept4 tests: Fix for native Windows.
2400         * tests/test-accept4.c: Include sockets.h.
2401         (main): Invoke gl_sockets_startup.
2402         * modules/accept4-tests (Depends-on): Add sockets.
2403
2404         accept tests: Fix for native Windows.
2405         * tests/test-accept.c: Include sockets.h.
2406         (main): Invoke gl_sockets_startup.
2407         * modules/accept-tests (Depends-on): Add sockets.
2408
2409 2011-09-19  Bruno Haible  <bruno@clisp.org>
2410
2411         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2412         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2413         do...while(0).
2414         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2415         Suggested by Paul Eggert.
2416
2417 2011-09-19  Bruno Haible  <bruno@clisp.org>
2418
2419         sched: Ensure pid_t is defined.
2420         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2421         not define pid_t.
2422         * lib/sched.in.h: Include <sys/types.h>.
2423         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2425
2426 2011-09-19  Bruno Haible  <bruno@clisp.org>
2427
2428         msvc-inval: Ensure the entire expansion is a single statement.
2429         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2430         of braces.
2431
2432 2011-09-19  Jim Meyering  <meyering@redhat.com>
2433
2434         tests: use printf, not echo in init.sh's warn_ function
2435         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2436         misbehave when given strings containing a backslash or starting
2437         with e.g., -n.  James Youngman suggested setting IFS.
2438
2439 2011-09-19  Eric Blake  <eblake@redhat.com>
2440
2441         futimens: enhance test
2442         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2443         closed non-negative fd.
2444
2445         date: accept 'hence' as opposite of 'ago'
2446         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2447         * tests/test-parse-datetime.c (main): Enhance test.
2448         Suggested by Jesse Wilson.
2449
2450 2011-09-19  Jim Meyering  <meyering@redhat.com>
2451
2452         getcwd: don't fail in a deep directory on a system without openat
2453         Before this change, getcwd would fail when called from a directory
2454         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2455         the non-openat implementation used "..", "../..", "../../..", etc.
2456         to access ancestor directories.  With too many, that string would
2457         be longer than PATH_MAX.
2458         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2459         using gnulib's openat replacement.
2460         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2461         we're using the replacement function.
2462
2463 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2464
2465         maint.mk: avoid warnings from perl about missing files
2466         * top/maint.mk (def_sym_regex): Ignore files listed in
2467         $(gl_other_headers_) that do not exist, say because a project
2468         does not use a corresponding module.
2469
2470 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2471
2472         stat: use pathmax.h only if needed
2473         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2474         This is better for Emacs, which does not have a mingw port and
2475         therefore can avoid the pathmax module.
2476
2477         utimens: remove dependency on dup2
2478         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2479         to work around the Linux kernel bug.
2480         * modules/utimens (Depends-on): Remove dup2.
2481
2482 2011-09-18  Bruno Haible  <bruno@clisp.org>
2483
2484         inet_ntop, inet_pton: Look for it also in libresolv.
2485         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2486         libnsl, search for it in libresolv.
2487         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2488         Needed on Solaris 7.
2489
2490 2011-09-18  Bruno Haible  <bruno@clisp.org>
2491
2492         accept, accept4 tests: Avoid link error on Solaris.
2493         * modules/accept-tests (Makefile.am): Link test-accept against
2494         $(LIBSOCKET).
2495         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2496         $(LIBSOCKET).
2497
2498         accept4: Avoid link error on Solaris.
2499         * modules/accept4 (Link): New section.
2500
2501         socket functions: Avoid link errors on Solaris.
2502         * modules/accept (Depends-on): Add socketlib.
2503         (Link): New section.
2504         * modules/bind (Depends-on): Add socketlib.
2505         (Link): New section.
2506         * modules/connect (Depends-on): Add socketlib.
2507         (Link): New section.
2508         * modules/getpeername (Depends-on): Add socketlib.
2509         (Link): New section.
2510         * modules/getsockname (Depends-on): Add socketlib.
2511         (Link): New section.
2512         * modules/getsockopt (Depends-on): Add socketlib.
2513         (Link): New section.
2514         * modules/listen (Depends-on): Add socketlib.
2515         (Link): New section.
2516         * modules/recv (Depends-on): Add socketlib.
2517         (Link): New section.
2518         * modules/recvfrom (Depends-on): Add socketlib.
2519         (Link): New section.
2520         * modules/send (Depends-on): Add socketlib.
2521         (Link): New section.
2522         * modules/sendto (Depends-on): Add socketlib.
2523         (Link): New section.
2524         * modules/setsockopt (Depends-on): Add socketlib.
2525         (Link): New section.
2526         * modules/shutdown (Depends-on): Add socketlib.
2527         (Link): New section.
2528         * modules/socket (Depends-on): Add socketlib.
2529         (Link): New section.
2530
2531 2011-09-18  Bruno Haible  <bruno@clisp.org>
2532
2533         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2534         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2535         than 5 seconds.
2536         * modules/ptsname-tests (configure.ac): Test for alarm.
2537
2538 2011-09-18  Bruno Haible  <bruno@clisp.org>
2539
2540         posix_spawn_file_actions_add*: Fix module dependencies.
2541         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2542         posix_spawn_file_actions_init.
2543         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2544         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2545
2546 2011-09-18  Bruno Haible  <bruno@clisp.org>
2547
2548         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2549         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2550         * tests/test-renameat.c (main): Likewise.
2551
2552 2011-09-18  Bruno Haible  <bruno@clisp.org>
2553
2554         Tests for module 'accept4'.
2555         * modules/accept4-tests: New file.
2556         * tests/test-accept4.c: New file.
2557
2558 2011-09-18  Bruno Haible  <bruno@clisp.org>
2559
2560         Tests for module 'accept'.
2561         * modules/accept-tests: New file.
2562         * tests/test-accept.c: New file.
2563
2564 2011-09-18  Bruno Haible  <bruno@clisp.org>
2565
2566         dup2: Support for MSVC.
2567         * lib/dup2.c: Include msvc-inval.h.
2568         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2569         _get_osfhandle calls.
2570         * modules/dup2 (Depends-on): Add msvc-inval.
2571         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2572
2573         New module 'msvc-inval'.
2574         * lib/msvc-inval.h: New file.
2575         * lib/msvc-inval.c: New file.
2576         * m4/msvc-inval.m4: New file.
2577         * modules/msvc-inval: New file.
2578
2579 2011-09-17  Bruno Haible  <bruno@clisp.org>
2580
2581         Tests for module 'pclose'.
2582         * modules/pclose-tests: New file.
2583
2584         New module 'pclose'.
2585         * lib/stdio.in.h (pclose): New declaration.
2586         * lib/pclose.c: New file.
2587         * m4/pclose.m4: New file.
2588         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2589         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2590         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2591         * modules/pclose: New file.
2592         * modules/popen-tests (Depends-on): Add pclose.
2593         * modules/popen-safer-tests (Depends-on): Likewise.
2594         * doc/posix-functions/pclose.texi: Mention the new module.
2595
2596 2011-09-17  Bruno Haible  <bruno@clisp.org>
2597
2598         popen: Support for MSVC.
2599         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2600         * lib/popen.c (popen): Provide alternate definition for native Windows.
2601         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2603         * modules/popen (Depends-on, configure.ac): Update condition.
2604         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2605         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2606         fixed.
2607
2608 2011-09-17  Bruno Haible  <bruno@clisp.org>
2609
2610         isnanl, isnand, isnanf: Work around MSVC bug.
2611         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2612
2613 2011-09-17  Bruno Haible  <bruno@clisp.org>
2614
2615         sys_socket tests: Fix recent mistake.
2616         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2617
2618 2011-09-17  Bruno Haible  <bruno@clisp.org>
2619
2620         putenv: Support for MSVC.
2621         * modules/putenv (Depends-on): Add environ.
2622         * lib/putenv.c (environ): Disable declaration.
2623         * lib/unistd.in.h: Update comment.
2624
2625 2011-09-17  Bruno Haible  <bruno@clisp.org>
2626
2627         math: Avoid macro redefinition warnings on MSVC.
2628         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2629         Undefine before redefining.
2630
2631 2011-09-17  Bruno Haible  <bruno@clisp.org>
2632
2633         doc: Mention functions which are declared as macros.
2634         * doc/posix-functions/*[fl].texi: Mention that some functions are
2635         defined as macros with arguments only.
2636
2637 2011-09-17  Bruno Haible  <bruno@clisp.org>
2638
2639         Add dependencies to new dirent related modules.
2640         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2641         * modules/fts (Depends-on): Likewise.
2642         * modules/glob (Depends-on): Likewise.
2643         * modules/savedir (Depends-on): Likewise.
2644         * modules/scandir (Depends-on): Likewise.
2645         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2646         * modules/fdopendir (Depends-on): Add opendir.
2647
2648 2011-09-17  Bruno Haible  <bruno@clisp.org>
2649
2650         inet_pton: Support for MSVC on Windows Vista or newer.
2651         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2652         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2653         HAVE_DECL_INET_PTON is defined.
2654         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2655         On platforms with <winsock2.h>, test whether inet_pton is declared in
2656         <ws2tcpip.h>. If so, arrange to replace it.
2657         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2658         REPLACE_INET_PTON.
2659         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2660         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2661         (Depends-on, configure.ac): Update condition.
2662         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2663
2664 2011-09-17  Bruno Haible  <bruno@clisp.org>
2665
2666         inet_ntop: Support for MSVC on Windows Vista or newer.
2667         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2668         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2669         HAVE_DECL_INET_NTOP is defined.
2670         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2671         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2672         <ws2tcpip.h>. If so, arrange to replace it.
2673         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2674         REPLACE_INET_NTOP.
2675         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2676         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2677         (Depends-on, configure.ac): Update condition.
2678         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2679
2680 2011-09-16  Eric Blake  <eblake@redhat.com>
2681
2682         test-fsync: yet another enhancement
2683         * tests/test-fsync.c (main): Also test behavior on read-only text
2684         file.
2685
2686 2011-09-16  Bruno Haible  <bruno@clisp.org>
2687
2688         Enhance fsync, fdatasync tests.
2689         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2690         * tests/test-fdatasync.c (main): Likewise.
2691
2692 2011-09-16  Bruno Haible  <bruno@clisp.org>
2693
2694         Support for MSVC compiler: Ensure mode_t gets defined.
2695         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2696         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2698         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2699         * tests/test-fcntl-h.c: Check that mode_t is defined.
2700         * tests/test-sys_stat.c: Likewise.
2701         * tests/test-sys_types.c: Likewise.
2702         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2703         * doc/posix-headers/sys_stat.texi: Likewise.
2704         * doc/posix-headers/sys_types.texi: Likewise.
2705
2706 2011-09-16  Bruno Haible  <bruno@clisp.org>
2707
2708         sys_stat: Support for MSVC.
2709         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2710         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2711         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2712         MSVC.
2713
2714 2011-09-16  Bruno Haible  <bruno@clisp.org>
2715
2716         Support for MSVC compiler: Ensure off_t gets defined.
2717         * lib/unistd.in.h: Include <sys/types.h>.
2718         * tests/test-fcntl-h.c: Check that off_t is defined.
2719         * tests/test-sys_stat.c: Likewise.
2720         * tests/test-sys_types.c: Likewise.
2721
2722 2011-09-16  Eric Blake  <eblake@redhat.com>
2723
2724         fdatasync: port to Solaris
2725         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2726         * modules/fdatasync (Link): Document it.
2727         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2728
2729         fdatasync: port to MacOS X 10.7
2730         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2731         declared.
2732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2733         * modules/unistd (Makefile.am): Substitute it.
2734         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2735         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2736
2737         fdatasync: minor improvements
2738         * modules/fdatasync (Depends-on): Add condition for fsync.
2739         * lib/fdatasync.c (fdatasync): Add comment.
2740         * tests/test-unistd-c++.cc: Test fdatasync.
2741
2742         unistd: update refs to newer POSIX
2743         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2744         Suggested by Bruno Haible.
2745
2746         fdatasync: new module
2747         * modules/fsync (Description): Document difference to fdatasync.
2748         * modules/fdatasync: New module.
2749         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2750         * lib/fdatasync.c (fdatasync): Likewise.
2751         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2752         defaults.
2753         * modules/unistd (Makefile.am): Set witnesses.
2754         * lib/unistd.in.h (fdatasync): Declare.
2755         * MODULES.html.sh: Document it.
2756         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2757         * modules/fdatasync-tests: New test.
2758         * tests/test-fdatasync.c: Likewise.
2759
2760 2011-09-16  Eric Blake  <eblake@redhat.com>
2761
2762         test-fsync: enhance tests
2763         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2764         * tests/test-fsync.c (main): Enhance test.
2765
2766 2011-09-15  Bruno Haible  <bruno@clisp.org>
2767
2768         Support for MSVC compiler: Ensure ssize_t gets defined.
2769         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2770         * doc/posix-headers/stdio.texi: Likewise.
2771         * modules/stdio (Depends-on): Add ssize_t.
2772         * modules/sys_socket (Depends-on): Likewise.
2773         * modules/sys_types (Depends-on): Likewise.
2774         * modules/sys_uio (Depends-on): Likewise.
2775         * modules/unistd (Depends-on): Likewise.
2776         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2777         * tests/test-sys_types.c: Check that ssize_t is defined.
2778
2779 2011-09-14  Bruno Haible  <bruno@clisp.org>
2780
2781         Avoid using #, the m4 comment starter character, near brackets.
2782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2783         delimiter character in sed expressions.
2784         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2785         Suggested by Eric Blake.
2786
2787         Properly quote AC_CHECK_DECLS' 4th argument.
2788         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2789         argument.
2790         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2791         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2792         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2793         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2794         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2795         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2797         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2798         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2799         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2800         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2801         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2802         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2803         * m4/isinf.m4 (gl_ISINF): Likewise.
2804         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2805         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2806         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2807         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2808         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2810         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2811         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2812         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2813         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2814         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2815         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2817         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2819         Reported by Eric Blake.
2820
2821         Properly quote AC_CHECK_DECL's 4th argument.
2822         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2823         argument.
2824         * m4/argp.m4 (gl_ARGP): Likewise.
2825         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2826         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2827         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2828         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2829         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2830         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2831         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2832         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2833         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2834         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2835         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2836         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2837         Reported by Eric Blake.
2838
2839 2011-09-14  Eric Blake  <eblake@redhat.com>
2840
2841         opendir: avoid compile warning
2842         * lib/opendir.c (includes): Always include errno.h.
2843         Reported by Tatsuro MATSUOKA.
2844
2845 2011-09-14  Jim Meyering  <meyering@redhat.com>
2846
2847         maint.mk: sc_tight_scope: propagate failure from sub-make
2848         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2849         Reported by Martin von Gagern.
2850
2851 2011-09-13  Bruno Haible  <bruno@clisp.org>
2852
2853         tempname: Support for MSVC.
2854         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2855         MSVC.
2856         * modules/tempname (Depends-on): Add fcntl-h.
2857
2858 2011-09-13  Bruno Haible  <bruno@clisp.org>
2859
2860         sys_time: Support for MSVC.
2861         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2862         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2863         include <winsock2.h>.
2864         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2865         function declarations that collide with POSIX.
2866         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2867         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2868
2869 2011-09-13  Bruno Haible  <bruno@clisp.org>
2870
2871         stat: Support for MSVC.
2872         * lib/stat.c: Include pathmax.h.
2873         * modules/stat (Depends-on): Add pathmax.
2874
2875         pathmax: Support for native Windows.
2876         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2877
2878 2011-09-12  Bruno Haible  <bruno@clisp.org>
2879
2880         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2881         * lib/dirent.in.h (struct dirent): New type.
2882         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2883         DT_WHT): New macros.
2884         (DIR): New type.
2885         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2886         (readdir, rewinddir): New declarations.
2887         * lib/dirent-private.h: New file.
2888         * lib/opendir.c: New file.
2889         * lib/readdir.c: New file.
2890         * lib/rewinddir.c: New file.
2891         * lib/closedir.c: New file.
2892         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2893         * m4/opendir.m4: New file.
2894         * m4/readdir.m4: New file.
2895         * m4/rewinddir.m4: New file.
2896         * m4/closedir.m4: New file.
2897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2898         REPLACE_CLOSEDIR here.
2899         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2900         readdir, rewinddir are declared.
2901         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2902         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2903         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2904         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2905         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2906         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2907         * modules/opendir: New file.
2908         * modules/readdir: New file.
2909         * modules/rewinddir: New file.
2910         * modules/closedir: New file.
2911         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2912         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2913         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2914         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2915         * NEWS: Mention the 'fchdir' change.
2916
2917 2011-09-11  Bruno Haible  <bruno@clisp.org>
2918
2919         asm-underscore.m4: Support for MSVC.
2920         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2921         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2922
2923 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2924
2925         Doc about crypt functions.
2926         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2927         needing for _GNU_SOURCE to get crypt.
2928         * doc/posix-functions/encrypt.texi: Likewise.
2929         * doc/posix-functions/setkey.texi: Likewise.
2930
2931 2011-09-11  Bruno Haible  <bruno@clisp.org>
2932
2933         doc: Update regarding MSVC 9.
2934         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2935         tested".
2936         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2937         * doc/posix-headers/*.texi: Likewise.
2938         * doc/pastposix-functions/*.texi: Likewise.
2939         * doc/glibc-functions/*.texi: Likewise.
2940         * doc/glibc-headers/*.texi: Likewise.
2941
2942 2011-09-11  Bruno Haible  <bruno@clisp.org>
2943
2944         unistd et al.: Don't assume <unistd.h> exists.
2945         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2946         does not exist.
2947         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2948         exist. But include <stdlib.h>.
2949         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2950         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2951         symlink() does not exist.
2952         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2953         include <io.h> instead.
2954         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2956         include <direct.h> instead.
2957         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2959         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2960         <io.h> instead.
2961         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2962         correctly if the system does not have hard links.
2963         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2964         <direct.h> instead.
2965         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2966         it when looking for function declarations.
2967         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2968         <direct.h> and <io.h> instead.
2969         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2970
2971 2011-09-11  Bruno Haible  <bruno@clisp.org>
2972
2973         strcase: Support for MSVC.
2974         * modules/strcase (Status, Notice): Remove obsoletion mark.
2975         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2976         * doc/posix-functions/strncasecmp.texi: Likewise.
2977
2978         strings: Don't assume <strings.h> exists.
2979         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2980         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2981         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2982         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2983
2984 2011-09-11  Bruno Haible  <bruno@clisp.org>
2985
2986         dirent: Don't assume <dirent.h> exists.
2987         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2988         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2989         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2990         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2991
2992 2011-09-11  Bruno Haible  <bruno@clisp.org>
2993
2994         Fix wint_t on MSVC.
2995         * lib/wchar.in.h (wint_t): On MSVC, override it.
2996         * lib/wctype.in.h (wint_t): Likewise.
2997         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2998         MSVC.
2999         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3000         * doc/posix-headers/wctype.texi: Likewise.
3001
3002 2011-09-11  Bruno Haible  <bruno@clisp.org>
3003
3004         sys_types: Fix typo.
3005         * lib/sys_types.in.h: Fix typo in comment.
3006         Reported by Paul Eggert.
3007
3008         Support for MSVC compiler: Ensure size_t gets defined.
3009         * modules/strings (Depends-on): Add 'sys_types'.
3010         * modules/sys_uio (Depends-on): Likewise.
3011         * lib/sys_uio.in.h: Update comment.
3012
3013         C++ tests for module 'sys_types'.
3014         * modules/sys_types-c++-tests: New file.
3015         * tests/test-sys_types-c++.cc: New file.
3016
3017         Tests for module 'sys_types'.
3018         * modules/sys_types-tests: New file.
3019         * tests/test-sys_types.c: New file.
3020
3021         New module 'sys_types'.
3022         * lib/sys_types.in.h: New file.
3023         * m4/sys_types_h.m4: New file.
3024         * modules/sys_types: New file.
3025         * doc/posix-headers/sys_types.texi: Mention the new module and the
3026         size_t problem on MSVC 9.
3027
3028 2011-09-11  Bruno Haible  <bruno@clisp.org>
3029
3030         Support for MSVC compiler: Avoid division by a literal 0.
3031         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3032         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3033         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3034         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3035         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3036         * tests/infinity.h: New file.
3037         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3038         on MSVC.
3039         * tests/test-ceilf1.c: Include infinity.h.
3040         (main): Use Infinityf.
3041         * tests/test-ceil1.c: Include infinity.h.
3042         (main): Use Infinityd.
3043         * tests/test-ceill.c: Include infinity.h.
3044         (main): Use Infinityl.
3045         * tests/test-dprintf-posix.c: Include infinity.h.
3046         (test_function): Use Infinityd.
3047         * tests/test-floorf1.c: Include infinity.h.
3048         (main): Use Infinityf.
3049         * tests/test-floor1.c: Include infinity.h.
3050         (main): Use Infinityd.
3051         * tests/test-floorl.c: Include infinity.h.
3052         (main): Use Infinityl.
3053         * tests/test-fprintf-posix.c: Include infinity.h.
3054         (test_function): Use Infinityd.
3055         * tests/test-frexp.c: Include infinity.h.
3056         (main): Use Infinityd.
3057         * tests/test-frexpl.c: Include infinity.h.
3058         (main): Use Infinityl.
3059         * tests/test-isfinite.c: Include infinity.h.
3060         (test_isfinitef): Use Infinityf.
3061         (test_isfinited): Use Infinityd.
3062         (test_isfinitel): Use Infinityl.
3063         * tests/test-isinf.c: Include infinity.h.
3064         (test_isinff): Use Infinityf.
3065         (test_isinfd): Use Infinityd.
3066         (test_isinfl): Use Infinityl.
3067         * tests/test-isnan.c: Include infinity.h.
3068         (test_float): Use Infinityf.
3069         (test_double): Use Infinityd.
3070         (test_long_double): Use Infinityl.
3071         * tests/test-isnanf.h: Include infinity.h.
3072         (main): Use Infinityf.
3073         * tests/test-isnand.h: Include infinity.h.
3074         (main): Use Infinityd.
3075         * tests/test-isnanl.h: Include infinity.h.
3076         (main): Use Infinityl.
3077         * tests/test-ldexpl.c: Include infinity.h.
3078         (main): Use Infinityl.
3079         * tests/test-printf-posix.h: Include infinity.h.
3080         (test_function): Use Infinityd.
3081         * tests/test-roundf1.c: Include infinity.h.
3082         (main): Use Infinityf.
3083         * tests/test-round1.c: Include infinity.h.
3084         (main): Use Infinityd.
3085         * tests/test-roundl.c: Include infinity.h.
3086         (main): Use Infinityl.
3087         * tests/test-signbit.c: Include infinity.h.
3088         (test_signbitf): Use Infinityf.
3089         (test_signbitd): Use Infinityd.
3090         (test_signbitl): Use Infinityl.
3091         * tests/test-snprintf-posix.h: Include infinity.h.
3092         (test_function): Use Infinityd, Infinityl.
3093         * tests/test-sprintf-posix.h: Include infinity.h.
3094         (test_function): Use Infinityd, Infinityl.
3095         * tests/test-truncf1.c: Include infinity.h.
3096         (main): Use Infinityf.
3097         * tests/test-trunc1.c: Include infinity.h.
3098         (main): Use Infinityd.
3099         * tests/test-truncl.c: Include infinity.h.
3100         (main): Use Infinityl.
3101         * tests/test-vasnprintf-posix.c: Include infinity.h.
3102         (test_function): Use Infinityd, Infinityl.
3103         * tests/test-vasprintf-posix.c: Include infinity.h.
3104         (test_function): Use Infinityd, Infinityl.
3105         * modules/ceilf-tests (Files): Add tests/infinity.h.
3106         * modules/ceil-tests (Files): Likewise.
3107         * modules/ceill-tests (Files): Likewise.
3108         * modules/dprintf-posix-tests (Files): Likewise.
3109         * modules/floorf-tests (Files): Likewise.
3110         * modules/floor-tests (Files): Likewise.
3111         * modules/floorl-tests (Files): Likewise.
3112         * modules/fprintf-posix-tests (Files): Likewise.
3113         * modules/frexp-tests (Files): Likewise.
3114         * modules/frexp-nolibm-tests (Files): Likewise.
3115         * modules/frexpl-tests (Files): Likewise.
3116         * modules/frexpl-nolibm-tests (Files): Likewise.
3117         * modules/isfinite-tests (Files): Likewise.
3118         * modules/isinf-tests (Files): Likewise.
3119         * modules/isnan-tests (Files): Likewise.
3120         * modules/isnanf-tests (Files): Likewise.
3121         * modules/isnanf-nolibm-tests (Files): Likewise.
3122         * modules/isnand-tests (Files): Likewise.
3123         * modules/isnand-nolibm-tests (Files): Likewise.
3124         * modules/isnanl-tests (Files): Likewise.
3125         * modules/isnanl-nolibm-tests (Files): Likewise.
3126         * modules/ldexpl-tests (Files): Likewise.
3127         * modules/printf-posix-tests (Files): Likewise.
3128         * modules/roundf-tests (Files): Likewise.
3129         * modules/round-tests (Files): Likewise.
3130         * modules/roundl-tests (Files): Likewise.
3131         * modules/signbit-tests (Files): Likewise.
3132         * modules/snprintf-posix-tests (Files): Likewise.
3133         * modules/sprintf-posix-tests (Files): Likewise.
3134         * modules/truncf-tests (Files): Likewise.
3135         * modules/trunc-tests (Files): Likewise.
3136         * modules/truncl-tests (Files): Likewise.
3137         * modules/vasnprintf-posix-tests (Files): Likewise.
3138         * modules/vasprintf-posix-tests (Files): Likewise.
3139         * modules/vdprintf-posix-tests (Files): Likewise.
3140         * modules/vfprintf-posix-tests (Files): Likewise.
3141         * modules/vprintf-posix-tests (Files): Likewise.
3142         * modules/vsnprintf-posix-tests (Files): Likewise.
3143         * modules/vsprintf-posix-tests (Files): Likewise.
3144         * modules/xprintf-posix-tests (Files): Likewise.
3145
3146 2011-09-11  Bruno Haible  <bruno@clisp.org>
3147
3148         Ensure pid_t gets defined.
3149         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3150         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3151         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3152         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3153         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3154         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3155         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3156         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3157         * tests/test-fcntl-h.c: Check that pid_t is defined.
3158         * tests/test-sched.c: Likewise.
3159         * tests/test-termios.c: Likewise.
3160         * tests/test-time.c: Likewise.
3161         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3162         * doc/posix-headers/signal.texi: Likewise.
3163         * doc/posix-headers/sys_types.texi: Likewise.
3164         * doc/posix-headers/time.texi: Likewise.
3165
3166 2011-09-11  Bruno Haible  <bruno@clisp.org>
3167
3168         acl: Fix compilation on Solaris 10 (older version).
3169         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3170         of ACE_EVERYONE.
3171         * lib/set-mode-acl.c (qset_acl): Likewise.
3172         Reported by Christian Jullien <eligis@orange.fr>.
3173
3174 2011-09-10  Bruno Haible  <bruno@clisp.org>
3175
3176         iconv, unsetenv: Add support for MSVC compiler.
3177         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3179
3180 2011-09-10  Bruno Haible  <bruno@clisp.org>
3181
3182         *printf: Add support for MSVC compiler.
3183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3184         handles the exception caused by the %n directive. When cross-compiling,
3185         guess no on native Windows.
3186         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3187         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3188         emulate it through vsnprintf.
3189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3190         * doc/posix-functions/dprintf.texi: Update documentation regarding
3191         MSVC 9.
3192         * doc/posix-functions/fprintf.texi: Likewise.
3193         * doc/posix-functions/printf.texi: Likewise.
3194         * doc/posix-functions/snprintf.texi: Likewise.
3195         * doc/posix-functions/sprintf.texi: Likewise.
3196         * doc/posix-functions/swprintf.texi: Likewise.
3197         * doc/posix-functions/vdprintf.texi: Likewise.
3198         * doc/posix-functions/vfprintf.texi: Likewise.
3199         * doc/posix-functions/vprintf.texi: Likewise.
3200         * doc/posix-functions/vsnprintf.texi: Likewise.
3201         * doc/posix-functions/vsprintf.texi: Likewise.
3202         * doc/glibc-functions/asprintf.texi: Likewise.
3203         * doc/glibc-functions/obstack_printf.texi: Likewise.
3204         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3205         * doc/glibc-functions/vasprintf.texi: Likewise.
3206
3207 2011-09-10  Bruno Haible  <bruno@clisp.org>
3208
3209         nocrash: Add support for native Windows.
3210         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3211
3212 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3213             Bruno Haible  <bruno@clisp.org>
3214
3215         absolute-header, include-next: Add support for MSVC compiler.
3216         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3217         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3218         directory separator in #line directives.
3219         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3220         recognize also backslash as directory separator in #line directives.
3221
3222 2011-09-08  Jim Meyering  <meyering@redhat.com>
3223
3224         maint.mk: mark the post-release commit log with "maint: " prefix
3225         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3226         one-line commit-log summary.
3227
3228 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3229             Bruno Haible  <bruno@clisp.org>
3230
3231         Doc about crypt functions.
3232         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3233         systems.
3234         * doc/posix-functions/encrypt.texi: Likewise.
3235         * doc/posix-functions/setkey.texi: Likewise.
3236
3237 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3238
3239         * lib/gc.h: Fix copyright header.
3240
3241 2011-09-07  Bruno Haible  <bruno@clisp.org>
3242
3243         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3244         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3245         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3246
3247 2011-09-07  Bruno Haible  <bruno@clisp.org>
3248
3249         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3250         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3251         * lib/freopen.c: Likewise.
3252         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3253         * lib/lstat.c: Likewise.
3254         * lib/stat.c: Likewise.
3255         * lib/open.c: Use different syntax for include of <fcntl.h>.
3256         * lib/openat.c: Include fcntl.h again, explicitly.
3257
3258 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3259
3260         parse-datetime: document the newly accepted format
3261         * doc/parse-datetime.texi (Combined date and time of day items):
3262         New section.
3263
3264 2011-09-06  Bruno Haible  <bruno@clisp.org>
3265
3266         acl: Fix a test failure on newer Solaris 10 with ZFS.
3267         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3268         ENOSYS as no ACL.
3269         Reported by Jim Meyering.
3270
3271 2011-09-06  Bruno Haible  <bruno@clisp.org>
3272
3273         acl: Update for AIX >= 5.3 with NFS.
3274         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3275         ENOSYS as no ACL.
3276
3277         acl: Fix a test failure on AIX >= 5.3 with NFS.
3278         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3279         as no ACL.
3280
3281 2011-09-06  Bruno Haible  <bruno@clisp.org>
3282
3283         acl: Fix a test failure on IRIX 6.5 with NFS.
3284         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3285         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3286         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3287         * lib/copy-acl.c (qcopy_acl): Likewise.
3288
3289 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3290
3291         openat: port to AIX 7.1 with large files
3292         AIX 7.1 does a "#define openat open64at" if large files are in use,
3293         so we can't simply #undef openat.  Use the orig_openat trick (similar
3294         to orig_open in lib/open.c) to work around the problem.  Problem
3295         reported by Kevin Brott for GNU tar, in the thread containing
3296         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3297         * lib/openat.c (__need_system_fcntl_h): Define first.
3298         Include <fcntl.h> and <sys/types.h> before undefining.
3299         (orig_openat) [HAVE_OPENAT]: New inline function.
3300         (openat) [HAVE_OPENAT]: Do not undef.
3301         (rpl_openat): Use orig_openat, not openat.
3302
3303 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3304             Bruno Haible  <bruno@clisp.org>
3305
3306         acl: Avoid errors on NonStop Kernel.
3307         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3308         ENOTSUP errors.
3309
3310 2011-09-05  Bruno Haible  <bruno@clisp.org>
3311
3312         acl: Clean up Solaris code.
3313         * lib/acl-internal.h: Remove no-op #if.
3314         * lib/file-has-acl.c: Likewise.
3315         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3316         * lib/copy-acl.c (qcopy_acl): Likewise.
3317
3318 2011-09-05  Bruno Haible  <bruno@clisp.org>
3319
3320         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3321         binaries built on the original Solaris 10.
3322         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3323         trivial.
3324
3325 2011-09-05  Bruno Haible  <bruno@clisp.org>
3326
3327         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3328         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3329         10.
3330         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3331         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3332         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3333         instead of acl_get, facl_get, acl_set, facl_set.
3334
3335 2011-09-05  Bruno Haible  <bruno@clisp.org>
3336
3337         copy-file: Try unit tests on more file systems.
3338         * tests/test-copy-file-1.sh: New file.
3339         * tests/test-copy-file-2.sh: New file.
3340         * modules/copy-file-tests (Files): Add them.
3341         (Makefile.am): Add them to TESTS.
3342
3343         acl: Try unit tests on more file systems.
3344         * tests/test-file-has-acl-1.sh: New file.
3345         * tests/test-file-has-acl-2.sh: New file.
3346         * tests/test-set-mode-acl-1.sh: New file.
3347         * tests/test-set-mode-acl-2.sh: New file.
3348         * tests/test-copy-acl-1.sh: New file.
3349         * tests/test-copy-acl-2.sh: New file.
3350         * modules/acl-tests (Files): Add them.
3351         (Makefile.am): Add them to TESTS.
3352
3353 2011-09-04  Bruno Haible  <bruno@clisp.org>
3354
3355         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3356         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3357         10.
3358         (OLD_ALLOW, OLD_DENY): New macros.
3359         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3360         ACE_ACCESS_ALLOWED_ACE_TYPE.
3361         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3362         ACE_ACCESS_DENIED_ACE_TYPE.
3363         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3364         (NEW_ACE_EXECUTE): Fix value.
3365         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3366         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3367         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3368         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3369         NEW_ACE_SYNCHRONIZE): New macros.
3370         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3371         instead of acl_fromtext, acl_set, facl_set.
3372         Fixes a coreutils/tests/cp/perm failure.
3373
3374 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3375
3376         openat: test for fstatat (..., 0) bug
3377         Further testing with tar suggests that fstatat (..., 0)
3378         does not work in general, on AIX 7.1; see
3379         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3380         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3381         replacement fstatat (which is what older AIX releases were using
3382         anyway).
3383         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3384         use is now changed to orig_fstatat.  This was probably the right
3385         thing to do anyway.
3386         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3387         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3388         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3389         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3390         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3391         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3392         if the bug is found.
3393
3394         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3395         This tests for another fstatat bug on AIX 7.1:
3396         fstatat (AT_FDCWD, ..., 0) does not work.  See
3397         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3398         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3399         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3400         (rpl_fstatat): Adjust so that it works around either (or both)
3401         bugs if present.
3402         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3403
3404 2011-09-03  Karl Berry  <karl@gnu.org>
3405
3406         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3407         in index entries.
3408
3409 2011-09-02  Bruno Haible  <bruno@clisp.org>
3410
3411         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3412         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3413         values of AR, ARFLAGS, RANLIB.
3414         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3415
3416 2011-09-02  Bruno Haible  <bruno@clisp.org>
3417
3418         Find 'ar' program that fits with --host argument.
3419         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3420
3421 2011-09-02  Bruno Haible  <bruno@clisp.org>
3422
3423         tests: init.sh: Support any non-GNU diff.
3424         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3425         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3426         Solaris 8.
3427
3428 2011-09-02  Bruno Haible  <bruno@clisp.org>
3429
3430         tests: init.sh: work also with any non-GNU diff that supports -u
3431         * tests/init.sh: Relax check for diff -u support.
3432         Rather than checking for GNU diff via --version, simply check
3433         for support for -u itself.  Useful at least on OpenBSD 4.9,
3434         AIX 7.1, IRIX 6.5, and Solaris 10.
3435
3436 2011-09-01  Bruno Haible  <bruno@clisp.org>
3437
3438         strtoimax, strtoumax: Document problem on HP-UX 11.
3439         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3440         * doc/posix-functions/strtoumax.texi: Likewise.
3441
3442 2011-09-01  Bruno Haible  <bruno@clisp.org>
3443
3444         strtoumax: Avoid link error on OSF/1 with DTK cc.
3445         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3446         defined as a function.
3447         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3448         strtoumax is defined, not whether it is declared.
3449
3450 2011-09-01  Bruno Haible  <bruno@clisp.org>
3451
3452         strtoimax: Avoid link error on OSF/1 with DTK cc.
3453         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3454         defined as a function.
3455         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3456         strtoimax is defined, not whether it is declared.
3457
3458 2011-09-01  Bruno Haible  <bruno@clisp.org>
3459
3460         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3461         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3462         as a function.
3463         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3464         whether it is declared.
3465
3466 2011-09-01  Bruno Haible  <bruno@clisp.org>
3467
3468         imaxabs: Avoid link error on OSF/1 with DTK cc.
3469         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3470         as a function.
3471         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3472         whether it is declared.
3473
3474 2011-09-01  Bruno Haible  <bruno@clisp.org>
3475
3476         Tests for module 'strtoumax'.
3477         * modules/strtoumax-tests: New file.
3478         * tests/test-strtoumax.c: New file.
3479
3480         Tests for module 'strtoimax'.
3481         * modules/strtoimax-tests: New file.
3482         * tests/test-strtoimax.c: New file.
3483
3484         Tests for module 'imaxdiv'.
3485         * modules/imaxdiv-tests: New file.
3486         * tests/test-imaxdiv.c: New file.
3487
3488         Tests for module 'imaxabs'.
3489         * modules/imaxabs-tests: New file.
3490         * tests/test-imaxabs.c: New file.
3491
3492 2011-09-01  Bruno Haible  <bruno@clisp.org>
3493
3494         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3495         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3496         pthread_create.
3497
3498 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3499
3500         openat: work around AIX 7.1 fstatat issue
3501         This should fix the problem that was not properly fixed
3502         in the previous change, dated 2011-08-30.
3503         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3504         __need_system_stat_h defined.
3505         (orig_fstatat) [HAVE_FSTATAT]: New function.
3506         (rpl_fstatat): Go back to the old way of doing things,
3507         except call orig_fstatat instead of fstatat.
3508         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3509         Remove unnecessary check whether fstatat fills in st_size etc.
3510
3511 2011-09-01  Bruno Haible  <bruno@clisp.org>
3512
3513         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3514         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3515         just include the system's header.
3516
3517 2011-08-31  Jim Meyering  <meyering@redhat.com>
3518
3519         tests: avoid spurious assertion failure in test-float.c on ppc64
3520         * tests/test-float.c (test_long_double): Comment out an assertion,
3521         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3522         with gcc-4.4.4.
3523
3524         maint: indent with spaces, not TABs
3525         I need to get in the habit of running gnulib's "make check".
3526         Both of these would have been caught.
3527         * m4/largefile.m4: Indent with spaces, not TABs.
3528         * lib/parse-datetime.y (iso_8601_time): Likewise.
3529         Spotted by Pádraig Brady.
3530
3531         test-parse-datetime.c: accommodate a relatively strict gcc warning
3532         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3533         to avoid a warning from gcc's -Werror=missing-declarations.
3534         Insert a few spaces-before-funcall-parenthesis.
3535
3536 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3537
3538         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3539         The parser now accepts ISO 8601 date-time strings with "T" as the
3540         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3541         with a space between the date and time strings.  Now it also parses
3542         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3543         variants like "2004-02-29T16:21:42.333-07:00"
3544         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3545         of day representation using the 'T' separator character.
3546         * doc/parse-datetime.texi (General date syntax): replace use of
3547         deprecated --iso-8601 option with --rfc-3339 in example of date
3548         command output formats that can be parsed.
3549         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3550         lib/parse-datetime.y.
3551         (gmt_offset): New function.
3552         (main): Add additional test cases to validate ISO8601 extended
3553         date and time of day parsing.
3554
3555 2011-08-31  Bruno Haible  <bruno@clisp.org>
3556
3557         freopen: Documentation.
3558         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3559         name.
3560         Reported by Claudio Bley <claudio.bley@gmail.com>.
3561
3562 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3563
3564         freopen: Don't crash if the filename argument is NULL.
3565         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3566         NULL.
3567
3568 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3569
3570         openat: work around AIX 7.1 fstatat bug
3571         Problem reported by Kevin Brott for GNU tar, in the thread containing
3572         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3573         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3574         FSTATAT_ST_SIZE_ETC_BROKEN.
3575         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3576         rpl_fstatat.
3577         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3578         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3579         AC_CHECK_FUNCS_ONCE for fstatat.
3580         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3581         fchmodat, mkdirat, openat and unlinkat.
3582
3583 2011-08-30  Bruno Haible  <bruno@clisp.org>
3584
3585         Avoid endless recursions if config.h includes some header files.
3586         * lib/fopen.c (__need_FILE): Define already before including config.h.
3587         * lib/freopen.c (__need_FILE): Likewise.
3588         * lib/open.c (__need_system_fcntl_h): Likewise.
3589         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3590         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3591         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3592
3593 2011-08-25  Karl Berry  <karl@gnu.org>
3594
3595         * config/srclist.txt (ylwrap): new try.
3596         * build-aux/ylwrap: new file.
3597
3598 2011-08-23  Bruno Haible  <bruno@clisp.org>
3599
3600         tmpdir: Use a good default directory on native Windows.
3601         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3602         (P_tmpdir): Default to _P_tmpdir on native Windows.
3603         (path_search): On native Windows, try the value returned by GetTempPath
3604         before trying P_tmpdir.
3605         * modules/tmpdir (Depends-on): Add pathmax.
3606         Suggested by John Darrington <john@darrington.wattle.id.au>.
3607
3608 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3609
3610         doc: fix typo in README-release
3611         * top/README-release: Capitalize first word of a sentence.
3612
3613 2011-08-19  Jim Meyering  <meyering@redhat.com>
3614
3615         fts: do not exhaust memory when processing million-entry directories
3616         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3617         directory would require about 256*N bytes of memory.  Thus, it was
3618         easy to construct a directory too large to be processed by any of
3619         those tools.  With this change, fts' maximum memory utilization is
3620         now limited to around 30MB.
3621         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3622         (fts_read): When we've processed the final entry (i.e., when
3623         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3624         using the parent entry to read any remaining entries.  Dispatch
3625         depending on what fts_build returns:
3626         - NULL+stop, aka failure: stop
3627         - NULL otherwise: move up in the dir hierarchy
3628         - non-NULL: handle this new entry
3629         (fts_build): Declare and use new local, continue_readdir.
3630         Prepare to be called from fts_read, when the entries
3631         from a partially-read directory have just been exhausted.
3632         In that case, we'll skip the opendir and instead use the parent's
3633         fts_dirp and derive dir_fd from that.
3634         Finally, in the readdir loop, if we read max_entries entries,
3635         exit the loop ensuring *not* to call closedir.  This is required
3636         so that fts_dirp can be reused on a subsequent call.
3637         Prompted by Ben England's report of memory exhaustion in find
3638         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3639
3640         maint: fts: move decl of `dp' down into while loop; split a long line
3641         * lib/fts.c (fts_build): No semantic change.
3642
3643         fts: add/use new struct member, fts_dirp
3644         We are about to use this to manage any directory with
3645         too many entries to read all of them into memory at once.
3646         To do that, we'll need to save the DIR* pointer in each
3647         affected FTSENT struct.
3648         * lib/fts_.h: Include <dirent.h>.
3649         (struct FTSENT) [fts_dirp]: New member.
3650         * lib/fts.c (closedir_and_clear): Define.
3651         Use it in place of closedir so that we are sure to
3652         clear the new fts_dirp member when done with it.
3653         (fts_alloc): Initialize the new member.
3654         (fts_lfree): Free, if needed.
3655
3656         maint: fts: give __opendir2 a new parameter and rename
3657         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3658         than surreptitiously using sole caller's "dir_fd".
3659         (fts_opendir): Rename from __opendir2.
3660
3661         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3662         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3663
3664         maint: fts.c: correct off-by-one indentation
3665         * lib/fts.c (fts_build): Correct indentation, change style
3666         of a couple of block comments, and bracing style.
3667
3668         maint: fts.c: move __opendir2 #define "up" out of function body
3669         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3670
3671         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3672         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3673         out for a long time and besides was useful only on BSD systems.
3674
3675 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3676
3677         regex: port to Stratus OpenVOS
3678         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3679         define to empty, rather than attempting nonportable optimizations.
3680         Problem reported by Paul Green in:
3681         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3682         and fix suggested by Eric Blake in:
3683         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3684
3685 2011-08-17  Eric Blake  <eblake@redhat.com>
3686
3687         getcwd: fix test failures on mingw
3688         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3689         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3690         test if long directory cannot be created, and allow mingw errno.
3691
3692         getcwd-lgpl: fix m4 to match relaxed test for BSD
3693         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3694         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3695         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3696         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3697         signature problem.
3698
3699         getcwd: fix compilation on mingw64
3700         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3701         getcwd.
3702         Reported by Marc-André Lureau.
3703
3704         pipe2: silence compiler warning
3705         * lib/pipe2.c (pipe2): Hide label if it is not used.
3706
3707 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3708
3709         relocatable-prog: fix link error
3710         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3711         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3712         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3713         into modules/relocatable-lib without noticing that
3714         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3715         also needs to build relocatable.c.
3716
3717 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3718
3719         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3721         shell code: it contained a 'break' that was not in a loop.
3722         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3723         via a shell-language loop; this may have been true in old Autoconf
3724         versions, but it's not true in Autoconf 2.68.  I found this bug
3725         when testing coreutils git on Solaris 8, whose shell complains
3726         about the syntax error.
3727
3728 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3729
3730         * lib/base64.c: Fix comment to reference RFC 4648.
3731         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3732         <gvtulder@gmail.com>.
3733
3734 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3735
3736         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3737
3738         po/Makefile.in.in: fix make -q problem
3739         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3740         rule, since there's no file named 'check-macro-version' and its
3741         use as a file breaks make -q.
3742         (all): Don't depend on check-macro-version.
3743         (CHECK_MACRO_VERSION): New macro.
3744         (stamp-po): Use it.
3745
3746         configmake: fix make -q problem
3747         * modules/configmake (configmake.h): Update configmake.h's time stamp
3748         even if the file does not change.  Otherwise, 'make -q' fails.
3749         Problem reported by Simon Josefsson in
3750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3751
3752 2011-08-11  Jim Meyering  <meyering@redhat.com>
3753
3754         git-version-gen: correct the advice in a comment
3755         * build-aux/git-version-gen: Correct comment.
3756         Don't recommend to list .tarball-version in .gitignore.
3757
3758 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3759
3760         base64: fix off-by-one buffer size bug
3761         Problem and (trivial) fix reported by Gijs van Tulder in
3762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3763         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3764         * tests/test-base64.c (main): Catch the bug.
3765
3766 2011-08-10  Eric Blake  <eblake@redhat.com>
3767
3768         closein: correct comments
3769         * lib/closein.c (close_stdin): Improve comments.
3770
3771 2011-08-09  Bruno Haible  <bruno@clisp.org>
3772
3773         More tests for 'fseeko'.
3774         * tests/test-fseeko3.c: New file, from Eric Blake.
3775         * tests/test-fseeko3.sh: New file.
3776         * modules/fseeko-tests (Files): Add them.
3777         (TESTS): Add test-fseeko3.sh.
3778         (check_PROGRAMS): Add test-fseeko3.
3779
3780 2011-08-09  Eric Blake  <eblake@redhat.com>
3781
3782         fseeko: remove unneeded hack
3783         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3784
3785         fseeko: fix bug on glibc
3786         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3787         Reported by John W. Eaton.
3788
3789 2011-08-08  Bruno Haible  <bruno@clisp.org>
3790
3791         unictype/base: Fix interoperability with preinstalled libunistring.
3792         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3793         Reported by Simon Josefsson.
3794
3795 2011-08-08  Bruno Haible  <bruno@clisp.org>
3796
3797         iswblank: Detect declaration correctly.
3798         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3799         AC_CHECK_DECLS invocation.
3800
3801 2011-08-08  Bruno Haible  <bruno@clisp.org>
3802
3803         tcgetsid: Detect declaration correctly.
3804         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3805         AC_CHECK_DECLS invocation.
3806         Reported by Simon Josefsson.
3807
3808 2011-08-08  Eric Blake  <eblake@redhat.com>
3809
3810         largefile: fix typo that regressed large file support
3811         * modules/largefile (configure.ac-early): Fix section name.
3812
3813 2011-08-06  Karl Berry  <karl@gnu.org>
3814
3815         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3816         a separate module.
3817
3818 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3819
3820         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3821         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3822         get prototype for free.
3823
3824 2011-08-04  Bruno Haible  <bruno@clisp.org>
3825
3826         Tests for module 'pathmax'.
3827         * modules/pathmax-tests: New file.
3828         * tests/test-pathmax.c: New file.
3829
3830         canonicalize-lgpl: Support larger filenames on the Hurd.
3831         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3832         Reported by Paul Eggert.
3833
3834         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3835         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3836         * lib/chdir-long.h: Include pathmax.h.
3837         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3838         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3839         (PATH_MAX): Remove code that is done by pathmax.h.
3840         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3841         * lib/tmpfile.c: Add a comment.
3842         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3843         * modules/chdir-long (Depends-on): Add pathmax.
3844         * modules/getcwd (Depends-on): Add pathmax.
3845         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3846         is not defined.
3847         * doc/posix-headers/limits.texi: Mention the pathmax module.
3848         * NEWS: Mention the change.
3849
3850 2011-08-02  Bruno Haible  <bruno@clisp.org>
3851
3852         pthread_sigmask: Actually use results of gl_THREADLIB.
3853         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3854         gl_THREADLIB, not gl_[]THREADLIB.
3855         Reported by Eric Blake.
3856
3857 2011-08-02  Jim Meyering  <meyering@redhat.com>
3858
3859         maint.mk: relax the default _gl_TS_function_match regexp
3860         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3861         space between function name and "(" in an "extern" declaration.
3862         That would fail to match a decl with no space there: extern void foo();
3863
3864 2011-07-31  Iain Nicol  <iain@thenicols.net>
3865
3866         git-version-gen: document that EXTRA_DIST must include .version
3867         * build-aux/git-version-gen: In the how-to-use comment, document
3868         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3869         will fail when run from an unpacked distribution tarball.
3870
3871 2011-08-01  Bruno Haible  <bruno@clisp.org>
3872
3873         wctype-h: Fix last change.
3874         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3875         REPLACE_TOWLOWER to 0.
3876         Reported by Sam Steingold <sds@gnu.org>.
3877
3878 2011-07-31  Bruno Haible  <bruno@clisp.org>
3879
3880         frexpl: Update autoconf test.
3881         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3882         according to changes of 2011-06-20.
3883
3884 2011-07-31  Bruno Haible  <bruno@clisp.org>
3885
3886         sys_utsname: Add support for Minix.
3887         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3888         <sys/utsname.h>.
3889         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3890         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3891
3892 2011-07-31  Bruno Haible  <bruno@clisp.org>
3893
3894         strings: Add support for Minix.
3895         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3896         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3897         * doc/posix-headers/strings.texi: Document the Minix problem.
3898
3899 2011-07-31  Bruno Haible  <bruno@clisp.org>
3900
3901         wctype-h: Add support for Minix.
3902         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3903         REPLACE_TOWLOWER.
3904         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3905         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3906         REPLACE_ISWCNTRL.
3907
3908 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3909
3910         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3911         This is a performance improvement for 64-bit hosts: it causes the
3912         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3913
3914 2011-07-31  Bruno Haible  <bruno@clisp.org>
3915
3916         stdioext: Add support for Minix.
3917         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3918         * lib/fpurge.c (fpurge): Likewise.
3919         * lib/freadahead.c (freadahead): Likewise.
3920         * lib/freadable.c (freadable): Likewise.
3921         * lib/freading.c (freading): Likewise.
3922         * lib/freadptr.c (freadptr): Likewise.
3923         * lib/freadseek.c (freadptrinc): Likewise.
3924         * lib/fseeko.c (rpl_fseeko): Likewise.
3925         * lib/fseterr.c (fseterr): Likewise.
3926         * lib/fwritable.c (fwritable): Likewise.
3927         * lib/fwriting.c (fwriting): Likewise.
3928         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3929         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3930
3931 2011-07-31  Bruno Haible  <bruno@clisp.org>
3932
3933         errno: Port to Minix.
3934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3935         ECONNABORTED are defined.
3936         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3937         GNULIB_defined_ECONNABORTED): New macros.
3938         * lib/strerror-override.h (strerror_override): Test also
3939         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3940         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3941         ECONNABORTED.
3942         * doc/posix-headers/errno.texi: Mention the Minix problem.
3943
3944 2011-07-31  Bruno Haible  <bruno@clisp.org>
3945
3946         Work around declaration collisions on Minix.
3947         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3948         defined, set REPLACE_MBSINIT.
3949         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3950         defined, set REPLACE_MBRTOWC.
3951         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3952         set REPLACE_MBRLEN.
3953         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3954         defined, set REPLACE_MBSRTOWCS.
3955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3956         defined, set REPLACE_WCRTOMB.
3957         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3958         defined, set REPLACE_WCSRTOMBS.
3959
3960 2011-07-31  Bruno Haible  <bruno@clisp.org>
3961
3962         Add support for Minix with ACK compiler.
3963         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3964         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3965         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3966
3967 2011-07-31  Bruno Haible  <bruno@clisp.org>
3968
3969         Documentation about Minix.
3970         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3971         * doc/glibc-headers/*.texi: Likewise.
3972         * doc/posix-functions/*.texi: Likewise.
3973         * doc/glibc-functions/*.texi: Likewise.
3974
3975 2011-07-31  Bruno Haible  <bruno@clisp.org>
3976
3977         snippet/warn-on-use: Fix indentation.
3978         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3979
3980 2011-07-25  Jim Meyering  <meyering@redhat.com>
3981
3982         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3983         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3984         commands.
3985
3986 2011-07-27  Jim Meyering  <meyering@redhat.com>
3987
3988         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3989         * top/maint.mk (gl_extract_significant_defines_): Now that
3990         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3991         gnulib/lib/signal.in.h, and now that we recommend to
3992         define-if-undefined those two symbols in application code,
3993         we must filter them out of the "significant" list.
3994         This avoids a "make syntax-check" failure in coreutils.
3995
3996 2011-07-26  Eric Blake  <eblake@redhat.com>
3997
3998         warnings: add comments about previous patch
3999         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4000         * m4/include_next.m4: Likewise.
4001         * m4/warn-on-use.m4: Likewise.
4002         * m4/warnings.m4: Likewise, and simplify use.
4003         Suggested by Stefano Lattarini.
4004
4005         include-next, warnings: support older autoconf
4006         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4007         AS_VAR_PUSHDEF in a way that works with older autoconf.
4008         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4009         Reported by Daniel P. Berrange.
4010
4011 2011-07-25  Bruno Haible  <bruno@clisp.org>
4012
4013         fseek, ftell: Fix doc.
4014         * doc/posix-functions/fseek.texi: Reword statement about
4015         AC_SYS_LARGEFILE.
4016         * doc/posix-functions/ftell.texi: Likewise.
4017
4018 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4019             Bruno Haible  <bruno@clisp.org>
4020
4021         Add dependencies to the 'largefile' module.
4022         * modules/fopen (Depends-on): Add 'largefile'.
4023         * modules/freopen (Depends-on): Likewise.
4024         * modules/fseeko (Depends-on): Likewise.
4025         * modules/ftello (Depends-on): Likewise.
4026         * modules/glob (Depends-on): Likewise.
4027         * modules/lseek (Depends-on): Likewise.
4028         * modules/lstat (Depends-on): Likewise.
4029         * modules/mkostemp (Depends-on): Likewise.
4030         * modules/mkostemps (Depends-on): Likewise.
4031         * modules/mkstemp (Depends-on): Likewise.
4032         * modules/mkstemps (Depends-on): Likewise.
4033         * modules/open (Depends-on): Likewise.
4034         * modules/openat (Depends-on): Likewise.
4035         * modules/pread (Depends-on): Likewise.
4036         * modules/pwrite (Depends-on): Likewise.
4037         * modules/scandir (Depends-on): Likewise.
4038         * modules/stat (Depends-on): Likewise.
4039         * modules/tmpfile (Depends-on): Likewise.
4040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4041         since the containing module now depends on the largefile module.
4042         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4043         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4044         off_t is fixed by gnulib.
4045         * doc/posix-functions/freopen.texi: Likewise.
4046         * doc/posix-functions/fseeko.texi: Likewise.
4047         * doc/posix-functions/fstatat.texi: Likewise.
4048         * doc/posix-functions/ftello.texi: Likewise.
4049         * doc/posix-functions/glob.texi: Likewise.
4050         * doc/posix-functions/lseek.texi: Likewise.
4051         * doc/posix-functions/lstat.texi: Likewise.
4052         * doc/posix-functions/mkstemp.texi: Likewise.
4053         * doc/posix-functions/open.texi: Likewise.
4054         * doc/posix-functions/openat.texi: Likewise.
4055         * doc/posix-functions/pread.texi: Likewise.
4056         * doc/posix-functions/pwrite.texi: Likewise.
4057         * doc/posix-functions/scandir.texi: Likewise.
4058         * doc/posix-functions/stat.texi: Likewise.
4059         * doc/posix-functions/tmpfile.texi: Likewise.
4060         * doc/glibc-functions/mkostemp.texi: Likewise.
4061         * doc/glibc-functions/mkostemps.texi: Likewise.
4062         * doc/glibc-functions/mkstemps.texi: Likewise.
4063
4064 2011-07-25  Bruno Haible  <bruno@clisp.org>
4065
4066         fcntl: Move AC_LIBOBJ invocation to module description.
4067         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4068         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4069
4070         fcntl: Remove call-in from fchdir.m4.
4071         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4073
4074         dup3: Remove potential call-in from fchdir.m4.
4075         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4077
4078         dup2: Move AC_LIBOBJ invocation to module description.
4079         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4080         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4081         Don't invoke AC_LIBOBJ.
4082         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4083
4084         dup2: Remove call-in from fchdir.m4.
4085         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4087
4088         fclose: Move AC_LIBOBJ invocation to module description.
4089         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4090         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4091         to 1.
4092         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4093
4094         fclose: Remove call-in from close.m4.
4095         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4096         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4097
4098         close: Move AC_LIBOBJ invocation to module description.
4099         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4100         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4101         1.
4102         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4103
4104         close: Remove call-in from fchdir.m4.
4105         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4107
4108         open: Move AC_LIBOBJ invocation to module description.
4109         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4110         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4111         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4112
4113         open: Remove call-in from fchdir.m4.
4114         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4116
4117         fchdir: Start to remove gl_REPLACE_* idiom.
4118         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4119         (gl_FUNC_FCHDIR): Invoke it.
4120
4121 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4122
4123         * lib/ftell.c (ftell): Comment out cast.
4124
4125         close: use gl_REPLACE_FCLOSE only if defined
4126         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4127         is defined.  The close module doesn't depend on the fclose module
4128         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4130         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4131
4132 2011-07-24  Jim Meyering  <meyering@redhat.com>
4133
4134         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4135         * tests/test-select.h (test_function): Declare as "static".
4136
4137 2011-07-24  Bruno Haible  <bruno@clisp.org>
4138
4139         doc: Mention the effects of AC_SYS_LARGEFILE.
4140         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4141         on this function.
4142         * doc/posix-functions/aio_error.texi: Likewise.
4143         * doc/posix-functions/aio_fsync.texi: Likewise.
4144         * doc/posix-functions/aio_read.texi: Likewise.
4145         * doc/posix-functions/aio_return.texi: Likewise.
4146         * doc/posix-functions/aio_suspend.texi: Likewise.
4147         * doc/posix-functions/aio_write.texi: Likewise.
4148         * doc/posix-functions/fgetpos.texi: Likewise.
4149         * doc/posix-functions/fopen.texi: Likewise.
4150         * doc/posix-functions/freopen.texi: Likewise.
4151         * doc/posix-functions/fsetpos.texi: Likewise.
4152         * doc/posix-functions/fstatvfs.texi: Likewise.
4153         * doc/posix-functions/ftruncate.texi: Likewise.
4154         * doc/posix-functions/ftw.texi: Likewise.
4155         * doc/posix-functions/getrlimit.texi: Likewise.
4156         * doc/posix-functions/glob.texi: Likewise.
4157         * doc/posix-functions/lio_listio.texi: Likewise.
4158         * doc/posix-functions/lockf.texi: Likewise.
4159         * doc/posix-functions/mkstemp.texi: Likewise.
4160         * doc/posix-functions/mmap.texi: Likewise.
4161         * doc/posix-functions/nftw.texi: Likewise.
4162         * doc/posix-functions/openat.texi: Likewise.
4163         * doc/posix-functions/opendir.texi: Likewise.
4164         * doc/posix-functions/posix_fadvise.texi: Likewise.
4165         * doc/posix-functions/posix_fallocate.texi: Likewise.
4166         * doc/posix-functions/pread.texi: Likewise.
4167         * doc/posix-functions/pwrite.texi: Likewise.
4168         * doc/posix-functions/readdir.texi: Likewise.
4169         * doc/posix-functions/readdir_r.texi: Likewise.
4170         * doc/posix-functions/rewinddir.texi: Likewise.
4171         * doc/posix-functions/scandir.texi: Likewise.
4172         * doc/posix-functions/seekdir.texi: Likewise.
4173         * doc/posix-functions/setrlimit.texi: Likewise.
4174         * doc/posix-functions/statvfs.texi: Likewise.
4175         * doc/posix-functions/telldir.texi: Likewise.
4176         * doc/posix-functions/tmpfile.texi: Likewise.
4177         * doc/posix-functions/truncate.texi: Likewise.
4178         * doc/glibc-functions/fallocate.texi: Likewise.
4179         * doc/glibc-functions/fstatfs.texi: Likewise.
4180         * doc/glibc-functions/fts_children.texi: Likewise.
4181         * doc/glibc-functions/fts_read.texi: Likewise.
4182         * doc/glibc-functions/getdirentries.texi: Likewise.
4183         * doc/glibc-functions/mkostemp.texi: Likewise.
4184         * doc/glibc-functions/mkostemps.texi: Likewise.
4185         * doc/glibc-functions/mkstemps.texi: Likewise.
4186         * doc/glibc-functions/preadv.texi: Likewise.
4187         * doc/glibc-functions/pwritev.texi: Likewise.
4188         * doc/glibc-functions/sendfile.texi: Likewise.
4189         * doc/glibc-functions/statfs.texi: Likewise.
4190
4191 2011-07-24  Bruno Haible  <bruno@clisp.org>
4192
4193         doc: Fix typo.
4194         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4195
4196 2011-07-24  Bruno Haible  <bruno@clisp.org>
4197
4198         doc: Mention fsusage.
4199         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4200
4201 2011-07-24  Bruno Haible  <bruno@clisp.org>
4202
4203         doc: Mention new glibc headers and functions.
4204         * doc/glibc-headers/gshadow.texi: New file.
4205         * doc/glibc-functions/endsgent.texi: New file.
4206         * doc/glibc-functions/fgetsgent.texi: New file.
4207         * doc/glibc-functions/fgetsgent_r.texi: New file.
4208         * doc/glibc-functions/getsgent.texi: New file.
4209         * doc/glibc-functions/getsgent_r.texi: New file.
4210         * doc/glibc-functions/getsgnam.texi: New file.
4211         * doc/glibc-functions/getsgnam_r.texi: New file.
4212         * doc/glibc-functions/putsgent.texi: New file.
4213         * doc/glibc-functions/setsgent.texi: New file.
4214         * doc/glibc-functions/sgetsgent.texi: New file.
4215         * doc/glibc-functions/sgetsgent_r.texi: New file.
4216         * doc/glibc-functions/malloc_info.texi: New file.
4217         * doc/glibc-functions/preadv.texi: New file.
4218         * doc/glibc-functions/pwritev.texi: New file.
4219         * doc/glibc-functions/register_printf_modifier.texi: New file.
4220         * doc/glibc-functions/register_printf_specifier.texi: New file.
4221         * doc/glibc-functions/register_printf_type.texi: New file.
4222         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4223         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4224         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4225         * doc/glibc-functions/pthread_getname_np.texi: New file.
4226         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4227         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4228         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4229         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4230         * doc/glibc-functions/pthread_setname_np.texi: New file.
4231         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4232         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4233         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4234         * doc/glibc-functions/qsort_r.texi: New file.
4235         * doc/glibc-functions/quick_exit.texi: New file.
4236         * doc/glibc-functions/syncfs.texi: New file.
4237         * doc/gnulib.texi: Include them.
4238         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4239         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4240         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4241         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4242         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4243         * doc/glibc-functions/execvpe.texi: Likewise.
4244
4245 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4246
4247         ftell: don't include <unistd.h>
4248         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4249         guaranteed to define off_t, and the ftell module depends on the
4250         stdio module.
4251
4252         ftell: do not assume wraparound signed arithmetic
4253         * lib/ftell.c: Include <limits.h>.
4254         (ftell): Don't assume wraparound signed arithmetic.
4255
4256 2011-07-24  Bruno Haible  <bruno@clisp.org>
4257
4258         close: No longer depend on module 'fclose'.
4259         * modules/close (Depends-on): Remove fclose.
4260         * NEWS: Mention the change.
4261         Suggested by Sam Steingold <sds@gnu.org>.
4262
4263 2011-07-24  Bruno Haible  <bruno@clisp.org>
4264
4265         fsusage: Enable large volume support on AIX >= 5.2.
4266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4267         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4268         instead of STAT_STATVFS.
4269         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4270
4271         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4272         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4273         f_blocks field only on MacOS X.
4274
4275         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4277         * modules/fsusage (Depends-on): Add largefile.
4278
4279 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4280
4281         * README: Modernize discussion of signed integers.
4282         Assuming overflow wraparound is no longer safe.
4283         Mention ones' complement and signed magnitude.
4284
4285 2011-07-22  Bruno Haible  <bruno@clisp.org>
4286
4287         select tests, pselect tests: Refactor.
4288         * tests/test-select.h: New file, extracted from tests/test-select.c.
4289         (select_fn): New type.
4290         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4291         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4292         test_pipe): Add my_select argument.
4293         (test_function): Renamed from main. Add my_select argument.
4294         * tests/test-select.c: Move most code to tests/test-select.h. Include
4295         test-select.h.
4296         * modules/select-tests (Files): Add tests/test-select.h.
4297         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4298         (my_select, main): New functions.
4299         * modules/pselect-tests (Files): Add tests/test-select.h,
4300         tests/macros.h, tests/signature.h.
4301         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4302         (configure.ac): Check for <sys/wait.h>.
4303
4304 2011-07-22  Bruno Haible  <bruno@clisp.org>
4305
4306         sys_select tests: Check the signature of FD_*.
4307         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4308         signature tests from here...
4309         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4310         here.
4311         * modules/sys_select-tests (Files): Add tests/signature.h.
4312
4313 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4314
4315         largefile: new module, replacing large-inode
4316         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4317         * MODULES.html.sh: Add largefile, remove large-inode.
4318         * modules/largefile, m4/largefile.m4: New files.
4319         * modules/large-inode, m4/large-inode.m4: Remove.
4320
4321         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4323         implementations that use only 32 bits to count blocks.
4324         On typical hosts with 1024-byte blocks, this fails with file
4325         systems as small as 4 TiB.  Problem reported by Herb Wartens
4326         <http://debbugs.gnu.org/9140> and this should also fix a similar
4327         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4328
4329         large-inode: New module
4330         * MODULES.html.sh: Add it.
4331         * modules/large-inode, m4/large-inode.m4: New files.
4332
4333         extensions: Enable extensions on MacOS X 10.5 and later.
4334         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4335
4336 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4337
4338         file-has-acl: use acl_extended_file_nofollow if available
4339         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4340         (acl_extended_file): New macro.
4341         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4342         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4343
4344 2011-07-21  Bruno Haible  <bruno@clisp.org>
4345
4346         Declare system functions in a way that works with C++.
4347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4348         declare fdopendir as extern "C".
4349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4350         declare frexpl as extern "C".
4351         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4352         declare gai_strerror as extern "C".
4353         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4354         programs, declare gai_strerror as extern "C".
4355         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4356         declare getlogin_r as extern "C".
4357         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4358         as extern "C".
4359         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4360         declare ldexpl as extern "C".
4361         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4362         as extern "C".
4363         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4364         program, declare getmntinfo as extern "C".
4365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4366         stpncpy as extern "C".
4367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4368         program, declare __xpg_strerror_r as extern "C".
4369         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4370         strndup as extern "C".
4371         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4372         declare memset and bzero as extern "C".
4373         Reported by Sam Steingold <sds@gnu.org>.
4374
4375 2011-07-12  Jim Meyering  <meyering@redhat.com>
4376
4377         maint.mk: prohibit inclusion of "verify.h" without use
4378         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4379
4380 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4381
4382         timer-time: A new module to check for timer_settime()
4383         * m4/timer_time.m4: Check for the posix function.
4384         * modules/timer-time: Add the new module.
4385         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4386         Mention it.
4387
4388 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4389             Bruno Haible  <bruno@clisp.org>
4390
4391         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4392         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4393         not defined, assume POSIX threads and look for pthread_sigmask in
4394         $LIBS, without changing $CPPFLAGS.
4395
4396 2011-07-19  Bruno Haible  <bruno@clisp.org>
4397
4398         strstr: Update cross-compilation guess.
4399         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4400         CPUs, guess no, in view of glibc
4401         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4402         Suggested by Eric Blake. Reported by Reuben Thomas.
4403
4404 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4405
4406         getopt-gnu: suppress core dumps from detection code
4407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4408         to suppress core dumps that may well occur on glibc systems.
4409         * modules/getopt-gnu: Depend on nocrash.
4410
4411 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4412
4413         pthread_sigmask: ensure usleep is declared
4414         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4415         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4416
4417 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4418
4419         doc: Document NonStop portability issues.
4420         * doc/posix-functions/sigaction.texi (sigaction):
4421         * doc/posix-headers/signal.texi (signal.h):
4422         Document NonStop.  See Joachim Schmitz in
4423         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4424
4425 2011-07-15  Bruno Haible  <bruno@clisp.org>
4426
4427         ffsl, ffsll: Avoid unportable behaviour.
4428         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4429
4430 2011-07-15  Bruno Haible  <bruno@clisp.org>
4431
4432         ffs: More tests.
4433         * tests/test-ffs.c (NBITS): New macro.
4434         (main): Add more tests.
4435         * tests/test-ffsl.c (NBITS): New macro.
4436         (main): Add more tests.
4437         * tests/test-ffsll.c (NBITS): New macro.
4438         (main): Add more tests.
4439
4440 2011-07-15  Eric Blake  <eblake@redhat.com>
4441
4442         ffsl, ffsll: new modules
4443         * modules/ffsl: New file.
4444         * modules/ffsll: Likewise.
4445         * m4/ffsl.m4: Likewise.
4446         * m4/ffsll.m4: Likewise.
4447         * lib/ffsl.c: Likewise.
4448         * lib/ffsl.h: Likewise.
4449         * lib/ffsll.c: Likewise.
4450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4451         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4452         * modules/string (Makefile.am): Substitute witnesses.
4453         * lib/strings.in.h (ffsl, ffsll): Declare.
4454         * modules/ffsl-tests: New test file.
4455         * modules/ffsll-tests: Likewise.
4456         * tests/test-ffsl.c: Likewise.
4457         * tests/test-ffsll.c: Likewise.
4458         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4459         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4460         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4461
4462         ffs: fix m4 prerequisite
4463         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4464
4465         ffs: avoid undefined behavior
4466         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4467         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4468         Reported by Bruno Haible.
4469
4470 2011-07-12  Bruno Haible  <bruno@clisp.org>
4471
4472         pthread_sigmask: Rely on module 'threadlib'.
4473         * modules/pthread_sigmask (Depends-on): Add threadlib.
4474         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4475         is defined.
4476
4477 2011-07-12  Bruno Haible  <bruno@clisp.org>
4478
4479         regex: Depend on module 'strcase'.
4480         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4481
4482 2011-07-12  Jim Meyering  <meyering@redhat.com>
4483
4484         warn-on-use: fix typo in file name
4485         * modules/snippet/warn-on-use (Files): Correct file name:
4486         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4487
4488 2011-07-12  Bruno Haible  <bruno@clisp.org>
4489
4490         strings: Document module.
4491         * doc/posix-headers/strings.texi: Mention module 'strings'.
4492
4493 2011-07-12  Bruno Haible  <bruno@clisp.org>
4494
4495         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4496         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4497         (Files, Makefile.am): Update.
4498         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4499         * modules/stdlib (Depends-on): Update.
4500
4501 2011-07-12  Bruno Haible  <bruno@clisp.org>
4502
4503         * NEWS: Mention the changes.
4504
4505         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4506         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4507         (Files, Makefile.am): Update.
4508         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4509         * modules/arpa_inet (Depends-on): Update.
4510         * modules/ctype (Depends-on): Update.
4511         * modules/dirent (Depends-on): Update.
4512         * modules/fcntl-h (Depends-on): Update.
4513         * modules/glob (Depends-on): Update.
4514         * modules/iconv-h (Depends-on): Update.
4515         * modules/inttypes-incomplete (Depends-on): Update.
4516         * modules/langinfo (Depends-on): Update.
4517         * modules/locale (Depends-on): Update.
4518         * modules/math (Depends-on): Update.
4519         * modules/netdb (Depends-on): Update.
4520         * modules/poll-h (Depends-on): Update.
4521         * modules/pty (Depends-on): Update.
4522         * modules/search (Depends-on): Update.
4523         * modules/signal (Depends-on): Update.
4524         * modules/spawn (Depends-on): Update.
4525         * modules/stdio (Depends-on): Update.
4526         * modules/stdlib (Depends-on): Update.
4527         * modules/string (Depends-on): Update.
4528         * modules/strings (Depends-on): Update.
4529         * modules/sys_file (Depends-on): Update.
4530         * modules/sys_ioctl (Depends-on): Update.
4531         * modules/sys_select (Depends-on): Update.
4532         * modules/sys_socket (Depends-on): Update.
4533         * modules/sys_stat (Depends-on): Update.
4534         * modules/sys_time (Depends-on): Update.
4535         * modules/sys_times (Depends-on): Update.
4536         * modules/sys_utsname (Depends-on): Update.
4537         * modules/sys_wait (Depends-on): Update.
4538         * modules/termios (Depends-on): Update.
4539         * modules/time (Depends-on): Update.
4540         * modules/unistd (Depends-on): Update.
4541         * modules/wchar (Depends-on): Update.
4542         * modules/wctype-h (Depends-on): Update.
4543         * MODULES.html.sh (Support for building libraries and executables):
4544         Update.
4545
4546         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4547         * modules/snippet/unused-parameter: Renamed from
4548         modules/unused-parameter.
4549         (Files, Makefile.am): Update.
4550         * build-aux/snippet/unused-parameter.h: Renamed from
4551         build-aux/unused-parameter.h.
4552         * modules/selinux-h (Depends-on): Update.
4553         * modules/unistr/base (Depends-on): Update.
4554         * MODULES.html.sh (Core language properties): Update.
4555
4556         Rename module 'link-warning' to 'snippet/link-warning'.
4557         * modules/snippet/link-warning: Renamed from modules/link-warning.
4558         (Files, Makefile.am): Update.
4559         * build-aux/snippet/link-warning.h: Renamed from
4560         build-aux/link-warning.h.
4561         * MODULES.html.sh (Support for building libraries and executables):
4562         Update.
4563
4564         Rename module 'c++defs' to 'snippet/c++defs'.
4565         * modules/snippet/c++defs: Renamed from modules/c++defs.
4566         (Files, Makefile.am): Update.
4567         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4568         * modules/arpa_inet (Depends-on): Update.
4569         * modules/ctype (Depends-on): Update.
4570         * modules/dirent (Depends-on): Update.
4571         * modules/fcntl-h (Depends-on): Update.
4572         * modules/glob (Depends-on): Update.
4573         * modules/iconv-h (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_ioctl (Depends-on): Update.
4588         * modules/sys_select (Depends-on): Update.
4589         * modules/sys_socket (Depends-on): Update.
4590         * modules/sys_stat (Depends-on): Update.
4591         * modules/sys_time (Depends-on): Update.
4592         * modules/sys_wait (Depends-on): Update.
4593         * modules/termios (Depends-on): Update.
4594         * modules/time (Depends-on): Update.
4595         * modules/unistd (Depends-on): Update.
4596         * modules/wchar (Depends-on): Update.
4597         * modules/wctype-h (Depends-on): Update.
4598
4599         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4600         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4601         (Files, Makefile.am): Update.
4602         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4603         * modules/argv-iter (Depends-on): Update.
4604         * modules/arpa_inet (Depends-on): Update.
4605         * modules/dirent (Depends-on): Update.
4606         * modules/fcntl-h (Depends-on): Update.
4607         * modules/fnmatch (Depends-on): Update.
4608         * modules/getopt-posix (Depends-on): Update.
4609         * modules/glob (Depends-on): Update.
4610         * modules/iconv-h (Depends-on): Update.
4611         * modules/inttypes-incomplete (Depends-on): Update.
4612         * modules/locale (Depends-on): Update.
4613         * modules/math (Depends-on): Update.
4614         * modules/netdb (Depends-on): Update.
4615         * modules/search (Depends-on): Update.
4616         * modules/signal (Depends-on): Update.
4617         * modules/spawn (Depends-on): Update.
4618         * modules/stdio (Depends-on): Update.
4619         * modules/stdlib (Depends-on): Update.
4620         * modules/string (Depends-on): Update.
4621         * modules/strings (Depends-on): Update.
4622         * modules/sys_socket (Depends-on): Update.
4623         * modules/sys_stat (Depends-on): Update.
4624         * modules/sys_time (Depends-on): Update.
4625         * modules/sys_times (Depends-on): Update.
4626         * modules/sys_utsname (Depends-on): Update.
4627         * modules/time (Depends-on): Update.
4628         * modules/unistd (Depends-on): Update.
4629         * modules/wchar (Depends-on): Update.
4630         * MODULES.html.sh (Support for building libraries and executables):
4631         Update.
4632
4633 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         Improvements on _Noreturn and related modules.
4636
4637         modules/_Exit-tests: test _Noreturn too
4638         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4639         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4640         (main): Use them.
4641
4642         stdnoreturn, stdnoreturn-tests: remove modules
4643         They're not needed here and a bit premature for use elsewhere.  See
4644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4645         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4646         * tests/test-stdnoreturn.c: Remove files.
4647         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4648         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4649         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4650         and using noreturn.
4651         * modules/openat, modules/sigpipe-die, modules/xalloc:
4652         * modules/xmemdup0, modules/xstrtol:
4653         Remove dependency on stdnoreturn.
4654
4655         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4656         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4657         Reparenthesize to avoid GCC warning.
4658         Support Microsoft's syntax.
4659         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4660
4661         _Noreturn-tests: remove module
4662         * modules/_Noreturn-tests: Remove.
4663         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4664         * tests/test-_Noreturn.c: Remove.
4665         * tests/test-stdnoreturn.c: Merge from the old
4666         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4667
4668 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4669
4670         _Noreturn, stdnoreturn, and related modules.
4671
4672         * top/maint.mk: Adjust to new noreturn support.
4673         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4674         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4675
4676         xalloc: use stdnoreturn.h
4677         * lib/xalloc.h: Include <stdnoreturn.h>.
4678         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4679         * modules/xalloc (Depends-on): Add stdnoreturn.
4680
4681         xstrtol: use stdnoreturn.h
4682         * lib/xstrtol.h: Include <stdnoreturn.h>.
4683         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4684         * modules/xstrtol (Depends-on): Add stdnoreturn.
4685
4686         xmemdup0: use stdnoreturn.h
4687         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4688         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4689         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4690
4691         sigpipe-die: use stdnoreturn.h
4692         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4693         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4694         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4695
4696         openat: use stdnoreturn.h
4697         * lib/openat.h: Include <stdnoreturn.h>.
4698         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4699         * modules/openat (Depends-on): Add stdnoreturn.
4700
4701         * lib/openat-die.c (openat_save_fail): Modernize comment.
4702
4703         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4704
4705         * lib/glthread/thread.h: Modernize comment.
4706
4707         obstack: use _Noreturn
4708         * lib/obstack.c (__attribute__): Remove macro.
4709         (print_and_abort): Use _Noreturn.
4710
4711         c-stack: use _Noreturn
4712         * lib/c-stack.c (die, overflow_handler, segv_handler):
4713         Use _Noreturn rather than __attribute__((noreturn)).
4714
4715         argmatch-tests, exclude_tests: use _Noreturn
4716         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4717         Remove.
4718         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4719
4720         stdlib: use _Noreturn
4721         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4722         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4723         * modules/stdlib (Depends-on): Add _Noreturn.
4724         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4725
4726         stdnoreturn-tests: new module
4727         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4728
4729         stdnoreturn: new module
4730         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4731         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4732
4733         _Noreturn-tests: new module
4734         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4735
4736         _Noreturn: new module
4737         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4738         New section, mentioning it.
4739         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4740
4741         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4742
4743 2011-07-11  Eric Blake  <eblake@redhat.com>
4744
4745         ffs: new module
4746         * modules/ffs: New file.
4747         * m4/ffs.m4: Likewise.
4748         * lib/ffs.c: Likewise.
4749         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4750         * modules/strings (Makefile.am): Substitute witness.
4751         (Depends-on): Add c++defs.
4752         * lib/strings.in.h (ffs): Declare.
4753         * modules/ffs-tests: New test file.
4754         * tests/test-ffs.c: Test new module.
4755         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4756         * doc/posix-functions/ffs.texi (ffs): Likewise.
4757
4758         regex: avoid compiler warning
4759         * lib/regex.c (includes): Include <strings.h>, for use of
4760         strcasecmp in regcomp.c.
4761         Reported by Joachim Schmitz.
4762
4763 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4764
4765         stdint: respect system's intmax_t if INTMAX_MAX
4766         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4767         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4768         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4769         long but int64_t is long long, and where we will clash with the
4770         system intmax_t if we override it.  See
4771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4772         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4773         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4774         similarly for UINTMAX_C.
4775
4776 2011-07-08  Bruno Haible  <bruno@clisp.org>
4777
4778         pthread_sigmask tests: Avoid a compiler warning.
4779         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4780         non-zero.
4781
4782         sigprocmask tests: A better way to avoid a compiler warning.
4783         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4784         (main): Complain if system() returns non-zero.
4785         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4786
4787 2011-07-08  Bruno Haible  <bruno@clisp.org>
4788
4789         pthread_sigmask: Work around IRIX bug.
4790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4791         bug.
4792         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4793         there may be unblocked pending signals.
4794         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4795
4796 2011-07-08  Bruno Haible  <bruno@clisp.org>
4797
4798         pthread_sigmask: Work around Cygwin bug.
4799         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4800         bug.
4801         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4802         the system's pthread_sigmask function.
4803         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4804
4805 2011-07-08  Bruno Haible  <bruno@clisp.org>
4806
4807         pthread_sigmask: Work around bug in single-threaded implementation.
4808         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4809         FreeBSD, HP-UX, Solaris bug.
4810         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4811         * lib/pthread_sigmask.c: Include <stddef.h>.
4812         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4813         the system's pthread_sigmask function.
4814         * modules/pthread_sigmask (configure.ac): Invoke
4815         gl_PREREQ_PTHREAD_SIGMASK.
4816         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4817         HP-UX, Solaris.
4818
4819 2011-07-08  Eric Blake  <eblake@redhat.com>
4820
4821         test-sigprocmask: avoid compiler warning
4822         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4823         * tests/test-sigprocmask.c (main): Use it to silence warning.
4824         Reported by Jim Meyering.
4825
4826         test-snprintf: avoid compiler warning
4827         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4828         * tests/test-vsnprintf.c (main): Likewise.
4829         Reported by Jim Meyering.
4830
4831 2011-07-08  Bruno Haible  <bruno@clisp.org>
4832
4833         Tests for module 'pthread_sigmask'.
4834         * modules/pthread_sigmask-tests: New file.
4835         * tests/test-pthread_sigmask1.c: New file, based on
4836         tests/test-sigprocmask.c.
4837         * tests/test-pthread_sigmask2.c: New file.
4838
4839 2011-07-08  Jim Meyering  <meyering@redhat.com>
4840
4841         test-getopt.h: avoid warning about an unused variable
4842         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4843
4844 2011-07-07  Jim Meyering  <meyering@redhat.com>
4845
4846         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4847         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4848         now that it no longer contains leading TABs.
4849         Remove unused "url=FIXME" statement.
4850
4851 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4852
4853         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4854         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4855         When gl_THREADLIB is not in use, assume that the POSIX sematics
4856         are desired.  This is better for Emacs, which uses POSIX semantics
4857         on GNUish and/or POSIXish platforms, and does not use threads at
4858         all otherwise.
4859
4860         pthread_sigmask: fix typo when testing for libraries
4861         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4862         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4863
4864 2011-07-08  Eric Blake  <eblake@redhat.com>
4865
4866         fts: introduce FTS_NOATIME
4867         * lib/fts_.h (FTS_NOATIME): New bit flag.
4868         (FTS_OPTIONMASK): Adjust.
4869         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4870         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4871
4872 2011-07-08  Bruno Haible  <bruno@clisp.org>
4873
4874         Tests for module 'thread'.
4875         * modules/thread-tests: New file.
4876         * tests/test-thread_self.c: New file.
4877         * tests/test-thread_create.cc: New file.
4878
4879 2011-07-08  Bruno Haible  <bruno@clisp.org>
4880
4881         thread: Avoid gcc warnings when using gl_thread_self().
4882         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4883         'void *'.
4884         (gl_thread_self_pointer): Update.
4885
4886 2011-07-07  Bruno Haible  <bruno@clisp.org>
4887
4888         signal-c++-tests: Check declaration of pthread_sigmask.
4889         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4890         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4891         $(LIB_PTHREAD_SIGMASK).
4892
4893 2011-07-07  Bruno Haible  <bruno@clisp.org>
4894
4895         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4896         * lib/signal.in.h (pthread_sigmask): Override if
4897         REPLACE_PTHREAD_SIGMASK is 1.
4898         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4899         REPLACE_PTHREAD_SIGMASK.
4900         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4901         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4902         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4903         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4904         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4905
4906 2011-07-07  Bruno Haible  <bruno@clisp.org>
4907
4908         pthread_sigmask: Ensure declaration in <signal.h>.
4909         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4910         include <pthread.h>.
4911         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4912         problem.
4913
4914 2011-07-07  Bruno Haible  <bruno@clisp.org>
4915
4916         pthread_sigmask: Document the module.
4917         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4918
4919 2011-07-07  Bruno Haible  <bruno@clisp.org>
4920
4921         pthread_sigmask: Follow gnulib conventions.
4922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4923         gl_PTHREAD_SIGMASK.
4924         * modules/pthread_sigmask (configure.ac): Update.
4925
4926 2011-07-07  Bruno Haible  <bruno@clisp.org>
4927
4928         pthread_sigmask: Make declaration C++ safe.
4929         * lib/signal.in.h: In two special conditions, just do an #include_next.
4930         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4931         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4932         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4933         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4934         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4935         not REPLACE_PTHREAD_MASK.
4936         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4937         not REPLACE_PTHREAD_MASK.
4938         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4939
4940 2011-07-07  Bruno Haible  <bruno@clisp.org>
4941
4942         pthread_sigmask: Fix return value.
4943         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4944         * lib/pthread_sigmask.c: New file.
4945         * modules/pthread_sigmask (Files): Add it.
4946         (configure.ac): Invoke AC_LIBOBJ.
4947
4948 2011-07-07  Eric Blake  <eblake@redhat.com>
4949
4950         getopt: more portable argv creation
4951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4952         const, use char arrays rather than strings.
4953         Suggested by Paul Eggert.
4954
4955 2011-07-07  Bruno Haible  <bruno@clisp.org>
4956
4957         Tests for module 'sigprocmask'.
4958         * modules/sigprocmask-tests: New file.
4959         * tests/test-sigprocmask.c: New file.
4960
4961 2011-07-07  Bruno Haible  <bruno@clisp.org>
4962
4963         float tests: Tweak.
4964         * tests/test-float.c (main): Tweak skip message.
4965
4966 2011-07-07  Eric Blake  <eblake@redhat.com>
4967
4968         getopt: avoid compiler warning during configure
4969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4970         assigning string literals to non-const pointer.
4971
4972         getopt-gnu: avoid crash in glibc getopt
4973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4974         * tests/test-getopt.h (test_getopt): Enhance test.
4975         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4976         * doc/posix-functions/getopt.texi (getopt): Document it.
4977         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4978         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4979         Likewise.
4980
4981 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4982
4983         getopt: handle W; without long options in getopt [BZ #12922]
4984         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4985         but no long options are defined, just return 'W'.
4986
4987 2011-07-07  Bruno Haible  <bruno@clisp.org>
4988
4989         Avoid literal tabs.
4990         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4991         variable containing a tab instead of a literal tab.
4992         Reported by Jim Meyering.
4993
4994 2011-07-07  Bruno Haible  <bruno@clisp.org>
4995
4996         Comments.
4997         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4998
4999 2011-07-06  Bruno Haible  <bruno@clisp.org>
5000
5001         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5002         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5003         <winsock2.h>.
5004         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5005         lib/sys_socket.in.h.
5006         (close, gethostname): Hide declarations from <winsock2.h>.
5007         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5008         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5009         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5010         (select): Don't override if gnulib's <sys/select.h> was already
5011         included.
5012         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5013         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5014         setsockopt, shutdown, select): Tweak indentation.
5015
5016 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5017
5018         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5019         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5020         in an application that does not use the sys_select module.
5021
5022 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5023
5024         poll: do not return 0 on timeout=-1
5025         * lib/poll.c: Loop with yield if no events occured
5026
5027 2011-07-06  Eric Blake  <eblake@redhat.com>
5028
5029         pthread_sigmask: always replace when not using pthread
5030         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5031         replacement when using some threading other than pthread.  Fix
5032         logic bug.
5033
5034 2011-07-06  Bruno Haible  <bruno@clisp.org>
5035
5036         Comments.
5037         * m4/printf.m4: Update comments about mingw.
5038
5039 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5040
5041         sys_select: define sigset_t more portably
5042         * lib/sys_select.in.h: Always include <sys/types.h>, since
5043         we now need sigset_t and mingw defines it there.
5044         Include <signal.h> before split inclusion guard, to avoid
5045         mishaps on Solaris, whose <signal.h> eventually includes us.
5046         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5047         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5048         which come from ...
5049         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5050         gl_CHECK_TYPE_SIGSET_T.
5051         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5052         does the real work.
5053         * modules/sys_select (Depends-on): Add 'signal'.
5054
5055         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5056         Suggested by Bruno Haible.
5057
5058         pselect: Use pthread_sigmask, not sigprocmask.
5059         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5060         multithreaded apps better than sigprocmask does.
5061         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5062         sigprocmask directly.
5063
5064 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5065
5066         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5067         Don't #undef,  since we don't need any underlying pselect.
5068         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5069         (Depends-on): Add select.
5070         (Link): Add $(LIBSOCKET).
5071         These changes suggested by Bruno Haible.
5072
5073         pselect: document better
5074         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5075         * doc/posix-functions/pselect.texi (pselect): Document new module.
5076
5077         pthread_sigmask: new module
5078         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5079         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5080         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5081         This is done only as a macro; I don't know how well that'll
5082         work for C++.  Move <sys/types.h> include before the include_next,
5083         to avoid mishap on Solaris.
5084         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5085         * modules/signal (Makefile.am): Substitute the check's results.
5086         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5087
5088         test-pselect: new module
5089         * modules/pselect-tests, tests/test-pselect.c: New files.
5090         * tests/test-select.c, tests/test-sys_select-c++.cc:
5091         If TEST_PSELECT is defined, test pselect instead of testing select.
5092
5093         * tests/test-sys_select.c (sigset_t): Test for it, too.
5094         Suggested by Bruno Haible.
5095
5096 2011-07-05  Eric Blake  <eblake@redhat.com>
5097
5098         snprintf: guarantee %1$d, for libintl
5099         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5101         * doc/posix-functions/snprintf.texi (snprintf): Update.
5102         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5103         * tests/test-snprintf.c (main): Enhance test.
5104         * tests/test-vsnprintf.c (main): Likewise.
5105
5106 2011-07-05  Jim Meyering  <meyering@redhat.com>
5107
5108         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5109         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5110         per Bruno's request, to accommodate this idiom (no space after "#")
5111         even when the function is inside an #if block:
5112         char *
5113         gets (char *s)
5114         #undef gets
5115         {
5116           ...
5117         }
5118
5119 2011-07-04  Jim Meyering  <meyering@redhat.com>
5120
5121         maint: indent with spaces, not TABs, and add a rule to check this
5122         * tests/test-userspec.c: Indent with spaces, not TABs.
5123         * tests/test-argp.c: Likewise.
5124         * tests/test-c-stack2.sh: Likewise.
5125         * tests/test-parse-duration.sh: Likewise
5126         * m4/strtod.m4: Likewise.
5127         * m4/alloca.m4: Likewise.
5128         * m4/pselect.m4: Likewise.
5129         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5130
5131 2011-07-03  Jim Meyering  <meyering@redhat.com>
5132
5133         maint.mk: correct omissions in prohibit_argmatch_without_use check
5134         This rule would mistakenly report that argmatch.h is included without
5135         use even when both the argmatch and invalid_arg macro were used.
5136         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5137         of argmatch and invalid_arg.
5138
5139 2011-07-03  Bruno Haible  <bruno@clisp.org>
5140
5141         Comments about EINTR.
5142         * lib/safe-read.h: Explain the purpose of this module.
5143         * lib/safe-write.h: Likewise.
5144         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5145         module.
5146         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5147         module.
5148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5149
5150 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5151
5152         xnanosleep: Rewrite to use new dtotimespec module.
5153         It has the conversion code that used to be in xnanosleep.
5154         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5155         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5156         (TIME_T_MAX): Remove.
5157         (xnanosleep): Rewrite in terms of dtotimespec.
5158         * modules/xnanosleep (Depends-on): Add dtotimespec.
5159         Remove intprops, stdbool.
5160
5161         timespec-add, timespec-sub: new modules
5162         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5163         * lib/timespec-add.c, lib/timespec-sub.c:
5164         * modules/timespec-add, modules/timespec-sub: New files.
5165
5166         dtotimespec: new module
5167         * lib/timespec.h (dtotimespec): New decl.
5168         * lib/dtotimespec.c, modules/dtotimespec: New files.
5169
5170         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5171
5172         pselect: new module
5173         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5174         (pselect): New decls.
5175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5176         since the standard pselect decl uses 'restrict'.
5177         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5178         HAVE_PSELECT, REPLACE_PSELECT.
5179         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5180         HAVE_PSELECT, REPLACE_PSELECT.
5181         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5182
5183         sys_select: don't depend on sys_socket
5184         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5186         This fix works on GNU and GNU-like platforms, but has not been tested
5187         on native Windows.
5188         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5190         gl_HEADER_SYS_SOCKET.
5191         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5192         gl_PREREQ_SYS_H_WINSOCK2.
5193
5194 2011-06-29  Eric Blake  <eblake@redhat.com>
5195
5196         pipe2: fix C89 compile problem
5197         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5198         Reported by Bruno Haible.
5199
5200         pipe, pipe2: don't corrupt fd on error
5201         * lib/pipe.c (pipe): Leave fd unchanged on error.
5202         * lib/pipe2.c (pipe2): Likewise.
5203         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5204         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5205
5206 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5207
5208         mmap-anon: do not use regular expressions inadvertently
5209         * m4/mmap-anon.m4: Remove trailing period from strings sought
5210         in the output.
5211
5212 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5213
5214         nanosleep: fix integer overflow problem
5215         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5216         arithmetic wraps around on overflow.
5217
5218         nanosleep: simplify carrying
5219         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5220         first call to the underyling nanosleep, not for the last one.
5221         This doesn't fix any bugs, but it simplifies the computation of
5222         the remaining delay.  Found while auditing integer overflow issues.
5223
5224         dup2: remove test for existence of fcntl
5225         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5226         "#if HAVE_FCNTL", in the configure-time test program.
5227         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5228         and therefore speeds up "configure" a bit.  Found while
5229         adding the dup2 module to Emacs.
5230
5231 2011-06-24  Eric Blake  <eblake@redhat.com>
5232
5233         maint.mk: enhance useless header checks
5234         * top/maint.mk (_sc_header_without_use): Check both include
5235         styles.
5236         (sc_prohibit_assert_without_use)
5237         (sc_prohibit_close_stream_without_use)
5238         (sc_prohibit_getopt_without_use)
5239         (sc_prohibit_quotearg_without_use)
5240         (sc_prohibit_quote_without_use)
5241         (sc_prohibit_long_options_without_use)
5242         (sc_prohibit_inttostr_without_use)
5243         (sc_prohibit_ignore_value_without_use)
5244         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5245         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5246         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5247         (sc_prohibit_hash_pjw_without_use)
5248         (sc_prohibit_safe_read_without_use)
5249         (sc_prohibit_argmatch_without_use)
5250         (sc_prohibit_canonicalize_without_use)
5251         (sc_prohibit_root_dev_ino_without_use)
5252         (sc_prohibit_openat_without_use)
5253         (sc_prohibit_c_ctype_without_use)
5254         (sc_prohibit_signal_without_use)
5255         (sc_prohibit_stdio--_without_use)
5256         (sc_prohibit_stdio-safer_without_use)
5257         (sc_prohibit_strings_without_use)
5258         (sc_prohibit_intprops_without_use)
5259         (sc_prohibit_stddef_without_use)
5260         (sc_prohibit_xfreopen_without_use): Update clients.
5261
5262 2011-06-24  Jim Meyering  <meyering@redhat.com>
5263
5264         syntax-check: keep one maint.mk rule in sync with its header
5265         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5266         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5267         I prefer to avoid temporary files here, so use <(...), but that
5268         is not supported by /bin/sh, so...
5269         (SHELL): Define to /bin/bash.
5270
5271 2011-06-24  Eric Blake  <eblake@redhat.com>
5272
5273         maint.mk: update sc_prohibit_intprops_without_use
5274         * top/maint.mk (_intprops_names): Match recent changes.
5275
5276 2011-06-24  Bruno Haible  <bruno@clisp.org>
5277
5278         strerror-override: No-op tweak.
5279         * lib/strerror-override.h (strerror_override): Reorder conditions,
5280         for consistency with lib/strerror-override.c.
5281
5282 2011-06-23  Eric Blake  <eblake@redhat.com>
5283
5284         maint.mk: test further PATH_MAX issues
5285         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5286         (sc_prohibit_path_max_allocation): ...and also test alloca.
5287         Suggested by Jim Meyering.
5288
5289 2011-06-22  Eric Blake  <eblake@redhat.com>
5290
5291         maint.mk: add syntax-check to avoid char[PATH_MAX]
5292         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5293
5294         stat: be robust to PATH_MAX definition
5295         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5296         * modules/stat (Depends-on): Add verify.
5297
5298         link: work around IRIX bug
5299         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5300         * lib/link.c (rpl_link): Work around it.
5301         * tests/test-link.h (test_link): Enhance test.
5302         * doc/posix-functions/link.texi (link): Document the bug.
5303
5304         getopt: silence clang warning
5305         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5306         dereference.
5307         Reported by Gustavo Martin Domato.
5308
5309 2011-06-22  Jim Meyering  <meyering@redhat.com>
5310
5311         bootstrap: do not insert a blank line into each .gitignore file
5312         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5313
5314 2011-06-21  Eric Blake  <eblake@redhat.com>
5315
5316         perror: test for output mismatch
5317         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5318         perror on IRIX.
5319
5320         strerror_r: fix OpenBSD behavior on out-of-range
5321         * lib/strerror_r.c (strerror_r): Always use maximal string.
5322         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5323
5324         strerror_r: fix OpenBSD behavior on 0
5325         * lib/strerror-override.c (strerror_override): Also override 0
5326         when needed.
5327         * lib/strerror-override.h (strerror_override): Likewise.
5328         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5329         earlier.
5330         * lib/strerror_r.c (strerror_r): Likewise.
5331         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5332         behavior...
5333         (gl_FUNC_STRERROR_0): ...into new macro.
5334         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5335         is overridden.
5336         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5337         * modules/strerror-override (Files): Add strerror.m4.
5338         (configure.ac): Also provide override for 0 when needed.
5339         * doc/posix-functions/strerror.texi (strerror): Document this.
5340         * doc/posix-functions/perror.texi (perror): Likewise.
5341
5342         perror: adjust array size
5343         * modules/perror (Depends-on): Add strerror-override.
5344         * lib/perror.c (perror): Use it to avoid magic number.
5345
5346         strerror-override: reduce size
5347         * lib/strerror-override.c (strerror_override): Use fewer lines.
5348
5349 2011-06-20  Bruno Haible  <bruno@clisp.org>
5350
5351         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5352         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5353
5354 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5355
5356         alloca: port to compilers that can optimize like GCC 4.6.0
5357         * lib/alloca.c (find_stack_direction): New signature, taken from
5358         Autoconf git.  This works with GCC 4.6.0.  This code should never
5359         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5360         be used with other compilers that optimize as well as GCC 4.6.0 does.
5361         (alloca): Adjust to new signature.
5362         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5363         New macro, which patches Autoconf in a similar way.
5364
5365         c-stack: stop worrying about stack direction
5366         * lib/c-stack.c (find_stack_direction): Remove.
5367         (segv_handler): Don't worry about stack direction growth, as it's
5368         too much of a pain to configure this correctly, given how compilers
5369         are optimizing-away our stack-growth detection code.  Instead, assume
5370         that any access to just before or just after the stack is OK.
5371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5372         Don't require AC_FUNC_ALLOCA; no longer needed.
5373
5374 2011-06-20  Eric Blake  <eblake@redhat.com>
5375
5376         test-stat: don't allocate PATH_MAX bytes
5377         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5378         PATH_MAX-sized buffer.
5379         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5380         * modules/stat-tests (Depends-on): Likewise.
5381         * tests/test-fstatat.c (includes): Drop pathmax.h.
5382         * tests/test-stat.c (includes): Likewise.
5383         Reported by Bruno Haible.
5384
5385 2011-06-20  Bruno Haible  <bruno@clisp.org>
5386
5387         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5388         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5389         * lib/float.c: New file.
5390         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5391         REPLACE_FLOAT_LDBL.
5392         * modules/float (Files): Add lib/float.c.
5393         (configure.ac): Invoke AC_LIBOBJ.
5394         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5395
5396 2011-06-20  Bruno Haible  <bruno@clisp.org>
5397
5398         Tests for module 'float'.
5399         * modules/float-tests: New file.
5400         * tests/test-float.c: New file.
5401
5402 2011-06-19  Bruno Haible  <bruno@clisp.org>
5403
5404         isinf: Coding style.
5405         * lib/isinf.c: Use GNU coding style.
5406
5407 2011-06-19  Bruno Haible  <bruno@clisp.org>
5408
5409         linkat test: Avoid test failure on AIX 7.1.
5410         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5411         * tests/test-link.h (test_link): Likewise.
5412
5413 2011-06-19  Bruno Haible  <bruno@clisp.org>
5414
5415         pread test: Avoid test failure on OpenBSD 4.9.
5416         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5417
5418 2011-06-19  Bruno Haible  <bruno@clisp.org>
5419
5420         sprintf-posix: Fix test failure on AIX 7.1.
5421         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5422         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5423         on AIX.
5424         * doc/posix-functions/fprintf.texi: Likewise.
5425         * doc/posix-functions/printf.texi: Likewise.
5426         * doc/posix-functions/snprintf.texi: Likewise.
5427         * doc/posix-functions/sprintf.texi: Likewise.
5428         * doc/posix-functions/vdprintf.texi: Likewise.
5429         * doc/posix-functions/vfprintf.texi: Likewise.
5430         * doc/posix-functions/vprintf.texi: Likewise.
5431         * doc/posix-functions/vsnprintf.texi: Likewise.
5432         * doc/posix-functions/vsprintf.texi: Likewise.
5433
5434 2011-06-19  Bruno Haible  <bruno@clisp.org>
5435
5436         roundl-ieee: Fix test failure on AIX 7.1.
5437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5438         * doc/posix-functions/roundl.texi: Mention problem with negative
5439         arguments.
5440
5441 2011-06-19  Bruno Haible  <bruno@clisp.org>
5442
5443         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5444         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5445         * doc/posix-functions/round.texi: Mention problem with negative
5446         arguments.
5447         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5448
5449 2011-06-19  Bruno Haible  <bruno@clisp.org>
5450
5451         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5452         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5453         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5454         * doc/posix-functions/roundf.texi: Mention problem with negative
5455         arguments.
5456         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5457
5458 2011-06-19  Bruno Haible  <bruno@clisp.org>
5459
5460         ceilf-ieee: Work around bug on MacOS X 10.5.
5461         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5462
5463         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5464         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5465         IEEE compliant, avoid compiler optimizations.
5466         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5467         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5468         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5469         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5470         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5471         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5472         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5473         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5474         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5476
5477 2011-06-19  Bruno Haible  <bruno@clisp.org>
5478
5479         ceilf-ieee: Work around bug on AIX 7.1.
5480         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5481         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5482
5483 2011-06-19  Bruno Haible  <bruno@clisp.org>
5484
5485         ceil-ieee: Work around bug on AIX 7.1.
5486         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5487         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5488
5489 2011-06-18  Bruno Haible  <bruno@clisp.org>
5490
5491         fsync test: Avoid test failure on MacOS X and AIX.
5492         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5493         EINVAL.
5494
5495 2011-06-18  Bruno Haible  <bruno@clisp.org>
5496
5497         openat, fdopendir tests: Fix link errors.
5498         * modules/openat-tests (Depends-on): Add progname.
5499         * modules/fdopendir-tests (Depends-on): Likewise.
5500         * tests/test-fchownat.c: Include progname.h.
5501         (main): Call set_program_name.
5502         * tests/test-fstatat.c: Include progname.h.
5503         (main): Call set_program_name.
5504         * tests/test-mkdirat.c: Include progname.h.
5505         (main): Call set_program_name.
5506         * tests/test-openat.c: Include progname.h.
5507         (main): Call set_program_name.
5508         * tests/test-unlinkat.c: Include progname.h.
5509         (main): Call set_program_name.
5510         * tests/test-fdopendir.c: Include progname.h.
5511         (main): Call set_program_name.
5512
5513 2011-06-18  Bruno Haible  <bruno@clisp.org>
5514
5515         Doc update.
5516         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5517         HP-UX.
5518         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5519
5520 2011-06-18  Bruno Haible  <bruno@clisp.org>
5521
5522         getcwd tests: Avoid compilation error on HP-UX 11.31.
5523         * modules/getcwd-tests (Depends-on): Add pathmax.
5524         * tests/test-getcwd.c: Include pathmax.h.
5525
5526 2011-06-18  Bruno Haible  <bruno@clisp.org>
5527
5528         isfinite, isinf: Fix link error on AIX 6 and 7.
5529         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5530         needed, also test the macro with a 'float' argument.
5531         * m4/isinf.m4 (gl_ISINF): Likewise.
5532
5533 2011-06-18  Bruno Haible  <bruno@clisp.org>
5534
5535         getloadavg: Don't clobber LIBS. Regression from previous commit.
5536         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5537         AC_CHECK_LIB from here...
5538         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5539         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5540         gl_func_getloadavg_done.
5541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5542
5543 2011-06-18  Bruno Haible  <bruno@clisp.org>
5544
5545         clean-temp: Improve documentation.
5546         * lib/clean-temp.h: Explain better how to use this module.
5547         Reported by John Darrington <john@darrington.wattle.id.au>.
5548
5549 2011-06-17  Bruno Haible  <bruno@clisp.org>
5550
5551         pread, pwrite: Avoid cc warning on AIX.
5552         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5553         (pwrite): Likewise.
5554
5555 2011-06-17  Bruno Haible  <bruno@clisp.org>
5556
5557         spawn-pipe tests: Fix link error.
5558         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5560
5561 2011-06-17  Bruno Haible  <bruno@clisp.org>
5562
5563         Tests: Remove unnecessary dependency.
5564         * modules/canonicalize-tests (Depends-on): Remove progname.
5565         * modules/chown-tests (Depends-on): Likewise.
5566         * modules/dirname-tests (Depends-on): Likewise.
5567         * modules/fdopendir-tests (Depends-on): Likewise.
5568         * modules/fdutimensat-tests (Depends-on): Likewise.
5569         * modules/hash-tests (Depends-on): Likewise.
5570         * modules/lchown-tests (Depends-on): Likewise.
5571         * modules/linkat-tests (Depends-on): Likewise.
5572         * modules/renameat-tests (Depends-on): Likewise.
5573         * modules/spawn-pipe-tests (Depends-on): Likewise.
5574         * modules/utimensat-tests (Depends-on): Likewise.
5575
5576 2011-06-17  Bruno Haible  <bruno@clisp.org>
5577
5578         spawn-pipe tests: Fix link error.
5579         * tests/test-spawn-pipe-child.c: Undefine fflush.
5580
5581 2011-06-17  Bruno Haible  <bruno@clisp.org>
5582
5583         Fix tests link errors.
5584         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5585         * modules/chown-tests (Makefile.am): Don't link test-chown with
5586         LIBINTL.
5587         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5588         LIBINTL.
5589         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5590         LIBINTL.
5591         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5592         LIBINTL.
5593
5594 2011-06-16  Bruno Haible  <bruno@clisp.org>
5595
5596         crypto/gc-sha1: Fix recent regression.
5597         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5598         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5599
5600         crypto/gc-md5: Fix recent regression.
5601         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5602
5603         crypto/gc-md4: Fix recent regression.
5604         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5605         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5606
5607         crypto/gc-arctwo: Fix recent regression.
5608         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5609         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5610
5611         crypto/gc-rijndael: Fix recent regression.
5612         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5613         (configure.ac): Invoke AC_LIBOBJ here.
5614         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5616
5617         crypto/gc-hmac-sha1: Fix recent regression.
5618         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5619         (configure.ac): Invoke AC_LIBOBJ here.
5620         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5622
5623         crypto/gc-hmac-md5: Fix recent regression.
5624         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5625         (configure.ac): Invoke AC_LIBOBJ here.
5626         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5628
5629         crypto/gc-des: Fix recent regression.
5630         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5631         (configure.ac): Invoke AC_LIBOBJ here.
5632         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5634
5635         crypto/gc-arcfour: Fix recent regression.
5636         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5637         (configure.ac): Invoke AC_LIBOBJ here.
5638         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5640
5641 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5642
5643         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5644         After the 2011-05-21 change, this macro requires
5645         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5646         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5647
5648 2011-06-16  Bruno Haible  <bruno@clisp.org>
5649
5650         fprintftime: Move AC_LIBOBJ invocations to module description.
5651         * m4/fprintftime.m4: Remove file.
5652         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5653         (configure.ac): Remove gl_FPRINTFTIME call.
5654         (Makefile.am): Augment lib_SOURCES.
5655         Reported by Jim Meyering.
5656
5657 2011-06-16  Bruno Haible  <bruno@clisp.org>
5658
5659         tmpfile-safer: Finish 2011-05-23 commit.
5660         * m4/stdio-safer.m4: Really remove file.
5661         Reported by Jim Meyering.
5662
5663 2011-06-16  Bruno Haible  <bruno@clisp.org>
5664
5665         syntax-check: Fix typo.
5666         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5667         printf-posix.m4.
5668         Reported by Jim Meyering.
5669
5670 2011-06-13  Jim Meyering  <meyering@redhat.com>
5671
5672         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5673         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5674
5675 2011-05-23  Bruno Haible  <bruno@clisp.org>
5676
5677         yesno: Move AC_LIBOBJ invocations to module description.
5678         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5679         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5680
5681 2011-05-23  Bruno Haible  <bruno@clisp.org>
5682
5683         xstrtol: Move AC_LIBOBJ invocations to module description.
5684         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5685         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5686
5687 2011-05-23  Bruno Haible  <bruno@clisp.org>
5688
5689         xstrtold: Move AC_LIBOBJ invocations to module description.
5690         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5691         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5692
5693 2011-05-23  Bruno Haible  <bruno@clisp.org>
5694
5695         xstrtod: Move AC_LIBOBJ invocations to module description.
5696         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5697         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5698
5699 2011-05-23  Bruno Haible  <bruno@clisp.org>
5700
5701         xnanosleep: Move AC_LIBOBJ invocations to module description.
5702         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5703         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5704
5705 2011-05-23  Bruno Haible  <bruno@clisp.org>
5706
5707         xgetcwd: Move AC_LIBOBJ invocations to module description.
5708         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5709         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5710
5711 2011-05-23  Bruno Haible  <bruno@clisp.org>
5712
5713         xalloc: Move AC_LIBOBJ invocations to module description.
5714         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5715         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5716
5717 2011-05-23  Bruno Haible  <bruno@clisp.org>
5718
5719         write-any-file: Move AC_LIBOBJ invocations to module description.
5720         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5721         invocation.
5722         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5723
5724 2011-05-23  Bruno Haible  <bruno@clisp.org>
5725
5726         utimens: Move AC_LIBOBJ invocations to module description.
5727         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5728         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5729
5730 2011-05-23  Bruno Haible  <bruno@clisp.org>
5731
5732         utimecmp: Move AC_LIBOBJ invocations to module description.
5733         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5734         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5735
5736 2011-05-23  Bruno Haible  <bruno@clisp.org>
5737
5738         userspec: Move AC_LIBOBJ invocations to module description.
5739         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5740         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5741
5742 2011-05-23  Bruno Haible  <bruno@clisp.org>
5743
5744         unlinkdir: Move AC_LIBOBJ invocations to module description.
5745         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5746         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5747
5748 2011-05-23  Bruno Haible  <bruno@clisp.org>
5749
5750         unistd-safer: Move AC_LIBOBJ invocations to module description.
5751         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5752         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5753
5754 2011-05-23  Bruno Haible  <bruno@clisp.org>
5755
5756         tempname: Move AC_LIBOBJ invocations to module description.
5757         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5758         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5759
5760 2011-05-23  Bruno Haible  <bruno@clisp.org>
5761
5762         strftime: Move AC_LIBOBJ invocations to module description.
5763         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5764         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5765
5766 2011-05-23  Bruno Haible  <bruno@clisp.org>
5767
5768         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5769         * m4/stdlib-safer.m4: Remove file.
5770         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5771         (configure.ac): Remove gl_STDLIB_SAFER call.
5772         (Makefile.am): Augment lib_SOURCES.
5773
5774 2011-05-23  Bruno Haible  <bruno@clisp.org>
5775
5776         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5777         * m4/stdio-safer.m4: Remove file.
5778         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5779         (configure.ac): Remove gl_TMPFILE_SAFER call.
5780         (Makefile.am): Augment lib_SOURCES.
5781
5782 2011-05-23  Bruno Haible  <bruno@clisp.org>
5783
5784         popen-safer: Move AC_LIBOBJ invocations to module description.
5785         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5786         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5787         (configure.ac): Remove gl_POPEN_SAFER call.
5788         (Makefile.am): Augment lib_SOURCES.
5789
5790 2011-05-23  Bruno Haible  <bruno@clisp.org>
5791
5792         freopen-safer: Move AC_LIBOBJ invocations to module description.
5793         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5794         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5795         (configure.ac): Remove gl_FREOPEN_SAFER call.
5796         (Makefile.am): Augment lib_SOURCES.
5797
5798 2011-05-23  Bruno Haible  <bruno@clisp.org>
5799
5800         fopen-safer: Move AC_LIBOBJ invocations to module description.
5801         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5802         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5803         (configure.ac): Remove gl_FOPEN_SAFER call.
5804         (Makefile.am): Augment lib_SOURCES.
5805
5806 2011-05-23  Bruno Haible  <bruno@clisp.org>
5807
5808         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5809         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5810         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5811
5812 2011-05-23  Bruno Haible  <bruno@clisp.org>
5813
5814         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5815         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5816         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5817
5818 2011-05-23  Bruno Haible  <bruno@clisp.org>
5819
5820         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5821         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5822         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5823
5824 2011-05-23  Bruno Haible  <bruno@clisp.org>
5825
5826         settime: Move AC_LIBOBJ invocations to module description.
5827         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5828         * modules/settime (Makefile.am): Augment lib_SOURCES.
5829
5830 2011-05-23  Bruno Haible  <bruno@clisp.org>
5831
5832         savedir: Move AC_LIBOBJ invocations to module description.
5833         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5834         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5835
5836 2011-05-23  Bruno Haible  <bruno@clisp.org>
5837
5838         save-cwd: Move AC_LIBOBJ invocations to module description.
5839         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5840         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5841
5842 2011-05-23  Bruno Haible  <bruno@clisp.org>
5843
5844         same: Move AC_LIBOBJ invocations to module description.
5845         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5846         * modules/same (Makefile.am): Augment lib_SOURCES.
5847
5848 2011-05-23  Bruno Haible  <bruno@clisp.org>
5849
5850         safe-write: Move AC_LIBOBJ invocations to module description.
5851         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5852         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5853         instead of gl_SAFE_WRITE.
5854         (Makefile.am): Augment lib_SOURCES.
5855
5856 2011-05-23  Bruno Haible  <bruno@clisp.org>
5857
5858         safe-read: Move AC_LIBOBJ invocations to module description.
5859         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5860         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5861         of gl_SAFE_READ.
5862         (Makefile.am): Augment lib_SOURCES.
5863
5864 2011-05-23  Bruno Haible  <bruno@clisp.org>
5865
5866         safe-alloc: Move AC_LIBOBJ invocations to module description.
5867         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5868         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5869
5870 2011-05-23  Bruno Haible  <bruno@clisp.org>
5871
5872         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5873         * m4/rijndael.m4: Remove file.
5874         * modules/crypto/rijndael (Files): Remove it.
5875         (configure.ac): Remove gl_RIJNDAEL call.
5876         (Makefile.am): Augment lib_SOURCES.
5877
5878 2011-05-23  Bruno Haible  <bruno@clisp.org>
5879
5880         readtokens: Move AC_LIBOBJ invocations to module description.
5881         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5882         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5883
5884 2011-05-23  Bruno Haible  <bruno@clisp.org>
5885
5886         read-file: Move AC_LIBOBJ invocations to module description.
5887         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5888         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5889         of gl_FUNC_READ_FILE.
5890         (Makefile.am): Augment lib_SOURCES.
5891
5892 2011-05-23  Bruno Haible  <bruno@clisp.org>
5893
5894         quotearg: Move AC_LIBOBJ invocations to module description.
5895         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5896         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5897
5898 2011-05-23  Bruno Haible  <bruno@clisp.org>
5899
5900         quote: Move AC_LIBOBJ invocations to module description.
5901         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5902         * modules/quote (Makefile.am): Augment lib_SOURCES.
5903
5904 2011-05-23  Bruno Haible  <bruno@clisp.org>
5905
5906         posixver: Move AC_LIBOBJ invocations to module description.
5907         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5908         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5909
5910 2011-05-23  Bruno Haible  <bruno@clisp.org>
5911
5912         posixtm: Move AC_LIBOBJ invocations to module description.
5913         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5914         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5915
5916 2011-05-23  Bruno Haible  <bruno@clisp.org>
5917
5918         physmem: Move AC_LIBOBJ invocations to module description.
5919         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5920         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5921
5922 2011-05-23  Bruno Haible  <bruno@clisp.org>
5923
5924         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5925         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5926         invocation.
5927         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5928
5929 2011-05-23  Bruno Haible  <bruno@clisp.org>
5930
5931         mpsort: Move AC_LIBOBJ invocations to module description.
5932         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5933         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5934
5935 2011-05-23  Bruno Haible  <bruno@clisp.org>
5936
5937         modechange: Move AC_LIBOBJ invocations to module description.
5938         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5939         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5940
5941 2011-05-23  Bruno Haible  <bruno@clisp.org>
5942
5943         mkdir-p: Move AC_LIBOBJ invocations to module description.
5944         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5945         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5946
5947 2011-05-23  Bruno Haible  <bruno@clisp.org>
5948
5949         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5950         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5951         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5952
5953 2011-05-23  Bruno Haible  <bruno@clisp.org>
5954
5955         mgetgroups: Move AC_LIBOBJ invocations to module description.
5956         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5957         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5958
5959 2011-05-23  Bruno Haible  <bruno@clisp.org>
5960
5961         memxor: Move AC_LIBOBJ invocations to module description.
5962         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5963         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5964
5965 2011-05-23  Bruno Haible  <bruno@clisp.org>
5966
5967         memcoll: Move AC_LIBOBJ invocations to module description.
5968         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5969         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5970
5971 2011-05-23  Bruno Haible  <bruno@clisp.org>
5972
5973         memcasecmp: Move AC_LIBOBJ invocations to module description.
5974         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5975         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5976
5977 2011-05-23  Bruno Haible  <bruno@clisp.org>
5978
5979         crypto/md5: Move AC_LIBOBJ invocations to module description.
5980         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5981         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5982
5983 2011-05-23  Bruno Haible  <bruno@clisp.org>
5984
5985         crypto/md4: Move AC_LIBOBJ invocations to module description.
5986         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5987         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5988
5989 2011-05-23  Bruno Haible  <bruno@clisp.org>
5990
5991         crypto/md2: Move AC_LIBOBJ invocations to module description.
5992         * m4/md2.m4: Remove file.
5993         * modules/crypto/md2 (Files): Remove it.
5994         (configure.ac): Remove gl_MD2 call.
5995         (Makefile.am): Augment lib_SOURCES.
5996
5997 2011-05-23  Bruno Haible  <bruno@clisp.org>
5998
5999         long-options: Move AC_LIBOBJ invocations to module description.
6000         * m4/long-options.m4: Remove file.
6001         * modules/long-options (Files): Remove it.
6002         (configure.ac): Remove gl_LONG_OPTIONS call.
6003         (Makefile.am): Augment lib_SOURCES.
6004
6005 2011-05-23  Bruno Haible  <bruno@clisp.org>
6006
6007         i-ring: Move AC_LIBOBJ invocations to module description.
6008         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6009         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6010
6011 2011-05-23  Bruno Haible  <bruno@clisp.org>
6012
6013         idcache: Move AC_LIBOBJ invocations to module description.
6014         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6015         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6016
6017 2011-05-23  Bruno Haible  <bruno@clisp.org>
6018
6019         human: Move AC_LIBOBJ invocations to module description.
6020         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6021         * modules/human (Makefile.am): Augment lib_SOURCES.
6022
6023 2011-05-23  Bruno Haible  <bruno@clisp.org>
6024
6025         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6026         * m4/hmac-sha1.m4: Remove file.
6027         * modules/crypto/hmac-sha1 (Files): Remove it.
6028         (configure.ac): Remove gl_HMAC_SHA1 call.
6029         (Makefile.am): Augment lib_SOURCES.
6030
6031 2011-05-23  Bruno Haible  <bruno@clisp.org>
6032
6033         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6034         * m4/hmac-md5.m4: Remove file.
6035         * modules/crypto/hmac-md5 (Files): Remove it.
6036         (configure.ac): Remove gl_HMAC_MD5 call.
6037         (Makefile.am): Augment lib_SOURCES.
6038
6039 2011-05-23  Bruno Haible  <bruno@clisp.org>
6040
6041         hash: Move AC_LIBOBJ invocations to module description.
6042         * m4/hash.m4: Remove file.
6043         * modules/hash (Files): Remove it.
6044         (configure.ac): Remove gl_HASH call.
6045         (Makefile.am): Augment lib_SOURCES.
6046
6047 2011-05-23  Bruno Haible  <bruno@clisp.org>
6048
6049         hard-locale: Move AC_LIBOBJ invocations to module description.
6050         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6051         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6052
6053 2011-05-23  Bruno Haible  <bruno@clisp.org>
6054
6055         getugroups: Move AC_LIBOBJ invocations to module description.
6056         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6057         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6058
6059 2011-05-23  Bruno Haible  <bruno@clisp.org>
6060
6061         gettime: Move AC_LIBOBJ invocations to module description.
6062         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6063         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6064
6065 2011-05-23  Bruno Haible  <bruno@clisp.org>
6066
6067         getndelim2: Move AC_LIBOBJ invocations to module description.
6068         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6069         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6070
6071 2011-05-23  Bruno Haible  <bruno@clisp.org>
6072
6073         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6074         * m4/gc-pbkdf2-sha1.m4: Remove file.
6075         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6076         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6077         (Makefile.am): Augment lib_SOURCES.
6078
6079 2011-05-23  Bruno Haible  <bruno@clisp.org>
6080
6081         fts: Move AC_LIBOBJ invocations to module description.
6082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6083         * modules/fts (configure.ac): ... to here.
6084
6085 2011-05-23  Bruno Haible  <bruno@clisp.org>
6086
6087         file-type: Move AC_LIBOBJ invocations to module description.
6088         * m4/file-type.m4: Remove file.
6089         * modules/file-type (Files): Remove it.
6090         (configure.ac): Remove gl_FILE_TYPE call.
6091         (Makefile.am): Augment lib_SOURCES.
6092
6093 2011-05-23  Bruno Haible  <bruno@clisp.org>
6094
6095         filenamecat*: Respect rules for use of AC_LIBOBJ.
6096         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6097         Remove AC_LIBOBJ invocation.
6098         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6099         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6100
6101 2011-05-23  Bruno Haible  <bruno@clisp.org>
6102
6103         filemode: Move AC_LIBOBJ invocations to module description.
6104         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6105         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6106
6107 2011-05-23  Bruno Haible  <bruno@clisp.org>
6108
6109         openat-safer: Move AC_LIBOBJ invocations to module description.
6110         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6111         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6112
6113 2011-05-23  Bruno Haible  <bruno@clisp.org>
6114
6115         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6116         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6117         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6118
6119 2011-05-23  Bruno Haible  <bruno@clisp.org>
6120
6121         exclude: Move AC_LIBOBJ invocations to module description.
6122         * m4/exclude.m4: Remove file.
6123         * modules/exclude (Files): Remove it.
6124         (configure.ac): Remove gl_EXCLUDE call.
6125         (Makefile.am): Augment lib_SOURCES.
6126
6127 2011-05-23  Bruno Haible  <bruno@clisp.org>
6128
6129         dirname*: Respect rules for use of AC_LIBOBJ.
6130         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6131         invocations.
6132         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6133         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6134
6135 2011-05-23  Bruno Haible  <bruno@clisp.org>
6136
6137         dirent-safer: Move AC_LIBOBJ invocations to module description.
6138         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6139         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6140
6141 2011-05-23  Bruno Haible  <bruno@clisp.org>
6142
6143         crypto/des: Move AC_LIBOBJ invocations to module description.
6144         * m4/des.m4: Remove file.
6145         * modules/crypto/des (Files): Remove it.
6146         (configure.ac): Remove gl_DES call.
6147         (Makefile.am): Augment lib_SOURCES.
6148
6149 2011-05-23  Bruno Haible  <bruno@clisp.org>
6150
6151         cycle-check: Move AC_LIBOBJ invocations to module description.
6152         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6153         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6154
6155 2011-05-23  Bruno Haible  <bruno@clisp.org>
6156
6157         c-strtold: Move AC_LIBOBJ invocations to module description.
6158         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6159         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6160
6161 2011-05-23  Bruno Haible  <bruno@clisp.org>
6162
6163         c-strtod: Move AC_LIBOBJ invocations to module description.
6164         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6165         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6166
6167 2011-05-23  Bruno Haible  <bruno@clisp.org>
6168
6169         crc: Move AC_LIBOBJ invocations to module description.
6170         * m4/crc.m4: Remove file.
6171         * modules/crc (Files): Remove it.
6172         (configure.ac): Remove gl_CRC call.
6173         (Makefile.am): Augment lib_SOURCES.
6174
6175 2011-05-23  Bruno Haible  <bruno@clisp.org>
6176
6177         close-stream: Move AC_LIBOBJ invocations to module description.
6178         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6179         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6180
6181 2011-05-23  Bruno Haible  <bruno@clisp.org>
6182
6183         closeout: Move AC_LIBOBJ invocations to module description.
6184         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6185         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6186
6187 2011-05-23  Bruno Haible  <bruno@clisp.org>
6188
6189         closein: Move AC_LIBOBJ invocations to module description.
6190         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6191         * modules/closein (Makefile.am): Augment lib_SOURCES.
6192
6193 2011-05-23  Bruno Haible  <bruno@clisp.org>
6194
6195         cloexec: Move AC_LIBOBJ invocations to module description.
6196         * m4/cloexec.m4: Remove file.
6197         * modules/cloexec (Files): Remove it.
6198         (configure.ac): Remove gl_CLOEXEC call.
6199         (Makefile.am): Augment lib_SOURCES.
6200
6201 2011-05-23  Bruno Haible  <bruno@clisp.org>
6202
6203         check-version: Move AC_LIBOBJ invocations to module description.
6204         * m4/check-version.m4: Remove file.
6205         * modules/check-version (Files): Remove it.
6206         (configure.ac): Remove gl_CHECK_VERSION call.
6207         (Makefile.am): Augment lib_SOURCES.
6208
6209 2011-05-23  Bruno Haible  <bruno@clisp.org>
6210
6211         chdir-safer: Move AC_LIBOBJ invocations to module description.
6212         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6213         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6214
6215 2011-05-23  Bruno Haible  <bruno@clisp.org>
6216
6217         canonicalize: Move AC_LIBOBJ invocations to module description.
6218         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6219         AC_LIBOBJ invocation.
6220         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6221
6222 2011-05-23  Bruno Haible  <bruno@clisp.org>
6223
6224         canon-host: Move AC_LIBOBJ invocations to module description.
6225         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6226         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6227         instead of gl_CANON_HOST.
6228         (Makefile.am): Augment lib_SOURCES.
6229
6230 2011-05-23  Bruno Haible  <bruno@clisp.org>
6231
6232         backupfile: Move AC_LIBOBJ invocations to module description.
6233         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6234         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6235
6236 2011-05-23  Bruno Haible  <bruno@clisp.org>
6237
6238         argmatch: Move AC_LIBOBJ invocations to module description.
6239         * m4/argmatch.m4: Remove file.
6240         * modules/argmatch (Files): Remove it.
6241         (configure.ac): Remove gl_ARGMATCH call.
6242         (Makefile.am): Augment lib_SOURCES.
6243
6244 2011-05-23  Bruno Haible  <bruno@clisp.org>
6245
6246         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6247         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6248         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6249
6250 2011-05-23  Bruno Haible  <bruno@clisp.org>
6251
6252         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6253         * m4/arcfour.m4: Remove file.
6254         * modules/crypto/arcfour (Files): Remove it.
6255         (configure.ac): Remove gl_ARCFOUR call.
6256         (Makefile.am): Augment lib_SOURCES.
6257
6258 2011-05-22  Bruno Haible  <bruno@clisp.org>
6259
6260         write: Move AC_LIBOBJ invocations to module description.
6261         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6262         * modules/write (configure.ac): ... to here.
6263
6264 2011-05-22  Bruno Haible  <bruno@clisp.org>
6265
6266         wmemset: Move AC_LIBOBJ invocations to module description.
6267         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6268         here...
6269         * modules/wmemset (configure.ac): ... to here.
6270
6271 2011-05-22  Bruno Haible  <bruno@clisp.org>
6272
6273         wmemmove: Move AC_LIBOBJ invocations to module description.
6274         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6275         here...
6276         * modules/wmemmove (configure.ac): ... to here.
6277
6278 2011-05-22  Bruno Haible  <bruno@clisp.org>
6279
6280         wmemcpy: Move AC_LIBOBJ invocations to module description.
6281         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6282         here...
6283         * modules/wmemcpy (configure.ac): ... to here.
6284
6285 2011-05-22  Bruno Haible  <bruno@clisp.org>
6286
6287         wmemcmp: Move AC_LIBOBJ invocations to module description.
6288         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6289         here...
6290         * modules/wmemcmp (configure.ac): ... to here.
6291
6292 2011-05-22  Bruno Haible  <bruno@clisp.org>
6293
6294         wmemchr: Move AC_LIBOBJ invocations to module description.
6295         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6296         here...
6297         * modules/wmemchr (configure.ac): ... to here.
6298
6299 2011-05-22  Bruno Haible  <bruno@clisp.org>
6300
6301         wcswidth: Move AC_LIBOBJ invocations to module description.
6302         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6303         here...
6304         * modules/wcswidth (configure.ac): ... to here.
6305
6306 2011-05-22  Bruno Haible  <bruno@clisp.org>
6307
6308         wcwidth: Respect rules for use of AC_LIBOBJ.
6309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6310         invocation from here...
6311         * modules/wcwidth (configure.ac): ... to here.
6312         (Depends-on): Update conditions.
6313
6314 2011-05-22  Bruno Haible  <bruno@clisp.org>
6315
6316         wctype: Move AC_LIBOBJ invocations to module description.
6317         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6318         invocation from here...
6319         * modules/wctype (configure.ac): ... to here.
6320         (Depends-on): Update conditions.
6321
6322 2011-05-22  Bruno Haible  <bruno@clisp.org>
6323
6324         wctrans: Move AC_LIBOBJ invocations to module description.
6325         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6326         invocation from here...
6327         * modules/wctrans (configure.ac): ... to here.
6328
6329 2011-05-22  Bruno Haible  <bruno@clisp.org>
6330
6331         wctomb: Move AC_LIBOBJ invocations to module description.
6332         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6333         invocations from here...
6334         * modules/wctomb (configure.ac): ... to here.
6335
6336 2011-05-22  Bruno Haible  <bruno@clisp.org>
6337
6338         wctob: Move AC_LIBOBJ invocations to module description.
6339         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6340         gl_PREREQ_WCTOB invocations from here...
6341         * modules/wctob (configure.ac): ... to here.
6342         (Depends-on): Update conditions.
6343
6344 2011-05-22  Bruno Haible  <bruno@clisp.org>
6345
6346         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6347         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6348         here...
6349         * modules/wcsxfrm (configure.ac): ... to here.
6350
6351 2011-05-22  Bruno Haible  <bruno@clisp.org>
6352
6353         wcstok: Move AC_LIBOBJ invocations to module description.
6354         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6355         * modules/wcstok (configure.ac): ... to here.
6356
6357 2011-05-22  Bruno Haible  <bruno@clisp.org>
6358
6359         wcsstr: Move AC_LIBOBJ invocations to module description.
6360         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6361         * modules/wcsstr (configure.ac): ... to here.
6362
6363 2011-05-22  Bruno Haible  <bruno@clisp.org>
6364
6365         wcsspn: Move AC_LIBOBJ invocations to module description.
6366         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6367         * modules/wcsspn (configure.ac): ... to here.
6368
6369 2011-05-22  Bruno Haible  <bruno@clisp.org>
6370
6371         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6372         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6373         gl_PREREQ_WCSRTOMBS invocations from here...
6374         * modules/wcsrtombs (configure.ac): ... to here.
6375
6376 2011-05-22  Bruno Haible  <bruno@clisp.org>
6377
6378         wcsrchr: Move AC_LIBOBJ invocations to module description.
6379         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6380         here...
6381         * modules/wcsrchr (configure.ac): ... to here.
6382
6383 2011-05-22  Bruno Haible  <bruno@clisp.org>
6384
6385         wcspbrk: Move AC_LIBOBJ invocations to module description.
6386         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6387         here...
6388         * modules/wcspbrk (configure.ac): ... to here.
6389
6390 2011-05-22  Bruno Haible  <bruno@clisp.org>
6391
6392         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6393         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6394         gl_PREREQ_WCSNRTOMBS invocations from here...
6395         * modules/wcsnrtombs (configure.ac): ... to here.
6396
6397 2011-05-22  Bruno Haible  <bruno@clisp.org>
6398
6399         wcsnlen: Move AC_LIBOBJ invocations to module description.
6400         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6401         here...
6402         * modules/wcsnlen (configure.ac): ... to here.
6403
6404 2011-05-22  Bruno Haible  <bruno@clisp.org>
6405
6406         wcsncpy: Move AC_LIBOBJ invocations to module description.
6407         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6408         here...
6409         * modules/wcsncpy (configure.ac): ... to here.
6410
6411 2011-05-22  Bruno Haible  <bruno@clisp.org>
6412
6413         wcsncmp: Move AC_LIBOBJ invocations to module description.
6414         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6415         here...
6416         * modules/wcsncmp (configure.ac): ... to here.
6417
6418 2011-05-22  Bruno Haible  <bruno@clisp.org>
6419
6420         wcsncat: Move AC_LIBOBJ invocations to module description.
6421         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6422         here...
6423         * modules/wcsncat (configure.ac): ... to here.
6424
6425 2011-05-22  Bruno Haible  <bruno@clisp.org>
6426
6427         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6428         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6429         from here...
6430         * modules/wcsncasecmp (configure.ac): ... to here.
6431
6432 2011-05-22  Bruno Haible  <bruno@clisp.org>
6433
6434         wcslen: Move AC_LIBOBJ invocations to module description.
6435         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6436         * modules/wcslen (configure.ac): ... to here.
6437
6438 2011-05-22  Bruno Haible  <bruno@clisp.org>
6439
6440         wcsdup: Move AC_LIBOBJ invocations to module description.
6441         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6442         * modules/wcsdup (configure.ac): ... to here.
6443
6444 2011-05-22  Bruno Haible  <bruno@clisp.org>
6445
6446         wcscspn: Move AC_LIBOBJ invocations to module description.
6447         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6448         here...
6449         * modules/wcscspn (configure.ac): ... to here.
6450
6451 2011-05-22  Bruno Haible  <bruno@clisp.org>
6452
6453         wcscpy: Move AC_LIBOBJ invocations to module description.
6454         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6455         * modules/wcscpy (configure.ac): ... to here.
6456
6457 2011-05-22  Bruno Haible  <bruno@clisp.org>
6458
6459         wcscoll: Move AC_LIBOBJ invocations to module description.
6460         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6461         here...
6462         * modules/wcscoll (configure.ac): ... to here.
6463
6464 2011-05-22  Bruno Haible  <bruno@clisp.org>
6465
6466         wcscmp: Move AC_LIBOBJ invocations to module description.
6467         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6468         * modules/wcscmp (configure.ac): ... to here.
6469
6470 2011-05-22  Bruno Haible  <bruno@clisp.org>
6471
6472         wcschr: Move AC_LIBOBJ invocations to module description.
6473         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6474         * modules/wcschr (configure.ac): ... to here.
6475
6476 2011-05-22  Bruno Haible  <bruno@clisp.org>
6477
6478         wcscat: Move AC_LIBOBJ invocations to module description.
6479         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6480         * modules/wcscat (configure.ac): ... to here.
6481
6482 2011-05-22  Bruno Haible  <bruno@clisp.org>
6483
6484         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6485         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6486         here...
6487         * modules/wcscasecmp (configure.ac): ... to here.
6488
6489 2011-05-22  Bruno Haible  <bruno@clisp.org>
6490
6491         wcrtomb: Move AC_LIBOBJ invocations to module description.
6492         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6493         invocations from here...
6494         * modules/wcrtomb (configure.ac): ... to here.
6495
6496 2011-05-22  Bruno Haible  <bruno@clisp.org>
6497
6498         wcpncpy: Move AC_LIBOBJ invocations to module description.
6499         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6500         here...
6501         * modules/wcpncpy (configure.ac): ... to here.
6502
6503 2011-05-22  Bruno Haible  <bruno@clisp.org>
6504
6505         wcpcpy: Move AC_LIBOBJ invocations to module description.
6506         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6507         * modules/wcpcpy (configure.ac): ... to here.
6508
6509 2011-05-22  Bruno Haible  <bruno@clisp.org>
6510
6511         waitpid: Move AC_LIBOBJ invocations to module description.
6512         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6513         invocation from here...
6514         * modules/waitpid (configure.ac): ... to here.
6515
6516 2011-05-22  Bruno Haible  <bruno@clisp.org>
6517
6518         utimensat: Move AC_LIBOBJ invocations to module description.
6519         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6520         here...
6521         * modules/utimensat (configure.ac): ... to here.
6522
6523 2011-05-22  Bruno Haible  <bruno@clisp.org>
6524
6525         usleep: Move AC_LIBOBJ invocations to module description.
6526         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6527         here...
6528         * modules/usleep (configure.ac): ... to here.
6529
6530 2011-05-22  Bruno Haible  <bruno@clisp.org>
6531
6532         unlockpt: Move AC_LIBOBJ invocations to module description.
6533         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6534         gl_PREREQ_UNLOCKPT invocations from here...
6535         * modules/unlockpt (configure.ac): ... to here.
6536
6537 2011-05-22  Bruno Haible  <bruno@clisp.org>
6538
6539         unlink: Respect rules for use of AC_LIBOBJ.
6540         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6541         * modules/unlink (configure.ac): ... to here.
6542
6543 2011-05-22  Bruno Haible  <bruno@clisp.org>
6544
6545         uname: Move AC_LIBOBJ invocations to module description.
6546         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6547         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6548         here...
6549         * modules/uname (configure.ac): ... to here.
6550
6551 2011-05-22  Bruno Haible  <bruno@clisp.org>
6552
6553         ttyname_r: Move AC_LIBOBJ invocations to module description.
6554         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6555         gl_PREREQ_TTYNAME_R invocations from here...
6556         * modules/ttyname_r (configure.ac): ... to here.
6557
6558 2011-05-22  Bruno Haible  <bruno@clisp.org>
6559
6560         tsearch: Move AC_LIBOBJ invocations to module description.
6561         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6562         invocations from here...
6563         * modules/tsearch (configure.ac): ... to here.
6564
6565 2011-05-22  Bruno Haible  <bruno@clisp.org>
6566
6567         towctrans: Move AC_LIBOBJ invocations to module description.
6568         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6569         AC_LIBOBJ invocation from here...
6570         * modules/towctrans (configure.ac): ... to here.
6571
6572 2011-05-22  Bruno Haible  <bruno@clisp.org>
6573
6574         tmpfile: Move AC_LIBOBJ invocations to module description.
6575         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6576         invocations from here...
6577         * modules/tmpfile (configure.ac): ... to here.
6578
6579 2011-05-22  Bruno Haible  <bruno@clisp.org>
6580
6581         times: Move AC_LIBOBJ invocations to module description.
6582         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6583         * modules/times (configure.ac): ... to here.
6584
6585 2011-05-22  Bruno Haible  <bruno@clisp.org>
6586
6587         time_r: Move AC_LIBOBJ invocations to module description.
6588         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6589         invocations from here...
6590         * modules/time_r (configure.ac): ... to here.
6591
6592 2011-05-22  Bruno Haible  <bruno@clisp.org>
6593
6594         timegm: Move AC_LIBOBJ invocations to module description.
6595         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6596         invocations from here...
6597         * modules/timegm (configure.ac): ... to here.
6598
6599 2011-05-22  Bruno Haible  <bruno@clisp.org>
6600
6601         tcgetsid: Move AC_LIBOBJ invocations to module description.
6602         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6603         and gl_PREREQ_TCGETSID invocations from here...
6604         * modules/tcgetsid (configure.ac): ... to here.
6605         (Depends-on): Update conditions.
6606
6607 2011-05-22  Bruno Haible  <bruno@clisp.org>
6608
6609         symlinkat: Move AC_LIBOBJ invocations to module description.
6610         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6611         here...
6612         * modules/symlinkat (configure.ac): ... to here.
6613
6614 2011-05-22  Bruno Haible  <bruno@clisp.org>
6615
6616         symlink: Move AC_LIBOBJ invocations to module description.
6617         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6618         here...
6619         * modules/symlink (configure.ac): ... to here.
6620
6621 2011-05-22  Bruno Haible  <bruno@clisp.org>
6622
6623         strverscmp: Move AC_LIBOBJ invocations to module description.
6624         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6626         from here...
6627         * modules/strverscmp (configure.ac): ... to here.
6628
6629 2011-05-22  Bruno Haible  <bruno@clisp.org>
6630
6631         strtok_r: Move AC_LIBOBJ invocations to module description.
6632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6633         and gl_PREREQ_STRTOK_R invocations from here...
6634         * modules/strtok_r (configure.ac): ... to here.
6635         (Depends-on): Update conditions.
6636
6637 2011-05-22  Bruno Haible  <bruno@clisp.org>
6638
6639         strtoumax: Move AC_LIBOBJ invocations to module description.
6640         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6642         from here...
6643         * modules/strtoumax (configure.ac): ... to here.
6644
6645 2011-05-22  Bruno Haible  <bruno@clisp.org>
6646
6647         strtoimax: Move AC_LIBOBJ invocations to module description.
6648         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6650         from here...
6651         * modules/strtoimax (configure.ac): ... to here.
6652
6653 2011-05-22  Bruno Haible  <bruno@clisp.org>
6654
6655         strtoull: Move AC_LIBOBJ invocations to module description.
6656         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6658         from here...
6659         * modules/strtoull (configure.ac): ... to here.
6660
6661 2011-05-22  Bruno Haible  <bruno@clisp.org>
6662
6663         strtoll: Move AC_LIBOBJ invocations to module description.
6664         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6665         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6666         here...
6667         * modules/strtoll (configure.ac): ... to here.
6668
6669 2011-05-22  Bruno Haible  <bruno@clisp.org>
6670
6671         strtoul: Move AC_LIBOBJ invocations to module description.
6672         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6673         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6674         * modules/strtoul (configure.ac): ... to here.
6675
6676 2011-05-22  Bruno Haible  <bruno@clisp.org>
6677
6678         strtol: Move AC_LIBOBJ invocations to module description.
6679         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6680         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6681         * modules/strtol (configure.ac): ... to here.
6682
6683 2011-05-22  Bruno Haible  <bruno@clisp.org>
6684
6685         strtod: Move AC_LIBOBJ invocations to module description.
6686         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6687         invocations from here...
6688         * modules/strtod (configure.ac): ... to here.
6689
6690 2011-05-22  Bruno Haible  <bruno@clisp.org>
6691
6692         strstr*: Move AC_LIBOBJ invocations to module description.
6693         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6694         invocations from here...
6695         * modules/strstr-simple (configure.ac): ... to here.
6696         * modules/strstr (configure.ac): ... and here.
6697
6698 2011-05-22  Bruno Haible  <bruno@clisp.org>
6699
6700         strsignal: Move AC_LIBOBJ invocations to module description.
6701         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6702         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6703         * modules/strsignal (configure.ac): ... to here.
6704         (Depends-on): Update conditions.
6705
6706 2011-05-22  Bruno Haible  <bruno@clisp.org>
6707
6708         strsep: Move AC_LIBOBJ invocations to module description.
6709         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6710         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6711         here...
6712         * modules/strsep (configure.ac): ... to here.
6713
6714 2011-05-22  Bruno Haible  <bruno@clisp.org>
6715
6716         strptime: Move AC_LIBOBJ invocations to module description.
6717         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6718         gl_PREREQ_STRPTIME invocations from here...
6719         * modules/strptime (configure.ac): ... to here.
6720
6721 2011-05-22  Bruno Haible  <bruno@clisp.org>
6722
6723         strpbrk: Move AC_LIBOBJ invocations to module description.
6724         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6726         here...
6727         * modules/strpbrk (configure.ac): ... to here.
6728
6729 2011-05-22  Bruno Haible  <bruno@clisp.org>
6730
6731         strnlen: Move AC_LIBOBJ invocations to module description.
6732         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6733         invocations from here...
6734         * modules/strnlen (configure.ac): ... to here.
6735
6736 2011-05-22  Bruno Haible  <bruno@clisp.org>
6737
6738         strndup: Move AC_LIBOBJ invocations to module description.
6739         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6740         invocations from here...
6741         * modules/strndup (configure.ac): ... to here.
6742         (Depends-on): Update conditions.
6743
6744 2011-05-22  Bruno Haible  <bruno@clisp.org>
6745
6746         strncat: Move AC_LIBOBJ invocations to module description.
6747         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6748         invocations from here...
6749         * modules/strncat (configure.ac): ... to here.
6750
6751 2011-05-22  Bruno Haible  <bruno@clisp.org>
6752
6753         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6754         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6755         invocations from here...
6756         * modules/strdup (configure.ac): ... to here.
6757         * modules/strdup-posix (configure.ac): ... and here.
6758
6759 2011-05-22  Bruno Haible  <bruno@clisp.org>
6760
6761         strcspn: Move AC_LIBOBJ invocations to module description.
6762         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6764         here...
6765         * modules/strcspn (configure.ac): ... to here.
6766
6767 2011-05-22  Bruno Haible  <bruno@clisp.org>
6768
6769         strchrnul: Move AC_LIBOBJ invocations to module description.
6770         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6771         gl_PREREQ_STRCHRNUL invocations from here...
6772         * modules/strchrnul (configure.ac): ... to here.
6773
6774 2011-05-22  Bruno Haible  <bruno@clisp.org>
6775
6776         strcasestr*: Move AC_LIBOBJ invocations to module description.
6777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6778         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6779         * modules/strcasestr-simple (configure.ac): ... to here.
6780         * modules/strcasestr (configure.ac): ... and here.
6781
6782 2011-05-22  Bruno Haible  <bruno@clisp.org>
6783
6784         strcase: Move AC_LIBOBJ invocations to module description.
6785         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6786         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6787         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6788         gl_PREREQ_STRNCASECMP invocations from here...
6789         * modules/strcase (configure.ac): ... to here.
6790
6791 2011-05-22  Bruno Haible  <bruno@clisp.org>
6792
6793         stpncpy: Move AC_LIBOBJ invocations to module description.
6794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6795         here...
6796         * modules/stpncpy (configure.ac): ... to here.
6797
6798 2011-05-22  Bruno Haible  <bruno@clisp.org>
6799
6800         stpcpy: Move AC_LIBOBJ invocations to module description.
6801         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6802         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6803         here...
6804         * modules/stpcpy (configure.ac): ... to here.
6805
6806 2011-05-21  Bruno Haible  <bruno@clisp.org>
6807
6808         stat: Move AC_LIBOBJ invocations to module description.
6809         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6810         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6811         here...
6812         * modules/stat (configure.ac): ... to here.
6813
6814 2011-05-21  Bruno Haible  <bruno@clisp.org>
6815
6816         sleep: Move AC_LIBOBJ invocations to module description.
6817         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6818         * modules/sleep (configure.ac): ... to here.
6819
6820 2011-05-21  Bruno Haible  <bruno@clisp.org>
6821
6822         signbit: Move AC_LIBOBJ invocations to module description.
6823         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6824         * modules/signbit (configure.ac): ... to here.
6825
6826 2011-05-21  Bruno Haible  <bruno@clisp.org>
6827
6828         sigprocmask: Move AC_LIBOBJ invocations to module description.
6829         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6830         gl_PREREQ_SIGPROMASK invocations from here...
6831         * modules/sigprocmask (configure.ac): ... to here.
6832
6833 2011-05-21  Bruno Haible  <bruno@clisp.org>
6834
6835         sigaction: Move AC_LIBOBJ invocations to module description.
6836         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6837         gl_PREREQ_SIGACTION invocations from here...
6838         * modules/sigaction (configure.ac): ... to here.
6839
6840 2011-05-21  Bruno Haible  <bruno@clisp.org>
6841
6842         sig2str: Move AC_LIBOBJ invocations to module description.
6843         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6845         here...
6846         * modules/sig2str (configure.ac): ... to here.
6847
6848 2011-05-21  Bruno Haible  <bruno@clisp.org>
6849
6850         setlocale: Move AC_LIBOBJ invocations to module description.
6851         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6852         gl_PREREQ_SETLOCALE invocations from here...
6853         * modules/setlocale (configure.ac): ... to here.
6854
6855 2011-05-21  Bruno Haible  <bruno@clisp.org>
6856
6857         unsetenv: Move AC_LIBOBJ invocations to module description.
6858         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6859         and gl_PREREQ_UNSETENV invocations from here...
6860         * modules/unsetenv (configure.ac): ... to here.
6861         (Depends-on): Update.
6862
6863 2011-05-21  Bruno Haible  <bruno@clisp.org>
6864
6865         setenv: Move AC_LIBOBJ invocations to module description.
6866         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6867         here...
6868         * modules/setenv (configure.ac): ... to here.
6869
6870 2011-05-21  Bruno Haible  <bruno@clisp.org>
6871
6872         selinux-h: Move AC_LIBOBJ invocations to module description.
6873         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6874         AC_LIBOBJ invocation from here...
6875         * modules/selinux-h (configure.ac): ... to here.
6876
6877 2011-05-21  Bruno Haible  <bruno@clisp.org>
6878
6879         select: Respect rules for use of AC_LIBOBJ.
6880         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6881         here...
6882         * modules/select (configure.ac): ... to here.
6883
6884 2011-05-21  Bruno Haible  <bruno@clisp.org>
6885
6886         scandir: Move AC_LIBOBJ invocations to module description.
6887         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6888         invocations from here...
6889         * modules/scandir (configure.ac): ... to here.
6890
6891 2011-05-21  Bruno Haible  <bruno@clisp.org>
6892
6893         rpmatch: Move AC_LIBOBJ invocations to module description.
6894         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6896         here...
6897         * modules/rpmatch (configure.ac): ... to here.
6898
6899 2011-05-21  Bruno Haible  <bruno@clisp.org>
6900
6901         rmdir: Respect rules for use of AC_LIBOBJ.
6902         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6903         * modules/rmdir (configure.ac): ... to here.
6904
6905 2011-05-21  Bruno Haible  <bruno@clisp.org>
6906
6907         renameat: Move AC_LIBOBJ invocations to module description.
6908         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6909         here...
6910         * modules/renameat (configure.ac): ... to here.
6911
6912 2011-05-21  Bruno Haible  <bruno@clisp.org>
6913
6914         rename: Respect rules for use of AC_LIBOBJ.
6915         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6916         here...
6917         * modules/rename (configure.ac): ... to here.
6918
6919 2011-05-21  Bruno Haible  <bruno@clisp.org>
6920
6921         remove: Move AC_LIBOBJ invocations to module description.
6922         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6923         here...
6924         * modules/remove (configure.ac): ... to here.
6925
6926 2011-05-21  Bruno Haible  <bruno@clisp.org>
6927
6928         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6929         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6930         macro.
6931         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6932         * modules/relocatable-lib (configure.ac): ... to here.
6933         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6934         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6935
6936 2011-05-21  Bruno Haible  <bruno@clisp.org>
6937
6938         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6939         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6940         here...
6941         * modules/relocatable-prog (configure.ac): ... to here.
6942
6943 2011-05-21  Bruno Haible  <bruno@clisp.org>
6944
6945         regex: Move AC_LIBOBJ invocations to module description.
6946         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6947         invocations from here...
6948         * modules/regex (configure.ac): ... to here.
6949
6950 2011-05-21  Bruno Haible  <bruno@clisp.org>
6951
6952         realloc-*: Move AC_LIBOBJ invocations to module description.
6953         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6954         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6955         AC_LIBOBJ invocations from here...
6956         * modules/realloc-gnu (configure.ac): ... to here.
6957         * modules/realloc-posix (configure.ac): ... and here.
6958
6959 2011-05-21  Bruno Haible  <bruno@clisp.org>
6960
6961         readutmp: Move AC_LIBOBJ invocations to module description.
6962         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6963         * modules/readutmp (configure.ac): ... to here.
6964
6965 2011-05-21  Bruno Haible  <bruno@clisp.org>
6966
6967         readlinkat: Move AC_LIBOBJ invocations to module description.
6968         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6969         here...
6970         * modules/readlinkat (configure.ac): ... to here.
6971
6972 2011-05-21  Bruno Haible  <bruno@clisp.org>
6973
6974         readlink: Move AC_LIBOBJ invocations to module description.
6975         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6976         gl_PREREQ_READLINK invocations from here...
6977         * modules/readlink (configure.ac): ... to here.
6978
6979 2011-05-21  Bruno Haible  <bruno@clisp.org>
6980
6981         readline: Move AC_LIBOBJ invocations to module description.
6982         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6983         gl_PREREQ_READLINE invocations from here...
6984         * modules/readline (configure.ac): ... to here.
6985
6986 2011-05-21  Bruno Haible  <bruno@clisp.org>
6987
6988         read: Move AC_LIBOBJ invocations to module description.
6989         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6990         * modules/read (configure.ac): ... to here.
6991
6992 2011-05-21  Bruno Haible  <bruno@clisp.org>
6993
6994         rawmemchr: Move AC_LIBOBJ invocations to module description.
6995         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6997         from here...
6998         * modules/rawmemchr (configure.ac): ... to here.
6999
7000 2011-05-21  Bruno Haible  <bruno@clisp.org>
7001
7002         random_r: Move AC_LIBOBJ invocations to module description.
7003         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7004         gl_PREREQ_RANDOM_R invocations from here...
7005         * modules/random_r (configure.ac): ... to here.
7006
7007 2011-05-21  Bruno Haible  <bruno@clisp.org>
7008
7009         pwrite: Move AC_LIBOBJ invocations to module description.
7010         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7011         * modules/pwrite (configure.ac): ... to here.
7012
7013 2011-05-21  Bruno Haible  <bruno@clisp.org>
7014
7015         putenv: Move AC_LIBOBJ invocations to module description.
7016         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7017         * modules/putenv (configure.ac): ... to here.
7018
7019 2011-05-21  Bruno Haible  <bruno@clisp.org>
7020
7021         login_tty: Move AC_LIBOBJ invocations to module description.
7022         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7023         * modules/login_tty (configure.ac): ... to here.
7024
7025 2011-05-21  Bruno Haible  <bruno@clisp.org>
7026
7027         openpty: Move AC_LIBOBJ invocations to module description.
7028         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7029         * modules/openpty (configure.ac): ... to here.
7030
7031 2011-05-21  Bruno Haible  <bruno@clisp.org>
7032
7033         forkpty: Move AC_LIBOBJ invocations to module description.
7034         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7035         * modules/forkpty (configure.ac): ... to here.
7036
7037 2011-05-21  Bruno Haible  <bruno@clisp.org>
7038
7039         ptsname: Move AC_LIBOBJ invocations to module description.
7040         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7041         invocations from here...
7042         * modules/ptsname (configure.ac): ... to here.
7043
7044 2011-05-21  Bruno Haible  <bruno@clisp.org>
7045
7046         pread: Move AC_LIBOBJ invocations to module description.
7047         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7048         * modules/pread (configure.ac): ... to here.
7049
7050 2011-05-21  Bruno Haible  <bruno@clisp.org>
7051
7052         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7053         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7054         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7055         * modules/posix_spawn (configure.ac): ... to here.
7056         * modules/posix_spawnp (configure.ac): ... and here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         popen: Move AC_LIBOBJ invocations to module description.
7061         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7062         invocations from here...
7063         * modules/popen (configure.ac): ... to here.
7064
7065 2011-05-21  Bruno Haible  <bruno@clisp.org>
7066
7067         poll: Move AC_LIBOBJ invocations to module description.
7068         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7069         invocations from here...
7070         * modules/poll (configure.ac): ... to here.
7071
7072 2011-05-21  Bruno Haible  <bruno@clisp.org>
7073
7074         pipe-posix: Move AC_LIBOBJ invocations to module description.
7075         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7076         * modules/pipe-posix (configure.ac): ... to here.
7077
7078 2011-05-21  Bruno Haible  <bruno@clisp.org>
7079
7080         openat: Respect rules for use of AC_LIBOBJ.
7081         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7082         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7083         * modules/openat (configure.ac): ... to here.
7084
7085 2011-05-21  Bruno Haible  <bruno@clisp.org>
7086
7087         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7088         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7089         invocation from here...
7090         * modules/obstack-printf (configure.ac): ... to here.
7091         * modules/obstack-printf-posix (configure.ac): ... and here.
7092
7093 2011-05-21  Bruno Haible  <bruno@clisp.org>
7094
7095         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7096         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7097         from here...
7098         * modules/nl_langinfo (configure.ac): ... to here.
7099
7100 2011-05-21  Bruno Haible  <bruno@clisp.org>
7101
7102         nanosleep: Move AC_LIBOBJ invocations to module description.
7103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7104         gl_PREREQ_NANOSLEEP invocations from here...
7105         * modules/nanosleep (configure.ac): ... to here.
7106
7107 2011-05-21  Bruno Haible  <bruno@clisp.org>
7108
7109         mountlist: Move AC_LIBOBJ invocations to module description.
7110         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7111         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7112         * modules/mountlist (configure.ac): ... to here.
7113
7114 2011-05-21  Bruno Haible  <bruno@clisp.org>
7115
7116         mktime: Respect rules for use of AC_LIBOBJ.
7117         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7118         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7119         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7120         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7121         * modules/mktime (configure.ac): ... to here.
7122         * modules/mktime-internal (configure.ac): ... and here.
7123         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7124
7125 2011-05-21  Bruno Haible  <bruno@clisp.org>
7126
7127         mkstemps: Move AC_LIBOBJ invocations to module description.
7128         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7129         here...
7130         * modules/mkstemps (configure.ac): ... to here.
7131
7132 2011-05-21  Bruno Haible  <bruno@clisp.org>
7133
7134         mkstemp: Move AC_LIBOBJ invocations to module description.
7135         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7136         gl_PREREQ_MKSTEMP invocations from here...
7137         * modules/mkstemp (configure.ac): ... to here.
7138
7139 2011-05-21  Bruno Haible  <bruno@clisp.org>
7140
7141         mkostemps: Move AC_LIBOBJ invocations to module description.
7142         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7143         here...
7144         * modules/mkostemps (configure.ac): ... to here.
7145
7146 2011-05-21  Bruno Haible  <bruno@clisp.org>
7147
7148         mkostemp: Move AC_LIBOBJ invocations to module description.
7149         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7150         gl_PREREQ_MKOSTEMP invocations from here...
7151         * modules/mkostemp (configure.ac): ... to here.
7152
7153 2011-05-21  Bruno Haible  <bruno@clisp.org>
7154
7155         mknod: Move AC_LIBOBJ invocations to module description.
7156         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7157         * modules/mknod (configure.ac): ... to here.
7158
7159 2011-05-21  Bruno Haible  <bruno@clisp.org>
7160
7161         mkfifoat: Move AC_LIBOBJ invocations to module description.
7162         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7163         here...
7164         * modules/mkfifoat (configure.ac): ... to here.
7165
7166 2011-05-21  Bruno Haible  <bruno@clisp.org>
7167
7168         mkfifo: Respect rules for use of AC_LIBOBJ.
7169         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7170         here...
7171         * modules/mkfifo (configure.ac): ... to here.
7172
7173 2011-05-21  Bruno Haible  <bruno@clisp.org>
7174
7175         mkdtemp: Move AC_LIBOBJ invocations to module description.
7176         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7177         invocations from here...
7178         * modules/mkdtemp (configure.ac): ... to here.
7179
7180 2011-05-21  Bruno Haible  <bruno@clisp.org>
7181
7182         mkdir: Move AC_LIBOBJ invocations to module description.
7183         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7184         * modules/mkdir (configure.ac): ... to here.
7185
7186 2011-05-21  Bruno Haible  <bruno@clisp.org>
7187
7188         memset: Move AC_LIBOBJ invocations to module description.
7189         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7191         here...
7192         * modules/memset (configure.ac): ... to here.
7193
7194 2011-05-21  Bruno Haible  <bruno@clisp.org>
7195
7196         memrchr: Move AC_LIBOBJ invocations to module description.
7197         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7199         here...
7200         * modules/memrchr (configure.ac): ... to here.
7201
7202 2011-05-21  Bruno Haible  <bruno@clisp.org>
7203
7204         mempcpy: Move AC_LIBOBJ invocations to module description.
7205         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7206         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7207         here...
7208         * modules/mempcpy (configure.ac): ... to here.
7209
7210 2011-05-21  Bruno Haible  <bruno@clisp.org>
7211
7212         memmove: Move AC_LIBOBJ invocations to module description.
7213         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7214         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7215         here...
7216         * modules/memmove (configure.ac): ... to here.
7217
7218 2011-05-21  Bruno Haible  <bruno@clisp.org>
7219
7220         memmem*: Move AC_LIBOBJ invocations to module description.
7221         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7222         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7223         here...
7224         (gl_FUNC_MEMMEM): ... and here...
7225         * modules/memmem-simple (configure.ac): ... to here.
7226         * modules/memmem (configure.ac): ... and here.
7227
7228 2011-05-21  Bruno Haible  <bruno@clisp.org>
7229
7230         memcpy: Move AC_LIBOBJ invocations to module description.
7231         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7232         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7233         here...
7234         * modules/memcpy (configure.ac): ... to here.
7235
7236 2011-05-21  Bruno Haible  <bruno@clisp.org>
7237
7238         memcmp: Simplify autoconf macro.
7239         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7240         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7241         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7242
7243 2011-05-21  Bruno Haible  <bruno@clisp.org>
7244
7245         memcmp: Move AC_LIBOBJ invocations to module description.
7246         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7247         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7248         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7249         * modules/memcmp (configure.ac): ... to here.
7250         (Depends-on): Update conditions.
7251
7252 2011-05-21  Bruno Haible  <bruno@clisp.org>
7253
7254         memchr: Respect rules for use of AC_LIBOBJ.
7255         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7256         invocations from here...
7257         * modules/memchr (configure.ac): ... to here.
7258
7259 2011-05-21  Bruno Haible  <bruno@clisp.org>
7260
7261         mbtowc: Move AC_LIBOBJ invocations to module description.
7262         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7263         invocations from here...
7264         * modules/mbtowc (configure.ac): ... to here.
7265
7266 2011-05-21  Bruno Haible  <bruno@clisp.org>
7267
7268         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7269         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7270         gl_PREREQ_MBSRTOWCS invocations from here...
7271         * modules/mbsrtowcs (configure.ac): ... to here.
7272
7273 2011-05-21  Bruno Haible  <bruno@clisp.org>
7274
7275         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7276         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7277         gl_PREREQ_MBSNRTOWCS invocations from here...
7278         * modules/mbsnrtowcs (configure.ac): ... to here.
7279
7280 2011-05-21  Bruno Haible  <bruno@clisp.org>
7281
7282         mbsinit: Move AC_LIBOBJ invocations to module description.
7283         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7284         invocations from here...
7285         * modules/mbsinit (configure.ac): ... to here.
7286
7287 2011-05-21  Bruno Haible  <bruno@clisp.org>
7288
7289         mbrlen: Move AC_LIBOBJ invocations to module description.
7290         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7291         invocations from here...
7292         * modules/mbrlen (configure.ac): ... to here.
7293
7294 2011-05-21  Bruno Haible  <bruno@clisp.org>
7295
7296         mbrtowc: Respect rules for use of AC_LIBOBJ.
7297         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7298         invocations from here...
7299         * modules/mbrtowc (configure.ac): ... to here.
7300
7301 2011-05-21  Bruno Haible  <bruno@clisp.org>
7302
7303         malloc-*: Move AC_LIBOBJ invocations to module description.
7304         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7305         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7306         AC_LIBOBJ invocations from here...
7307         * modules/malloc-gnu (configure.ac): ... to here.
7308         * modules/malloc-posix (configure.ac): ... and here.
7309
7310 2011-05-21  Bruno Haible  <bruno@clisp.org>
7311
7312         lstat, openat: Respect rules for use of AC_LIBOBJ.
7313         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7314         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7315         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7316         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7317         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7318         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7319         here.
7320         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7321
7322 2011-05-21  Bruno Haible  <bruno@clisp.org>
7323
7324         lseek: Move AC_LIBOBJ invocations to module description.
7325         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7326         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7327         * modules/lseek (configure.ac): ... to here.
7328
7329 2011-05-21  Bruno Haible  <bruno@clisp.org>
7330
7331         linkat: Move AC_LIBOBJ invocations to module description.
7332         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7333         here...
7334         * modules/linkat (configure.ac): ... to here.
7335
7336 2011-05-21  Bruno Haible  <bruno@clisp.org>
7337
7338         link: Respect rules for use of AC_LIBOBJ.
7339         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7340         * modules/link (configure.ac): ... to here.
7341
7342 2011-05-21  Bruno Haible  <bruno@clisp.org>
7343
7344         lchown: Move AC_LIBOBJ invocations to module description.
7345         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7346         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7347         * modules/lchown (configure.ac): ... to here.
7348
7349 2011-05-21  Bruno Haible  <bruno@clisp.org>
7350
7351         iswctype: Move AC_LIBOBJ invocations to module description.
7352         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7353         here...
7354         * modules/iswctype (configure.ac): ... to here.
7355
7356 2011-05-21  Bruno Haible  <bruno@clisp.org>
7357
7358         iswblank: Move AC_LIBOBJ invocations to module description.
7359         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7360         here...
7361         * modules/iswblank (configure.ac): ... to here.
7362
7363 2011-05-21  Bruno Haible  <bruno@clisp.org>
7364
7365         atanl: Move AC_LIBOBJ invocations to module description.
7366         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7367         * modules/atanl (configure.ac): ... to here.
7368
7369 2011-05-21  Bruno Haible  <bruno@clisp.org>
7370
7371         acosl: Move AC_LIBOBJ invocations to module description.
7372         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7373         * modules/acosl (configure.ac): ... to here.
7374
7375 2011-05-21  Bruno Haible  <bruno@clisp.org>
7376
7377         asinl: Respect rules for use of AC_LIBOBJ.
7378         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7379         * modules/asinl (configure.ac): ... to here.
7380
7381 2011-05-21  Bruno Haible  <bruno@clisp.org>
7382
7383         tanl: Move AC_LIBOBJ invocations to module description.
7384         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7385         * modules/tanl (configure.ac): ... to here.
7386
7387 2011-05-21  Bruno Haible  <bruno@clisp.org>
7388
7389         cosl: Move AC_LIBOBJ invocations to module description.
7390         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7391         * modules/cosl (configure.ac): ... to here.
7392
7393 2011-05-21  Bruno Haible  <bruno@clisp.org>
7394
7395         sinl: Move AC_LIBOBJ invocations to module description.
7396         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7397         * modules/sinl (configure.ac): ... to here.
7398
7399 2011-05-21  Bruno Haible  <bruno@clisp.org>
7400
7401         logl: Move AC_LIBOBJ invocations to module description.
7402         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7403         * modules/logl (configure.ac): ... to here.
7404
7405 2011-05-21  Bruno Haible  <bruno@clisp.org>
7406
7407         expl: Move AC_LIBOBJ invocations to module description.
7408         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7409         * modules/expl (configure.ac): ... to here.
7410
7411 2011-05-21  Bruno Haible  <bruno@clisp.org>
7412
7413         roundl: Move AC_LIBOBJ invocations to module description.
7414         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7415         * modules/roundl (configure.ac): ... to here.
7416
7417 2011-05-21  Bruno Haible  <bruno@clisp.org>
7418
7419         round: Move AC_LIBOBJ invocations to module description.
7420         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7421         * modules/round (configure.ac): ... to here.
7422
7423 2011-05-21  Bruno Haible  <bruno@clisp.org>
7424
7425         roundf: Move AC_LIBOBJ invocations to module description.
7426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7427         * modules/roundf (configure.ac): ... to here.
7428
7429 2011-05-21  Bruno Haible  <bruno@clisp.org>
7430
7431         truncl: Move AC_LIBOBJ invocations to module description.
7432         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7433         * modules/truncl (configure.ac): ... to here.
7434
7435 2011-05-21  Bruno Haible  <bruno@clisp.org>
7436
7437         trunc: Move AC_LIBOBJ invocations to module description.
7438         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7439         * modules/trunc (configure.ac): ... to here.
7440
7441 2011-05-21  Bruno Haible  <bruno@clisp.org>
7442
7443         truncf: Move AC_LIBOBJ invocations to module description.
7444         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7445         * modules/truncf (configure.ac): ... to here.
7446
7447 2011-05-21  Bruno Haible  <bruno@clisp.org>
7448
7449         ceill: Move AC_LIBOBJ invocations to module description.
7450         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7451         * modules/ceill (configure.ac): ... to here.
7452
7453 2011-05-21  Bruno Haible  <bruno@clisp.org>
7454
7455         ceil: Move AC_LIBOBJ invocations to module description.
7456         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7457         * modules/ceil (configure.ac): ... to here.
7458
7459 2011-05-21  Bruno Haible  <bruno@clisp.org>
7460
7461         ceilf: Move AC_LIBOBJ invocations to module description.
7462         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7463         * modules/ceilf (configure.ac): ... to here.
7464
7465 2011-05-21  Bruno Haible  <bruno@clisp.org>
7466
7467         floorl: Respect rules for use of AC_LIBOBJ.
7468         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7469         * modules/floorl (configure.ac): ... to here.
7470
7471 2011-05-21  Bruno Haible  <bruno@clisp.org>
7472
7473         floor: Respect rules for use of AC_LIBOBJ.
7474         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7475         * modules/floor (configure.ac): ... to here.
7476
7477 2011-05-21  Bruno Haible  <bruno@clisp.org>
7478
7479         floorf: Move AC_LIBOBJ invocations to module description.
7480         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7481         * modules/floorf (configure.ac): ... to here.
7482
7483 2011-05-20  Bruno Haible  <bruno@clisp.org>
7484
7485         sqrtl: Respect rules for use of AC_LIBOBJ.
7486         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7487         * modules/sqrtl (configure.ac): ... to here.
7488
7489 2011-05-20  Bruno Haible  <bruno@clisp.org>
7490
7491         ldexpl: Respect rules for use of AC_LIBOBJ.
7492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7493         * modules/ldexpl (configure.ac): ... to here.
7494
7495 2011-05-20  Bruno Haible  <bruno@clisp.org>
7496
7497         frexpl*: Respect rules for use of AC_LIBOBJ.
7498         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7499         invocation from here...
7500         * modules/frexpl (configure.ac): ... to here.
7501         * modules/frexpl-nolibm (configure.ac): ... and here.
7502
7503 2011-05-20  Bruno Haible  <bruno@clisp.org>
7504
7505         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7506         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7507         invocation from here...
7508         * modules/frexp (configure.ac): ... to here.
7509         * modules/frexp-nolibm (configure.ac): ... and here.
7510
7511 2011-05-20  Bruno Haible  <bruno@clisp.org>
7512
7513         isnan: Respect rules for use of AC_LIBOBJ.
7514         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7515         invocations here.
7516         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7517         REPLACE_ISNAN.
7518         * modules/isnand (configure.ac): Likewise.
7519         * modules/isnanl (configure.ac): Likewise.
7520
7521 2011-05-20  Bruno Haible  <bruno@clisp.org>
7522
7523         isnanl*: Respect rules for use of AC_LIBOBJ.
7524         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7525         invocation from here...
7526         * modules/isnanl (configure.ac): ... to here.
7527         * modules/isnanl-nolibm (configure.ac): ... and here.
7528
7529 2011-05-20  Bruno Haible  <bruno@clisp.org>
7530
7531         isnand*: Move AC_LIBOBJ invocations to module description.
7532         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7533         invocation from here...
7534         * modules/isnand (configure.ac): ... to here.
7535         * modules/isnand-nolibm (configure.ac): ... and here.
7536
7537 2011-05-20  Bruno Haible  <bruno@clisp.org>
7538
7539         isnanf*: Move AC_LIBOBJ invocations to module description.
7540         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7541         invocation from here...
7542         * modules/isnanf (configure.ac): ... to here.
7543         * modules/isnanf-nolibm (configure.ac): ... and here.
7544
7545 2011-05-20  Bruno Haible  <bruno@clisp.org>
7546
7547         isnan*: Separate the AC_LIBOBJ invocations.
7548         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7549         AC_LIBOBJ invocation.
7550         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7551         here.
7552         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7553         AC_LIBOBJ invocation.
7554         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7555         here.
7556         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7557         AC_LIBOBJ invocation.
7558         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7559         here.
7560         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7561
7562 2011-05-08  Bruno Haible  <bruno@clisp.org>
7563
7564         isinf: Move AC_LIBOBJ invocations to module description.
7565         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7566         * modules/isinf (configure.ac): ... to here.
7567
7568 2011-05-08  Bruno Haible  <bruno@clisp.org>
7569
7570         isfinite: Move AC_LIBOBJ invocations to module description.
7571         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7572         * modules/isfinite (configure.ac): ... to here.
7573
7574 2011-05-08  Bruno Haible  <bruno@clisp.org>
7575
7576         isblank: Move AC_LIBOBJ invocations to module description.
7577         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7578         here...
7579         * modules/isblank (configure.ac): ... to here.
7580
7581 2011-05-08  Bruno Haible  <bruno@clisp.org>
7582
7583         isapipe: Move AC_LIBOBJ invocations to module description.
7584         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7585         gl_PREREQ_ISAPIPE invocations from here...
7586         * modules/isapipe (configure.ac): ... to here.
7587         (Depends-on): Update condition.
7588
7589 2011-05-08  Bruno Haible  <bruno@clisp.org>
7590
7591         ioctl: Move AC_LIBOBJ invocations to module description.
7592         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7593         invocations from here...
7594         * modules/ioctl (configure.ac): ... to here.
7595         (Depends-on): Update condition.
7596
7597 2011-05-08  Bruno Haible  <bruno@clisp.org>
7598
7599         imaxdiv: Move AC_LIBOBJ invocations to module description.
7600         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7601         invocations from here...
7602         * modules/imaxdiv (configure.ac): ... to here.
7603
7604 2011-05-08  Bruno Haible  <bruno@clisp.org>
7605
7606         imaxabs: Move AC_LIBOBJ invocations to module description.
7607         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7608         invocations from here...
7609         * modules/imaxabs (configure.ac): ... to here.
7610
7611 2011-05-08  Bruno Haible  <bruno@clisp.org>
7612
7613         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7614         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7615         AC_LIBOBJ invocations from here...
7616         * modules/getaddrinfo (configure.ac): ... to here.
7617         (Depends-on): Add conditions.
7618
7619 2011-05-08  Bruno Haible  <bruno@clisp.org>
7620
7621         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7622         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7623         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7624         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7625         (gl_PREREQ_INET_PTON): ... from here.
7626         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7627         gl_PREREQ_INET_PTON here.
7628         (Depends-on): Update condition.
7629
7630 2011-05-08  Bruno Haible  <bruno@clisp.org>
7631
7632         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7633         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7634         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7635         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7636         (gl_PREREQ_INET_NTOP): ... from here.
7637         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7638         gl_PREREQ_INET_NTOP here.
7639         (Depends-on): Update condition.
7640
7641 2011-05-08  Bruno Haible  <bruno@clisp.org>
7642
7643         iconv_open: Move AC_LIBOBJ invocations to module description.
7644         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7645         AC_LIBOBJ invocations from here...
7646         * modules/iconv_open (configure.ac): ... to here.
7647
7648 2011-05-08  Bruno Haible  <bruno@clisp.org>
7649
7650         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7651         If module 'iconv_open' is among the main modules and module
7652         'iconv_open-utf' is among the tests dependencies, then
7653         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7654         return the special iconv_t values. Therefore iconv() and iconv_close()
7655         must support these special iconv_t values, already in lib, not only in
7656         tests.
7657         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7658         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7659         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7660         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7661         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7662         (Depends-on): Add the dependencies of iconv_open-utf.
7663         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7664         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7665         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7666
7667 2011-05-08  Bruno Haible  <bruno@clisp.org>
7668
7669         group-member: Move AC_LIBOBJ invocations to module description.
7670         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7671         gl_PREREQ_GROUP_MEMBER invocations from here...
7672         * modules/group-member (configure.ac): ... to here.
7673
7674 2011-05-08  Bruno Haible  <bruno@clisp.org>
7675
7676         grantpt: Move AC_LIBOBJ invocations to module description.
7677         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7678         invocations from here...
7679         * modules/grantpt (configure.ac): ... to here.
7680
7681 2011-05-08  Bruno Haible  <bruno@clisp.org>
7682
7683         glob: Move AC_LIBOBJ invocations to module description.
7684         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7685         from here...
7686         * modules/glob (configure.ac): ... to here.
7687
7688 2011-05-08  Bruno Haible  <bruno@clisp.org>
7689
7690         getusershell: Move AC_LIBOBJ invocations to module description.
7691         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7692         Move AC_LIBOBJ invocation from here...
7693         * modules/getusershell (configure.ac): ... to here.
7694         (Depends-on): Update condition.
7695
7696 2011-05-08  Bruno Haible  <bruno@clisp.org>
7697
7698         gettimeofday: Move AC_LIBOBJ invocations to module description.
7699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7700         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7701         gl_PREREQ_GETTIMEOFDAY invocations from here...
7702         * modules/gettimeofday (configure.ac): ... to here.
7703
7704 2011-05-08  Bruno Haible  <bruno@clisp.org>
7705
7706         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7707         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7708         just gl_FUNC_TZSET.
7709         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7710         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7711         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7712         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7713
7714 2011-05-08  Bruno Haible  <bruno@clisp.org>
7715
7716         getsubopt: Move AC_LIBOBJ invocations to module description.
7717         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7718         gl_PREREQ_GETSUBOPT invocations from here...
7719         * modules/getsubopt (configure.ac): ... to here.
7720
7721 2011-05-08  Bruno Haible  <bruno@clisp.org>
7722
7723         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7724         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7725         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7726         * modules/getpass-gnu (configure.ac): ... to here.
7727
7728 2011-05-08  Bruno Haible  <bruno@clisp.org>
7729
7730         getpass: Move AC_LIBOBJ invocations to module description.
7731         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7732         gl_PREREQ_GETPASS invocations from here...
7733         * modules/getpass (configure.ac): ... to here.
7734
7735 2011-05-08  Bruno Haible  <bruno@clisp.org>
7736
7737         getpagesize: Move AC_LIBOBJ invocations to module description.
7738         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7739         from here...
7740         * modules/getpagesize (configure.ac): ... to here.
7741
7742 2011-05-08  Bruno Haible  <bruno@clisp.org>
7743
7744         getopt: Move AC_LIBOBJ invocations to module description.
7745         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7746         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7747         invocations from here...
7748         * modules/getopt-gnu (configure.ac): ... to here.
7749         * modules/getopt-posix (configure.ac): ... and here.
7750         (Depends-on): Update condition.
7751
7752 2011-05-08  Bruno Haible  <bruno@clisp.org>
7753
7754         getopt, argp: Respect rules for use of AC_LIBOBJ.
7755         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7756         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7757         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7758         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7759
7760 2011-05-08  Bruno Haible  <bruno@clisp.org>
7761
7762         getlogin_r: Move AC_LIBOBJ invocations to module description.
7763         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7764         gl_PREREQ_GETLOGIN_R invocations from here...
7765         * modules/getlogin_r (configure.ac): ... to here.
7766
7767 2011-05-08  Bruno Haible  <bruno@clisp.org>
7768
7769         getlogin: Move AC_LIBOBJ invocations to module description.
7770         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7771         here...
7772         * modules/getlogin (configure.ac): ... to here.
7773
7774 2011-05-08  Bruno Haible  <bruno@clisp.org>
7775
7776         getloadavg: Move AC_LIBOBJ invocations to module description.
7777         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7778         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7779         * modules/getloadavg (configure.ac): ... to here.
7780
7781 2011-05-08  Bruno Haible  <bruno@clisp.org>
7782
7783         gethrxtime: Move AC_LIBOBJ invocations to module description.
7784         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7785         LIB_GETHRXTIME from here...
7786         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7787         invocations from here...
7788         * modules/gethrxtime (configure.ac): ... to here.
7789
7790 2011-05-08  Bruno Haible  <bruno@clisp.org>
7791
7792         gethostname: Move AC_LIBOBJ invocations to module description.
7793         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7794         gl_PREREQ_GETHOSTNAME invocations from here...
7795         * modules/gethostname (configure.ac): ... to here.
7796
7797 2011-05-08  Bruno Haible  <bruno@clisp.org>
7798
7799         getgroups: Move AC_LIBOBJ invocations to module description.
7800         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7801         here...
7802         * modules/getgroups (configure.ac): ... to here.
7803
7804 2011-05-08  Bruno Haible  <bruno@clisp.org>
7805
7806         getdtablesize: Move AC_LIBOBJ invocations to module description.
7807         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7808         invocation from here...
7809         * modules/getdtablesize (configure.ac): ... to here.
7810
7811 2011-05-08  Bruno Haible  <bruno@clisp.org>
7812
7813         getdomainname: Move AC_LIBOBJ invocations to module description.
7814         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7815         gl_PREREQ_GETDOMAINNAME invocations from here...
7816         * modules/getdomainname (configure.ac): ... to here.
7817
7818 2011-05-08  Bruno Haible  <bruno@clisp.org>
7819
7820         getline: Move AC_LIBOBJ invocations to module description.
7821         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7822         invocations from here...
7823         * modules/getline (configure.ac): ... to here.
7824
7825 2011-05-08  Bruno Haible  <bruno@clisp.org>
7826
7827         getline: Simplify.
7828         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7829         It's already handled through the module dependency.
7830
7831 2011-05-08  Bruno Haible  <bruno@clisp.org>
7832
7833         getdelim: Move AC_LIBOBJ invocations to module description.
7834         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7835         and gl_PREREQ_GETDELIM invocations from here...
7836         * modules/getdelim (configure.ac): ... to here.
7837         (Depends-on): Fix condition.
7838
7839 2011-05-08  Bruno Haible  <bruno@clisp.org>
7840
7841         getcwd: Move AC_LIBOBJ invocations to module description.
7842         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7843         invocations from here...
7844         * modules/getcwd (configure.ac): ... to here.
7845
7846 2011-05-08  Bruno Haible  <bruno@clisp.org>
7847
7848         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7849         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7850         here...
7851         * modules/getcwd-lgpl (configure.ac): ... to here.
7852
7853 2011-05-07  Bruno Haible  <bruno@clisp.org>
7854
7855         crypto/gc: Move AC_LIBOBJ invocations to module description.
7856         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7857         * modules/crypto/gc (configure.ac): ... to here.
7858
7859 2011-05-07  Bruno Haible  <bruno@clisp.org>
7860
7861         fwriting: Move AC_LIBOBJ invocations to module description.
7862         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7863         here...
7864         * modules/fwriting (configure.ac): ... to here.
7865
7866 2011-05-07  Bruno Haible  <bruno@clisp.org>
7867
7868         fwritable: Move AC_LIBOBJ invocations to module description.
7869         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7870         here...
7871         * modules/fwritable (configure.ac): ... to here.
7872
7873 2011-05-07  Bruno Haible  <bruno@clisp.org>
7874
7875         futimens: Move AC_LIBOBJ invocations to module description.
7876         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7877         here...
7878         * modules/futimens (configure.ac): ... to here.
7879
7880 2011-05-07  Bruno Haible  <bruno@clisp.org>
7881
7882         ftruncate: Move AC_LIBOBJ invocations to module description.
7883         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7884         gl_PREREQ_FTRUNCATE invocations from here...
7885         * modules/ftruncate (configure.ac): ... to here.
7886
7887 2011-05-07  Bruno Haible  <bruno@clisp.org>
7888
7889         fsync: Move AC_LIBOBJ invocations to module description.
7890         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7891         invocations from here...
7892         * modules/fsync (configure.ac): ... to here.
7893
7894 2011-05-07  Bruno Haible  <bruno@clisp.org>
7895
7896         fsusage: Move AC_LIBOBJ invocations to module description.
7897         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7898         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7899         * modules/fsusage (configure.ac): ... to here.
7900
7901 2011-05-07  Bruno Haible  <bruno@clisp.org>
7902
7903         freopen: Move AC_LIBOBJ invocations to module description.
7904         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7905         invocations from here...
7906         * modules/freopen (configure.ac): ... to here.
7907
7908 2011-05-07  Bruno Haible  <bruno@clisp.org>
7909
7910         free: Move AC_LIBOBJ invocations to module description.
7911         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7912         invocations from here...
7913         * modules/free (configure.ac): ... to here.
7914
7915 2011-05-07  Bruno Haible  <bruno@clisp.org>
7916
7917         freadable: Move AC_LIBOBJ invocations to module description.
7918         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7919         here...
7920         * modules/freadable (configure.ac): ... to here.
7921
7922 2011-05-07  Bruno Haible  <bruno@clisp.org>
7923
7924         fpurge: Move AC_LIBOBJ invocations to module description.
7925         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7926         invocations from here...
7927         * modules/fpurge (configure.ac): ... to here.
7928
7929 2011-05-07  Bruno Haible  <bruno@clisp.org>
7930
7931         fpending: Move AC_LIBOBJ invocations to module description.
7932         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7933         gl_FUNC_FPENDING.
7934         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7935         invocations from here...
7936         * modules/fpending (configure.ac): ... to here.
7937
7938 2011-05-07  Bruno Haible  <bruno@clisp.org>
7939
7940         fopen: Move AC_LIBOBJ invocations to module description.
7941         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7942         invocations from here...
7943         * modules/fopen (configure.ac): ... to here.
7944
7945 2011-05-07  Bruno Haible  <bruno@clisp.org>
7946
7947         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7948         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7949         gl_FUNC_FNMATCH_POSIX.
7950         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7951         invocations from here...
7952         * modules/fnmatch (configure.ac): ... to here.
7953         * modules/fnmatch-gnu (configure.ac): ... and here.
7954
7955 2011-05-07  Bruno Haible  <bruno@clisp.org>
7956
7957         flock: Move AC_LIBOBJ invocations to module description.
7958         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7959         invocations from here...
7960         * modules/flock (configure.ac): ... to here.
7961
7962 2011-05-07  Bruno Haible  <bruno@clisp.org>
7963
7964         fileblocks: Move AC_LIBOBJ invocations to module description.
7965         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7966         gl_PREREQ_FILEBLOCKS invocations from here...
7967         * modules/fileblocks (configure.ac): ... to here.
7968
7969 2011-05-06  Bruno Haible  <bruno@clisp.org>
7970
7971         fflush: Move AC_LIBOBJ invocations to module description.
7972         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7973         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7974         invocations from here...
7975         * modules/fflush (configure.ac): ... to here.
7976
7977 2011-05-06  Bruno Haible  <bruno@clisp.org>
7978
7979         fdopendir: Move AC_LIBOBJ invocations to module description.
7980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7981         here...
7982         * modules/fdopendir (configure.ac): ... to here.
7983         (Depends-on): Improve conditions.
7984
7985 2011-05-06  Bruno Haible  <bruno@clisp.org>
7986
7987         _Exit: Move AC_LIBOBJ invocations to module description.
7988         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7989         invocations from here...
7990         * modules/_Exit (configure.ac): ... to here.
7991
7992 2011-05-21  Bruno Haible  <bruno@clisp.org>
7993
7994         euidaccess: Respect rules for use of AC_LIBOBJ.
7995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7997         from here...
7998         * modules/euidaccess (configure.ac): ... to here.
7999
8000 2011-05-06  Bruno Haible  <bruno@clisp.org>
8001
8002         error: Move AC_LIBOBJ invocations to module description.
8003         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8004         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8005         invocations from here...
8006         * modules/error (configure.ac): ... to here.
8007
8008 2011-05-06  Bruno Haible  <bruno@clisp.org>
8009
8010         duplocale: Move AC_LIBOBJ invocations to module description.
8011         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8012         gl_PREREQ_DUPLOCALE invocations from here...
8013         * modules/duplocale (configure.ac): ... to here.
8014
8015 2011-05-05  Bruno Haible  <bruno@clisp.org>
8016
8017         dirfd: Move AC_LIBOBJ invocations to module description.
8018         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8019         gl_FUNC_DIRFD.
8020         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8021         here...
8022         * modules/dirfd (configure.ac): ... to here.
8023         (Depends-on): Fix condition.
8024
8025 2011-05-05  Bruno Haible  <bruno@clisp.org>
8026
8027         chown: Respect rules for use of AC_LIBOBJ.
8028         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8029         * modules/chown (configure.ac): ... to here.
8030
8031 2011-05-05  Bruno Haible  <bruno@clisp.org>
8032
8033         chdir-long: Move AC_LIBOBJ invocations to module description.
8034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8035         gl_PREREQ_CHDIR_LONG invocations from here...
8036         * modules/chdir-long (configure.ac): ... to here.
8037
8038 2011-05-05  Bruno Haible  <bruno@clisp.org>
8039
8040         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8041         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8042         from here...
8043         * modules/canonicalize-lgpl (configure.ac): ... to here.
8044
8045 2011-05-05  Bruno Haible  <bruno@clisp.org>
8046
8047         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8048         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8049         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8050         REPLACE_CALLOC.
8051         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8052         * modules/calloc-gnu (configure.ac): Likewise.
8053
8054 2011-05-05  Bruno Haible  <bruno@clisp.org>
8055
8056         btowc: Move AC_LIBOBJ invocations to module description.
8057         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8058         invocations from here...
8059         * modules/btowc (configure.ac): ... to here.
8060
8061 2011-05-21  Bruno Haible  <bruno@clisp.org>
8062
8063         atexit: Move AC_LIBOBJ invocations to module description.
8064         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8066         here...
8067         * modules/atexit (configure.ac): ... to here.
8068
8069 2011-05-05  Bruno Haible  <bruno@clisp.org>
8070
8071         atoll: Move AC_LIBOBJ invocations to module description.
8072         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8073         invocations from here...
8074         * modules/atoll (configure.ac): ... to here.
8075
8076 2011-05-05  Bruno Haible  <bruno@clisp.org>
8077
8078         argz: Move AC_LIBOBJ invocations to module description.
8079         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8080         * modules/argz (configure.ac): ... to here.
8081
8082 2011-05-05  Bruno Haible  <bruno@clisp.org>
8083
8084         alphasort: Move AC_LIBOBJ invocations to module description.
8085         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8086         gl_PREREQ_ALPHASORT invocations from here...
8087         * modules/alphasort (configure.ac): ... to here.
8088
8089 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8090
8091         verify: new macro verify_expr; verify_true deprecated
8092         * NEWS: Mention this.
8093         * doc/verify.texi (Compile-time Assertions): Document this.
8094         * lib/verify.h (verify_true): Deprecate.
8095         (verify_expr): New macro.
8096         * tests/test-verify.c (function): Test verify_expr.
8097
8098 2011-06-14  Jim Meyering  <meyering@redhat.com>
8099
8100         init.sh: give more portable redirection-related advice in a comment
8101         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8102         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8103         for lots of discussion.  Stefano Lattarini suggested the solution
8104         of putting "9>&2" after the command.  Reported by Bruno Haible.
8105
8106 2011-06-13  Bruno Haible  <bruno@clisp.org>
8107
8108         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8110         'none'.
8111
8112 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8113
8114         ftoastr: use strtof only if HAVE_STRTOF
8115         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8117         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8118         * modules/ftoastr (configure.ac): Check for strtof.
8119
8120 2011-06-13  Bruno Haible  <bruno@clisp.org>
8121
8122         gnulib-tool: Addendum to 2011-06-08 commit.
8123         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8124         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8125
8126 2011-06-13  Bruno Haible  <bruno@clisp.org>
8127
8128         fseeko: Provide a non-inline replacement of fseek().
8129         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8130         * modules/fseeko (Depends-on): Add fseek.
8131         * modules/fseek (License): Change to LGPLv2+.
8132
8133 2011-06-13  Bruno Haible  <bruno@clisp.org>
8134
8135         ftello: Provide a non-inline replacement of ftell().
8136         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8137         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8138         not have ftello() (such as on mingw).
8139         * modules/ftello (Depends-on): Add ftell.
8140         * modules/ftell (License): Change to LGPLv2+.
8141
8142 2011-05-07  Bruno Haible  <bruno@clisp.org>
8143
8144         ftell: Move AC_LIBOBJ invocations to module description.
8145         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8146         * modules/ftell (configure.ac): ... to here.
8147
8148 2011-05-07  Bruno Haible  <bruno@clisp.org>
8149
8150         ftello: Respect rules for use of AC_LIBOBJ.
8151         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8152         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8153         here...
8154         * modules/ftello (configure.ac): ... to here.
8155
8156 2011-05-07  Bruno Haible  <bruno@clisp.org>
8157
8158         fseeko: Simplify.
8159         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8160         (gl_FUNC_FSEEKO): Inline it here.
8161
8162 2011-05-07  Bruno Haible  <bruno@clisp.org>
8163
8164         fseek: Move AC_LIBOBJ invocations to module description.
8165         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8166         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8167         * modules/fseek (configure.ac): ... to here.
8168
8169 2011-05-07  Bruno Haible  <bruno@clisp.org>
8170
8171         fseek: Respect rules for use of AC_LIBOBJ.
8172         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8173         here...
8174         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8175
8176 2011-05-07  Bruno Haible  <bruno@clisp.org>
8177
8178         fseeko: Respect rules for use of AC_LIBOBJ.
8179         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8180         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8181         here...
8182         * modules/fseeko (configure.ac): ... to here.
8183
8184 2011-06-13  Bruno Haible  <bruno@clisp.org>
8185
8186         gnulib-tool: Allow comments in the 'Depends-on' section.
8187         * doc/gnulib.texi (Module description): Mention comment syntax in the
8188         Depends-on section.
8189         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8190
8191 2011-06-13  Bruno Haible  <bruno@clisp.org>
8192
8193         file-set.h: guard __attibute__ use, now that it's not always defined
8194         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8195         versions that support it.  This fixes a coreutils build failure with
8196         the vendor cc on HP-UX 11.31.
8197
8198 2011-06-12  Bruno Haible  <bruno@clisp.org>
8199
8200         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8201         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8202         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8203         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8204         (acl, aclsort): New declarations.
8205         (aclv_nontrivial): New declaration.
8206         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8207         (file_has_acl): Read also the second kind of HP-UX ACLs.
8208         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8209         kind of HP-UX ACLs if the first kind fails.
8210         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8211         second kind of HP-UX ACLs.
8212         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8213         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8214         agree.
8215         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8216         hpuxjfs.
8217         Handle hpuxjfs.
8218         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8219         hpuxjfs.
8220         Handle hpuxjfs.
8221         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8222         (func_test_same_acls): Use both lsacl and getacl.
8223         Handle hpuxjfs.
8224         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8225         (func_test_same_acls): Use both lsacl and getacl.
8226         Handle hpuxjfs.
8227
8228 2011-06-12  Bruno Haible  <bruno@clisp.org>
8229
8230         acl: Complete the 2010-08-10 fix.
8231         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8232         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8233         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8234         explicitly.
8235         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8236         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8237
8238 2011-06-12  Bruno Haible  <bruno@clisp.org>
8239
8240         spawn-pipe tests: Comments.
8241         * tests/test-spawn-pipe-child.c (main): Update comment.
8242         Reported by James Youngman <jay@gnu.org>.
8243
8244 2011-06-11  James Youngman  <jay@gnu.org>
8245
8246         New module 'stat-size'.
8247         * modules/stat-size: New module.  Provides macros for accessing
8248         file size information in instances of struct stat.  Depends on the
8249         fileblocks module because it calls st_blocks.
8250         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8251         * doc/gnulib.texi: Include stat-size.texi.
8252         * doc/stat-size.texi: Documentation for this module.
8253         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8254         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8255         AC_STRUCT_ST_BLOCKS.
8256
8257 2011-06-09  Bruno Haible  <bruno@clisp.org>
8258
8259         thread: Support pthreads-win32.
8260         * lib/glthread/thread.h (gl_thread_self): Define differently on
8261         pthreads-win32.
8262         (gl_null_thread): New declaration.
8263         (gl_thread_self_pointer): New macro.
8264         * lib/glthread/thread.c (gl_null_thread): New constant.
8265         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8266         gl_thread_self.
8267         * tests/test-tls.c: Likewise.
8268         Suggested by Paul Eggert. Reported by Eric Blake.
8269
8270 2011-06-09  Bruno Haible  <bruno@clisp.org>
8271
8272         thread: Fix confusion between NULL and 0.
8273         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8274         Reported by Paul Eggert.
8275
8276 2011-06-09  Bruno Haible  <bruno@clisp.org>
8277
8278         spawn-pipe tests: Avoid test failure on HP-UX 11.
8279         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8280         is closed.
8281
8282 2011-06-09  Bruno Haible  <bruno@clisp.org>
8283
8284         acl tests: Fix compilation error on HP-UX 11.
8285         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8286
8287 2011-06-09  Bruno Haible  <bruno@clisp.org>
8288
8289         rmdir: Avoid test failure on HP-UX 10.20.
8290         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8291         EEXIST.
8292
8293 2011-06-08  Eric Blake  <eblake@redhat.com>
8294
8295         perror: fix test on mingw
8296         * modules/perror-tests (Depends-on): Add dup2.
8297
8298         strerror_r-posix: fix on MacOS
8299         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8300         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8301         logic bug.
8302         * lib/strerror_r.c (strerror_r): Fix the bug.
8303         * lib/strerror.c (strerror): Likewise.
8304         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8305         problem.
8306         * doc/posix-functions/strerror.texi (strerror): Likewise.
8307         * doc/posix-functions/perror.texi (perror): Likewise.
8308         * tests/test-strerror.c (main): Enhance test.
8309         * tests/test-strerror_r.c (main): Likewise.
8310
8311 2011-06-08  Bruno Haible  <bruno@clisp.org>
8312
8313         gnulib-tool: Better isolation between different gnulib-tool invocations.
8314         * gnulib-tool: New option --witness-c-macro.
8315         (witness_c_macro): New variable.
8316         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8317         AM_CPPFLAGS define it as a C macro.
8318         (func_emit_tests_Makefile_am): Likewise.
8319         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8320         read it from there.
8321         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8322         m4_define, not AC_DEFUN.
8323         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8324         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8325         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8326         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8327         s|...|...|, to substitute the values of the GNULIB_* module indicator
8328         variables.
8329         * modules/dirent (Makefile.am): Likewise.
8330         * modules/fcntl-h (Makefile.am): Likewise.
8331         * modules/iconv-h (Makefile.am): Likewise.
8332         * modules/langinfo (Makefile.am): Likewise.
8333         * modules/locale (Makefile.am): Likewise.
8334         * modules/math (Makefile.am): Likewise.
8335         * modules/netdb (Makefile.am): Likewise.
8336         * modules/poll-h (Makefile.am): Likewise.
8337         * modules/pty (Makefile.am): Likewise.
8338         * modules/search (Makefile.am): Likewise.
8339         * modules/signal (Makefile.am): Likewise.
8340         * modules/spawn (Makefile.am): Likewise.
8341         * modules/stdio (Makefile.am): Likewise.
8342         * modules/stdlib (Makefile.am): Likewise.
8343         * modules/string (Makefile.am): Likewise.
8344         * modules/sys_ioctl (Makefile.am): Likewise.
8345         * modules/sys_select (Makefile.am): Likewise.
8346         * modules/sys_socket (Makefile.am): Likewise.
8347         * modules/sys_stat (Makefile.am): Likewise.
8348         * modules/sys_times (Makefile.am): Likewise.
8349         * modules/sys_utsname (Makefile.am): Likewise.
8350         * modules/sys_wait (Makefile.am): Likewise.
8351         * modules/termios (Makefile.am): Likewise.
8352         * modules/time (Makefile.am): Likewise.
8353         * modules/unistd (Makefile.am): Likewise.
8354         * modules/wchar (Makefile.am): Likewise.
8355
8356 2011-06-08  Eric Blake  <eblake@redhat.com>
8357
8358         strerror: simplify replacement
8359         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8360         * modules/strerror (configure.ac): No prereqs needed here...
8361         * modules/strerror-override (configure.ac): ...but this needs it.
8362         (Files): Add file for needed prereq macro.
8363
8364 2011-06-08  Bruno Haible  <bruno@clisp.org>
8365
8366         strerror_r-posix: Tweaks.
8367         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8368         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8370         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8371         (gl_FUNC_STRERROR_R): ... to here.
8372         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8373
8374 2011-06-07  Eric Blake  <eblake@redhat.com>
8375
8376         perror: document fixed bugs
8377         * doc/posix-functions/perror.texi (perror): Document recent
8378         patches.
8379
8380 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8381
8382         stat-time: get_stat_birthtime failure is better-defined
8383         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8384         return a timestamp whose tv_sec and tv_nsec values are both -1.
8385         Previously, the spec said only that the tv_nsec value was negative.
8386         This upward-compatible change simplifies GNU tar a bit.
8387
8388 2011-06-07  Eric Blake  <eblake@redhat.com>
8389
8390         strerror_r-posix: work around cygwin 1.7.9
8391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8392         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8393         bug without replacing strerror_r.
8394         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8395         strerror_r is buggy, but without requiring strerror_r compilation.
8396         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8397
8398         test-perror: relax test to ignore cygwin bug
8399         * tests/test-perror2.c (main): Relax test on requiring detection
8400         of stream errors, and use unbuffered stream.
8401         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8402         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8403         * doc/posix-functions/fputc.texi (fputc): Likewise.
8404         * doc/posix-functions/fputs.texi (fputs): Likewise.
8405         * doc/posix-functions/fputws.texi (fputws): Likewise.
8406         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8407         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8408         * doc/posix-functions/getopt.texi (getopt): Likewise.
8409         * doc/posix-functions/perror.texi (perror): Likewise.
8410         * doc/posix-functions/printf.texi (printf): Likewise.
8411         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8412         * doc/posix-functions/psignal.texi (psignal): Likewise.
8413         * doc/posix-functions/putc.texi (putc): Likewise.
8414         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8415         Likewise.
8416         * doc/posix-functions/putchar.texi (putchar): Likewise.
8417         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8418         Likewise.
8419         * doc/posix-functions/puts.texi (puts): Likewise.
8420         * doc/posix-functions/putwc.texi (putwc): Likewise.
8421         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8422         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8423         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8424         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8425         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8426         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8427         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8428         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8429
8430 2011-05-22  Bruno Haible  <bruno@clisp.org>
8431
8432         strerror: Move AC_LIBOBJ invocations to module description.
8433         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8434         gl_PREREQ_STRERROR invocations from here...
8435         * modules/strerror (configure.ac): ... to here.
8436
8437 2011-05-21  Bruno Haible  <bruno@clisp.org>
8438
8439         perror: Use common idiom.
8440         * modules/perror (configure.ac): Reorder statements.
8441
8442 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8443
8444         tests: fix usage message in 'mktempd_'
8445         * tests/init.sh (mktempd_): In the usage message, use literal
8446         'mktempd_', not '$ME' (which is even undefined), as the name of
8447         the subroutine.
8448
8449 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8450
8451         tests init: new function 'fatal_', for hard errors
8452         Before this patch, the only way offered by tests/init.sh to
8453         properly signal a hard error was the `framework_failure_'
8454         function.  But the error message issued by that function,
8455         as its name would suggest, refers to a set-up failure in the
8456         testsuite, while hard errors can obviously also be due to
8457         other reasons.  The best way to fix this inconsistency is to
8458         introduce a new function with a more general error message.
8459         * tests/init.sh (fatal_): New function.
8460
8461 2011-06-06  Eric Blake  <eblake@redhat.com>
8462
8463         canonicalize-lgpl: use common idiom
8464         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8465         over newer POSIX -Rf.
8466         Reported by Bruno Haible.
8467
8468         canonicalize-lgpl: work around AIX realpath bug
8469         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8470         * doc/posix-functions/realpath.texi (realpath): Document it.
8471         Reported by Bruno Haible.
8472
8473         strerror: work around FreeBSD bug
8474         * lib/strerror.c (strerror): Special case 0.
8475         Reported by Bruno Haible.
8476
8477         strerror-override: avoid bloating errno module
8478         * modules/errno (Files, configure.ac): Move replacement strings...
8479         * modules/strerror-override: ...to new module.
8480         * modules/strerror (Depends-on): Add strerror-override.
8481         * modules/strerror_r-posix (Depends-on): Likewise.
8482         * MODULES.html.sh: Document new module.
8483         Reported by Bruno Haible.
8484
8485 2011-06-06  Bruno Haible  <bruno@clisp.org>
8486
8487         spawn-pipe tests: Rename program.
8488         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8489         * tests/test-spawn-pipe-child.c: Update comment.
8490         * tests/test-spawn-pipe.sh: Update.
8491         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8492
8493         spawn-pipe tests: Link the child program only against libc.
8494         * tests/test-spawn-pipe-child.c: New file, extracted from
8495         tests/test-spawn-pipe.c.
8496         (main): Expect only one argument.
8497         (is_open): New function, copied from tests/test-pipe.c.
8498         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8499         (child_main): Remove function.
8500         (test_pipe): Pass only one argument to the child program.
8501         (main): Remove child process code. Expect the child program's name as
8502         first argument.
8503         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8504         argument.
8505         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8506         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8507         test-spawn-pipe-child against no libraries.
8508
8509 2011-06-06  Bruno Haible  <bruno@clisp.org>
8510
8511         careadlinkat: Avoid mismatch between ssize_t and int.
8512         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8513         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8514
8515 2011-06-06  Jim Meyering  <meyering@redhat.com>
8516
8517         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8518         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8519         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8520
8521 2011-06-05  Bruno Haible  <bruno@clisp.org>
8522
8523         ansi-c++-opt: Interoperability with libtool.
8524         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8525         set the variable to "no", not to ":".
8526         * NEWS: Mention the change.
8527
8528 2011-06-05  Bruno Haible  <bruno@clisp.org>
8529
8530         acl: Fix test failure on AIX 7.
8531         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8532         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8533
8534 2011-06-05  Bruno Haible  <bruno@clisp.org>
8535
8536         pipe-filter-ii: Fix test failure on AIX and IRIX.
8537         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8538         with EAGAIN, retry with a smaller buffer size.
8539
8540 2011-06-05  Bruno Haible  <bruno@clisp.org>
8541
8542         localename: Fix link dependencies.
8543         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8544         * modules/localename-tests (Makefile.am): Link test-localename with
8545         $(LIBTHREAD).
8546
8547 2011-06-05  Bruno Haible  <bruno@clisp.org>
8548
8549         error: Avoid gcc warning.
8550         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8551
8552 2011-06-05  Bruno Haible  <bruno@clisp.org>
8553
8554         unsetenv: Avoid gcc warning.
8555         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8556
8557 2011-06-05  Bruno Haible  <bruno@clisp.org>
8558
8559         setenv: Avoid gcc warning.
8560         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8561
8562 2011-06-05  Bruno Haible  <bruno@clisp.org>
8563
8564         sys_select: Ensure memset is declared also on AIX 7.
8565         * lib/sys_select.in.h: Include <string.h> also on AIX.
8566         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8567         self-contained also on AIX 7.1.
8568
8569 2011-06-04  Jim Meyering  <meyering@redhat.com>
8570
8571         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8572         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8573         function name, "error".
8574         (_gl_translatable_diag_func_re): New configurable variable.
8575
8576 2011-06-04  Bruno Haible  <bruno@clisp.org>
8577
8578         getopt: Avoid gcc warning.
8579         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8580
8581 2011-06-04  Bruno Haible  <bruno@clisp.org>
8582
8583         strerror_r: Fix comments.
8584         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8585         commit.
8586
8587 2011-06-04  Bruno Haible  <bruno@clisp.org>
8588
8589         perror: Fix compilation error.
8590         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8591         Undefine fprintf, not sprintf.
8592         * modules/perror (Depends-on): Remove intprops, verify.
8593
8594 2011-06-04  Bruno Haible  <bruno@clisp.org>
8595
8596         setlocale: Enable replacement on Cygwin 1.5.
8597         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8598         Cygwin 1.5.x.
8599         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8600         LC_CTYPE category also exists on Cygwin 1.5.x.
8601
8602 2011-06-04  Bruno Haible  <bruno@clisp.org>
8603
8604         strerror-override: Don't disable symbol renamings.
8605         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8606         * lib/strerror-override.c: Include config.h.
8607         (strerror_override): Don't undefine.
8608
8609 2011-06-03  Bruno Haible  <bruno@clisp.org>
8610
8611         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8612         * lib/localename.h: Update copyright header.
8613         * lib/localename.c: Likewise.
8614         * lib/relocatable.h: Likewise.
8615         * lib/relocatable.c: Likewise.
8616
8617 2011-06-02  Bruno Haible  <bruno@clisp.org>
8618
8619         doc: Fix a module name.
8620         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8621
8622 2011-06-02  Bruno Haible  <bruno@clisp.org>
8623
8624         pipe2: Remove dependency on 'nonblocking' module.
8625         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8626         O_NONBLOCK is defined by gnulib.
8627         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8628         is zero.
8629         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8630         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8631         defined by gnulib.
8632         (get_nonblocking_flag): New function.
8633         (main): Test O_NONBLOCK flag only if it is nonzero.
8634         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8635
8636 2011-06-03  Jim Meyering  <meyering@redhat.com>
8637
8638         maint: three new prohibit-header-without-use rules
8639         Prohibit use of cloexec.h, posixver.h, same.h without use.
8640         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8641         (sc_prohibit_posixver_without_use): Likewise.
8642         (sc_prohibit_same_without_use): Likewise.
8643
8644 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8645
8646         allocator: 'die' routine is now given requested size
8647         * lib/allocator.h (struct allocator.die): New size arg.
8648         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8649         If the actual problem is an ssize_t limitation, not a size_t or
8650         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8651
8652 2011-06-01  Eric Blake  <eblake@redhat.com>
8653
8654         strerror: drop strerror_r dependency
8655         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8656         * lib/strerror-override.c (strerror_override): ...to new file.
8657         * lib/strerror-override.h: Add prototype.
8658         * lib/strerror-impl.h: Delete.
8659         * lib/strerror.c (strerror): New implementation.
8660         * modules/errno (Files): Add new files.
8661         (configure.ac): Compile new file as appropriate.
8662         * modules/strerror (Files): Drop unused file.
8663         (Depends-on): Drop strerror_r-posix.
8664         * MODULES.html.sh: Document strerror_r-posix.
8665         Requested by Sam Steingold.
8666
8667         perror: call strerror_r directly
8668         * modules/perror (Files): Drop strerror-impl.h.
8669         * lib/perror.c (perror): Use our own stack buffer, rather than
8670         calling a wrapper that uses static storage.
8671         * doc/posix-functions/perror.texi (perror): Document a limitation
8672         of our replacement.
8673
8674         strerror_r: fix includes for FreeBSD
8675         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8676         since we use abort on some platforms.
8677         Reported by Matthias Bolte.
8678
8679 2011-05-31  Bruno Haible  <bruno@clisp.org>
8680
8681         Fix link errors in tests: openat-die uses gettext-h.
8682         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8683         against $(LIBINTL).
8684         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8685         against $(LIBINTL).
8686         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8687         $(LIBINTL).
8688         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8689         against $(LIBINTL).
8690         * modules/linkat-tests (Makefile.am): Link test-linkat against
8691         $(LIBINTL).
8692         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8693         $(LIBINTL).
8694         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8695         against $(LIBINTL).
8696         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8697         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8698         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8699         $(LIBINTL).
8700         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8701         $(LIBINTL).
8702         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8703         $(LIBINTL).
8704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8705
8706 2011-05-31  Bruno Haible  <bruno@clisp.org>
8707
8708         Fix link errors in tests: wait-process uses gettext-h.
8709         * modules/nonblocking-pipe-tests (Makefile.am): Set
8710         test_nonblocking_pipe_main_LDADD.
8711         * modules/nonblocking-socket-tests (Makefile.am): Link
8712         test-nonblocking-socket-main against $(LIBINTL).
8713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8714
8715 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8716
8717         assert-h: work around 'verify' incompatibility
8718         * lib/verify.h: Use @...@ directives, not ifdef.
8719         * modules/assert-h (assert.h): Implement the directives.
8720         (assert.h): Substitute the symbol-prefix more consistently.
8721
8722 2011-05-29  Jim Meyering  <meyering@redhat.com>
8723
8724         trim: remove three superfluous assignments
8725         * lib/trim.c (trim2): Remove three superfluous assignments
8726         and correct brace positioning.
8727
8728 2011-05-29  Bruno Haible  <bruno@clisp.org>
8729
8730         wctype-h: Avoid namespace pollution on Solaris 2.6.
8731         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8732         identifiers.
8733         * doc/posix-headers/wctype.texi: Mention the problem.
8734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8735
8736 2011-05-28  Jim Meyering  <meyering@redhat.com>
8737
8738         parse-datetime.y: accommodate -Wstrict-overflow
8739         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8740         placate -Wstrict-overflow.
8741
8742         trim: avoid a warning from -O2 -Wstrict-overflow
8743         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8744
8745 2011-05-29  Bruno Haible  <bruno@clisp.org>
8746
8747         gnulib-tool: Fix bug in yesterday's commit.
8748         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8749         twice.
8750
8751 2011-05-29  Bruno Haible  <bruno@clisp.org>
8752
8753         Allow multiple gnulib generated include files to be combined.
8754         * gnulib-tool (func_compute_include_guard_prefix): New function.
8755         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8756         ${gl_include_guard_prefix} references.
8757         (func_import, func_create_testdir): Invoke
8758         func_compute_include_guard_prefix.
8759         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8760         * lib/ctype.in.h: Likewise.
8761         * lib/dirent.in.h: Likewise.
8762         * lib/errno.in.h: Likewise.
8763         * lib/fcntl.in.h: Likewise.
8764         * lib/float.in.h: Likewise.
8765         * lib/getopt.in.h: Likewise.
8766         * lib/iconv.in.h: Likewise.
8767         * lib/langinfo.in.h: Likewise.
8768         * lib/locale.in.h: Likewise.
8769         * lib/math.in.h: Likewise.
8770         * lib/netdb.in.h: Likewise.
8771         * lib/netinet_in.in.h: Likewise.
8772         * lib/poll.in.h: Likewise.
8773         * lib/pthread.in.h: Likewise.
8774         * lib/pty.in.h: Likewise.
8775         * lib/sched.in.h: Likewise.
8776         * lib/se-selinux.in.h: Likewise.
8777         * lib/search.in.h: Likewise.
8778         * lib/signal.in.h: Likewise.
8779         * lib/spawn.in.h: Likewise.
8780         * lib/stdarg.in.h: Likewise.
8781         * lib/stddef.in.h: Likewise.
8782         * lib/stdint.in.h: Likewise.
8783         * lib/stdio.in.h: Likewise.
8784         * lib/stdlib.in.h: Likewise.
8785         * lib/string.in.h: Likewise.
8786         * lib/strings.in.h: Likewise.
8787         * lib/sys_file.in.h: Likewise.
8788         * lib/sys_ioctl.in.h: Likewise.
8789         * lib/sys_select.in.h: Likewise.
8790         * lib/sys_socket.in.h: Likewise.
8791         * lib/sys_stat.in.h: Likewise.
8792         * lib/sys_time.in.h: Likewise.
8793         * lib/sys_times.in.h: Likewise.
8794         * lib/sys_uio.in.h: Likewise.
8795         * lib/sys_utsname.in.h: Likewise.
8796         * lib/sys_wait.in.h: Likewise.
8797         * lib/sysexits.in.h: Likewise.
8798         * lib/termios.in.h: Likewise.
8799         * lib/time.in.h: Likewise.
8800         * lib/unistd.in.h: Likewise.
8801         * lib/wchar.in.h: Likewise.
8802         * lib/wctype.in.h: Likewise.
8803         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8804         * modules/ctype (Makefile.am): Likewise.
8805         * modules/dirent (Makefile.am): Likewise.
8806         * modules/errno (Makefile.am): Likewise.
8807         * modules/fcntl-h (Makefile.am): Likewise.
8808         * modules/float (Makefile.am): Likewise.
8809         * modules/getopt-posix (Makefile.am): Likewise.
8810         * modules/iconv-h (Makefile.am): Likewise.
8811         * modules/langinfo (Makefile.am): Likewise.
8812         * modules/locale (Makefile.am): Likewise.
8813         * modules/math (Makefile.am): Likewise.
8814         * modules/netdb (Makefile.am): Likewise.
8815         * modules/netinet_in (Makefile.am): Likewise.
8816         * modules/poll-h (Makefile.am): Likewise.
8817         * modules/pthread (Makefile.am): Likewise.
8818         * modules/pty (Makefile.am): Likewise.
8819         * modules/sched (Makefile.am): Likewise.
8820         * modules/search (Makefile.am): Likewise.
8821         * modules/selinux-h (Makefile.am): Likewise.
8822         * modules/signal (Makefile.am): Likewise.
8823         * modules/spawn (Makefile.am): Likewise.
8824         * modules/stdarg (Makefile.am): Likewise.
8825         * modules/stddef (Makefile.am): Likewise.
8826         * modules/stdint (Makefile.am): Likewise.
8827         * modules/stdio (Makefile.am): Likewise.
8828         * modules/stdlib (Makefile.am): Likewise.
8829         * modules/string (Makefile.am): Likewise.
8830         * modules/strings (Makefile.am): Likewise.
8831         * modules/sys_file (Makefile.am): Likewise.
8832         * modules/sys_ioctl (Makefile.am): Likewise.
8833         * modules/sys_select (Makefile.am): Likewise.
8834         * modules/sys_socket (Makefile.am): Likewise.
8835         * modules/sys_stat (Makefile.am): Likewise.
8836         * modules/sys_time (Makefile.am): Likewise.
8837         * modules/sys_times (Makefile.am): Likewise.
8838         * modules/sys_uio (Makefile.am): Likewise.
8839         * modules/sys_utsname (Makefile.am): Likewise.
8840         * modules/sys_wait (Makefile.am): Likewise.
8841         * modules/sysexits (Makefile.am): Likewise.
8842         * modules/termios (Makefile.am): Likewise.
8843         * modules/time (Makefile.am): Likewise.
8844         * modules/unistd (Makefile.am): Likewise.
8845         * modules/wchar (Makefile.am): Likewise.
8846         * modules/wctype-h (Makefile.am): Likewise.
8847         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8848
8849 2011-05-29  Bruno Haible  <bruno@clisp.org>
8850
8851         assert-h: Allow multiple gnulib generated replacements to coexist.
8852         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8853
8854 2011-05-29  Bruno Haible  <bruno@clisp.org>
8855
8856         argp: Allow coexistence with strerror_r-posix module.
8857         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8858         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8859         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8860         not the glibc signature.
8861
8862 2011-05-28  Bruno Haible  <bruno@clisp.org>
8863
8864         gnulib-tool: Alternative structure of testdirs, similar to --import.
8865         * gnulib-tool: New option --single-configure.
8866         (func_usage): Document it.
8867         (single_configure): New variable.
8868         (func_modules_transitive_closure_separately,
8869         func_modules_transitive_closure_separately,
8870         func_determine_use_libtests, func_modules_add_dummy_separately,
8871         func_modules_to_filelist_separately): New functions, extracted from
8872         func_import.
8873         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8874         (func_import): Use the new functions.
8875         (func_create_testdir): Set final_modules. Handle $single_configure =
8876         true case.
8877
8878 2011-05-28  Bruno Haible  <bruno@clisp.org>
8879
8880         getloadavg: Remove an unreliable safety check.
8881         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8882         getloadavg.c is in place.
8883         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8884         Reported by Sam Steingold <sds@gnu.org>.
8885
8886 2011-05-28  Bruno Haible  <bruno@clisp.org>
8887
8888         doc: Cleanup yet another file produced by texinfo.tex.
8889         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8890
8891 2011-05-28  Bruno Haible  <bruno@clisp.org>
8892
8893         Finish the conditional dependencies mechanism.
8894         * gnulib-tool: New option --no-conditional-dependencies.
8895         (func_usage): Document it. Don't mark --conditional-dependencies as
8896         experimental.
8897         (cond_dependencies): The possible values can now be true, false, empty.
8898         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8899         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8900         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8901
8902 2011-05-28  Bruno Haible  <bruno@clisp.org>
8903
8904         doc: Use a recent texinfo.tex.
8905         * doc/Makefile (tex_opts): New variable.
8906         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8907
8908 2011-05-28  Jim Meyering  <meyering@redhat.com>
8909
8910         intprops.h: adjust comment to match code change
8911         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8912         only once, it *may* have side effects.  Also fix an unrelated typo.
8913         (_GL_INT_SIGNED): Likewise.
8914
8915 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8916
8917         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8918
8919 2011-05-26  Bruno Haible  <bruno@clisp.org>
8920
8921         mbsrchr: Avoid collision with system function on Interix.
8922         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8923         Reported by Markus Duft <mduft@gentoo.org>.
8924
8925 2011-05-15  James Youngman  <jay@gnu.org>
8926
8927         getopt: for ambiguous options, enumerate the possibilities.
8928         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8929         the ambiguous options when an ambiguous prefix is given. This was
8930         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8931         glibc change was
8932         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8933
8934 2011-05-25  Eric Blake  <eblake@redhat.com>
8935
8936         getcwd: work around mingw bug
8937         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8938         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8939         Reported by Matthias Bolte.
8940
8941 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8942
8943         test-intprops: disable -Wtype-limits diagnostics
8944         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8945         diagnostics.  Otherwise, the integer overflow macros generate many
8946         diagnostics.  Reported by Jim Meyering in
8947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8948
8949         intprops: shorten, to pacify gcc -Woverlength-strings
8950         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8951         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8952         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8953         likely to run afoul of C compiler limits for string constant lengths.
8954         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8955
8956 2011-05-24  Eric Blake  <eblake@redhat.com>
8957
8958         docs: document recently fixed glibc printf bug
8959         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8960         * doc/posix-functions/printf.texi (printf): Likewise.
8961         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8962         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8963
8964         closein-tests: convert to init.sh
8965         * modules/closein-tests (Files): Add init.sh
8966         * tests/test-closein.sh Use it.
8967
8968         yesno-tests: convert to init.sh
8969         * modules/yesno-tests (Files): Add init.sh.
8970         * tests/test-yesno.sh: Use it.
8971
8972         atexit-tests: ensure reliable exit status
8973         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8974         Reported by Bruno Haible.
8975
8976 2011-05-24  Bruno Haible  <bruno@clisp.org>
8977
8978         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8979         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8980         gl_PREREQ_STRERROR_R invocations from here...
8981         * modules/strerror_r-posix (configure.ac): ... to here.
8982
8983 2011-05-24  Eric Blake  <eblake@redhat.com>
8984
8985         strerror_r: fix missing header
8986         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8987
8988         strerror_r: fix AIX test failures
8989         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8990         ERANGE failure.
8991
8992         strerror_r: fix Solaris test failures
8993         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8994         failures.
8995         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8996
8997         strerror_r: enforce POSIX recommendations
8998         * lib/strerror_r.c (safe_copy): New helper method.
8999         (strerror_r): Guarantee a non-empty string.
9000         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9001         recent POSIX rulings and to match our strerror guarantees.
9002         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9003
9004 2011-05-24  Jim Meyering  <meyering@redhat.com>
9005
9006         test-perror2.c: avoid warning about unused variable
9007         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9008
9009 2011-05-24  Eric Blake  <eblake@redhat.com>
9010
9011         perror: avoid spurious test failure on HP-UX
9012         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9013
9014         tests: fix logic bug in init.sh
9015         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9016         shell.
9017
9018 2011-05-24  Jim Meyering  <meyering@redhat.com>
9019
9020         utimensat: do not reference an out-of-scope buffer
9021         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9022         declared in an inner scope, yet "times" would be dereferenced outside
9023         the scope in which "ts" was valid.
9024         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9025         of ts[2] "out/up", so that the use of aliased "times" (via
9026         "times = ts;") does not end up referencing an out-of-scope "ts"
9027
9028         opendir-safer.c: don't clobber errno; don't close negative FD
9029         * lib/opendir-safer.c (opendir_safer):
9030         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9031         file descriptor, and more importantly, don't clobber the
9032         offending errno value with EINVAL.  Before, upon failure
9033         of dup_safer, we would pass the negative file descriptor to
9034         fdopendir, which would clobber errno.
9035
9036 2011-05-23  Bruno Haible  <bruno@clisp.org>
9037
9038         idcache: Fix module description.
9039         * modules/idcache (Include): Set to "idcache.h".
9040
9041 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9042
9043         gnulib-tool: fix portability problem with MacOS sed
9044         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9045         before the "}".  Problem reported by Leo in
9046         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9047         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9048         sed_extract_condition1, sed_extract_condition2.
9049
9050 2011-05-23  Bruno Haible  <bruno@clisp.org>
9051
9052         hash: Simplify autoconf macro.
9053         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9054
9055 2011-05-23  Bruno Haible  <bruno@clisp.org>
9056
9057         getugroups: Fix module description.
9058         * modules/getugroups (Include): Set to "getugroups.h".
9059
9060 2011-05-23  Bruno Haible  <bruno@clisp.org>
9061
9062         linkat: Simplify autoconf macro.
9063         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9064
9065 2011-05-23  Bruno Haible  <bruno@clisp.org>
9066             Eric Blake  <eblake@redhat.com>
9067
9068         linkat, renameat: Update dependencies.
9069         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9070         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9071         symlinkat.
9072
9073 2011-05-23  Jim Meyering  <meyering@redhat.com>
9074
9075         maint.mk: more tight_scope improvements
9076         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9077         (_gl_TS_headers): Define only in if-0'd block.
9078         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9079         sometimes we must *not* use it.  Adjust uses accordingly.
9080         (sc_tight_scope): Use much simpler grep-based test to determine
9081         whether we skip this rule.
9082
9083         maint.mk: generalize/improve the tight-scope rule
9084         * top/maint.mk: Emit a warning when the test is skipped.
9085         (_gl_TS_dir): Add $(srcdir)/ prefix.
9086         (_gl_TS_function_match): Simplify, rather than trying
9087         to enumerate common types.  Otherwise, it would fail to match an
9088         "extern unsigned char const *" declaration in idutils.
9089         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9090         a way to support use of that type of macro.
9091         (_gl_TS_var_match): Simplify regexp.
9092         (_gl_TS_obj_files): New configurable variable.
9093         (_gl_TS_headers): Likewise.
9094
9095 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9096
9097         verify: fix bug when gnulib <assert.h> is also included
9098         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9099         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9100         Perhaps there's a better way, but this fixes the immediate problem.
9101         Problem reported by Bruno Haible in
9102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9103
9104 2011-05-22  Bruno Haible  <bruno@clisp.org>
9105
9106         xgetcwd: Simplify autoconf macro.
9107         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9108
9109 2011-05-22  Bruno Haible  <bruno@clisp.org>
9110
9111         New module 'mktime-internal'.
9112         * modules/mktime-internal: New file.
9113         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9114         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9115         mktime_internal as a C macro if libc has __mktime_internal.
9116         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9117         conditions.
9118         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9119
9120 2011-05-22  Bruno Haible  <bruno@clisp.org>
9121
9122         timegm: Correct mktime replacement statements.
9123         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9124         defining mktime as a C macro. This completes a 2009-07-28 commit.
9125
9126 2011-05-22  Bruno Haible  <bruno@clisp.org>
9127
9128         timegm: Simplify autoconf macro.
9129         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9130
9131 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9132
9133         clock-time: change to LGPLv2+.
9134         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9135         BSD-like but we have no mark for that; this is good enough for now.
9136
9137 2011-05-21  Bruno Haible  <bruno@clisp.org>
9138
9139         strerror_r: Fix comments.
9140         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9141
9142 2011-05-21  Bruno Haible  <bruno@clisp.org>
9143
9144         relocatable-prog-wrapper: Fix possible link error.
9145         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9146         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9147         (gl_FUNC_SETENV): ... to here.
9148         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9149         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9150
9151 2011-05-21  Bruno Haible  <bruno@clisp.org>
9152
9153         relocatable-prog-wrapper: Assume strerror() exists.
9154         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9155         m4/strerror.m4.
9156         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9157         * lib/relocwrapper.c: Remove mention of strerror module.
9158         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9159         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9160         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9161         C macro.
9162
9163 2011-05-21  Bruno Haible  <bruno@clisp.org>
9164
9165         select: Simplify replacement idiom.
9166         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9167         Win32 platforms.
9168         * lib/sys_select.in.h (select): Simplify accordingly.
9169         * modules/select (Depends-on): Likewise.
9170
9171 2011-05-21  Bruno Haible  <bruno@clisp.org>
9172
9173         mkdir-p: Simplify autoconf macro.
9174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9175         gl_FUNC_LCHOWN.
9176
9177 2011-05-21  Eric Blake  <eblake@redhat.com>
9178
9179         strerror_r: avoid clobbering strerror on cygwin
9180         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9181         fall back instead to sys_errlist.
9182         * modules/strerror (configure.ac): Add witness.
9183         * tests/test-strerror_r.c (main): Enhance test.
9184         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9185         * tests/test-perror2.c (main): Free memory before exit.
9186
9187 2011-05-21  Bruno Haible  <bruno@clisp.org>
9188
9189         mkdtemp: Use gnulib naming conventions.
9190         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9191         * modules/mkdtemp (configure.ac): Update.
9192
9193 2011-05-20  Eric Blake  <eblake@redhat.com>
9194
9195         strerror_r: avoid corrupting errno on Solaris
9196         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9197         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9198
9199         strerror_r: avoid compiler warning
9200         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9201
9202         strerror_r: simplify AIX code
9203         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9204
9205         test-perror: avoid spurious failure on FreeBSD
9206         * modules/perror-tests (Depends-on): Add strerror, now that
9207         strerror_r no longer pulls it in.
9208
9209 2011-05-20  Bruno Haible  <bruno@clisp.org>
9210
9211         strerror_r-posix: Remove unused dependencies.
9212         * modules/strerror_r-posix (Depends-on): Remove strerror.
9213         Reported by Eric Blake.
9214
9215 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9216
9217         intprops: remove assumption about A|B representation
9218         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9219         is a valid integer if both A and B are.  Although this is true for
9220         all known practical hosts, the C standard doesn't guarantee it,
9221         and the code need not assume it.  Also, this change may work around
9222         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9224
9225 2011-05-20  Eric Blake  <eblake@redhat.com>
9226
9227         perror: work around FreeBSD bug
9228         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9229         is broken.  Move AC_LIBOBJ...
9230         * modules/perror (configure.ac): Here.
9231         * doc/posix-functions/perror.texi (perror): Document this.
9232         * tests/test-perror2.c (main): Enhance test.
9233
9234         test-perror: check for strerror interactions
9235         * tests/macros.h (STREQ): Add macro.
9236         * modules/perror-tests (Files): Add second test.
9237         * tests/test-perror2.c (main): New file.
9238         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9239
9240         test-perror: rewrite to use init script
9241         * modules/perror-tests (Files): Add init.sh.
9242         * tests/test-perror.sh: Use temporary directory.
9243
9244 2011-05-20  Jim Meyering  <meyering@redhat.com>
9245
9246         maint: replace misused "a" with "an"
9247         * doc/intprops.texi: "a integer"
9248         * doc/regex.texi: "a explanation"
9249         * lib/alignof.h: "a object"
9250         * lib/argmatch.h: "a explanation"
9251         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9252         * lib/stdint.in.h: "a integer"
9253         * lib/userspec.c: "a owner"
9254         * doc/gnulib.texi: Fix "a idea", and reword.
9255
9256 2011-05-19  Jim Meyering  <meyering@redhat.com>
9257
9258         maint: correct misuse of "a" and "an"
9259         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9260         * lib/argp-help.c: "an docum...": s/an/a/
9261         * lib/argp-parse.c: "An vector": s/An/A/
9262         * lib/execute.c: "an native": s/an/a/
9263         * lib/spawn-pipe.c: Likewise.
9264         * lib/gc.h: "an Gc_rc": s/an/a/
9265         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9266         * lib/fts.c: "an stat.st_dev": s/an/a/
9267
9268 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9269
9270         intprops-tests: work around HP-UX 11.23 cc bug with constants
9271         * tests/test-intprops.c (VERIFY): New macro.
9272         (main): Use it, instead of verify, to work around the compiler bug; see
9273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9274
9275         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9276         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9277         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9278         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9279         (_GL_REMAINDER_OVERFLOW): Use it.
9280
9281         intprops-tests: revert unsigned part of previous change
9282         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9283         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9284         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9286
9287 2011-05-19  Bruno Haible  <bruno@clisp.org>
9288
9289         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9290         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9291         strerror_r() returned without filling the buffer.
9292         Reported by Eric Blake.
9293
9294 2011-05-19  Eric Blake  <eblake@redhat.com>
9295
9296         strerror_r: guarantee unchanged errno
9297         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9298         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9299         failure.
9300         * tests/test-strerror_r.c (main): Enhance test.
9301
9302 2011-05-19  Bruno Haible  <bruno@clisp.org>
9303
9304         strerror_r: Reorder #if blocks.
9305         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9306         for consistency with the previous commit.
9307
9308 2011-05-19  Bruno Haible  <bruno@clisp.org>
9309
9310         perror: Avoid clobbering the strerror buffer when possible.
9311         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9312         * lib/strerror.c: Include it.
9313         * modules/strerror (Files): Add lib/strerror-impl.h.
9314         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9315         (my_strerror): New function, defined through lib/strerror-impl.h.
9316         (perror): Use it instead of strerror.
9317         * modules/perror (Files): Add lib/strerror-impl.h.
9318         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9319
9320 2011-05-19  Eric Blake  <eblake@redhat.com>
9321
9322         strerror_r: fix on newer cygwin
9323         * lib/strerror_r.c (strerror_r): Cygwin now has
9324         __xpg_strerror_r, use it.
9325
9326 2011-05-19  Bruno Haible  <bruno@clisp.org>
9327
9328         strerror_r: Avoid clobbering the strerror buffer when possible.
9329         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9330         (sys_nerr, sys_errlist): New declarations.
9331         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9332         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9333         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9334
9335 2011-05-19  Bruno Haible  <bruno@clisp.org>
9336
9337         strerror_r: Fix test failure on mingw.
9338         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9339         EXTEND_STRERROR_R.
9340         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9341         macros from errno.in.h instead.
9342
9343 2011-05-19  Eric Blake  <eblake@redhat.com>
9344
9345         strerror: relax test for Solaris
9346         * tests/test-strerror.c (main): Permit Solaris behavior.
9347         * tests/test-strerror_r.c (main): Likewise.
9348
9349         strerror: enforce POSIX ruling on strerror(0)
9350         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9351         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9352         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9353         * doc/posix-functions/strerror.texi (strerror): Document it.
9354         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9355         * tests/test-strerror.c (main): Strengthen test.
9356         * tests/test-strerror_r.c (main): Likewise.
9357
9358 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9359
9360         intprop-tests: port to older and more-pedantic compilers
9361         * modules/intprops-tests (Files): Add tests/macros.h.
9362         * tests/test-intprops.c: Include macros.h.
9363         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9364         it's no longer documented to expand to an integer constant expression.
9365         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9366         argument is floating point, as it's no longer documented to expand
9367         to an integer constant expression in that case.
9368         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9369         compiler bugs reported by Bruno Haible.  See
9370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9371         (U0, U1): New constants, to work around the same bugs.  Also,
9372         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9373
9374         intprops: work around C compiler bugs
9375         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9376         bug in Sun C 5.11 2010/08/13 and other compilers; see
9377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9378
9379         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9380         * doc/intprops.texi (Integer Type Determination): Fix
9381         documentation for TYPE_IS_INTEGER: it returns an constant
9382         expression, not an integer constant expression.  Fix doc for
9383         TYPE_SIGNED: it returns an integer constant expression only if its
9384         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9385         hardly worth documented that way....)
9386
9387 2011-05-18  Bruno Haible  <bruno@clisp.org>
9388
9389         strerror_r: Avoid clobbering the strerror buffer when possible.
9390         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9391         Handle gnulib defined errno values here. When strerror() returns NULL
9392         or an empty string, return EINVAL.
9393         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9394         gnulib defined errno values here.
9395         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9396
9397 2011-05-18  Eric Blake  <eblake@redhat.com>
9398
9399         fnmatch: avoid compiler warning
9400         * lib/fnmatch_loop.c (FCT): Use correct type.
9401         Reported by Matthias Bolte.
9402
9403 2011-05-13  Jim Meyering  <meyering@redhat.com>
9404
9405         maint.mk: three new prohibit_<HDR>_without_use rules
9406         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9407         (sc_prohibit_stdio-safer_without_use): Likewise.
9408         (sc_prohibit_xfreopen_without_use): Likewise.
9409
9410 2011-05-17  Jim Meyering  <meyering@redhat.com>
9411
9412         announce-gen: fail if the NEWS delta is empty
9413         If there's nothing noteworthy in NEWS, then either you forgot
9414         or you shouldn't be releasing.
9415         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9416
9417 2011-05-17  Pádraig Brady <P@draigBrady.com>
9418
9419         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9420         reserved symbols starting with double underscore from the check.
9421
9422 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9423
9424         intprops: add doc
9425         * doc/intprops.texi: New file, documenting intprops.
9426         * doc/gnulib.texi (Particular Modules): Include it.
9427
9428         verify: add doc to gnulib manual and fix example
9429         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9430         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9431         (Compile-time Assertions): Fix example so it can't overflow.
9432
9433 2011-05-17  Jim Meyering  <meyering@redhat.com>
9434
9435         warnings.m4: don't usurp save_CPPFLAGS variable name
9436         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9437
9438         doc: fix typo
9439         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9440
9441 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9442             Bruno Haible  <bruno@clisp.org>
9443
9444         doc: Tweak recent change.
9445         * README (Portability guidelines): Tweak new text.
9446         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9447         Interix 6.1.
9448
9449 2011-05-16  Eric Blake  <eblake@redhat.com>
9450
9451         inttypes: avoid autoconf warning
9452         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9453         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9454
9455 2011-05-16  Sam Steingold <sds@gnu.org>
9456         and Eric Blake  <eblake@redhat.com>
9457
9458         vc-list-files: accept multiple directory operands
9459         * build-aux/vc-list-files: Iterate over all remaining operands.
9460
9461 2011-05-16  Bruno Haible  <bruno@clisp.org>
9462
9463         Fix confusion regarding deprecated modules.
9464         * modules/calloc (Status, Notice): Mark module as deprecated, not
9465         obsolete.
9466         * modules/fnmatch-posix (Status, Notice): Likewise.
9467         * modules/getdate (Status, Notice): Likewise.
9468         * modules/getopt (Status, Notice): Likewise.
9469         * modules/malloc (Status, Notice): Likewise.
9470         * modules/pipe (Status, Notice): Likewise.
9471         * modules/realloc (Status, Notice): Likewise.
9472         * modules/rename-dest-slash (Status, Notice): Likewise.
9473         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9474         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9475         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9476         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9477         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9478
9479 2011-05-16  Bruno Haible  <bruno@clisp.org>
9480
9481         doc: List the target platforms.
9482         * doc/gnulib-intro.texi (Target Platforms): New section.
9483         * doc/gnulib.texi (Introduction): Update menu.
9484         * README (Portability guidelines): Refer to the new section. Update
9485         statement about oldest supported environment. Remove rationale why
9486         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9487         unportable C89 function.
9488         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9489         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9490
9491 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9494
9495 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9496
9497         intprops-tests: new module
9498         * modules/intprops-tests, tests/test-intprops.c: New files.
9499
9500         intprops: add safe, portable integer overflow checking
9501         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9502         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9503         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9504         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9505         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9506         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9507         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9508         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9509         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9510         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9511         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9512
9513 2011-05-12  James Youngman  <jay@gnu.org>
9514
9515         Add a test for glibc's Bugzilla bug #12378.
9516         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9517         doesn't allow the literal matching of a lone "[" (which is
9518         required by POSIX).
9519         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9520
9521 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9522
9523         Sync glibc change fixing Bugzilla bug #12378.
9524         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9525         beginning and fall back to matching as normal character if the
9526         string ends before the matching ']' is found.  This is what POSIX
9527         requires.
9528
9529 2011-05-13  Eric Blake  <eblake@redhat.com>
9530
9531         getcwd-lgpl: relax test for FreeBSD
9532         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9533         issue.
9534         * tests/test-getcwd-lgpl.c (main): Relax test.
9535         Reported by Matthias Bolte.
9536
9537 2011-05-11  Eric Blake  <eblake@redhat.com>
9538
9539         test-fflush: silence compiler warning
9540         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9541
9542 2011-05-11  Bruno Haible  <bruno@clisp.org>
9543
9544         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9545         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9546         * modules/canonicalize (Depends-on): Add 'nocrash'.
9547         * modules/canonicalize-lgpl (Depends-on): Likewise.
9548         * doc/posix-functions/realpath.texi: Update platforms list.
9549         Reported by Ryan Schmidt <ryandesign@macports.org>.
9550
9551 2011-05-11  Bruno Haible  <bruno@clisp.org>
9552
9553         group-member: Declare function in <unistd.h>.
9554         * lib/unistd.in.h (group_member): New declaration.
9555         * lib/group-member.h: Remove file.
9556         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9557         * tests/test-unistd-c++.cc: Check signature of group_member.
9558         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9559         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9560         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9561         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9562         HAVE_GROUP_MEMBER.
9563         * modules/group-member (Files): Remove lib/group-member.h.
9564         (Depends-on): Add unistd. Specify conditions.
9565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9566         (Include): Change to <unistd.h>.
9567         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9568         HAVE_GROUP_MEMBER.
9569         * NEWS: Mention the change.
9570         * lib/euidaccess.c: Don't include group-member.h.
9571
9572 2011-05-11  Bruno Haible  <bruno@clisp.org>
9573
9574         group-member: Document module.
9575         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9576         module.
9577
9578 2011-05-11  Bruno Haible  <bruno@clisp.org>
9579
9580         fclose: Fix mistake earlier today.
9581         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9582
9583 2011-05-11  Eric Blake  <eblake@redhat.com>
9584
9585         fclose: preserve fflush errors
9586         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9587         Reported by Jim Meyering.
9588
9589         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9590         * build-aux/bootstrap (check_versions): When no specific version
9591         is required, merely check that the app produces an exit status
9592         that indicates its existence.
9593
9594         maint.mk: drop redundant check
9595         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9596         the same but better.
9597
9598 2011-05-11  Bruno Haible  <bruno@clisp.org>
9599
9600         fclose: Fix possible link error.
9601         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9602         unregister_shadow_fd. Improve comments.
9603         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9604         Eric Blake.
9605
9606 2011-05-11  Jim Meyering  <meyering@redhat.com>
9607
9608         maint.mk: improve "can not" detection and generalize rule name
9609         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9610         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9611         Use the same technique as in sc_prohibit_doubled_word, so that
9612         we recognize "can not" also when the words are separated by a newline.
9613         Suggested by Eric Blake.
9614         (perl_filename_lineno_text_): Define.  Factored out of...
9615         (prohibit_doubled_word_): ...here.  Use the new definition.
9616         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9617         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9618         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9619
9620 2011-05-10  Eric Blake  <eblake@redhat.com>
9621
9622         fclose: avoid double close race when possible
9623         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9624         all but WINDOWS_SOCKETS.
9625
9626 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9627
9628         openat: correct new comment
9629         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9630
9631 2011-05-10  Jim Meyering  <meyering@redhat.com>
9632
9633         openat: add comments
9634         * lib/openat-proc.c (openat_proc_name): Add comments,
9635         mostly from Eric Blake.
9636
9637 2011-05-09  Eric Blake  <eblake@redhat.com>
9638
9639         openat: reduce syscalls in first probe of /proc
9640         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9641         be a directory.  Simplify the probe for .. bugs.
9642         * modules/openat (Depends-on): Drop same-inode.
9643         Reported by Bastien ROUCARIES.
9644
9645 2011-05-09  Jim Meyering  <meyering@redhat.com>
9646
9647         maint.mk: change semantics/name of tight_scope variables
9648         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9649         Rename variables to align with semantics that make them more useful.
9650
9651         maint.mk: tweak new rule's name not to impinge
9652         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9653         (sc_tight_scope): Use new rule name rather than $@-0.
9654
9655         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9656         * top/maint.mk (sc_tight_scope): New rule.
9657         (sc_tight_scope-0): New rule, ifdef'd out.
9658         (_gl_TS_dir): Default.
9659         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9660         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9661
9662 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9663
9664         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9665         Haible <bruno@clisp.org>.
9666
9667 2011-05-08  Bruno Haible  <bruno@clisp.org>
9668
9669         Comments.
9670         * m4/isnanf.m4: Add comment.
9671         * m4/isnanl.m4: Likewise.
9672
9673 2011-05-08  Bruno Haible  <bruno@clisp.org>
9674
9675         glob: Remove obsolete macro.
9676         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9677
9678 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         intprops: Sun C 5.11 supports __typeof__
9681         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9682         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9683         which is new.
9684         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9685
9686         intprops: switch to usual gnulib indenting and naming
9687         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9688         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9689
9690         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9691
9692 2011-05-08  Jim Meyering  <meyering@redhat.com>
9693
9694         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9695         * top/maint.mk (release-prep): Use make's --no-print-directory
9696         option when generating the announcement.  This eliminates the
9697         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9698         generated announcement template.
9699
9700 2011-05-08  Bruno Haible  <bruno@clisp.org>
9701
9702         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9703         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9704         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9705
9706 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9707
9708         ignore-value, verify: Omit include files from lib_SOURCES.
9709         * modules/ignore-value, modules/verify (Makefile.am):
9710         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9711         that leads Automake to duplicate use of am__objects_... variables
9712         in Makefile.in.  See
9713         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9714
9715 2011-05-07  Bruno Haible  <bruno@clisp.org>
9716
9717         fclose: Simplify autoconf macro.
9718         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9719         defined.
9720
9721 2011-05-07  Bruno Haible  <bruno@clisp.org>
9722
9723         canonicalize-lgpl: Fix autoconf macro ordering bug.
9724         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9725         gl_STDLIB_H_DEFAULTS.
9726
9727 2011-05-06  Eric Blake  <eblake@redhat.com>
9728
9729         maintainer-makefile: make sc_po_check easier to tune
9730         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9731         to probe for strings, such as an alternate location for gnulib.
9732
9733         fclose: guarantee behavior on seekable stdin
9734         * modules/fclose (Depends-on): Add fflush.
9735         * doc/posix-functions/fclose.texi (fclose): Document this.
9736         * tests/test-fclose.c (main): Make test for this unconditional.
9737
9738 2011-05-06  Bruno Haible  <bruno@clisp.org>
9739
9740         fflush, fpurge: Relicense under LGPLv2+.
9741         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9742         * modules/fpurge (License): Likewise.
9743         With permission from Eric Blake and Jim Meyering.
9744         Suggested by Eric Blake.
9745
9746 2011-05-06  Karl Berry  <karl@gnu.org>
9747
9748         * MODULES.html.sh (func_all_modules): remove exit.
9749
9750 2011-05-06  Jim Meyering  <meyering@redhat.com>
9751
9752         maint.mk: use info-gnu@ as the default only for a stable release
9753         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9754         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9755         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9756         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9757
9758 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9759
9760         assert-h: new module, which supports C1X-style static_assert
9761         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9762         * lib/verify.h: Revamp so that this can be copied into assert.h,
9763         while retaining the ability to use it standalone as before.
9764         Rename private identifiers so as not to encroach on the
9765         standard C namespace, since this is now used by assert.h.
9766         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9767         the old verify_true.
9768         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9769         the old verify_true.  Use _GL_VERIFY_TYPE.
9770         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9771         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9772         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9773         defined when this file is copied into the replacement assert.h.
9774         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9775         and _Static_assert is not built in.
9776         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9777         defined, and use the new macros mentioned above.
9778         * doc/posix-headers/assert.texi: Document this.
9779
9780 2011-05-05  Bruno Haible  <bruno@clisp.org>
9781
9782         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9783         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9784         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9785         gl_REPLACE_FCLOSE here.
9786         * modules/fflush (Depends-on): Remove fclose.
9787         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9788         combination with module 'fclose'.
9789
9790 2011-05-05  Bruno Haible  <bruno@clisp.org>
9791
9792         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9793         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9794         gl_FUNC_FFLUSH.
9795         (gl_FUNC_FFLUSH): Use it.
9796         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9798         gl_REPLACE_FSEEKO here.
9799
9800 2011-05-05  Bruno Haible  <bruno@clisp.org>
9801
9802         tzset: Relicense under LGPL.
9803         * modules/tzset (License): Change to LGPL.
9804         No agreement needed; it's a no-op.
9805
9806         strtoimax, strtoumax: Relicense under LGPL.
9807         * modules/strtoimax (License): Change to LGPL.
9808         * modules/strtoumax (License): Likewise.
9809         With permission from Jim Meyering, Paul Eggert:
9810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9812
9813         getgroups: Relicense under LGPL.
9814         * modules/getgroups (License): Change to LGPL.
9815         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9819
9820         nanosleep: Relicense under LGPL.
9821         * modules/nanosleep (License): Change to LGPL.
9822         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9823         Haible:
9824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9828
9829         futimens: Relicense under LGPL.
9830         * modules/futimens (License): Change to LGPL.
9831         With permission from Eric Blake:
9832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9833
9834         fflush: Relicense under LGPL.
9835         * modules/fflush (License): Change to LGPL.
9836         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9840
9841         tmpfile: Relicense under LGPL.
9842         * modules/tmpfile (License): Change to LGPL.
9843         With permission from Ben Pfaff:
9844         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9845
9846         isfinite: Relicense under LGPL.
9847         * modules/isfinite (License): Change to LGPL.
9848         With permission from Ben Pfaff, Bruno Haible:
9849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9851
9852         acosl..tanl: Relicense under LGPL.
9853         * modules/acosl (License): Change to LGPL.
9854         * modules/asinl (License): Likewise.
9855         * modules/atanl (License): Likewise.
9856         * modules/cosl (License): Likewise.
9857         * modules/expl (License): Likewise.
9858         * modules/logl (License): Likewise.
9859         * modules/sinl (License): Likewise.
9860         * modules/sqrtl (License): Likewise.
9861         * modules/tanl (License): Likewise.
9862         Source code originally from glibc and Paolo Bonzini. Agreements:
9863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9865
9866 2011-05-05  Bruno Haible  <bruno@clisp.org>
9867
9868         signal: Define sighandler_t.
9869         * lib/signal.in.h (sighandler_t): New type.
9870         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9871         whether sighandler_t is defined.
9872         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9873         * modules/signal (Depends-on): Add extensions.
9874         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9875         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9876         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9877
9878 2011-05-05  Eric Blake  <eblake@redhat.com>
9879
9880         maint: remove useless REPLACE_*_H macros
9881         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9882         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9883         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9884         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9885         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9886         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9887         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9888         * m4/btowc.m4: Update callers.
9889         * m4/dirfd.m4: Likewise.
9890         * m4/duplocale.m4: Likewise.
9891         * m4/fchdir.m4: Likewise.
9892         * m4/fdopendir.m4: Likewise.
9893         * m4/inet_ntop.m4: Likewise.
9894         * m4/inet_pton.m4: Likewise.
9895         * m4/ioctl.m4: Likewise.
9896         * m4/mbrlen.m4: Likewise.
9897         * m4/mbrtowc.m4: Likewise.
9898         * m4/mbsinit.m4: Likewise.
9899         * m4/mbsnrtowcs.m4: Likewise.
9900         * m4/mbsrtowcs.m4: Likewise.
9901         * m4/poll.m4: Likewise.
9902         * m4/setlocale.m4: Likewise.
9903         * m4/wcrtomb.m4: Likewise.
9904         * m4/wcsnrtombs.m4: Likewise.
9905         * m4/wcsrtombs.m4: Likewise.
9906         * m4/wctob.m4: Likewise.
9907         * m4/wcwidth.m4: Likewise.
9908         * modules/posix_spawn: Likewise.
9909         * modules/posix_spawn_file_actions_addclose: Likewise.
9910         * modules/posix_spawn_file_actions_adddup2: Likewise.
9911         * modules/posix_spawn_file_actions_addopen: Likewise.
9912         * modules/posix_spawn_file_actions_destroy: Likewise.
9913         * modules/posix_spawn_file_actions_init: Likewise.
9914         * modules/posix_spawnattr_destroy: Likewise.
9915         * modules/posix_spawnattr_getflags: Likewise.
9916         * modules/posix_spawnattr_getpgroup: Likewise.
9917         * modules/posix_spawnattr_getschedparam: Likewise.
9918         * modules/posix_spawnattr_getschedpolicy: Likewise.
9919         * modules/posix_spawnattr_getsigdefault: Likewise.
9920         * modules/posix_spawnattr_getsigmask: Likewise.
9921         * modules/posix_spawnattr_init: Likewise.
9922         * modules/posix_spawnattr_setflags: Likewise.
9923         * modules/posix_spawnattr_setpgroup: Likewise.
9924         * modules/posix_spawnattr_setschedparam: Likewise.
9925         * modules/posix_spawnattr_setschedpolicy: Likewise.
9926         * modules/posix_spawnattr_setsigdefault: Likewise.
9927         * modules/posix_spawnattr_setsigmask: Likewise.
9928         * modules/posix_spawnp: Likewise.
9929
9930 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9931
9932         Add option to do-release-commit-and-tag to specify branch.
9933         * build-aux/do-release-commit-and-tag: Add --branch.
9934
9935 2011-05-03  Bruno Haible  <bruno@clisp.org>
9936
9937         Avoid unnecessary compilation units, through conditional dependencies.
9938         * modules/accept (Depends-on): Add conditions to the dependencies.
9939         * modules/acosl (Depends-on): Likewise.
9940         * modules/argz (Depends-on): Likewise.
9941         * modules/asinl (Depends-on): Likewise.
9942         * modules/atanl (Depends-on): Likewise.
9943         * modules/atoll (Depends-on): Likewise.
9944         * modules/bind (Depends-on): Likewise.
9945         * modules/btowc (Depends-on): Likewise.
9946         * modules/canonicalize-lgpl (Depends-on): Likewise.
9947         * modules/ceil (Depends-on): Likewise.
9948         * modules/ceilf (Depends-on): Likewise.
9949         * modules/ceill (Depends-on): Likewise.
9950         * modules/chdir-long (Depends-on): Likewise.
9951         * modules/chown (Depends-on): Likewise.
9952         * modules/close (Depends-on): Likewise.
9953         * modules/connect (Depends-on): Likewise.
9954         * modules/cosl (Depends-on): Likewise.
9955         * modules/dirfd (Depends-on): Likewise.
9956         * modules/dprintf (Depends-on): Likewise.
9957         * modules/dprintf-posix (Depends-on): Likewise.
9958         * modules/error (Depends-on): Likewise.
9959         * modules/euidaccess (Depends-on): Likewise.
9960         * modules/expl (Depends-on): Likewise.
9961         * modules/faccessat (Depends-on): Likewise.
9962         * modules/fchdir (Depends-on): Likewise.
9963         * modules/fclose (Depends-on): Likewise.
9964         * modules/fcntl (Depends-on): Likewise.
9965         * modules/fdopendir (Depends-on): Likewise.
9966         * modules/fflush (Depends-on): Likewise.
9967         * modules/floor (Depends-on): Likewise.
9968         * modules/floorf (Depends-on): Likewise.
9969         * modules/floorl (Depends-on): Likewise.
9970         * modules/fnmatch (Depends-on): Likewise.
9971         * modules/fopen (Depends-on): Likewise.
9972         * modules/fprintf-posix (Depends-on): Likewise.
9973         * modules/frexp (Depends-on): Likewise.
9974         * modules/frexp-nolibm (Depends-on): Likewise.
9975         * modules/frexpl (Depends-on): Likewise.
9976         * modules/frexpl-nolibm (Depends-on): Likewise.
9977         * modules/fseek (Depends-on): Likewise.
9978         * modules/fsusage (Depends-on): Likewise.
9979         * modules/ftell (Depends-on): Likewise.
9980         * modules/ftello (Depends-on): Likewise.
9981         * modules/futimens (Depends-on): Likewise.
9982         * modules/getcwd (Depends-on): Likewise.
9983         * modules/getcwd-lgpl (Depends-on): Likewise.
9984         * modules/getdelim (Depends-on): Likewise.
9985         * modules/getdomainname (Depends-on): Likewise.
9986         * modules/getgroups (Depends-on): Likewise.
9987         * modules/gethostname (Depends-on): Likewise.
9988         * modules/getline (Depends-on): Likewise.
9989         * modules/getlogin_r (Depends-on): Likewise.
9990         * modules/getopt-posix (Depends-on): Likewise.
9991         * modules/getpeername (Depends-on): Likewise.
9992         * modules/getsockname (Depends-on): Likewise.
9993         * modules/getsockopt (Depends-on): Likewise.
9994         * modules/getsubopt (Depends-on): Likewise.
9995         * modules/getusershell (Depends-on): Likewise.
9996         * modules/glob (Depends-on): Likewise.
9997         * modules/grantpt (Depends-on): Likewise.
9998         * modules/iconv_open (Depends-on): Likewise.
9999         * modules/iconv_open-utf (Depends-on): Likewise.
10000         * modules/inet_ntop (Depends-on): Likewise.
10001         * modules/inet_pton (Depends-on): Likewise.
10002         * modules/ioctl (Depends-on): Likewise.
10003         * modules/isapipe (Depends-on): Likewise.
10004         * modules/isfinite (Depends-on): Likewise.
10005         * modules/isinf (Depends-on): Likewise.
10006         * modules/lchown (Depends-on): Likewise.
10007         * modules/ldexpl (Depends-on): Likewise.
10008         * modules/link (Depends-on): Likewise.
10009         * modules/linkat (Depends-on): Likewise.
10010         * modules/listen (Depends-on): Likewise.
10011         * modules/logl (Depends-on): Likewise.
10012         * modules/lstat (Depends-on): Likewise.
10013         * modules/mbrlen (Depends-on): Likewise.
10014         * modules/mbrtowc (Depends-on): Likewise.
10015         * modules/mbsinit (Depends-on): Likewise.
10016         * modules/mbsnrtowcs (Depends-on): Likewise.
10017         * modules/mbsrtowcs (Depends-on): Likewise.
10018         * modules/mbtowc (Depends-on): Likewise.
10019         * modules/memcmp (Depends-on): Likewise.
10020         * modules/mkdir (Depends-on): Likewise.
10021         * modules/mkdtemp (Depends-on): Likewise.
10022         * modules/mkfifo (Depends-on): Likewise.
10023         * modules/mkfifoat (Depends-on): Likewise.
10024         * modules/mknod (Depends-on): Likewise.
10025         * modules/mkostemp (Depends-on): Likewise.
10026         * modules/mkostemps (Depends-on): Likewise.
10027         * modules/mkstemp (Depends-on): Likewise.
10028         * modules/mkstemps (Depends-on): Likewise.
10029         * modules/mktime (Depends-on): Likewise.
10030         * modules/nanosleep (Depends-on): Likewise.
10031         * modules/open (Depends-on): Likewise.
10032         * modules/openat (Depends-on): Likewise.
10033         * modules/perror (Depends-on): Likewise.
10034         * modules/poll (Depends-on): Likewise.
10035         * modules/popen (Depends-on): Likewise.
10036         * modules/posix_spawn (Depends-on): Likewise.
10037         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10038         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10039         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10040         * modules/posix_spawnp (Depends-on): Likewise.
10041         * modules/pread (Depends-on): Likewise.
10042         * modules/printf-posix (Depends-on): Likewise.
10043         * modules/ptsname (Depends-on): Likewise.
10044         * modules/putenv (Depends-on): Likewise.
10045         * modules/pwrite (Depends-on): Likewise.
10046         * modules/readline (Depends-on): Likewise.
10047         * modules/readlink (Depends-on): Likewise.
10048         * modules/readlinkat (Depends-on): Likewise.
10049         * modules/recv (Depends-on): Likewise.
10050         * modules/recvfrom (Depends-on): Likewise.
10051         * modules/regex (Depends-on): Likewise.
10052         * modules/remove (Depends-on): Likewise.
10053         * modules/rename (Depends-on): Likewise.
10054         * modules/renameat (Depends-on): Likewise.
10055         * modules/rmdir (Depends-on): Likewise.
10056         * modules/round (Depends-on): Likewise.
10057         * modules/roundf (Depends-on): Likewise.
10058         * modules/roundl (Depends-on): Likewise.
10059         * modules/rpmatch (Depends-on): Likewise.
10060         * modules/select (Depends-on): Likewise.
10061         * modules/send (Depends-on): Likewise.
10062         * modules/sendto (Depends-on): Likewise.
10063         * modules/setenv (Depends-on): Likewise.
10064         * modules/setlocale (Depends-on): Likewise.
10065         * modules/setsockopt (Depends-on): Likewise.
10066         * modules/shutdown (Depends-on): Likewise.
10067         * modules/sigaction (Depends-on): Likewise.
10068         * modules/signbit (Depends-on): Likewise.
10069         * modules/sigprocmask (Depends-on): Likewise.
10070         * modules/sinl (Depends-on): Likewise.
10071         * modules/sleep (Depends-on): Likewise.
10072         * modules/snprintf (Depends-on): Likewise.
10073         * modules/snprintf-posix (Depends-on): Likewise.
10074         * modules/socket (Depends-on): Likewise.
10075         * modules/sprintf-posix (Depends-on): Likewise.
10076         * modules/sqrtl (Depends-on): Likewise.
10077         * modules/stat (Depends-on): Likewise.
10078         * modules/strchrnul (Depends-on): Likewise.
10079         * modules/strdup-posix (Depends-on): Likewise.
10080         * modules/strerror (Depends-on): Likewise.
10081         * modules/strerror_r-posix (Depends-on): Likewise.
10082         * modules/strndup (Depends-on): Likewise.
10083         * modules/strnlen (Depends-on): Likewise.
10084         * modules/strptime (Depends-on): Likewise.
10085         * modules/strsep (Depends-on): Likewise.
10086         * modules/strsignal (Depends-on): Likewise.
10087         * modules/strstr-simple (Depends-on): Likewise.
10088         * modules/strtod (Depends-on): Likewise.
10089         * modules/strtoimax (Depends-on): Likewise.
10090         * modules/strtok_r (Depends-on): Likewise.
10091         * modules/strtoumax (Depends-on): Likewise.
10092         * modules/symlink (Depends-on): Likewise.
10093         * modules/symlinkat (Depends-on): Likewise.
10094         * modules/tanl (Depends-on): Likewise.
10095         * modules/tcgetsid (Depends-on): Likewise.
10096         * modules/tmpfile (Depends-on): Likewise.
10097         * modules/trunc (Depends-on): Likewise.
10098         * modules/truncf (Depends-on): Likewise.
10099         * modules/truncl (Depends-on): Likewise.
10100         * modules/uname (Depends-on): Likewise.
10101         * modules/unlink (Depends-on): Likewise.
10102         * modules/unlockpt (Depends-on): Likewise.
10103         * modules/unsetenv (Depends-on): Likewise.
10104         * modules/usleep (Depends-on): Likewise.
10105         * modules/utimensat (Depends-on): Likewise.
10106         * modules/vasprintf (Depends-on): Likewise.
10107         * modules/vdprintf (Depends-on): Likewise.
10108         * modules/vdprintf-posix (Depends-on): Likewise.
10109         * modules/vfprintf-posix (Depends-on): Likewise.
10110         * modules/vprintf-posix (Depends-on): Likewise.
10111         * modules/vsnprintf (Depends-on): Likewise.
10112         * modules/vsnprintf-posix (Depends-on): Likewise.
10113         * modules/vsprintf-posix (Depends-on): Likewise.
10114         * modules/wcrtomb (Depends-on): Likewise.
10115         * modules/wcscasecmp (Depends-on): Likewise.
10116         * modules/wcscspn (Depends-on): Likewise.
10117         * modules/wcsdup (Depends-on): Likewise.
10118         * modules/wcsncasecmp (Depends-on): Likewise.
10119         * modules/wcsnrtombs (Depends-on): Likewise.
10120         * modules/wcspbrk (Depends-on): Likewise.
10121         * modules/wcsrtombs (Depends-on): Likewise.
10122         * modules/wcsspn (Depends-on): Likewise.
10123         * modules/wcsstr (Depends-on): Likewise.
10124         * modules/wcstok (Depends-on): Likewise.
10125         * modules/wcswidth (Depends-on): Likewise.
10126         * modules/wctob (Depends-on): Likewise.
10127         * modules/wctomb (Depends-on): Likewise.
10128         * modules/wctype (Depends-on): Likewise.
10129         * modules/wcwidth (Depends-on): Likewise.
10130         * modules/write (Depends-on): Likewise.
10131
10132 2011-05-03  Bruno Haible  <bruno@clisp.org>
10133
10134         Support for conditional dependencies.
10135         * doc/gnulib.texi (Module description): Document the syntax of
10136         conditional dependencies.
10137         * gnulib-tool: New option --conditional-dependencies.
10138         (func_usage): Document it.
10139         (cond_dependencies): New variable.
10140         (func_get_automake_snippet_conditional,
10141         func_get_automake_snippet_unconditional): New functions, extracted from
10142         func_get_automake_snippet.
10143         (func_get_automake_snippet): Use them.
10144         (sed_first_32_chars): New variable.
10145         (func_module_shellfunc_name): New function.
10146         (func_module_shellvar_name): New function.
10147         (func_module_conditional_name): New function.
10148         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10149         func_cond_module_condition): New functions.
10150         (func_modules_transitive_closure): Add support for conditional
10151         dependencies.
10152         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10153         conditional automake snippet in an automake conditional.
10154         (func_emit_autoconf_snippets): Emit shell functions that contain the
10155         code for conditional modules.
10156         (func_import, func_create_testdir): Update specification.
10157
10158 2011-05-03  Eric Blake  <eblake@redhat.com>
10159
10160         test-getaddrinfo: report error information
10161         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10162
10163 2011-05-03  Jim Meyering  <meyering@redhat.com>
10164
10165         bootstrap: avoid build failure when $GZIP is set
10166         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10167         program name.  If defined at all, it is supposed to list gzip options.
10168         Reported by Alan Curry in http://debbugs.gnu.org/8609
10169
10170 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10171
10172         readme-release: new module with release instructions
10173         * modules/readme-release: New module.
10174         * top/README-release: New file, from coreutils, grep, diffutils.
10175         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10176
10177 2011-05-02  Eric Blake  <eblake@redhat.com>
10178
10179         fflush: also replace fclose when fixing fflush
10180         * modules/fflush (Depends-on): Add fclose.
10181         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10182         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10183         memstreams with no backing fd.
10184         * doc/posix-functions/fclose.texi (fclose): Document the use of
10185         fflush module to fix the bug.
10186         * tests/test-fclose.c (main): Relax test when fclose is used in
10187         isolation.
10188
10189         fclose: add some tests
10190         * modules/fclose-tests: New test module.
10191         * tests/test-fclose.c: New file.
10192         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10193
10194         fclose: reduced dependencies
10195         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10196         simpler lseek.
10197         * lib/fclose.c (rpl_fclose): Likewise.
10198         Reported by Simon Josefsson.
10199
10200         exit: drop remaining clients
10201         * modules/argmatch (Depends-on): Replace exit with stdlib.
10202         * modules/copy-file (Depends-on): Likewise.
10203         * modules/execute (Depends-on): Likewise.
10204         * modules/exitfail (Depends-on): Likewise.
10205         * modules/obstack (Depends-on): Likewise.
10206         * modules/pagealign_alloc (Depends-on): Likewise.
10207         * modules/pipe-filter-gi (Depends-on): Likewise.
10208         * modules/pipe-filter-ii (Depends-on): Likewise.
10209         * modules/savewd (Depends-on): Likewise.
10210         * modules/spawn-pipe (Depends-on): Likewise.
10211         * modules/wait-process (Depends-on): Likewise.
10212         * modules/xsetenv (Depends-on): Likewise.
10213         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10214         * modules/git-merge-changelog (Depends-on): Likewise.
10215         * modules/long-options (Depends-on): Likewise.
10216         * modules/pt_chown (Depends-on): Likewise.
10217         * modules/sysexits (Depends-on): Likewise.
10218
10219         freading: relax license from LGPLv3+ to LGPLv2+
10220         * modules/freading (License): Relax LGPL version.
10221
10222 2011-05-02  Bruno Haible  <bruno@clisp.org>
10223
10224         fchdir: Remove unused dependencies.
10225         * modules/fchdir (Depends-on): Remove include_next.
10226
10227 2011-05-02  Bruno Haible  <bruno@clisp.org>
10228
10229         gnulib-tool: Refactor.
10230         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10231         from func_emit_autoconf_snippets.
10232         (func_emit_autoconf_snippets): Use it.
10233
10234 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10235
10236         * NEWS: Document removal of 'exit'.
10237         * modules/exit: Remove file.
10238
10239 2011-05-01  Bruno Haible  <bruno@clisp.org>
10240
10241         Update DEPENDENCIES.
10242         * DEPENDENCIES (gettext): Recommend the newest release.
10243         Reported by Simon Josefsson.
10244
10245 2011-05-01  Bruno Haible  <bruno@clisp.org>
10246
10247         gnulib-tool: Reduce code duplication.
10248         * gnulib-tool (func_emit_autoconf_snippets): New function.
10249         (func_import, func_create_testdir): Use it.
10250
10251 2011-04-30  Eric Blake  <eblake@redhat.com>
10252
10253         fclose: don't fail on non-seekable input stream
10254         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10255         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10256         since fflush is allowed to fail in that case.
10257
10258 2011-04-30  Bruno Haible  <bruno@clisp.org>
10259
10260         dup3: cleanup
10261         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10262
10263 2011-04-30  Bruno Haible  <bruno@clisp.org>
10264
10265         netdb: Make it work in C++ mode.
10266         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10267         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10268         module.
10269         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10270         gl_MODULE_INDICATOR_FOR_TESTS.
10271         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10272         * modules/netdb-c++-tests: New file.
10273         * tests/test-netdb-c++.cc: New file.
10274
10275 2011-04-30  Bruno Haible  <bruno@clisp.org>
10276
10277         New modules 'vfscanf', 'vscanf'.
10278         * modules/vfscanf: New file.
10279         * modules/vscanf: New file.
10280         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10281         here.
10282         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10283         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10284
10285 2011-04-30  Bruno Haible  <bruno@clisp.org>
10286
10287         passfd: Add comments.
10288         * lib/passfd.c: Add comments about platforms.
10289
10290 2011-04-30  Bruno Haible  <bruno@clisp.org>
10291
10292         sys_uio: Make <sys/uio.h> self-contained.
10293         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10294         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10295
10296 2011-04-30  Bruno Haible  <bruno@clisp.org>
10297
10298         sys_socket: Ensure 'struct iovec' definition.
10299         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10300         <sys/socket.h>.
10301         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10302
10303 2011-04-30  Bruno Haible  <bruno@clisp.org>
10304
10305         sys_uio: Protect definition of 'struct iovec'.
10306         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10307         it as a C struct.
10308
10309 2011-04-30  Bruno Haible  <bruno@clisp.org>
10310
10311         manywarnings: fix indentation
10312         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10313
10314 2011-04-30  Pádraig Brady <P@draigBrady.com>
10315
10316         manywarnings: add -Wno-missing-field-initializers if needed.
10317         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10318         option if it's needed to allow initialization with { 0, }
10319
10320 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10321
10322         announce-gen: cosmetic improvement
10323         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10324
10325 2011-04-29  Jim Meyering  <meyering@redhat.com>
10326
10327         vc-list-files: indent with spaces, not TABs
10328         * build-aux/vc-list-files: Convert leading TABs to spaces,
10329         to match the style of most other files in gnulib.
10330
10331         announce-gen: indent with spaces, not TABs
10332         * build-aux/announce-gen: Convert all TABs to spaces, to match
10333         the style of most other files in gnulib.
10334
10335 2011-04-29  Eric Blake  <eblake@redhat.com>
10336
10337         quotearg: avoid uninitialized variable use
10338         * lib/quotearg.c (quoting_options_from_style): Initialize
10339         remaining fields, and ensure that custom styles are only used via
10340         quoting_options rather than quoting_style.
10341
10342 2011-04-29  Jim Meyering  <meyering@redhat.com>
10343
10344         maint.mk: remove unused VC-tag variable
10345         * top/maint.mk (VC-tag): Remove unused variable.
10346
10347 2011-04-29  Bruno Haible  <bruno@clisp.org>
10348
10349         netdb: fix gai_strerror replacements
10350         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10351         * modules/netdb: Substitute it.
10352
10353 2011-04-29  Jim Meyering  <meyering@redhat.com>
10354
10355         test-getcwd.c: avoid new set-but-not-used warning
10356         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10357         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10358         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10359         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10360
10361         test-hash.c: avoid a new shadowing warning
10362         * tests/test-hash.c (main): Don't shadow "dup".
10363
10364 2011-04-28  Eric Blake  <eblake@redhat.com>
10365
10366         getaddrinfo: fix gai_strerror signature
10367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10368         and work around mingw with UNICODE defined.
10369         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10370         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10371         * modules/netdb (Makefile.am): Substitute it.
10372         * lib/netdb.in.h (gai_strerror): Declare replacement.
10373         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10374         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10375         the fix.
10376
10377         getsockopt: avoid compiler warning
10378         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10379         Reported by Matthias Bolte.
10380
10381         tests: drop unused link dependency
10382         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10383         * modules/dirent-safer-tests (Makefile.am): Likewise.
10384         * modules/fdopendir-tests (Makefile.am): Likewise.
10385         * modules/mkfifoat-tests (Makefile.am): Likewise.
10386         * modules/openat-safer-tests (Makefile.am): Likewise.
10387         * modules/openat-tests (Makefile.am): Likewise.
10388         * modules/readlinkat-tests (Makefile.am): Likewise.
10389         * modules/symlinkat-tests (Makefile.am): Likewise.
10390         * modules/linkat-tests (Makefile.am): Likewise.
10391         (Depends-on): Switch to filenamecat-lgpl.
10392         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10393         LIBINTL.
10394         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10395         * tests/test-linkat.c (main): Don't require xalloc.
10396
10397         hash, mgetgroups: drop xalloc dependency
10398         * lib/hash.c (includes): Adjust includes.
10399         * lib/mgetgroups.c (includes): Likewise.
10400         (xgetgroups): Move...
10401         * lib/xgetgroups.c: ...to new file.
10402         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10403         * modules/xgetgroups: New file, split from...
10404         * modules/mgetgroups: ...here.
10405         (Depends-on): Add xalloc-oversized.
10406         * modules/hash (Depends-on): Likewise.
10407         * modules/hash-tests (Depends-on): Drop xalloc.
10408         (test_hash_LDADD): Drop unused library.
10409         * tests/test-hash.c (main): Break xalloc dependency.
10410         (includes): Drop unused include.
10411
10412         xalloc-oversized: new module
10413         * modules/xalloc-oversized: New module.
10414         * modules/xalloc (Depends-on): Add it.
10415         * lib/xalloc.h (xalloc_oversized): Move...
10416         * lib/xalloc-oversized.h: ...into new file.
10417
10418         utimecmp: drop dependency on xmalloc
10419         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10420         due to memory pressure.
10421         * modules/utimecmp (Depends-on): Drop xalloc.
10422
10423 2011-04-27  Eric Blake  <eblake@redhat.com>
10424
10425         getcwd: fix mingw bugs
10426         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10427         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10428         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10429
10430 2011-04-27  Bruno Haible  <bruno@clisp.org>
10431
10432         mkstemps: Ensure declaration on MacOS X 10.5.
10433         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10434         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10435         MacOS X.
10436
10437 2011-04-27  Bruno Haible  <bruno@clisp.org>
10438
10439         mkstemp: More documentation.
10440         * doc/posix-functions/mkstemp.texi: Document header file problem on
10441         MacOS X.
10442
10443 2011-04-27  Bruno Haible  <bruno@clisp.org>
10444
10445         mkstemp: Tweak configure message when cross-compiling.
10446         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10447         result as a guess.
10448
10449 2011-04-27  Bruno Haible  <bruno@clisp.org>
10450
10451         clean-temp: Clarify what it does.
10452         * lib/clean-temp.h: Add more comments.
10453         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10454         module.
10455         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10456         * doc/glibc-functions/mkstemps.texi: Likewise.
10457         * doc/glibc-functions/mkostemps.texi: Likewise.
10458
10459 2011-04-27  Eric Blake  <eblake@redhat.com>
10460
10461         fchdir: avoid extra chdir and fix test
10462         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10463         getcwd-lgpl.
10464         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10465         have to be canonical.
10466         (canonicalize_file_name): Drop unused macro.
10467         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10468
10469         filenamecat-lgpl: fix licence
10470         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10471         when it was first created.
10472
10473         linkat, renameat: add missing dependency
10474         * modules/linkat (Depends-on): Require getcwd-lgpl.
10475         * modules/renameat (Depends-on): Likewise.
10476
10477         tests: reduce dependencies
10478         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10479         * tests/test-renameat.c (main): Likewise.
10480         * modules/linkat-tests (Depends-on): Relax dependency.
10481         * modules/renameat-tests (Depends-on): Likewise.
10482         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10483         dependency explicit.
10484
10485         save-cwd: reduce default dependency
10486         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10487         * lib/save-cwd.c: Update comments.
10488         * NEWS: Document the semantic change.
10489
10490         getcwd: enhance tests
10491         * tests/test-getcwd-lgpl.c: New file, taken from...
10492         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10493         repeat long path stress tests from m4 probe.
10494         * modules/getcwd-lgpl-tests: New module.
10495         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10496         * m4/getcwd-abort-bug.m4: Update comment.
10497         * m4/getcwd-path-max.m4: Likewise.
10498
10499         getcwd-lgpl: new module
10500         * modules/getcwd-lgpl: New module.
10501         * lib/getcwd-lgpl.c: New file.
10502         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10503         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10504         * modules/getcwd (configure.ac): Set C witness.
10505         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10506
10507         getcwd: tweak comments
10508         * m4/getcwd-abort-bug.m4: Fix comments.
10509         * m4/getcwd-path-max.m4: Likewise.
10510         * m4/getcwd.m4: Likewise.
10511
10512 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10513         and Eric Blake  <eblake@redhat.com>
10514
10515         mkstemp: replace if system version uses wrong permissions
10516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10517         read/write mode bits set in file created by mkstemp.
10518         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10519
10520 2011-04-27  Eric Blake  <eblake@redhat.com>
10521
10522         passfd: avoid compiler warning
10523         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10524         Reported by Laine Stump.
10525
10526 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10527
10528         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10529         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10530
10531 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10532         and Eric Blake  <eblake@redhat.com>
10533
10534         mkstemp: mention clean-temp module
10535         * lib/mkstemp.c: Add comment.
10536         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10537
10538 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10539
10540         inttypes: also provide default values for 32-bit tests
10541         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10542         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10543
10544 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10545
10546         strtoumax: remove dependency on strtoimax
10547         This is like the strtoull change of yesterday.
10548         * modules/strtoumax (Files): Add lib/strtoimax.c.
10549         (Depends-on): Remove strtoimax and add verify.
10550
10551         inttypes-incomplete: new module
10552         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10553         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10554         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10555         of gl_INTTYPES_H.
10556         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10557         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10558         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10559         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10560         * modules/strtoumax, modules/xstrtol (Depends-on):
10561         Depend on inttypes-incomplete, not inttypes.
10562         * modules/inttypes-incomplete: New module, containing the contents
10563         of the old modules/inttypes module, except that the Files: section
10564         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10565         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10566         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10567         (Depends-on): Depend only on inttypes-incomplete.
10568         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10569
10570         inttypes: omit now-redundant strtoimax and strtoumax work
10571         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10572         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10573
10574         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10575         This supports apps that need pointers to strtoimax and strtoumax,
10576         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10577         nonexistent functions.  See
10578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10579         et seq.
10580         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10581         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10582         a macro.
10583         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10584
10585 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10586
10587         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10588
10589 2011-04-25  Bruno Haible  <bruno@clisp.org>
10590
10591         strtol, strtoul: Mark modules as obsolete.
10592         * modules/strtol (Status, Notice): New sections.
10593         * modules/strtoul (Status, Notice): New sections.
10594
10595 2011-04-25  Bruno Haible  <bruno@clisp.org>
10596
10597         strtod: Remove check for strtod, unless supporting old platforms.
10598         * modules/strtod-obsolete: New file.
10599         * m4/strtod-obsolete.m4: New file.
10600         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10601         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10602         * modules/strtod (Depends-on): Add strtod-obsolete.
10603         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10604
10605 2011-04-25  Bruno Haible  <bruno@clisp.org>
10606
10607         strcase: Make module obsolete.
10608         * modules/strcase (Status, Notice): New sections.
10609
10610 2011-04-25  Bruno Haible  <bruno@clisp.org>
10611
10612         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10613         * modules/dup2-obsolete: New file.
10614         * m4/dup2-obsolete.m4: New file.
10615         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10616         gl_FUNC_DUP2_OBSOLETE is not also defined.
10617         * modules/dup2 (Depends-on): Add dup2-obsolete.
10618         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10619
10620 2011-04-25  Bruno Haible  <bruno@clisp.org>
10621
10622         strnlen: Avoid memchr related link error on old obsolete platforms.
10623         * modules/memchr-obsolete: New file.
10624         * m4/memchr-obsolete.m4: New file.
10625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10626         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10627         * modules/memchr (Depends-on): Add memchr-obsolete.
10628         * modules/strnlen (Depends-on): Likewise.
10629         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10630
10631 2011-04-25  Jim Meyering  <meyering@redhat.com>
10632
10633         maint.mk: makefile_at_at_check extend and clean up
10634         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10635         in addition to */Makefile.am.
10636         Exempt legitimate uses of @VAR@ notation, e.g.,
10637         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10638         Remove obsolete coreutils-specific comment.
10639         Prompted by discussion here:
10640         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10641
10642 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         strtoul: remove dependency on strtol
10645         This is so that 'configure' need not check for strtol merely because
10646         the application needs strtoul.
10647         * modules/strtoul (Files): Add lib/strtol.c.
10648         (Depends-on): Remove strtol.
10649
10650         strtoull: remove dependency on strtoul
10651         This is like the strtoll change.
10652         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10653         (Depends-on): Remove strtoul.
10654
10655         strtoll: remove dependency on strtol
10656         This is so that 'configure' need not check for strtol merely because
10657         the application needs strtoll.
10658         * modules/strtoll (Files): Add lib/strtol.c.
10659         (Depends-on): Remove strtol.
10660
10661 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10662
10663         inttypes: Move some configure check to module 'imaxdiv'.
10664         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10665         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10666         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10667
10668 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10669
10670         inttypes: Move some configure check to module 'imaxabs'.
10671         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10672         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10673         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10674
10675 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10676
10677         inttypes: Remove configure tests that are not needed since 2009-12-31.
10678         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10679         gl_cv_header_working_inttypes_h.
10680
10681 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         * modules/strnlen (Depends-on): Remove memchr.
10684         The strnlen implementation doesn't need the memchr module's fixes; see
10685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10686
10687         strtol: remove dependency on wchar
10688         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10689         * modules/strtol (Depends-on): Remove wchar.
10690
10691 2011-04-21  Eric Blake  <eblake@redhat.com>
10692
10693         passfd: fix test regression on Linux
10694         * modules/passfd-tests (configure.ac): Correct socketpair check.
10695
10696         passfd: speed up configure and drop unused code
10697         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10698         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10699         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10700         Instead of probing at configure for unix_scm_rights_bsd44_way,
10701         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10702         check to a struct member probe.
10703         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10704         (sendfd, recvfd): Update preprocessor checks.
10705         * modules/passfd (Files): Reflect rename, and drop unused file.
10706         (Depends-on): Drop unused dependency.
10707
10708         passfd: allow compilation on mingw
10709         * modules/sys_socket (Depends-on): Add sys_uio.
10710         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10711         iovec and a minimal struct msghdr.
10712         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10713         * tests/test-sys_socket.c (main): Enhance test.
10714         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10715         guaranteed to provide what we need.
10716         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10717         * modules/passfd-tests (Depends-on): Add sys_wait.
10718         * tests/test-passfd.c (main): Skip test on mingw, for now.
10719         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10720         partial 'struct msghdr' implementation.
10721
10722         sys_uio: new module
10723         * modules/sys_uio: New module.
10724         * modules/sys_uio-tests: Likewise.
10725         * lib/sys_uio.in.h: New file.
10726         * m4/sys_uio_h.m4: Likewise.
10727         * tests/test-sys_uio.c: Likewise.
10728         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10729         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10730
10731 2011-04-20  Jim Meyering  <meyering@redhat.com>
10732
10733         useless-if-before-free: avoid false-positive
10734         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10735         disjunct so that it too requires a terminating ";".  Without that,
10736         this script would identify as useless one statement from gcc that
10737         was not:
10738           if (aligned_ptr)
10739             free (((void **) aligned_ptr) [-1]);
10740
10741 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10742
10743         doc: update users.txt.
10744         * users.txt: Add barcode.
10745
10746 2011-04-19  Bruno Haible  <bruno@clisp.org>
10747
10748         ioctl: Remove link dependency on native Windows.
10749         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10750         (gl_close_fn, gl_ioctl_fn): New types.
10751         (struct fd_hook): Renamed from struct close_hook. Change type of
10752         private_close_fn field. Add private_ioctl_fn field.
10753         (close_hook_fn): Add parameter for primary close method.
10754         (execute_close_hooks, execute_all_close_hooks): Likewise.
10755         (ioctl_hook_fn): New type.
10756         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10757         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10758         argument.
10759         (unregister_fd_hook): Renamed from unregister_close_hook.
10760         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10761         Don't include <unistd.h>.
10762         (close): Remove undef.
10763         (anchor): Update.
10764         (execute_close_hooks): Add argument for primary close method.
10765         (execute_all_close_hooks): Likewise.
10766         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10767         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10768         argument. Allow each argument to be NULL.
10769         (unregister_fd_hook): Renamed from unregister_close_hook.
10770         * lib/close.c (rpl_close): Pass 'close' function pointer to
10771         execute_all_close_hooks.
10772         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10773         (primary_ioctl): New function.
10774         (ioctl): Don't call ioctlsocket here. Instead, call
10775         execute_all_ioctl_hooks.
10776         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10777         close method.
10778         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10779         (fd_sockets_hook): Renamed from close_sockets_hook.
10780         (gl_sockets_startup, gl_sockets_cleanup): Update.
10781         * modules/fd-hook: Renamed from modules/close-hook. Update.
10782         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10783         * modules/sockets (Depends-on): Likewise.
10784         * modules/ioctl (Depends-on): Add fd-hook.
10785         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10786         GNULIB_SOCKET.
10787
10788 2011-04-19  Bruno Haible  <bruno@clisp.org>
10789
10790         Move the support of O_NONBLOCK in open() to the 'open' module.
10791         * modules/nonblocking (Depends-on): Remove 'open'.
10792         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10793         gl_cv_have_open_O_NONBLOCK.
10794         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10795         O_NONBLOCK support.
10796         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10797
10798 2011-04-17  Bruno Haible  <bruno@clisp.org>
10799
10800         pipe2: Simplify code.
10801         * lib/pipe2.c (pipe2): Reduce code duplication.
10802
10803 2011-04-17  Bruno Haible  <bruno@clisp.org>
10804
10805         nonblocking: Add comment.
10806         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10807
10808 2011-04-17  Bruno Haible  <bruno@clisp.org>
10809
10810         nonblocking: Add tests for sockets.
10811         * tests/test-nonblocking-socket.sh: New file.
10812         * tests/test-nonblocking-socket-main.c: New file.
10813         * tests/test-nonblocking-socket-child.c: New file.
10814         * tests/test-nonblocking-socket.h: New file.
10815         * tests/socket-server.h: New file.
10816         * tests/socket-client.h: New file.
10817         * modules/nonblocking-socket-tests: New file.
10818         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10819
10820 2011-04-17  Bruno Haible  <bruno@clisp.org>
10821
10822         nonblocking: Add tests for pipes.
10823         * tests/test-nonblocking-pipe.sh: New file.
10824         * tests/test-nonblocking-pipe-main.c: New file.
10825         * tests/test-nonblocking-pipe-child.c: New file.
10826         * tests/test-nonblocking-pipe.h: New file.
10827         * tests/test-nonblocking-writer.h: New file.
10828         * tests/test-nonblocking-reader.h: New file.
10829         * tests/test-nonblocking-misc.h: New file.
10830         * modules/nonblocking-pipe-tests: New file.
10831         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10832
10833 2011-04-16  Bruno Haible  <bruno@clisp.org>
10834
10835         gettext: Clarify the needed programmer actions.
10836         * modules/gettext (Notice): New field.
10837         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10838
10839 2011-04-16  Bruno Haible  <bruno@clisp.org>
10840
10841         strchrnul: Tweak last commit.
10842         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10843         bug.
10844         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10845         as in _GL_FUNCDECL_SYS.
10846         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10847         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10848
10849 2011-04-15  Eric Blake  <eblake@redhat.com>
10850
10851         strchrnul: work around cygwin bug
10852         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10853         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10855         * modules/string (Makefile.am): Substitute it.
10856         * lib/string.in.h (strchrnul): Use it.
10857
10858 2011-04-15  Bruno Haible  <bruno@clisp.org>
10859
10860         Don't require lib/stdio-write.c when only module 'stdio' is used.
10861         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10862         invocation.
10863         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10864
10865 2011-04-14  Bruno Haible  <bruno@clisp.org>
10866
10867         Support non-blocking pipe I/O in read() on native Windows.
10868         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10869         (read): New declaration.
10870         * lib/read.c: New file.
10871         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10872         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10873         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10874         vscanf): New declarations.
10875         * lib/stdio-read.c: New file.
10876         * m4/read.m4: New file.
10877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10878         REPLACE_READ.
10879         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10880         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10881         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10882         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10883         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10884         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10885         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10886         * modules/read: New file.
10887         * modules/nonblocking (Files): Add lib/stdio-read.c.
10888         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10889         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10890         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10891         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10892         * modules/pread (Depends-on): Add read.
10893         * modules/safe-read (Depends-on): Likewise.
10894         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10895         gets, scanf, vfscanf, vscanf): Verify signatures.
10896         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10897         problem with non-blocking pipes.
10898         * doc/posix-functions/fgetc.texi: Likewise.
10899         * doc/posix-functions/fgets.texi: Likewise.
10900         * doc/posix-functions/fread.texi: Likewise.
10901         * doc/posix-functions/fscanf.texi: Likewise.
10902         * doc/posix-functions/getc.texi: Likewise.
10903         * doc/posix-functions/getchar.texi: Likewise.
10904         * doc/posix-functions/gets.texi: Likewise.
10905         * doc/posix-functions/scanf.texi: Likewise.
10906         * doc/posix-functions/vfscanf.texi: Likewise.
10907         * doc/posix-functions/vscanf.texi: Likewise.
10908
10909 2011-04-14  Bruno Haible  <bruno@clisp.org>
10910
10911         Support non-blocking pipe I/O in write() on native Windows.
10912         * lib/write.c (rpl_write): Split a write request that failed merely
10913         because the byte count was larger than the pipe buffer's size.
10914         * doc/posix-functions/write.texi: Mention the problem with large byte
10915         counts.
10916
10917 2011-04-14  Bruno Haible  <bruno@clisp.org>
10918
10919         wchar: Ensure that wchar_t gets defined on uClibc.
10920         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10921         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10922
10923 2011-04-13  Bruno Haible  <bruno@clisp.org>
10924
10925         safe-write, full-read: Avoid unnecessary compilation units.
10926         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10927         (Depends-on): Remove safe-read. Add ssize_t.
10928         * modules/full-read (Files): Add lib/full-write.c.
10929         (Depends-on): Add full-write.
10930
10931 2011-04-13  Bruno Haible  <bruno@clisp.org>
10932
10933         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10934         * modules/pwrite (Depends-on): Add 'write'.
10935
10936 2011-04-13  Bruno Haible  <bruno@clisp.org>
10937
10938         Support non-blocking pipe I/O in write() on native Windows.
10939         * lib/unistd.in.h (write): Enable replacement also if
10940         GNULIB_UNISTD_H_NONBLOCKING is 1.
10941         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10942         (rpl_write): When failing to write on a non-blocking pipe, change
10943         errno from ENOSPC to EAGAIN.
10944         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10945         putchar, puts, vfprintf, vprintf): Enable replacement also if
10946         GNULIB_STDIO_H_NONBLOCKING is 1.
10947         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10948         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10949         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10950         CALL_WITH_SIGPIPE_EMULATION.
10951         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10952         * m4/nonblocking.m4: New file.
10953         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10954         for non-blocking I/O support.
10955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10956         GNULIB_UNISTD_H_NONBLOCKING.
10957         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10958         required for non-blocking I/O support.
10959         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10960         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10961         lib/stdio-write.c, m4/asm-underscore.m4.
10962         (Depends-on): Add stdio, unistd.
10963         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10964         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10965         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10966         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10967         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10968         problem with non-blocking pipes.
10969         * doc/posix-functions/fputc.texi: Likewise.
10970         * doc/posix-functions/fputs.texi: Likewise.
10971         * doc/posix-functions/fwrite.texi: Likewise.
10972         * doc/posix-functions/printf.texi: Likewise.
10973         * doc/posix-functions/putc.texi: Likewise.
10974         * doc/posix-functions/putchar.texi: Likewise.
10975         * doc/posix-functions/puts.texi: Likewise.
10976         * doc/posix-functions/vfprintf.texi: Likewise.
10977         * doc/posix-functions/vprintf.texi: Likewise.
10978         * doc/posix-functions/write.texi: Likewise.
10979
10980 2011-04-10  Jim Meyering  <meyering@redhat.com>
10981
10982         maint.mk: prohibit doubled words
10983         Detect them also when they're separated by a newline.
10984         There are 3 ways to customize it:
10985           - disable the test on a per file basis, as usual with rules using
10986             $(VC_LIST_EXCEPT)
10987           - replace the default doubled-word-selecting regexp (affects all files)
10988           - ignore a particular file-vs-doubled-word match
10989         I nearly used that last one to ignore the "is is" match in
10990         coreutils' NEWS file, since the text was "ls -is is ..."
10991         To do that, I would have added this line to cfg.mk:
10992           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10993         but it would have ignored any "is is" match in NEWS.
10994         Low probability, but still...
10995         Instead, I changed the text, slightly:
10996           -  ls -is is now consistent with ls -lis in ignoring values returned
10997           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10998         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10999         (prohibit_doubled_word_): Define.
11000         (sc_prohibit_doubled_word): New rule.
11001         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11002
11003 2011-04-10  Jim Meyering  <meyering@redhat.com>
11004
11005         maint: fix doubled-word typo in comment
11006         * m4/gethostname.m4: s/is is/it is/
11007         * m4/getdomainname.m4: Likewise.
11008
11009 2011-04-10  Jim Meyering  <meyering@redhat.com>
11010
11011         maint: remove doubled word: s/it it/it/
11012         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11013
11014 2011-04-10  Jim Meyering  <meyering@redhat.com>
11015
11016         maint.mk: remove useless semicolon and backslash
11017         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11018         semicolon and backslash.
11019
11020 2011-04-10  Bruno Haible  <bruno@clisp.org>
11021
11022         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11023         * modules/stdint-tests (Depends-on): Add wchar.
11024
11025 2011-04-10  Jim Meyering  <meyering@redhat.com>
11026
11027         maint: remove doubled words in comments, e.g., s/a a/a/
11028         * lib/strptime.c (day_of_the_week): s/the the/the/
11029         * tests/test-chown.h (test_chown): s/a a/a/
11030
11031         test-chown.h: correct a cast
11032         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11033         when the destination is a stat.st_gid.
11034
11035 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11036
11037         getaddrinfo: Fix test for sa_len member.
11038         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11039         include <sys/types.h> before <sys/socket.h>.
11040
11041 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11042
11043         maint: change "can not" to "cannot"
11044         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11045         boundaries.
11046
11047 2011-04-09  Jim Meyering  <meyering@redhat.com>
11048
11049         maint: change "a a" to "a"
11050         * tests/test-lchown.h (test_lchown): s/a a/a/
11051
11052         maint.mk: prohibit \<the the\>
11053         * top/maint.mk (sc_prohibit_the_the): New rule.
11054
11055         maint: fix "the the" in comment
11056         * lib/count-one-bits.h: s/the the/the/
11057
11058         maint: change "can not" to "cannot"
11059         But do not change the occurrences in maintain.texi or in
11060         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11061         * doc/gnulib-tool.texi: s/can not/cannot/
11062         * doc/posix-functions/accept.texi (accept): Likewise.
11063         * doc/posix-functions/socket.texi (socket): Likewise.
11064         * lib/mbrtowc.c: Likewise.
11065
11066         maint.mk: prohibit use of "can not"
11067         * top/maint.mk (sc_prohibit_can_not): New rule.
11068         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11069
11070 2011-04-09  Bruno Haible  <bruno@clisp.org>
11071
11072         careadlinkat: Guard against misuse of careadlinkatcwd.
11073         * lib/careadlinkat.c: Include <stdlib.h>.
11074         (careadlinkatcwd): Check that the fd argument is as expected.
11075
11076 2011-04-09  Bruno Haible  <bruno@clisp.org>
11077
11078         careadlinkat: Use common coding style.
11079         * lib/careadlinkat.c: Move gnulib includes after system includes.
11080
11081 2011-04-09  Bruno Haible  <bruno@clisp.org>
11082
11083         careadlinkat: Clarify specification.
11084         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11085         (careadlinkatcwd): Add comment.
11086         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11087
11088 2011-04-09  Bruno Haible  <bruno@clisp.org>
11089
11090         areadlinkat: Avoid link error on many platforms.
11091         * modules/areadlinkat (Depends-on): Add areadlink.
11092
11093 2011-04-09  Bruno Haible  <bruno@clisp.org>
11094
11095         allocator, careadlinkat: Fix double-inclusion guard.
11096         * lib/allocator.h: Fix double-inclusion guard.
11097         * lib/careadlinkat.h: Likewise.
11098
11099 2011-04-09  Bruno Haible  <bruno@clisp.org>
11100
11101         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11102         * lib/relocwrapper.c: Update dependencies hierarchy.
11103         * build-aux/install-reloc: Update list of files to be compiled.
11104         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11105         lib/allocator.[hc].
11106
11107 2011-04-08  Eric Blake  <eblake@redhat.com>
11108
11109         strftime: silence gnulib-tool warning
11110         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11111
11112 2011-04-08  Bruno Haible  <bruno@clisp.org>
11113
11114         verify: Fix syntax error with GCC 4.6 in C++ mode.
11115         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11116         (HAVE_STATIC_ASSERT): New macro.
11117         (verify_true, verify): Use 'static_assert' if it is supported and
11118         '_Static_assert' is not supported.
11119
11120 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11121
11122         allocator: New module.
11123         * modules/allocator, lib/allocator.c: New files.
11124         * lib/allocator.h (stdlib_allocator): New decl.
11125         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11126         Remove.  Do not include <stdlib.h>.
11127         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11128         * modules/careadlinkat (Files): Remove lib/allocator.h.
11129         (Depends-on): Add allocator.
11130
11131         stdlib: let modules use system malloc, realloc
11132         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11133         if !_GL_USE_STDLIB_ALLOC.
11134         (malloc, realloc): Limit this change to a smaller scope.
11135
11136         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11137         (malloc, realloc): Don't #undef; no longer needed.
11138         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11139         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11140         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11141         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11142         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11143         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11144         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11145         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11146
11147         careadlinkat: rename members to avoid problem
11148         * lib/allocator.h (struct allocator): Rename members from
11149         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11150         and realloc are #define'd.  Reported by Eric Blake in
11151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11152         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11153
11154 2011-04-08  Eric Blake  <eblake@redhat.com>
11155
11156         nonblocking: reduce dependency
11157         * tests/test-nonblocking.c: Only test sockets when in use.
11158         * modules/nonblocking-tests (Depends-on): Drop socket.
11159         (Makefile.am): Link even if sockets are not present.
11160         * modules/pipe2-tests (Makefile.am): Likewise.
11161         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11162
11163         pipe2: fix O_NONBLOCK support on mingw
11164         * modules/pipe2 (Depends-on): Add nonblocking.
11165         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11166         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11167         * tests/test-nonblocking.c (main): Likewise.
11168         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11169
11170         fcntl-h: fix O_ACCMODE on cygwin
11171         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11172         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11173
11174         pipe-filter: drop O_NONBLOCK workarounds
11175         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11176         * modules/pipe-filter-ii (Depends-on): Likewise.
11177         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11178
11179         nonblocking: provide O_NONBLOCK for mingw
11180         * modules/nonblocking (Depends-on): Add open.
11181         (configure.ac): Set new witness macro.
11182         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11183         * modules/fcntl-h (Makefile.am): Substitute it.
11184         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11185         nonblocking module is in use.
11186         * lib/nonblocking.c: Adjust portability test.
11187         * lib/open.c (open): Don't let native open see gnulib flag.
11188         * tests/test-fcntl-h.c (main): Enhance test.
11189         * tests/test-open.h (test_open): Likewise.
11190         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11191
11192         careadlinkat: fix compilation error on mingw
11193         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11194         within struct allocator.
11195
11196 2011-04-06  Eric Blake  <eblake@redhat.com>
11197
11198         binary-io: relicense under LGPLv2+
11199         * modules/binary-io (License): Relax to LGPLv2+.
11200         Requested for libvirt, and required by pipe2.
11201
11202 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11203
11204         verify: use _Static_assert if available
11205         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11206         (verify_true, verify): Use it if available.  This generates better
11207         diagnostics with GCC 4.6.0 and later.
11208
11209 2011-04-05  Bruno Haible  <bruno@clisp.org>
11210
11211         Remove leftover generated .h files after config.status changed.
11212
11213         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11214         GL_GENERATE_ALLOCA_H.
11215         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11216         GL_GENERATE_ALLOCA_H evaluates to false.
11217
11218         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11219         GL_GENERATE_ARGZ_H.
11220         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11221         evaluates to false.
11222
11223         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11224         GL_GENERATE_BYTESWAP_H.
11225         * modules/byteswap (Makefile.am): Remove byteswap.h if
11226         GL_GENERATE_BYTESWAP_H evaluates to false.
11227
11228         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11229         GL_GENERATE_ERRNO_H.
11230         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11231         evaluates to false.
11232
11233         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11234         GL_GENERATE_FLOAT_H.
11235         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11236         evaluates to false.
11237
11238         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11239         GL_GENERATE_FNMATCH_H.
11240         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11241         GL_GENERATE_FNMATCH_H evaluates to false.
11242
11243         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11244         GL_GENERATE_GLOB_H.
11245         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11246         evaluates to false.
11247
11248         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11249         automake conditional GL_GENERATE_ICONV_H.
11250         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11251         evaluates to false.
11252
11253         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11254         GL_GENERATE_NETINET_IN_H.
11255         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11256         GL_GENERATE_NETINET_IN_H evaluates to false.
11257
11258         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11259         conditional GL_GENERATE_PTHREAD_H.
11260         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11261         * modules/pthread (Makefile.am): Remove pthread.h if
11262         GL_GENERATE_PTHREAD_H evaluates to false.
11263
11264         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11265         GL_GENERATE_SCHED_H.
11266         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11267         evaluates to false.
11268
11269         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11270         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11271         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11272         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11273
11274         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11275         GL_GENERATE_STDARG_H.
11276         * modules/stdarg (Makefile.am): Remove stdarg.h if
11277         GL_GENERATE_STDARG_H evaluates to false.
11278
11279         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11280         GL_GENERATE_STDBOOL_H.
11281         * modules/stdbool (Makefile.am): Remove stdbool.h if
11282         GL_GENERATE_STDBOOL_H evaluates to false.
11283
11284         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11285         conditional GL_GENERATE_STDDEF_H.
11286         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11287         * modules/stddef (Makefile.am): Remove stddef.h if
11288         GL_GENERATE_STDDEF_H evaluates to false.
11289
11290         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11291         GL_GENERATE_STDINT_H.
11292         * modules/stdint (Makefile.am): Remove stdint.h if
11293         GL_GENERATE_STDINT_H evaluates to false.
11294
11295         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11296         GL_GENERATE_SYSEXITS_H.
11297         * modules/sysexits (Makefile.am): Remove sysexits.h if
11298         GL_GENERATE_SYSEXITS_H evaluates to false.
11299
11300         Reported by Karl Berry and Ralf Wildenhues.
11301
11302 2011-04-05  Bruno Haible  <bruno@clisp.org>
11303
11304         Ensure to rebuild generated .h files when config.status has changed.
11305         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11306         config.status.
11307         * modules/ctype (Makefile.am): Likewise.
11308         * modules/dirent (Makefile.am): Likewise.
11309         * modules/errno (Makefile.am): Likewise.
11310         * modules/fcntl-h (Makefile.am): Likewise.
11311         * modules/float (Makefile.am): Likewise.
11312         * modules/getopt-posix (Makefile.am): Likewise.
11313         * modules/glob (Makefile.am): Likewise.
11314         * modules/iconv-h (Makefile.am): Likewise.
11315         * modules/inttypes (Makefile.am): Likewise.
11316         * modules/langinfo (Makefile.am): Likewise.
11317         * modules/locale (Makefile.am): Likewise.
11318         * modules/math (Makefile.am): Likewise.
11319         * modules/netdb (Makefile.am): Likewise.
11320         * modules/netinet_in (Makefile.am): Likewise.
11321         * modules/poll-h (Makefile.am): Likewise.
11322         * modules/pthread (Makefile.am): Likewise.
11323         * modules/pty (Makefile.am): Likewise.
11324         * modules/sched (Makefile.am): Likewise.
11325         * modules/search (Makefile.am): Likewise.
11326         * modules/selinux-h (Makefile.am): Likewise.
11327         * modules/signal (Makefile.am): Likewise.
11328         * modules/spawn (Makefile.am): Likewise.
11329         * modules/stdarg (Makefile.am): Likewise.
11330         * modules/stdbool (Makefile.am): Likewise.
11331         * modules/stddef (Makefile.am): Likewise.
11332         * modules/stdint (Makefile.am): Likewise.
11333         * modules/stdio (Makefile.am): Likewise.
11334         * modules/stdlib (Makefile.am): Likewise.
11335         * modules/string (Makefile.am): Likewise.
11336         * modules/strings (Makefile.am): Likewise.
11337         * modules/sys_file (Makefile.am): Likewise.
11338         * modules/sys_ioctl (Makefile.am): Likewise.
11339         * modules/sys_select (Makefile.am): Likewise.
11340         * modules/sys_socket (Makefile.am): Likewise.
11341         * modules/sys_stat (Makefile.am): Likewise.
11342         * modules/sys_time (Makefile.am): Likewise.
11343         * modules/sys_times (Makefile.am): Likewise.
11344         * modules/sys_utsname (Makefile.am): Likewise.
11345         * modules/sys_wait (Makefile.am): Likewise.
11346         * modules/sysexits (Makefile.am): Likewise.
11347         * modules/termios (Makefile.am): Likewise.
11348         * modules/time (Makefile.am): Likewise.
11349         * modules/unistd (Makefile.am): Likewise.
11350         * modules/wchar (Makefile.am): Likewise.
11351         * modules/wctype-h (Makefile.am): Likewise.
11352         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11353
11354 2011-04-05  Bruno Haible  <bruno@clisp.org>
11355
11356         pipe2: Relicense under LGPLv2+.
11357         * modules/pipe2 (License): Change to LGPLv2+.
11358         Requested by Eric Blake, for libvirt.
11359
11360 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11361
11362         bootstrap: compute gnulib_extra_files after updating build_aux
11363         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11364         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11365
11366 2011-04-05  Eric Blake  <eblake@redhat.com>
11367
11368         bootstrap: preserve git whitelist item sorting
11369         * build-aux/bootstrap (sort_patterns): New function.
11370         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11371
11372 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11373
11374         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11375         sc_space_tab check.
11376
11377 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         areadlink, areadlinkat: rewrite in terms of careadlinkat
11380         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11381         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11382         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11383         (malloc, realloc): Remove #undefs.
11384         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11385         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11386         readlink, ssize_t, stdint, unistd.
11387         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11388         areadlink, stdint.
11389
11390         careadlinkat: new module
11391         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11392         * modules/careadlinkat: New files, written by me with
11393         a review and feedback from Ben Pfaff in
11394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11395
11396 2011-04-01  Bruno Haible  <bruno@clisp.org>
11397
11398         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11399         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11400         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11401         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11402         Reported by Bruce Korb <bruce.korb@gmail.com>.
11403
11404 2011-04-01  Bruno Haible  <bruno@clisp.org>
11405
11406         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11407         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11408         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11409         * modules/wcpcpy (Depends-on): Add extensions.
11410         * modules/wcpncpy (Depends-on): Likewise.
11411         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11412         systems.
11413         * doc/posix-functions/wcpncpy.texi: Likewise.
11414         * doc/posix-functions/wcwidth.texi: Likewise.
11415
11416 2011-03-31  Eric Blake  <eblake@redhat.com>
11417
11418         nonblocking: fix mingw test failures
11419         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11420         non-blocking flag on regular file.
11421         (get_nonblocking_flag): Set errno on invalid fd.
11422         * tests/test-nonblocking.c (main): Avoid test failure on
11423         directories if fchdir is not active.
11424         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11425
11426 2011-03-31  Bruno Haible  <bruno@clisp.org>
11427
11428         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11429         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11430         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11431         Reported by Simon Josefsson <simon@josefsson.org>.
11432
11433 2011-03-31  Bruno Haible  <bruno@clisp.org>
11434         and Eric Blake  <eblake@redhat.com>
11435
11436         nonblocking: new module
11437         * modules/nonblocking: New module.
11438         * modules/nonblocking-tests: Likewise.
11439         * lib/nonblocking.h: New file.
11440         * lib/nonblocking.c: Likewise.
11441         * tests/test-nonblocking.c: New test.
11442         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11443
11444 2011-03-30  Bruno Haible  <bruno@clisp.org>
11445
11446         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11447         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11448         instead of 'printf' format for GCC >= 4.4.
11449         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11450         (fprintf, printf, vfprintf, vprintf): Declare with
11451         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11452         the system's vfprintf() function.
11453         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11454
11455 2011-03-30  Eric Blake  <eblake@redhat.com>
11456
11457         passfd: fix scoping bug
11458         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11459         before sendmsg/recvmsg.
11460
11461         passfd: standardize coding conventions
11462         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11463         can be learned at compile time.
11464         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11465         ifdefs.
11466         (sendfd, recvfd): Follow gnulib code conventions.
11467
11468         passfd: fix incorrect sendmsg arguments
11469         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11470         incorrect msg_controllen value.
11471         * modules/passfd-tests (Depends-on): Check for alarm.
11472         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11473         Reported by Bastien ROUCARIES.
11474
11475 2011-03-30  Bruno Haible  <bruno@clisp.org>
11476
11477         c-strcasestr: Relicense under LGPLv2+.
11478         * modules/c-strcasestr (License): Change to LGPLv2+.
11479         Requested by Eric Blake, for libvirt.
11480
11481 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11482
11483         * users.txt: Add libidn2.  Fix libtasn1 link.
11484
11485 2011-03-30  Jim Meyering  <meyering@redhat.com>
11486
11487         tests: readlink* ("",... fails with EINVAL on newer kernels
11488         readlink and readlinkat have typically failed with ENOENT for
11489         the invalid, empty file name,  "".  However, with the advent
11490         of linux-2.6.39, they fail with EINVAL.
11491         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11492         when operating on the empty file name.
11493         * tests/test-readlink.h (test_readlink): Likewise.
11494
11495 2011-03-29  Bruno Haible  <bruno@clisp.org>
11496
11497         Relicense some modules under LGPLv2+, for libidn2.
11498         * modules/array-mergesort (License): Change to LGPLv2+.
11499         * modules/c-strcaseeq (License): Likewise.
11500         * modules/striconveh (License): Likewise.
11501         * modules/striconveha (License): Likewise.
11502         * modules/uniconv/base (License): Likewise.
11503         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11504         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11505         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11506         * modules/unictype/base (License): Likewise.
11507         * modules/unictype/bidiclass-of (License): Likewise.
11508         * modules/unictype/category-M (License): Likewise.
11509         * modules/unictype/category-none (License): Likewise.
11510         * modules/unictype/category-of (License): Likewise.
11511         * modules/unictype/category-test (License): Likewise.
11512         * modules/unictype/category-test-withtable (License): Likewise.
11513         * modules/unictype/combining-class (License): Likewise.
11514         * modules/unictype/joiningtype-of (License): Likewise.
11515         * modules/unictype/scripts (License): Likewise.
11516         * modules/uninorm/base (License): Likewise.
11517         * modules/uninorm/canonical-decomposition (License): Likewise.
11518         * modules/uninorm/composition (License): Likewise.
11519         * modules/uninorm/decompose-internal (License): Likewise.
11520         * modules/uninorm/decomposition-table (License): Likewise.
11521         * modules/uninorm/nfc (License): Likewise.
11522         * modules/uninorm/nfd (License): Likewise.
11523         * modules/uninorm/u32-normalize (License): Likewise.
11524         * modules/unistr/base (License): Likewise.
11525         * modules/unistr/u32-cpy (License): Likewise.
11526         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11527         * modules/unistr/u32-to-u8 (License): Likewise.
11528         * modules/unistr/u32-uctomb (License): Likewise.
11529         * modules/unistr/u8-check (License): Likewise.
11530         * modules/unistr/u8-mblen (License): Likewise.
11531         * modules/unistr/u8-mbtouc (License): Likewise.
11532         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11533         * modules/unistr/u8-mbtoucr (License): Likewise.
11534         * modules/unistr/u8-prev (License): Likewise.
11535         * modules/unistr/u8-strlen (License): Likewise.
11536         * modules/unistr/u8-to-u32 (License): Likewise.
11537         * modules/unistr/u8-uctomb (License): Likewise.
11538         * modules/unitypes (License): Likewise.
11539         Requested by Simon Josefsson.
11540
11541 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11542
11543         lib-symbol-visibility: Add a notice.
11544         * modules/lib-symbol-visibility (Notice): New field.
11545
11546 2011-03-29  Bruno Haible  <bruno@clisp.org>
11547
11548         getaddrinfo: Doc fix.
11549         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11550         section "fixed in Gnulib".
11551
11552 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11553
11554         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11555         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11556
11557 2011-03-26  Bruno Haible  <bruno@clisp.org>
11558
11559         unictype/property-byname: Reduce the number of load-time relocations.
11560         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11561         (UC_PROPERTY_INDEX_*): New enumeration values.
11562         (uc_property_byname): Convert an index from the lookup table to an
11563         uc_property_t.
11564         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11565         values.
11566
11567 2011-03-26  Bruno Haible  <bruno@clisp.org>
11568
11569         unictype/property-byname: Allow omitted word separators and aliases.
11570         * lib/unictype/pr_byname.gperf: Add property names without word
11571         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11572         for 'space'.
11573
11574 2011-03-26  Bruno Haible  <bruno@clisp.org>
11575
11576         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11577         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11578         also hyphens to space.
11579         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11580         without spaces.
11581         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11582
11583 2011-03-26  Bruno Haible  <bruno@clisp.org>
11584
11585         unictype/joiningtype-byname: Recognize long names as well.
11586         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11587         a long name.
11588         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11589         unictype/joiningtype_byname.h.
11590         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11591         * lib/unictype/joiningtype_byname.gperf: New file.
11592         * modules/unictype/joiningtype-byname (Files): Add
11593         lib/unictype/joiningtype_byname.gperf.
11594         (Depends-on): Add gperf.
11595         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11596         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11597         long names.
11598
11599         Tests for module 'unictype/joiningtype-longname'.
11600         * modules/unictype/joiningtype-longname-tests: New file.
11601         * tests/unictype/test-joiningtype_longname.c: New file.
11602
11603         New module 'unictype/joiningtype-longname'.
11604         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11605         * lib/unictype/joiningtype_longname.c: New file.
11606         * modules/unictype/joiningtype-longname: New file.
11607         * modules/unictype/joiningtype-all (Depends-on): Add
11608         unictype/joiningtype-longname.
11609
11610 2011-03-26  Bruno Haible  <bruno@clisp.org>
11611
11612         unictype/bidiclass-byname: Recognize long names as well.
11613         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11614         name.
11615         * lib/unictype/bidi_byname.c: Include <string.h>,
11616         unictype/bidi_byname.h.
11617         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11618         * lib/unictype/bidi_byname.gperf: New file.
11619         * modules/unictype/bidiclass-byname (Files): Add
11620         lib/unictype/bidi_byname.gperf.
11621         (Depends-on): Add gperf.
11622         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11623         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11624         long names.
11625
11626         Tests for module 'unictype/bidiclass-longname'.
11627         * modules/unictype/bidiclass-longname-tests: New file.
11628         * tests/unictype/test-bidi_longname.c: New file.
11629
11630         New module 'unictype/bidiclass-longname'.
11631         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11632         * lib/unictype/bidi_longname.c: New file.
11633         * modules/unictype/bidiclass-longname: New file.
11634         * modules/unictype/bidiclass-all (Depends-on): Add
11635         unictype/bidiclass-longname.
11636
11637 2011-03-26  Bruno Haible  <bruno@clisp.org>
11638
11639         unictype/bidi*: Rename modules.
11640         * modules/unictype/bidiclass-all: Renamed from
11641         modules/unictype/bidicategory-all.
11642         * modules/unictype/bidiclass-name: Renamed from
11643         modules/unictype/bidiclass-name.
11644         (Description): Update.
11645         * modules/unictype/bidiclass-name-tests: Renamed from
11646         modules/unictype/bidicategory-name-tests.
11647         * modules/unictype/bidiclass-byname: Renamed from
11648         modules/unictype/bidicategory-byname.
11649         (Description): Update.
11650         * modules/unictype/bidiclass-byname-tests: Renamed from
11651         modules/unictype/bidicategory-byname-tests.
11652         * modules/unictype/bidiclass-of: Renamed from
11653         modules/unictype/bidicategory-of.
11654         (Description): Update.
11655         * modules/unictype/bidiclass-of-tests: Renamed from
11656         modules/unictype/bidicategory-of-tests.
11657         * modules/unictype/bidiclass-test: Renamed from
11658         modules/unictype/bidicategory-test.
11659         (Description): Update.
11660         * modules/unictype/bidiclass-test-tests: Renamed from
11661         modules/unictype/bidicategory-test-tests.
11662         * modules/unictype/bidicategory-all: New file, a simple redirection.
11663         * modules/unictype/bidicategory-name: Likewise.
11664         * modules/unictype/bidicategory-byname: Likewise.
11665         * modules/unictype/bidicategory-of: Likewise.
11666         * modules/unictype/bidicategory-test: Likewise.
11667         * modules/unictype/property-bidi-* (Dependencies): Update.
11668         * lib/unictype/bidi_*.c: Update comment.
11669
11670 2011-03-26  Bruno Haible  <bruno@clisp.org>
11671
11672         unictype/bidi*: Rename functions, part 2.
11673         * modules/unictype/bidicategory-name (configure.ac): Update required
11674         libunistring version.
11675         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11676
11677 2011-03-25  Bruno Haible  <bruno@clisp.org>
11678
11679         New module 'unictype/combining-class-all'.
11680         * modules/unictype/combining-class-all: New file.
11681
11682         Tests for module 'unictype/combining-class-byname'.
11683         * modules/unictype/combining-class-byname-tests: New file.
11684         * tests/unictype/test-combiningclass_byname.c: New file.
11685
11686         New module 'unictype/combining-class-byname'.
11687         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11688         * lib/unictype/combiningclass_byname.c: New file.
11689         * lib/unictype/combiningclass_byname.gperf: New file.
11690         * modules/unictype/combining-class-byname: New file.
11691
11692         Tests for module 'unictype/combining-class-longname'.
11693         * modules/unictype/combining-class-longname-tests: New file.
11694         * tests/unictype/test-combiningclass_longname.c: New file.
11695
11696         New module 'unictype/combining-class-longname'.
11697         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11698         * lib/unictype/combiningclass_longname.c: New file.
11699         * modules/unictype/combining-class-longname: New file.
11700
11701         Tests for module 'unictype/combining-class-name'.
11702         * modules/unictype/combining-class-name-tests: New file.
11703         * tests/unictype/test-combiningclass_name.c: New file.
11704
11705         New module 'unictype/combining-class-name'.
11706         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11707         * lib/unictype/combiningclass_name.c: New file.
11708         * modules/unictype/combining-class-name: New file.
11709
11710 2011-03-25  Bruno Haible  <bruno@clisp.org>
11711
11712         unictype/combining-class: Rename source files.
11713         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11714         of unictype/combining.h.
11715         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11716         Update.
11717         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11718         * modules/unictype/combining-class (Description): Fix.
11719         (Files, Makefile.am): Update.
11720         * tests/unictype/test-combiningclass.c: Renamed from
11721         tests/unictype/test-combining.c.
11722         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11723
11724 2011-03-25  Bruno Haible  <bruno@clisp.org>
11725
11726         unictype: Update list of canonical combining classes.
11727         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11728
11729 2011-03-25  Bruno Haible  <bruno@clisp.org>
11730
11731         unictype/category-byname: Recognize long names as well.
11732         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11733         a long name.
11734         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11735         unictype/categ_byname.h.
11736         (UC_CATEGORY_INDEX_*): New enumeration values.
11737         (uc_general_category_byname): Use uc_general_category_lookup and
11738         convert from index to value.
11739         * lib/unictype/categ_byname.gperf: New file.
11740         * modules/unictype/category-byname (Files): Add
11741         lib/unictype/categ_byname.gperf.
11742         (Depends-on): Add gperf.
11743         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11744         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11745         long names.
11746
11747         Tests for module 'unictype/category-longname'.
11748         * modules/unictype/category-longname-tests: New file.
11749         * tests/unictype/test-categ_longname.c: New file.
11750
11751         New module 'unictype/category-longname'.
11752         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11753         * lib/unictype/categ_longname.c: New file.
11754         * modules/unictype/category-longname: New file.
11755         * modules/unictype/category-all (Depends-on): Add it.
11756
11757 2011-03-25  Bruno Haible  <bruno@clisp.org>
11758
11759         Tests for module 'unictype/category-LC'.
11760         * modules/unictype/category-LC-tests: New file.
11761         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11762
11763         New module 'unictype/category-LC'.
11764         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11765         (UC_CATEGORY_LC): New declaration.
11766         (UC_CASED_LETTER): New macro.
11767         * lib/gen-uni-tables.c (is_category_LC): New function.
11768         (output_categories): Also handle category LC.
11769         (UC_CATEGORY_MASK_LC): New enumeration value.
11770         (general_category_byname): Also handle category LC.
11771         * lib/unictype/categ_LC.c: New file.
11772         * lib/unictype/categ_LC.h: New file, automatically generated.
11773         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11774         category LC.
11775         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11776         * modules/unictype/category-LC: New file.
11777         * modules/unictype/category-byname (Depends-on): Add
11778         unictype/category-LC.
11779         * modules/unictype/category-all (Depends-on): Likewise.
11780
11781 2011-03-25  Eric Blake  <eblake@redhat.com>
11782
11783         xmalloc: revert yesterday's regression
11784         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11785         realloc's underlying behavior (allowing allocation of zero-size
11786         objects, especially if malloc-gnu is also in use).
11787
11788 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11789
11790         maint.mk: add missing version to VC-tag
11791         * top/maint.mk: git tag was missing actual tag name; add it.
11792
11793         valgrind: do leak checking, and exit with code 1 on error (not 0)
11794         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11795         to VALGRIND.
11796
11797 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11798
11799         posix-modules: say what it does.
11800         * posix-modules: Add a line to the --help output saying what it does.
11801
11802 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11803
11804         xmalloc: Do not leak if underlying realloc is C99 compatible.
11805         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11806         This avoids a leak on C99-based systems.  See
11807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11808
11809 2011-03-24  Eric Blake  <eblake@redhat.com>
11810
11811         realloc: document portability problem
11812         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11813         passing 0 size to realloc.
11814
11815 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11816
11817         doc: update users.txt
11818         * users.txt: Add cvsps, tmpwatch
11819
11820 2011-03-23  Matt Rice  <ratmice@gmail.com>
11821
11822         doc: update users.txt
11823         * users.txt: Add gdb.
11824
11825 2011-03-23  Jim Meyering  <meyering@redhat.com>
11826
11827         doc: update users.txt
11828         Looking through matches up to the following URL (there are still
11829         several more pages), I found several projects that use gnulib:
11830         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11831         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11832         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11833
11834 2011-03-22  Bruno Haible  <bruno@clisp.org>
11835
11836         unictype/bidi*: Rename functions.
11837         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11838         uc_bidi_class, uc_is_bidi_class): New declarations.
11839         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11840         uc_bidi_category_byname.
11841         (uc_bidi_category_byname): New function.
11842         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11843         u_bidi_category_name.
11844         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11845         (uc_bidi_category_name): New function.
11846         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11847         uc_bidi_category.
11848         (uc_bidi_category): New function.
11849         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11850         uc_is_bidi_category. Invoke uc_bidi_class.
11851         (uc_is_bidi_category): New function.
11852         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11853         instead of uc_bidi_category_byname.
11854         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11855         instead of uc_bidi_category_name.
11856         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11857         uc_bidi_category.
11858         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11859         instead of uc_is_bidi_category.
11860
11861 2011-03-21  Bruno Haible  <bruno@clisp.org>
11862
11863         New module 'unictype/joininggroup-all'.
11864         * modules/unictype/joininggroup-all: New file.
11865
11866         Tests for module 'unictype/joininggroup-of'.
11867         * modules/unictype/joininggroup-of-tests: New file.
11868         * tests/unictype/test-joininggroup_of.c: New file.
11869         * tests/unictype/test-joininggroup_of.h: New file, automatically
11870         generated by gen-uni-tables.
11871
11872         New module 'unictype/joininggroup-of'.
11873         * modules/unictype/joininggroup-of: New file.
11874         * lib/unictype/joininggroup_of.c: New file.
11875         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11876         gen-uni-tables.
11877
11878         Tests for module 'unictype/joininggroup-byname'.
11879         * modules/unictype/joininggroup-byname-tests: New file.
11880         * tests/unictype/test-joininggroup_byname.c: New file.
11881
11882         New module 'unictype/joininggroup-byname'.
11883         * modules/unictype/joininggroup-byname: New file.
11884         * lib/unictype/joininggroup_byname.c: New file.
11885         * lib/unictype/joininggroup_byname.gperf: New file.
11886
11887         Tests for module 'unictype/joininggroup-name'.
11888         * modules/unictype/joininggroup-name-tests: New file.
11889         * tests/unictype/test-joininggroup_name.c: New file.
11890
11891         New module 'unictype/joininggroup-name'.
11892         * modules/unictype/joininggroup-name: New file.
11893         * lib/unictype/joininggroup_name.c: New file.
11894         * lib/unictype/joininggroup_name.h: New file.
11895
11896         New module 'unictype/joiningtype-all'.
11897         * modules/unictype/joiningtype-all: New file.
11898
11899         Tests for module 'unictype/joiningtype-of'.
11900         * modules/unictype/joiningtype-of-tests: New file.
11901         * tests/unictype/test-joiningtype_of.c: New file.
11902         * tests/unictype/test-joiningtype_of.h: New file, automatically
11903         generated by gen-uni-tables.
11904
11905         New module 'unictype/joiningtype-of'.
11906         * modules/unictype/joiningtype-of: New file.
11907         * lib/unictype/joiningtype_of.c: New file.
11908         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11909         gen-uni-tables.
11910
11911         Tests for module 'unictype/joiningtype-byname'.
11912         * modules/unictype/joiningtype-byname-tests: New file.
11913         * tests/unictype/test-joiningtype_byname.c: New file.
11914
11915         New module 'unictype/joiningtype-byname'.
11916         * modules/unictype/joiningtype-byname: New file.
11917         * lib/unictype/joiningtype_byname.c: New file.
11918
11919         Tests for module 'unictype/joiningtype-name'.
11920         * modules/unictype/joiningtype-name-tests: New file.
11921         * tests/unictype/test-joiningtype_name.c: New file.
11922
11923         New module 'unictype/joiningtype-name'.
11924         * modules/unictype/joiningtype-name: New file.
11925         * lib/unictype/joiningtype_name.c: New file.
11926
11927         unictype: Add support for Arabic shaping properties.
11928         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11929         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11930         declarations.
11931         (UC_JOINING_GROUP_*): New enumeration values.
11932         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11933         declarations.
11934         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11935         (unicode_joining_type): New variable.
11936         (UC_JOINING_GROUP_*): New enumeration values.
11937         (unicode_joining_group): New variable.
11938         (fill_arabicshaping, joining_type_as_c_identifier,
11939         output_joining_type_test, output_joining_type,
11940         joining_group_as_c_identifier, output_joining_group_test,
11941         output_joining_group): New functions.
11942         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11943         fill_arabicshaping and output_joining_type_test, output_joining_type,
11944         output_joining_group_test, output_joining_group.
11945         Reported by Simon Josefsson.
11946
11947 2011-03-21  Jim Meyering  <meyering@redhat.com>
11948
11949         strftime: fix a bug in yesterday's change
11950         * lib/strftime.c (add): Accommodate width's initial value of -1.
11951         Otherwise, nstrftime would copy uninitialized data into
11952         the result buffer.
11953
11954 2011-03-21  Jim Meyering  <meyering@redhat.com>
11955
11956         tests: add strftime-tests module
11957         * tests/test-strftime.c: New file.
11958         * modules/strftime-tests: New module.
11959
11960 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11961
11962         strftime: don't assume a byte count fits in 'int'
11963         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11964         found this problem by static analysis, using gcc -Wstrict-overflow
11965         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11966         on an integer overflow having undefined behavior, but it turns out
11967         that the argument is a size, which might not fit in 'int' anyway,
11968
11969 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11970
11971         stdio: don't require ignore_value around fwrite
11972
11973         This patch works around libc bug 11959
11974         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11975         Without this patch, applications must often write
11976         ignore_value (fwrite (...)) even though the ignore_value is
11977         not helpful here.  It's common to write many objects, using
11978         fwrite/printf/etc., and then use ferror to detect output error.
11979
11980         I considered making this patch optional, but decided against it,
11981         because libc is obviously being inconsistent here: there is no
11982         reason libc should insist that user code must inspect fwrite
11983         return's value without also insisting that it inspect printf's,
11984         putchar's, etc.  If user code wants to have a strict style where
11985         all these functions' values are checked (so that ferror need not
11986         be checked), we could add support for that style in a new gnulib
11987         module, but in the meantime it's better to be consistent and to
11988         support common usage.
11989
11990         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11991         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11992         that we are compiling in checking mode, and if not C++, and
11993         if not already wrapping fwrite for some other reason.
11994         (fwrite): #define to rpl_fwrite if the latter is defined.
11995
11996 2011-03-20  Bruno Haible  <bruno@clisp.org>
11997
11998         verror: Fix compilation error introduced on 2011-02-13.
11999         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12000         instead of __attribute__.
12001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12002
12003 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12004             Bruno Haible  <bruno@clisp.org>
12005
12006         socklen: do not depend on sys_socket
12007         While trying to modify Emacs to use gnulib's socklen module,
12008         I discovered a circular dependency: socklen depends on sys_socket
12009         and vice versa.  Emacs can use socklen, but it does not need
12010         sys_socket because it has its own substitute for sys/socket.h.
12011         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12012         gl_TYPE_SOCKLEN_T.
12013         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12014         gl_PREREQ_SYS_H_SOCKET.
12015         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12016         gl_PREREQ_SYS_H_SOCKET.
12017         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12018         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12019         * modules/socklen (Depends-on): Do not depend on sys_socket.
12020         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12021
12022 2011-03-20  Jim Meyering  <meyering@redhat.com>
12023
12024         maint.mk: sort file names *after* new transformation
12025         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12026         prefix would have led to an unwarranted failure in GNU parted.
12027         Sort after that transformation.
12028
12029 2011-03-19  Jim Meyering  <meyering@redhat.com>
12030
12031         maint.mk: fix po-file syntax-check rule
12032         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12033         Patch by Bruno Haible.
12034
12035 2011-03-19  Bruno Haible  <bruno@clisp.org>
12036
12037         socklen: Update comment.
12038         * m4/socklen.m4: Update comment about platforms.
12039
12040 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12041             Bruno Haible  <bruno@clisp.org>
12042
12043         inet_ntop, inet_pton: Simplify.
12044         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12045         documented to provide socklen_t and we already depend on sys_socket.
12046         * modules/inet_pton (Depends-on): Likewise.
12047         * lib/arpa_inet.in.h: Adjust comment.
12048
12049 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12050             Bruno Haible  <bruno@clisp.org>
12051
12052         netdb: Simplify.
12053         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12054         documented to provide socklen_t and we already depend on sys_socket.
12055         * lib/netdb.in.h: Adjust comment.
12056
12057 2011-03-19  Bruno Haible  <bruno@clisp.org>
12058
12059         sys_socket, netdb: Document problem with socklen_t.
12060         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12061         platforms.
12062         * doc/posix-headers/netdb.texi: Likewise.
12063
12064 2011-03-18  Eric Blake  <eblake@redhat.com>
12065
12066         maint.mk: let po check work in VPATH build
12067         * top/maint.mk (po_file): Allow cfg.mk override.
12068         (sc_po_check): Allow VPATH use.
12069         Reported by Jiri Denemark.
12070
12071 2011-03-16  Jim Meyering  <meyering@redhat.com>
12072
12073         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12074         Before, you would have had to create one .x-sc_ file per rule in order
12075         to exempt offending files.  Now, you may instead use a Make variable --
12076         usually defined in cfg.mk -- whose name identifies the affected rule.
12077         * top/maint.mk (_sc_excl): Define.
12078         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12079         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12080
12081 2011-03-13  Bruno Haible  <bruno@clisp.org>
12082
12083         ignore-value tests: Avoid warnings.
12084         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12085         empty for gcc < 3.4.
12086
12087 2011-03-13  Bruno Haible  <bruno@clisp.org>
12088
12089         passfd: Fix link error on Solaris.
12090         * modules/passfd (Description): Correct.
12091         (Depends-on): Add socketlib.
12092         (Link): New section.
12093         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12094
12095 2011-03-13  Bruno Haible  <bruno@clisp.org>
12096
12097         passfd: Fix link error on AIX 5.2.
12098         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12099
12100 2011-03-13  Bruno Haible  <bruno@clisp.org>
12101
12102         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12103         * lib/sys_socket.in.h: Include <stddef.h>.
12104         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12105         CMSG_FIRSTHDR. Remove unused variable.
12106
12107 2011-03-13  Bruno Haible  <bruno@clisp.org>
12108
12109         passfd: Fix compilation error on OpenBSD.
12110         * lib/passfd.c: Include <sys/uio.h>.
12111
12112 2011-03-13  Bruno Haible  <bruno@clisp.org>
12113
12114         passfd test: Fix warnings.
12115         * tests/test-passfd.c: Include <sys/wait.h>.
12116         (main): Fix typo.
12117
12118 2011-03-13  Bruno Haible  <bruno@clisp.org>
12119
12120         passfd module, part 4, tweaks.
12121         * tests/test-passfd.c: Reorder includes.
12122         (main): Fix perror and printf calls.
12123
12124 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12125
12126         passfd module, part 4.
12127         * modules/passfd-tests: New file.
12128         * tests/test-passfd.c: New file.
12129
12130 2011-03-13  Jim Meyering  <meyering@redhat.com>
12131
12132         Makefile: rely on GNU make; derive syntax-check rule names
12133         Rather than requiring that each sc_ rule be listed as a dependent
12134         of "check", use features of GNU make to derive the list.
12135         * Makefile (syntax-check-rules): Define.
12136         (check): Depend on the new variable, not the hard-coded list.
12137
12138 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12139             Bruno Haible  <bruno@clisp.org>
12140
12141         passfd module, part 3.
12142         * lib/passfd.h (recvfd): Add a flags argument.
12143         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12144         (recvfd): Add a flags argument.
12145         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12146         exists.
12147         * modules/passfd (Depends-on): Add cloexec.
12148         Suggested by Eric Blake.
12149
12150 2011-03-13  Bruno Haible  <bruno@clisp.org>
12151
12152         passfd module, part 2, tweaks.
12153         * modules/passfd (Files): Reorder.
12154         (Depends-on): Remove errno.
12155         (Include): Remove <sys/socket.h>, <sys/un.h>.
12156         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12157         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12158         specification header. Include <sys/socket.h> always. Don't include
12159         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12160         (sendfd): Clarify that it sets errno when it fails.
12161         (recvfd): Fix specification.
12162
12163 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12164
12165         passfd module, part 2.
12166         * modules/passfd: New file.
12167         * lib/passfd.h: New file.
12168         * lib/passfd.c: New file.
12169
12170 2011-03-12  Bruno Haible  <bruno@clisp.org>
12171
12172         wcswidth, mbswidth: Avoid integer overflow.
12173         * lib/wcswidth.c: Include <limits.h>.
12174         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12175         * lib/mbswidth.c: Include <limits.h>.
12176         (mbsnwidth): Avoid 'int' overflow.
12177         Reported by Jim Meyering.
12178
12179 2011-03-12  Bruno Haible  <bruno@clisp.org>
12180
12181         futimens, utimensat: Avoid endless recursion on Solaris 10.
12182         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12183         Solaris.
12184         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12185         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12186
12187 2011-03-11  Jim Meyering  <meyering@redhat.com>
12188
12189         maint.mk: relax a regexp to accommodate other formatting styles
12190         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12191         between "ngettext" and the following "(".
12192
12193 2011-03-11  Pádraig Brady <P@draigBrady.com>
12194
12195         maint.mk: suppress a false positive warning
12196         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12197         diagnostics are marked with ngettext.
12198
12199 2011-03-10  Eric Blake  <eblake@redhat.com>
12200
12201         wchar: add explicit dependencies, for Tru64
12202         * modules/mbmemcasecoll (Depends-on): Add wchar.
12203         * modules/mbtowc (Depends-on): Likewise.
12204         * modules/vasnprintf (Depends-on): Likewise.
12205         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12206         * modules/wctomb (Depends-on): Likewise.
12207         Reported by Peter O'Gorman.
12208
12209 2011-03-08  Bruno Haible  <bruno@clisp.org>
12210
12211         passfd module, part 1, tweaks.
12212         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12213         Improve indentation. Improve AC_MSG_CHECKING messages.
12214         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12215         gl_SOCKET_FAMILIES.
12216
12217 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12218
12219         passfd module, part 1.
12220         * m4/afunix.m4: New file.
12221         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12222         sockets.
12223
12224 2011-03-08  Bruno Haible  <bruno@clisp.org>
12225
12226         regex-quote: New API.
12227         * lib/regex-quote.h: Include <stdbool.h>.
12228         (struct regex_quote_spec): New type.
12229         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12230         New declarations.
12231         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12232         'const struct regex_quote_spec *' argument.
12233         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12234         (pcre_special): New constant.
12235         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12236         New functions.
12237         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12238         'const struct regex_quote_spec *' argument.
12239         * modules/regex-quote (Depends-on): Add stdbool.
12240         * tests/test-regex-quote.c (check): Update for new API. Add test for
12241         anchored results.
12242         * NEWS: Mention the API change.
12243         Reported by Reuben Thomas and Eric Blake.
12244
12245 2011-03-06  Bruno Haible  <bruno@clisp.org>
12246
12247         regex-quote: Fix creation of POSIX extended regular expressions.
12248         * lib/regex-quote.c (ere_special): Add grouping and alternation
12249         operators.
12250
12251 2011-03-05  Bruno Haible  <bruno@clisp.org>
12252
12253         doc: Improve doc regarding autopoint vs. gnulib.
12254         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12255         disable autopoint while running autoreconf.
12256         Suggested by Ralf Wildenhues.
12257
12258 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12259
12260         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12261         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12262
12263 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12264
12265         parse-duration: remove xalloc.h dependency
12266         * lib/parse-duration.c (parse_period): handle NULL return from
12267         strdup instead of calling xstrdup().
12268         * modules/parse-duration: remove "xalloc" dependency
12269
12270 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12271
12272         bootstrap: honor m4_base when running aclocal
12273         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12274
12275 2011-03-02  Jim Meyering  <meyering@redhat.com>
12276
12277         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12278         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12279         on request from Matt Booth.
12280
12281 2011-03-01  Eric Blake  <eblake@redhat.com>
12282
12283         test-link: work on Hurd
12284         * tests/test-link.h (test_link): Hurd rejects linking directories
12285         with EISDIR instead of the POSIX-mandated EPERM.
12286
12287 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12288
12289         stdio: simplify by moving files to printf-posix, sigpipe
12290         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12291         since this symbol is needed only if printf is replaced.
12292         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12293         Require gl_ASM_SYMBOL_PREFIX.
12294         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12295         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12296         (Depends-on): Add 'raise'.
12297         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12298         * modules/stdio (Files): Remove lib/stdio-write.c,
12299         m4/asm-underscore.m4.
12300         (Depends-on): Remove 'raise'.
12301
12302         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12303         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12304         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12305         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12306
12307 2011-02-28  Bruno Haible  <bruno@clisp.org>
12308
12309         localcharset: Assume ANSI C behaviour of free().
12310         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12311         calling free().
12312         Suggested by Simon Josefsson <simon@josefsson.org>.
12313
12314 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12315             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12316             Bruno Haible  <bruno@clisp.org>  (tiny change)
12317
12318         On Cygwin, use /proc file system instead of win32 API.
12319         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12320         Win32 file names.
12321         (DllMain): Simplify by removing Cygwin specific code.
12322         (find_shared_library_fullname): Use Linux specific implementation also
12323         for Cygwin.
12324         (get_shared_library_fullname): Update accordingly.
12325         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12326         Win32 file names.
12327         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12328         Cygwin specific code.
12329
12330 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12331             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12332
12333         Fix OpenMP flag detection for various Fortran compilers.
12334         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12335         OpenMP-conditional compilation construct, to force compile
12336         failure with missing OpenMP flag.
12337         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12338
12339 2011-02-25  Eric Blake  <eblake@redhat.com>
12340
12341         strstr: expand test coverage
12342         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12343         compilation.
12344         * tests/test-memmem.c (main): Duplicate tests.
12345         * tests/test-strcasestr.c (main): Likewise.
12346         * tests/test-c-strcasestr.c (main): Likewise.
12347
12348 2011-02-25  Jim Meyering  <meyering@redhat.com>
12349
12350         maint.mk: detect missing-NL-at-EOF, too
12351         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12352         it also detects when a file lacks a newline at EOF.
12353         (require_exactly_one_NL_at_EOF_): Renamed from
12354         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12355         since people may well have .x-sc_... file names tied to the
12356         existing name.  Suggested by Eric Blake.
12357
12358 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12359
12360         dirname: move m4/dos.m4 functionality into lib/dosname.h
12361
12362         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12363         extracts symbols from it, puts them into config.h; but it's much
12364         easier to use the symbols directly.  filename.h already does this,
12365         but it disagrees with dos.m4 in some respects.  This patch
12366         introduces a different include file dosname.h that packages up
12367         dos.m4, and then later we can work on merging filename.h and
12368         dosname.h.  Applications that need only the easy-to-configure
12369         symbols should consider including dosname.h rather than dirname.h.
12370         * NEWS: Mention incompatible changes.
12371         * m4/dos.m4: Remove.
12372         * lib/dosname.h, modules/dosname: New files.
12373         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12374         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12375         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12376         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12377         Include dosname.h, not dirname.h.
12378         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12379         Include dosname.h, for definitions of symbols like ISSLASH
12380         that used to be in config.h.
12381         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12382         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12383         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12384         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12385         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12386         * modules/rmdir (Files): Likewise.
12387         * modules/stat (Files): Likewise.
12388         * modules/unlink (Files): Likewise.
12389         * modules/dirname-lgpl (Depends-on): Add dosname.
12390         * modules/lstat (Depends-on): Likewise.
12391         * modules/openat (Depends-on): Likewise.
12392         * modules/rmdir (Depends-on): Likewise.
12393         * modules/savewd (Depends-on): Likewise.
12394         * modules/stat (Depends-on): Likewise.
12395         * modules/unlink (Depends-on): Likewise.
12396         * modules/openat (Depends-on): Remove dirname-lgpl.
12397         * modules/savewd (Depends-on): Likewise.
12398         * tests/test-dirname.c: Do not use removed symbols like
12399         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12400         the remaining symbols, e.g., ISSLASH ('\\').
12401
12402 2011-02-25  Eric Blake  <eblake@redhat.com>
12403
12404         strstr: revert patches that introduced bug and pessimization
12405         * lib/str-two-way.h: Add another reference.
12406         (two_way_short_needle, two_way_long_needle): Revert changes from
12407         2011-02-24; they pessimize search speed.
12408         (critical_factorization): Partially revert changes from
12409         2010-06-22; they violate the requirement that the left half of the
12410         needle be smaller than the period of the needle.
12411
12412 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12413
12414         filenamecat: remove unnecessary dependency on dirname-lgpl
12415         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12416         is no direct dependency, just an indirect one via filenamecat-lgpl.
12417
12418         remove: remove unnecessary use of m4/dos.m4
12419         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12420         * modules/remove (FILES): Remove m4/dos.m4.
12421
12422         * lib/openat-proc.c: Don't include dirname.h; not needed.
12423
12424         backupfile: remove unnecessary use of m4/dos.m4
12425         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12426         of its symbols are used by the backupfile code.  backupfile.c does
12427         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12428         for the rare case of programs that want all their backup file
12429         names to live within 8+3 limits, and dos.m4 doesn't address that.
12430         * modules/backupfile (Files): Remove m4/dos.m4.
12431
12432 2011-02-24  Jim Meyering  <meyering@redhat.com>
12433
12434         strstr: fix a bug whereby strstr would mistakenly return NULL
12435         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12436         in period calculation.
12437         (two_way_long_needle): Likewise.
12438         The original problem was reported by Mike Stump in
12439         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12440         Ralf Wildenhues provided the short needle and haystack.
12441         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12442         Add a more involved test to trigger the bug in two_way_long_needle.
12443
12444 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12445
12446         gnulib-tool: remove use of bold display in help screen
12447         * gnulib-tool (func_usage): Do not use bold display anymore in the
12448         help screen.  That was just meant to be a temporary emphasis for a
12449         backward-incompatible change.
12450
12451 2011-02-23  Bruno Haible  <bruno@clisp.org>
12452
12453         Fix misindentation of preprocessor directives.
12454         * lib/argp-namefrob.h: Reindent preprocessor directives.
12455         * lib/getopt_int.h (struct _getopt_data): Likewise.
12456         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12457         * lib/vasnprintf.c (decode_long_double): Likewise.
12458         * tests/test-argmatch.c: Insert blank lines, for clarity.
12459         * tests/test-exclude.c: Likewise.
12460
12461 2011-02-22  Bruno Haible  <bruno@clisp.org>
12462
12463         ioctl: Fix for MacOS X in 64-bit mode.
12464         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12465         value.
12466         Suggested by Eric Blake.
12467         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12468
12469 2011-02-22  Jim Meyering  <meyering@redhat.com>
12470
12471         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12472         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12473         in lib/.
12474
12475 2011-02-22  Eric Blake  <eblake@redhat.com>
12476
12477         maint: avoid any CDPATH issue
12478         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12479
12480         maint: adjust cpp indentation for my modules, as well
12481         * Makefile (sc_cpp_indent_check): Add my name.
12482         * lib/fbufmode.c: Filter through cppi.
12483         * lib/fpurge.c: Likewise.
12484         * lib/freadable.c: Likewise.
12485         * lib/freading.c: Likewise.
12486         * lib/fwritable.c: Likewise.
12487         * lib/fwriting.c: Likewise.
12488         * lib/sigaction.c: Likewise.
12489
12490 2011-02-22  Jim Meyering  <meyering@redhat.com>
12491
12492         maint: adjust cpp indentation to reflect nesting depth
12493         I.e., in a block of code that begins with an unnested "#if",
12494         put one space between the "#" in column 1 and following token.
12495         For example,
12496         -#include <sys/vfs.h>
12497         +# include <sys/vfs.h>
12498         Do this only in .c files that are part of a module I maintain.
12499         * lib/linkat.c: Filter through cppi.
12500         * lib/nanosleep.c: Likewise.
12501         * lib/openat.c: Likewise.
12502         * lib/openat-die.c: Likewise.
12503         * lib/dup3.c: Likewise.
12504         * lib/fchownat.c: Likewise.
12505         * lib/flock.c: Likewise.
12506         * lib/fsync.c: Likewise.
12507         * lib/fts.c: Likewise.
12508         * lib/getpass.c: Likewise.
12509         * lib/gettimeofday.c: Likewise.
12510         * lib/userspec.c: Likewise.
12511         * Makefile (sc_cpp_indent_check): New rule, to check this.
12512
12513 2011-02-22  Bruno Haible  <bruno@clisp.org>
12514
12515         New module 'wctomb'.
12516         * lib/stdlib.in.h (wctomb): New declaration.
12517         * lib/wctomb.c: New file.
12518         * lib/wctomb-impl.h: New file.
12519         * m4/wctomb.m4: New file.
12520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12521         REPLACE_WCTOMB.
12522         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12523         REPLACE_WCTOMB.
12524         * modules/wctomb: New file.
12525         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12526         * doc/posix-functions/wctomb.texi: Mention the new module.
12527         * modules/wctob (Depends-on): Add wctomb.
12528
12529 2011-02-22  Bruno Haible  <bruno@clisp.org>
12530
12531         New module 'mbtowc'.
12532         * lib/stdlib.in.h (mbtowc): New declaration.
12533         * lib/mbtowc.c: New file.
12534         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12535         * m4/mbtowc.m4: New file.
12536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12537         REPLACE_MBTOWC.
12538         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12539         REPLACE_MBTOWC.
12540         * modules/mbtowc: New file.
12541         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12542         * doc/posix-functions/mbtowc.texi: Mention the new module.
12543         * modules/btowc (Depends-on): Add mbtowc.
12544
12545 2011-02-22  Bruno Haible  <bruno@clisp.org>
12546
12547         wcrtomb: Add more tests for native Windows platforms.
12548         * tests/test-wcrtomb-w32-1.sh: New file.
12549         * tests/test-wcrtomb-w32-2.sh: New file.
12550         * tests/test-wcrtomb-w32-3.sh: New file.
12551         * tests/test-wcrtomb-w32-4.sh: New file.
12552         * tests/test-wcrtomb-w32-5.sh: New file.
12553         * tests/test-wcrtomb-w32.c: New file.
12554         * modules/wcrtomb-tests (Files): Add them.
12555         (Makefile.am): Arrange to run these tests.
12556         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12557         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12558
12559 2011-02-20  Bruno Haible  <bruno@clisp.org>
12560
12561         wcrtomb: Enhance test.
12562         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12563
12564 2011-02-20  Bruno Haible  <bruno@clisp.org>
12565
12566         mbrtowc: Tiny optimization.
12567         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12568
12569 2011-02-20  Jim Meyering  <meyering@redhat.com>
12570
12571         test-exclude.c: remove unmatched #endif
12572         * tests/test-exclude.c: Remove stray #endif, left over from
12573         the change of a week ago.
12574
12575 2011-02-19  Jim Meyering  <meyering@redhat.com>
12576
12577         git-version-gen: skip "-dirty" check when appropriate
12578         * build-aux/git-version-gen: Don't run any git commands when the
12579         version string comes from .tarball-version.  Prior to this, we
12580         would run git update-index --refresh even from a just-unpacked
12581         tarball directory, and that could affect a .git/ directory in a
12582         parent of the build directory.  Reported by Mike Frysinger.
12583
12584 2011-02-19  Bruno Haible  <bruno@clisp.org>
12585
12586         unictype/property-byname: Reduce the size of the 'data' segment.
12587         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12588
12589 2011-02-19  Bruno Haible  <bruno@clisp.org>
12590
12591         unictype/scripts: Reduce the size of the 'data' segment.
12592         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12593         '%pic'.
12594         * lib/unictype/scripts_byname.gperf: Regenerated.
12595
12596 2011-02-19  Bruno Haible  <bruno@clisp.org>
12597
12598         stdint: Update documentation.
12599         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12600
12601 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12602
12603         stdint: omit redundant check for wchar.h
12604         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12605         always tests whether wchar.h exists, so remove the now-redundant test.
12606
12607 2011-02-18  Bruno Haible  <bruno@clisp.org>
12608
12609         stdint: Cut dependency to module 'wchar'.
12610         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12611         include the necessary prerequisites.
12612         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12613         * modules/stdint (Depends-on): Remove wchar.
12614         (Makefile.am): Substitute HAVE_WCHAR_H.
12615         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12616
12617 2011-02-18  Eric Blake  <eblake@redhat.com>
12618
12619         longlong: skip, rather than fail, on cross-compilation
12620         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12621         when cross-compiling; regression from 2011-02-16.
12622
12623 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12624
12625         * NEWS: Mention 2011-02-08 change to stdlib.
12626
12627 2011-02-17  Bruno Haible  <bruno@clisp.org>
12628
12629         getloadavg: Add comments about platforms.
12630         * m4/getloadavg.m4: Add comment.
12631         * lib/getloadavg.c: Likewise.
12632
12633 2011-02-17  Bruno Haible  <bruno@clisp.org>
12634
12635         getloadavg: Fix link error on Solaris 2.6.
12636         * modules/getloadavg (Link): New section.
12637         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12638         linking test-getloadavg.
12639         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12640         getloadavg.
12641
12642 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12643
12644         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12645         It was 'int', but this doesn't match the IRIX 6.5 manual.
12646         Suggested by Bruno Haible in
12647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12648
12649 2011-02-17  Bruno Haible  <bruno@clisp.org>
12650
12651         havelib: Fix comments.
12652         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12653         change.
12654
12655 2011-02-17  Bruno Haible  <bruno@clisp.org>
12656
12657         havelib: Update config.rpath.
12658         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12659
12660 2011-02-17  Bruno Haible  <bruno@clisp.org>
12661
12662         getloadavg test: Add some plausibility checks.
12663         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12664         is improbable.
12665
12666 2011-02-16  Eric Blake  <eblake@redhat.com>
12667
12668         maintainer-makefile: make syntax-check a no-op from tarballs
12669         * top/maint.mk (no-vc-detected): New rule.
12670         (local-checks-available): Use it to avoid hanging if someone tries
12671         'make syntax-check' from a tarball.  Also append to any non-syntax
12672         checks already defined in cfg.mk.
12673
12674 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12675
12676         longlong: tune, particularly for common case of c99
12677
12678         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12679         or running anything if c99, or if unsigned long long int does not
12680         work.  In either case, we know the answer without further tests.
12681         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12682         it at most once, and use its results for both long long int and
12683         unsigned long long int.  This is more likely to be efficient in
12684         the common case where the program wants to check for both long
12685         long int and unsigned long long int.
12686         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12687         since the answer is already known.
12688
12689 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12690
12691         getloadavg: set errno
12692         * lib/getloadavg.c: Set errno when returning -1.  If no other
12693         error number looks appropriate, set it to ENOSYS if the getloadavg
12694         looks like it can't possibly ever work, ENOTSUP otherwise.
12695         Suggested by Bruno Haible in
12696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12697
12698         getloadavg: trim unused parts and speed up 'configure'
12699         * NEWS: Document this.
12700         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12701         always compiled if getloadavg is absent.
12702         Move test code to ...
12703         * tests/test-getloadavg.c: New file, containing previous
12704         contents of test from lib/getloadavg.c.  It also contains
12705         suggestions by Bruno Haible in
12706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12707         * modules/getloadavg-tests: New file.
12708         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12709         Do tests in the same order as they're needed for getloadavg.c.
12710         Omit setgid-related tests that generate symbols KMEM_GROUP,
12711         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12712         Do only the tests that are needed to see whether the system has
12713         getloadavg, moving the other tests into ...
12714         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12715         NLIST_NAME_UNION; nobody should be using it.  Do not define
12716         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12717         relevant, as the user of this module shouldn't care how getloadavg
12718         is implemented.
12719
12720         getloadavg: omit unused var
12721         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12722
12723 2011-02-15  Jim Meyering  <meyering@redhat.com>
12724
12725         doc: update users.txt
12726         * users.txt: Update iwhd's URL.
12727
12728 2011-02-13  Bruno Haible  <bruno@clisp.org>
12729
12730         Consistent macro naming for macros that use GCC __attribute__.
12731         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12732         _ATTRIBUTE_NONNULL_.
12733         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12734         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12735         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12736         ATTRIBUTE_DEPRECATED.
12737         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12738         ATTRIBUTE_NORETURN.
12739         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12740         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12741         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12742         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12743         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12744         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12745         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12746         ATTRIBUTE_SENTINEL.
12747         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12748         ATTRIBUTE_RETURN_CHECK.
12749         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12750         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12751         ATTRIBUTE_NORETURN.
12752         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12753         Reported by Paul Eggert.
12754
12755 2011-02-13  Bruno Haible  <bruno@clisp.org>
12756
12757         Don't interfere with a program's definition of __attribute__.
12758         * lib/argp.h (__attribute__): Remove definition.
12759         (_GL_ATTRIBUTE_FORMAT): New macro.
12760         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12761         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12762         (_GL_ATTRIBUTE_FORMAT): New macro.
12763         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12764         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12765         GCC 3 or newer.
12766         * lib/error.h (__attribute__): Remove definition.
12767         (_GL_ATTRIBUTE_FORMAT): New macro.
12768         (error, error_at_line): Use it.
12769         * lib/hash.h (__attribute__): Remove definition.
12770         (ATTRIBUTE_WUR): Update definition. Define always.
12771         * lib/openat.h (__attribute__): Remove definition.
12772         (ATTRIBUTE_NORETURN): Update definition. Define always.
12773         * lib/sigpipe-die.h (__attribute__): Remove definition.
12774         (ATTRIBUTE_NORETURN): Update definition. Define always.
12775         * lib/vasnprintf.h (__attribute__): Remove definition.
12776         (_GL_ATTRIBUTE_FORMAT): New macro.
12777         (asnprintf, vasnprintf): Use it.
12778         * lib/xalloc.h (__attribute__): Remove definition.
12779         (ATTRIBUTE_NORETURN): Update definition. Define always.
12780         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12781         * lib/xmemdup0.h (__attribute__): Remove definition.
12782         (ATTRIBUTE_NORETURN): Update definition. Define always.
12783         * lib/xprintf.h (__attribute__): Remove definition.
12784         (_GL_ATTRIBUTE_FORMAT): New macro.
12785         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12786         * lib/xstrtol.h (__attribute__): Remove definition.
12787         (ATTRIBUTE_NORETURN): Update definition. Define always.
12788         * lib/xvasprintf.h (__attribute__): Remove definition.
12789         (_GL_ATTRIBUTE_FORMAT): New macro.
12790         (xasprintf, xvasprintf): Use it.
12791         * tests/test-argmatch.c (__attribute__): Remove definition.
12792         (ATTRIBUTE_NORETURN): Update definition. Define always.
12793         * tests/test-exclude.c (__attribute__): Remove definition.
12794         (ATTRIBUTE_NORETURN): Update definition. Define always.
12795         Reported by Paul Eggert.
12796
12797 2011-02-13  Bruno Haible  <bruno@clisp.org>
12798
12799         mbrtowc: Add more tests for native Windows platforms.
12800         * tests/test-mbrtowc-w32-1.sh: New file.
12801         * tests/test-mbrtowc-w32-2.sh: New file.
12802         * tests/test-mbrtowc-w32-3.sh: New file.
12803         * tests/test-mbrtowc-w32-4.sh: New file.
12804         * tests/test-mbrtowc-w32-5.sh: New file.
12805         * tests/test-mbrtowc-w32.c: New file.
12806         * modules/mbrtowc-tests (Files): Add them.
12807         (Makefile.am): Arrange to run these tests.
12808         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12809         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12810
12811 2011-02-13  Bruno Haible  <bruno@clisp.org>
12812
12813         mbrtowc: Work around native Windows bug.
12814         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12815         guess when no suitable locale for testing was found.
12816         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12817
12818 2011-02-13  Bruno Haible  <bruno@clisp.org>
12819
12820         mbsinit: Work around mingw bug.
12821         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12822         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12823         Windows.
12824         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12825
12826 2011-02-13  Bruno Haible  <bruno@clisp.org>
12827
12828         mbsinit: Don't crash for a NULL argument.
12829         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12830         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12831
12832 2011-02-13  Bruno Haible  <bruno@clisp.org>
12833
12834         Don't interfere with a program's definition of __attribute__.
12835         * lib/stdio.in.h (__attribute__): Remove definition.
12836         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12837         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12838         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12839         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12840         * lib/string.in.h (__attribute__): Remove definition.
12841         Reported by Paul Eggert.
12842
12843 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12844
12845         stdlib: don't get in the way of non-GCC __attribute__
12846         See thread starting at
12847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12848         Revert previous stdlib change, installing the following instead:
12849         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12850         to get in the way of a non-GCC compiler that supports __attribute__.
12851         (_GL_ATTRIBUTE_RETURN): New macro.
12852         (_Exit): Use it instead of __attribute__.
12853
12854 2011-02-12  Bruno Haible  <bruno@clisp.org>
12855
12856         quotearg test: Avoid test failure on mingw.
12857         * tests/test-quotearg.sh: Convert the locale identifier from native
12858         Windows syntax to Unix syntax.
12859
12860 2011-02-12  Bruno Haible  <bruno@clisp.org>
12861
12862         setlocale: Prefer gnulib's override over libintl's override.
12863         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12864         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12865         GNULIB_defined_setlocale is set.
12866
12867 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12868
12869         stdlib: support non-GCC __attribute__
12870
12871         Fix a serious and tricky problem encountered when attempting to
12872         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12873         5.5, but it crashed due to memory corruption on Solaris 10 with
12874         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12875         bits that are otherwise zero.  This tagging is optional inside
12876         Emacs but is preferred and is used when __attribute__ ((__aligned
12877         (8))) works, as it does with both recent-enough GCC and with Sun C
12878         5.11.  However, Sun C 5.11 is not GCC and does not #define
12879         __GNUC__ and __GNUC_MINOR__.
12880
12881         When I added the getloadavg module to Emacs, it brought in
12882         stdlib.in.h, which contained this fragment:
12883
12884            #ifndef __attribute__
12885            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12886            #  define __attribute__(Spec)   /* empty */
12887            # endif
12888            #endif
12889
12890         When files that include <stdlib.h> were compiled with Sun C 5.11,
12891         the above code disabled __attribute__ ((__aligned (8))), which
12892         caused variables to not be properly aligned, which eventually led
12893         to the pointer corruption mentioned above.  (This was a bit hard
12894         to diagnose, unfortunately.)
12895
12896         Several "#define __attribute__(X) /* empty */" code snippets need
12897         to be eradicated from Gnulib to work with non-GCC compilers that
12898         support __attribute__.  The Autoconf way to do this is to test for
12899         each kind of attribute that we want support for, and selectively
12900         enable that in source code.
12901
12902         Fix this problem just for stdlib.h, by adding a test for the
12903         __noreturn__ attribute, and change stdlib.in.h to use that test
12904         when needed.  This technique can be easily generalized to the
12905         other *.in.h files and attributes, and a similar technique can be
12906         used for *.h and *.c files.  This patch is enough to solve the
12907         problem for Emacs + getloadavg, and I thought I'd publish it for
12908         feedback before undertaking further, similar fixes in other
12909         modules.
12910
12911         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12912         because it's not needed for stdlib.h.  It merely substitutes the
12913         value directly into stdlib.h.  We may well need to #define it, or
12914         similar symbols, for other modules, but it's nice to also have an
12915         option to not #define it for applications like Emacs that do not
12916         need it.
12917
12918         * lib/stdlib.in.h (__attribute__): Do not #define.
12919         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12920         be defined only if the _Exit module is also used.
12921         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12923         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12924         platforms.
12925         * modules/_Exit (Files): Add m4/attribute.m4.
12926         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12927         * m4/attribute.m4: New file.
12928
12929 2011-02-12  Bruno Haible  <bruno@clisp.org>
12930
12931         wcsrtombs: Work around bug on native Windows.
12932         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12933         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12934         instead of len.
12935         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12936
12937 2011-02-12  Bruno Haible  <bruno@clisp.org>
12938
12939         mbsrtowcs: Work around bug on native Windows.
12940         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12941         against mingw bug.
12942         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12943
12944 2011-02-12  Bruno Haible  <bruno@clisp.org>
12945
12946         Avoid setlocale bugs in tests.
12947         * modules/btowc (Dependencies): Add setlocale.
12948         * modules/c-strcase (Dependencies): Likewise.
12949         * modules/mbmemcasecmp (Dependencies): Likewise.
12950         * modules/mbmemcasecoll (Dependencies): Likewise.
12951         * modules/mbrtowc (Dependencies): Likewise.
12952         * modules/mbscasecmp (Dependencies): Likewise.
12953         * modules/mbscasestr (Dependencies): Likewise.
12954         * modules/mbschr (Dependencies): Likewise.
12955         * modules/mbscspn (Dependencies): Likewise.
12956         * modules/mbsinit (Dependencies): Likewise.
12957         * modules/mbsncasecmp (Dependencies): Likewise.
12958         * modules/mbsnrtowcs (Dependencies): Likewise.
12959         * modules/mbspbrk (Dependencies): Likewise.
12960         * modules/mbspcasecmp (Dependencies): Likewise.
12961         * modules/mbsrchr (Dependencies): Likewise.
12962         * modules/mbsrtowcs (Dependencies): Likewise.
12963         * modules/mbsspn (Dependencies): Likewise.
12964         * modules/mbsstr (Dependencies): Likewise.
12965         * modules/nl_langinfo (Dependencies): Likewise.
12966         * modules/quotearg (Dependencies): Likewise.
12967         * modules/unicase/locale-language (Dependencies): Likewise.
12968         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12969         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12970         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12971         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12972         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12973         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12974         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12975         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12976         * modules/vasnprintf-posix (Dependencies): Likewise.
12977         * modules/wcrtomb (Dependencies): Likewise.
12978         * modules/wcsnrtombs (Dependencies): Likewise.
12979         * modules/wcsrtombs (Dependencies): Likewise.
12980
12981 2011-02-12  Bruno Haible  <bruno@clisp.org>
12982
12983         setlocale: Workaround native Windows bug.
12984         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12985         succeeds but sets LC_CTYPE to "C", report a failure.
12986         * tests/test-setlocale2.sh: New file.
12987         * tests/test-setlocale2.c: New file.
12988         * modules/setlocale-tests (Files): Add the new files.
12989         (Makefile.am): Enable test-setlocale2.sh test.
12990         * doc/posix-functions/setlocale.texi: Mention workaround.
12991
12992 2011-02-11  Bruno Haible  <bruno@clisp.org>
12993
12994         Tests for module 'setlocale'.
12995         * modules/setlocale-tests: New file.
12996         * tests/test-setlocale1.sh: New file.
12997         * tests/test-setlocale1.c: New file.
12998
12999         New module 'setlocale'.
13000         * lib/locale.in.h (setlocale): New declaration.
13001         * lib/setlocale.c: New file, based on
13002         gettext/gettext-runtime/intl/setlocale.c.
13003         * m4/setlocale.m4: New file.
13004         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13005         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13006         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13007         REPLACE_SETLOCALE.
13008         * modules/setlocale: New file.
13009         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13010         * doc/posix-functions/setlocale.texi: Mention the new module.
13011
13012 2011-02-11  Bruno Haible  <bruno@clisp.org>
13013
13014         Prepare for locale dependent tests on mingw.
13015         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13016         because it has the wrong locale encoding.
13017         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13018         French_France.1252 instead of "fr".
13019         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13020         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13021         because it has the wrong locale encoding.
13022         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13023         native Windows, try Turkish_Turkey.65001.
13024         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13025         Chinese_China.54936.
13026
13027         Prepare for locale dependent tests on mingw.
13028         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13029         differently.
13030         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13031         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13032         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13033         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13034
13035 2011-02-11  Eric Blake  <eblake@redhat.com>
13036
13037         strptime: avoid compiler warnings
13038         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13039         compiler warnings about dead code.
13040         Reported by Daniel P. Berrange.
13041
13042 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13043
13044         doc: update users.txt
13045         * users.txt: Add rcs.
13046
13047 2011-02-10  John W. Eaton  <jwe@gnu.org>
13048
13049         doc: update users.txt
13050         * users.txt: Add octave.
13051
13052 2011-02-10  Jim Meyering  <meyering@redhat.com>
13053
13054         doc: update users.txt
13055         * users.txt: Add iwhd.
13056
13057 2011-02-09  Bruno Haible  <bruno@clisp.org>
13058
13059         gnulib-tool: Make copyright notice adjustment more robust.
13060         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13061         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13062         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13063         License".
13064         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13065
13066 2011-02-06  Bruno Haible  <bruno@clisp.org>
13067
13068         New module 'towctrans'.
13069         * modules/towctrans: New file.
13070         * lib/wctype.in.h (towctrans): New declaration.
13071         * lib/towctrans.c: New file.
13072         * lib/towctrans-impl.h: New file.
13073         * m4/towctrans.m4: New file.
13074         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13075         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13076         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13077         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13078         * doc/posix-functions/towctrans.texi: Mention the new module.
13079
13080 2011-02-06  Bruno Haible  <bruno@clisp.org>
13081
13082         New module 'wctrans'.
13083         * modules/wctrans: New file.
13084         * lib/wctype.in.h (wctrans): New declaration.
13085         * lib/wctrans.c: New file.
13086         * lib/wctrans-impl.h: New file.
13087         * m4/wctrans.m4: New file.
13088         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13089         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13090         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13091         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13092         * doc/posix-functions/wctrans.texi: Mention the new module.
13093
13094 2011-02-06  Bruno Haible  <bruno@clisp.org>
13095
13096         New module 'iswctype'.
13097         * modules/iswctype: New file.
13098         * lib/wctype.in.h (iswctype): New declaration.
13099         * lib/iswctype.c: New file.
13100         * lib/iswctype-impl.h: New file.
13101         * m4/iswctype.m4: New file.
13102         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13103         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13104         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13105         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13106         * doc/posix-functions/iswctype.texi: Mention the new module and the
13107         HP-UX 11.00 problem.
13108
13109 2011-02-06  Bruno Haible  <bruno@clisp.org>
13110
13111         New module 'wctype'.
13112         * modules/wctype: Change to represent the wctype() substitute.
13113         * lib/wctype.in.h (wctype): New declaration.
13114         * lib/wctype.c: New file.
13115         * lib/wctype-impl.h: New file.
13116         * m4/wctype.m4: New file.
13117         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13118         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13119         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13120         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13121         * doc/posix-functions/wctype.texi: Mention the new module and the
13122         HP-UX 11.00 problem.
13123
13124 2011-02-06  Bruno Haible  <bruno@clisp.org>
13125
13126         wctype-h: Ensure wctype_t and wctrans_t are defined.
13127         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13128         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13129         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13130         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13131         HAVE_WCTRANS_T.
13132         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13133
13134 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13135
13136         flock: fix license typo
13137
13138         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13139         omitted.
13140
13141 2011-02-08  Bruno Haible  <bruno@clisp.org>
13142
13143         Split large sed scripts, for HP-UX sed.
13144         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13145         to avoid HP-UX limit of 99 commands, in the near future.
13146         * modules/stdlib (Makefile.am): Likewise.
13147         * modules/unistd (Makefile.am): Likewise.
13148         * modules/wchar (Makefile.am): Likewise.
13149         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13150         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13151         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13152
13153 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13154             Bruno Haible  <bruno@clisp.org>
13155
13156         stdlib: improve random_r modularization
13157         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13158         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13159         you also need the random_r module to get this material right.
13160         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13161         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13162         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13163
13164 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13165
13166         stdlib: don't depend on stdint
13167         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13168         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13169         be independent of whether stdint.h is needed.
13170         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13171         here, instead of ...
13172         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13173         struct random_data should be using the random_r module, not just
13174         the stdlib module (which wouldn't make sense: what package needs
13175         just struct random_data without also needing random_r?).
13176         * modules/stdlib (Depends-on): Remove stdint.
13177
13178         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13179         See the thread rooted at
13180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13181         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13182         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13183         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13184         __VMS)); previously it was always included (via fcntl--.h).
13185         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13186         hand; this is good enough for load averages.  Also, do not use
13187         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13188         flags directly if available and don't bother otherwise.  (Packages
13189         that need the extra reliability should use the modules that define
13190         these flags on older platforms that lack them.)
13191         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13192         fcntl-safer.
13193
13194 2011-02-08  Jim Meyering  <meyering@redhat.com>
13195
13196         di-set.h, ino-map.h: add multiple-inclusion guard
13197         Technically, the guard is required only for ino-map.h, due to its
13198         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13199         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13200         * lib/ino-map.h: Likewise.
13201
13202 2011-02-06  Bruno Haible  <bruno@clisp.org>
13203
13204         iswblank: Ensure declaration on glibc systems.
13205         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13206         * modules/iswblank (Dependencies): Add 'extensions'.
13207         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13208
13209 2011-02-06  Bruno Haible  <bruno@clisp.org>
13210
13211         New module 'iswblank'.
13212         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13213         * modules/iswblank: New file.
13214         * modules/wctype-h (Files): Remove lib/iswblank.c.
13215         (Makefile.am): Substitute GNULIB_ISWBLANK.
13216         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13217         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13218         (gl_WCTYPE_H_DEFAULTS): New macro.
13219         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13220         * modules/iswblank-tests: New file.
13221         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13222         * tests/test-wctype-h.c (main): Remove iswblank tests.
13223         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13224         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13225         of 'wctype-h'.
13226         * NEWS: Mention the change.
13227         * modules/mbchar (Depends-on): Add iswblank.
13228
13229 2011-02-08  Bruno Haible  <bruno@clisp.org>
13230
13231         di-set tests: Refactor.
13232         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13233         unnecessary includes.
13234         (ASSERT): Remove macro.
13235         (main): Make C90 compliant by avoiding variable declaration after
13236         statement.
13237         * modules/di-set-tests (Files): Add tests/macros.h.
13238
13239 2011-02-08  Bruno Haible  <bruno@clisp.org>
13240
13241         ino-map tests: Refactor.
13242         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13243         unnecessary includes.
13244         (ASSERT): Remove macro.
13245         (main): Make C90 compliant by avoiding variable declaration after
13246         statement.
13247         * modules/ino-map-tests (Files): Add tests/macros.h.
13248
13249 2011-02-08  Jim Meyering  <meyering@redhat.com>
13250
13251         di-set: add "const" to a cast
13252         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13253         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13254
13255 2011-02-06  Bruno Haible  <bruno@clisp.org>
13256
13257         Rename module 'wctype' to 'wctype-h'.
13258         * modules/wctype-h: Renamed from modules/wctype.
13259         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13260         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13261         (Files, Depends-on, Makefile.am): Update.
13262         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13263         (Files, Makefile.am): Update.
13264         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13265         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13266         * doc/posix-headers/wctype.texi: Update.
13267         * doc/posix-functions/iswalnum.texi: Update.
13268         * doc/posix-functions/iswalpha.texi: Update.
13269         * doc/posix-functions/iswblank.texi: Update.
13270         * doc/posix-functions/iswcntrl.texi: Update.
13271         * doc/posix-functions/iswdigit.texi: Update.
13272         * doc/posix-functions/iswgraph.texi: Update.
13273         * doc/posix-functions/iswlower.texi: Update.
13274         * doc/posix-functions/iswprint.texi: Update.
13275         * doc/posix-functions/iswpunct.texi: Update.
13276         * doc/posix-functions/iswspace.texi: Update.
13277         * doc/posix-functions/iswupper.texi: Update.
13278         * doc/posix-functions/iswxdigit.texi: Update.
13279         * doc/posix-functions/towlower.texi: Update.
13280         * doc/posix-functions/towupper.texi: Update.
13281         * NEWS: Mention the change.
13282         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13283         * modules/mbchar (Dependencies): Likewise.
13284         * modules/mbswidth (Dependencies): Likewise.
13285         * modules/quotearg (Dependencies): Likewise.
13286         * modules/regex (Dependencies): Likewise.
13287         * modules/wcscasecmp (Dependencies): Likewise.
13288         * modules/wcsncasecmp (Dependencies): Likewise.
13289         * modules/wcwidth (Dependencies): Likewise.
13290
13291 2011-02-06  Bruno Haible  <bruno@clisp.org>
13292
13293         New module 'wcswidth'.
13294         * modules/wcswidth: New file.
13295         * lib/wchar.in.h (wcswidth): New declaration.
13296         * lib/wcswidth.c: New file.
13297         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13298         * m4/wcswidth.m4: New file.
13299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13301         REPLACE_WCSWIDTH.
13302         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13303         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13304         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13305         * doc/posix-functions/wcswidth.texi: Mention the new module.
13306
13307 2011-02-06  Bruno Haible  <bruno@clisp.org>
13308
13309         New module 'wcstok'.
13310         * modules/wcstok: New file.
13311         * lib/wchar.in.h (wcstok): New declaration.
13312         * lib/wcstok.c: New file.
13313         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13314         * m4/wcstok.m4: New file.
13315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13318         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13319         * doc/posix-functions/wcstok.texi: Mention the new module.
13320
13321 2011-02-06  Bruno Haible  <bruno@clisp.org>
13322
13323         New module 'wcsstr'.
13324         * modules/wcsstr: New file.
13325         * lib/wchar.in.h (wcsstr): New declaration.
13326         * lib/wcsstr.c: New file.
13327         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13328         * m4/wcsstr.m4: New file.
13329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13332         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13333         * doc/posix-functions/wcsstr.texi: Mention the new module.
13334
13335 2011-02-06  Bruno Haible  <bruno@clisp.org>
13336
13337         New module 'wcspbrk'.
13338         * modules/wcspbrk: New file.
13339         * lib/wchar.in.h (wcspbrk): New declaration.
13340         * lib/wcspbrk.c: New file.
13341         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13342         * m4/wcspbrk.m4: New file.
13343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13346         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13347         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13348
13349 2011-02-06  Bruno Haible  <bruno@clisp.org>
13350
13351         New module 'wcsspn'.
13352         * modules/wcsspn: New file.
13353         * lib/wchar.in.h (wcsspn): New declaration.
13354         * lib/wcsspn.c: New file.
13355         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13356         * m4/wcsspn.m4: New file.
13357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13360         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13361         * doc/posix-functions/wcsspn.texi: Mention the new module.
13362
13363 2011-02-06  Bruno Haible  <bruno@clisp.org>
13364
13365         New module 'wcscspn'.
13366         * modules/wcscspn: New file.
13367         * lib/wchar.in.h (wcscspn): New declaration.
13368         * lib/wcscspn.c: New file.
13369         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13370         * m4/wcscspn.m4: New file.
13371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13374         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13375         * doc/posix-functions/wcscspn.texi: Mention the new module.
13376
13377 2011-02-06  Bruno Haible  <bruno@clisp.org>
13378
13379         New module 'wcsrchr'.
13380         * modules/wcsrchr: New file.
13381         * lib/wchar.in.h (wcsrchr): New declaration.
13382         * lib/wcsrchr.c: New file.
13383         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13384         * m4/wcsrchr.m4: New file.
13385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13388         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13389         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13390
13391 2011-02-06  Bruno Haible  <bruno@clisp.org>
13392
13393         New module 'wcschr'.
13394         * modules/wcschr: New file.
13395         * lib/wchar.in.h (wcschr): New declaration.
13396         * lib/wcschr.c: New file.
13397         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13398         * m4/wcschr.m4: New file.
13399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13402         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13403         * doc/posix-functions/wcschr.texi: Mention the new module.
13404
13405 2011-02-06  Bruno Haible  <bruno@clisp.org>
13406
13407         New module 'wcsdup'.
13408         * modules/wcsdup: New file.
13409         * lib/wchar.in.h (wcsdup): New declaration.
13410         * lib/wcsdup.c: New file.
13411         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13412         * m4/wcsdup.m4: New file.
13413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13416         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13417         * doc/posix-functions/wcsdup.texi: Mention the new module.
13418
13419 2011-02-06  Bruno Haible  <bruno@clisp.org>
13420
13421         New module 'wcsxfrm'.
13422         * modules/wcsxfrm: New file.
13423         * lib/wchar.in.h (wcsxfrm): New declaration.
13424         * lib/wcsxfrm.c: New file.
13425         * lib/wcsxfrm-impl.h: New file.
13426         * m4/wcsxfrm.m4: New file.
13427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13430         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13431         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13432
13433 2011-02-06  Bruno Haible  <bruno@clisp.org>
13434
13435         New module 'wcscoll'.
13436         * modules/wcscoll: New file.
13437         * lib/wchar.in.h (wcscoll): New declaration.
13438         * lib/wcscoll.c: New file.
13439         * lib/wcscoll-impl.h: New file.
13440         * m4/wcscoll.m4: New file.
13441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13444         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13445         * doc/posix-functions/wcscoll.texi: Mention the new module.
13446
13447 2011-02-06  Bruno Haible  <bruno@clisp.org>
13448
13449         New module 'wcsncasecmp'.
13450         * modules/wcsncasecmp: New file.
13451         * lib/wchar.in.h (wcsncasecmp): New declaration.
13452         * lib/wcsncasecmp.c: New file.
13453         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13454         * m4/wcsncasecmp.m4: New file.
13455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13458         HAVE_WCSNCASECMP.
13459         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13460         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13461
13462 2011-02-06  Bruno Haible  <bruno@clisp.org>
13463
13464         New module 'wcscasecmp'.
13465         * modules/wcscasecmp: New file.
13466         * lib/wchar.in.h (wcscasecmp): New declaration.
13467         * lib/wcscasecmp.c: New file.
13468         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13469         * m4/wcscasecmp.m4: New file.
13470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13473         HAVE_WCSCASECMP.
13474         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13475         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13476
13477 2011-02-05  Bruno Haible  <bruno@clisp.org>
13478
13479         New module 'wcsncmp'.
13480         * modules/wcsncmp: New file.
13481         * lib/wchar.in.h (wcsncmp): New declaration.
13482         * lib/wcsncmp.c: New file.
13483         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13484         * m4/wcsncmp.m4: New file.
13485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13488         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13489         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13490
13491 2011-02-05  Bruno Haible  <bruno@clisp.org>
13492
13493         New module 'wcscmp'.
13494         * modules/wcscmp: New file.
13495         * lib/wchar.in.h (wcscmp): New declaration.
13496         * lib/wcscmp.c: New file.
13497         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13498         * m4/wcscmp.m4: New file.
13499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13502         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13503         * doc/posix-functions/wcscmp.texi: Mention the new module.
13504
13505 2011-02-05  Bruno Haible  <bruno@clisp.org>
13506
13507         New module 'wcsncat'.
13508         * modules/wcsncat: New file.
13509         * lib/wchar.in.h (wcsncat): New declaration.
13510         * lib/wcsncat.c: New file.
13511         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13512         * m4/wcsncat.m4: New file.
13513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13516         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13517         * doc/posix-functions/wcsncat.texi: Mention the new module.
13518
13519 2011-02-05  Bruno Haible  <bruno@clisp.org>
13520
13521         New module 'wcscat'.
13522         * modules/wcscat: New file.
13523         * lib/wchar.in.h (wcscat): New declaration.
13524         * lib/wcscat.c: New file.
13525         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13526         * m4/wcscat.m4: New file.
13527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13530         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13531         * doc/posix-functions/wcscat.texi: Mention the new module.
13532
13533 2011-02-05  Bruno Haible  <bruno@clisp.org>
13534
13535         New module 'wcpncpy'.
13536         * modules/wcpncpy: New file.
13537         * lib/wchar.in.h (wcpncpy): New declaration.
13538         * lib/wcpncpy.c: New file.
13539         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13540         * m4/wcpncpy.m4: New file.
13541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13543         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13544         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13545         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13546
13547 2011-02-05  Bruno Haible  <bruno@clisp.org>
13548
13549         New module 'wcsncpy'.
13550         * modules/wcsncpy: New file.
13551         * lib/wchar.in.h (wcsncpy): New declaration.
13552         * lib/wcsncpy.c: New file.
13553         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13554         * m4/wcsncpy.m4: New file.
13555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13558         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13559         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13560
13561 2011-02-05  Bruno Haible  <bruno@clisp.org>
13562
13563         New module 'wcpcpy'.
13564         * modules/wcpcpy: New file.
13565         * lib/wchar.in.h (wcpcpy): New declaration.
13566         * lib/wcpcpy.c: New file.
13567         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13568         * m4/wcpcpy.m4: New file.
13569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13571         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13572         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13573         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13574
13575 2011-02-05  Bruno Haible  <bruno@clisp.org>
13576
13577         New module 'wcscpy'.
13578         * modules/wcscpy: New file.
13579         * lib/wchar.in.h (wcscpy): New declaration.
13580         * lib/wcscpy.c: New file.
13581         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13582         * m4/wcscpy.m4: New file.
13583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13586         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13587         * doc/posix-functions/wcscpy.texi: Mention the new module.
13588
13589 2011-02-05  Bruno Haible  <bruno@clisp.org>
13590
13591         New module 'wcsnlen'.
13592         * modules/wcsnlen: New file.
13593         * lib/wchar.in.h (wcsnlen): New declaration.
13594         * lib/wcsnlen.c: New file.
13595         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13596         * m4/wcsnlen.m4: New file.
13597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13600         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13601         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13602
13603 2011-02-05  Bruno Haible  <bruno@clisp.org>
13604
13605         New module 'wcslen'.
13606         * modules/wcslen: New file.
13607         * lib/wchar.in.h (wcslen): New declaration.
13608         * lib/wcslen.c: New file.
13609         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13610         * m4/wcslen.m4: New file.
13611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13614         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13615         * doc/posix-functions/wcslen.texi: Mention the new module.
13616
13617 2011-02-05  Bruno Haible  <bruno@clisp.org>
13618
13619         New module 'wmemset'.
13620         * modules/wmemset: New file.
13621         * lib/wchar.in.h (wmemset): New declaration.
13622         * lib/wmemset.c: New file.
13623         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13624         * m4/wmemset.m4: New file.
13625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13627         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13628         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13629         * doc/posix-functions/wmemset.texi: Mention the new module.
13630
13631 2011-02-05  Bruno Haible  <bruno@clisp.org>
13632
13633         New module 'wmemmove'.
13634         * modules/wmemmove: New file.
13635         * lib/wchar.in.h (wmemmove): New declaration.
13636         * lib/wmemmove.c: New file.
13637         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13638         * m4/wmemmove.m4: New file.
13639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13641         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13642         HAVE_WMEMMOVE.
13643         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13644         * doc/posix-functions/wmemmove.texi: Mention the new module.
13645
13646 2011-02-05  Bruno Haible  <bruno@clisp.org>
13647
13648         New module 'wmemcpy'.
13649         * modules/wmemcpy: New file.
13650         * lib/wchar.in.h (wmemcpy): New declaration.
13651         * lib/wmemcpy.c: New file.
13652         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13653         * m4/wmemcpy.m4: New file.
13654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13656         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13657         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13658         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13659
13660 2011-02-05  Bruno Haible  <bruno@clisp.org>
13661
13662         New module 'wmemcmp'.
13663         * modules/wmemcmp: New file.
13664         * lib/wchar.in.h (wmemcmp): New declaration.
13665         * lib/wmemcmp.c: New file.
13666         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13667         * m4/wmemcmp.m4: New file.
13668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13670         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13671         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13672         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13673
13674 2011-02-07  Jim Meyering  <meyering@redhat.com>
13675
13676         di-set, ino-map: new modules, from coreutils
13677         * lib/di-set.c: New file.
13678         * lib/di-set.h: Likewise.
13679         * lib/ino-map.c: Likewise.
13680         * lib/ino-map.h: Likewise.
13681         * modules/di-set: Likewise.
13682         * modules/di-set-tests: Likewise.
13683         * modules/ino-map: Likewise.
13684         * modules/ino-map-tests: Likewise.
13685         * tests/test-di-set.c: Likewise.
13686         * tests/test-ino-map.c: Likewise.
13687
13688 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13689
13690         getloadavg: merge minor changes from Emacs
13691
13692         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13693         (getloadavg): Use memset, not bzero.
13694
13695         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13696         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13697         clash (bug#86).
13698
13699 2010-11-14  Bruno Haible  <bruno@clisp.org>
13700
13701         Allow multiple gnulib generated replacements to coexist.
13702         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13703         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13704         * lib/langinfo.in.h (nl_item): Likewise.
13705         * lib/math.in.h (_NaN, NAN): Likewise.
13706         * lib/netdb.in.h (struct addrinfo): Likewise.
13707         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13708         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13709         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13710         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13711         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13712         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13713         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13714         pthread_mutexattr_init, pthread_mutexattr_settype,
13715         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13716         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13717         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13718         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13719         * lib/sched.in.h (struct sched_param): Likewise.
13720         * lib/se-selinux.in.h (security_class_t, security_context_t,
13721         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13722         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13723         lsetfilecon, fsetfilecon, security_check_context,
13724         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13725         Likewise.
13726         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13727         Likewise.
13728         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13729         _gl_function_taking_int_returning_void_t, union sigval,
13730         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13731         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13732         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13733         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13734         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13735         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13736         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13737         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13738         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13739         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13740         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13741         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13742         socklen_t, rpl_fd_isset): Likewise.
13743         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13744         * lib/sys_time.in.h (struct timeval): Likewise.
13745         * lib/sys_times.in.h (struct tms): Likewise.
13746         * lib/sys_utsname.in.h (struct utsname):
13747         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13748         * lib/unistd.in.h (getpagesize): Likewise.
13749         * lib/wchar.in.h (mbstate_t): Likewise.
13750         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13751         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13752         towlower, towupper): Likewise.
13753         Reported by Sam Steingold <sds@gnu.org>.
13754
13755 2011-02-05  Eric Blake  <eblake@redhat.com>
13756
13757         unsetenv: work around Haiku issues
13758         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13759         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13760
13761 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13762
13763         libposix: avoid calling error() within libposix
13764         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13765         is defined.
13766
13767 2011-02-05  Eric Blake  <eblake@redhat.com>
13768
13769         strerror_r-posix: port to cygwin
13770         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13771         implementation.
13772         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13773         * tests/test-strerror_r.c (main): Fix test.
13774         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13775         issue.
13776
13777 2011-02-05  Bruno Haible  <bruno@clisp.org>
13778
13779         New module 'wmemchr'.
13780         * modules/wmemchr: New file.
13781         * lib/wchar.in.h (wmemchr): New declaration.
13782         * lib/wmemchr.c: New file.
13783         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13784         * m4/wmemchr.m4: New file.
13785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13787         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13788         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13789         * doc/posix-functions/wmemchr.texi: Mention the new module.
13790
13791 2011-02-04  Eric Blake  <eblake@redhat.com>
13792
13793         fdopendir: detect FreeBSD bug
13794         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13795         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13796
13797 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13798
13799         stdbool: do not define HAVE_STDBOOL_H
13800         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13801         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13802         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13803         imported from the latest Autoconf git.  It was motivated by Emacs,
13804         which uses gnulib but does not need HAVE_STDBOOL_H.
13805
13806 2011-02-04  Bruno Haible  <bruno@clisp.org>
13807
13808         wcsnrtombs: Prepare for new module wwcsnrtombs.
13809         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13810         * lib/wcsnrtombs.c: Include it.
13811         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13812
13813         wcsrtombs: Prepare for new module wwcsrtombs.
13814         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13815         * lib/wcsrtombs.c: Include it.
13816         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13817
13818         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13819         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13820         * lib/mbsnrtowcs.c: Include it.
13821         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13822
13823         mbsrtowcs: Prepare for new module mbsrtowwcs.
13824         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13825         * lib/mbsrtowcs.c: Include it.
13826         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13827
13828 2011-02-04  Bruno Haible  <bruno@clisp.org>
13829
13830         vasnprintf: Reduce use of malloc for small format strings.
13831         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13832         (arguments): Add room for the first 7 arguments.
13833         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13834         (char_directives, u8_directives, u16_directives, u32_directives): Add
13835         room for the first 7 directives.
13836         * lib/printf-parse.c: Include <string.h>.
13837         (PRINTF_PARSE): Change memory handling code so that it uses the first
13838         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13839         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13840         Reported by Pádraig Brady <P@draigbrady.com>.
13841
13842 2011-01-31  Eric Blake  <eblake@redhat.com>
13843
13844         dup2: work around Haiku bug
13845         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13846         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13847         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13848         * tests/test-dup2.c (main): Enhance test.
13849
13850 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13851
13852         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13853         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13854         declared by eglibc 2.11.2.
13855         * lib/stdio.in.h: Likewise.
13856
13857 2011-01-31  Eric Blake  <eblake@redhat.com>
13858
13859         ignore-value: add missing test dependency
13860         * tests/test-ignore-value.c: Revert previous change; stdio.h
13861         provides off_t.
13862         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13863
13864 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13865
13866         mktime: clarify long_int width checking
13867         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13868         the top level, to make it clearer that the assumption about
13869         long_int width is being checked.  See
13870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13871
13872 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13873
13874         ignore-value: Fix self-test.
13875         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13876
13877 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13878
13879         TYPE_MAXIMUM: avoid theoretically undefined behavior
13880         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13881         negative number, which the C Standard says has undefined behavior.
13882         In practice this is not a problem, but might as well do it by the book.
13883         Reported by Rich Felker and Eric Blake; see
13884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13885         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13886         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13888         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13889         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13890         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13891
13892         mktime: #undef mktime before #defining it
13893         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13894
13895         mktime: systematically normalize tm_isdst comparisons
13896         * lib/mktime.c (isdst_differ): New function.
13897         (__mktime_internal): Use it systematically for all isdst comparisons.
13898         This completes the fix for libc BZ #6723, and removes the need for
13899         normalizing tm_isdst.  See
13900         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13901         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13902
13903         mktime: fix some integer overflow issues and sidestep the rest
13904
13905         This was prompted by a bug report by Benjamin Lindner for MinGW
13906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13907         His bug is due to signed integer overflow (0 - INT_MIN), and I
13908         I scanned through mktime.c looking for other integer overflow
13909         problems, fixing all the bugs I found.
13910
13911         Although the C Standard says the resulting code is still not safe
13912         in the presence of integer overflow, in practice it should be good
13913         enough for all real-world two's-complement implementations, except
13914         for debugging environments that deliberately trap on integer
13915         overflow (e.g., gcc -ftrapv).
13916
13917         * lib/mktime.c (WRAPV): New macro.
13918         (SHR): Also check that long_int and time_t shift right in the
13919         usual way, before using the fast-but-unportable method.
13920         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13921         used.  The code already assumed two's complement, so there's
13922         no need to test for alternatives.  All uses removed.
13923         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13924         the C standard.  Problem reported by Rich Felker in
13925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13926         (twos_complement_arithmetic): Also check long_int and time_t.
13927         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13928         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13929         (__mktime_internal): Avoid integer overflow with unary subtraction
13930         in two instances where -1 - X is an adequate replacement for -X,
13931         since the calculations are approximate.
13932
13933 2011-01-29  Eric Blake  <eblake@redhat.com>
13934
13935         mktime: avoid infinite loop
13936         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13937         type; behavior is still undefined but portable to all known targets.
13938         Reported by Rich Felker.
13939
13940 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13941
13942         rename, unlink, same-inode: Relicense.
13943         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13944         * modules/unlink (License): Likewise.
13945         * modules/same-inode (License): Likewise.
13946
13947 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         mktime: avoid problems on NetBSD 5 / i386
13950         * lib/mktime.c (long_int): New type.  This works around a problem
13951         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13952         but time_t is 64 bits, and where I expect the existing code is
13953         wrong in some cases.
13954         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13955         (ydhms_diff): Bring back the compile-time check for wide-enough
13956         year and yday.
13957
13958         mktime: fix misspelling in comment
13959         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13960         This merges all recent glibc changes of importance.
13961
13962 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13963
13964         move-if-change: cope with concurrent mv of identical file.
13965         * build-aux/move-if-change (CMPPROG): Accept environment
13966         variable as an override for `cmp'.
13967         (usage): Document CMPPROG.
13968         Adjust comparison to drop stdout.  Cope with failure of mv if
13969         the target file exists and is identical to the source, for
13970         parallel builds.
13971         Report from H.J. Lu against binutils in PR binutils/12283.
13972
13973 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13974
13975         * users.txt: Mention sharutils.
13976
13977 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13978
13979         * users.txt: Mention OATH Toolkit.
13980
13981 2011-01-27  Bruno Haible  <bruno@clisp.org>
13982
13983         Prepare for supporting FreeBSD 10.
13984         * build-aux/config.libpath: Remove handling of freebsd1*.
13985
13986 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13987
13988         Prepare for supporting FreeBSD 10.
13989         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13990         match FreeBSD 10.0.
13991
13992 2011-01-27  Bruno Haible  <bruno@clisp.org>
13993
13994         vma-iter, get-rusage-as: Add OpenBSD support.
13995         * modules/vma-iter (configure.ac): Test for mquery.
13996         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13997         * lib/vma-iter.c: Include <sys/mman.h>.
13998         (vma_iterate): Add an implementation based on mquery().
13999         * lib/resource-ext.h (get_rusage_as): Update comments.
14000         * lib/get-rusage-as.c: Likewise.
14001         * lib/get-rusage-data.c: Likewise.
14002
14003 2011-01-26  Karl Berry  <karl@gnu.org>
14004
14005         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14006         variables to make it easier to override the makeinfo program used.
14007
14008 2011-01-26  Eric Blake  <eblake@redhat.com>
14009
14010         fcntl: work around Haiku F_DUPFD bugs
14011         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14012         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14013         cloexec bit on duplication.
14014         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14015
14016 2011-01-26  Bruno Haible  <bruno@clisp.org>
14017
14018         Enable memory leak tests on AIX.
14019         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14020         * tests/test-fprintf-posix3.c (main): Likewise.
14021
14022 2011-01-26  Bruno Haible  <bruno@clisp.org>
14023
14024         Tests for module 'get-rusage-data'.
14025         * modules/get-rusage-data-tests: New file.
14026         * tests/test-get-rusage-data.c: New file.
14027
14028         New module 'get-rusage-data'.
14029         * lib/resource-ext.h (get_rusage_data): New declaration.
14030         * lib/get-rusage-data.c: New file.
14031         * modules/get-rusage-data: New file.
14032
14033 2011-01-25  Bruno Haible  <bruno@clisp.org>
14034
14035         get-rusage-as: Allow for easier testing.
14036         * lib/resource-ext.h (get_rusage_as): Add comment.
14037         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14038         (main): New function for interactive testing.
14039
14040 2011-01-25  Bruno Haible  <bruno@clisp.org>
14041
14042         vma-iter: Treat Haiku like BeOS.
14043         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14044         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14045
14046 2011-01-25  Eric Blake  <eblake@redhat.com>
14047
14048         c-stack: fix regression on cygwin when libsigsegv is present
14049         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14050
14051 2011-01-24  Bruno Haible  <bruno@clisp.org>
14052
14053         vma-iter: Avoid empty intervals.
14054         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14055         on an empty interval.
14056
14057 2011-01-24  Jim Meyering  <meyering@redhat.com>
14058
14059         u64: remove unnecessary #include
14060         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14061
14062 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14063
14064         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14065         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14066
14067 2011-01-23  Bruno Haible  <bruno@clisp.org>
14068
14069         New module 'vma-iter'.
14070         * lib/vma-iter.h: New file.
14071         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14072         * modules/vma-iter: New file.
14073         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14074         for get_rusage_as_via_iterator.
14075         (vma_iterate_callback): New function.
14076         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14077         * modules/get-rusage-as (Depends-on): Add vma-iter.
14078
14079 2011-01-23  Bruno Haible  <bruno@clisp.org>
14080
14081         uninorm: Tweak includes.
14082         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14083         Reported by Jim Meyering.
14084
14085 2011-01-23  Bruno Haible  <bruno@clisp.org>
14086
14087         get-rusage-as: Improve on NetBSD.
14088         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14089         /proc, like on FreeBSD.
14090
14091 2011-01-23  Jim Meyering  <meyering@redhat.com>
14092
14093         xreadlink.h: remove unnecessary #include
14094         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14095
14096         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14097         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14098
14099 2011-01-23  Bruno Haible  <bruno@clisp.org>
14100
14101         get-rusage-as: Fix bug.
14102         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14103         original limit when aborting the first loop.
14104
14105 2011-01-23  Bruno Haible  <bruno@clisp.org>
14106
14107         wctype: Ensure valid C syntax.
14108         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14109         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14110
14111 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14112
14113         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14115         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14116         as they are needed only for configure's test case.
14117         This removes two unnecessary symbols from config.h.
14118
14119         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14120         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14122         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14123         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14124         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14125         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14126         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14127         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14128         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14131         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14132         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14133         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14134         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14135         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14136         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14137
14138 2011-01-21  Eric Blake  <eblake@redhat.com>
14139
14140         maintainer-makefile: work with older git for submodule check
14141         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14142         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14143         Reported by Matthias Bolte.
14144
14145         bootstrap: minor portability fixes
14146         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14147         (usage): Omit leading capital and trailing . on help phrases, per
14148         GNU Coding Standards.
14149         (check_versions, top level): Prefix messages with script name.
14150
14151 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14152
14153         bootstrap: support --no-git option
14154         * build-aux/bootstrap: Add --no-git option, to be used when
14155         --gnulib-srcdir points to the exact desired checkout.
14156
14157 2011-01-21  Eric Blake  <eblake@redhat.com>
14158
14159         strerror_r-posix: work with glibc 2.13
14160         * lib/strerror_r.c (strerror_r): Fix return type.
14161
14162 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14163             Bruno Haible  <bruno@clisp.org>
14164
14165         uN_strstr: New unit tests.
14166         * modules/unistr/u8-strstr-tests: New file.
14167         * modules/unistr/u16-strstr-tests: New file.
14168         * modules/unistr/u32-strstr-tests: New file.
14169         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14170         * tests/unistr/test-u8-strstr.c: New file.
14171         * tests/unistr/test-u16-strstr.c: New file.
14172         * tests/unistr/test-u32-strstr.c: New file.
14173
14174 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14175             Bruno Haible  <bruno@clisp.org>
14176
14177         Make uN_strstr functions O(n) worst-case.
14178         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14179         16-bit and 32-bit unit cases, use the unibyte algorithm from
14180         lib/mbsstr.c.
14181         * lib/unistr/u8-strstr.c: Include <string.h>.
14182         (UNIT_IS_UINT8_T): New macro.
14183         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14184         (U_STRLEN, U_STRNLEN): New macros.
14185         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14186         (U_STRLEN, U_STRNLEN): New macros.
14187         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14188         (configure.ac): Update required libunistring version.
14189         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14190         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14191         malloca.
14192         (configure.ac): Update required libunistring version.
14193         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14194         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14195         malloca.
14196         (configure.ac): Update required libunistring version.
14197
14198 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14199             Bruno Haible  <bruno@clisp.org>
14200
14201         Prepare for faster uN_strstr functions.
14202         * lib/str-kmp.h: Support definable UNITs.
14203         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14204         needle_len argument.
14205         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14206         * lib/mbscasestr.c (mbscasestr): Likewise.
14207
14208 2011-01-21  Pádraig Brady <P@draigBrady.com>
14209
14210         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14211         * tests/test-malloca.c (main): Unset the environment variable
14212         to greatly speed up the test.
14213         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14214         * modules/malloca-tests: Depend on unsetenv.
14215
14216 2011-01-21  Pádraig Brady <P@draigBrady.com>
14217
14218         ignore-value: remove stdint dependency
14219         * lib/ignore-value.h: Remove <stdint.h>
14220         * modules/ignore-value: Remove stdint dependency.
14221
14222 2011-01-21  Jim Meyering  <meyering@redhat.com>
14223
14224         maint.mk: adjust variable name to be consistent with other gl_ vars
14225         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14226         to be lower case.
14227
14228 2011-01-20  Jim Meyering  <meyering@redhat.com>
14229
14230         maint.mk: make "check" depend on public-submodule-commit by default
14231         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14232
14233 2011-01-20  Bruno Haible  <bruno@clisp.org>
14234
14235         mbfile, mbiter: Complete change from 2008-12-21.
14236         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14237         * m4/mbiter.m4 (gl_MBITER): Likewise.
14238
14239 2011-01-20  Jim Meyering  <meyering@redhat.com>
14240
14241         init.sh: insert space between each function name and "()"
14242         * tests/init.sh: Make it a little easier to see that a function's
14243         name is "warn_", and not "warn" when looking at the first part of
14244         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14245
14246 2011-01-20  Jim Meyering  <meyering@redhat.com>
14247
14248         mountlist: clean up code formatting
14249         * lib/mountlist.c (read_file_system_list): Split a long line,
14250         correct bracing style, use NULL in place of "(struct statfs *)0",
14251         don't parenthesize return value, add spaces around "=" and after
14252         ";-in-for-stmt".
14253
14254 2011-01-14  Markus Duft <mduft@gentoo.org>
14255
14256         mountlist: add support for Interix
14257         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14258         Apply statvfs to all entries of /dev/fs.
14259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14260         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14261
14262 2011-01-20  Jim Meyering  <meyering@redhat.com>
14263
14264         maint.mk: improve the public-submodule-commit rule
14265         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14266         to suppress printing of its commands... unless V=1.
14267         Add git submodule's --quiet option to suppress printing of e.g.,
14268         "Entering gnulib" output.
14269         "cd" into $(srcdir) before running git submodule.
14270
14271 2011-01-20  Bruno Haible  <bruno@clisp.org>
14272
14273         include_next: Fix bug introduced on 2011-01-18.
14274         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14275         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14276         ac_cv_header_... variable if the second argument is not 'check'.
14277         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14278         gl_NEXT_HEADERS_INTERNAL.
14279
14280 2011-01-20  Bruno Haible  <bruno@clisp.org>
14281
14282         Allow the user to avoid the GNULIB_TEST_* macros.
14283         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14284         Suggested by Paul Eggert.
14285
14286 2011-01-14  Jim Meyering  <meyering@redhat.com>
14287
14288         bootstrap: avoid failure when there is no .gitmodules file
14289         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14290         has been assigned to, even when its value is the empty string.
14291         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14292         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14293         Reported by John W. Eaton <jwe@gnu.org>.
14294
14295 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         assume <ctype.h>, ..., <time.h> exist
14298         For years gnulib has been assuming the existence of the headers
14299         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14300         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14301         them, since they don't appear to be needed.
14302         * README (Portability guidelines): Document this.
14303         * lib/flock.c: Assume <fcntl.h> exists.
14304         * lib/regex_internal.h: Assume <locale.h> exists.
14305         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14306         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14307         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14308         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14309         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14310         * m4/regex.m4 (gl_REGEX): Likewise.
14311         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14312         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14313         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14314         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14315         * tests/test-argp.c: Likewise.
14316         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14317
14318         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14319         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14320         AA_APPLE_UNIVERSAL_BUILD.  See
14321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14322         * NEWS: Document this.
14323
14324 2011-01-19  Eric Blake  <eblake@redhat.com>
14325
14326         c-stack: assume stack overflow if SA_SIGINFO unsupported
14327         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14328         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14329         sigaction will work.
14330         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14331         behavior match Linux.
14332         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14333
14334         stdbool-tests: accomodate Haiku
14335         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14336
14337         binary-io: fix O_TEXT on Haiku
14338         * modules/binary-io (Depends-on): Add fcntl-h.
14339         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14340         than blindly undefining O_TEXT.
14341         Reported by Scott McCreary.
14342
14343 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         include_next: do not check for standard headers like stddef.h
14346
14347         I found this problem when modifying Emacs to use gnulib.
14348         I noticed that it added HAVE_STDDEF_H to config.h, even though
14349         gnulib always assumes <stddef.h> exists as per README and this
14350         symbol is unnecessary.
14351         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14352         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14353         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14354         faster for headers like stddef.h that are known to exist.
14355         (gl_CHECK_NEXT_HEADERS): Use it.
14356         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14357         rather than gl_CHECK_NEXT_HEADERS.
14358         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14359         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14360
14361 2011-01-18  Eric Blake  <eblake@redhat.com>
14362
14363         ansi-c++-opt: skip C++ dependency style if C++ is unused
14364         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14365         tests when we know C++ compilation is not desired.
14366         Reported by Scott McCreary.
14367
14368 2011-01-18  Bruno Haible  <bruno@clisp.org>
14369
14370         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14371         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14372         (main): Perform test also when getrlimit and setrlimit don't exist or
14373         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14374         limiting the address space size using setrlimit, compare the address
14375         space size before and after the the test.
14376         * tests/test-dprintf-posix2.c: Likewise.
14377         * tests/test-fprintf-posix3.sh: Update skip messages.
14378         * tests/test-dprintf-posix2.sh: Likewise.
14379         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14380         * modules/dprintf-posix-tests (Depends-on): Likewise.
14381         Reported by Bruce Korb <bkorb@gnu.org> and
14382         Gary V. Vaughan <gary@gnu.org>.
14383
14384 2011-01-18  Bruno Haible  <bruno@clisp.org>
14385
14386         get-rusage-as: Improvement for Cygwin.
14387         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14388         areas that are merely reserved.
14389
14390 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14391
14392         strftime: remove dependencies on multibyte modules
14393
14394         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14395         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14396         only if __osf__ is defined, and I suspect OSF doesn't need these
14397         other modules.  If my guess is wrong, we'll need to come up with a
14398         variant of strftime that doesn't need the multibyte modules.
14399
14400         I discovered this problem when attempting modify Emacs to use the
14401         strftime module.  With the previous gnulib, this caused Emacs to
14402         need 31 new files, ranging from lib/config.charset to
14403         m4/wint_t.m4.  This was overkill and I expect would be offputting
14404         to the Emacs maintainers.  After this change, only 6 new files are
14405         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14406         stdbool.m4, and tm_gmtoff.m4.
14407
14408         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14409         Suggested by Bruno Haible in
14410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14411         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14412         and do not check for wchar.h.
14413         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14414         (Depends-on): Remove mbrlen, mbsinit, wchar.
14415
14416 2011-01-18  Bruno Haible  <bruno@clisp.org>
14417
14418         Tests for module 'get-rusage-as'.
14419         * modules/get-rusage-as-tests: New file.
14420         * tests/test-get-rusage-as.c: New file.
14421
14422         New module 'get-rusage-as'.
14423         * modules/get-rusage-as: New file.
14424         * lib/resource-ext.h: New file.
14425         * lib/get-rusage-as.c: New file.
14426
14427 2011-01-17  Eric Blake  <eblake@redhat.com>
14428
14429         sigaction: relax license from LGPLv3+ to LGPLv2+
14430         * modules/sigaction (License): Relax to LGPLv2+.
14431
14432 2011-01-14  Bruno Haible  <bruno@clisp.org>
14433
14434         filemode: Make function declarations usable in C++ mode.
14435         * lib/filemode.h: Enclose function declarations in extern "C" block.
14436         Reported by John W. Eaton <jwe@gnu.org>.
14437
14438 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14439
14440         save-cwd: no longer include "xgetcwd.h"
14441         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14442         This avoids a compilation failure in projects that use save-cwd
14443         without also using the xgetcwd module.
14444
14445 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14446
14447         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14448         This is so that a program like Emacs, which needs only dtoastr,
14449         does not have to bother with distributing and compiling ftoastr
14450         and ldtoastr.
14451         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14452         * modules/dtoastr, modules/ldtoastr: New files.
14453         * modules/ftoastr: Now works just for 'float'.
14454         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14455         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14456         dtoastr.c, ldtoastr.c.
14457
14458 2011-01-11  Jim Meyering  <meyering@redhat.com>
14459
14460         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14461         There is no need to work around the lack of the fchdir function,
14462         since gnulib can now provide a replacement when required.
14463         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14464         * modules/save-cwd (Depends-on): Add fchdir.
14465
14466 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14467
14468         openat, save-cwd: avoid xmalloc
14469
14470         This removes a direct (but undocumented) dependency of openat on
14471         xalloc, along with an indirect dependency via save-cwd.  It also
14472         removes a dependency of save-cwd on xgetcwd, and thereby
14473         indirectly on xalloc.  This change causes the openat substitute
14474         to fall back on save_cwd when memory is tight, and for save_cwd to
14475         fail instead of dying when memory is tight, but that's good enough.
14476         Problem and initial idea for fix reported by Bastien Roucaries in
14477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14478
14479         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14480         xalloc.h (for xmalloc).
14481         (openat_proc_name): Use malloc, not xmalloc.
14482         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14483         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14484
14485         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14486         This avoids heap allocation for file names whose lengths are in
14487         the range 512..1023, with the upper bound increasing to at most
14488         4031 depending on the platform's PATH_MAX.  (We do not want
14489         pathmax.h here as it might supply a non-constant PATH_MAX.)
14490         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14491         Perhaps they should be moved to malloca.h?
14492         (OPENAT_BUFFER_SIZE): Use them.
14493
14494 2011-01-10  Bruno Haible  <bruno@clisp.org>
14495
14496         doc: Update users.txt.
14497         * users.txt: Add recutils.
14498
14499 2011-01-09  Karl Berry  <karl@gnu.org>
14500
14501         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14502
14503         * doc/configmake.texi: New file.
14504         * doc/gnulib.texi: Include it.
14505         * modules/configmake: Move documentation from here.
14506
14507 2011-01-09  Bruno Haible  <bruno@clisp.org>
14508
14509         Update to Unicode 6.0.0.
14510         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14511         (get_lbp): Update for Unicode 6.0.0.
14512         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14513         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14514         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14515         U+11001, U+11038..U+11046. Remove U+06DE.
14516         (uc_width): Fix bounds of planes.
14517         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14518         lib/uniwidth/width.c.
14519         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14520         trailing whitespace removed.
14521         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14522         without comments, but with the original copyright notice.
14523         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14524         * lib/unicase/ignorable.h: Likewise.
14525         * lib/unicase/tocasefold.h: Likewise.
14526         * lib/unicase/tolower.h: Likewise.
14527         * lib/unicase/totitle.h: Likewise.
14528         * lib/unicase/toupper.h: Likewise.
14529         * lib/unictype/bidi_of.h: Likewise.
14530         * lib/unictype/blocks.h: Likewise.
14531         * lib/unictype/categ_C.h: Likewise.
14532         * lib/unictype/categ_Cn.h: Likewise.
14533         * lib/unictype/categ_L.h: Likewise.
14534         * lib/unictype/categ_Ll.h: Likewise.
14535         * lib/unictype/categ_Lm.h: Likewise.
14536         * lib/unictype/categ_Lo.h: Likewise.
14537         * lib/unictype/categ_Lu.h: Likewise.
14538         * lib/unictype/categ_M.h: Likewise.
14539         * lib/unictype/categ_Mc.h: Likewise.
14540         * lib/unictype/categ_Me.h: Likewise.
14541         * lib/unictype/categ_Mn.h: Likewise.
14542         * lib/unictype/categ_N.h: Likewise.
14543         * lib/unictype/categ_Nd.h: Likewise.
14544         * lib/unictype/categ_No.h: Likewise.
14545         * lib/unictype/categ_P.h: Likewise.
14546         * lib/unictype/categ_Po.h: Likewise.
14547         * lib/unictype/categ_S.h: Likewise.
14548         * lib/unictype/categ_Sc.h: Likewise.
14549         * lib/unictype/categ_Sk.h: Likewise.
14550         * lib/unictype/categ_Sm.h: Likewise.
14551         * lib/unictype/categ_So.h: Likewise.
14552         * lib/unictype/categ_of.h: Likewise.
14553         * lib/unictype/combining.h: Likewise.
14554         * lib/unictype/ctype_alnum.h: Likewise.
14555         * lib/unictype/ctype_alpha.h: Likewise.
14556         * lib/unictype/ctype_graph.h: Likewise.
14557         * lib/unictype/ctype_lower.h: Likewise.
14558         * lib/unictype/ctype_print.h: Likewise.
14559         * lib/unictype/ctype_punct.h: Likewise.
14560         * lib/unictype/ctype_upper.h: Likewise.
14561         * lib/unictype/decdigit.h: Likewise.
14562         * lib/unictype/digit.h: Likewise.
14563         * lib/unictype/numeric.h: Likewise.
14564         * lib/unictype/pr_alphabetic.h: Likewise.
14565         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14566         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14567         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14568         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14569         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14570         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14571         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14572         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14573         * lib/unictype/pr_case_ignorable.h: Likewise.
14574         * lib/unictype/pr_cased.h: Likewise.
14575         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14576         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14577         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14578         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14579         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14580         * lib/unictype/pr_combining.h: Likewise.
14581         * lib/unictype/pr_composite.h: Likewise.
14582         * lib/unictype/pr_currency_symbol.h: Likewise.
14583         * lib/unictype/pr_decimal_digit.h: Likewise.
14584         * lib/unictype/pr_deprecated.h: Likewise.
14585         * lib/unictype/pr_format_control.h: Likewise.
14586         * lib/unictype/pr_grapheme_base.h: Likewise.
14587         * lib/unictype/pr_grapheme_extend.h: Likewise.
14588         * lib/unictype/pr_grapheme_link.h: Likewise.
14589         * lib/unictype/pr_id_continue.h: Likewise.
14590         * lib/unictype/pr_id_start.h: Likewise.
14591         * lib/unictype/pr_ideographic.h: Likewise.
14592         * lib/unictype/pr_lowercase.h: Likewise.
14593         * lib/unictype/pr_math.h: Likewise.
14594         * lib/unictype/pr_numeric.h: Likewise.
14595         * lib/unictype/pr_other_alphabetic.h: Likewise.
14596         * lib/unictype/pr_other_id_continue.h: Likewise.
14597         * lib/unictype/pr_other_math.h: Likewise.
14598         * lib/unictype/pr_punctuation.h: Likewise.
14599         * lib/unictype/pr_sentence_terminal.h: Likewise.
14600         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14601         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14602         * lib/unictype/pr_unified_ideograph.h: Likewise.
14603         * lib/unictype/pr_uppercase.h: Likewise.
14604         * lib/unictype/pr_xid_continue.h: Likewise.
14605         * lib/unictype/pr_xid_start.h: Likewise.
14606         * lib/unictype/scripts.h: Likewise.
14607         * lib/unictype/scripts_byname.gperf: Likewise.
14608         * lib/unictype/sy_java_ident.h: Likewise.
14609         * lib/unigbrk/gbrkprop.h: Likewise.
14610         * lib/unilbrk/lbrkprop1.h: Likewise.
14611         * lib/unilbrk/lbrkprop2.h: Likewise.
14612         * lib/uninorm/decomposition-table2.h: Likewise.
14613         * lib/uniwbrk/wbrkprop.h: Likewise.
14614         * tests/unicase/test-cased.c: Likewise.
14615         * tests/unicase/test-ignorable.c: Likewise.
14616         * tests/unicase/test-uc_tolower.c: Likewise.
14617         * tests/unicase/test-uc_totitle.c: Likewise.
14618         * tests/unicase/test-uc_toupper.c: Likewise.
14619         * tests/unictype/test-categ_C.c: Likewise.
14620         * tests/unictype/test-categ_Cn.c: Likewise.
14621         * tests/unictype/test-categ_L.c: Likewise.
14622         * tests/unictype/test-categ_Ll.c: Likewise.
14623         * tests/unictype/test-categ_Lm.c: Likewise.
14624         * tests/unictype/test-categ_Lo.c: Likewise.
14625         * tests/unictype/test-categ_Lu.c: Likewise.
14626         * tests/unictype/test-categ_M.c: Likewise.
14627         * tests/unictype/test-categ_Mc.c: Likewise.
14628         * tests/unictype/test-categ_Me.c: Likewise.
14629         * tests/unictype/test-categ_Mn.c: Likewise.
14630         * tests/unictype/test-categ_N.c: Likewise.
14631         * tests/unictype/test-categ_Nd.c: Likewise.
14632         * tests/unictype/test-categ_No.c: Likewise.
14633         * tests/unictype/test-categ_P.c: Likewise.
14634         * tests/unictype/test-categ_Po.c: Likewise.
14635         * tests/unictype/test-categ_S.c: Likewise.
14636         * tests/unictype/test-categ_Sc.c: Likewise.
14637         * tests/unictype/test-categ_Sk.c: Likewise.
14638         * tests/unictype/test-categ_Sm.c: Likewise.
14639         * tests/unictype/test-categ_So.c: Likewise.
14640         * tests/unictype/test-ctype_alnum.c: Likewise.
14641         * tests/unictype/test-ctype_alpha.c: Likewise.
14642         * tests/unictype/test-ctype_graph.c: Likewise.
14643         * tests/unictype/test-ctype_lower.c: Likewise.
14644         * tests/unictype/test-ctype_print.c: Likewise.
14645         * tests/unictype/test-ctype_punct.c: Likewise.
14646         * tests/unictype/test-ctype_upper.c: Likewise.
14647         * tests/unictype/test-decdigit.h: Likewise.
14648         * tests/unictype/test-digit.h: Likewise.
14649         * tests/unictype/test-numeric.h: Likewise.
14650         * tests/unictype/test-pr_alphabetic.c: Likewise.
14651         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14652         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14653         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14654         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14655         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14656         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14657         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14658         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14659         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14660         * tests/unictype/test-pr_cased.c: Likewise.
14661         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14662         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14663         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14664         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14665         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14666         * tests/unictype/test-pr_combining.c: Likewise.
14667         * tests/unictype/test-pr_composite.c: Likewise.
14668         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14669         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14670         * tests/unictype/test-pr_deprecated.c: Likewise.
14671         * tests/unictype/test-pr_format_control.c: Likewise.
14672         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14673         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14674         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14675         * tests/unictype/test-pr_id_continue.c: Likewise.
14676         * tests/unictype/test-pr_id_start.c: Likewise.
14677         * tests/unictype/test-pr_ideographic.c: Likewise.
14678         * tests/unictype/test-pr_lowercase.c: Likewise.
14679         * tests/unictype/test-pr_math.c: Likewise.
14680         * tests/unictype/test-pr_numeric.c: Likewise.
14681         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14682         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14683         * tests/unictype/test-pr_other_math.c: Likewise.
14684         * tests/unictype/test-pr_punctuation.c: Likewise.
14685         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14686         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14687         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14688         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14689         * tests/unictype/test-pr_uppercase.c: Likewise.
14690         * tests/unictype/test-pr_xid_continue.c: Likewise.
14691         * tests/unictype/test-pr_xid_start.c: Likewise.
14692         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14693         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14694         changes.
14695         * lib/unictype/categ_Cc.h: Likewise.
14696         * lib/unictype/categ_Cf.h: Likewise.
14697         * lib/unictype/categ_Co.h: Likewise.
14698         * lib/unictype/categ_Cs.h: Likewise.
14699         * lib/unictype/categ_Lt.h: Likewise.
14700         * lib/unictype/categ_Nl.h: Likewise.
14701         * lib/unictype/categ_Pc.h: Likewise.
14702         * lib/unictype/categ_Pd.h: Likewise.
14703         * lib/unictype/categ_Pe.h: Likewise.
14704         * lib/unictype/categ_Pf.h: Likewise.
14705         * lib/unictype/categ_Pi.h: Likewise.
14706         * lib/unictype/categ_Ps.h: Likewise.
14707         * lib/unictype/categ_Z.h: Likewise.
14708         * lib/unictype/categ_Zl.h: Likewise.
14709         * lib/unictype/categ_Zp.h: Likewise.
14710         * lib/unictype/categ_Zs.h: Likewise.
14711         * lib/unictype/ctype_blank.h: Likewise.
14712         * lib/unictype/ctype_cntrl.h: Likewise.
14713         * lib/unictype/ctype_digit.h: Likewise.
14714         * lib/unictype/ctype_space.h: Likewise.
14715         * lib/unictype/ctype_xdigit.h: Likewise.
14716         * lib/unictype/mirror.h: Likewise.
14717         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14718         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14719         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14720         * lib/unictype/pr_bidi_control.h: Likewise.
14721         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14722         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14723         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14724         * lib/unictype/pr_bidi_pdf.h: Likewise.
14725         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14726         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14727         * lib/unictype/pr_dash.h: Likewise.
14728         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14729         * lib/unictype/pr_diacritic.h: Likewise.
14730         * lib/unictype/pr_extender.h: Likewise.
14731         * lib/unictype/pr_hex_digit.h: Likewise.
14732         * lib/unictype/pr_hyphen.h: Likewise.
14733         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14734         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14735         * lib/unictype/pr_ignorable_control.h: Likewise.
14736         * lib/unictype/pr_iso_control.h: Likewise.
14737         * lib/unictype/pr_join_control.h: Likewise.
14738         * lib/unictype/pr_left_of_pair.h: Likewise.
14739         * lib/unictype/pr_line_separator.h: Likewise.
14740         * lib/unictype/pr_logical_order_exception.h: Likewise.
14741         * lib/unictype/pr_non_break.h: Likewise.
14742         * lib/unictype/pr_not_a_character.h: Likewise.
14743         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14744         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14745         * lib/unictype/pr_other_id_start.h: Likewise.
14746         * lib/unictype/pr_other_lowercase.h: Likewise.
14747         * lib/unictype/pr_other_uppercase.h: Likewise.
14748         * lib/unictype/pr_paired_punctuation.h: Likewise.
14749         * lib/unictype/pr_paragraph_separator.h: Likewise.
14750         * lib/unictype/pr_pattern_syntax.h: Likewise.
14751         * lib/unictype/pr_pattern_white_space.h: Likewise.
14752         * lib/unictype/pr_private_use.h: Likewise.
14753         * lib/unictype/pr_quotation_mark.h: Likewise.
14754         * lib/unictype/pr_radical.h: Likewise.
14755         * lib/unictype/pr_soft_dotted.h: Likewise.
14756         * lib/unictype/pr_space.h: Likewise.
14757         * lib/unictype/pr_titlecase.h: Likewise.
14758         * lib/unictype/pr_variation_selector.h: Likewise.
14759         * lib/unictype/pr_white_space.h: Likewise.
14760         * lib/unictype/pr_zero_width.h: Likewise.
14761         * lib/unictype/sy_c_ident.h: Likewise.
14762         * lib/unictype/sy_c_whitespace.h: Likewise.
14763         * lib/unictype/sy_java_whitespace.h: Likewise.
14764         * lib/uninorm/composition-table.gperf: Likewise.
14765         * lib/uninorm/decomposition-table1.h: Likewise.
14766         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14767         LB8.
14768         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14769         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14770         * modules/unictype/*: Bump version number of expected libunistring
14771         version.
14772
14773 2011-01-09  Bruno Haible  <bruno@clisp.org>
14774
14775         Update to Unicode 5.2.0.
14776         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14777         trailing whitespace removed.
14778
14779 2011-01-09  Bruno Haible  <bruno@clisp.org>
14780
14781         New Unicode character properties, from Unicode 5.2.0.
14782         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14783         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14784         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14785         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14786         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14787         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14788         uc_is_property_cased, uc_is_property_case_ignorable,
14789         uc_is_property_changes_when_lowercased,
14790         uc_is_property_changes_when_uppercased,
14791         uc_is_property_changes_when_titlecased,
14792         uc_is_property_changes_when_casefolded,
14793         uc_is_property_changes_when_casemapped): New declarations.
14794         * lib/unictype/pr_byname.gperf: Add the new properties.
14795         * modules/unictype/property-byname (Depends-on): Depend on the new
14796         properties modules.
14797         * modules/unictype/property-all (Depends-on): Likewise.
14798         * MODULES.html.sh (Unicode string functions): Add
14799         unictype/property-case-ignorable, unictype/property-cased,
14800         unictype/property-changes-when-casefolded,
14801         unictype/property-changes-when-casemapped,
14802         unictype/property-changes-when-lowercased,
14803         unictype/property-changes-when-titlecased,
14804         unictype/property-changes-when-uppercased.
14805
14806         New module 'unictype/property-changes-when-casemapped'.
14807         * modules/unictype/property-changes-when-casemapped: New file.
14808         * lib/unictype/pr_changes_when_casemapped.c: New file.
14809         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14810         generated by gen-uni-tables.
14811         * modules/unictype/property-changes-when-casemapped-tests: New file.
14812         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14813         automatically generated by gen-uni-tables.
14814
14815         New module 'unictype/property-changes-when-casefolded'.
14816         * modules/unictype/property-changes-when-casefolded: New file.
14817         * lib/unictype/pr_changes_when_casefolded.c: New file.
14818         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14819         generated by gen-uni-tables.
14820         * modules/unictype/property-changes-when-casefolded-tests: New file.
14821         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14822         automatically generated by gen-uni-tables.
14823
14824         New module 'unictype/property-changes-when-titlecased'.
14825         * modules/unictype/property-changes-when-titlecased: New file.
14826         * lib/unictype/pr_changes_when_titlecased.c: New file.
14827         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14828         generated by gen-uni-tables.
14829         * modules/unictype/property-changes-when-titlecased-tests: New file.
14830         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14831         automatically generated by gen-uni-tables.
14832
14833         New module 'unictype/property-changes-when-uppercased'.
14834         * modules/unictype/property-changes-when-uppercased: New file.
14835         * lib/unictype/pr_changes_when_uppercased.c: New file.
14836         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14837         generated by gen-uni-tables.
14838         * modules/unictype/property-changes-when-uppercased-tests: New file.
14839         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14840         automatically generated by gen-uni-tables.
14841
14842         New module 'unictype/property-changes-when-lowercased'.
14843         * modules/unictype/property-changes-when-lowercased: New file.
14844         * lib/unictype/pr_changes_when_lowercased.c: New file.
14845         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14846         generated by gen-uni-tables.
14847         * modules/unictype/property-changes-when-lowercased-tests: New file.
14848         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14849         automatically generated by gen-uni-tables.
14850
14851         New module 'unictype/property-case-ignorable'.
14852         * modules/unictype/property-case-ignorable: New file.
14853         * lib/unictype/pr_case_ignorable.c: New file.
14854         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14855         by gen-uni-tables.
14856         * modules/unictype/property-case-ignorable-tests: New file.
14857         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14858         generated by gen-uni-tables.
14859
14860         New module 'unictype/property-cased'.
14861         * modules/unictype/property-cased: New file.
14862         * lib/unictype/pr_cased.c: New file.
14863         * lib/unictype/pr_cased.h: New file, automatically generated by
14864         gen-uni-tables.
14865         * modules/unictype/property-cased-tests: New file.
14866         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14867         gen-uni-tables.
14868
14869 2011-01-09  Bruno Haible  <bruno@clisp.org>
14870
14871         Update to Unicode 5.2.0.
14872         * lib/gen-uni-tables.c (output_predicate, output_category,
14873         output_combclass, output_bidi_category, output_decimal_digit_test,
14874         output_decimal_digit, output_digit_test, output_digit,
14875         output_numeric_test, output_numeric, output_mirror, output_scripts,
14876         output_scripts_byname, output_blocks, output_ident_category): Fix
14877         comment header.
14878         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14879         get_wbp.
14880         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14881         items.
14882         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14883         Changes_When_Lowercased, Changes_When_Uppercased,
14884         Changes_When_Titlecased, Changes_When_Casefolded,
14885         Changes_When_Casemapped.
14886         (is_property_alphabetic, is_property_default_ignorable_code_point):
14887         Update for Unicode 5.2.0.
14888         (is_property_cased, is_property_case_ignorable,
14889         is_property_changes_when_lowercased,
14890         is_property_changes_when_uppercased,
14891         is_property_changes_when_titlecased,
14892         is_property_changes_when_casefolded,
14893         is_property_changes_when_casemapped): New functions.
14894         (output_properties): Output also the properties cased, case_ignorable,
14895         changes_when_lowercased, changes_when_uppercased,
14896         changes_when_titlecased, changes_when_casefolded,
14897         changes_when_casemapped.
14898         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14899         Unicode TR#11 revision 17 -> 19.
14900         (LBP_CP): New enumeration value.
14901         (LBP_*): Adjust values accordingly.
14902         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14903         TR#14 revision 22 -> 24.
14904         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14905         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14906         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14907         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14908         is_WBP_MIDLETTER.
14909         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14910         the code1 and code2 of each composition rule.
14911         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14912         * lib/unicase/ignorable.h: Likewise.
14913         * lib/unicase/tocasefold.h: Likewise.
14914         * lib/unicase/tolower.h: Likewise.
14915         * lib/unicase/totitle.h: Likewise.
14916         * lib/unicase/toupper.h: Likewise.
14917         * lib/unictype/bidi_of.h: Likewise.
14918         * lib/unictype/blocks.h: Likewise.
14919         * lib/unictype/categ_C.h: Likewise.
14920         * lib/unictype/categ_Cf.h: Likewise.
14921         * lib/unictype/categ_Cn.h: Likewise.
14922         * lib/unictype/categ_L.h: Likewise.
14923         * lib/unictype/categ_Ll.h: Likewise.
14924         * lib/unictype/categ_Lm.h: Likewise.
14925         * lib/unictype/categ_Lo.h: Likewise.
14926         * lib/unictype/categ_Lu.h: Likewise.
14927         * lib/unictype/categ_M.h: Likewise.
14928         * lib/unictype/categ_Mc.h: Likewise.
14929         * lib/unictype/categ_Mn.h: Likewise.
14930         * lib/unictype/categ_N.h: Likewise.
14931         * lib/unictype/categ_Nd.h: Likewise.
14932         * lib/unictype/categ_Nl.h: Likewise.
14933         * lib/unictype/categ_No.h: Likewise.
14934         * lib/unictype/categ_P.h: Likewise.
14935         * lib/unictype/categ_Pd.h: Likewise.
14936         * lib/unictype/categ_Po.h: Likewise.
14937         * lib/unictype/categ_S.h: Likewise.
14938         * lib/unictype/categ_Sc.h: Likewise.
14939         * lib/unictype/categ_So.h: Likewise.
14940         * lib/unictype/categ_of.h: Likewise.
14941         * lib/unictype/combining.h: Likewise.
14942         * lib/unictype/ctype_alnum.h: Likewise.
14943         * lib/unictype/ctype_alpha.h: Likewise.
14944         * lib/unictype/ctype_graph.h: Likewise.
14945         * lib/unictype/ctype_lower.h: Likewise.
14946         * lib/unictype/ctype_print.h: Likewise.
14947         * lib/unictype/ctype_punct.h: Likewise.
14948         * lib/unictype/ctype_upper.h: Likewise.
14949         * lib/unictype/decdigit.h: Likewise.
14950         * lib/unictype/digit.h: Likewise.
14951         * lib/unictype/numeric.h: Likewise.
14952         * lib/unictype/pr_alphabetic.h: Likewise.
14953         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14954         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14955         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14956         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14957         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14958         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14959         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14960         * lib/unictype/pr_combining.h: Likewise.
14961         * lib/unictype/pr_composite.h: Likewise.
14962         * lib/unictype/pr_currency_symbol.h: Likewise.
14963         * lib/unictype/pr_dash.h: Likewise.
14964         * lib/unictype/pr_decimal_digit.h: Likewise.
14965         * lib/unictype/pr_deprecated.h: Likewise.
14966         * lib/unictype/pr_diacritic.h: Likewise.
14967         * lib/unictype/pr_extender.h: Likewise.
14968         * lib/unictype/pr_grapheme_base.h: Likewise.
14969         * lib/unictype/pr_grapheme_extend.h: Likewise.
14970         * lib/unictype/pr_grapheme_link.h: Likewise.
14971         * lib/unictype/pr_id_continue.h: Likewise.
14972         * lib/unictype/pr_id_start.h: Likewise.
14973         * lib/unictype/pr_ideographic.h: Likewise.
14974         * lib/unictype/pr_ignorable_control.h: Likewise.
14975         * lib/unictype/pr_logical_order_exception.h: Likewise.
14976         * lib/unictype/pr_lowercase.h: Likewise.
14977         * lib/unictype/pr_numeric.h: Likewise.
14978         * lib/unictype/pr_other_alphabetic.h: Likewise.
14979         * lib/unictype/pr_punctuation.h: Likewise.
14980         * lib/unictype/pr_sentence_terminal.h: Likewise.
14981         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14982         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14983         * lib/unictype/pr_unified_ideograph.h: Likewise.
14984         * lib/unictype/pr_uppercase.h: Likewise.
14985         * lib/unictype/pr_xid_continue.h: Likewise.
14986         * lib/unictype/pr_xid_start.h: Likewise.
14987         * lib/unictype/pr_zero_width.h: Likewise.
14988         * lib/unictype/scripts.h: Likewise.
14989         * lib/unictype/scripts_byname.gperf: Likewise.
14990         * lib/unictype/sy_java_ident.h: Likewise.
14991         * lib/unigbrk/gbrkprop.h: Likewise.
14992         * lib/unilbrk/lbrkprop1.h: Likewise.
14993         * lib/unilbrk/lbrkprop2.h: Likewise.
14994         * lib/unilbrk/lbrktables.h: Likewise.
14995         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14996         LBP_CP. Implement rule LB30.
14997         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14998         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14999         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15000         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15001         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15002         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15003         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15004         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15005         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15006         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15007         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15008         bits instead of 16 bits in the code1 and code2 of each composition
15009         rule.
15010         (uc_composition): Update for Unicode 5.2.0.
15011         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15012         * lib/uninorm/decomposition-table2.h: Likewise.
15013         * lib/uniwbrk/wbrkprop.h: Likewise.
15014         * tests/unicase/test-cased.c: Likewise.
15015         * tests/unicase/test-ignorable.c: Likewise.
15016         * tests/unicase/test-uc_tolower.c: Likewise.
15017         * tests/unicase/test-uc_totitle.c: Likewise.
15018         * tests/unicase/test-uc_toupper.c: Likewise.
15019         * tests/unictype/test-categ_C.c: Likewise.
15020         * tests/unictype/test-categ_Cf.c: Likewise.
15021         * tests/unictype/test-categ_Cn.c: Likewise.
15022         * tests/unictype/test-categ_L.c: Likewise.
15023         * tests/unictype/test-categ_Ll.c: Likewise.
15024         * tests/unictype/test-categ_Lm.c: Likewise.
15025         * tests/unictype/test-categ_Lo.c: Likewise.
15026         * tests/unictype/test-categ_Lu.c: Likewise.
15027         * tests/unictype/test-categ_M.c: Likewise.
15028         * tests/unictype/test-categ_Mc.c: Likewise.
15029         * tests/unictype/test-categ_Mn.c: Likewise.
15030         * tests/unictype/test-categ_N.c: Likewise.
15031         * tests/unictype/test-categ_Nd.c: Likewise.
15032         * tests/unictype/test-categ_Nl.c: Likewise.
15033         * tests/unictype/test-categ_No.c: Likewise.
15034         * tests/unictype/test-categ_P.c: Likewise.
15035         * tests/unictype/test-categ_Pd.c: Likewise.
15036         * tests/unictype/test-categ_Po.c: Likewise.
15037         * tests/unictype/test-categ_S.c: Likewise.
15038         * tests/unictype/test-categ_Sc.c: Likewise.
15039         * tests/unictype/test-categ_So.c: Likewise.
15040         * tests/unictype/test-ctype_alnum.c: Likewise.
15041         * tests/unictype/test-ctype_alpha.c: Likewise.
15042         * tests/unictype/test-ctype_graph.c: Likewise.
15043         * tests/unictype/test-ctype_lower.c: Likewise.
15044         * tests/unictype/test-ctype_print.c: Likewise.
15045         * tests/unictype/test-ctype_punct.c: Likewise.
15046         * tests/unictype/test-ctype_upper.c: Likewise.
15047         * tests/unictype/test-decdigit.h: Likewise.
15048         * tests/unictype/test-digit.h: Likewise.
15049         * tests/unictype/test-numeric.h: Likewise.
15050         * tests/unictype/test-pr_alphabetic.c: Likewise.
15051         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15052         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15053         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15054         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15055         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15056         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15057         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15058         * tests/unictype/test-pr_combining.c: Likewise.
15059         * tests/unictype/test-pr_composite.c: Likewise.
15060         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15061         * tests/unictype/test-pr_dash.c: Likewise.
15062         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15063         * tests/unictype/test-pr_deprecated.c: Likewise.
15064         * tests/unictype/test-pr_diacritic.c: Likewise.
15065         * tests/unictype/test-pr_extender.c: Likewise.
15066         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15067         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15068         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15069         * tests/unictype/test-pr_id_continue.c: Likewise.
15070         * tests/unictype/test-pr_id_start.c: Likewise.
15071         * tests/unictype/test-pr_ideographic.c: Likewise.
15072         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15073         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15074         * tests/unictype/test-pr_lowercase.c: Likewise.
15075         * tests/unictype/test-pr_numeric.c: Likewise.
15076         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15077         * tests/unictype/test-pr_punctuation.c: Likewise.
15078         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15079         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15080         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15081         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15082         * tests/unictype/test-pr_uppercase.c: Likewise.
15083         * tests/unictype/test-pr_xid_continue.c: Likewise.
15084         * tests/unictype/test-pr_xid_start.c: Likewise.
15085         * tests/unictype/test-pr_zero_width.c: Likewise.
15086         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15087         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15088         changed behaviour: line breaking is now disallowed between a letter
15089         or '=' and '('.
15090         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15091         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15092         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15093         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15094         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15095         lib/uniwidth/width.c.
15096         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15097         without comments, but with the original copyright notice.
15098         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15099         changes.
15100         * lib/unictype/categ_Cc.h: Likewise.
15101         * lib/unictype/categ_Co.h: Likewise.
15102         * lib/unictype/categ_Cs.h: Likewise.
15103         * lib/unictype/categ_Lt.h: Likewise.
15104         * lib/unictype/categ_Me.h: Likewise.
15105         * lib/unictype/categ_Pc.h: Likewise.
15106         * lib/unictype/categ_Pe.h: Likewise.
15107         * lib/unictype/categ_Pf.h: Likewise.
15108         * lib/unictype/categ_Pi.h: Likewise.
15109         * lib/unictype/categ_Ps.h: Likewise.
15110         * lib/unictype/categ_Sk.h: Likewise.
15111         * lib/unictype/categ_Sm.h: Likewise.
15112         * lib/unictype/categ_Z.h: Likewise.
15113         * lib/unictype/categ_Zl.h: Likewise.
15114         * lib/unictype/categ_Zp.h: Likewise.
15115         * lib/unictype/categ_Zs.h: Likewise.
15116         * lib/unictype/ctype_blank.h: Likewise.
15117         * lib/unictype/ctype_cntrl.h: Likewise.
15118         * lib/unictype/ctype_digit.h: Likewise.
15119         * lib/unictype/ctype_space.h: Likewise.
15120         * lib/unictype/ctype_xdigit.h: Likewise.
15121         * lib/unictype/mirror.h: Likewise.
15122         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15123         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15124         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15125         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15126         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15127         * lib/unictype/pr_bidi_control.h: Likewise.
15128         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15129         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15130         * lib/unictype/pr_bidi_pdf.h: Likewise.
15131         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15132         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15133         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15134         * lib/unictype/pr_format_control.h: Likewise.
15135         * lib/unictype/pr_hex_digit.h: Likewise.
15136         * lib/unictype/pr_hyphen.h: Likewise.
15137         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15138         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15139         * lib/unictype/pr_iso_control.h: Likewise.
15140         * lib/unictype/pr_join_control.h: Likewise.
15141         * lib/unictype/pr_left_of_pair.h: Likewise.
15142         * lib/unictype/pr_line_separator.h: Likewise.
15143         * lib/unictype/pr_math.h: Likewise.
15144         * lib/unictype/pr_non_break.h: Likewise.
15145         * lib/unictype/pr_not_a_character.h: Likewise.
15146         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15147         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15148         * lib/unictype/pr_other_id_continue.h: Likewise.
15149         * lib/unictype/pr_other_id_start.h: Likewise.
15150         * lib/unictype/pr_other_lowercase.h: Likewise.
15151         * lib/unictype/pr_other_math.h: Likewise.
15152         * lib/unictype/pr_other_uppercase.h: Likewise.
15153         * lib/unictype/pr_paired_punctuation.h: Likewise.
15154         * lib/unictype/pr_paragraph_separator.h: Likewise.
15155         * lib/unictype/pr_pattern_syntax.h: Likewise.
15156         * lib/unictype/pr_pattern_white_space.h: Likewise.
15157         * lib/unictype/pr_private_use.h: Likewise.
15158         * lib/unictype/pr_quotation_mark.h: Likewise.
15159         * lib/unictype/pr_radical.h: Likewise.
15160         * lib/unictype/pr_soft_dotted.h: Likewise.
15161         * lib/unictype/pr_space.h: Likewise.
15162         * lib/unictype/pr_titlecase.h: Likewise.
15163         * lib/unictype/pr_variation_selector.h: Likewise.
15164         * lib/unictype/pr_white_space.h: Likewise.
15165         * lib/unictype/sy_c_ident.h: Likewise.
15166         * lib/unictype/sy_c_whitespace.h: Likewise.
15167         * lib/unictype/sy_java_whitespace.h: Likewise.
15168         * modules/uni*/*: Bump version number of expected libunistring version.
15169         Reported by Simon Josefsson.
15170
15171 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15172
15173         useless-if-before-free: fix typo in --help and make the internal,
15174         automatic version date update process work once again.
15175         --help output contained a NUL character instead of the
15176         backslash-zero that was intended.  Also, the "must lie within
15177         the first 8 lines" line is on line 9, and hence not getting
15178         automatically updated.
15179         * build-aux/useless-if-before-free: Fix the former by adding a
15180         backslash, and the latter by condensing the three lines of what-it-does
15181         to a single line, leaving one line of slack for the future.
15182
15183 2011-01-09  Bruno Haible  <bruno@clisp.org>
15184
15185         uniwidth/width: Fix width of U+1D173..U+1D17A.
15186         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15187         symbolic_width, output_width_property_test): New functions.
15188         (main): Invoke output_nonspacing_property, output_width_property_test.
15189         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15190         U+1D173..U+1D17A.
15191         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15192         1.
15193         * modules/uniwidth/*: Bump version number of expected libunistring
15194         version.
15195         * modules/unilbrk/*: Likewise.
15196
15197 2011-01-08  Bruno Haible  <bruno@clisp.org>
15198
15199         uninorm tests: Preserve copyright of Unicode data file.
15200         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15201         Mention modifications.
15202
15203 2011-01-08  Bruno Haible  <bruno@clisp.org>
15204
15205         gen-uni-tables: Prepare for Unicode 5.2.0.
15206         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15207         (debug_output_lbp, output_lbp): Update.
15208
15209 2011-01-08  Bruno Haible  <bruno@clisp.org>
15210
15211         unilbrk: Clarify gen-uni-tables.c code.
15212         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15213         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15214         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15215
15216 2011-01-07  Bruno Haible  <bruno@clisp.org>
15217
15218         strtod: Restore errno when successfully parsing Infinity or NaN.
15219         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15220         restore the original errno.
15221
15222 2011-01-07  Bruno Haible  <bruno@clisp.org>
15223
15224         remove test: Avoid failure on HP-UX 11.
15225         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15226
15227 2011-01-07  Bruno Haible  <bruno@clisp.org>
15228
15229         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15230         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15231         error code.
15232
15233 2011-01-07  Pádraig Brady <P@draigBrady.com>
15234
15235         ignore-value: fixup comments, and add Eric Blake
15236         as an author since he rewrote the macros.
15237         * lib/ignore-value.h (ignore_value):  State that
15238         we now support aggregates.  Also specify exactly
15239         when the GCC warn_unused_result feature was added.
15240
15241 2011-01-06  Eric Blake  <eblake@redhat.com>
15242
15243         ignore-value: support aggregate types
15244         * lib/ignore-value.h (ignore_value): Provide separate gcc
15245         definition.
15246         * modules/ignore-value-tests: New test module.
15247         * tests/test-ignore-value.c: New test.
15248
15249         maint.mk: improve sc_prohibit_strcmp regex
15250         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15251         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15252         definition of STRNEQ.
15253
15254         signal: work around Haiku issue with SIGBUS
15255         * lib/siglist.h: Add comment.
15256         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15257         strsignal's favoring of SIGSEGV.
15258         * tests/test-signal.c (main): Avoid test failure.
15259         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15260         Reported by Scott McCreary.
15261
15262         maint.mk: add pre-release check to ensure submodule commits are public
15263         * top/maint.mk (public-submodule-commit): New rule.
15264         (submodule-checks): New variable.
15265         (alpha beta stable): Depend on the variable.
15266
15267 2011-01-05  Pádraig Brady <P@draigBrady.com>
15268         and Jim Meyering  <meyering@redhat.com>
15269
15270         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15271         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15272         (ATTRIBUTE_DEPRECATED): Define.
15273         (_ignore_case): New function.
15274         (ignore_value): New macro, to replace the old function.
15275         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15276         * modules/ignore-value (Depends-on): Add stdint.
15277
15278 2011-01-04  Eric Blake  <eblake@redhat.com>
15279
15280         doc: regenerate INSTALL
15281         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15282         @firstparagraphindent support, now that autoconf dropped it.
15283         (INSTALL_PRELUDE): Reinstate old macro.
15284         * doc/install.texi: Resync from autoconf.
15285         * doc/INSTALL: Reflect recent autoconf update.
15286         * doc/INSTALL.ISO: Likewise.
15287         * doc/INSTALL.UTF-8: Likewise.
15288         Reported by Karl Berry.
15289
15290 2011-01-04  Bruce Korb  <address@hidden>
15291
15292         git-version-gen: avoid a sub-shell
15293         * build-aux/git-version-gen: Redirect stderr in `...` via
15294         "exec 2>...", rather than via an added sub-shell.
15295
15296 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15297
15298         git-version-gen: use (...) rather than sh -c '...'
15299         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15300         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15301
15302 2011-01-03  Jim Meyering  <meyering@redhat.com>
15303
15304         git-version-gen: convert leading TABs to spaces
15305         * build-aux/git-version-gen: Expand leading TABs.
15306
15307         git-version-gen: handle failed "git rev-list"
15308         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15309         from git and proceeding as if it had succeeded but printed no SHA1
15310         checksums, suppress the diagnostic and handle the failure.
15311         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15312
15313         git-version-gen: include command name in one more diagnostic
15314         * build-aux/git-version-gen: When the required .tarball-version file
15315         was missing or unreadable, you might see the diagnostic from "cat",
15316         but no trace of the name of the invoking script.  Now, you still see
15317         the diagnostic from cat, but also get one from "git-version-gen: ".
15318         Inspired by a patch from Bruce Korb.
15319
15320         update-copyright: adjust test to match changed code
15321         * tests/test-update-copyright.sh: Change test's expected output
15322         to match new actual output.
15323
15324 2011-01-02  Bruno Haible  <bruno@clisp.org>
15325
15326         getlogin_r: Avoid test failure on HP-UX 11.
15327         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15328         ERANGE when the second argument is zero.
15329         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15330         portability problem.
15331
15332 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15333
15334         * build-aux/update-copyright: doc Simon's changes
15335
15336 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15337
15338         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15339         environment variable.
15340
15341 2011-01-02  Bruno Haible  <bruno@clisp.org>
15342
15343         unigbrk: Avoid gcc warnings.
15344         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15345         unused variable.
15346         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15347         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15348         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15349         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15350         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15351         Change type of first argument to 'const char *'.
15352         (main): Remove unused variable.
15353         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15354         type of first argument to 'const char *'.
15355         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15356         Likewise.
15357         (main): Change type of variable 's'.
15358         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15359         to 'int'.
15360
15361 2011-01-02  Bruno Haible  <bruno@clisp.org>
15362
15363         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15364         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15365         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15366         bug.
15367         * lib/pwrite.c: Undo 2010-12-31 patch.
15368         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15369
15370 2011-01-02  Bruno Haible  <bruno@clisp.org>
15371
15372         pread: Fix test whether it works.
15373         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15374
15375 2011-01-02  Bruno Haible  <bruno@clisp.org>
15376
15377         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15378         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15379         ends in "6". Don't require a specific month name. Try also the locale
15380         names found on HP-UX 11 and Solaris 7.
15381
15382 2011-01-02  Bruno Haible  <bruno@clisp.org>
15383
15384         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15385         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15386         C linkage.
15387         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15388
15389 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15390
15391         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15392         for consistency, since the "cluster" term is not used elsewhere.
15393         * lib/unigbrk.in.h: Update name.
15394         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15395         * lib/unigbrk/u16-grapheme-next.c: Update name.
15396         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15397         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15398         * lib/unigbrk/u32-grapheme-next.c: Update name.
15399         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15400         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15401         * lib/unigbrk/u8-grapheme-next.c: Update name.
15402         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15403         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15404         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15405         Suggested by Bruno Haible.
15406
15407 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15408
15409         Remove module 'u8-grapheme-len' as too redundant with
15410         'u8-grapheme-next'.
15411         * modules/unigbrk/u8-grapheme-len: Delete file.
15412         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15413         * lib/unigbrk.in.h: Remove prototype for deleted function.
15414         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15415         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15416
15417         Remove module 'u16-grapheme-len' as too redundant with
15418         'u16-grapheme-next'.
15419         * modules/unigbrk/u16-grapheme-len: Delete file.
15420         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15421         * lib/unigbrk.in.h: Remove prototype for deleted function.
15422         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15423         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15424
15425         Remove module 'u32-grapheme-len' as too redundant with
15426         'u32-grapheme-next'.
15427         * modules/unigbrk/u32-grapheme-len: Delete file.
15428         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15429         * lib/unigbrk.in.h: Remove prototype for deleted function.
15430         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15431         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15432
15433         Suggested by Bruno Haible.
15434
15435 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15436
15437         * unigbrk.in.h: Fix typo: "ben" => "been".
15438         Reported by Bruno Haible.
15439
15440 2011-01-01  Jim Meyering  <meyering@redhat.com>
15441
15442         maint: update almost all copyright ranges to include 2011
15443         Run the new "make update-copyright" rule.
15444
15445 2011-01-01  Jim Meyering  <meyering@redhat.com>
15446
15447         maint: update-copyright: exempt doc/INSTALL*
15448         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15449         since they are generated.  Suggested by Bruno Haible.
15450
15451 2011-01-01  Jim Meyering  <meyering@redhat.com>
15452
15453         maint: refine the update-copyright rule
15454         * Makefile (update-copyright): Also exclude any file that includes
15455         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15456         code that merely generates the comment.
15457
15458 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15459
15460         New module 'u8-grapheme-len'.
15461         * modules/unigbrk/u8-grapheme-len: New file.
15462         * modules/unigbrk/u8-grapheme-len-tests: New file.
15463         * lib/unigbrk.in.h: Add prototype for new function.
15464         * lib/unigbrk/u8-grapheme-len.c: New file.
15465         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15466
15467         New module 'u16-grapheme-len'.
15468         * modules/unigbrk/u16-grapheme-len: New file.
15469         * modules/unigbrk/u16-grapheme-len-tests: New file.
15470         * lib/unigbrk.in.h: Add prototype for new function.
15471         * lib/unigbrk/u16-grapheme-len.c: New file.
15472         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15473
15474         New module 'u32-grapheme-len'.
15475         * modules/unigbrk/u32-grapheme-len: New file.
15476         * modules/unigbrk/u32-grapheme-len-tests: New file.
15477         * lib/unigbrk.in.h: Add prototype for new function.
15478         * lib/unigbrk/u32-grapheme-len.c: New file.
15479         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15480
15481         New module 'u8-grapheme-next'.
15482         * modules/unigbrk/u8-grapheme-next: New file.
15483         * modules/unigbrk/u8-grapheme-next-tests: New file.
15484         * lib/unigbrk.in.h: Add prototype for new function.
15485         * lib/unigbrk/u8-grapheme-next.c: New file.
15486         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15487
15488         New module 'u16-grapheme-next'.
15489         * modules/unigbrk/u16-grapheme-next: New file.
15490         * modules/unigbrk/u16-grapheme-next-tests: New file.
15491         * lib/unigbrk.in.h: Add prototype for new function.
15492         * lib/unigbrk/u16-grapheme-next.c: New file.
15493         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15494
15495         New module 'u32-grapheme-next'.
15496         * modules/unigbrk/u32-grapheme-next: New file.
15497         * modules/unigbrk/u32-grapheme-next-tests: New file.
15498         * lib/unigbrk.in.h: Add prototype for new function.
15499         * lib/unigbrk/u32-grapheme-next.c: New file.
15500         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15501
15502         New module 'u8-grapheme-prev'.
15503         * modules/unigbrk/u8-grapheme-prev: New file.
15504         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15505         * lib/unigbrk.in.h: Add prototype for new function.
15506         * lib/unigbrk/u8-grapheme-prev.c: New file.
15507         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15508
15509         New module 'u16-grapheme-prev'.
15510         * modules/unigbrk/u16-grapheme-prev: New file.
15511         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15512         * lib/unigbrk.in.h: Add prototype for new function.
15513         * lib/unigbrk/u16-grapheme-prev.c: New file.
15514         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15515
15516         New module 'u32-grapheme-prev'.
15517         * modules/unigbrk/u32-grapheme-prev: New file.
15518         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15519         * lib/unigbrk.in.h: Add prototype for new function.
15520         * lib/unigbrk/u32-grapheme-prev.c: New file.
15521         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15522
15523         New module 'u8-grapheme-breaks'.
15524         * modules/unigbrk/u8-grapheme-breaks: New file.
15525         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15526         * lib/unigbrk.in.h: Add prototype for new function.
15527         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15528         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15529
15530         New module 'u16-grapheme-breaks'.
15531         * modules/unigbrk/u16-grapheme-breaks: New file.
15532         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15533         * lib/unigbrk.in.h: Add prototype for new function.
15534         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15535         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15536
15537         New module 'u32-grapheme-breaks'.
15538         * modules/unigbrk/u32-grapheme-breaks: New file.
15539         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15540         * lib/unigbrk.in.h: Add prototype for new function.
15541         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15542         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15543
15544         New module 'ulc-grapheme-breaks'.
15545         * modules/unigbrk/ulc-grapheme-breaks: New file.
15546         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15547         * m4/locale-ar.m4: New file.
15548         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15549         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15550         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15551
15552 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15553
15554         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15555         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15556         modified how this file was generated before I initially submitted
15557         the module, but failed to regenerate it.  This meant that several
15558         of the level2 entries were wrong.
15559         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15560         Remove the division-by-2 that is folded into the table now that
15561         gbrkprop.h has been regenerated properly.  Now -1 entries are
15562         handled correctly.
15563
15564         New module 'unigbrk/uc-gbrk-prop-tests'.
15565         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15566         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15567         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15568         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15569
15570 2011-01-01  Bruno Haible  <bruno@clisp.org>
15571
15572         Avoid use of hexadecimal escapes.
15573         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15574         instead of hexadecimal escapes.
15575
15576 2011-01-01  Jim Meyering  <meyering@redhat.com>
15577
15578         maint: new rule to update copyright year ranges
15579         * Makefile (update-copyright): New rule.
15580
15581         maint: indent with TABs in Makefile
15582         * Makefile: Expand leading sequences of spaces to TABs
15583
15584         version-etc: update the copyright year it reports
15585         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15586
15587 2010-12-31  Bruno Haible  <bruno@clisp.org>
15588
15589         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15590         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15591         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15592         zero.
15593
15594 2010-12-31  Bruno Haible  <bruno@clisp.org>
15595
15596         pwrite: Work around HP-UX 11.11 bug.
15597         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15598         works and set REPLACE_PWRITE if not.
15599         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15600         function.
15601         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15602
15603 2010-12-31  Bruno Haible  <bruno@clisp.org>
15604
15605         pread: Work around HP-UX 11 bugs.
15606         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15607         and set REPLACE_PREAD if not.
15608         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15609
15610 2010-12-31  Eric Blake  <eblake@redhat.com>
15611
15612         nl_langinfo: fix YESEXPR on Irix 6.5
15613         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15614         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15615         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15616         it.
15617
15618 2010-12-31  Bruno Haible  <bruno@clisp.org>
15619
15620         iconv: Document HP-UX 11 bug.
15621         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15622
15623 2010-12-31  Bruno Haible  <bruno@clisp.org>
15624
15625         ldexpl: Fix link error on HP-UX 11.
15626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15627         LDEXPL_LIBM, using $ISNANL_LIBM.
15628
15629 2010-12-31  Eric Blake  <eblake@redhat.com>
15630
15631         ftello: avoid compilation failure with SunStudio c89
15632         * lib/ftello.c (ftello): Use lseek, not llseek.
15633
15634         tests: avoid failing coreutils tests on cygwin
15635         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15636         (create_exe_shims_): Return 0 when skipping.
15637
15638 2010-12-31  Bruno Haible  <bruno@clisp.org>
15639
15640         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15641         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15642
15643 2010-12-31  Bruno Haible  <bruno@clisp.org>
15644
15645         waitpid: Fix link error in C++ mode.
15646         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15647
15648 2010-12-31  Bruno Haible  <bruno@clisp.org>
15649
15650         isnan: Use GCC built-ins when possible.
15651         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15652         __builtin_isnan.
15653         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15654         (isnan): Define using GCC built-ins for GCC >= 4.0.
15655
15656 2010-12-31  Bruno Haible  <bruno@clisp.org>
15657
15658         isnand: Fix mistake.
15659         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15660         __builtin_isnand.
15661
15662 2010-12-31  Bruno Haible  <bruno@clisp.org>
15663
15664         open: Avoid C++ error on HP-UX 11.
15665         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15666
15667 2010-12-31  Bruno Haible  <bruno@clisp.org>
15668
15669         time_r: Add missing declarations on HP-UX 11.
15670         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15671         instead of HAVE_LOCALTIME_R.
15672         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15673         HAVE_LOCALTIME_R always.
15674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15675         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15676         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15677         HAVE_LOCALTIME_R.
15678         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15679         * doc/posix-functions/localtime_r.texi: Likewise.
15680
15681 2010-12-29  Eric Blake  <eblake@redhat.com>
15682
15683         mountlist: tweak previous commit
15684         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15685         Reported by Paul Eggert.
15686
15687         mountlist: fix local drive detection on cygwin
15688         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15689         that works for cygwin.
15690
15691 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15692
15693         ftoastr, snprintf: ftoastr + snprintf module
15694         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15695         since the snprintf module now should be good enough here.
15696         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15697         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15698         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15699         GNULIB_SNPRINTF only for the test directory, and the latter
15700         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15701         seems to suffice by itself.
15702
15703 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15704
15705         alloca: one step towards thread-safety
15706         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15707         need for a static variable.  All callers changed.  This does not
15708         make the alloca replacement thread-safe, but it's one step.
15709
15710         tests: minor indenting change
15711         * tests/init.sh: Sync from coreutils housekeeping patch
15712         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15713         to keep lines within 80 columns.
15714
15715 2010-12-28  Jim Meyering  <meyering@redhat.com>
15716
15717         regex: don't infloop on persistent failing calloc
15718         * lib/regexec.c (build_trtable): Return failure indication upon
15719         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15720         In glibc, this was fixed for version 2.13:
15721         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15722
15723 2010-12-28  Bruno Haible  <bruno@clisp.org>
15724             Paul Eggert <eggert@cs.ucla.edu>
15725
15726         linkat: Make implementation robust against system behaviour variations.
15727         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15728         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15729         way, and to -2 if it needs a generic runtime test.
15730         * lib/linkat.c (solaris_optimized_link_immediate,
15731         solaris_optimized_link_follow): New functions.
15732         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15733         (check_same_link): Use it.
15734
15735 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15736
15737         New module 'unigbrk/base'.
15738         * modules/unigbrk/base: New file.
15739         * lib/unigbrk.in.h: New file.
15740
15741         New module 'unigbrk/uc-gbrk-prop'.
15742         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15743         * modules/unigbrk/uc-gbrk-prop: New file.
15744         * lib/unigbrk/gbrkprop.h: New file.
15745         * lib/unigbrk/uc-gbrk-prop.c: New file.
15746
15747         New module 'unigbrk/uc-is-grapheme-break'.
15748         * modules/unigbrk/uc-is-grapheme-break: New file.
15749         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15750         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15751         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15752         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15753         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15754
15755         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15756
15757 2010-12-27  Bruno Haible  <bruno@clisp.org>
15758
15759         linkat test: Avoid failure on Solaris 11 2010-11.
15760         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15761
15762 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         utimens: work around glibc rounding bug on more platforms
15765         * lib/utimens.c (fdutimens): Work around rounding bug even if
15766         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15767         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15768
15769 2010-12-27  Bruno Haible  <bruno@clisp.org>
15770
15771         select tests: Improve comments.
15772         * tests/test-select.c (do_select): Add comments.
15773
15774 2010-12-27  Bruno Haible  <bruno@clisp.org>
15775
15776         select tests: Safer way of handling timeout.
15777         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15778         at every invocation.
15779
15780 2010-12-27  Bruno Haible  <bruno@clisp.org>
15781
15782         select tests: Use 'bool' where appropriate.
15783         * tests/test-select.c (connect_to_socket): Change argument type to
15784         'bool'.
15785
15786 2010-12-27  Bruno Haible  <bruno@clisp.org>
15787
15788         select tests: Use existing modules.
15789         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15790         (configure.ac): Don't test for unistd.h.
15791         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15792         declared in <unistd.h>.
15793
15794 2010-12-27  Bruno Haible  <bruno@clisp.org>
15795
15796         mbrtowc: Work around a Solaris 7 bug.
15797         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15798         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15799         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15800         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15801         MBRTOWC_NULL_ARG1_BUG.
15802         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15803         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15804         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15805         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15806
15807 2010-12-27  Jim Meyering  <meyering@redhat.com>
15808
15809         read-file.c: tweak syntax
15810         * lib/read-file.c (fread_file): Remove space after "*" in function
15811         definitions.
15812
15813 2010-12-27  Bruno Haible  <bruno@clisp.org>
15814
15815         times test: Avoid gcc warnings on OSF/1.
15816         * tests/test-times.c (main): Cast printf arguments from clock_t to
15817         'long int'.
15818
15819 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15820
15821         utimens: work around glibc rounding bug on older Linux kernels
15822         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15823         on Linux with a glibc whose utimes might not work, then work
15824         around a longstanding glibc bug involving rounding rather than
15825         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15826         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15827
15828 2010-12-26  Bruno Haible  <bruno@clisp.org>
15829
15830         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15831         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15832         _GL_CXXALIAS_SYS.
15833         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15834
15835 2010-12-26  Bruno Haible  <bruno@clisp.org>
15836
15837         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15838         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15839         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15840         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15841         looking for the declaration.
15842         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15843         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15844         problem.
15845         * doc/posix-functions/inet_pton.texi: Likewise.
15846
15847 2010-12-26  Bruno Haible  <bruno@clisp.org>
15848
15849         arpa_inet: Use the common idioms with C++ support.
15850         * lib/arpa_inet.in.h: Include c++defs.h.
15851         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15852         support.
15853         * modules/arpa_inet (Depends-on): Add c++defs.
15854         (Makefile.am): Substitute the contents of c++defs.h.
15855         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15856         * modules/arpa_inet-c++-tests: New file.
15857         * tests/test-arpa_inet-c++.cc: New file.
15858
15859 2010-12-25  Bruno Haible  <bruno@clisp.org>
15860
15861         Fix more C++ link errors on Solaris 8.
15862         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15863         $(LIB_EACCESS).
15864         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15865         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15866         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15867         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15868         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15869
15870 2010-12-25  Bruno Haible  <bruno@clisp.org>
15871
15872         printf-posix: Fix link error when a non-GCC compiler is used.
15873         * lib/stdio.in.h (printf): When not using GCC, override printf
15874         correctly.
15875         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15876
15877 2010-12-25  Bruno Haible  <bruno@clisp.org>
15878
15879         strerror_r-posix: Update doc.
15880         * doc/posix-functions/strerror_r.texi: Update doc about the return
15881         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15882
15883 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15884
15885         utimens: simplify the logic of the previous change
15886         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15887         This should not affect whether the test succeeds or fails.
15888
15889         utimens: configure better on hosts with NFS clock skew
15890         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15891         uses the clock of the local host.  It might use the clock of the
15892         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15893         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15894
15895 2010-12-25  Bruno Haible  <bruno@clisp.org>
15896
15897         ptsname test: Avoid failure on Solaris.
15898         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15899         open a pseudo-terminal; don't use BSD-style ptys.
15900         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15901
15902 2010-12-25  Bruno Haible  <bruno@clisp.org>
15903
15904         ptsname: Avoid ERANGE failure on some systems.
15905         * lib/ptsname.c (buffer): Increase size.
15906
15907 2010-12-25  Bruno Haible  <bruno@clisp.org>
15908
15909         rename, renameat: Avoid test failures at NFS mounted locations.
15910         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15911         so that subsequent mkdir calls succeed.
15912
15913 2010-12-25  Bruno Haible  <bruno@clisp.org>
15914
15915         iswblank: Fix C++ link error on Solaris 8.
15916         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15917         _GL_FUNCDECL_SYS.
15918
15919 2010-12-25  Bruno Haible  <bruno@clisp.org>
15920
15921         unistd: Fix C++ link error on Solaris 8.
15922         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15923
15924 2010-12-25  Bruno Haible  <bruno@clisp.org>
15925
15926         readlink doc: Mention an old glibc bug.
15927         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15928
15929 2010-12-25  Bruno Haible  <bruno@clisp.org>
15930
15931         fcntl-h: Fix for use of C++ on glibc systems.
15932         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15933         also on glibc systems in C++ mode.
15934         Reported by Gary V. Vaughan <gary@gnu.org>.
15935
15936 2010-12-25  Bruno Haible  <bruno@clisp.org>
15937
15938         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15939         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15940
15941 2010-12-25  Bruno Haible  <bruno@clisp.org>
15942
15943         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15944         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15945         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15946         test whether truncl works according to ISO C 99 with IEC 60559.
15947         * m4/truncl-ieee.m4: New file.
15948         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15949         m4/signbit.m4.
15950         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15951
15952 2010-12-25  Bruno Haible  <bruno@clisp.org>
15953
15954         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15955         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15956         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15957         test whether ceill works according to ISO C 99 with IEC 60559.
15958         * m4/ceill-ieee.m4: New file.
15959         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15960         m4/signbit.m4.
15961         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15962
15963 2010-12-25  Bruno Haible  <bruno@clisp.org>
15964
15965         Ensure all prerequisites of <wchar.h> are included.
15966         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15967         before <wchar.h>.
15968         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15969         gl_MBRLEN_NUL_RETVAL): Likewise.
15970         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15971         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15972         AC_FUNC_MBRTOWC): Likewise.
15973         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15974         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15975         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15976         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15977         Likewise.
15978         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15979         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15980         (gl_WCHAR_H): Improve comments.
15981         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15982
15983 2010-12-25  Bruno Haible  <bruno@clisp.org>
15984
15985         strtok_r: Fix C syntax error in autoconf macro.
15986         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15987         characters in test program.
15988
15989 2010-12-24  Bruno Haible  <bruno@clisp.org>
15990
15991         ceil, trunc, round: Fix gcc warnings.
15992         * lib/ceil.c (MIN): Undefine before redefining.
15993         * lib/trunc.c (MIN): Likewise.
15994         * lib/round.c (MIN): Likewise.
15995         Include <math.h> first.
15996
15997 2010-12-24  Bruno Haible  <bruno@clisp.org>
15998
15999         select tests: Avoid failures on OSF/1 5.1.
16000         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16001         failure of closing the last socket; it may fail with ECONNRESET.
16002
16003 2010-12-24  Eric Blake  <eblake@redhat.com>
16004
16005         stdint: avoid HP-UX 10.20 preprocessor bug
16006         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16007         than #if.
16008         * tests/test-floor2.c (main): Likewise.
16009         Reported by Peter O'Gorman.
16010
16011         pipe: make obsoletion transition easier
16012         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16013         * modules/pipe (Files): Include revived file.
16014         (Include): Drop reference, to mirror getdate's behavior.
16015
16016 2010-12-24  Bruno Haible  <bruno@clisp.org>
16017
16018         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16019         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16020         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16021         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16022
16023 2010-12-24  Bruno Haible  <bruno@clisp.org>
16024
16025         gethostname: Ensure declaration on NonStop Kernel.
16026         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16027         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16028
16029 2010-12-24  Bruno Haible  <bruno@clisp.org>
16030
16031         sys_select: Ensure all necessary types on NonStop Kernel.
16032         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16033         include <sys/time.h>.
16034         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16035         NonStop Kernel.
16036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16037
16038 2010-12-24  Bruno Haible  <bruno@clisp.org>
16039
16040         sys_select: Remove unneeded include.
16041         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16042         have <sys/select.h>.
16043
16044 2010-12-24  Bruno Haible  <bruno@clisp.org>
16045
16046         gethostname: Provide a fallback for HOST_NAME_MAX.
16047         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16048         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16049         instead.
16050         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16051
16052 2010-12-24  Bruno Haible  <bruno@clisp.org>
16053
16054         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16055         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16056         (SA_RESTART): Likewise.
16057         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16058
16059 2010-12-24  Bruno Haible  <bruno@clisp.org>
16060
16061         signal: Define NSIG.
16062         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16063         * tests/test-signal.c (nsig): New variable.
16064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16065
16066 2010-12-24  Bruno Haible  <bruno@clisp.org>
16067
16068         rename, renameat: Avoid test failures on OSF/1 5.1.
16069         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16070         alternative error codes.
16071         * tests/test-renameat.c (main): Likewise.
16072
16073 2010-12-24  Bruno Haible  <bruno@clisp.org>
16074
16075         *printf: Detect large precisions bug on Solaris 10/SPARC.
16076         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16077         by Paul Eggert.
16078         * tests/test-snprintf-posix.h (test_function): Add this test code here
16079         too.
16080         * tests/test-sprintf-posix.h (test_function): Likewise.
16081         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16082         * tests/test-vasprintf-posix.c (test_function): Likewise.
16083         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16084         around by gnulib.
16085         * doc/posix-functions/printf.texi: Likewise.
16086         * doc/posix-functions/snprintf.texi: Likewise.
16087         * doc/posix-functions/sprintf.texi: Likewise.
16088         * doc/posix-functions/vfprintf.texi: Likewise.
16089         * doc/posix-functions/vprintf.texi: Likewise.
16090         * doc/posix-functions/vsnprintf.texi: Likewise.
16091         * doc/posix-functions/vsprintf.texi: Likewise.
16092         * doc/posix-functions/dprintf.texi: Undo last commit.
16093         * doc/posix-functions/vdprintf.texi: Likewise.
16094
16095 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         tests: port test-fdutimensat.c to Solaris 8
16098         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16099         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16100         On Solaris 8, it fails with errno == ENOSYS, because there is no
16101         futimens (so it can't use the fd), and there is no lutimens (so it
16102         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16103
16104         vsnprintf: make more consistent with snprintf; doc fixes
16105
16106         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16107         the byte count return problem was promoted from the snprintf-posix
16108         to the snprintf module.
16109         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16110         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16111         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16112         * tests/test-snprintf.c (main): Check the byte count returned.
16113         * tests/test-vsnprintf.c (main): Likewise.
16114
16115 2010-12-23  Eric Blake  <eblake@redhat.com>
16116
16117         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16118         * modules/sigpipe (License): Relax license.
16119
16120 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16121
16122         doc: document Solaris printf bug with large float precisions
16123         * doc/posix-functions/dprintf.texi (dprintf):
16124         * doc/posix-functions/fprintf.texi (fprintf):
16125         * doc/posix-functions/printf.texi (printf):
16126         * doc/posix-functions/snprintf.texi (snprintf):
16127         * doc/posix-functions/sprintf.texi (sprintf):
16128         * doc/posix-functions/vdprintf.texi (vdprintf):
16129         * doc/posix-functions/vfprintf.texi (vfprintf):
16130         * doc/posix-functions/vprintf.texi (vprintf):
16131         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16132         * doc/posix-functions/vsprintf.texi (vsprintf):
16133         Mention that these functions mishandle large floating point
16134         precisions on Solaris 10.  The same bug is also present in Solaris
16135         8, and I assume earlier.  This causes "cd gnulib-tests; make
16136         check" to fail on Solaris 8 (and I assume, later) when building
16137         the latest coreutils, in test-vasprintf-posix's call to
16138         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16139         the wide flavors (e.g., wprintf) so this patch just updates the
16140         documentation for the narrow ones.
16141
16142         test-posixtm.c: add two tests
16143         * tests/test-posixtm.c: Add two tests, to highlight the
16144         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16145         around this bug; this is merely to document it.
16146
16147 2010-12-22  Bruno Haible  <bruno@clisp.org>
16148
16149         getlogin_r: Work around portability problem on OSF/1.
16150         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16151         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16152         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16153         test for a truncated result.
16154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16155         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16156         * modules/getlogin_r (Depends-on): Add memchr.
16157         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16158
16159 2010-12-22  Bruno Haible  <bruno@clisp.org>
16160
16161         ptsname: Avoid test failure on OSF/1 5.1.
16162         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16163         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16164         (same_slave): New function.
16165         (main): Use it to compare ptsname's result with the expected file name.
16166
16167 2010-12-22  Bruno Haible  <bruno@clisp.org>
16168
16169         Port extended stdio modules to HP NonStop Kernel.
16170         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16171         macros.
16172         * lib/fbufmode.c: Update comments.
16173         * lib/fflush.c: Likewise.
16174         * lib/fpurge.c: Likewise.
16175         * lib/freadable.c: Likewise.
16176         * lib/freadahead.c: Likewise.
16177         * lib/freading.c: Likewise.
16178         * lib/freadptr.c: Likewise.
16179         * lib/freadseek.c: Likewise.
16180         * lib/fseeko.c: Likewise.
16181         * lib/fseterr.c: Likewise.
16182         * lib/fwritable.c: Likewise.
16183         * lib/fwriting.c: Likewise.
16184         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16185
16186 2010-12-22  Bruno Haible  <bruno@clisp.org>
16187
16188         ttyname_r: Work around bug on OSF/1 5.1.
16189         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16190         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16191         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16192         present.
16193         * lib/ttyname_r.c (ttyname_r): Update comments.
16194
16195 2010-12-22  Bruno Haible  <bruno@clisp.org>
16196
16197         round: Implement result sign according to IEEE 754.
16198         * lib/round.c (MIN, MINUS_ZERO): New macros.
16199         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16200         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16201         * tests/test-round-ieee.c (main): Likewise.
16202         * tests/test-roundl-ieee.c (main): Likewise.
16203
16204         trunc: Implement result sign according to IEEE 754.
16205         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16206         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16207         * tests/test-trunc2.c: Include minus-zero.h.
16208         (MINUS_ZERO): New macro.
16209         (trunc_reference): Keep in sync with lib/trunc.c.
16210         * tests/test-truncf2.c: Include minus-zero.h.
16211         (MINUS_ZERO): New macro.
16212         (truncf_reference): Keep in sync with lib/trunc.c.
16213         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16214         * tests/test-trunc-ieee.c (main): Likewise.
16215         * tests/test-truncl-ieee.c (main): Likewise.
16216
16217         ceil: Implement result sign according to IEEE 754.
16218         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16219         (FUNC): Return -0.0 for -1 < x < 0.
16220         * tests/test-ceil2.c: Include minus-zero.h.
16221         (MINUS_ZERO): New macro.
16222         (ceil_reference): Keep in sync with lib/ceil.c.
16223         * tests/test-ceilf2.c: Include minus-zero.h.
16224         (MINUS_ZERO): New macro.
16225         (ceilf_reference): Keep in sync with lib/ceil.c.
16226         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16227         * tests/test-ceil-ieee.c (main): Likewise.
16228         * tests/test-ceill-ieee.c (main): Likewise.
16229
16230         floor: Implement result sign according to IEEE 754.
16231         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16232         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16233         * tests/test-floorf2.c (floorf_reference): Likewise.
16234         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16235         * tests/test-floor-ieee.c (main): Likewise.
16236         * tests/test-floorl-ieee.c (main): Likewise.
16237
16238 2010-12-22  Bruno Haible  <bruno@clisp.org>
16239
16240         getaddrinfo: Update doc.
16241         * doc/posix-functions/gai_strerror.texi: Return type is also different
16242         on AIX and HP-UX.
16243
16244 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16245
16246         getaddrinfo, inet_ntop: Update doc for Solaris.
16247         * doc/posix-functions/gai_strerror.texi: Return type is also an
16248         issue on Solaris 9 and earlier.
16249         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16250         on Solaris 10 and earlier.
16251
16252 2010-12-21  Bruno Haible  <bruno@clisp.org>
16253
16254         New module 'roundl-ieee'.
16255         * modules/roundl-ieee: New file.
16256         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16257         test whether roundl works according to ISO C 99 with IEC 60559.
16258         * m4/roundl-ieee.m4: New file.
16259         * modules/roundl-ieee-tests: New file.
16260         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16261         * tests/test-roundl.c (main): Remove signbit tests.
16262         * modules/roundl-tests (Depends-on): Remove signbit.
16263         * doc/posix-functions/roundl.texi: Mention the new module.
16264
16265 2010-12-21  Bruno Haible  <bruno@clisp.org>
16266
16267         New module 'truncl-ieee'.
16268         * modules/truncl-ieee: New file.
16269         * modules/truncl-ieee-tests: New file.
16270         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16271         * tests/test-truncl.c (main): Remove signbit tests.
16272         * modules/truncl-tests (Depends-on): Remove signbit.
16273         * doc/posix-functions/truncl.texi: Mention the new module.
16274
16275 2010-12-21  Bruno Haible  <bruno@clisp.org>
16276
16277         New module 'ceill-ieee'.
16278         * modules/ceill-ieee: New file.
16279         * modules/ceill-ieee-tests: New file.
16280         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16281         * tests/test-ceill.c (main): Remove signbit tests.
16282         * modules/ceill-tests (Depends-on): Remove signbit.
16283         * doc/posix-functions/ceill.texi: Mention the new module.
16284
16285 2010-12-21  Bruno Haible  <bruno@clisp.org>
16286
16287         New module 'floorl-ieee'.
16288         * modules/floorl-ieee: New file.
16289         * modules/floorl-ieee-tests: New file.
16290         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16291         * tests/test-floorl.c (main): Remove signbit tests.
16292         * modules/floorl-tests (Depends-on): Remove signbit.
16293         * doc/posix-functions/floorl.texi: Mention the new module.
16294
16295 2010-12-21  Bruno Haible  <bruno@clisp.org>
16296
16297         New module 'round-ieee'.
16298         * modules/round-ieee: New file.
16299         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16300         whether round works according to ISO C 99 with IEC 60559.
16301         * m4/round-ieee.m4: New file.
16302         * modules/round-ieee-tests: New file.
16303         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16304         * tests/test-round1.c (main): Remove signbit tests.
16305         * modules/round-tests (Depends-on): Remove 'signbit'.
16306         * doc/posix-functions/round.texi: Mention the new module.
16307
16308 2010-12-21  Bruno Haible  <bruno@clisp.org>
16309
16310         New module 'trunc-ieee'.
16311         * modules/trunc-ieee: New file.
16312         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16313         whether trunc works according to ISO C 99 with IEC 60559.
16314         * m4/trunc-ieee.m4: New file.
16315         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16317         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16318         * modules/trunc-ieee-tests: New file.
16319         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16320         * tests/test-trunc1.c (main): Remove signbit tests.
16321         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16322         * doc/posix-functions/trunc.texi: Mention the new module.
16323
16324 2010-12-21  Bruno Haible  <bruno@clisp.org>
16325
16326         New module 'ceil-ieee'.
16327         * modules/ceil-ieee: New file.
16328         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16329         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16330         ISO C 99 with IEC 60559.
16331         * m4/ceil-ieee.m4: New file.
16332         * modules/ceil (Files): Add lib/ceil.c.
16333         (Depends-on): Add 'float'.
16334         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16335         * lib/math.in.h (ceil): New declaration.
16336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16337         REPLACE_CEIL.
16338         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16339         * modules/ceil-ieee-tests: New file.
16340         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16341         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16342         * doc/posix-functions/ceil.texi: Mention the new module.
16343
16344 2010-12-21  Bruno Haible  <bruno@clisp.org>
16345
16346         New module 'floor-ieee'.
16347         * modules/floor-ieee: New file.
16348         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16349         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16350         ISO C 99 with IEC 60559.
16351         * m4/floor-ieee.m4: New file.
16352         * modules/floor (Files): Add lib/floor.c.
16353         (Depends-on): Add 'float'.
16354         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16355         * lib/math.in.h (floor): New declaration.
16356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16357         REPLACE_FLOOR.
16358         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16359         * modules/floor-ieee-tests: New file.
16360         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16361         * tests/test-math-c++.cc: Check the signature of 'floor'.
16362         * doc/posix-functions/floor.texi: Mention the new module.
16363
16364 2010-12-21  Bruno Haible  <bruno@clisp.org>
16365
16366         New module 'roundf-ieee'.
16367         * modules/roundf-ieee: New file.
16368         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16369         test whether roundf works according to ISO C 99 with IEC 60559.
16370         * m4/roundf-ieee.m4: New file.
16371         * modules/roundf-ieee-tests: New file.
16372         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16373         * tests/test-roundf1.c (main): Remove signbit tests.
16374         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16375         * doc/posix-functions/roundf.texi: Mention the new module.
16376
16377 2010-12-21  Bruno Haible  <bruno@clisp.org>
16378
16379         New module 'truncf-ieee'.
16380         * modules/truncf-ieee: New file.
16381         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16382         test whether truncf works according to ISO C 99 with IEC 60559.
16383         * m4/truncf-ieee.m4: New file.
16384         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16386         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16387         * modules/truncf-ieee-tests: New file.
16388         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16389         * tests/test-truncf1.c (main): Remove signbit tests.
16390         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16391         * doc/posix-functions/truncf.texi: Mention the new module.
16392
16393 2010-12-21  Bruno Haible  <bruno@clisp.org>
16394
16395         New module 'ceilf-ieee'.
16396         * modules/ceilf-ieee: New file.
16397         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16398         test whether ceilf works according to ISO C 99 with IEC 60559.
16399         * m4/ceilf-ieee.m4: New file.
16400         * modules/ceilf-ieee-tests: New file.
16401         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16402         * tests/test-ceilf1.c (main): Remove signbit tests.
16403         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16404         * doc/posix-functions/ceilf.texi: Mention the new module.
16405
16406 2010-12-21  Bruno Haible  <bruno@clisp.org>
16407
16408         New module 'floorf-ieee'.
16409         * modules/floorf-ieee: New file.
16410         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16411         test whether floorf works according to ISO C 99 with IEC 60559.
16412         * m4/floorf-ieee.m4: New file.
16413         * modules/floorf-ieee-tests: New file.
16414         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16415         * tests/test-floorf1.c (main): Remove signbit tests.
16416         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16417         * doc/posix-functions/floorf.texi: Mention the new module.
16418
16419 2010-12-21  Bruno Haible  <bruno@clisp.org>
16420
16421         Support for minus zero in autoconf macros.
16422         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16423         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16424         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16425         * tests/minus-zero.h: Update comments.
16426
16427 2010-12-21  Bruno Haible  <bruno@clisp.org>
16428
16429         Tests for module 'ceil'.
16430         * modules/ceil-tests: New file.
16431         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16432         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16433
16434 2010-12-21  Bruno Haible  <bruno@clisp.org>
16435
16436         Tests for module 'floor'.
16437         * modules/floor-tests: New file.
16438         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16439         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16440
16441 2010-12-21  Bruno Haible  <bruno@clisp.org>
16442
16443         math: Fix indentation.
16444         * lib/math.in.h (floorf): Fix indentation.
16445
16446 2010-12-21  Bruno Haible  <bruno@clisp.org>
16447
16448         Fix cross-compilation guesses on Solaris.
16449         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16450         not match "solaris2.10".
16451         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16452         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16453         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16454
16455 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16456
16457         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16458         This fixes a problem observed with the latest coreutils snapshot
16459         that caused a test to fail on Solaris 8.  src/csplit.c's call
16460         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16461         earlier, instead of returning the number of bytes that would have
16462         been generated; this causes csplit to incorrectly report memory
16463         exhaustion.
16464         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16465         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16466         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16467         comments to match.
16468         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16469         Fix typo in matching older versions of Solaris: "solaris2.10"
16470         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16471         only for guessing while cross-compiling.
16472         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16473
16474 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16475
16476         ftoastr: fix comment again
16477         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16479         Also, simplify example a bit by using flags = 0.
16480
16481 2010-12-20  Bruno Haible  <bruno@clisp.org>
16482
16483         round*, trunc*: Update documentation regarding glibc.
16484         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16485         * doc/posix-functions/round.texi: Likewise.
16486         * doc/posix-functions/roundl.texi: Likewise.
16487         * doc/posix-functions/truncf.texi: Likewise.
16488         * doc/posix-functions/trunc.texi: Likewise.
16489         * doc/posix-functions/truncl.texi: Likewise.
16490
16491 2010-12-20  Bruno Haible  <bruno@clisp.org>
16492
16493         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16494         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16495         * doc/posix-functions/round.texi: Likewise.
16496         * doc/posix-functions/roundl.texi: Likewise.
16497
16498 2010-12-20  Bruno Haible  <bruno@clisp.org>
16499
16500         ttyname_r: Add missing declaration on HP-UX 11.
16501         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16502         HAVE_TTYNAME_R.
16503         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16504         declared. Set HAVE_TTYNAME_R always.
16505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16506         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16507         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16508         HAVE_TTYNAME_R.
16509         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16510
16511 2010-12-20  Bruno Haible  <bruno@clisp.org>
16512
16513         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16514         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16515         * doc/posix-functions/getlogin_r.texi: Likewise.
16516         * tests/test-getlogin.c: Include <errno.h>.
16517         (main): Avoid test failure on HP-UX 11.11.
16518         * tests/test-getlogin_r.c (main): Likewise.
16519
16520 2010-12-20  Bruno Haible  <bruno@clisp.org>
16521
16522         getlogin_r: Add missing declaration on HP-UX 11.
16523         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16524         declared also when it exists as a function.
16525         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16526
16527 2010-12-20  Bruno Haible  <bruno@clisp.org>
16528
16529         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16530         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16531         through wcrtomb.
16532
16533 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16534
16535         ftoastr: fix comment
16536         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16537         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16538
16539 2010-12-19  Bruno Haible  <bruno@clisp.org>
16540
16541         isnan: Ensure it is a macro.
16542         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16543         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16544         Solaris.
16545
16546 2010-12-19  Bruno Haible  <bruno@clisp.org>
16547
16548         ldexpl test: Fix link error on OSF/1 5.1.
16549         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16550
16551 2010-12-19  Bruno Haible  <bruno@clisp.org>
16552
16553         wctype: Make it work in C++ mode on OSF/1 5.1.
16554         * lib/wctype.in.h (iswblank): Declare but not define here.
16555         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16556         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16557         * modules/wctype (Files): Add lib/iswblank.c.
16558
16559 2010-12-19  Bruno Haible  <bruno@clisp.org>
16560
16561         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16562         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16563         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16564
16565 2010-12-19  Bruno Haible  <bruno@clisp.org>
16566
16567         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16569         _POSIX_PII_SOCKET.
16570         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16571         * doc/posix-functions/recvfrom.texi: Likewise.
16572         * doc/posix-functions/send.texi: Likewise.
16573         * doc/posix-functions/sendto.texi: Likewise.
16574
16575 2010-12-19  Bruno Haible  <bruno@clisp.org>
16576
16577         tcgetsid: Add missing declaration on OSF/1 5.1.
16578         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16579         HAVE_TCGETSID.
16580         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16581         Don't set HAVE_TCGETSID.
16582         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16583         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16584         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16585         HAVE_TCGETSID.
16586         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16587
16588 2010-12-19  Bruno Haible  <bruno@clisp.org>
16589
16590         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16591         * lib/stdio.in.h: During the include_next statement, let recursive
16592         includes of this file include only the system header file.
16593
16594 2010-12-19  Bruno Haible  <bruno@clisp.org>
16595
16596         iconv_open: Fix regression from 2010-12-04.
16597         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16598         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16599
16600 2010-12-19  Bruno Haible  <bruno@clisp.org>
16601
16602         stdbool test: Avoid a gcc warning.
16603         * tests/test-stdbool.c (main): Fail if e1 is false.
16604         Reported by Jim Meyering.
16605
16606 2010-12-19  Jim Meyering  <meyering@redhat.com>
16607
16608         setenv: restore to working order
16609         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16610         mistakenly removed.
16611         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16612         HAVE_SETENV.
16613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16614         HAVE_SETENV.
16615
16616 2010-12-19  Bruno Haible  <bruno@clisp.org>
16617
16618         Document some different function declarations on OSF/1 5.1.
16619         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16620         * doc/posix-functions/inet_ntop.texi: Likewise.
16621         * doc/posix-functions/gethostname.texi: Likewise.
16622         * lib/unistd.in.h (gethostname): Update comment.
16623
16624 2010-12-19  Bruno Haible  <bruno@clisp.org>
16625
16626         doc: Mention vasprintf-posix module.
16627         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16628         the 'vasprintf-posix' module.
16629         * doc/glibc-functions/vasprintf.texi: Likewise.
16630
16631 2010-12-19  Bruno Haible  <bruno@clisp.org>
16632
16633         unsetenv: Add missing declaration on OSF/1 5.1.
16634         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16635         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16636         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16638         not HAVE_UNSETENV.
16639         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16640         HAVE_UNSETENV.
16641         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16642
16643 2010-12-19  Bruno Haible  <bruno@clisp.org>
16644
16645         setenv: Add missing declaration on OSF/1 5.1.
16646         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16648         declared. Don't set HAVE_SETENV.
16649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16650         not HAVE_SETENV.
16651         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16652         HAVE_SETENV.
16653         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16654
16655 2010-12-19  Bruno Haible  <bruno@clisp.org>
16656
16657         nl_langinfo tests: Avoid gcc warning.
16658         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16659
16660 2010-12-19  Bruno Haible  <bruno@clisp.org>
16661
16662         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16663         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16664         _GL_CXXALIAS_SYS.
16665
16666 2010-12-19  Bruno Haible  <bruno@clisp.org>
16667
16668         stdbool: Relax test.
16669         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16670         address to 'bool' work in static initializer, for compilers other than
16671         GCC.
16672
16673 2010-12-19  Bruno Haible  <bruno@clisp.org>
16674
16675         ftello: Add missing declaration on OSF/1 5.1.
16676         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16677         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16679         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16680         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16681
16682 2010-12-19  Bruno Haible  <bruno@clisp.org>
16683
16684         fseeko: Add missing declaration on OSF/1 5.1.
16685         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16686         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16688         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16689         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16690
16691 2010-12-19  Bruno Haible  <bruno@clisp.org>
16692
16693         fchdir: Add missing declaration on OSF/1 5.1.
16694         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16697         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16698         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16699
16700 2010-12-19  Bruno Haible  <bruno@clisp.org>
16701
16702         relocatable-prog-wrapper: Separate from relocatable-prog.
16703         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16704         uninstall-relocwrapper rule here.
16705         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16706         Reported by Ian Beckwith <ianb@erislabs.net>.
16707
16708 2010-12-19  Bruno Haible  <bruno@clisp.org>
16709
16710         unistr/u8-mbsnlen: Add missing dependency.
16711         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16712         Reported by Ian Beckwith <ianb@erislabs.net>.
16713
16714 2010-12-19  Bruno Haible  <bruno@clisp.org>
16715
16716         iconv: Make it possible again to use this module without 'iconv-h'.
16717         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16718         if it is not defined.
16719         Reported by Ian Beckwith <ianb@erislabs.net>.
16720
16721 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16722
16723         acl: port to Solaris 8 when copying from tmpfs to ufs
16724         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16725         error number.  Problem observed on Solaris 8 with latest
16726         coreutils, with "mv A B", where A is on a tmpfs file system and B
16727         is on a ufs file system.  This caused coreutils' mv/part-symlink
16728         test to fail.
16729
16730         tests: set fail=0 at start
16731         * tests/init.sh (setup_): Move fail=0 initialization here ...
16732         (mktempd_): ... from here, so that tests can rely on fail being
16733         set to 0 initially.  This fixes a problem in coreutils; see:
16734         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16735
16736 2010-12-18  Bruno Haible  <bruno@clisp.org>
16737
16738         memmem-simple: Stylistic changes.
16739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16740         Fix preprocessor directive indentation.
16741
16742 2010-12-15  Pádraig Brady <P@draigBrady.com>
16743
16744         memmem, memmem-simple: reorganize and expand empty needle check
16745         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16746         functional checks to memmem-simple so that one has a fully functional
16747         memmem by using just this module.
16748         Restrict the performance only check to the memmem module.
16749         Also expand the empty needle check to ensure the correct
16750         pointer is returned, not just a non NULL pointer.
16751         * doc/glibc-functions/memmem.texi: Rearrange the portability
16752         documentation to correlate with the rearranged checks.
16753         Clarify exactly how the memmem and memmem-simple modules
16754         relate to each other.
16755
16756 2010-12-15  Pádraig Brady <P@draigBrady.com>
16757             Bruno Haible  <bruno@clisp.org>
16758
16759         Improve cross-compilation guesses for uClibc.
16760         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16761         that uClibc does not have the glibc bug.
16762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16764
16765 2010-12-14  Eric Blake  <eblake@redhat.com>
16766
16767         configmake: provide fallbacks for oldest supported autotools
16768         * m4/configmake.m4: New file.
16769         * modules/configmake (Files): Ship it.
16770         (configure.ac): Use it to guarantee fallbacks.
16771
16772 2010-12-13  Pádraig Brady <P@draigBrady.com>
16773
16774         read-file: Improve handling of large files
16775         * lib/read-file.c (fread_file): Minimize realloc()s
16776         for regular files, and better manage sizes around SIZE_MAX.
16777
16778 2010-12-13  Eric Blake  <eblake@redhat.com>
16779
16780         cloexec, fcntl: relax license
16781         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16782         consent from all contributors.
16783         * modules/fcntl (License): Likewise.
16784
16785 2010-12-10  Bruno Haible  <bruno@clisp.org>
16786
16787         Tests for module 'pipe-posix'.
16788         * modules/pipe-posix-tests: New file.
16789         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16790
16791 2010-12-10  Bruno Haible  <bruno@clisp.org>
16792
16793         pipe-posix: Make it work in C++ mode.
16794         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16795         (pipe): Use common idiom, not a macro definition.
16796         * lib/pipe.c: New file.
16797         * m4/pipe.m4: New file.
16798         * modules/pipe-posix (Description): Enhance.
16799         (Files): Add lib/pipe.c, m4/pipe.m4.
16800         (configure.ac): Invoke gl_FUNC_PIPE.
16801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16802         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16803         * tests/test-unistd-c++.cc: Check the signature of pipe.
16804
16805 2010-12-10  Bruno Haible  <bruno@clisp.org>
16806
16807         Rename module 'pipe' to 'spawn-pipe'.
16808         * modules/spawn-pipe: New file, renamed from modules/pipe.
16809         (Files, configure.ac, Makefile.am): Update.
16810         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16811         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16812         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16813         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16814         "spawn-pipe.h" instead of "pipe.h".
16815         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16816         to gl_SPAWN_PIPE.
16817         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16818         (Files, Makefile.am): Update.
16819         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16820         Update.
16821         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16822         Include "spawn-pipe.h" instead of "pipe.h".
16823         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16824         * lib/javacomp.c: Likewise.
16825         * lib/javaversion.c: Likewise.
16826         * lib/pipe-filter-gi.c: Likewise.
16827         * lib/pipe-filter-ii.c: Likewise.
16828         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16829         * modules/javacomp (Depends-on): Likewise.
16830         * modules/javaversion (Depends-on): Likewise.
16831         * modules/pipe-filter-gi (Depends-on): Likewise.
16832         * modules/pipe-filter-ii (Depends-on): Likewise.
16833         * MODULES.html.sh (Executing programs): Update.
16834         * NEWS: Mention the change.
16835
16836 2010-12-10  Eric Blake  <eblake@redhat.com>
16837
16838         pipe-posix: new module
16839         * modules/pipe-posix: New file.
16840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16841         (gl_UNISTD_H): Check for declaration.
16842         * modules/unistd (Makefile.am): Substitute it.
16843         * lib/unistd.in.h (pipe): Provide it for mingw.
16844         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16845         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16846
16847 2010-12-07  Bruno Haible  <bruno@clisp.org>
16848
16849         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16850         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16851         u8_strcmp_gnu.
16852         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16853
16854 2010-12-06  Bruno Haible  <bruno@clisp.org>
16855
16856         Update internal documentation.
16857         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16858
16859 2010-12-04  Bruno Haible  <bruno@clisp.org>
16860
16861         Put more information about failed tests into the test return codes.
16862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16863         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16864         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16865         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16866         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16867         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16868         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16869         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16870         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16872         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16873         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16874         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16875         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16876         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16877         returns a bit mask.
16878         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16879         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16880         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16881         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16882         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16883         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16886         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16887         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16888         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16889         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16890         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16892         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16893         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16894         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16895         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16896         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16897         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16899         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16900         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16901         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16902         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16903         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16904         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16905         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16906         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16907         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16908         gl_PRINTF_PRECISION): Likewise.
16909         * m4/regex.m4 (gl_REGEX): Likewise.
16910         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16911         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16913         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16914         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16916         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16917         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16918         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16919         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16920         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16921         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16922         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16923         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16924         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16925         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16926         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16927         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16930         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16931         enumerated value.
16932         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16933
16934 2010-12-04  Bruno Haible  <bruno@clisp.org>
16935
16936         Update for Solaris 11 2010-11.
16937         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16938         Express, released in November 2010.
16939
16940 2010-12-04  Bruno Haible  <bruno@clisp.org>
16941
16942         nproc: Relax license.
16943         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16944         and Paul Eggert.
16945         Requested by Ludovic Courtès <ludo@gnu.org>.
16946
16947 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16948
16949         utimecmp: fine-grained src to nearby coarse-grained dest
16950
16951         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16952         and the source is on a file system with higher-resolution time
16953         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16954         not work, and the time stamps are close together, the algorithm to
16955         determine the exact resolution from the read-back mtime was buggy:
16956         it had a "!=" where it should have had an "==".  This bug has been
16957         in the code ever since it was introduced to gnulib.
16958         Problem reported by Dan Jacobson in
16959         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16960
16961 2010-11-30  Bruno Haible  <bruno@clisp.org>
16962
16963         strerror_r-posix: Fix autoconf test.
16964         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16965
16966 2010-11-28  Bruno Haible  <bruno@clisp.org>
16967             Paul Eggert  <eggert@cs.ucla.edu>
16968
16969         Tests for module 'getdomainname'.
16970         * modules/getdomainname-tests: New file.
16971         * tests/test-getdomainname.c: New file, based on
16972         tests/test-gethostname.c.
16973
16974 2010-11-28  Bruno Haible  <bruno@clisp.org>
16975             Paul Eggert  <eggert@cs.ucla.edu>
16976
16977         getdomainname: Use the system function when possible.
16978         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16979         (getdomainname): Replace if needed. Provide the declaration if it is
16980         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16981         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16982         (getdomainname): When the system has getdomainname, call the system
16983         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16984         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16985         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16986         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16987         the function if its second argument is of type 'int' or if it is found
16988         in libnsl.
16989         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16990         <sys/systeminfo.h> and sysinfo().
16991         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16993         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16994         HAVE_GETDOMAINNAME.
16995         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16996         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16997         * doc/glibc-functions/getdomainname.texi: Document the problems with
16998         the getdomainname declaration.
16999
17000 2010-11-28  Bruno Haible  <bruno@clisp.org>
17001
17002         sys_socket: Ensure ss_family field on AIX.
17003         * lib/sys_socket.in.h (ss_family): New macro definition.
17004         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17005         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17006         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17007         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17008         * modules/sys_socket (Makefile.am): Substitute
17009         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17010         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17011
17012 2010-11-27  Bruno Haible  <bruno@clisp.org>
17013
17014         readline: Improve configure output.
17015         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17016         "checking for readline..." result understandable.
17017
17018 2010-11-27  Bruno Haible  <bruno@clisp.org>
17019
17020         *printf-posix: Detect a bug on Solaris 10/x86.
17021         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17022         for floating-point output.
17023         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17024         directive.
17025         * tests/test-snprintf-posix.h (test_function): Likewise.
17026         * tests/test-sprintf-posix.h (test_function): Likewise.
17027         * tests/test-vasprintf-posix.c (test_function): Likewise.
17028         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17029         * doc/posix-functions/printf.texi: Likewise.
17030         * doc/posix-functions/snprintf.texi: Likewise.
17031         * doc/posix-functions/sprintf.texi: Likewise.
17032         * doc/posix-functions/vfprintf.texi: Likewise.
17033         * doc/posix-functions/vprintf.texi: Likewise.
17034         * doc/posix-functions/vsnprintf.texi: Likewise.
17035         * doc/posix-functions/vsprintf.texi: Likewise.
17036         * doc/glibc-functions/obstack_printf.texi: Likewise.
17037         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17038
17039 2010-11-27  Bruno Haible  <bruno@clisp.org>
17040
17041         Fix link error when module libunistring-optional is in use.
17042         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17043         * modules/striconveha-tests (Makefile.am): Likewise.
17044
17045 2010-11-27  Bruno Haible  <bruno@clisp.org>
17046
17047         regex: Mention link dependencies.
17048         * modules/regex (Link): New section.
17049         * modules/rpmatch (Link): Likewise.
17050         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17051
17052 2010-11-27  Bruno Haible  <bruno@clisp.org>
17053
17054         ftoastr: Fix compilation error on Solaris.
17055         * lib/ftoastr.c: Include <config.h>.
17056
17057 2010-11-27  Bruno Haible  <bruno@clisp.org>
17058
17059         getloadavg: Update documentation.
17060         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17061
17062 2010-11-27  Bruno Haible  <bruno@clisp.org>
17063
17064         sys_socket: Fix test whether the functions are declared.
17065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17066         not <sys/select.h>.
17067
17068 2010-11-27  Bruno Haible  <bruno@clisp.org>
17069
17070         getpass: Make sure to get system declaration on some platforms.
17071         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17072         gl_USE_SYSTEM_EXTENSIONS.
17073         * modules/getpass (Depends-on): Add extensions.
17074
17075 2010-11-26  Bruno Haible  <bruno@clisp.org>
17076
17077         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17078         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17079         'iconv' module is present.
17080         (ICONV_CONST): New macro.
17081         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17082         ICONV_CONST.
17083         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17084         set ICONV_CONST.
17085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17086         here.
17087         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17088         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17089         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17090         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17091         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17092         present.
17093
17094 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17095
17096         ftoastr: comment fix
17097         * lib/ftoastr.c: "little" -> "little or no" in comment
17098
17099 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17100
17101         stdint: port to GCC 4.3 + OSX + Octave
17102         On this platform, stdint.h is buggy and defines int64_t to long
17103         long int.  The replacement defined it to long int, causing
17104         problems with C++ style name mangling.  Instead, trust the system
17105         definition if INT64_MAX is defined, and likewise for the unsigned
17106         variant.   Problem reported by Jarno Rajahalme in
17107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17108         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17109         and don't mess with int64_t and INT64_MAX in this case.
17110         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17111
17112 2010-11-24  Bruno Haible  <bruno@clisp.org>
17113
17114         doc: Corrections regarding MacOS X 10.4 and 10.5.
17115         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17116         MacOS X.
17117         Reported by Simon Josefsson.
17118
17119 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17120
17121         Uninstall ".bin" files installed by relocwrapper.
17122         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17123         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17124         unless it is already there.
17125
17126 2010-11-21  Bruno Haible  <bruno@clisp.org>
17127
17128         Update for NetBSD 5.0.
17129         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17130         NetBSD; the test fails on NetBSD 5.0.
17131         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17132         about NetBSD.
17133
17134 2010-11-21  Bruno Haible  <bruno@clisp.org>
17135
17136         Update for HP-UX 11.23 and HP-UX 11.31.
17137         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17138         HP-UX.
17139
17140 2010-11-21  Bruno Haible  <bruno@clisp.org>
17141
17142         Update for MacOS X 10.5.
17143         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17144         MacOS X; the test fails on MacOS X 10.5.8.
17145         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17146         about MacOS X.
17147
17148 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17149
17150         bootstrap: add bootstrap_sync option.
17151         See discussion at
17152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17154         * build-aux/bootstrap: Accept --bootstrap-sync to update
17155         bootstrap if it is not identical to the local gnulib's
17156         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17157         enable this by default.  Accept --no-bootstrap-sync to disable
17158         it.
17159
17160 2010-11-20  Bruno Haible  <bruno@clisp.org>
17161
17162         Ensure that <features.h> is included before __GLIBC__ is tested.
17163         * lib/printf-parse.h: Include <features.h>.
17164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17165         Reported by Mike Frysinger <vapier@gentoo.org>.
17166
17167         Ensure that <features.h> is included before __GLIBC__ is tested.
17168         * lib/wchar.in.h: Include <features.h>.
17169         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17170         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17171         Reported by Mike Frysinger <vapier@gentoo.org>.
17172
17173         Ensure that <features.h> is included before __GLIBC__ is tested.
17174         * lib/arpa_inet.in.h: Include <features.h>.
17175         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17176         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17177         Reported by Mike Frysinger <vapier@gentoo.org>.
17178
17179         Ensure that <features.h> is included before __GLIBC__ is tested.
17180         * build-aux/link-warning.h: Include <features.h>.
17181         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17182         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17183         Reported by Mike Frysinger <vapier@gentoo.org>.
17184
17185         Ensure that <features.h> is included before __GLIBC__ is tested.
17186         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17187         Reported by Mike Frysinger <vapier@gentoo.org>.
17188
17189 2010-11-20  Bruno Haible  <bruno@clisp.org>
17190
17191         memmem: Fix autoconf test.
17192         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17193
17194 2010-11-20  Bruno Haible  <bruno@clisp.org>
17195
17196         Port to uClibc.
17197         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17198         * lib/fcntl.in.h: Likewise.
17199         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17200         * lib/mbrtowc.c (mbrtowc): Likewise.
17201         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17202         * lib/strerror_r.c: Likewise.
17203         * lib/unistr/u8-strnlen.c: Likewise.
17204         * lib/vasnprintf.c (decimal_point_char): Likewise.
17205         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17206         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17207         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17208         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17209         * tests/test-sigaction.c (handler, main): Likewise.
17210         * lib/freading.h: Treat uClibc like a non-glibc platform.
17211         * lib/freading.c: Likewise.
17212         * lib/gettext.h: Likewise.
17213         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17214         Likewise.
17215         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17216         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17217         * lib/propername.c (proper_name_utf8): Likewise.
17218         * lib/spawn.in.h: Likewise.
17219         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17220         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17221         mem_cd_iconveh_internal): Likewise.
17222         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17223         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17224         strstr, strcasestr): Likewise.
17225         * lib/unicodeio.c (unicode_to_mb): Likewise.
17226         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17227         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17228         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17229         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17230         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17231         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17232         * lib/unistr/u8-stpncpy.c: Likewise.
17233         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17234         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17235         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17236         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17237         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17238         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17242         Likewise.
17243         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17244         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17245         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17248         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17250         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17251         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17252         * tests/test-striconveha.c (main): Likewise.
17253         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17254         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17255         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17256         * doc/posix-functions/getline.texi: Likewise.
17257         Reported by Mike Frysinger <vapier@gentoo.org>.
17258
17259 2010-11-20  Bruno Haible  <bruno@clisp.org>
17260
17261         nproc: Fix condition.
17262         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17263         HAVE_PTHREAD_AFFINITY_NP.
17264
17265 2010-11-20  Bruno Haible  <bruno@clisp.org>
17266
17267         Fix a comment.
17268         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17269
17270 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17271
17272         ftoastr: don't assume snprintf
17273         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17274         Implement a subset of snprintf here, by using sprintf safely.
17275         * modules/ftoastr (Depends-on): Remove snprintf.
17276
17277 2010-11-19  Jim Meyering  <meyering@redhat.com>
17278
17279         test-rename.h: fix compilation failure
17280         * tests/test-rename.h (test_rename): Add omitted "}".
17281
17282 2010-11-17  Jim Meyering  <meyering@redhat.com>
17283
17284         maint.mk: add a URL discussing the no-@acronym policy
17285         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17286
17287 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17288
17289         ftoastr: depend on snprintf, improve comments
17290         * lib/ftoastr.c: Also mention Loitsch's draft.
17291         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17292         needed in the current implementation, but it might simplify
17293         speeding up the code later.
17294         * modules/ftoastr: Depend on snprintf; this improves portability.
17295         Suggested by Bruno Haible in the same email.
17296
17297         ftoastr: port to hosts lacking strtof and strtold
17298         Problem reported by Bruno Haible in
17299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17300         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17301         environment and strtold (and presumably strtof) are not available.
17302         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17303         (configure.ac): Require gl_C99_STRTOLD.
17304
17305 2010-11-18  Bruno Haible  <bruno@clisp.org>
17306
17307         c-strtold: Avoid link error on AIX 7.
17308         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17309         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17310         (gl_C_STRTOLD): Test whether strtold_l exists.
17311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17312
17313 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17314
17315         intprops: new macro INT_BITS_STRLEN_BOUND
17316         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17317         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17318         not exposed.  Also, it uses a slightly tighter bound than before;
17319         though this makes no practical difference, we might as well be as
17320         tight as we easily can.
17321
17322         ftoastr: new module, for lossless conversion of floats to short strings
17323         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17324         * modules/ftoastr: New files.
17325
17326 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17327
17328         bootstrap: port to Solaris sed
17329         * build-aux/bootstrap (get_version): Port to Solaris sed.
17330         See Ralf Wildenhues's note in
17331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17332
17333 2010-11-14  Jim Meyering  <meyering@redhat.com>
17334
17335         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17336         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17337         and move definition closer to sole use.
17338
17339 2010-11-13  Jim Meyering  <meyering@redhat.com>
17340
17341         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17342         Now we require at least autoconf-2.59, which means the work-around
17343         is no longer needed.
17344         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17345         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17346         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17347         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17348         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17349
17350 2010-11-13  Bruno Haible  <bruno@clisp.org>
17351
17352         rename, renameat: Avoid test failures at NFS mounted locations.
17353         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17354         functions.
17355         (test_rename): Use assert_nonexistent.
17356         * tests/test-rename.c: Include <dirent.h>.
17357         * tests/test-renameat.c: Likewise.
17358         Reported by Gary V. Vaughan <gary@gnu.org>.
17359
17360         rename, renameat: Document Linux bug with NFS
17361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17362         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17363         * doc/posix-functions/renameat.texi: Likewise.
17364         Suggested by Eric Blake.
17365
17366 2010-11-13  Bruno Haible  <bruno@clisp.org>
17367
17368         rename test: Add comments.
17369         * tests/test-rename.h (test_rename): Add structure and comments.
17370
17371 2010-11-13  Eric Blake  <eblake@redhat.com>
17372
17373         maintainer-makefile: cover a few more files
17374         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17375         scripts generated within C files, for libvirt.
17376
17377 2010-11-13  Bruno Haible  <bruno@clisp.org>
17378
17379         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17380         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17381         character, return the number of bytes that belong together, not always
17382         1.
17383         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17384         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17385         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17386         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17387         number of bytes of an invalid character.
17388         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17389         (main): Invoke it.
17390         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17391         results.
17392         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17393         malformed byte sequences.
17394         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17395         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17396         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17397         Reported by Ben Pfaff and Paolo Bonzini.
17398
17399 2010-11-13  Bruno Haible  <bruno@clisp.org>
17400
17401         openat: Work around glibc bug with fchownat() and empty file names.
17402         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17403         (gl_FUNC_FCHOWNAT): Invoke it.
17404         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17405         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17406         Reported by Gary V. Vaughan <gary@gnu.org>.
17407
17408 2010-11-13  Bruno Haible  <bruno@clisp.org>
17409
17410         openat: Ensure autoconf macro ordering.
17411         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17412         gl_USE_SYSTEM_EXTENSIONS.
17413         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17414
17415 2010-11-13  Bruno Haible  <bruno@clisp.org>
17416
17417         Update comments.
17418         * lib/unistr/u8-check.c: Update file name in comments.
17419         * lib/unistr/u8-mblen.c: Likewise.
17420         * lib/unistr/u8-prev.c: Likewise.
17421         * lib/unistr/u8-strmblen.c: Likewise.
17422         * lib/unistr/u8-strmbtouc.c: Likewise.
17423
17424 2010-11-13  Jim Meyering  <meyering@redhat.com>
17425
17426         tests: avoid test failure on Solaris 10 due to lack of PATH export
17427         * tests/test-update-copyright.sh: Don't forget to export PATH.
17428
17429         init.sh: ensure that IFS is defined, just in case...
17430         * tests/init.sh (setup_): Ensure that IFS is defined,
17431         so that saving and restoring it works as expected.  This
17432         appears to be useful at least for an old version of dash
17433         from a long time ago (RH 6).  See here for details:
17434         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17435
17436         maint.mk: tighten "test a == b" check
17437         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17438         test to files that contain something like #!/bin/sh.
17439         Without this, coreutils would get two false positives in
17440         the comments of C source files.
17441
17442 2010-11-12  Eric Blake  <eblake@redhat.com>
17443
17444         bootstrap: fix typo in previous attempt
17445         * build-aux/bootstrap (buildreq): Correct the grouping.
17446         Reported by Paul Eggert.
17447
17448         maintainer-makefile: prohibit test x == x
17449         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17450         Based on a report by Matthias Bolte.
17451
17452         bootstrap: allow FreeBSD gzip
17453         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17454         which has no '.' and goes to stderr.
17455         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17456         Reported by Matthias Bolte.
17457
17458         maintainer-makefile: check for i18n setup
17459         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17460         will likely work.
17461
17462 2010-11-12  Bruno Haible  <bruno@clisp.org>
17463
17464         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17465         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17466         * lib/nanosleep.c (nanosleep): Likewise.
17467
17468 2010-11-11  Bruno Haible  <bruno@clisp.org>
17469
17470         fcntl-h: Fix for use of C++ on glibc systems.
17471         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17472         also on glibc systems in C++ mode.
17473         Reported by Gary V. Vaughan <gary@gnu.org>.
17474
17475 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17476
17477         mknod: avoid false failure with dash
17478         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17479
17480 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17481
17482         unlink: Fix "is it should" typo in diagnostic.
17483         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17485
17486 2010-11-11  Bruno Haible  <bruno@clisp.org>
17487
17488         Tests for module 'strerror_r-posix'.
17489         * modules/strerror_r-posix-tests: New file.
17490         * tests/test-strerror_r.c: New file.
17491         * tests/test-string-c++.cc: Check the signature of strerror_r.
17492
17493         New module 'strerror_r-posix'.
17494         * lib/string.in.h (strerror_r): New declaration.
17495         * lib/strerror_r.c: New file.
17496         * m4/strerror_r.m4: New file.
17497         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17498         of strerror_r.
17499         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17500         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17501         * modules/strerror_r-posix: New file.
17502         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17503         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17504         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17505         portability problems.
17506
17507 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17508
17509         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17510         line is also considered for output. Quoted function name in shell
17511         command, so temporary files for functions like MyClass::operator()
17512         are removed correctly without errors.
17513
17514 2010-11-09  Bruno Haible  <bruno@clisp.org>
17515
17516         * doc/posix-functions/strerror.texi: List more failing platforms.
17517
17518         * doc/posix-functions/strerror.texi: Add a comment.
17519
17520 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17521
17522         fdopendir: fix bug on MacOS X when low on file descriptors
17523
17524         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17525         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17526         All callers changed.
17527         (fdopendir): Invoke save_cwd at the top level, not after using
17528         multiple dup() calls to use up file descriptors.  Then retry
17529         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17530         less than the maximum number of open file descriptors, because
17531         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17532         on Mac OS X 10.6.4 for tar 1.24
17533         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17534         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17535         and for tar 1.25
17536         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17537
17538 2010-11-07  Bruno Haible  <bruno@clisp.org>
17539
17540         vasnprintf: Support I flag on glibc systems.
17541         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17542         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17543         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17544         snprintf function.
17545         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17546         glibc systems.
17547         * tests/test-vasnprintf-posix3.c: New file.
17548         * modules/vasnprintf-posix-tests (Files): Add it.
17549         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17550
17551 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17552
17553         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17554         * MODULES.html.sh: For compiler warnings, use name
17555         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17556
17557 2010-11-05  Eric Blake  <eblake@redhat.com>
17558
17559         ceil, floor: avoid spurious failure with icc
17560         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17561         [denormals-as-zero] when optimizing without -mieee-fp option.
17562         * tests/test-floorf2.c (floorf_reference): Likewise.
17563         * tests/test-ceilf1.c (dummy): New function.
17564         (main): Use it to outsmart icc's optimization.
17565         * tests/test-floorf1.c (dummy, main): Likewise.
17566
17567         tests: require working signbit
17568         * modules/ceilf-tests (Depends-on): Add signbit.
17569         * modules/ceill-tests (Depends-on): Likewise.
17570         * modules/floorf-tests (Depends-on): Likewise.
17571         * modules/floorl-tests (Depends-on): Likewise.
17572         * modules/round-tests (Depends-on): Likewise.
17573         * modules/roundf-tests (Depends-on): Likewise.
17574         * modules/roundl-tests (Depends-on): Likewise.
17575         * modules/trunc-tests (Depends-on): Likewise.
17576         * modules/truncf-tests (Depends-on): Likewise.
17577         * modules/truncl-tests (Depends-on): Likewise.
17578
17579         strtod: work around icc bug
17580         * lib/strtod.c (minus_zero): Define to working value.
17581         (strtod): Use it to avoid icc bug.
17582
17583         copysign: enhance tests
17584         * modules/copysign-tests (Files): Add minus-zero.h.
17585         * tests/test-copysign.c (main): Also test zeros.
17586
17587 2010-11-04  Eric Blake  <eblake@redhat.com>
17588
17589         ceil, floor, round, trunc: enhance tests of -0
17590         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17591         * tests/test-ceill.c (main): Likewise.
17592         * tests/test-floorf1.c (main): Likewise.
17593         * tests/test-floorl.c (main): Likewise.
17594         * tests/test-round1.c (main): Likewise.
17595         * tests/test-roundf1.c (main): Likewise.
17596         * tests/test-roundl.c (main): Likewise.
17597         * tests/test-trunc1.c (main): Likewise.
17598         * tests/test-truncf1.c (main): Likewise.
17599         * tests/test-truncl.c (main): Likewise.
17600
17601 2010-11-04  Eric Blake  <eblake@redhat.com>
17602
17603         frexp, tests: work around ICC bug with -zero
17604         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17605         works with more compilers.
17606         * tests/minus-zero.h: New file.
17607         * modules/ceilf-tests (Files): Include it.
17608         * modules/ceill-tests (Files): Likewise.
17609         * modules/floorf-tests (Files): Likewise.
17610         * modules/floorl-tests (Files): Likewise.
17611         * modules/frexp-nolibm-tests (Files): Likewise.
17612         * modules/frexp-tests (Files): Likewise.
17613         * modules/frexpl-nolibm-tests (Files): Likewise.
17614         * modules/frexpl-tests (Files): Likewise.
17615         * modules/isnan-tests (Files): Likewise.
17616         * modules/isnand-nolibm-tests (Files): Likewise.
17617         * modules/isnand-tests (Files): Likewise.
17618         * modules/isnanf-nolibm-tests (Files): Likewise.
17619         * modules/isnanf-tests (Files): Likewise.
17620         * modules/isnanl-nolibm-tests (Files): Likewise.
17621         * modules/isnanl-tests (Files): Likewise.
17622         * modules/round-tests (Files): Likewise.
17623         * modules/roundf-tests (Files): Likewise.
17624         * modules/roundl-tests (Files): Likewise.
17625         * modules/ldexpl-tests (Files): Likewise.
17626         * modules/signbit-tests (Files): Likewise.
17627         * modules/snprintf-posix-tests (Files): Likewise.
17628         * modules/sprintf-posix-tests (Files): Likewise.
17629         * modules/strtod-tests (Files): Likewise.
17630         * modules/trunc-tests (Files): Likewise.
17631         * modules/truncf-tests (Files): Likewise.
17632         * modules/truncl-tests (Files): Likewise.
17633         * modules/vsnprintf-posix-tests (Files): Likewise.
17634         * modules/vsprintf-posix-tests (Files): Likewise.
17635         * modules/vasnprintf-posix-tests (Files): Likewise.
17636         * modules/vasprintf-posix-tests (Files): Likewise.
17637         * tests/test-ceilf1.c (main): Use it.
17638         * tests/test-ceill.c (main): Likewise.
17639         * tests/test-floorf1.c (main): Likewise.
17640         * tests/test-floorl.c (main): Likewise.
17641         * tests/test-frexp.c (main): Likewise.
17642         * tests/test-frexpl.c (main): Likewise.
17643         * tests/test-isnan.c (main): Likewise.
17644         * tests/test-isnand.h (main): Likewise.
17645         * tests/test-isnanf.h (main): Likewise.
17646         * tests/test-isnanl.h (main): Likewise.
17647         * tests/test-ldexpl.c (main): Likewise.
17648         * tests/test-round.c (main): Likewise.
17649         * tests/test-roundf.c (main): Likewise.
17650         * tests/test-roundl.c (main): Likewise.
17651         * tests/test-signbit.c (test_signbitf, test_signbitd)
17652         (test_signbitl): Likewise.
17653         * tests/test-snprintf-posix.h (test_function): Likewise.
17654         * tests/test-sprintf-posix.h (test_function): Likewise.
17655         * tests/test-strtod.c (main): Likewise.
17656         * tests/test-trunc1.c (main): Likewise.
17657         * tests/test-truncf1.c (main): Likewise.
17658         * tests/test-truncl.c (main): Likewise.
17659
17660         isnanl: work around icc bug
17661         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17662
17663 2010-11-03  Eric Blake  <eblake@redhat.com>
17664
17665         tests: fix compiler warnings
17666         * tests/test-getopt.h (test_getopt): Fix condition.
17667         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17668         * tests/test-pipe2.c (main): Likewise.
17669         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17670
17671         utimens: fix broken m4 test
17672         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17673
17674 2010-10-28  Bruno Haible  <bruno@clisp.org>
17675
17676         posix_spawn*, getdtablesize: Relax license.
17677         * modules/posix_spawn (License): Change to LGPLv2+.
17678         * modules/posix_spawnp (License): Likewise.
17679         * modules/posix_spawn-internal (License): Likewise.
17680         * modules/posix_spawnattr_init (License): Likewise.
17681         * modules/posix_spawnattr_getflags (License): Likewise.
17682         * modules/posix_spawnattr_setflags (License): Likewise.
17683         * modules/posix_spawnattr_getpgroup (License): Likewise.
17684         * modules/posix_spawnattr_setpgroup (License): Likewise.
17685         * modules/posix_spawnattr_getschedparam (License): Likewise.
17686         * modules/posix_spawnattr_setschedparam (License): Likewise.
17687         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17688         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17689         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17690         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17691         * modules/posix_spawnattr_getsigmask (License): Likewise.
17692         * modules/posix_spawnattr_setsigmask (License): Likewise.
17693         * modules/posix_spawnattr_destroy (License): Likewise.
17694         * modules/posix_spawn_file_actions_init (License): Likewise.
17695         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17696         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17697         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17698         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17699         * modules/getdtablesize (License): Likewise.
17700         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17701
17702 2010-10-26  Bruno Haible  <bruno@clisp.org>
17703
17704         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17705         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17706         Cygwin and mingw.
17707         Suggested by Eric Blake.
17708
17709 2010-10-26  Bruno Haible  <bruno@clisp.org>
17710
17711         stdio: Work around compilation error due to renameat() on Solaris 10.
17712         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17713         * lib/renameat.c: Don't include <unistd.h> here.
17714         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17715         Reported by Paul Eggert and Eric Blake.
17716
17717 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17718
17719         renameat: port to Solaris 10, which declares renameat in unistd.h
17720
17721         * lib/renameat.c: Include unistd.h before stdio.h, because
17722         Solaris 10 declares renameat in unistd.h.  Problem encountered
17723         when building GNU tar 1.24 on Solaris 10.
17724
17725 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17726
17727         fdopendir: fix C89 compilation
17728         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17729         compilers.
17730
17731 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17732
17733         inttostr: simplify by removing unnecessary redundancy
17734         * lib/anytostr.c: Don't include verify.h.
17735         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17736         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17737         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17738         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17739         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17740         Likewise.
17741         * modules/inttostr (Depends-on): Remove 'verify'.
17742
17743 2010-10-23  Bruno Haible  <bruno@clisp.org>
17744
17745         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17746         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17747         Reported by Eric Blake.
17748
17749 2010-10-23  Bruno Haible  <bruno@clisp.org>
17750
17751         Tests: Fix LOCALE_JA on MirBSD 10.
17752         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17753         to an UTF-8 locale.
17754         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17755         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17756         Reported by Eric Blake.
17757
17758 2010-10-21  Bruno Haible  <bruno@clisp.org>
17759
17760         nl_langinfo test: Avoid test failure on NetBSD 5.
17761         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17762         Reported by Eric Blake.
17763
17764 2010-10-21  Eric Blake  <eblake@redhat.com>
17765
17766         c-stack: work around libsigsegv 2.8 bug
17767         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17768         overflow on at least PowerPC64.
17769
17770 2010-10-17  Bruno Haible  <bruno@clisp.org>
17771
17772         userspec: Drop redundant file.
17773         * modules/userspec (Files): Remove lib/inttostr.h.
17774
17775 2010-10-17  Bruno Haible  <bruno@clisp.org>
17776
17777         nl_langinfo tests: Silence some warnings.
17778         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17779         Reported by Jim Meyering.
17780
17781 2010-10-17  Bruno Haible  <bruno@clisp.org>
17782
17783         Make use of GCC's attribute __alloc_size__.
17784         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17785         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17786         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17787         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17788         __alloc_size__.
17789         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17790         Suggested by Jim Meyering.
17791
17792 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17793
17794         bootstrap: anchor .gitignore entries.
17795         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17796         with...
17797         (insert_vc_ignore): ... this new function, which prepends `/' to
17798         all .gitignore entries before passing them to
17799         insert_sorted_if_absent.
17800
17801 2010-10-16  Bruno Haible  <bruno@clisp.org>
17802
17803         nextafter: Fix configure check.
17804         * modules/nextafter (configure.ac): Correct expected prototype.
17805
17806 2010-10-16  Bruno Haible  <bruno@clisp.org>
17807
17808         termios: Update documentation.
17809         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17810
17811 2010-10-16  Bruno Haible  <bruno@clisp.org>
17812
17813         tests: Make them compile with TinyCC.
17814         * tests/test-strstr.c (main): Remove parentheses around array
17815         initializer.
17816
17817 2010-10-15  Eric Blake  <eblake@redhat.com>
17818
17819         ignore-value: make header idempotent
17820         * lib/ignore-value.h: Add double-inclusion guards.
17821         Reported by Stefan Berger.
17822
17823 2010-10-15  Jim Meyering  <meyering@redhat.com>
17824
17825         GNUmakefile: handle "stable" target, not "major"
17826         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17827         lists in maint.mk and announce-gen.  Without this, "make stable"
17828         would fail to ensure that $(VERSION) is up to date.
17829
17830 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17831
17832         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17833         & co.
17834
17835 2010-10-14  Bruno Haible  <bruno@clisp.org>
17836
17837         vasnprintf: Don't set errno to 0.
17838         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17839         block that sets it to 0.
17840         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17841
17842 2010-10-14  Bruno Haible  <bruno@clisp.org>
17843
17844         socketlib: Fix.
17845         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17846         gl_PREREQ_SYS_H_WINSOCK2.
17847         Reported by Ian Beckwith <ianb@erislabs.net>.
17848
17849 2010-10-13  Jim Meyering  <meyering@redhat.com>
17850
17851         test-select-stdin.c: avoid warn_unused_result warnings
17852         * tests/test-select-stdin.c: Include "macros.h".
17853         ASSERT that read and fflush succeed.
17854
17855 2010-10-13  Jim Meyering  <meyering@redhat.com>
17856
17857         git-version-gen: do require git-VC'd files in cwd
17858         * build-aux/git-version-gen: Reject a git version string
17859         if there are no commits associated with the current directory.
17860         This avoids an unlikely false-positive (unrelated dir whose parent
17861         repository also contains a tag matching v*), as pointed out
17862         by Giuseppe Scrivano in
17863         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17864
17865 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17866
17867         argv-iter: omit nonconforming declaration
17868         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17869         enum arg_iter_err declaration, which doesn't conform to C99.
17870         Solaris 10 cc warns about this.
17871
17872 2010-10-13  Eric Blake  <eblake@redhat.com>
17873
17874         termios: fix compilation on mingw
17875         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17876         (gl_TERMIOS_H): Adjust it on mingw.
17877         * modules/termios (Makefile.am): Substitute new key.
17878         * lib/termios.in.h (includes): Make include_next conditional.
17879         * doc/posix-headers/termios.texi (termios.h): Update
17880         documentation.
17881         Reported by Daniel P. Berrange.
17882
17883 2010-10-13  Jim Meyering  <meyering@redhat.com>
17884
17885         git-version-gen: don't require that .git/ be in the current dir
17886         * build-aux/git-version-gen: Adjust this script so that it works
17887         when run from any working directory beneath the top-level .git/-
17888         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17890
17891         test-select: avoid warn_unused_result warnings
17892         * tests/test-select.c: Include "macros.h".
17893         ASSERT that each call to read, write, and pipe succeeds.
17894         While not technically required, also check each "close".
17895         * modules/select-tests (Files): Add tests/macros.h.
17896
17897         test-symlinkat: remove declaration of unused local
17898         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17899
17900         test-inttostr: avoid shadowing warnings
17901         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17902         and use malloc rather than the stack for the same reason as
17903         mentioned in the comment justifying the other allocation.
17904
17905 2010-10-11  Bruno Haible  <bruno@clisp.org>
17906
17907         stdlib: Allow multiple gnulib generated replacements to coexist.
17908         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17909         Reported by Sam Steingold <sds@gnu.org>.
17910
17911 2010-10-11  Jim Meyering  <meyering@redhat.com>
17912
17913         fix a documentation typo
17914         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17915
17916 2010-10-11  Eric Blake  <eblake@redhat.com>
17917
17918         futimens: work around Solaris 11 bug
17919         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17920         * tests/test-futimens.h (test_futimens): Enhance, rather than
17921         weaken test.
17922         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17923
17924 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17925
17926         Indentation.
17927         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17928         higher-level operators more to the left.
17929
17930 2010-10-11  Jim Meyering  <meyering@redhat.com>
17931
17932         test-futimens: avoid unwarranted test failure on Solaris 5.11
17933         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17934         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17935         because it tries to dereference the NULL name argument.
17936
17937 2010-10-11  Bruno Haible  <bruno@clisp.org>
17938
17939         Indentation.
17940         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17941         indentation.
17942
17943 2010-10-11  Jim Meyering  <meyering@redhat.com>
17944
17945         spawn.in.h: make indentation consistent with parentheses
17946         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17947         Make indentation consistent with parentheses.
17948
17949 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17950
17951         Fix mismatched parens in previous commit
17952         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17953         parens.
17954
17955 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17956
17957         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17958
17959         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17960         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17961         * lib/malloca.c: Include "verify.h".
17962         (verify1): Remove, replacing with a verify call.
17963         * lib/relocwrapper.c (verify1): Likewise.
17964         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17965         Likewise.
17966         * modules/malloca (Depends-on): Add 'verify'.
17967         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17968         * modules/vasnprintf (Depends-on): Add 'verify'.
17969         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17972         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17973         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17974         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17976
17977         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17978
17979         Formerly the style was sometimes 2*X - 1, because the C standard
17980         was wrongly thought to disallow ?: in integral constant expressions.
17981         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17982         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17984         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17985         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17986         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17987         verify that time_t cannot be floating.
17988
17989 2010-10-08  Eric Blake  <eblake@redhat.com>
17990
17991         time: enforce recent POSIX ruling that time_t is integral
17992         * lib/time.in.h (__time_t_must_be_integral): Detect any
17993         problematic systems, allowing the rest of gnulib to assume POSIX.
17994
17995 2010-10-08  Jim Meyering  <meyering@redhat.com>
17996
17997         fdopendir: fix a bug on systems lacking openat and /proc support
17998         OpenBSD 4.7 is one such system.  The most noticeable effect was
17999         failure of any application making nontrivial use of fts: rm, du,
18000         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18001           ./rm: traversal failed: `a': Bad file descriptor
18002         Debugging that, you see that even though FD 6 was closed just
18003         prior to the opendir call in fd_clone_opendir, its resulting
18004         dir->dd_fd was 8, rather than the expected value of 6:
18005
18006         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18007         93                close (fd);
18008         (gdb) n
18009         94                dir = fd_clone_opendir (dupfd);
18010         (gdb) n
18011         95                saved_errno = errno;
18012         (gdb) p dir->dd_fd
18013         $11 = 8
18014
18015         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18016         The problem is that on OpenBSD, fd_clone_opendir has to resort
18017         to using the old-style save/restore CWD mechanism, due to its
18018         lack of openat/proc support, and *that* would steal the FD (6)
18019         that opendir was supposed to use.
18020
18021         The fix is to squirrel away the desired FD so that save_cwd uses a
18022         different one, and then free the dest FD right before calling opendir.
18023         That guarantees opendir will use the required file descriptor.
18024
18025         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18026
18027 2010-10-08  Bruno Haible  <bruno@clisp.org>
18028
18029         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18030         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18031
18032 2010-10-08  Bruno Haible  <bruno@clisp.org>
18033
18034         nanosleep: Make replacement POSIX compliant.
18035         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18036         is out of range.
18037         Reported by Jim Meyering.
18038
18039 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18040
18041         bootstrap: add hook for altering gnulib.mk, for Bison
18042         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18043         the Bison bootstrapping process can rewrite file names and variables
18044         in this file before later parts of 'bootstrap' use the file.
18045         Bison wants to include lib/gnulib.mk from the top-level makefile,
18046         so it needs the file names in this file to be relative to the top
18047         level, not relative to lib; plus it needs variable names to be
18048         rewritten.
18049         (slurp): Use the new function.
18050
18051         bootstrap: reformat for readability
18052         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18053
18054 2010-10-08  Eric Blake  <eblake@redhat.com>
18055
18056         docs: update cygwin progress
18057         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18058         1.7.7.
18059         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18060         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18061         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18062         * doc/posix-functions/carg.texi (carg): Likewise.
18063         * doc/posix-functions/cargf.texi (cargf): Likewise.
18064         * doc/posix-functions/casin.texi (casin): Likewise.
18065         * doc/posix-functions/casinf.texi (casinf): Likewise.
18066         * doc/posix-functions/casinh.texi (casinh): Likewise.
18067         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18068         * doc/posix-functions/catan.texi (catan): Likewise.
18069         * doc/posix-functions/catanf.texi (catanf): Likewise.
18070         * doc/posix-functions/catanh.texi (catanh): Likewise.
18071         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18072         * doc/posix-functions/ccos.texi (ccos): Likewise.
18073         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18074         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18075         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18076         * doc/posix-functions/cexp.texi (cexp): Likewise.
18077         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18078         * doc/posix-functions/cimag.texi (cimag): Likewise.
18079         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18080         * doc/posix-functions/clog.texi (clog): Likewise.
18081         * doc/posix-functions/clogf.texi (clogf): Likewise.
18082         * doc/posix-functions/conj.texi (conj): Likewise.
18083         * doc/posix-functions/conjf.texi (conjf): Likewise.
18084         * doc/posix-functions/cpow.texi (cpow): Likewise.
18085         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18086         * doc/posix-functions/cproj.texi (cproj): Likewise.
18087         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18088         * doc/posix-functions/creal.texi (creal): Likewise.
18089         * doc/posix-functions/crealf.texi (crealf): Likewise.
18090         * doc/posix-functions/csin.texi (csin): Likewise.
18091         * doc/posix-functions/csinf.texi (csinf): Likewise.
18092         * doc/posix-functions/csinh.texi (csinh): Likewise.
18093         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18094         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18095         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18096         * doc/posix-functions/ctan.texi (ctan): Likewise.
18097         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18098         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18099         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18100         * doc/posix-headers/complex.texi (complex.h): Likewise.
18101
18102 2010-10-07  Jim Meyering  <meyering@redhat.com>
18103
18104         parse-datetime: avoid compilation failure on OpenBSD 4.7
18105         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18106         This works around a compilation failure on OpenBSD 4.7:
18107         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18108
18109 2010-10-07  Eric Blake  <eblake@redhat.com>
18110
18111         docs: update cygwin progress
18112         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18113         1.7.6.
18114         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18115         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18116         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18117         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18118         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18119         Likewise.
18120         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18121         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18122         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18123         Likewise.
18124         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18125         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18126         Likewise.
18127         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18128         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18129         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18130         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18131         Likewise.
18132         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18133         Likewise.
18134         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18135
18136         docs: update parse-datetime history
18137         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18138         documentation of this function's history and alternatives.
18139
18140         cygwin: use more robust version check
18141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18142         exclude an eventual cygwin 1.9.1.
18143         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18145         (gl_FUNC_STRCASESTR): Likewise.
18146         Reported by Bruno Haible.
18147
18148 2010-10-06  Bruno Haible  <bruno@clisp.org>
18149
18150         string, sys_select: Avoid #including large headers unless necessary.
18151         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18152         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18153         OSF/1, BeOS, Haiku.
18154         Reported by Jim Meyering.
18155
18156 2010-10-05  Eric Blake  <eblake@redhat.com>
18157
18158         memmem, strstr, strcasestr: fix bug with long periodic needle
18159         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18160         periodic needle having false positive.
18161         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18162         and cygwin 1.7.7.
18163         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18165         (gl_FUNC_STRCASESTR): Likewise.
18166         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18167         * tests/test-memmem.c (main): Expose the bug.
18168         * tests/test-strcasestr.c (main): Likewise.
18169         * tests/test-strstr.c (main): Likewise.
18170         * tests/test-c-strcasestr.c (main): Likewise.
18171         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18172         * doc/posix-functions/strstr.texi (strstr): Likewise.
18173         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18174         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18175
18176 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18177
18178         parse-datetime: do some more renaming
18179         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18180         parse_datetime, not get_date.  Mention the renaming.
18181         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18182         in comments.
18183         * m4/bison.m4: Likewise.
18184
18185 2010-10-05  Eric Blake  <eblake@redhat.com>
18186
18187         parse-datetime: better name than get_date
18188         * NEWS: Reword the deprecation notice.
18189         * modules/get_date: Rename to modules/parse-datetime.
18190         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18191         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18192         * lib/get_date.y: Rename to lib/parse-datetime.y.
18193         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18194         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18195         * doc/getdate.texi: Provide fallback wrapper.
18196         * lib/getdate.h: Move guts, and wrap...
18197         * lib/parse-datetime.h: ...new file.
18198         * lib/parse-datetime.y (get_date): Rename...
18199         (parse_datetime): ...to this.
18200         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18201         (gl_PARSE_DATETIME): ...to this.
18202         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18203         documentation.
18204         * modules/getdate (Files): Provide fallback docs and header.
18205         (Notice, Depends-on): Update references.
18206         * tests/test-parse-datetime.c: Likewise.
18207         * DEPENDENCIES: Likewise.
18208         * MODULES.html.sh (Date and time <time.h>): Likewise.
18209         * doc/parse-datetime.texi (Date input formats)
18210         (Authors of parse_datetime): Likewise.
18211         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18212         (Include): Likewise.
18213         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18214         * gnulib-tool: Likewise.
18215         * m4/bison.m4 (gl_BISON): Likewise.
18216         Suggested by Bruno Haible.
18217
18218 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18219
18220         more ports to Solaris tr, which needs [] around ranges
18221         * gnulib-tool: Solaris tr needs [] around ranges.
18222         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18223         * tests/test-pipe-filter-gi1.c (main): Likewise.
18224         * tests/test-pipe-filter-ii1.c (main): Likewise.
18225
18226 2010-10-05  Eric Blake  <eblake@redhat.com>
18227
18228         bootstrap: fix Solaris regression
18229         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18230         around ranges.
18231         Reported by Pádraig Brady.
18232
18233         bootstrap: work with pkg-config
18234         * build-aux/bootstrap (check_versions): Also transliterate - in
18235         prerequisite name.
18236         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18237         prerequisites that were already found, to avoid confusion.
18238         Reported by Justin Clift.
18239
18240         faccessat: remove unused wrappers
18241         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18242         presence of these wrappers dragged in -lgen on Solaris.
18243         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18244
18245 2010-10-05  Jim Meyering  <meyering@redhat.com>
18246
18247         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18248         * Makefile (sc_pragma_columns): New syntax-check rule.
18249
18250 2010-10-04  Bruno Haible  <bruno@clisp.org>
18251
18252         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18253         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18254         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18255         Reported by Bruce Korb and Eric Blake.
18256
18257 2010-10-04  Bruno Haible  <bruno@clisp.org>
18258
18259         threadlib: Make option --with-libpth-prefix work.
18260         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18261         use $LIBPTH, not just -lpth.
18262
18263 2010-10-04  Bruno Haible  <bruno@clisp.org>
18264
18265         Avoid line length limitation from HP NonStop system header files.
18266         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18267         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18268         * lib/ctype.in.h: Likewise.
18269         * lib/dirent.in.h: Likewise.
18270         * lib/errno.in.h: Likewise.
18271         * lib/fcntl.in.h: Likewise.
18272         * lib/float.in.h: Likewise.
18273         * lib/getopt.in.h: Likewise.
18274         * lib/iconv.in.h: Likewise.
18275         * lib/inttypes.in.h: Likewise.
18276         * lib/langinfo.in.h: Likewise.
18277         * lib/locale.in.h: Likewise.
18278         * lib/math.in.h: Likewise.
18279         * lib/netdb.in.h: Likewise.
18280         * lib/netinet_in.in.h: Likewise.
18281         * lib/poll.in.h: Likewise.
18282         * lib/pthread.in.h: Likewise.
18283         * lib/pty.in.h: Likewise.
18284         * lib/sched.in.h: Likewise.
18285         * lib/se-selinux.in.h: Likewise.
18286         * lib/search.in.h: Likewise.
18287         * lib/signal.in.h: Likewise.
18288         * lib/spawn.in.h: Likewise.
18289         * lib/stdarg.in.h: Likewise.
18290         * lib/stddef.in.h: Likewise.
18291         * lib/stdint.in.h: Likewise.
18292         * lib/stdio.in.h: Likewise.
18293         * lib/stdlib.in.h: Likewise.
18294         * lib/string.in.h: Likewise.
18295         * lib/strings.in.h: Likewise.
18296         * lib/sys_file.in.h: Likewise.
18297         * lib/sys_ioctl.in.h: Likewise.
18298         * lib/sys_select.in.h: Likewise.
18299         * lib/sys_socket.in.h: Likewise.
18300         * lib/sys_stat.in.h: Likewise.
18301         * lib/sys_time.in.h: Likewise.
18302         * lib/sys_times.in.h: Likewise.
18303         * lib/sys_utsname.in.h: Likewise.
18304         * lib/sys_wait.in.h: Likewise.
18305         * lib/sysexits.in.h: Likewise.
18306         * lib/termios.in.h: Likewise.
18307         * lib/time.in.h: Likewise.
18308         * lib/unistd.in.h: Likewise.
18309         * lib/wchar.in.h: Likewise.
18310         * lib/wctype.in.h: Likewise.
18311         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18312         * modules/ctype (Makefile.am): Likewise.
18313         * modules/dirent (Makefile.am): Likewise.
18314         * modules/errno (Makefile.am): Likewise.
18315         * modules/fcntl-h (Makefile.am): Likewise.
18316         * modules/float (Makefile.am): Likewise.
18317         * modules/getopt-posix (Makefile.am): Likewise.
18318         * modules/iconv-h (Makefile.am): Likewise.
18319         * modules/inttypes (Makefile.am): Likewise.
18320         * modules/langinfo (Makefile.am): Likewise.
18321         * modules/locale (Makefile.am): Likewise.
18322         * modules/math (Makefile.am): Likewise.
18323         * modules/netdb (Makefile.am): Likewise.
18324         * modules/netinet_in (Makefile.am): Likewise.
18325         * modules/poll-h (Makefile.am): Likewise.
18326         * modules/pthread (Makefile.am): Likewise.
18327         * modules/pty (Makefile.am): Likewise.
18328         * modules/sched (Makefile.am): Likewise.
18329         * modules/search (Makefile.am): Likewise.
18330         * modules/selinux-h (Makefile.am): Likewise.
18331         * modules/signal (Makefile.am): Likewise.
18332         * modules/spawn (Makefile.am): Likewise.
18333         * modules/stdarg (Makefile.am): Likewise.
18334         * modules/stddef (Makefile.am): Likewise.
18335         * modules/stdint (Makefile.am): Likewise.
18336         * modules/stdio (Makefile.am): Likewise.
18337         * modules/stdlib (Makefile.am): Likewise.
18338         * modules/string (Makefile.am): Likewise.
18339         * modules/strings (Makefile.am): Likewise.
18340         * modules/sys_file (Makefile.am): Likewise.
18341         * modules/sys_ioctl (Makefile.am): Likewise.
18342         * modules/sys_select (Makefile.am): Likewise.
18343         * modules/sys_socket (Makefile.am): Likewise.
18344         * modules/sys_stat (Makefile.am): Likewise.
18345         * modules/sys_time (Makefile.am): Likewise.
18346         * modules/sys_times (Makefile.am): Likewise.
18347         * modules/sys_utsname (Makefile.am): Likewise.
18348         * modules/sys_wait (Makefile.am): Likewise.
18349         * modules/sysexits (Makefile.am): Likewise.
18350         * modules/termios (Makefile.am): Likewise.
18351         * modules/time (Makefile.am): Likewise.
18352         * modules/unistd (Makefile.am): Likewise.
18353         * modules/wchar (Makefile.am): Likewise.
18354         * modules/wctype (Makefile.am): Likewise.
18355
18356 2010-10-04  Bruno Haible  <bruno@clisp.org>
18357
18358         read-file tests: Avoid a test failure on NonStop Kernel.
18359         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18360         a regular file.
18361         Reported by Joachim Schmitz <schmitz@hp.com>.
18362
18363 2010-10-03  Bruno Haible  <bruno@clisp.org>
18364
18365         gnulib-tool: Fixes for --create-testdir with --libtool.
18366         * gnulib-tool (func_get_automake_snippet): Don't augment
18367         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18368         an executable.
18369         (func_create_testdir): Handle module 'alloca' like func_import.
18370         Reported by Bruce Korb <bruce.korb@gmail.com>.
18371
18372 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18373
18374         Avoid some lines longer than 80 characters.
18375         * lib/stdint.in.h: Break long comment lines.
18376         * lib/math.in.h: Likewise.
18377         (_GL_NUM_UINT_WORDS): New macro, for readability.
18378         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18379         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18380         * lib/stdlib.in.h: Likewise.
18381         * lib/spawn.in.h: Likewise.
18382         * lib/sys_socket.in.h: Update an URL.
18383         * lib/sys_stat.in.h: Break long line.
18384
18385 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18386
18387         Improve pmccabe2html.
18388         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18389         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18390         when the sources change. Remove the line in the HTML about "Used
18391         ranges" (which implied that there might be other unused ranges),
18392         rename "Resume" to "Summary" (easier to understand for more users).
18393         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18394         styles, and some unnecessary blank lines.
18395
18396 2010-10-03  Bruno Haible  <bruno@clisp.org>
18397             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18398
18399         acl: Add support for ACLs on NonStop Kernel.
18400         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18401         Check whether the function aclsort() exists.
18402         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18403         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18404         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18405         (acl_nontrivial [HAVE_ACLSORT]: New function.
18406         (file_has_acl): Implement for NonStop Kernel.
18407         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18408         (qset_acl): Implement for NonStop Kernel.
18409         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18410         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18411         (main): Implement for NonStop Kernel.
18412         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18413         Kernel. Handle this flavor.
18414         * tests/test-set-mode-acl.sh: Likewise.
18415         * tests/test-copy-acl.sh: Likewise.
18416         * tests/test-copy-file.sh: Likewise.
18417
18418 2010-10-03  Bruno Haible  <bruno@clisp.org>
18419
18420         Info about ACLs on NonStop Kernel.
18421         * doc/acl-resources.txt: Add info about NonStop Kernel.
18422         References by Joachim Schmitz <schmitz@hp.com>.
18423
18424 2010-10-02  Bruno Haible  <bruno@clisp.org>
18425
18426         Define missing EDQUOT on NonStop Kernel.
18427         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18428         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18429         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18430         missing.
18431         * doc/posix-headers/errno.texi: Mention the NSK bug.
18432         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18433         Reported by Joachim Schmitz <schmitz@hp.com>.
18434
18435 2010-10-02  Bruno Haible  <bruno@clisp.org>
18436
18437         Update doc for POSIX:2008.
18438         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18439         Update URL of POSIX specification.
18440
18441 2010-10-02  Bruno Haible  <bruno@clisp.org>
18442
18443         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18444         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18445         from gnulib, not from Automake.
18446
18447 2010-10-02  Bruno Haible  <bruno@clisp.org>
18448
18449         New module 'system-posix'.
18450         * modules/system-posix: New file.
18451         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18452         module is present.
18453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18454         GNULIB_SYSTEM_POSIX.
18455         * modules/stdlib (Depends-on): Remove sys_wait.
18456         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18457         * doc/posix-functions/system.texi: Mention the new module.
18458         * doc/posix-headers/stdlib.texi: Likewise.
18459         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18460         define test_sys_wait_macros to a no-op.
18461         Reported by Sam Steingold <sds@gnu.org>.
18462
18463 2010-09-30  Bruno Haible  <bruno@clisp.org>
18464
18465         More renaming from 'getdate' to 'get_date'.
18466         * doc/get_date.texi: Renamed from doc/getdate.texi.
18467         * modules/get_date (Files): Update.
18468         * MODULES.html.sh (Date and time <time.h>): Update.
18469         * DEPENDENCIES: Update.
18470         * gnulib-tool: Update comment.
18471         * m4/bison.m4 (gl_BISON): Likewise.
18472         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18473
18474 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18475
18476         bootstrap: support ACLOCAL_FLAGS during aclocal
18477         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18478         can add additional -I dir for third-party .m4 files.
18479
18480 2010-09-30  Eric Blake  <eblake@redhat.com>
18481
18482         bootstrap: use glibtoolize on MacOS
18483         * build-aux/bootstrap (check_versions): Convert libtool into
18484         libtoolize.
18485         (tool search): Move libtool check earlier, and look for
18486         glibtoolize for MacOS.
18487         (gnulib_tool_options): Auto-add --libtool when appropriate.
18488         Reported by Justin Clift.
18489
18490         poll: fix typo that broke test on MacOS
18491         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18492         Reported by Justin Clift.
18493
18494         getdate: rename to get_date
18495         Note: getdate.h is not renamed, to minimize client impact.
18496         * modules/getdate: Mark obsolete.  Move old contents...
18497         * modules/get_date: ...to new module name.
18498         * modules/getdate-tests: Move...
18499         * modules/get_date-tests: ...here.
18500         * m4/getdate.m4: Move...
18501         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18502         * lib/getdate.y: Move...
18503         * lib/get_date.y: ...here.
18504         * tests/test-getdate.c: Move...
18505         * tests/test-get_date.c: ...here.
18506         * doc/posix-functions/getdate.texi (getdate): Update name.
18507         * NEWS: Mention the change.
18508
18509 2010-09-29  Bruno Haible  <bruno@clisp.org>
18510
18511         Separate the module 'waitpid' from the module 'sys_wait'.
18512         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18513         present.
18514         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18515         gl_MODULE_INDICATOR_FOR_TESTS.
18516         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18517         * modules/sys_wait (Depends-on): Remove waitpid.
18518         (Makefile.am): Substitute GNULIB_WAITPID.
18519         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18520         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18521         signature only if the 'waitpid' module is present.
18522         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18523         * NEWS: Mention the change.
18524         * modules/grantpt (Depends-on): Add waitpid.
18525         * modules/wait-process (Depends-on): Likewise.
18526
18527 2010-09-29  Bruno Haible  <bruno@clisp.org>
18528
18529         More tests for module 'sys_wait'.
18530         * modules/sys_wait-c++-tests: New file.
18531         * tests/test-sys_wait-c++.cc: New file.
18532         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18533         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18534
18535 2010-09-29  Bruno Haible  <bruno@clisp.org>
18536
18537         New module 'waitpid'.
18538         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18539         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18540         Don't include <process.h>.
18541         (waitpid): Declare only, using modern idiom.
18542         * m4/waitpid.m4: New file.
18543         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18544         * modules/waitpid: New file.
18545         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18546         (Makefile.am): Update.
18547         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18548
18549 2010-09-28  Bruno Haible  <bruno@clisp.org>
18550
18551         poll: Assume ANSI C.
18552         * lib/poll.c (poll): Use an ANSI C declaration.
18553
18554 2010-09-28  Bruno Haible  <bruno@clisp.org>
18555
18556         poll-h: Create poll.h on all platforms.
18557         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18558         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18559         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18560         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18561         (gl_REPLACE_POLL_H): Don't set POLL_H.
18562         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18563         * modules/poll-h (Depends-on): Add include_next.
18564         (Makefile.am): Create poll.h unconditionally. Substitute also
18565         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18566
18567 2010-09-28  Bruno Haible  <bruno@clisp.org>
18568
18569         Tests for module 'poll-h'.
18570         * modules/poll-h-c++-tests: New file.
18571         * tests/test-poll-h-c++.cc: New file.
18572
18573         Tests for module 'poll-h'.
18574         * modules/poll-h-tests: New file.
18575         * tests/test-poll-h.c: New file.
18576
18577 2010-09-28  Bruno Haible  <bruno@clisp.org>
18578
18579         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18580         * modules/poll-h (Depends-on): Add 'extensions'.
18581
18582 2010-09-28  Bruno Haible  <bruno@clisp.org>
18583
18584         New module 'poll-h'.
18585         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18586         (poll): Use modern idiom.
18587         * modules/poll-h: New file.
18588         * modules/poll (Files): Remove lib/poll.in.h.
18589         (Depends-on): Add poll-h.
18590         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18591         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18592         * m4/poll_h.m4: New file.
18593         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18594         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18595         and invoke gl_REPLACE_POLL_H.
18596         * lib/poll.c: Use common idiom.
18597         * tests/test-poll.c: Likewise.
18598         * doc/posix-headers/poll.texi: Mention the poll-h module.
18599         Suggested by Eric Blake.
18600
18601 2010-09-26  Bruno Haible  <bruno@clisp.org>
18602
18603         sys_wait: Implement WSTOPSIG.
18604         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18605         Reported by Simon Josefsson.
18606
18607 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18608
18609         stdlib, sys_wait: Avoid compilation error on mingw.
18610         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18611
18612 2010-09-26  Bruno Haible  <bruno@clisp.org>
18613
18614         stdlib tests: Avoid code duplication.
18615         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18616         * modules/sys_wait-tests (Files): Likewise.
18617         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18618         * tests/test-stdlib.c: Include test-sys_wait.h.
18619         (main): Invoke test_sys_wait_macros.
18620         * tests/test-sys_wait.c: Include test-sys_wait.h.
18621         (main): Invoke test_sys_wait_macros.
18622
18623 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18624
18625         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18626         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18627         sure Windows sockets are working before calling getaddrinfo.
18628         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18629         * doc/gnulib.texi (Windows sockets): Fix typo.
18630
18631 2010-09-25  Bruno Haible  <bruno@clisp.org>
18632
18633         Tests for module 'regex-quote'.
18634         * modules/regex-quote-tests: New file.
18635         * tests/test-regex-quote.c: New file.
18636
18637         New module 'regex-quote'.
18638         * lib/regex-quote.h: New file.
18639         * lib/regex-quote.c: New file.
18640         * modules/regex-quote: New file.
18641         Suggested by Reuben Thomas <rrt@sc3d.org>.
18642
18643 2010-09-24  Bruno Haible  <bruno@clisp.org>
18644
18645         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18646         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18647
18648 2010-09-23  Bruno Haible  <bruno@clisp.org>
18649
18650         setenv: Relax license.
18651         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18652         Blake.
18653         Requested by Eric Blake.
18654
18655 2010-09-22  Bruno Haible  <bruno@clisp.org>
18656
18657         termios: Relax license.
18658         * modules/termios (License): Change to LGPLv2+.
18659         Requested by Eric Blake.
18660
18661 2010-09-22  Bruno Haible  <bruno@clisp.org>
18662
18663         threadlib: Allow the package to change the default to 'no'.
18664         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18665         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18666         Reported by Paul Eggert.
18667
18668 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18669             Bruno Haible  <bruno@clisp.org>
18670
18671         Fix endless loop in mbmemcasecoll.
18672         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18673         byte.
18674         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18675
18676 2010-09-22  Bruno Haible  <bruno@clisp.org>
18677
18678         Tests for module 'memcoll'.
18679         * modules/memcoll-tests: New file.
18680         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18681
18682         memcoll, xmemcoll: Clarify size vs. length.
18683         * modules/memcoll.c (memcoll0): Clarify specification.
18684         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18685         passed to collate_error.
18686
18687 2010-09-22  Bruno Haible  <bruno@clisp.org>
18688
18689         Tests for module 'memcasecmp'.
18690         * modules/memcasecmp-tests: New file.
18691         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18692
18693 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18694
18695         * lib/pthread.in.h: Add split double-inclusion guard, and include
18696         system <pthread.h> if there is one.  Use @@-style as in other
18697         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18698         pthread.h doesn't.
18699         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18700         (pthread_mutexattr_settype, pthread_mutex_trylock):
18701         New static inline functions, if there's no system <pthread.h>.
18702         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18703         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18704         Approximate with mutexes if the system lacks spinlocks, as in
18705         MacOS.
18706         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18707         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18708         @@-style.  Check for spinlocks separately.
18709         (gl_PTHREAD_DEFAULTS): New macro.
18710         * modules/pthread: Redo to use a more typical style for in.h files.
18711
18712 2010-09-21  Eric Blake  <eblake@redhat.com>
18713
18714         net_if: enhance tests
18715         * tests/test-net_if.c (main): Move signature checks earlier.
18716         Print failures to stderr.
18717         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18718         Document the bug that we do not yet fix.
18719
18720 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18721
18722         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18723         about gnulib, not GSS.
18724
18725 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18726
18727         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18728         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18729         for Emacs.
18730         * build-aux/pmccabe2html: Make Makefile.am example code more
18731         cut-and-paste friendly.
18732
18733 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18734
18735         * tests/test-net_if.c: New file.
18736         * modules/net_if-tests: New file.
18737
18738 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18739
18740         pthread: add pthread_spin_destroy
18741         * lib/pthread.in.h (pthread_spin_destroy): New function.
18742
18743 2010-09-19  Bruno Haible  <bruno@clisp.org>
18744
18745         gnulib-tool: Fix --help output.
18746         * gnulib-tool (func_usage): Fix help message.
18747         Reported by Reuben Thomas <rrt@sc3d.org>.
18748
18749 2010-09-18  Jim Meyering  <meyering@redhat.com>
18750
18751         maint.mk: avoid unexpanded \n in two diagnostics
18752         * top/maint.mk (sc_prohibit_always_true_header_tests):
18753         Don't use a literal \n in a halt=... assignment.  It would not be
18754         expanded, and the two \n bytes would appear in the diagnostic output
18755         rather than the desired newline.  Use halt=$$(printf ... instead.
18756         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18757
18758 2010-09-18  Bruno Haible  <bruno@clisp.org>
18759
18760         netinet_in: Doc tweak.
18761         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18762         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18763
18764 2010-09-18  Jim Meyering  <meyering@redhat.com>
18765
18766         init.sh: correct an outdated comment
18767         * tests/init.sh (create_exe_shims_):  s/function/alias/
18768
18769         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18770         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18771         a file named "*.exe" is removed between the glob expansion and the
18772         processing of that oddly named file.
18773
18774 2010-09-17  Eric Blake  <eblake@redhat.com>
18775
18776         mirbsd: add some more support
18777         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18778         in BSD family.
18779         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18780         devices as OpenBSD.
18781         * m4/host-os.m4 (mirbsd): Add MirBSD.
18782
18783         tests: fix unportable assumption on sys/wait.h
18784         * tests/test-sys_wait.c (main): Relax test.
18785         * tests/test-stdlib.c (main): Likewise.
18786
18787         init.sh: accomodate directory with no .exes
18788         * tests/init.sh: Accomodate directory containing only scripts.
18789
18790         tests: avoid compiler warning
18791         * tests/test-stdlib.c (main): Use the variable.
18792
18793         fdutimens, fdutimensat: update signature, again
18794         * lib/utimens.h (gl_futimens): Delete, and move signature...
18795         (fdutimens): ...here.
18796         (fdutimensat): Rearrange signature.
18797         (lutimensat): Rename variable for clarity.
18798         * lib/fdutimensat.c (fdutimensat): Update signature.
18799         * lib/utimens.c (fdutimens): Likewise.
18800         (gl_futimens): Delete.
18801         (utimens, lutimens): Update callers.
18802         * lib/futimens.c (futimens): Likewise.
18803         * tests/test-fdutimensat.c: Likewise.
18804         * tests/test-utimens.c: Likewise.
18805         * tests/test-futimens.h: Update comment.
18806         * NEWS: Mention this.
18807         Suggested by Paul Eggert.
18808
18809 2010-09-17  Bruno Haible  <bruno@clisp.org>
18810
18811         Take over the maintenance of some older macros from Autoconf.
18812         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18813         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18814         GNU Autoconf.
18815         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18816         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18817
18818 2010-09-17  Eric Blake  <eblake@redhat.com>
18819
18820         fdutimensat: drop atflag validation
18821         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18822         with valid fd, to close a race scenario where futimens is
18823         unsupported and FILE was replaced by a symlink.
18824         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18825         accordingly.
18826         Suggested by Paul Eggert.
18827
18828 2010-09-16  Bruno Haible  <bruno@clisp.org>
18829
18830         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18831         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18832
18833 2010-09-16  Bruno Haible  <bruno@clisp.org>
18834
18835         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18836         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18837         login_tty exists.
18838         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18839
18840 2010-09-16  Bruno Haible  <bruno@clisp.org>
18841
18842         login_tty: Make the replacement code work on BSD systems.
18843         * lib/login_tty.c: Include <sys/ioctl.h>.
18844         (login_tty): Use ioctl TIOCSCTTY when available.
18845         * modules/login_tty (Depends-on): Add sys_ioctl.
18846         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18847
18848 2010-09-16  Bruno Haible  <bruno@clisp.org>
18849
18850         login_tty: Stricter unit test.
18851         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18852         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18853         and tcgetsid() after login_tty.
18854         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18855
18856 2010-09-16  Bruno Haible  <bruno@clisp.org>
18857
18858         New module 'tcgetsid'.
18859         * lib/tcgetsid.c: New file.
18860         * m4/tcgetsid.m4: New file.
18861         * modules/tcgetsid: New file.
18862         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18863         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18864         GNULIB_TCGETSID, HAVE_TCGETSID.
18865         * lib/termios.in.h: Include <sys/types.h>.
18866         (tcgetsid): New declaration.
18867         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18868         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18869         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18870         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18871
18872 2010-09-16  Bruno Haible  <bruno@clisp.org>
18873
18874         Tests for module 'termios'.
18875         * modules/termios-c++-tests: New file.
18876         * modules/termios-tests: New file.
18877         * tests/test-termios-c++.cc: New file.
18878         * tests/test-termios.c: New file.
18879
18880         New module 'termios'.
18881         * modules/termios: New file.
18882         * lib/termios.in.h: New file.
18883         * m4/termios_h.m4: New file.
18884         * doc/posix-headers/termios.texi: Mention the new module.
18885
18886 2010-09-16  Eric Blake  <eblake@redhat.com>
18887
18888         fdutimensat: add an atflag parameter
18889         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18890         * lib/utimens.h (fdutimensat): Update prototype.
18891         * tests/test-fdutimensat.c: Adjust test to match.
18892         * NEWS: Document the change.
18893         Suggested by Paul Eggert.
18894
18895 2010-09-16  Bruno Haible  <bruno@clisp.org>
18896
18897         Fix typos in comments.
18898         * lib/striconveh.h: Fix typo in comment.
18899         * lib/login_tty.c (login_tty): Likewise.
18900
18901 2010-09-15  Bruno Haible  <bruno@clisp.org>
18902
18903         stdlib: clarify MirBSD WEXITSTATUS bug
18904         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18905         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18906
18907 2010-09-15  Eric Blake  <eblake@redhat.com>
18908
18909         stdlib: work around MirBSD WEXITSTATUS bug
18910         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18911         * modules/stdlib (Depends-on): Add sys_wait.
18912         * tests/test-sys_wait.c (main): Enhance test.
18913         * tests/test-stdlib.c (main): Likewise.
18914         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18915
18916         docs: mention MacOS issue with WEXITSTATUS(constant)
18917         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18918         issue.
18919         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18920
18921         strnlen: add tests
18922         * modules/strnlen-tests: New file.
18923         * tests/test-strnlen.c: Likewise.
18924
18925 2010-09-14  Bruno Haible  <bruno@clisp.org>
18926
18927         unistr/base: Avoid link errors when module 'libunistring' is also used.
18928         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18929         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18930         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18931         Declare also when HAVE_LIBUNISTRING is set.
18932         Reported by Pádraig Brady <P@draigbrady.com>.
18933
18934 2010-09-14  Eric Blake  <eblake@redhat.com>
18935
18936         test-rawmemchr: make more robust
18937         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18938         (Depends-on, configure.ac): Add needed prerequisites to use it.
18939         * modules/memchr-tests (Files, Depends-on, configure.ac):
18940         Likewise, to avoid implicit reliance on memchr module prereqs.
18941         * tests/test-memchr.c (main): Ensure proper masking.
18942         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18943         reads.
18944
18945         memchr: detect glibc Alpha bug
18946         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18947         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18948         Alpha.
18949         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18950         * tests/test-memchr.c (main): Enhance test.
18951         Reported by Nelson H. F. Beebe.
18952
18953 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18954
18955         fts, getcwd, glob: audit for dirfd returning -1
18956         * lib/fts.c (opendir): Remove #define; no longer used.
18957         (opendirat): New arg PDIR_FD.  All callers changed.
18958         (fts_build, _opendir2): Use new opendirat to avoid the need for
18959         dirfd, or for checking whether dirfd returns a negative value.
18960         Don't use opendir; always use openat followed by fdopendir.
18961         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18962         it.
18963         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18964         returns -1 here.
18965         * modules/fts (Depends-on): Remove dirfd.
18966         * modules/getcwd (Depends-on): Likewise.
18967
18968 2010-09-13  Eric Blake  <eblake@redhat.com>
18969
18970         float: fix broken MirBSD header
18971         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18972         * doc/posix-headers/float.texi (float.h): Document it.
18973
18974 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18975
18976         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18977         * lib/fts.c (opendirat): New arg extra_flags.
18978         (__opendir2): Use it to avoid following symlinks when opening
18979         a directory, if symlinks are not supposed to be followed.  See
18980         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18981
18982         fdopendir: preserve argument fd before returning
18983         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18984         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18985         (fdopendir): Use them, arranging for FD to be open to the same
18986         directory that it was when it started.  (It might be temporarily
18987         closed while fdopendir is running, so this not thread- or
18988         signal-safe.)  Be careful to do the right thing even when file
18989         descriptors are scarce and dup fails with errno == EMFILE.  See
18990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18991
18992 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18993
18994         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18995         * NEWS: Document change.
18996         * m4/regex.m4: Disable test for regoff_t size.
18997
18998 2010-09-13  Jim Meyering  <meyering@redhat.com>
18999
19000         fts: don't operate on an invalid file descriptor after failed dup
19001         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19002         negative file descriptor.
19003
19004 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19005
19006         savedir: add streamsavedir, deprecate fdsavedir
19007         * NEWS: Mention deprecation of fdsavedir.
19008         * lib/savedir.c (streamsavedir): New extern function, whose name
19009         ends in "savedir" to be consistent with the others.  This differs
19010         from savedirstream in that it doesn't close its argument.  The
19011         next version of GNU tar will use this instead of fdsavedir, to
19012         avoid some race conditions and conserve file descriptors.
19013         (savedirstream): Reimplement as a wrapper around streamsavedir.
19014         (fdsavedir): Add a comment deprecating this function.  As far as
19015         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19016         * lib/savedir.h (streamsavedir): New decl.
19017         (fdsavedir): Add a comment deprecating this.
19018
19019 2010-09-10  Bruno Haible  <bruno@clisp.org>
19020
19021         langinfo: Fix last commit.
19022         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19023         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19025
19026 2010-09-10  Bruno Haible  <bruno@clisp.org>
19027
19028         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19029         * lib/progreloc.c (O_EXEC): Define fallback.
19030
19031 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19032
19033         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19034         * NEWS: Document recent changes to fcntl-h.
19035         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19036         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19037         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19038         Similarly for O_SEARCH; this last was already true, but not documented.
19039         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19040         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19041         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19042         Likewise.
19043         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19044         is zero, not whether it is defined.
19045         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19046         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19047         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19048
19049 2010-09-10  Bruno Haible  <bruno@clisp.org>
19050
19051         langinfo, nl_langinfo: Fix for IRIX 5.3.
19052         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19053         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19054         HAVE_LANGINFO_YESEXPR.
19055         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19056         HAVE_LANGINFO_YESEXPR.
19057         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19058         HAVE_LANGINFO_T_FMT_AMPM is 0.
19059         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19060         HAVE_LANGINFO_YESEXPR is 0.
19061         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19062         NOEXPR.
19063         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19064         * doc/posix-functions/nl_langinfo.texi: Likewise.
19065         Reported by Eric Blake.
19066
19067 2010-09-10  Bruno Haible  <bruno@clisp.org>
19068
19069         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19070         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19071         on FreeBSD 8.0 and OpenBSD 4.6.
19072         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19073         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19074         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19075         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19076         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19077         ac_includes_default.
19078         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19079
19080 2010-09-09  Eric Blake  <eblake@redhat.com>
19081
19082         strsignal: work around NetBSD bug
19083         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19084         * lib/string.in.h (includes): Likewise.
19085         * doc/posix-functions/strsignal.texi (strsignal): Document the
19086         bug.
19087         Reported by Nelson H. F. Beebe.
19088
19089         gnulib-tool: work with NetBSD /bin/sh
19090         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19091         (func_get_description, func_get_comment, func_get_status)
19092         (func_get_notice, func_get_applicability, func_get_filelist)
19093         (func_get_dependencies, func_get_autoconf_early_snippet)
19094         (func_get_autoconf_snippet, func_get_automake_snippet)
19095         (func_get_include_directive, func_get_link_directive)
19096         (func_get_license, func_get_maintainer, func_import): Avoid
19097         shell syntax errors from parsing syntax extensions.
19098
19099 2010-09-09  Bruno Haible  <bruno@clisp.org>
19100
19101         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19102         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19103         a reliable way to determine whether the 'alias' command works.
19104
19105 2010-09-08  Jim Meyering  <meyering@redhat.com>
19106
19107         init.sh: penalize a set-x-impaired shell; don't disqualify it
19108         * tests/init.sh: Too many shells corrupt application stderr when
19109         you set -x, so we can't afford to disqualify them, since at least
19110         on Irix-6.5, that would disqualify all bourne shells.
19111         Instead, use a two-pass approach.
19112         On the first pass, try to find a shell that meets the stricter
19113         condition that set -x does not corrupt stderr.
19114         If no shell meets the stricter condition, retest each candidate
19115         shell, but without that extra condition.  Finally, when
19116         VERBOSE=yes is requested and set -x might cause trouble, simply
19117         issue a warning and refrain from enabling debug output.
19118
19119 2010-09-08  Eric Blake  <eblake@redhat.com>
19120
19121         unsetenv: fix OpenBSD bug
19122         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19123         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19124         documentation.
19125         Reported by Jim Meyering.
19126
19127         strtod: work around IRIX 6.5 bug
19128         * lib/strtod.c (strtod): Reparse number on shorter string if
19129         exponent parse was invalid.
19130         * tests/test-strtod.c (main): Add check for "0x1p 2".
19131         Reported by Tom G. Christensen.
19132
19133         getopt: optimize previous patch
19134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19135         empty variable.  Speed up awk script.
19136         Reported by Paolo Bonzini.
19137
19138 2010-09-08  Jim Meyering  <meyering@redhat.com>
19139
19140         test.sh: disqualify shells for which set -x corrupts stderr
19141         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19142         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19143         appear in stderr output.  For example, this command:
19144             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19145         prints "P=1" on those two systems:
19146
19147 2010-09-08  Bruno Haible  <bruno@clisp.org>
19148
19149         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19150         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19151         commands, because some shells ignore redirections when there is an
19152         error in the command lookup.
19153         Reported by Eric Blake.
19154
19155 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19156
19157         * lib/regex.h: Fix a mention of `regex_compile' (should be
19158         `re_compile_pattern').
19159         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19160         (re_set_registers): Correct name of parameter in comment.
19161
19162         * doc/regex.texi: Add documentation for missing syntax flags.
19163         Remove commented-out documentation of defunct syntax option
19164         RE_NO_EMPTY_ALTS.
19165         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19166         Add documentation of re_set_registers.
19167         Document trick to re-use a pattern buffer by setting fastmap manually.
19168         Update documentation of struct re_pattern_buffer per public members.
19169         Uncomment documentation of equivalence class operators and
19170         collating symbol operators, since they are now implemented,
19171         Explain leftmost-longest matching in relation to alternatives.
19172         Tidy documentation of substring matching.
19173         Remove POSIX documentation, which is done better in
19174         glibc, and refer the reader there. Keep BSD API documentation, as
19175         that is not readily available elsewhere.
19176
19177 2010-09-07  Eric Blake  <eblake@redhat.com>
19178
19179         getopt: handle POSIXLY_CORRECT set but not exported
19180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19181         export state of POSIXLY_CORRECT, due to bash set -o posix.
19182         Reported by Dustin J. Mitchell.
19183
19184 2010-09-05  Bruno Haible  <bruno@clisp.org>
19185
19186         gnulib-tool: Highlight the changed options.
19187         * gnulib-tool (func_usage): Display the --import, --add-import,
19188         --remove-import explanations in bold font.
19189
19190 2010-09-06  Karl Berry  <karl@gnu.org>
19191
19192         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19193
19194 2010-09-05  Bruno Haible  <bruno@clisp.org>
19195
19196         uniwidth/width: Update comment.
19197         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19198         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19199
19200 2010-09-05  Bruno Haible  <bruno@clisp.org>
19201
19202         isinf, isnan: Relax license.
19203         * modules/isinf (License): Change from GPL to LGPL, with consent from
19204         Ben Pfaff.
19205         * modules/isnan (License): Likewise.
19206         Requested by Ludovic Courtès.
19207
19208 2010-09-04  Bruno Haible  <bruno@clisp.org>
19209
19210         gnulib-tool: Help migration from --import to --add-import or --update.
19211         * gnulib-tool: Emit a verbose error message when --import is used
19212         without any module name.
19213
19214 2010-09-04  Bruno Haible  <bruno@clisp.org>
19215
19216         Update doc about gnulib-tool.
19217         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19218         'gnulib-tool --update' in more detail.
19219         Reported by Eric Blake.
19220
19221 2010-09-04  Bruno Haible  <bruno@clisp.org>
19222
19223         gnulib-tool: Change --import. New options --add/remove-import.
19224         * gnulib-tool: New options --add-import, --remove-import.
19225         (func_usage): Document them.
19226         (have_associative): Define always.
19227         (func_import): In import mode, don't merge the specified settings with
19228         the cached settings. Implement remove-import mode.
19229         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19230         Explain when to use them versus --import.
19231         (Simple update): Use --add-import instead of --import.
19232         * NEWS: Mention the change.
19233
19234 2010-09-04  Bruno Haible  <bruno@clisp.org>
19235
19236         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19237         separate gnulib.mk.
19238
19239 2010-09-04  Bruno Haible  <bruno@clisp.org>
19240
19241         gnulib-tool: Don't talk about CVS any more.
19242         * gnulib-tool (func_usage, func_import): Write "version control"
19243         instead of CVS.
19244
19245 2010-09-04  Jim Meyering  <meyering@redhat.com>
19246
19247         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19248         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19249         false positives (whose names may be ill-chosen) when searching
19250         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19251         would cause a false-positive.
19252
19253         avoid coreutils "make distcheck" failure
19254         Coreutils tests with an absolute build directory name that contains
19255         a space.  Not quoting this directory name caused a failure.
19256         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19257         * tests/test-vc-list-files-cvs.sh: Likewise.
19258
19259 2010-09-04  Bruno Haible  <bruno@clisp.org>
19260
19261         gnulib-tool: Avoid error when run in a package without Makefile.am.
19262         * gnulib-tool: When collecting the m4dirs in a package that does not
19263         have a Makefile.am, eliminate those directories that contain no
19264         gnulib-cache.m4. Fix expression that counts these directories.
19265
19266 2010-09-04  Bruno Haible  <bruno@clisp.org>
19267
19268         update-copyright test: Improve output when perl is missing or too old.
19269         * tests/test-update-copyright.sh: Move test of Perl version down after
19270         the test whether Perl exists. Provide an explanation relating Perl's
19271         error message to Automake's SKIP: message.
19272
19273 2010-09-04  Bruno Haible  <bruno@clisp.org>
19274
19275         Don't augment PATH in TESTS_ENVIRONMENT.
19276         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19277         set abs_aux_dir instead of augmenting PATH.
19278         * modules/vc-list-files-tests (Makefile.am): Likewise.
19279         * tests/test-update-copyright.sh: Augment PATH here.
19280         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19281         path_prepend_.
19282         * tests/test-vc-list-files-git.sh: Likewise.
19283
19284 2010-09-04  Jim Meyering  <meyering@redhat.com>
19285
19286         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19287         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19288
19289 2010-09-04  Bruno Haible  <bruno@clisp.org>
19290
19291         strdup: Fix compilation error in C++ mode.
19292         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19293         the macro.
19294
19295 2010-09-04  Bruno Haible  <bruno@clisp.org>
19296
19297         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19298         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19299         macro into a function.
19300         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19301
19302 2010-09-04  Bruno Haible  <bruno@clisp.org>
19303
19304         Set PATH_SEPARATOR the same way autoconf does.
19305         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19306         the value of PATH_SEPARATOR the same way autoconf-generated configure
19307         scripts do.
19308         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19309         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19310
19311 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19312
19313         Set PATH_SEPARATOR the same way autoconf does.
19314         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19315         the same way autoconf-generated configure scripts do.
19316         * posix-modules: Likewise.
19317
19318 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19319
19320         hash: fix safe_hasher const typo
19321         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19322         const; otherwise, there is a type error later.
19323
19324 2010-09-02  Jim Meyering  <meyering@redhat.com>
19325
19326         test-update-copyright.sh: require perl 5.8.0
19327         * tests/test-update-copyright.sh: Require 5.8.0,
19328         which Tom G. Christensen has confirmed is adequate,
19329         while 5.6.1 is not.
19330
19331 2010-09-02  Eric Blake  <eblake@redhat.com>
19332
19333         tests: init.sh improvements for re-exec'ing with zsh
19334         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19335         -vx through shell re-exec.
19336         Reported by Tom G. Christensen.
19337
19338         wctype: fix typo in previous commit
19339         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19340         Reported by Ludovic Courtès.
19341
19342 2010-09-02  Jim Meyering  <meyering@redhat.com>
19343
19344         test-update-copyright.sh: skip test if Perl is too old
19345         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19346         Reported by Tom G. Christensen.
19347
19348 2010-09-02  Bruno Haible  <bruno@clisp.org>
19349
19350         wctype: Avoid compilation error on IRIX 6.5.30.
19351         * lib/wctype.in.h (iswblank): Declare with a replacement if
19352         REPLACE_ISWBLANK is set.
19353         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19354         declared. Set REPLACE_ISWBLANK.
19355         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19356         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19357         * doc/posix-headers/wctype.texi: Likewise.
19358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19359
19360 2010-09-01  Bruno Haible  <bruno@clisp.org>
19361
19362         New module 'socketlib'.
19363         * modules/socketlib: New file.
19364         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19365         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19366         * modules/sockets (Depends-on): Add socketlib.
19367         Suggested by Sam Steingold <sds@gnu.org>.
19368
19369 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19370
19371         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19372
19373         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19374         when one needs search access to a directory but not read access.
19375         On systems where it is available, it works in some cases where
19376         O_RDONLY does not, namely on directories that are searchable but
19377         not readable, and which need only to be searchable.  If O_SEARCH
19378         is not available, fall back to the traditional method of using
19379         O_RDONLY.
19380
19381         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19382         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19383         when opening a directory that needs only to be searchable.
19384         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19385         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19386         * lib/openat-proc.c (openat_proc_name): Likewise.
19387         * lib/openat.c (openat_needs_fchdir): Likewise.
19388         * lib/save-cwd.c (save_cwd): Likewise.
19389         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19390
19391 2010-08-28  Bruno Haible  <bruno@clisp.org>
19392
19393         New module 'host-cpu-c-abi'.
19394         * modules/host-cpu-c-abi: New file.
19395         * m4/host-cpu-c-abi.m4: New file, based on part of
19396         clisp/src/m4/general.m4.
19397         Requested by Sam Steingold <sds@gnu.org>.
19398
19399 2010-08-31  Eric Blake  <eblake@redhat.com>
19400         and Jim Meyering  <meyering@redhat.com>
19401
19402         hash: factor, and guard against misbehaving hasher function
19403         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19404         of table->hasher's return value.  Also protect against a hash value
19405         so large that adding it to table->bucket results in a NULL pointer.
19406         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19407         Use it in place of open-coded check-and-abort.
19408
19409 2010-08-30  Bruno Haible  <bruno@clisp.org>
19410
19411         hash: silence spurious clang warning
19412         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19413         Reported by Eric Blake.
19414
19415 2010-08-30  Eric Blake  <eblake@redhat.com>
19416
19417         strstr, memmem, strcasestr: avoid leaked shell message
19418         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19419         FreeBSD.
19420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19422
19423         tests: silence clang warning
19424         * tests/test-malloca.c (do_allocation): Avoid dead store.
19425
19426 2010-08-29  Bruno Haible  <bruno@clisp.org>
19427
19428         gettext: Fix recent mistake.
19429         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19430
19431 2010-08-29  Bruno Haible  <bruno@clisp.org>
19432
19433         selinux-h: Offer a --without-selinux option.
19434         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19435         --without-selinux was specified, skip all tests and define
19436         HAVE_SELINUX_SELINUX_H to 0.
19437         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19438         set LIB_SELINUX to empty.
19439         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19440         gl_LIBSELINUX. If --without-selinux was specified, replace
19441         selinux/context.h.
19442         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19443
19444 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19445             Bruno Haible  <bruno@clisp.org>
19446
19447         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19448         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19449         of HAVE_REALLOC.
19450         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19451         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19452         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19453         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19454
19455 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19456             Bruno Haible  <bruno@clisp.org>
19457
19458         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19459         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19460         HAVE_CALLOC.
19461         * lib/xmalloc.c: Update accordingly.
19462         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19463         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19464         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19465
19466 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19467             Bruno Haible  <bruno@clisp.org>
19468
19469         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19470         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19471         HAVE_MALLOC.
19472         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19473         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19474         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19475
19476 2010-08-29  Bruno Haible  <bruno@clisp.org>
19477
19478         Update modules list.
19479         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19480         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19481         (String handling <string.h>): Add astrxfrm.
19482         (File system functions): Add readlinkat.
19483
19484 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19485
19486         Tests for module 'realloc-gnu'.
19487         * modules/realloc-gnu-tests: New file.
19488         * tests/test-realloc-gnu.c: New file.
19489
19490         Tests for module 'calloc-gnu'.
19491         * modules/calloc-gnu-tests: New file.
19492         * tests/test-calloc-gnu.c: New file.
19493
19494         Tests for module 'malloc-gnu'.
19495         * modules/malloc-gnu-tests: New file.
19496         * tests/test-malloc-gnu.c: New file.
19497
19498 2010-08-28  Bruno Haible  <bruno@clisp.org>
19499
19500         Rename module 'realloc' -> 'realloc-gnu'.
19501         * modules/realloc-gnu: New file, copied from modules/realloc.
19502         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19503         obsolete.
19504         * modules/mgetgroups (Depends-on): Update.
19505         * doc/posix-functions/realloc.texi: Update.
19506         * NEWS: Mention the change.
19507
19508         Rename module 'calloc' -> 'calloc-gnu'.
19509         * modules/calloc-gnu: New file, copied from modules/calloc.
19510         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19511         obsolete.
19512         * doc/posix-functions/calloc.texi: Update.
19513         * NEWS: Mention the change.
19514
19515         Rename module 'malloc' -> 'malloc-gnu'.
19516         * modules/malloc-gnu: New file, copied from modules/malloc.
19517         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19518         obsolete.
19519         * modules/argp (Depends-on): Update.
19520         * modules/regex (Depends-on): Update.
19521         * doc/posix-functions/malloc.texi: Update.
19522         * NEWS: Mention the change.
19523
19524 2010-08-28  Eric Blake  <eblake@redhat.com>
19525
19526         pread, pwrite: add missing dependency
19527         * modules/pread (Depends-on): Add extensions.
19528         * modules/pwrite (Depends-on): Likewise.
19529
19530 2010-08-28  Bruno Haible  <bruno@clisp.org>
19531
19532         unistr/u*-strchr: Fix tests dependencies.
19533         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19534         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19535         Reported by Ian Beckwith <ianb@erislabs.net>.
19536
19537 2010-08-28  Bruno Haible  <bruno@clisp.org>
19538
19539         read-file: Don't occupy too much unused memory.
19540         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19541
19542 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19543             Eric Blake  <eblake@redhat.com>
19544             Bruno Haible  <bruno@clisp.org>
19545
19546         read-file: Avoid memory reallocations with regular files.
19547         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19548         (fread_file): With regular files, use the remaining length as the
19549         initial buffer size.  Check against overflow.
19550         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19551         sys_stat.
19552
19553 2010-08-28  Bruno Haible  <bruno@clisp.org>
19554
19555         ftello: Relax license.
19556         * modules/ftello (License): Relax to LGPLv2+.
19557         Reported by Eric Blake.
19558
19559 2010-08-28  Bruno Haible  <bruno@clisp.org>
19560
19561         Avoid relocwrapper link errors due to gnulib replacement functions.
19562         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19563         function.
19564         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19565
19566 2010-08-28  Bruno Haible  <bruno@clisp.org>
19567
19568         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19569         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19570         defined.
19571         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19572         Suggested by Eric Blake.
19573
19574 2010-08-28  Bruno Haible  <bruno@clisp.org>
19575
19576         sys_socket, netdb: Ensure socklen_t gets defined.
19577         * modules/sys_socket (Depends-on): Add socklen.
19578         * modules/netdb (Depends-on): Likewise.
19579         * modules/getaddrinfo (Depends-on): Remove socklen.
19580         * modules/getsockopt (Depends-on): Likewise.
19581         * modules/setsockopt (Depends-on): Likewise.
19582         * tests/test-sys_socket.c: Check that socklen_t is defined.
19583         * tests/test-netdb.c: Likewise.
19584         * m4/socklen.m4: Update comments.
19585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19586
19587 2010-08-27  Eric Blake  <eblake@redhat.com>
19588
19589         login_tty: add missing dependency
19590         * modules/login_tty (Depends-on): Add pty.
19591
19592 2010-08-26  Eric Blake  <eblake@redhat.com>
19593
19594         lib-symbol-versions: fix m4 quoting
19595         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19596         format for AC_LINK_IFELSE.
19597
19598         glob: fix compile test
19599         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19600
19601         btowc: fix missing file
19602         * modules/btowc (Files): Also ship locale-fr.m4.
19603
19604         lseek: fix link test
19605         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19606         AC_LINK_IFELSE.
19607
19608         include_next: silence autoconf 2.68 warning
19609         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19610         AC_COMPILE_IFELSE as special.
19611         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19612         autoconf < 2.68.
19613
19614         acl: fix compilation test
19615         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19616         AC_COMPILE_IFELSE.
19617
19618 2010-08-26  Bruno Haible  <bruno@clisp.org>
19619
19620         Modernize AC_TRY_RUN invocations.
19621         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19622         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19623         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19624         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19625         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19626         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19627         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19629         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19630         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19631         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19632         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19633         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19634         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19636         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19637         gl_MBRLEN_NUL_RETVAL): Likewise.
19638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19639         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19640         Likewise.
19641         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19642         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19643         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19644         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19645         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19646         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19647         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19648         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19649         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19650         Likewise.
19651         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19652         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19653         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19654         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19655         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19656         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19657         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19658         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19659         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19661
19662 2010-08-26  Bruno Haible  <bruno@clisp.org>
19663
19664         Modernize AC_TRY_LINK invocations.
19665         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19666         AC_TRY_LINK.
19667         * m4/argp.m4 (gl_ARGP): Likewise.
19668         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19669         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19670         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19671         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19672         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19673         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19674         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19675         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19676         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19678         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19679         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19680         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19681         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19682         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19683         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19684         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19685         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19686         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19687         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19688         Likewise.
19689         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19690         Likewise.
19691         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19692         Likewise.
19693         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19694         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19695         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19696         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19697         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19698         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19699         * m4/servent.m4 (gl_SERVENT): Likewise.
19700         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19701         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19702         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19703         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19704         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19705         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19706         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19707         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19708         * modules/tsearch-tests (configure.ac): Likewise.
19709
19710 2010-08-26  Bruno Haible  <bruno@clisp.org>
19711
19712         Modernize AC_TRY_COMPILE invocations.
19713         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19714         AC_TRY_COMPILE.
19715         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19716         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19717         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19718         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19719         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19720         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19721         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19722         * m4/lock.m4 (gl_LOCK): Likewise.
19723         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19724         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19725         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19726         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19727         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19728         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19729         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19731         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19732         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19733         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19734         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19735         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19736         extraneous semicolon.
19737
19738 2010-08-26  Jim Meyering  <meyering@redhat.com>
19739
19740         stat-time: relax license LGPL
19741         * modules/stat-time (License): Change from GPL to LGPL,
19742         with consent from all contributors, for use in libguile.
19743         Requested by Ludovic Courtès.
19744
19745 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19746
19747         poll: return immediately on POLLHUP.
19748         * lib/poll.c (poll): Always set timeout before wait_timeout is
19749         computed.
19750
19751 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19752
19753         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19754         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19755         rmdir ("dir/.//"), unlinkat.
19756
19757 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19758
19759         stdbool: avoid spurious failure with modern xlc
19760         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19761
19762 2010-08-24  Bruno Haible  <bruno@clisp.org>
19763
19764         getloadavg: simplify code
19765         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19766         gl_have_func. Update comments.
19767
19768 2010-08-24  Eric Blake  <eblake@redhat.com>
19769
19770         getloadavg: don't define SVR4 on cygwin
19771         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19772         only define SVR4 when -lkvm is required.
19773         Reported by Yaakov Selkowitz.
19774
19775 2010-08-24  Bruno Haible  <bruno@clisp.org>
19776
19777         priv-set: fix comment
19778         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19779
19780 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19781
19782         priv-set: fix comments
19783         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19784         to match code, as suggested by David Bartley in:
19785         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19786
19787 2010-08-23  Eric Blake  <eblake@redhat.com>
19788
19789         stdbool: avoid rejecting clang
19790         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19791         * tests/test-stdbool.c: Enable more tests if using the system
19792         <stdbool.h> instead of the gnulib replacement.
19793         (main): Move xlc bug test to a runtime test for all compilers.
19794         Reported by Anders Kaseorg.
19795
19796         argz: fix shell quoting issue
19797         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19798         Reported by Charles Wilson.
19799
19800 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19801             Erik Faye-Lund <kusmabite@gmail.com>
19802
19803         poll, select: handle ERROR_BROKEN_PIPE.
19804         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19805         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19806         * lib/select.c (win32_compute_revents): Do not mark a pipe
19807         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19808
19809 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19810
19811         fts: allow compilation with C++
19812         * lib/fts_.h: Specify extern "C" linkage with C++.
19813
19814 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19815
19816         Fix gnulib-tool sed script de-commentation for AIX sed.
19817         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19818         sed.
19819
19820 2010-08-17  Eric Blake  <eblake@redhat.com>
19821
19822         test-stddef: test for (some) offsetof bugs
19823         * tests/test-stddef.c: Enhance test to ensure correct type of
19824         offsetof.
19825         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19826         that we are not fixing at this time.
19827
19828 2010-08-15  Bruno Haible  <bruno@clisp.org>
19829
19830         stpncpy: Allow stpncpy to be defined as a macro.
19831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19832         if it's already correctly declared.
19833         * lib/string.in.h (stpncpy): Undefine before redefining.
19834         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19835
19836 2010-08-14  Bruno Haible  <bruno@clisp.org>
19837
19838         Rename module 'memxfrm' to 'amemxfrm'.
19839         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19840         (amemxfrm): Renamed from memxfrm.
19841         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19842         (amemxfrm): Renamed from memxfrm.
19843         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19844         * NEWS: Mention the change.
19845         * MODULES.html.sh (String handling <string.h>): Update.
19846         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19847         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19848         * lib/unicase/u16-casexfrm.c: Likewise.
19849         * lib/unicase/u32-casexfrm.c: Likewise.
19850         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19851         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19852         * lib/uninorm/u16-normxfrm.c: Likewise.
19853         * lib/uninorm/u32-normxfrm.c: Likewise.
19854         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19855         memxfrm.
19856         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19857         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19858         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19859         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19860         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19861         Suggested by Paul Eggert.
19862
19863 2010-08-14  Bruno Haible  <bruno@clisp.org>
19864
19865         Tests for module 'astrxfrm'.
19866         * modules/astrxfrm-tests: New file.
19867         * tests/test-astrxfrm.c: New file.
19868
19869         New module 'astrxfrm'.
19870         * lib/astrxfrm.h: New file.
19871         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19872         * modules/astrxfrm: New file.
19873
19874 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19875
19876         regex: Tweak doc.
19877         * doc/regex.texi (Overview): Don't mention regex.c.
19878         (GNU Regular Expression Compiling): Likewise.
19879         (Match-end-of-line Operator): Mention 'not_eol'.
19880
19881 2010-08-14  Brian Gough  <bjg@gnu.org>
19882             Bruno Haible  <bruno@clisp.org>
19883
19884         git-merge-changelog: add doc relating to use with bzr and hg.
19885         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19886
19887 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19888
19889         pthread: fix pthread.h creation for srcdir != builddir
19890         * modules/pthread (Makefile.am): Fix the rule to work also in a
19891         non-srcdir build.
19892
19893 2010-08-13  Karl Berry  <karl@gnu.org>
19894
19895         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19896         * doc/posix-*/*: force line break before @url of POSIX
19897         specifications.
19898         Suggested by Werner Lemberg.
19899
19900 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19901
19902         strtod: fix const diagnostic
19903         * lib/strtod.c (strtod): Don't assign const char * to char *,
19904         as this elicits a warning from GCC when warnings are enabled.
19905
19906 2010-08-10  Pádraig Brady <P@draigbrady.com>
19907         and Eric Blake  <eblake@redhat.com>
19908
19909         copy-acl: ignore ENOTSUP on HP-UX
19910         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19911         so that it is available for HP-UX.
19912         * lib/copy-acl.c (qcopy_acl): Use it.
19913         Reported by Patrick M. Callahan.
19914
19915 2010-08-10  Eric Blake  <eblake@redhat.com>
19916
19917         open, chown: relax license
19918         * modules/open (License): Change to LGPLv2+, with consent by all
19919         authors, for use in augeas.
19920         * modules/chown (License): Likewise.
19921         * modules/lchown (Likewise): Likewise.
19922         Requested by Adam Stokes.
19923
19924 2010-08-09  Karl Berry  <karl@gnu.org>
19925
19926         * build-aux/ar-lib: new file, import from Automake.
19927         * config/srclist.txt: autocheck for updates.
19928
19929 2010-08-09  Eric Blake  <eblake@redhat.com>
19930
19931         readlinkat: adjust client modules
19932         * modules/areadlinkat (Depends-on): Use readlinkat, not
19933         symlinkat.
19934         * modules/areadlinkat-with-size (Depends-on): Likewise.
19935
19936         mknod: be more vocal about danger of running tests as root
19937         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19938         root, since that is just asking for problems.
19939         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19940
19941         readlinkat: split into its own module
19942         * modules/symlinkat: Split readlinkat...
19943         * modules/readlinkat: ...into separate module.
19944         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19945         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19946         * lib/symlinkat.c (readlinkat): Move...
19947         * lib/readlinkat.c: ...into new file.
19948         * modules/symlinkat-tests: Split readlinkat test...
19949         * modules/readlinkat-tests: ...into separate module.
19950         * tests/test-symlinkat.c: Split...
19951         * tests/test-readlinkat.c: ...into new file.
19952         * NEWS: Document the split.
19953         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19954         * lib/unistd.in.h (readlinkat): Likewise.
19955         Suggested by Bruno Haible.
19956
19957 2010-08-08  Bruno Haible  <bruno@clisp.org>
19958
19959         memxfrm: Speed up.
19960         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19961         that usually only one call to strxfrm is necessary for each string
19962         part.
19963         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19964
19965 2010-08-07  Karl Berry  <karl@gnu.org>
19966
19967         * doc/posix-headers/limits.texi,
19968         * doc/posix-functions/malloc.texi,
19969         * doc/posix-functions/strsignal.texi: missing @item.
19970         * doc/ld-version-script.texi: spurious leading i.
19971         * doc/regex.texi (Interval Operators): no commas inside @var.
19972
19973 2010-08-01  Bruno Haible  <bruno@clisp.org>
19974
19975         Integrate the regex documentation.
19976         * doc/gnulib.texi: Define 'cn' index.
19977         (Regular expressions): New a chapter that includes regex.texi and
19978         regexprops-generic.texi.
19979         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19980         syntax.
19981
19982         Whitespace cleanup.
19983         * doc/regex.texi: Remove trailing spaces.
19984
19985         Add regex documentation.
19986         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19987         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19988         Written by Kathy A. Hargreaves and Karl Berry.
19989
19990 2010-08-01  Bruno Haible  <bruno@clisp.org>
19991
19992         link: Update documentation.
19993         * doc/posix-functions/link.texi: Update regarding Solaris.
19994
19995 2010-07-31  Bruno Haible  <bruno@clisp.org>
19996
19997         Update modules list.
19998         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19999         (String handling <string.h>): Add memcmp2, memxfrm.
20000         (Container data structures): Add xlist, xsublist, xoset.
20001         (Core language properties): Add alignof, unused-parameter.
20002         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20003         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20004         (Unibyte characters <ctype.h>): New section.
20005         (String handling <string.h>): New section.
20006         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20007         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20008         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20009         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20010         tan, tanh, tanl, y0, y1, yn.
20011         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20012         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20013         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20014         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20015         unlockpt, vdprintf, vdprintf-posix.
20016         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20017         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20018         xconcat-filename.
20019         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20020         getdtablesize, pipe2, pipe2-safer.
20021         (Security): New section.
20022         (Networking functions): Add accept4.
20023         (Signal handling): Add sigpipe.
20024         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20025         mbmemcasecoll.
20026         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20027         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20028         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20029         pipe-filter-ii.
20030         (Misc): Add argp-version-etc, login_tty, parse-duration.
20031
20032 2010-07-31  Bruno Haible  <bruno@clisp.org>
20033
20034         Improve doc in MODULES.html.
20035         * modules/linkat (Description): Add the word "function".
20036         * modules/mkfifo (Description): Likewise.
20037         * modules/mknod (Description): Likewise.
20038         * modules/remove (Description): Likewise.
20039         * modules/renameat (Description): Likewise.
20040         * modules/stat (Description): Likewise.
20041         * modules/symlink (Description): Likewise.
20042         * modules/unlink (Description): Likewise.
20043
20044 2010-07-31  Bruno Haible  <bruno@clisp.org>
20045
20046         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20047         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20048         option --enable/disable-c++ instead of --enable/disable-cxx.
20049         * NEWS: Mention the change.
20050
20051 2010-07-31  Bruno Haible  <bruno@clisp.org>
20052
20053         readlink, areadlink: Relax test a bit.
20054         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20055         alternative to ENOTDIR.
20056         * tests/test-areadlink.h (test_areadlink): Likewise.
20057         Reported by Rainer Tammer.
20058
20059 2010-07-31  Bruno Haible  <bruno@clisp.org>
20060
20061         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20062         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20063         character, perform the search using U_STRCHR.
20064         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20065         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20066         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20067         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20068         Suggested by Paolo Bonzini.
20069
20070 2010-07-31  Bruno Haible  <bruno@clisp.org>
20071
20072         unistr/u*-strstr: Fix dependencies.
20073         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20074         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20075         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20076
20077 2010-07-31  Bruno Haible  <bruno@clisp.org>
20078
20079         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20080         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20081         the beginning of the loop.
20082         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20083         cases in 'switch' statement.
20084
20085         unistr/u8-strchr: Fix several bugs.
20086         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20087         the string. When not found, return NULL, not a pointer near the end.
20088
20089         More tests for unistr/u8-strchr.
20090         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20091         that the function does not read past the first occurrence of the byte
20092         being searched.
20093         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20094         * tests/unistr/test-u16-strchr.c (main): New function.
20095         * tests/unistr/test-u32-strchr.c (main): New function.
20096
20097 2010-07-31  Bruno Haible  <bruno@clisp.org>
20098
20099         posix-modules: Ignore backup files of documentation files.
20100         * posix-modules: grep only through files named *.texi.
20101
20102 2010-07-31  Bruno Haible  <bruno@clisp.org>
20103
20104         symlinkat: Fix documentation.
20105         * doc/posix-functions/readlinkat.texi: Fix module name.
20106
20107 2010-07-31  Bruno Haible  <bruno@clisp.org>
20108
20109         fchownat: Replace also when chown has the trailing slash bug.
20110         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20111         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20112         introduced on 2010-04-10.
20113         Reported by Rainer Tammer.
20114
20115 2010-07-31  Bruno Haible  <bruno@clisp.org>
20116
20117         linkat: Work around AIX 7.1 bug.
20118         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20119         whether linkat handles trailing slash correctly. If not, replace linkat
20120         and define LINKAT_TRAILING_SLASH_BUG.
20121         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20122         check whether (fd1,file1) points to a directory if file1 or file2 ends
20123         in a slash. Code taken from lib/link.c.
20124         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20125         Reported by Rainer Tammer.
20126
20127 2010-07-31  Bruno Haible  <bruno@clisp.org>
20128
20129         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20130         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20131         This disables an xlc optimization that was causing wrong test results.
20132         Reported by Rainer Tammer.
20133
20134 2010-07-31  Bruno Haible  <bruno@clisp.org>
20135
20136         iconv: Work around AIX 6.1..7.1 bug.
20137         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20138         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20139         cross-compiling, guess no on all versions of AIX.
20140         Reported by Rainer Tammer.
20141
20142 2010-07-31  Bruno Haible  <bruno@clisp.org>
20143
20144         readlink: Relax test a bit.
20145         * tests/test-readlink.h (test_readlink): Allow different errno value
20146         when readlink is called with a file name that ends in / and refers to
20147         a file.
20148         Suggested by Eric Blake.
20149         Reported by Rainer Tammer.
20150
20151 2010-07-31  Bruno Haible  <bruno@clisp.org>
20152
20153         copysign: Does not require -lm on glibc systems.
20154         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20155         gl_COMMON_DOUBLE_MATHFUNC.
20156         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20157
20158 2010-07-31  Bruno Haible  <bruno@clisp.org>
20159
20160         duplocale: Work around AIX 7.1 bug.
20161         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20162         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20163         * lib/duplocale.c (rpl_duplocale): Update comment.
20164         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20165         Reported by Rainer Tammer.
20166
20167 2010-07-30  Bruno Haible  <bruno@clisp.org>
20168
20169         dirfd: Avoid link error on AIX 7.1.
20170         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20171         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20172         exist, set REPLACE_DIRFD.
20173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20174         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20175         * doc/posix-functions/dirfd.texi: Update.
20176         Reported by Rainer Tammer.
20177
20178 2010-07-30  Eric Blake  <eblake@redhat.com>
20179
20180         strtod: next round of AIX fixes
20181         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20182         exponent.
20183         * tests/test-strtod.c (main): Enhance tests.
20184         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20185         Reported by Rainer Tammer.
20186
20187         futimens: fix configure check
20188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20189         Reported by Bruno Haible.
20190
20191 2010-07-30  Bruno Haible  <bruno@clisp.org>
20192
20193         getline: Update regarding AIX.
20194         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20195         Reported by Rainer Tammer.
20196
20197 2010-07-30  Bruno Haible  <bruno@clisp.org>
20198
20199         wcwidth: Drop replacement on AIX 7.
20200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20201         AIX 7.
20202         Reported by Rainer Tammer.
20203
20204 2010-07-30  Bruno Haible  <bruno@clisp.org>
20205
20206         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20207         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20208         a 'char *'.
20209         Reported by Rainer Tammer.
20210
20211 2010-07-30  Bruno Haible  <bruno@clisp.org>
20212
20213         unlink: Update regarding AIX.
20214         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20215         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20216         Reported by Rainer Tammer.
20217
20218 2010-07-30  Bruno Haible  <bruno@clisp.org>
20219
20220         symlink: Update regarding AIX.
20221         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20222         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20223         Reported by Rainer Tammer.
20224
20225 2010-07-30  Bruno Haible  <bruno@clisp.org>
20226
20227         strndup: Update regarding AIX.
20228         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20229         AIX 7.
20230         Reported by Rainer Tammer.
20231
20232 2010-07-30  Bruno Haible  <bruno@clisp.org>
20233
20234         stat: Update regarding AIX.
20235         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20236         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20237         Reported by Rainer Tammer.
20238
20239 2010-07-30  Bruno Haible  <bruno@clisp.org>
20240
20241         truncl: Fix autoconf test.
20242         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20243         whether truncl works.
20244         Reported by Rainer Tammer.
20245
20246 2010-07-30  Bruno Haible  <bruno@clisp.org>
20247
20248         round: Update regarding AIX.
20249         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20250         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20251         Reported by Rainer Tammer.
20252
20253 2010-07-30  Bruno Haible  <bruno@clisp.org>
20254
20255         rename: Update regarding AIX.
20256         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20257         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20258         Reported by Rainer Tammer.
20259
20260 2010-07-30  Bruno Haible  <bruno@clisp.org>
20261
20262         printf.m4: Update regarding AIX.
20263         * m4/printf.m4: Update comments regarding AIX.
20264         Reported by Rainer Tammer.
20265
20266 2010-07-30  Bruno Haible  <bruno@clisp.org>
20267
20268         iconv: Update regarding AIX.
20269         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20270         AIX 7.
20271         Reported by Rainer Tammer.
20272
20273 2010-07-30  Bruno Haible  <bruno@clisp.org>
20274
20275         getopt: Update regarding AIX.
20276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20277         no on AIX.
20278         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20279         Reported by Rainer Tammer.
20280
20281 2010-07-30  Bruno Haible  <bruno@clisp.org>
20282
20283         ldexpl; Update regarding AIX.
20284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20285         on AIX 7.
20286         Reported by Rainer Tammer.
20287
20288 2010-07-30  Bruno Haible  <bruno@clisp.org>
20289
20290         frexpl: Update regarding AIX.
20291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20292         on AIX 7.
20293         Reported by Rainer Tammer.
20294
20295 2010-07-30  Bruno Haible  <bruno@clisp.org>
20296
20297         open, fopen: Update regarding AIX.
20298         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20299         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20300         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20301         * doc/posix-functions/fopen.texi: Likewise.
20302         Reported by Rainer Tammer.
20303
20304 2010-07-30  Bruno Haible  <bruno@clisp.org>
20305
20306         chown: Update doc regarding AIX.
20307         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20308         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20309         Reported by Rainer Tammer.
20310
20311 2010-07-30  Eric Blake  <eblake@redhat.com>
20312
20313         strtod: fix bug in replacement function on AIX
20314         * lib/strtod.c (strtod): Special case broken "0x" parse in
20315         underlying strtod.
20316         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20317         * doc/posix-functions/strtod.texi (strtod): Likewise.
20318         Reported by Rainer Tammer.
20319
20320 2010-07-30  Bruno Haible  <bruno@clisp.org>
20321
20322         mbrlen: Fix cross-compilation guess for AIX.
20323         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20324         guess. Leftover from 2008-12-22.
20325
20326 2010-07-30  Bruno Haible  <bruno@clisp.org>
20327
20328         mbrtowc: Fix cross-compilation guess for AIX.
20329         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20330         guess. Leftover from 2008-12-21.
20331
20332 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20333
20334         init.sh: work around trap limitation of some shells
20335         * tests/init.sh (setup_): Move exit trap outside of shell function.
20336
20337 2010-07-29  Eric Blake  <eblake@redhat.com>
20338
20339         strtod: aid debugging
20340         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20341         understanding why strtod is rejected.
20342
20343 2010-07-28  Bruno Haible  <bruno@clisp.org>
20344
20345         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20346         * lib/unistr/u8-chr.c: Include <string.h>.
20347         * tests/unistr/test-u8-chr.c: Likewise.
20348         * tests/unistr/test-u16-chr.c: Likewise.
20349         * tests/unistr/test-u32-chr.c: Likewise.
20350         * tests/unistr/test-u8-strchr.c: Likewise.
20351         * tests/unistr/test-u16-strchr.c: Likewise.
20352         * tests/unistr/test-u32-strchr.c: Likewise.
20353         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20354         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20355         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20356         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20357
20358 2010-07-28  Bruno Haible  <bruno@clisp.org>
20359
20360         Use spaces for indentation, not tabs.
20361         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20362
20363 2010-07-27  Bruno Haible  <bruno@clisp.org>
20364
20365         mbspcasecmp: Fix function specification.
20366         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20367         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20368         Reported by Eric Blake <eblake@redhat.com>.
20369
20370 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20371
20372         timespec: use cast and not conditional, as truncation isn't possible
20373         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20374         instead of a conditional.  Comment about the situation in more detail.
20375         This undoes most of the 2009-10-29 patch.
20376
20377 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20378
20379         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20380         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20381         * lib/unistr/u8-strchr.c: Likewise.
20382         * modules/unistr/u8-chr: Depend on memchr.
20383
20384         unistr/u*-strchr: add tests
20385         * modules/unistr/u8-strchr-tests: New file.
20386         * modules/unistr/u16-strchr-tests: New file.
20387         * modules/unistr/u32-strchr-tests: New file.
20388         * tests/unistr/test-strchr.h: New file.
20389         * tests/unistr/test-u8-strchr.c: New file.
20390         * tests/unistr/test-u16-strchr.c: New file.
20391         * tests/unistr/test-u32-strchr.c: New file.
20392
20393         unistr/u*-chr: test multibyte sequences more
20394         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20395         test vector.
20396         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20397         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20398         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20399
20400         unistr/u*-chr: test multibyte sequences
20401         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20402
20403         unistr/u*-chr: prepare for multibyte tests
20404         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20405         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20406         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20407         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20408         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20409         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20410
20411 2010-07-18  Bruno Haible  <bruno@clisp.org>
20412
20413         unistr/u8-strchr: Optimize non-ASCII argument case.
20414         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20415         because the first byte often matches anyway.
20416         Reported by Pádraig Brady <P@draigbrady.com>.
20417
20418 2010-07-15  Karl Berry  <karl@gnu.org>
20419
20420         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20421
20422 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20423
20424         getcwd: on Solaris, work better if ancestors are inaccessible
20425         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20426         buffer and size, try again with a large buffer.  This works better
20427         on Solaris, since its getcwd succeeds even if the path to the root
20428         is inaccessible, and this is helpful in common cases such as .zfs
20429         hidden directories.  Problem reported by J Chapman Flack in
20430         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20431         Use system getcwd if it's declared, not merely if it's partly
20432         working; use the partly-working test only to avoid needless effort
20433         if the system getcwd fails.
20434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20435         comment that was already obsolete and is now even more obsolete.
20436         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20437         now might call strdup.
20438
20439 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20440
20441         pthread: Add enough so that coreutils/src/sort.c compiles.
20442         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20443         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20444         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20445         Include <sys/types.h>, in case it defines pthread_t.
20446         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20447         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20448         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20449         (pthread_rwlockattr_t, pthread_spinlock_t):
20450         New typedefs, if HAVE_PTHREAD_T is not defined.
20451         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20452         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20453         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20454         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20455         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20456         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20457         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20458         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20459         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20460         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20461         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20462         New macros.
20463         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20464         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20465         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20466         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20467         (pthread_spin_unlock): New dummy functions.
20468         (pthread_create): Return EAGAIN; don't set errno.
20469         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20470         require AC_C_INLINE.
20471         * modules/pthread (Depends-on): Add sched, time.
20472         (pthread.h): Use AM_V_GEN.
20473
20474 2010-07-13  Bruno Haible  <bruno@clisp.org>
20475
20476         striconveh: Don't malloc memory if the result buffer is sufficient.
20477         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20478         buffer if its size is sufficient.
20479         Reported by Ludovic Courtès <ludo@gnu.org>.
20480
20481 2010-07-13  Bruno Haible  <bruno@clisp.org>
20482
20483         strtod: Add safety check.
20484         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20485
20486 2010-07-12  Bruno Haible  <bruno@clisp.org>
20487
20488         Unify tests that set gl_cv_func_ldexpl_no_libm.
20489         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20490         gl_FUNC_LDEXPL.
20491         (gl_FUNC_LDEXPL): Invoke it.
20492         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20493
20494 2010-07-12  Bruno Haible  <bruno@clisp.org>
20495
20496         Unify tests that set gl_cv_func_ldexp_no_libm.
20497         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20498         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20499         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20500         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20501         * modules/strtod (Files): Add m4/ldexp.m4.
20502
20503 2010-07-12  Bruno Haible  <bruno@clisp.org>
20504
20505         Unify tests that set gl_cv_func_frexpl_no_libm.
20506         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20507         gl_FUNC_FREXPL_NO_LIBM.
20508         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20509         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20510
20511 2010-07-12  Bruno Haible  <bruno@clisp.org>
20512
20513         Unify tests that set gl_cv_func_frexp_no_libm.
20514         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20515         gl_FUNC_FREXP_NO_LIBM.
20516         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20517         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20518
20519 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20520
20521         memcoll: clarify sizes versus lengths, document better, and tweak perf
20522         * lib/memcoll.c (strcoll_loop, memcoll0):
20523         Improve quality of descriptive comments.  Name variables
20524         consistently as to whether they are lengths (which do not include
20525         terminating null) versus sizes (which do).
20526         * lib/xmemcoll.c (xmemcoll0): Likewise.
20527         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20528         returned when s1size == 0; this is easier to compile and saves
20529         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20530
20531 2010-07-12  Bruno Haible  <bruno@clisp.org>
20532
20533         Tests for module '_Exit'.
20534         * modules/_Exit-tests: New file.
20535         * tests/test-_Exit.sh: New file.
20536         * tests/test-_Exit.c: New file.
20537
20538         New module '_Exit'.
20539         * lib/stdlib.in.h (__attribute__): New macro.
20540         (_Exit): New declaration.
20541         * lib/_Exit.c: New file.
20542         * m4/_Exit.m4: New file.
20543         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20544         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20545         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20546         * modules/_Exit: New file.
20547         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20548         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20549
20550 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20551
20552         strtod: make it more-accurate typically, and don't require libm
20553         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20554         Include limits.h.  Don't include string.h.
20555         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20556         (locale_isspace): New function, so that no casts are needed to
20557         check whether *s is a space.
20558         (ldexp): Provide an unused dummy if not available.
20559         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20560         (strtod): Use them.  This implementation prefers to use the
20561         underlying strtod if available, falling back on our own code
20562         only to fix known bugs.  This is more likely to produce an
20563         accurate result.  Also, it avoids the use of libm functions.
20564         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20565         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20566         was absent, but it caused a test failure with coreutils.
20567         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20568         with libm.
20569         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20570         * modules/strtod-tests (Makefile.am): Likewise.
20571
20572 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20573             Bruno Haible  <bruno@clisp.org>
20574
20575         unistr/u8-strchr: Optimize ASCII argument case.
20576         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20577
20578 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20579
20580         (x)memcoll: minor tweaks
20581         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20582         is after the type that it qualifies.
20583         (memcoll0): Likewise.
20584         * lib/memcoll.h (memcoll0): Likewise.
20585         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20586         * lib/xmemcoll.h (xmemcoll0): Likewise.
20587         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20588         differs from memcoll in that the NUL byte is part of the argument.
20589         Omit the abort-checks, as performance is a real issue here.  Plus,
20590         the checks were wrong anyway (an off-by-one error).  Omit local
20591         variable 'diff', as it's a bit clearer that way.
20592         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20593         no longer needed.
20594
20595 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20596
20597         (x)memcoll: speedup when input is known to be NUL delimited
20598         * lib/memcoll.c: Include stdlib.
20599         (memcoll0): New function.
20600         (strcoll_loop): New function, refactored for use in both memcoll
20601         and memcoll0.
20602         * lib/memcoll.h (memcoll0): Add prototype.
20603         * lib/xmemcoll.c (xmemcoll0): New function.
20604         (collate_error): New function, refactored for use in both xmemcoll
20605         and xmemcoll0.
20606         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20607         * m4/memcoll.m4: add inline invocation.
20608
20609 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20610
20611         * build-aux/bootstrap: Remove any local translations
20612         from the translation project synchronization directory,
20613         so that local only translations are not distributed.
20614
20615 2010-07-04  Bruno Haible  <bruno@clisp.org>
20616
20617         fsusage: Clarify which code applies to which platforms.
20618         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20619         platform.
20620         * lib/fsusage.c (get_fs_usage): Likewise.
20621
20622 2010-07-04  Bruno Haible  <bruno@clisp.org>
20623
20624         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20625         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20626         Reported by Martin Lambers <marlam@marlam.de>.
20627
20628 2010-07-04  Jim Meyering  <meyering@redhat.com>
20629
20630         hash: once again explicitly disallow insertion of NULL
20631         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20632         inserting a NULL pointer cannot work with these functions.
20633         Add a comment with details.
20634         This reverts part of the 2010-07-01 commit, 5bef1a35
20635         "hash: extend module to deal with non-pointer keys".
20636
20637 2010-07-01  Bruno Haible  <bruno@clisp.org>
20638
20639         stdbool: Update doc.
20640         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20641         Info from Christian Weisgerber <naddy@mips.inka.de>.
20642
20643 2010-07-01  Jim Meyering  <meyering@redhat.com>
20644
20645         hash: extend module to deal with non-pointer keys
20646         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20647         but that allows insertion of non-pointer entries.
20648         Do not disallow an ENTRY value of NULL.
20649         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20650         * lib/hash.h (hash_insert0): Declare.
20651
20652 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20653
20654         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20655         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20656         not present (i.e. with autoconf 2.59 and when using gettextize, not
20657         gnulib), require AC_GNU_SOURCE instead.
20658
20659 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20660
20661         idpriv-drop: Fix tests.
20662         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20663         not to the test-idpriv-droptemp program.
20664
20665 2010-06-29  Bruno Haible  <bruno@clisp.org>
20666
20667         string: Fix syntax error with g++ 2.96.
20668         * lib/string.in.h (__pure__): Remove definition.
20669         (_GL_ATTRIBUTE_PURE): New macro.
20670         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20671         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20672         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20673
20674 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20675
20676         unitypes: Fix bug introduced on 2010-05-18.
20677         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20678
20679 2010-06-22  Eric Blake  <eblake@redhat.com>
20680
20681         memmem: slight optimization
20682         * lib/str-two-way.h (critical_factorization): Update comments.
20683         Reduce work during factorization phase.
20684         Reported by Carlos Bueno <carlos@bueno.org>.
20685
20686 2010-06-21  Bruno Haible  <bruno@clisp.org>
20687
20688         Fix HAVE_CALLOC_POSIX misnomer.
20689         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20690         !HAVE_CALLOC_POSIX.
20691         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20692         HAVE_CALLOC_POSIX.
20693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20694         instead of HAVE_CALLOC_POSIX.
20695         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20696         HAVE_CALLOC_POSIX.
20697
20698         Use modern idiom for calloc() replacement.
20699         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20700         AC_FUNC_CALLOC.
20701         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20702         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20703         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20704         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20705         (gl_REPLACE_CALLOC): New macro.
20706
20707 2010-06-21  Bruno Haible  <bruno@clisp.org>
20708
20709         Fix HAVE_REALLOC_POSIX misnomer.
20710         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20711         !HAVE_REALLOC_POSIX.
20712         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20713         HAVE_REALLOC_POSIX.
20714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20715         instead of HAVE_REALLOC_POSIX.
20716         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20717         HAVE_REALLOC_POSIX.
20718
20719         Use modern idiom for realloc() replacement.
20720         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20721         AC_FUNC_REALLOC.
20722         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20723         Autoconf's AC_FUNC_REALLOC.
20724         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20725         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20726         (gl_REPLACE_REALLOC): New macro.
20727         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20728
20729 2010-06-21  Bruno Haible  <bruno@clisp.org>
20730
20731         Fix HAVE_MALLOC_POSIX misnomer.
20732         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20733         !HAVE_MALLOC_POSIX.
20734         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20735         HAVE_MALLOC_POSIX.
20736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20737         instead of HAVE_MALLOC_POSIX.
20738         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20739         HAVE_MALLOC_POSIX.
20740
20741         Use modern idiom for malloc() replacement.
20742         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20743         AC_FUNC_MALLOC.
20744         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20745         Autoconf's AC_FUNC_MALLOC.
20746         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20747         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20748         (gl_REPLACE_MALLOC): New macro.
20749         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20750
20751 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20752
20753         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20754         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20755         This macro takes 3 arguments, not 4.
20756
20757 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20758
20759         ipv6: fix detection under mingw
20760         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20761         in6_addr.
20762
20763 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20764
20765         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20766         that strtod() works when cross-compiling to a glibc version known
20767         to work.
20768
20769 2010-06-15  Bruno Haible  <bruno@clisp.org>
20770
20771         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20772
20773 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20774
20775         select: Correct timeout.
20776         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20777
20778 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20779
20780         git-version-gen: init shell var to avoid env var influence
20781         * build-aux/git-version-gen (v): Init shell var to empty.
20782
20783 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20784
20785         priv-set: Don't assume that priv.h exists merely because getppriv does.
20786         See Jan Andersen's bug report about AIX 5L in
20787         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20788         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20789         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20790         * lib/priv-set.h: Likewise.
20791         * tests/test-priv-set.c: Likewise.
20792
20793 2010-06-13  Bruno Haible  <bruno@clisp.org>
20794
20795         relocatable: Make it easier to test whether to install wrappers.
20796         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20797         RELOCATABLE_VIA_WRAPPER.
20798
20799 2010-06-13  Bruno Haible  <bruno@clisp.org>
20800
20801         gnulib-tool: Display specified modules and dependencies differently.
20802         * gnulib-tool (func_show_module_list): New function.
20803         (func_import, func_create_testdir): Invoke it.
20804         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20805
20806 2010-06-13  Bruno Haible  <bruno@clisp.org>
20807
20808         gnulib-tool: Align code of func_import and func_create_testdir.
20809         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20810         specified_modules.
20811
20812 2010-06-12  Jim Meyering  <meyering@redhat.com>
20813
20814         test-inttostr: avoid spurious failure on Solaris 9
20815         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20816         to accept "%ju".  Reported by Bruno Haible.
20817
20818 2010-06-11  Jim Meyering  <meyering@redhat.com>
20819
20820         test-sys_socket: mark variables as used more readably
20821         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20822         as "used" explicitly via (void) statement casts.  This is more
20823         readable than using them in an artificial return expression.
20824         Suggestion from Bruno Haible.
20825
20826 2010-06-11  Bruno Haible  <bruno@clisp.org>
20827
20828         Avoid some more warnings from "gcc -Wwrite-strings".
20829         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20830         to 'const char *'.
20831         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20832         * tests/test-c-strcasestr.c (main): Likewise.
20833         * tests/test-mbscasestr1.c (main): Likewise.
20834         * tests/test-mbscasestr2.c (main): Likewise.
20835         * tests/test-memmem.c (main): Likewise.
20836         * tests/test-strstr.c (main): Likewise.
20837         * tests/test-strcasestr.c (main): Likewise.
20838
20839 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20840
20841         init.sh: change framework_failure_ to fail with status 99, not 1
20842         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20843         automake's parallel-tests rule that this is an unexpected failure,
20844         even if the test is listed in XFAIL_TESTS.
20845
20846 2010-06-11  Jim Meyering  <meyering@redhat.com>
20847
20848         test-inttostr: avoid warnings about 4-6KB literal strings
20849         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20850         Include "macros.h", for its definition of ASSERT.
20851         (CK): s/assert/ASSERT/
20852         * modules/inttostr-tests (Files): Add macros.h.
20853
20854         init.sh: don't use $ME_ or skip_ before they are defined
20855         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20856         their first uses.  Also hoist their companions: warn_, fail_,
20857         framework_failure_, $stderr_fileno.  Prompted by a patch from
20858         Stefano Lattarini.
20859
20860         test-sys_socket: avoid set-but-not-used warnings from gcc
20861         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20862         avoid warning about set-but-not-used variables.
20863
20864         test-xvasprintf: avoid 'const' discard warnings
20865         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20866         "const" when assigning from literal strings.
20867         (test_xasprintf): Add "void" in function argument list to placate
20868         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20869
20870         tests: avoid compilation warnings in argmatch and exclude tests...
20871         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20872         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20873         Since it always exits, declare with the "noreturn" attribute.
20874         * tests/test-argmatch.c: Likewise.
20875
20876         tests: avoid 'const' discard warnings in mbsstr tests
20877         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20878         * tests/test-mbsstr2.c (main): Likewise.
20879
20880         test-verify: avoid warning from gcc's -Wmissing-declarations
20881         * tests/test-verify.c (function): Declare to be static.
20882
20883         test-inttostr.c: include <string.h> for use of strcmp
20884         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20885
20886         test-linkat: avoid failed assertion on "other" architectures
20887         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20888         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20889         sparc: https://bugs.launchpad.net/bugs/591968
20890
20891 2010-06-11  Jim Meyering  <meyering@redhat.com>
20892
20893         printf.m4: avoid autoconf's "Expanded Before Required" warning
20894         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20895         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20896         autoconf warning.
20897
20898 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20899
20900         Replacement header templates are now named with ".in", not "_".
20901         * doc/gnulib-intro.texi: Correct.
20902
20903 2010-06-10  Jim Meyering  <meyering@redhat.com>
20904
20905         inttostr-tests: depend on snprintf, not snprintf-posix
20906         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20907         snprintf-posix, to avoid this aclocal failure:
20908           missing file gnulib-tests/vasnprintf.c
20909           configure.ac:45: error: expected source file, required through \
20910           AC_LIBSOURCES, not found
20911
20912 2010-06-10  Jim Meyering  <meyering@redhat.com>
20913
20914         inttostr: add a new function, inttostr, and tests
20915         The namesake function was not available.  The existence of the
20916         template file, inttostr.c makes its addition nontrivial.
20917         * lib/anytostr.c: Rename from inttostr.c.
20918         (anytostr): Rename from inttostr.
20919         * lib/inttostr.c: New file.
20920         * modules/inttostr (Files): Add anytostr.c.
20921         (Makefile.am): Set lib_SOURCES instead of ...
20922         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20923         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20924         * lib/offtostr.c: Likewise.
20925         * lib/uinttostr.c: Likewise.
20926         * lib/umaxtostr.c: Likewise.
20927         * modules/inttostr-tests: New file.
20928         * tests/test-inttostr.c: New file.  Test these functions.
20929
20930 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20931             Bruno Haible  <bruno@clisp.org>
20932
20933         Add "Extending Gnulib" chapter to manual.
20934         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20935         chapter.
20936         (Extending Gnulib): New chapter.
20937         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20938         chapter.
20939
20940 2010-06-09  Bruno Haible  <bruno@clisp.org>
20941
20942         Avoid relocwrapper link errors due to gnulib replacement functions.
20943         * lib/areadlink.c: Use the system's malloc, realloc functions.
20944         (areadlink): Set errno to ENOMEM explicitly.
20945         * modules/areadlink (Depends-on): Remove malloc-posix.
20946         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20947
20948 2010-06-09  Bruno Haible  <bruno@clisp.org>
20949
20950         Avoid relocwrapper link errors due to gnulib replacement functions.
20951         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20952         * lib/malloca.c: Likewise.
20953         * lib/relocatable.c: Likewise.
20954         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20955         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20956         * lib/setenv.c: Use the system's malloc, realloc functions.
20957         * lib/strerror.c: Use the system's sprintf function.
20958         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20959
20960 2010-06-04  Bruno Haible  <bruno@clisp.org>
20961
20962         Prefer documented low-level autoconf macro names.
20963         * m4/lib-link.m4: Use m4_translit instead of translit.
20964         * m4/environ.m4: Likewise.
20965         * m4/mathfunc.m4: Likewise.
20966         * m4/onceonly.m4: Likewise.
20967         * m4/stdint.m4: Likewise.
20968         Suggested by Eric Blake.
20969
20970 2010-06-04  Martin Lambers  <marlam@marlam.de>
20971             Bruno Haible  <bruno@clisp.org>
20972
20973         havelib: Allow library names with '+' characters.
20974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20975         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20976
20977 2010-06-09  Bruno Haible  <bruno@clisp.org>
20978
20979         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20980         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20981         realloc failed.
20982
20983 2010-06-08  Peter Simons  <simons@cryp.to>
20984
20985         maint.mk: make the news-check rule more configurable
20986         * top/maint.mk (news-check-lines-spec): New variable.
20987         (news-check): Use "sed -n 1,10p" in place of "head".
20988
20989 2010-06-07  Jim Meyering  <meyering@redhat.com>
20990
20991         do-release-commit-and-tag: fix typo in --help
20992         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20993
20994         regex: avoid new dead-code warning with gcc-4.6.0
20995         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20996         if-block containing a while-loop.  It's been unused for at least
20997         5 years.
20998
20999 2010-06-05  Bruno Haible  <bruno@clisp.org>
21000
21001         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21002         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21003
21004 2010-06-04  Bruno Haible  <bruno@clisp.org>
21005
21006         Update to GNU gettext 0.18.1.
21007         * modules/gettext (configure.ac): Require gettext infrastructure from
21008         version 0.18.1.
21009
21010 2010-06-03  Bruno Haible  <bruno@clisp.org>
21011
21012         Don't use AC_LIBOBJ with file names in subdirectories.
21013         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21014         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21015         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21016         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21017         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21018         gl_LIBUNISTRING_LIBSOURCE.
21019         (Makefile.am): Augment lib_SOURCES here, conditionally.
21020         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21021
21022 2010-06-03  Bruno Haible  <bruno@clisp.org>
21023
21024         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21025         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21026         expansion does not end with a newline.
21027         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21028         unnecessary newline.
21029
21030 2010-06-03  Bruno Haible  <bruno@clisp.org>
21031
21032         Reduce dependencies.
21033         * tests/test-quotearg.h: New file, extracted from
21034         tests/test-quotearg.c.
21035         * tests/test-quotearg-simple.c: New file, extracted from
21036         tests/test-quotearg.c.
21037         * tests/test-quotearg.c: Don't include <ctype.h>.
21038         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21039         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21040         use_quote_double_quotes, use_quotearg_colon): Moved to
21041         tests/test-quotearg.h.
21042         (results_g, flag_results, custom_quotes, custom_results): Moved
21043         to tests/test-quotearg-simple.c.
21044         (main): Moved the part that does not depend on gettext to
21045         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21046         performed.
21047         * modules/quotearg-simple: New file.
21048         * modules/quotearg-simple-tests: New file.
21049         * modules/quotearg (Depends-on): Add quotearg-simple.
21050         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21051         (Files): Add tests/test-quotearg.h.
21052         Reported by Paolo Bonzini.
21053
21054 2010-06-03  Bruno Haible  <bruno@clisp.org>
21055
21056         Reduce dependencies.
21057         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21058
21059 2010-06-03  Bruno Haible  <bruno@clisp.org>
21060
21061         time: Undefine more broken macros.
21062         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21063         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21064         Reported by Eric Blake.
21065
21066 2010-06-03  Bruno Haible  <bruno@clisp.org>
21067
21068         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21069         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21070         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21071         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21072         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21073         Reported by Ludovic Courtès <ludo@gnu.org>.
21074
21075 2010-06-02  Eric Blake  <eblake@redhat.com>
21076
21077         time: work with mingw + pthreads-win32 library
21078         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21079         if timespec is defined only in pthread.h.
21080         * modules/time (Makefile.am): Substitute it.
21081         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21082         <pthread.h>, when needed.
21083         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21084         from the library.
21085
21086 2010-05-31  Bruno Haible  <bruno@clisp.org>
21087
21088         Avoid expanding two macros in the wrong order.
21089         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21090         gl_LIBUNISTRING if it is defined.
21091         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21092         autoconf >= 2.64.
21093         Reported by Ludovic Courtès <ludo@gnu.org>.
21094
21095 2010-05-27  Jim Meyering  <meyering@redhat.com>
21096
21097         maint.mk: also prohibit "#undef" of always-defined symbols
21098         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21099         Allow more than one space before the symbol name.
21100         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21101         the regexp uses alternation.
21102
21103 2010-05-26  Eric Blake  <eblake@redhat.com>
21104
21105         maint.mk: avoid echo -e
21106         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21107         Convert all uses of echo -* to printf.
21108         Reported by Matthias Bolte.
21109
21110 2010-05-25  Bruno Haible  <bruno@clisp.org>
21111
21112         Update to GNU gettext 0.18, part 2.
21113         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21114         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21115
21116 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21117
21118         Add missing include in test-pwrite.c.
21119         * tests/test-pwrite.c: Include string.h, for strcmp.
21120
21121 2010-05-24  Bruno Haible  <bruno@clisp.org>
21122
21123         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21124
21125 2010-05-24  Bruno Haible  <bruno@clisp.org>
21126
21127         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21128         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21129         iconveh_error argument.
21130         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21131         U_STRCONV_TO_LOCALE.
21132         * lib/unistr/u16-strcoll.c: Likewise.
21133         * lib/unistr/u32-strcoll.c: Likewise.
21134         * modules/unistr/u8-strcoll (Depends-on): Add
21135         uniconv/u8-strconv-to-enc, localcharset. Remove
21136         uniconv/u8-strconv-to-locale.
21137         (configure.ac): Bump version number.
21138         * modules/unistr/u16-strcoll (Depends-on): Add
21139         uniconv/u16-strconv-to-enc, localcharset. Remove
21140         uniconv/u16-strconv-to-locale.
21141         (configure.ac): Bump version number.
21142         * modules/unistr/u32-strcoll (Depends-on): Add
21143         uniconv/u32-strconv-to-enc, localcharset. Remove
21144         uniconv/u32-strconv-to-locale.
21145         (configure.ac): Bump version number.
21146
21147 2010-05-24  Bruno Haible  <bruno@clisp.org>
21148
21149         Avoid a test failure on NetBSD 5.0.
21150         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21151         an iconv() bug.
21152
21153 2010-05-24  Bruno Haible  <bruno@clisp.org>
21154
21155         Adjust #include directive style.
21156         * modules/regex (Includes): Recommend to write <regex.h>.
21157
21158 2010-05-24  Bruno Haible  <bruno@clisp.org>
21159
21160         regex: Don't require alloca.
21161         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21162         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21163         only inside if (0).
21164
21165 2010-05-23  Jim Meyering  <meyering@redhat.com>
21166
21167         test-renameat.c: include <sys/stat.h>
21168         * tests/test-renameat.c: Include <sys/stat.h>; required for
21169         definition of S_IS* macros.
21170
21171 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21172
21173         Update maintainer documentation for 'relocatable-prog' module.
21174         * doc/relocatable-maint.texi: Update.
21175         Comments by Bruno Haible.
21176
21177 2010-05-23  Bruno Haible  <bruno@clisp.org>
21178
21179         git-merge-changelog: Enable --split-merged-entry by default.
21180         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21181         (usage): Don't mention this option any more.
21182         Reported by Ralf Wildenhues.
21183
21184 2010-05-23  Jim Meyering  <meyering@redhat.com>
21185
21186         test-pwrite: do not leave behind a test file named "out"
21187         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21188         The trivial-looking use of init.sh is really necessary.
21189         It ensures that the temporary file, "out", is created in
21190         a temporary directory, and removed upon termination.
21191         * tests/test-pwrite.sh: Re-add file.
21192         * modules/pwrite-tests: Reference it.
21193
21194 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21195
21196         Fix output redirection buglet in init.sh.
21197         * tests/init.sh: Fix redirection of stderr.
21198
21199 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21200
21201         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21202
21203 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21204
21205         * modules/valgrind-tests: New file.
21206         * m4/valgrind-tests.m4: New file.
21207         * doc/valgrind-tests.texi: New file.
21208         * doc/gnulib.texi (Running self-tests under valgrind): New
21209         section.
21210
21211 2010-05-19  Bruno Haible  <bruno@clisp.org>
21212
21213         Clean up dead code in recent commit.
21214         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21215         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21216         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21217         Suggested by Paolo Bonzini.
21218
21219 2010-05-19  Bruno Haible  <bruno@clisp.org>
21220
21221         Avoid valgrind error reports from libunistring.
21222         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21223         * modules/libunistring (Files): Add it.
21224         * modules/libunistring-optional (Files): Likewise.
21225
21226 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21227             Bruno Haible  <bruno@clisp.org>
21228
21229         New module 'libunistring-optional'.
21230         * modules/libunistring-optional: New file.
21231         * m4/libunistring-base.m4: New file.
21232         * m4/libunistring-optional.m4: New file.
21233         * lib/unicase.in.h: Renamed from lib/unicase.h.
21234         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21235         * lib/unictype.in.h: Renamed from lib/unictype.h.
21236         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21237         * lib/uniname.in.h: Renamed from lib/uniname.h.
21238         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21239         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21240         * lib/unistr.in.h: Renamed from lib/unistr.h.
21241         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21242         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21243         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21244         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21245         gl_LIBUNISTRING. If the library was found, determine the installed
21246         version and set LIBUNISTRING_VERSION.
21247         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21248         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21249         handle a configuration option --with-included-libunistring.
21250         * modules/libunistring (Files): Add m4/absolute-header.m4.
21251         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21252         Add m4/libunistring-base.m4.
21253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21254         (Makefile.am): Build unicase.h from unicase.in.h.
21255         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21256         Add m4/libunistring-base.m4.
21257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21258         (Makefile.am): Build uniconv.h from uniconv.in.h.
21259         * modules/unictype/base (Files): Use unictype.in.h instead of
21260         unictype.h. Add m4/libunistring-base.m4.
21261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21262         (Makefile.am): Build unictype.h from unictype.in.h.
21263         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21264         Add m4/libunistring-base.m4.
21265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21266         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21267         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21268         Add m4/libunistring-base.m4.
21269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21270         (Makefile.am): Build uniname.h from uniname.in.h.
21271         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21272         Add m4/libunistring-base.m4.
21273         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21274         (Makefile.am): Build uninorm.h from uninorm.in.h.
21275         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21276         unistdio.h. Add m4/libunistring-base.m4.
21277         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21278         (Makefile.am): Build unistdio.h from unistdio.in.h.
21279         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21280         Add m4/libunistring-base.m4.
21281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21282         (Makefile.am): Build unistr.h from unistr.in.h.
21283         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21284         Add m4/libunistring-base.m4.
21285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21286         (Makefile.am): Build unitypes.h from unitypes.in.h.
21287         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21288         Add m4/libunistring-base.m4.
21289         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21290         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21291         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21292         uniwidth.h. Add m4/libunistring-base.m4.
21293         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21294         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21295         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21296         instead of augmenting lib_SOURCES.
21297         * modules/unicase/empty-suffix-context: Likewise.
21298         * modules/unicase/locale-language: Likewise.
21299         * modules/unicase/tolower: Likewise.
21300         * modules/unicase/totitle: Likewise.
21301         * modules/unicase/toupper: Likewise.
21302         * modules/unicase/u8-casecmp: Likewise.
21303         * modules/unicase/u8-casecoll: Likewise.
21304         * modules/unicase/u8-casefold: Likewise.
21305         * modules/unicase/u8-casexfrm: Likewise.
21306         * modules/unicase/u8-ct-casefold: Likewise.
21307         * modules/unicase/u8-ct-tolower: Likewise.
21308         * modules/unicase/u8-ct-totitle: Likewise.
21309         * modules/unicase/u8-ct-toupper: Likewise.
21310         * modules/unicase/u8-is-cased: Likewise.
21311         * modules/unicase/u8-is-casefolded: Likewise.
21312         * modules/unicase/u8-is-lowercase: Likewise.
21313         * modules/unicase/u8-is-titlecase: Likewise.
21314         * modules/unicase/u8-is-uppercase: Likewise.
21315         * modules/unicase/u8-prefix-context: Likewise.
21316         * modules/unicase/u8-suffix-context: Likewise.
21317         * modules/unicase/u8-tolower: Likewise.
21318         * modules/unicase/u8-totitle: Likewise.
21319         * modules/unicase/u8-toupper: Likewise.
21320         * modules/unicase/u16-casecmp: Likewise.
21321         * modules/unicase/u16-casecoll: Likewise.
21322         * modules/unicase/u16-casefold: Likewise.
21323         * modules/unicase/u16-casexfrm: Likewise.
21324         * modules/unicase/u16-ct-casefold: Likewise.
21325         * modules/unicase/u16-ct-tolower: Likewise.
21326         * modules/unicase/u16-ct-totitle: Likewise.
21327         * modules/unicase/u16-ct-toupper: Likewise.
21328         * modules/unicase/u16-is-cased: Likewise.
21329         * modules/unicase/u16-is-casefolded: Likewise.
21330         * modules/unicase/u16-is-lowercase: Likewise.
21331         * modules/unicase/u16-is-titlecase: Likewise.
21332         * modules/unicase/u16-is-uppercase: Likewise.
21333         * modules/unicase/u16-prefix-context: Likewise.
21334         * modules/unicase/u16-suffix-context: Likewise.
21335         * modules/unicase/u16-tolower: Likewise.
21336         * modules/unicase/u16-totitle: Likewise.
21337         * modules/unicase/u16-toupper: Likewise.
21338         * modules/unicase/u32-casecmp: Likewise.
21339         * modules/unicase/u32-casecoll: Likewise.
21340         * modules/unicase/u32-casefold: Likewise.
21341         * modules/unicase/u32-casexfrm: Likewise.
21342         * modules/unicase/u32-ct-casefold: Likewise.
21343         * modules/unicase/u32-ct-tolower: Likewise.
21344         * modules/unicase/u32-ct-totitle: Likewise.
21345         * modules/unicase/u32-ct-toupper: Likewise.
21346         * modules/unicase/u32-is-cased: Likewise.
21347         * modules/unicase/u32-is-casefolded: Likewise.
21348         * modules/unicase/u32-is-lowercase: Likewise.
21349         * modules/unicase/u32-is-titlecase: Likewise.
21350         * modules/unicase/u32-is-uppercase: Likewise.
21351         * modules/unicase/u32-prefix-context: Likewise.
21352         * modules/unicase/u32-suffix-context: Likewise.
21353         * modules/unicase/u32-tolower: Likewise.
21354         * modules/unicase/u32-totitle: Likewise.
21355         * modules/unicase/u32-toupper: Likewise.
21356         * modules/unicase/ulc-casecmp: Likewise.
21357         * modules/unicase/ulc-casecoll: Likewise.
21358         * modules/unicase/ulc-casexfrm: Likewise.
21359         * modules/uniconv/u8-conv-from-enc: Likewise.
21360         * modules/uniconv/u8-conv-to-enc: Likewise.
21361         * modules/uniconv/u8-strconv-from-enc: Likewise.
21362         * modules/uniconv/u8-strconv-from-locale: Likewise.
21363         * modules/uniconv/u8-strconv-to-enc: Likewise.
21364         * modules/uniconv/u8-strconv-to-locale: Likewise.
21365         * modules/uniconv/u16-conv-from-enc: Likewise.
21366         * modules/uniconv/u16-conv-to-enc: Likewise.
21367         * modules/uniconv/u16-strconv-from-enc: Likewise.
21368         * modules/uniconv/u16-strconv-from-locale: Likewise.
21369         * modules/uniconv/u16-strconv-to-enc: Likewise.
21370         * modules/uniconv/u16-strconv-to-locale: Likewise.
21371         * modules/uniconv/u32-conv-from-enc: Likewise.
21372         * modules/uniconv/u32-conv-to-enc: Likewise.
21373         * modules/uniconv/u32-strconv-from-enc: Likewise.
21374         * modules/uniconv/u32-strconv-from-locale: Likewise.
21375         * modules/uniconv/u32-strconv-to-enc: Likewise.
21376         * modules/uniconv/u32-strconv-to-locale: Likewise.
21377         * modules/unictype/bidicategory-byname: Likewise.
21378         * modules/unictype/bidicategory-name: Likewise.
21379         * modules/unictype/bidicategory-of: Likewise.
21380         * modules/unictype/bidicategory-test: Likewise.
21381         * modules/unictype/block-list: Likewise.
21382         * modules/unictype/block-test: Likewise.
21383         * modules/unictype/category-C: Likewise.
21384         * modules/unictype/category-Cc: Likewise.
21385         * modules/unictype/category-Cf: Likewise.
21386         * modules/unictype/category-Cn: Likewise.
21387         * modules/unictype/category-Co: Likewise.
21388         * modules/unictype/category-Cs: Likewise.
21389         * modules/unictype/category-L: Likewise.
21390         * modules/unictype/category-Ll: Likewise.
21391         * modules/unictype/category-Lm: Likewise.
21392         * modules/unictype/category-Lo: Likewise.
21393         * modules/unictype/category-Lt: Likewise.
21394         * modules/unictype/category-Lu: Likewise.
21395         * modules/unictype/category-M: Likewise.
21396         * modules/unictype/category-Mc: Likewise.
21397         * modules/unictype/category-Me: Likewise.
21398         * modules/unictype/category-Mn: Likewise.
21399         * modules/unictype/category-N: Likewise.
21400         * modules/unictype/category-Nd: Likewise.
21401         * modules/unictype/category-Nl: Likewise.
21402         * modules/unictype/category-No: Likewise.
21403         * modules/unictype/category-P: Likewise.
21404         * modules/unictype/category-Pc: Likewise.
21405         * modules/unictype/category-Pd: Likewise.
21406         * modules/unictype/category-Pe: Likewise.
21407         * modules/unictype/category-Pf: Likewise.
21408         * modules/unictype/category-Pi: Likewise.
21409         * modules/unictype/category-Po: Likewise.
21410         * modules/unictype/category-Ps: Likewise.
21411         * modules/unictype/category-S: Likewise.
21412         * modules/unictype/category-Sc: Likewise.
21413         * modules/unictype/category-Sk: Likewise.
21414         * modules/unictype/category-Sm: Likewise.
21415         * modules/unictype/category-So: Likewise.
21416         * modules/unictype/category-Z: Likewise.
21417         * modules/unictype/category-Zl: Likewise.
21418         * modules/unictype/category-Zp: Likewise.
21419         * modules/unictype/category-Zs: Likewise.
21420         * modules/unictype/category-and: Likewise.
21421         * modules/unictype/category-and-not: Likewise.
21422         * modules/unictype/category-byname: Likewise.
21423         * modules/unictype/category-name: Likewise.
21424         * modules/unictype/category-none: Likewise.
21425         * modules/unictype/category-of: Likewise.
21426         * modules/unictype/category-or: Likewise.
21427         * modules/unictype/category-test: Likewise.
21428         * modules/unictype/combining-class: Likewise.
21429         * modules/unictype/ctype-alnum: Likewise.
21430         * modules/unictype/ctype-alpha: Likewise.
21431         * modules/unictype/ctype-blank: Likewise.
21432         * modules/unictype/ctype-cntrl: Likewise.
21433         * modules/unictype/ctype-digit: Likewise.
21434         * modules/unictype/ctype-graph: Likewise.
21435         * modules/unictype/ctype-lower: Likewise.
21436         * modules/unictype/ctype-print: Likewise.
21437         * modules/unictype/ctype-punct: Likewise.
21438         * modules/unictype/ctype-space: Likewise.
21439         * modules/unictype/ctype-upper: Likewise.
21440         * modules/unictype/ctype-xdigit: Likewise.
21441         * modules/unictype/decimal-digit: Likewise.
21442         * modules/unictype/digit: Likewise.
21443         * modules/unictype/mirror: Likewise.
21444         * modules/unictype/numeric: Likewise.
21445         * modules/unictype/property-alphabetic: Likewise.
21446         * modules/unictype/property-ascii-hex-digit: Likewise.
21447         * modules/unictype/property-bidi-arabic-digit: Likewise.
21448         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21449         * modules/unictype/property-bidi-block-separator: Likewise.
21450         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21451         * modules/unictype/property-bidi-common-separator: Likewise.
21452         * modules/unictype/property-bidi-control: Likewise.
21453         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21454         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21455         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21456         * modules/unictype/property-bidi-european-digit: Likewise.
21457         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21458         * modules/unictype/property-bidi-left-to-right: Likewise.
21459         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21460         * modules/unictype/property-bidi-other-neutral: Likewise.
21461         * modules/unictype/property-bidi-pdf: Likewise.
21462         * modules/unictype/property-bidi-segment-separator: Likewise.
21463         * modules/unictype/property-bidi-whitespace: Likewise.
21464         * modules/unictype/property-byname: Likewise.
21465         * modules/unictype/property-combining: Likewise.
21466         * modules/unictype/property-composite: Likewise.
21467         * modules/unictype/property-currency-symbol: Likewise.
21468         * modules/unictype/property-dash: Likewise.
21469         * modules/unictype/property-decimal-digit: Likewise.
21470         * modules/unictype/property-default-ignorable-code-point: Likewise.
21471         * modules/unictype/property-deprecated: Likewise.
21472         * modules/unictype/property-diacritic: Likewise.
21473         * modules/unictype/property-extender: Likewise.
21474         * modules/unictype/property-format-control: Likewise.
21475         * modules/unictype/property-grapheme-base: Likewise.
21476         * modules/unictype/property-grapheme-extend: Likewise.
21477         * modules/unictype/property-grapheme-link: Likewise.
21478         * modules/unictype/property-hex-digit: Likewise.
21479         * modules/unictype/property-hyphen: Likewise.
21480         * modules/unictype/property-id-continue: Likewise.
21481         * modules/unictype/property-id-start: Likewise.
21482         * modules/unictype/property-ideographic: Likewise.
21483         * modules/unictype/property-ids-binary-operator: Likewise.
21484         * modules/unictype/property-ids-trinary-operator: Likewise.
21485         * modules/unictype/property-ignorable-control: Likewise.
21486         * modules/unictype/property-iso-control: Likewise.
21487         * modules/unictype/property-join-control: Likewise.
21488         * modules/unictype/property-left-of-pair: Likewise.
21489         * modules/unictype/property-line-separator: Likewise.
21490         * modules/unictype/property-logical-order-exception: Likewise.
21491         * modules/unictype/property-lowercase: Likewise.
21492         * modules/unictype/property-math: Likewise.
21493         * modules/unictype/property-non-break: Likewise.
21494         * modules/unictype/property-not-a-character: Likewise.
21495         * modules/unictype/property-numeric: Likewise.
21496         * modules/unictype/property-other-alphabetic: Likewise.
21497         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21498         * modules/unictype/property-other-grapheme-extend: Likewise.
21499         * modules/unictype/property-other-id-continue: Likewise.
21500         * modules/unictype/property-other-id-start: Likewise.
21501         * modules/unictype/property-other-lowercase: Likewise.
21502         * modules/unictype/property-other-math: Likewise.
21503         * modules/unictype/property-other-uppercase: Likewise.
21504         * modules/unictype/property-paired-punctuation: Likewise.
21505         * modules/unictype/property-paragraph-separator: Likewise.
21506         * modules/unictype/property-pattern-syntax: Likewise.
21507         * modules/unictype/property-pattern-white-space: Likewise.
21508         * modules/unictype/property-private-use: Likewise.
21509         * modules/unictype/property-punctuation: Likewise.
21510         * modules/unictype/property-quotation-mark: Likewise.
21511         * modules/unictype/property-radical: Likewise.
21512         * modules/unictype/property-sentence-terminal: Likewise.
21513         * modules/unictype/property-soft-dotted: Likewise.
21514         * modules/unictype/property-space: Likewise.
21515         * modules/unictype/property-terminal-punctuation: Likewise.
21516         * modules/unictype/property-test: Likewise.
21517         * modules/unictype/property-titlecase: Likewise.
21518         * modules/unictype/property-unassigned-code-value: Likewise.
21519         * modules/unictype/property-unified-ideograph: Likewise.
21520         * modules/unictype/property-uppercase: Likewise.
21521         * modules/unictype/property-variation-selector: Likewise.
21522         * modules/unictype/property-white-space: Likewise.
21523         * modules/unictype/property-xid-continue: Likewise.
21524         * modules/unictype/property-xid-start: Likewise.
21525         * modules/unictype/property-zero-width: Likewise.
21526         * modules/unictype/scripts: Likewise.
21527         * modules/unictype/syntax-c-ident: Likewise.
21528         * modules/unictype/syntax-c-whitespace: Likewise.
21529         * modules/unictype/syntax-java-ident: Likewise.
21530         * modules/unictype/syntax-java-whitespace: Likewise.
21531         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21532         * modules/unilbrk/u8-width-linebreaks: Likewise.
21533         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21534         * modules/unilbrk/u16-width-linebreaks: Likewise.
21535         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21536         * modules/unilbrk/u32-width-linebreaks: Likewise.
21537         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21538         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21539         * modules/uniname/uniname: Likewise.
21540         * modules/uninorm/canonical-decomposition: Likewise.
21541         * modules/uninorm/composition: Likewise.
21542         * modules/uninorm/decomposing-form: Likewise.
21543         * modules/uninorm/decomposition: Likewise.
21544         * modules/uninorm/filter: Likewise.
21545         * modules/uninorm/nfc: Likewise.
21546         * modules/uninorm/nfd: Likewise.
21547         * modules/uninorm/nfkc: Likewise.
21548         * modules/uninorm/nfkd: Likewise.
21549         * modules/uninorm/u8-normalize: Likewise.
21550         * modules/uninorm/u8-normcmp: Likewise.
21551         * modules/uninorm/u8-normcoll: Likewise.
21552         * modules/uninorm/u8-normxfrm: Likewise.
21553         * modules/uninorm/u16-normalize: Likewise.
21554         * modules/uninorm/u16-normcmp: Likewise.
21555         * modules/uninorm/u16-normcoll: Likewise.
21556         * modules/uninorm/u16-normxfrm: Likewise.
21557         * modules/uninorm/u32-normalize: Likewise.
21558         * modules/uninorm/u32-normcmp: Likewise.
21559         * modules/uninorm/u32-normcoll: Likewise.
21560         * modules/uninorm/u32-normxfrm: Likewise.
21561         * modules/unistdio/u8-asnprintf: Likewise.
21562         * modules/unistdio/u8-asprintf: Likewise.
21563         * modules/unistdio/u8-snprintf: Likewise.
21564         * modules/unistdio/u8-sprintf: Likewise.
21565         * modules/unistdio/u8-u8-asnprintf: Likewise.
21566         * modules/unistdio/u8-u8-asprintf: Likewise.
21567         * modules/unistdio/u8-u8-snprintf: Likewise.
21568         * modules/unistdio/u8-u8-sprintf: Likewise.
21569         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21570         * modules/unistdio/u8-u8-vasprintf: Likewise.
21571         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21572         * modules/unistdio/u8-u8-vsprintf: Likewise.
21573         * modules/unistdio/u8-vasnprintf: Likewise.
21574         * modules/unistdio/u8-vasprintf: Likewise.
21575         * modules/unistdio/u8-vsnprintf: Likewise.
21576         * modules/unistdio/u8-vsprintf: Likewise.
21577         * modules/unistdio/u16-asnprintf: Likewise.
21578         * modules/unistdio/u16-asprintf: Likewise.
21579         * modules/unistdio/u16-snprintf: Likewise.
21580         * modules/unistdio/u16-sprintf: Likewise.
21581         * modules/unistdio/u16-u16-asnprintf: Likewise.
21582         * modules/unistdio/u16-u16-asprintf: Likewise.
21583         * modules/unistdio/u16-u16-snprintf: Likewise.
21584         * modules/unistdio/u16-u16-sprintf: Likewise.
21585         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21586         * modules/unistdio/u16-u16-vasprintf: Likewise.
21587         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21588         * modules/unistdio/u16-u16-vsprintf: Likewise.
21589         * modules/unistdio/u16-vasnprintf: Likewise.
21590         * modules/unistdio/u16-vasprintf: Likewise.
21591         * modules/unistdio/u16-vsnprintf: Likewise.
21592         * modules/unistdio/u16-vsprintf: Likewise.
21593         * modules/unistdio/u32-asnprintf: Likewise.
21594         * modules/unistdio/u32-asprintf: Likewise.
21595         * modules/unistdio/u32-snprintf: Likewise.
21596         * modules/unistdio/u32-sprintf: Likewise.
21597         * modules/unistdio/u32-u32-asnprintf: Likewise.
21598         * modules/unistdio/u32-u32-asprintf: Likewise.
21599         * modules/unistdio/u32-u32-snprintf: Likewise.
21600         * modules/unistdio/u32-u32-sprintf: Likewise.
21601         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21602         * modules/unistdio/u32-u32-vasprintf: Likewise.
21603         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21604         * modules/unistdio/u32-u32-vsprintf: Likewise.
21605         * modules/unistdio/u32-vasnprintf: Likewise.
21606         * modules/unistdio/u32-vasprintf: Likewise.
21607         * modules/unistdio/u32-vsnprintf: Likewise.
21608         * modules/unistdio/u32-vsprintf: Likewise.
21609         * modules/unistdio/ulc-asnprintf: Likewise.
21610         * modules/unistdio/ulc-asprintf: Likewise.
21611         * modules/unistdio/ulc-fprintf: Likewise.
21612         * modules/unistdio/ulc-snprintf: Likewise.
21613         * modules/unistdio/ulc-sprintf: Likewise.
21614         * modules/unistdio/ulc-vasnprintf: Likewise.
21615         * modules/unistdio/ulc-vasprintf: Likewise.
21616         * modules/unistdio/ulc-vfprintf: Likewise.
21617         * modules/unistdio/ulc-vsnprintf: Likewise.
21618         * modules/unistdio/ulc-vsprintf: Likewise.
21619         * modules/unistr/u8-check: Likewise.
21620         * modules/unistr/u8-chr: Likewise.
21621         * modules/unistr/u8-cmp: Likewise.
21622         * modules/unistr/u8-cmp2: Likewise.
21623         * modules/unistr/u8-cpy: Likewise.
21624         * modules/unistr/u8-cpy-alloc: Likewise.
21625         * modules/unistr/u8-endswith: Likewise.
21626         * modules/unistr/u8-mblen: Likewise.
21627         * modules/unistr/u8-mbsnlen: Likewise.
21628         * modules/unistr/u8-mbtouc: Likewise.
21629         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21630         * modules/unistr/u8-mbtoucr: Likewise.
21631         * modules/unistr/u8-move: Likewise.
21632         * modules/unistr/u8-next: Likewise.
21633         * modules/unistr/u8-prev: Likewise.
21634         * modules/unistr/u8-set: Likewise.
21635         * modules/unistr/u8-startswith: Likewise.
21636         * modules/unistr/u8-stpcpy: Likewise.
21637         * modules/unistr/u8-stpncpy: Likewise.
21638         * modules/unistr/u8-strcat: Likewise.
21639         * modules/unistr/u8-strchr: Likewise.
21640         * modules/unistr/u8-strcmp: Likewise.
21641         * modules/unistr/u8-strcoll: Likewise.
21642         * modules/unistr/u8-strcpy: Likewise.
21643         * modules/unistr/u8-strcspn: Likewise.
21644         * modules/unistr/u8-strdup: Likewise.
21645         * modules/unistr/u8-strlen: Likewise.
21646         * modules/unistr/u8-strmblen: Likewise.
21647         * modules/unistr/u8-strmbtouc: Likewise.
21648         * modules/unistr/u8-strncat: Likewise.
21649         * modules/unistr/u8-strncmp: Likewise.
21650         * modules/unistr/u8-strncpy: Likewise.
21651         * modules/unistr/u8-strnlen: Likewise.
21652         * modules/unistr/u8-strpbrk: Likewise.
21653         * modules/unistr/u8-strrchr: Likewise.
21654         * modules/unistr/u8-strspn: Likewise.
21655         * modules/unistr/u8-strstr: Likewise.
21656         * modules/unistr/u8-strtok: Likewise.
21657         * modules/unistr/u8-to-u16: Likewise.
21658         * modules/unistr/u8-to-u32: Likewise.
21659         * modules/unistr/u8-uctomb: Likewise.
21660         * modules/unistr/u16-check: Likewise.
21661         * modules/unistr/u16-chr: Likewise.
21662         * modules/unistr/u16-cmp: Likewise.
21663         * modules/unistr/u16-cmp2: Likewise.
21664         * modules/unistr/u16-cpy: Likewise.
21665         * modules/unistr/u16-cpy-alloc: Likewise.
21666         * modules/unistr/u16-endswith: Likewise.
21667         * modules/unistr/u16-mblen: Likewise.
21668         * modules/unistr/u16-mbsnlen: Likewise.
21669         * modules/unistr/u16-mbtouc: Likewise.
21670         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21671         * modules/unistr/u16-mbtoucr: Likewise.
21672         * modules/unistr/u16-move: Likewise.
21673         * modules/unistr/u16-next: Likewise.
21674         * modules/unistr/u16-prev: Likewise.
21675         * modules/unistr/u16-set: Likewise.
21676         * modules/unistr/u16-startswith: Likewise.
21677         * modules/unistr/u16-stpcpy: Likewise.
21678         * modules/unistr/u16-stpncpy: Likewise.
21679         * modules/unistr/u16-strcat: Likewise.
21680         * modules/unistr/u16-strchr: Likewise.
21681         * modules/unistr/u16-strcmp: Likewise.
21682         * modules/unistr/u16-strcoll: Likewise.
21683         * modules/unistr/u16-strcpy: Likewise.
21684         * modules/unistr/u16-strcspn: Likewise.
21685         * modules/unistr/u16-strdup: Likewise.
21686         * modules/unistr/u16-strlen: Likewise.
21687         * modules/unistr/u16-strmblen: Likewise.
21688         * modules/unistr/u16-strmbtouc: Likewise.
21689         * modules/unistr/u16-strncat: Likewise.
21690         * modules/unistr/u16-strncmp: Likewise.
21691         * modules/unistr/u16-strncpy: Likewise.
21692         * modules/unistr/u16-strnlen: Likewise.
21693         * modules/unistr/u16-strpbrk: Likewise.
21694         * modules/unistr/u16-strrchr: Likewise.
21695         * modules/unistr/u16-strspn: Likewise.
21696         * modules/unistr/u16-strstr: Likewise.
21697         * modules/unistr/u16-strtok: Likewise.
21698         * modules/unistr/u16-to-u32: Likewise.
21699         * modules/unistr/u16-to-u8: Likewise.
21700         * modules/unistr/u16-uctomb: Likewise.
21701         * modules/unistr/u32-check: Likewise.
21702         * modules/unistr/u32-chr: Likewise.
21703         * modules/unistr/u32-cmp: Likewise.
21704         * modules/unistr/u32-cmp2: Likewise.
21705         * modules/unistr/u32-cpy: Likewise.
21706         * modules/unistr/u32-cpy-alloc: Likewise.
21707         * modules/unistr/u32-endswith: Likewise.
21708         * modules/unistr/u32-mblen: Likewise.
21709         * modules/unistr/u32-mbsnlen: Likewise.
21710         * modules/unistr/u32-mbtouc: Likewise.
21711         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21712         * modules/unistr/u32-mbtoucr: Likewise.
21713         * modules/unistr/u32-move: Likewise.
21714         * modules/unistr/u32-next: Likewise.
21715         * modules/unistr/u32-prev: Likewise.
21716         * modules/unistr/u32-set: Likewise.
21717         * modules/unistr/u32-startswith: Likewise.
21718         * modules/unistr/u32-stpcpy: Likewise.
21719         * modules/unistr/u32-stpncpy: Likewise.
21720         * modules/unistr/u32-strcat: Likewise.
21721         * modules/unistr/u32-strchr: Likewise.
21722         * modules/unistr/u32-strcmp: Likewise.
21723         * modules/unistr/u32-strcoll: Likewise.
21724         * modules/unistr/u32-strcpy: Likewise.
21725         * modules/unistr/u32-strcspn: Likewise.
21726         * modules/unistr/u32-strdup: Likewise.
21727         * modules/unistr/u32-strlen: Likewise.
21728         * modules/unistr/u32-strmblen: Likewise.
21729         * modules/unistr/u32-strmbtouc: Likewise.
21730         * modules/unistr/u32-strncat: Likewise.
21731         * modules/unistr/u32-strncmp: Likewise.
21732         * modules/unistr/u32-strncpy: Likewise.
21733         * modules/unistr/u32-strnlen: Likewise.
21734         * modules/unistr/u32-strpbrk: Likewise.
21735         * modules/unistr/u32-strrchr: Likewise.
21736         * modules/unistr/u32-strspn: Likewise.
21737         * modules/unistr/u32-strstr: Likewise.
21738         * modules/unistr/u32-strtok: Likewise.
21739         * modules/unistr/u32-to-u16: Likewise.
21740         * modules/unistr/u32-to-u8: Likewise.
21741         * modules/unistr/u32-uctomb: Likewise.
21742         * modules/uniwbrk/u8-wordbreaks: Likewise.
21743         * modules/uniwbrk/u16-wordbreaks: Likewise.
21744         * modules/uniwbrk/u32-wordbreaks: Likewise.
21745         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21746         * modules/uniwbrk/wordbreak-property: Likewise.
21747         * modules/uniwidth/u8-strwidth: Likewise.
21748         * modules/uniwidth/u8-width: Likewise.
21749         * modules/uniwidth/u16-strwidth: Likewise.
21750         * modules/uniwidth/u16-width: Likewise.
21751         * modules/uniwidth/u32-strwidth: Likewise.
21752         * modules/uniwidth/u32-width: Likewise.
21753         * modules/uniwidth/width: Likewise.
21754         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21755         with $(LIBUNISTRING).
21756         * modules/unicase/ignorable-tests: Likewise.
21757         * modules/unicase/locale-language-tests: Likewise.
21758         * modules/unicase/tolower-tests: Likewise.
21759         * modules/unicase/totitle-tests: Likewise.
21760         * modules/unicase/toupper-tests: Likewise.
21761         * modules/unicase/u8-casecmp-tests: Likewise.
21762         * modules/unicase/u8-casecoll-tests: Likewise.
21763         * modules/unicase/u8-casefold-tests: Likewise.
21764         * modules/unicase/u8-is-cased-tests: Likewise.
21765         * modules/unicase/u8-is-casefolded-tests: Likewise.
21766         * modules/unicase/u8-is-lowercase-tests: Likewise.
21767         * modules/unicase/u8-is-titlecase-tests: Likewise.
21768         * modules/unicase/u8-is-uppercase-tests: Likewise.
21769         * modules/unicase/u8-tolower-tests: Likewise.
21770         * modules/unicase/u8-totitle-tests: Likewise.
21771         * modules/unicase/u8-toupper-tests: Likewise.
21772         * modules/unicase/u16-casecmp-tests: Likewise.
21773         * modules/unicase/u16-casecoll-tests: Likewise.
21774         * modules/unicase/u16-casefold-tests: Likewise.
21775         * modules/unicase/u16-is-cased-tests: Likewise.
21776         * modules/unicase/u16-is-casefolded-tests: Likewise.
21777         * modules/unicase/u16-is-lowercase-tests: Likewise.
21778         * modules/unicase/u16-is-titlecase-tests: Likewise.
21779         * modules/unicase/u16-is-uppercase-tests: Likewise.
21780         * modules/unicase/u16-tolower-tests: Likewise.
21781         * modules/unicase/u16-totitle-tests: Likewise.
21782         * modules/unicase/u16-toupper-tests: Likewise.
21783         * modules/unicase/u32-casecmp-tests: Likewise.
21784         * modules/unicase/u32-casecoll-tests: Likewise.
21785         * modules/unicase/u32-casefold-tests: Likewise.
21786         * modules/unicase/u32-is-cased-tests: Likewise.
21787         * modules/unicase/u32-is-casefolded-tests: Likewise.
21788         * modules/unicase/u32-is-lowercase-tests: Likewise.
21789         * modules/unicase/u32-is-titlecase-tests: Likewise.
21790         * modules/unicase/u32-is-uppercase-tests: Likewise.
21791         * modules/unicase/u32-tolower-tests: Likewise.
21792         * modules/unicase/u32-totitle-tests: Likewise.
21793         * modules/unicase/u32-toupper-tests: Likewise.
21794         * modules/unicase/ulc-casecmp-tests: Likewise.
21795         * modules/unicase/ulc-casecoll-tests: Likewise.
21796         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21797         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21798         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21799         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21800         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21801         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21802         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21803         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21804         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21805         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21806         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21807         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21808         * modules/unictype/bidicategory-byname-tests: Likewise.
21809         * modules/unictype/bidicategory-name-tests: Likewise.
21810         * modules/unictype/bidicategory-of-tests: Likewise.
21811         * modules/unictype/bidicategory-test-tests: Likewise.
21812         * modules/unictype/block-list-tests: Likewise.
21813         * modules/unictype/block-of-tests: Likewise.
21814         * modules/unictype/block-test-tests: Likewise.
21815         * modules/unictype/category-C-tests: Likewise.
21816         * modules/unictype/category-Cc-tests: Likewise.
21817         * modules/unictype/category-Cf-tests: Likewise.
21818         * modules/unictype/category-Cn-tests: Likewise.
21819         * modules/unictype/category-Co-tests: Likewise.
21820         * modules/unictype/category-Cs-tests: Likewise.
21821         * modules/unictype/category-L-tests: Likewise.
21822         * modules/unictype/category-Ll-tests: Likewise.
21823         * modules/unictype/category-Lm-tests: Likewise.
21824         * modules/unictype/category-Lo-tests: Likewise.
21825         * modules/unictype/category-Lt-tests: Likewise.
21826         * modules/unictype/category-Lu-tests: Likewise.
21827         * modules/unictype/category-M-tests: Likewise.
21828         * modules/unictype/category-Mc-tests: Likewise.
21829         * modules/unictype/category-Me-tests: Likewise.
21830         * modules/unictype/category-Mn-tests: Likewise.
21831         * modules/unictype/category-N-tests: Likewise.
21832         * modules/unictype/category-Nd-tests: Likewise.
21833         * modules/unictype/category-Nl-tests: Likewise.
21834         * modules/unictype/category-No-tests: Likewise.
21835         * modules/unictype/category-P-tests: Likewise.
21836         * modules/unictype/category-Pc-tests: Likewise.
21837         * modules/unictype/category-Pd-tests: Likewise.
21838         * modules/unictype/category-Pe-tests: Likewise.
21839         * modules/unictype/category-Pf-tests: Likewise.
21840         * modules/unictype/category-Pi-tests: Likewise.
21841         * modules/unictype/category-Po-tests: Likewise.
21842         * modules/unictype/category-Ps-tests: Likewise.
21843         * modules/unictype/category-S-tests: Likewise.
21844         * modules/unictype/category-Sc-tests: Likewise.
21845         * modules/unictype/category-Sk-tests: Likewise.
21846         * modules/unictype/category-Sm-tests: Likewise.
21847         * modules/unictype/category-So-tests: Likewise.
21848         * modules/unictype/category-Z-tests: Likewise.
21849         * modules/unictype/category-Zl-tests: Likewise.
21850         * modules/unictype/category-Zp-tests: Likewise.
21851         * modules/unictype/category-Zs-tests: Likewise.
21852         * modules/unictype/category-and-not-tests: Likewise.
21853         * modules/unictype/category-and-tests: Likewise.
21854         * modules/unictype/category-byname-tests: Likewise.
21855         * modules/unictype/category-name-tests: Likewise.
21856         * modules/unictype/category-none-tests: Likewise.
21857         * modules/unictype/category-of-tests: Likewise.
21858         * modules/unictype/category-or-tests: Likewise.
21859         * modules/unictype/category-test-withtable-tests: Likewise.
21860         * modules/unictype/combining-class-tests: Likewise.
21861         * modules/unictype/ctype-alnum-tests: Likewise.
21862         * modules/unictype/ctype-alpha-tests: Likewise.
21863         * modules/unictype/ctype-blank-tests: Likewise.
21864         * modules/unictype/ctype-cntrl-tests: Likewise.
21865         * modules/unictype/ctype-digit-tests: Likewise.
21866         * modules/unictype/ctype-graph-tests: Likewise.
21867         * modules/unictype/ctype-lower-tests: Likewise.
21868         * modules/unictype/ctype-print-tests: Likewise.
21869         * modules/unictype/ctype-punct-tests: Likewise.
21870         * modules/unictype/ctype-space-tests: Likewise.
21871         * modules/unictype/ctype-upper-tests: Likewise.
21872         * modules/unictype/ctype-xdigit-tests: Likewise.
21873         * modules/unictype/decimal-digit-tests: Likewise.
21874         * modules/unictype/digit-tests: Likewise.
21875         * modules/unictype/mirror-tests: Likewise.
21876         * modules/unictype/numeric-tests: Likewise.
21877         * modules/unictype/property-alphabetic-tests: Likewise.
21878         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21879         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21880         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21881         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21882         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21883         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21884         * modules/unictype/property-bidi-control-tests: Likewise.
21885         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21886         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21887         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21888         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21889         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21890         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21891         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21892         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21893         * modules/unictype/property-bidi-pdf-tests: Likewise.
21894         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21895         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21896         * modules/unictype/property-byname-tests: Likewise.
21897         * modules/unictype/property-combining-tests: Likewise.
21898         * modules/unictype/property-composite-tests: Likewise.
21899         * modules/unictype/property-currency-symbol-tests: Likewise.
21900         * modules/unictype/property-dash-tests: Likewise.
21901         * modules/unictype/property-decimal-digit-tests: Likewise.
21902         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21903         * modules/unictype/property-deprecated-tests: Likewise.
21904         * modules/unictype/property-diacritic-tests: Likewise.
21905         * modules/unictype/property-extender-tests: Likewise.
21906         * modules/unictype/property-format-control-tests: Likewise.
21907         * modules/unictype/property-grapheme-base-tests: Likewise.
21908         * modules/unictype/property-grapheme-extend-tests: Likewise.
21909         * modules/unictype/property-grapheme-link-tests: Likewise.
21910         * modules/unictype/property-hex-digit-tests: Likewise.
21911         * modules/unictype/property-hyphen-tests: Likewise.
21912         * modules/unictype/property-id-continue-tests: Likewise.
21913         * modules/unictype/property-id-start-tests: Likewise.
21914         * modules/unictype/property-ideographic-tests: Likewise.
21915         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21916         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21917         * modules/unictype/property-ignorable-control-tests: Likewise.
21918         * modules/unictype/property-iso-control-tests: Likewise.
21919         * modules/unictype/property-join-control-tests: Likewise.
21920         * modules/unictype/property-left-of-pair-tests: Likewise.
21921         * modules/unictype/property-line-separator-tests: Likewise.
21922         * modules/unictype/property-logical-order-exception-tests: Likewise.
21923         * modules/unictype/property-lowercase-tests: Likewise.
21924         * modules/unictype/property-math-tests: Likewise.
21925         * modules/unictype/property-non-break-tests: Likewise.
21926         * modules/unictype/property-not-a-character-tests: Likewise.
21927         * modules/unictype/property-numeric-tests: Likewise.
21928         * modules/unictype/property-other-alphabetic-tests: Likewise.
21929         * modules/unictype/property-other-default-ignorable-code-point-tests:
21930         Likewise.
21931         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21932         * modules/unictype/property-other-id-continue-tests: Likewise.
21933         * modules/unictype/property-other-id-start-tests: Likewise.
21934         * modules/unictype/property-other-lowercase-tests: Likewise.
21935         * modules/unictype/property-other-math-tests: Likewise.
21936         * modules/unictype/property-other-uppercase-tests: Likewise.
21937         * modules/unictype/property-paired-punctuation-tests: Likewise.
21938         * modules/unictype/property-paragraph-separator-tests: Likewise.
21939         * modules/unictype/property-pattern-syntax-tests: Likewise.
21940         * modules/unictype/property-pattern-white-space-tests: Likewise.
21941         * modules/unictype/property-private-use-tests: Likewise.
21942         * modules/unictype/property-punctuation-tests: Likewise.
21943         * modules/unictype/property-quotation-mark-tests: Likewise.
21944         * modules/unictype/property-radical-tests: Likewise.
21945         * modules/unictype/property-sentence-terminal-tests: Likewise.
21946         * modules/unictype/property-soft-dotted-tests: Likewise.
21947         * modules/unictype/property-space-tests: Likewise.
21948         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21949         * modules/unictype/property-test-tests: Likewise.
21950         * modules/unictype/property-titlecase-tests: Likewise.
21951         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21952         * modules/unictype/property-unified-ideograph-tests: Likewise.
21953         * modules/unictype/property-uppercase-tests: Likewise.
21954         * modules/unictype/property-variation-selector-tests: Likewise.
21955         * modules/unictype/property-white-space-tests: Likewise.
21956         * modules/unictype/property-xid-continue-tests: Likewise.
21957         * modules/unictype/property-xid-start-tests: Likewise.
21958         * modules/unictype/property-zero-width-tests: Likewise.
21959         * modules/unictype/scripts-tests: Likewise.
21960         * modules/unictype/syntax-c-ident-tests: Likewise.
21961         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21962         * modules/unictype/syntax-java-ident-tests: Likewise.
21963         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21964         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21965         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21966         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21967         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21968         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21969         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21970         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21971         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21972         * modules/uniname/uniname-tests: Likewise.
21973         * modules/uninorm/canonical-decomposition-tests: Likewise.
21974         * modules/uninorm/compat-decomposition-tests: Likewise.
21975         * modules/uninorm/composition-tests: Likewise.
21976         * modules/uninorm/decomposing-form-tests: Likewise.
21977         * modules/uninorm/decomposition-tests: Likewise.
21978         * modules/uninorm/filter-tests: Likewise.
21979         * modules/uninorm/nfc-tests: Likewise.
21980         * modules/uninorm/nfd-tests: Likewise.
21981         * modules/uninorm/nfkc-tests: Likewise.
21982         * modules/uninorm/nfkd-tests: Likewise.
21983         * modules/uninorm/u8-normcmp-tests: Likewise.
21984         * modules/uninorm/u8-normcoll-tests: Likewise.
21985         * modules/uninorm/u16-normcmp-tests: Likewise.
21986         * modules/uninorm/u16-normcoll-tests: Likewise.
21987         * modules/uninorm/u32-normcmp-tests: Likewise.
21988         * modules/uninorm/u32-normcoll-tests: Likewise.
21989         * modules/unistdio/u8-asnprintf-tests: Likewise.
21990         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21991         * modules/unistdio/u8-vasprintf-tests: Likewise.
21992         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21993         * modules/unistdio/u8-vsprintf-tests: Likewise.
21994         * modules/unistdio/u16-asnprintf-tests: Likewise.
21995         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21996         * modules/unistdio/u16-vasprintf-tests: Likewise.
21997         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21998         * modules/unistdio/u16-vsprintf-tests: Likewise.
21999         * modules/unistdio/u32-asnprintf-tests: Likewise.
22000         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22001         * modules/unistdio/u32-vasprintf-tests: Likewise.
22002         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22003         * modules/unistdio/u32-vsprintf-tests: Likewise.
22004         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22005         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22006         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22007         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22008         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22009         * modules/unistr/u8-check-tests: Likewise.
22010         * modules/unistr/u8-chr-tests: Likewise.
22011         * modules/unistr/u8-cmp-tests: Likewise.
22012         * modules/unistr/u8-cmp2-tests: Likewise.
22013         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22014         * modules/unistr/u8-cpy-tests: Likewise.
22015         * modules/unistr/u8-mblen-tests: Likewise.
22016         * modules/unistr/u8-mbsnlen-tests: Likewise.
22017         * modules/unistr/u8-mbtouc-tests: Likewise.
22018         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22019         * modules/unistr/u8-mbtoucr-tests: Likewise.
22020         * modules/unistr/u8-move-tests: Likewise.
22021         * modules/unistr/u8-next-tests: Likewise.
22022         * modules/unistr/u8-prev-tests: Likewise.
22023         * modules/unistr/u8-set-tests: Likewise.
22024         * modules/unistr/u8-stpcpy-tests: Likewise.
22025         * modules/unistr/u8-stpncpy-tests: Likewise.
22026         * modules/unistr/u8-strcat-tests: Likewise.
22027         * modules/unistr/u8-strcmp-tests: Likewise.
22028         * modules/unistr/u8-strcoll-tests: Likewise.
22029         * modules/unistr/u8-strcpy-tests: Likewise.
22030         * modules/unistr/u8-strdup-tests: Likewise.
22031         * modules/unistr/u8-strlen-tests: Likewise.
22032         * modules/unistr/u8-strmblen-tests: Likewise.
22033         * modules/unistr/u8-strmbtouc-tests: Likewise.
22034         * modules/unistr/u8-strncat-tests: Likewise.
22035         * modules/unistr/u8-strncmp-tests: Likewise.
22036         * modules/unistr/u8-strncpy-tests: Likewise.
22037         * modules/unistr/u8-strnlen-tests: Likewise.
22038         * modules/unistr/u8-to-u16-tests: Likewise.
22039         * modules/unistr/u8-to-u32-tests: Likewise.
22040         * modules/unistr/u8-uctomb-tests: Likewise.
22041         * modules/unistr/u16-check-tests: Likewise.
22042         * modules/unistr/u16-chr-tests: Likewise.
22043         * modules/unistr/u16-cmp-tests: Likewise.
22044         * modules/unistr/u16-cmp2-tests: Likewise.
22045         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22046         * modules/unistr/u16-cpy-tests: Likewise.
22047         * modules/unistr/u16-mblen-tests: Likewise.
22048         * modules/unistr/u16-mbsnlen-tests: Likewise.
22049         * modules/unistr/u16-mbtouc-tests: Likewise.
22050         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22051         * modules/unistr/u16-mbtoucr-tests: Likewise.
22052         * modules/unistr/u16-move-tests: Likewise.
22053         * modules/unistr/u16-next-tests: Likewise.
22054         * modules/unistr/u16-prev-tests: Likewise.
22055         * modules/unistr/u16-set-tests: Likewise.
22056         * modules/unistr/u16-stpcpy-tests: Likewise.
22057         * modules/unistr/u16-stpncpy-tests: Likewise.
22058         * modules/unistr/u16-strcat-tests: Likewise.
22059         * modules/unistr/u16-strcmp-tests: Likewise.
22060         * modules/unistr/u16-strcoll-tests: Likewise.
22061         * modules/unistr/u16-strcpy-tests: Likewise.
22062         * modules/unistr/u16-strdup-tests: Likewise.
22063         * modules/unistr/u16-strlen-tests: Likewise.
22064         * modules/unistr/u16-strmblen-tests: Likewise.
22065         * modules/unistr/u16-strmbtouc-tests: Likewise.
22066         * modules/unistr/u16-strncat-tests: Likewise.
22067         * modules/unistr/u16-strncmp-tests: Likewise.
22068         * modules/unistr/u16-strncpy-tests: Likewise.
22069         * modules/unistr/u16-strnlen-tests: Likewise.
22070         * modules/unistr/u16-to-u32-tests: Likewise.
22071         * modules/unistr/u16-to-u8-tests: Likewise.
22072         * modules/unistr/u16-uctomb-tests: Likewise.
22073         * modules/unistr/u32-check-tests: Likewise.
22074         * modules/unistr/u32-chr-tests: Likewise.
22075         * modules/unistr/u32-cmp-tests: Likewise.
22076         * modules/unistr/u32-cmp2-tests: Likewise.
22077         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22078         * modules/unistr/u32-cpy-tests: Likewise.
22079         * modules/unistr/u32-mblen-tests: Likewise.
22080         * modules/unistr/u32-mbsnlen-tests: Likewise.
22081         * modules/unistr/u32-mbtouc-tests: Likewise.
22082         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22083         * modules/unistr/u32-mbtoucr-tests: Likewise.
22084         * modules/unistr/u32-move-tests: Likewise.
22085         * modules/unistr/u32-next-tests: Likewise.
22086         * modules/unistr/u32-prev-tests: Likewise.
22087         * modules/unistr/u32-set-tests: Likewise.
22088         * modules/unistr/u32-stpcpy-tests: Likewise.
22089         * modules/unistr/u32-stpncpy-tests: Likewise.
22090         * modules/unistr/u32-strcat-tests: Likewise.
22091         * modules/unistr/u32-strcmp-tests: Likewise.
22092         * modules/unistr/u32-strcoll-tests: Likewise.
22093         * modules/unistr/u32-strcpy-tests: Likewise.
22094         * modules/unistr/u32-strdup-tests: Likewise.
22095         * modules/unistr/u32-strlen-tests: Likewise.
22096         * modules/unistr/u32-strmblen-tests: Likewise.
22097         * modules/unistr/u32-strmbtouc-tests: Likewise.
22098         * modules/unistr/u32-strncat-tests: Likewise.
22099         * modules/unistr/u32-strncmp-tests: Likewise.
22100         * modules/unistr/u32-strncpy-tests: Likewise.
22101         * modules/unistr/u32-strnlen-tests: Likewise.
22102         * modules/unistr/u32-to-u16-tests: Likewise.
22103         * modules/unistr/u32-to-u8-tests: Likewise.
22104         * modules/unistr/u32-uctomb-tests: Likewise.
22105         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22106         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22107         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22108         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22109         * modules/uniwidth/u8-strwidth-tests: Likewise.
22110         * modules/uniwidth/u8-width-tests: Likewise.
22111         * modules/uniwidth/u16-strwidth-tests: Likewise.
22112         * modules/uniwidth/u16-width-tests: Likewise.
22113         * modules/uniwidth/u32-strwidth-tests: Likewise.
22114         * modules/uniwidth/u32-width-tests: Likewise.
22115         * modules/uniwidth/width-tests: Likewise.
22116
22117 2010-05-18  Richard Jones  <rjones@redhat.com>
22118
22119         doc: users.txt: list hivex
22120         * users.txt: Add hivex.
22121
22122 2010-05-18  Richard Jones  <rjones@redhat.com>
22123
22124         doc: users.txt: list febootstrap
22125         * users.txt: Add febootstrap.
22126
22127 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22128
22129         bootstrap: fix an error when gnulib is not used as a git submodule
22130         * build-aux/bootstrap (gnulib_path): If its length is zero then
22131         assign "gnulib" to it.
22132         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22133
22134 2010-05-16  Bruno Haible  <bruno@clisp.org>
22135
22136         Avoid autoconf warnings about AM_ICONV.
22137         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22138         2.64.
22139
22140 2010-05-16  Bruno Haible  <bruno@clisp.org>
22141
22142         absolute-header: Make the macro usable in more situations.
22143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22144         from gl_ABSOLUTE_HEADER.
22145         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22146
22147 2010-05-16  James Youngman  <jay@gnu.org>
22148
22149         doc: update users.txt
22150         * users.txt: Add CSSC.
22151
22152 2010-05-16  Jim Meyering  <meyering@redhat.com>
22153
22154         init.sh: fix an error in the previous change; add more comments
22155         * tests/init.sh: Compare exit code in loop against 9, not 2.
22156         Patch by Bruno Haible.
22157         Make the two tests more similar by adding an empty "then" clause.
22158         Add comments.
22159
22160         init.sh: avoid unnecessary shell re-exec
22161         * tests/init.sh: Improve the re-exec-required check to first test the
22162         current shell.  If it passes the test, do not search for a shell that
22163         does pass, and do not re-exec.  This test is particularly contorted to
22164         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22165         of $(...) evokes a syntax error and causes immediate shell exit with
22166         status 2.  Bruno Haible reported that the re-exec made it impossible
22167         to single-step through any init.sh-using script.
22168
22169 2010-05-16  Bruno Haible  <bruno@clisp.org>
22170
22171         Fix collision between gnulib's and libintl's printf replacements.
22172         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22173         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22174         (printf): When using GNU C, map the __printf__ function to rpl_printf
22175         via __asm__. When not using GNU C, define rpl_printf instead of
22176         __printf__.
22177         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22178         commit.
22179         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22180         commit.
22181         * m4/asm-underscore.m4: New file.
22182         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22183         * modules/stdio (Files): Add m4/asm-underscore.m4.
22184         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22185         Reported by Ben Pfaff.
22186
22187 2010-05-16  Bruno Haible  <bruno@clisp.org>
22188
22189         verify: Avoid skipping the test on openSUSE 11.0.
22190         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22191
22192 2010-05-13  Bruno Haible  <bruno@clisp.org>
22193
22194         Avoid useless warnings from G++.
22195         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22196         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22197         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22198
22199 2010-05-11  Jim Meyering  <meyering@redhat.com>
22200
22201         maint.mk: tweak preceding change
22202         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22203         regexps tighter by anchoring at EOL, and make the new group "shy"
22204         for slightly decreased overhead.
22205
22206 2010-05-11  Eric Blake  <eblake@redhat.com>
22207
22208         maint.mk: gnulib doesn't guarantee NSIG
22209         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22210
22211 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22212
22213         test-pwrite.c: Remove unused variable declaration.
22214         * tests/test-pwrite.c (main): Remove read_buf declaration.
22215
22216         Remove useless test-pwrite.sh file.
22217         * tests/test-pwrite.sh: Delete file.
22218         * modules/pwrite-tests: Remove references.
22219         Reported by Bruno Haible.
22220
22221 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22222
22223         init.sh: fix a typo
22224         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22225
22226 2010-05-10  Jim Meyering  <meyering@redhat.com>
22227
22228         maint.mk: avoid using a temporary file in the always-defined-macros check
22229         * top/maint.mk (.re-defmac): Remove rule.
22230         (gl_trap_): Remove definition.
22231         (sc_prohibit_always-defined_macros): Rewrite not to create and
22232         depend on a temporary file.  Instead, depend on GNU grep's ability
22233         to read a list of regular expressions from stdin when given "-f -".
22234
22235 2010-05-09  Bruno Haible  <bruno@clisp.org>
22236
22237         Update to GNU gettext 0.18, part 1.
22238         * m4/gettext.m4: Update to GNU gettext 0.18.
22239         * m4/intl.m4: Likewise.
22240         * m4/po.m4: Likewise.
22241         * modules/gettext (Files): Add m4/fcntl-o.m4.
22242         (configure.ac): Require gettext infrastructure from version 0.18.
22243
22244 2010-05-09  Jim Meyering  <meyering@redhat.com>
22245
22246         init.sh: enable MALLOC_PERTURB_
22247         * tests/init.sh: Enable glibc's malloc-perturbing option.
22248
22249         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22250         With my recent change in init.sh from the two-line form:
22251             -#   : ${srcdir=.}
22252             -#   . "$srcdir/init.sh"; path_prepend_ .
22253             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22254         I noticed that using the one-line form would cause this test
22255         to fail with a false-positive, or to stop working altogether,
22256         depending on whether help-version changed or all the tests did.
22257         * top/maint.mk (_hv_regex): Remove this definition.
22258         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22259         (_hv_regex_strong): Use a stronger regex to check for conformance.
22260         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22261         Give a separate diagnostic for lack of conforming use.
22262
22263         maint.mk: prohibit definition of symbols defined by gnulib
22264         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22265         definition of symbols defined by gnulib.
22266
22267 2010-05-09  Bruno Haible  <bruno@clisp.org>
22268
22269         acl: Avoid test failure on Cygwin-hosted mingw.
22270         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22271
22272 2010-05-09  Bruno Haible  <bruno@clisp.org>
22273
22274         error: Use system's fcntl function.
22275         * lib/error.c (fcntl): Undefine.
22276
22277 2010-05-09  Jim Meyering  <meyering@redhat.com>
22278
22279         verify: adjust formatting to be more consistent
22280         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22281         argument-list '('s, and after one comma.
22282
22283 2010-05-09  Bruno Haible  <bruno@clisp.org>
22284
22285         error: More reliable output on mingw.
22286         * lib/error.c: Include <windows.h>.
22287         (is_open): New function.
22288         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22289         defined.
22290
22291 2010-05-09  Bruno Haible  <bruno@clisp.org>
22292
22293         vasnprintf: Fix syntax errors in libintl build on mingw.
22294         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22295         pad_ourselves and prec_ourselves after use.
22296
22297 2010-05-08  Bruno Haible  <bruno@clisp.org>
22298
22299         * lib/config.charset: Update comments for Cygwin 1.7.
22300         * lib/localcharset.c: Likewise.
22301
22302 2010-05-07  Jim Meyering  <meyering@redhat.com>
22303
22304         init.sh: improve comments
22305         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22306         . "${srcdir=.}/init.sh"; path_prepend_ .
22307         Add a note about path_prepend_ and the alternative of using
22308         TESTS_ENVIRONMENT.
22309
22310 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22311
22312         exclude: Unescape hashed patterns in wildcard mode.
22313         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22314         to the hash list.
22315         * tests/test-exclude8.sh: New test case.
22316         * modules/exclude-tests: Add new test.
22317
22318 2010-05-05  Eric Blake  <eblake@redhat.com>
22319
22320         verify: automate tests
22321         * modules/verify-tests: New module.
22322         * tests/test-verify.sh: New file.
22323         * tests/test-verify.c: Guard each negative test with a unique id.
22324         Also avoid warning about unused left hand of comma expressions.
22325
22326 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22327
22328         Further improvements to verify.h, suggested by Eric Blake.
22329         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22330         the GL_* versions, to avoid collision with OpenGL.
22331         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22332         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22333         than testing merely whether it's defined.
22334
22335         Modify verify.h to pacify gcc -Wredundant_decls.
22336         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22337         These use the prefix "GL_" since they're likely to be useful elsewhere.
22338         We may need to break them out into a different .h file.
22339         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22340         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22341         of verify_function__.
22342
22343 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22344
22345         Tests for module pwrite.
22346         * modules/pwrite-tests: New file.
22347         * tests/test-pwrite.sh: New file.
22348         * tests/test-pwrite.c: New file.
22349
22350         New module pwrite.
22351         * lib/unistd.in.h (pwrite): New declaration.
22352         * lib/pwrite.c: New file, from glibc with modifications.
22353         * m4/pwrite.m4: New file.
22354         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22355         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22356         REPLACE_PWRITE.
22357         * modules/pwrite: New file.
22358         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22359         REPLACE_PWRITE.
22360         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22361         * doc/posix-functions/pwrite.texi: Mention the new module.
22362
22363 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22364
22365         pread: Update documentation.
22366         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22367
22368 2010-05-04  Eric Blake  <eblake@redhat.com>
22369
22370         docs: update cygwin progress
22371         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22372         this bug.
22373         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22374         Added in cygwin 1.7.2.
22375         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22376         Likewise.
22377         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22378         Likewise.
22379         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22380         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22381         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22382         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22383         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22384         Mention nproc module.
22385         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22386         bug in cygwin 1.7.5 addition.
22387         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22388         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22389         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22390         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22391         1.7.5.
22392         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22393         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22394         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22395         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22396         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22397         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22398         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22399         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22400         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22401         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22402         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22403         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22404         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22405         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22406         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22407         Likewise.
22408         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22409         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22410         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22411         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22412         Likewise.
22413         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22414         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22415         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22416         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22417         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22418         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22419         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22420         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22421         Likewise.
22422         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22423         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22424         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22425         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22426         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22427         Likewise.
22428         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22429         Likewise.
22430         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22431         Likewise.
22432         * doc/glibc-functions/xdrrec_endofrecord.texi
22433         (xdrrec_endofrecord): Likewise.
22434         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22435         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22436         Likewise.
22437         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22438         Likewise.
22439
22440 2010-05-04  Jim Meyering  <meyering@redhat.com>
22441
22442         gendocs.sh: make its "-s FILE" option more useful
22443         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22444         $PACKAGE to reflect the probably-different basename of "FILE".
22445
22446 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22447
22448         bootstrap: don't ignore download_po_files failure
22449         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22450         failure.
22451
22452 2010-05-03  Jim Meyering  <meyering@redhat.com>
22453
22454         maint.mk: allow to pass options to gendocs.sh
22455         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22456         (gendocs_options_): New overridable variable.
22457
22458         gnu-web-doc-update: don't ignore configure or build failure
22459         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22460
22461         announce-gen: backslash-escape '@'s in --help output
22462         * build-aux/announce-gen: Fix syntax errors.
22463
22464         maint.mk, announce-gen: allow project-specific announcement mail headers
22465         * top/maint.mk (translation_project_): Define default.
22466         (announcement_Cc_, announcement_mail_headers_): Likewise.
22467         (announcement): Invoke announce-gen with new --mail-headers option.
22468         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22469
22470         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22471         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22472         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22473         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22474         line in the "err2" output file when running "make check" in verbose
22475         mode (i.e., with set -x enabled).
22476
22477 2010-05-03  Bruno Haible  <bruno@clisp.org>
22478
22479         wctob: Fix for weird platforms.
22480         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22481         argument value.
22482
22483 2010-05-03  Jim Meyering  <meyering@redhat.com>
22484
22485         maint.mk: prohibit unwarranted use of <strings.h>
22486         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22487         strings.h in a file that does not also use strcasecmp, strncasecmp,
22488         ffs or ffsll.
22489
22490         maint.mk: remove obsolete comments
22491         * top/maint.mk: Remove stale, commented-out rules.
22492
22493 2010-05-02  Bruno Haible  <bruno@clisp.org>
22494
22495         wcwidth: Declare also when it's aliased.
22496         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22497         macro.
22498
22499 2010-05-02  Bruno Haible  <bruno@clisp.org>
22500
22501         Fix regression from 2010-04-25.
22502         * gnulib-tool (func_modules_transitive_closure): Check the status of
22503         all modules, not only of the tests that are of the form foo-tests where
22504         foo is a module.
22505
22506 2010-05-02  Bruno Haible  <bruno@clisp.org>
22507
22508         wctob: Work around nasty Cygwin 1.7.2 bug.
22509         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22510         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22511
22512 2010-05-01  Bruno Haible  <bruno@clisp.org>
22513
22514         fpurge: Sharper test.
22515         * tests/test-fpurge.c (main): Add one more ftell check.
22516         * modules/fpurge-tests (Depends-on): Add ftell.
22517         Suggested by Eric Blake.
22518
22519 2010-05-01  Bruno Haible  <bruno@clisp.org>
22520
22521         ftello: Another test.
22522         * tests/test-ftello3.c: New file.
22523         * modules/ftello-tests (Files): Add it.
22524         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22525         MOSTLYCLEANFILES.
22526
22527         ftell: Another test.
22528         * tests/test-ftell3.c: New file.
22529         * modules/ftell-tests (Files): Add it.
22530         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22531         MOSTLYCLEANFILES.
22532
22533 2010-05-01  Bruno Haible  <bruno@clisp.org>
22534
22535         ftell, ftello: Work around Solaris bug.
22536         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22537         * lib/ftello.c: Include stdio-impl.h.
22538         (ftello): On Solaris, when _IOWRT is set, compute the result without
22539         looking at _IOREAD.
22540         * modules/ftello (Files): Add lib/stdio-impl.h.
22541         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22542         * doc/posix-functions/ftello.texi: Likewise.
22543         Reported by Eric Blake.
22544
22545 2010-05-01  Bruno Haible  <bruno@clisp.org>
22546
22547         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22548         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22549         the _IOWRT flag is also set.
22550
22551 2010-05-01  Bruno Haible  <bruno@clisp.org>
22552
22553         Fix doc about a HP-UX stdio bug.
22554         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22555         * doc/posix-functions/ftello.texi: Likewise.
22556
22557 2010-05-01  Bruno Haible  <bruno@clisp.org>
22558
22559         lseek test: Fix failure on Solaris.
22560         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22561         output.
22562
22563 2010-04-30  Jim Meyering  <meyering@redhat.com>
22564
22565         bootstrap: don't ignore failure to generate po*/Makevars
22566         * build-aux/bootstrap (with_gettext): Don't ignore failure
22567         to create po/Makevars or runtime-po/Makevars.
22568
22569 2010-04-29  Eric Blake  <eblake@redhat.com>
22570
22571         headers: relax license to LGPLv2+
22572         * modules/fcntl-h (License): Relax license.
22573         * modules/getopt-posix (License): Likewise.
22574         * modules/locale (License): Likewise.
22575         * modules/math (License): Likewise.
22576         * modules/pty (License): Likewise.
22577         * modules/sched (License): Likewise.
22578         * modules/search (License): Likewise.
22579         * modules/spawn (License): Likewise.
22580         * modules/stdarg (License): Likewise.
22581         * modules/sysexits (License): Likewise.
22582
22583 2010-04-29  Jim Meyering  <meyering@redhat.com>
22584
22585         inttypes: relax license to LGPLv2+
22586         * modules/inttypes (License): Relax license.
22587
22588 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22589
22590         * top/maint.mk (indent): Run twice to produce idempotent results.
22591
22592 2010-04-28  Bruno Haible  <bruno@clisp.org>
22593
22594         getdate: Generate getdate.c in the source directory.
22595         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22596         MOSTLYCLEANFILES.
22597         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22598
22599 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22600
22601         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22602         is not declared as a const *; avoid warnings in that case.
22603
22604 2010-04-28  Eric Blake  <eblake@redhat.com>
22605
22606         canonicalize-lgpl: avoid compiler warning
22607         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22608         declaration' / 'extraneous semicolon' warning with some compilers.
22609         Reported by Andreas Gruenbacher.
22610
22611 2010-04-28  Jim Meyering  <meyering@redhat.com>
22612
22613         init.sh: ensure a more reliable exit status when exiting via trap
22614         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22615         Inspired by patches from Dmitry V. Levin.
22616         Also trap on signal 3 (SIGQUIT).
22617
22618 2010-04-27  Bruno Haible  <bruno@clisp.org>
22619
22620         Update doc about utimes().
22621         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22622         'utimens' module.
22623         Reported by Andreas Gruenbacher <agruen@suse.de>.
22624
22625 2010-04-27  Eric Blake  <eblake@redhat.com>
22626
22627         full-read, full-write: relax license
22628         * modules/full-read (License): Drop to LGPLv2+.
22629         * modules/full-write (License): Likewise.
22630         * modules/safe-read (License): Likewise.
22631         * modules/safe-write (License): Likewise.
22632
22633         pthread: mention library for linking
22634         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22635
22636 2010-04-27  Jim Meyering  <meyering@redhat.com>
22637
22638         maint.mk: fix a bug introduced in last change
22639         * top/maint.mk (gl_assured_headers_): Now that all names are on
22640         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22641         is not anchored to end of word, it should be adequate.
22642
22643         maint.mk: avoid side-effect in latest syntax-check
22644         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22645         to run commands via $(shell...), and hence to incur cost only when
22646         the new rule is actually run.
22647
22648         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22649         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22650         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22651         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22652         (gl_assured_headers_, az_, AZ_): Define.
22653         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22654
22655 2010-04-26  Jim Meyering  <jim@meyering.net>
22656             Bruno Haible  <bruno@clisp.org>
22657
22658         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22659         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22660         Prompted by an exchange with Gilles Espinasse.
22661
22662 2010-04-26  Jim Meyering  <meyering@redhat.com>
22663
22664         git-version-gen: aesthetic tweak
22665         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22666         so that the command remains on a single line.
22667
22668 2010-04-26  Eric Blake  <eblake@redhat.com>
22669
22670         git-version-gen: allow use on EBCDIC hosts
22671         * build-aux/git-version-gen (dirty): Use literal rather than tying
22672         ourselves to ascii.
22673         Reported by Steve Goetze.
22674
22675 2010-04-25  Bruno Haible  <bruno@clisp.org>
22676
22677         netdb: Add support for GNULIB_POSIXCHECK.
22678         * lib/netdb.in.h: Include warn-on-use.h.
22679         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22680         functions are used when GNULIB_POSIXCHECK is defined and the
22681         getaddrinfo module is not in use.
22682         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22683         freeaddrinfo, gai_strerror, getnameinfo are declared.
22684         * modules/netdb (Depends-on): Add warn-on-use.
22685         (Makefile.am): Include warn-on-use.h in netdb.h.
22686
22687 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22688
22689         build: avoid "make check" failure without .git/ directory
22690         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22691         there is no .git/ directory.
22692
22693 2010-04-25  Bruno Haible  <bruno@clisp.org>
22694
22695         ptsname: Fix misuse of ttyname_r.
22696         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22697         of errno.
22698
22699 2010-04-25  Bruno Haible  <bruno@clisp.org>
22700
22701         ttyname_r: Make it work on Solaris 10.
22702         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22703         if the system function has the POSIX declaration. Test whether the
22704         function fails if the buffer is less than 128 bytes large.
22705         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22706         system's ttyname_r function. Provide a reasonably large buffer.
22707         * modules/ttyname_r (Depends-on): Add extensions.
22708         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22709
22710 2010-04-25  Bruno Haible  <bruno@clisp.org>
22711
22712         Use the 'extensions' module for some more functions on Solaris.
22713         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22714         module.
22715         * doc/posix-functions/ctime_r.texi: Likewise.
22716         * doc/posix-functions/getgrgid_r.texi: Likewise.
22717         * doc/posix-functions/getgrnam_r.texi: Likewise.
22718         * doc/posix-functions/getpwnam_r.texi: Likewise.
22719         * doc/posix-functions/getpwuid_r.texi: Likewise.
22720         * doc/posix-functions/readdir_r.texi: Likewise.
22721         * doc/posix-functions/sigwait.texi: Likewise.
22722         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22723         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22724
22725 2010-04-25  Bruno Haible  <bruno@clisp.org>
22726
22727         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22728         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22729         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22730         * lib/ttyname_r.c: Include <limits.h>.
22731         (ttyname_r): Define using the system's ttyname_r function, if it exists
22732         and not on Solaris.
22733         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22734         set.
22735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22736         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22737         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22738         Reported by Simon Josefsson.
22739
22740 2010-04-25  Bruno Haible  <bruno@clisp.org>
22741
22742         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22743         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22744         * doc/posix-functions/ctime_r.texi: Likewise.
22745         * doc/posix-functions/getgrgid_r.texi: Likewise.
22746         * doc/posix-functions/getgrnam_r.texi: Likewise.
22747         * doc/posix-functions/getlogin_r.texi: Likewise.
22748         * doc/posix-functions/getpwnam_r.texi: Likewise.
22749         * doc/posix-functions/getpwuid_r.texi: Likewise.
22750         * doc/posix-functions/readdir_r.texi: Likewise.
22751         * doc/posix-functions/sigwait.texi: Likewise.
22752         * doc/posix-functions/ttyname_r.texi: Likewise.
22753         Reported by Simon Josefsson.
22754
22755 2010-04-25  Bruno Haible  <bruno@clisp.org>
22756
22757         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22758         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22759         also to --create-testdir.
22760         (func_acceptable): Don't consider the status of *-tests modules here.
22761         (func_modules_transitive_closure): Consider it here, before including a
22762         test module.
22763         (func_import, func_create_testdir): Set inc_all_direct_tests,
22764         inc_all_indirect_tests.
22765         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22766         --create-testdir and --create-megatestdir.
22767
22768 2010-04-25  Bruno Haible  <bruno@clisp.org>
22769
22770         gnulib-tool: Add --without-*-tests options.
22771         * gnulib-tool (func_usage): Document the --without-*-tests options.
22772         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22773         excl_unportable_tests): New variables.
22774         Fail if they are specified with --import or --update.
22775         (func_acceptable): Respect the excl_*_tests variables.
22776         (func_import): Set the excl_*_tests variables to empty.
22777
22778 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22779             Bruno Haible  <bruno@clisp.org>
22780
22781         Work around a MacOS X 10.4 bug with openpty.
22782         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22783         * tests/test-openpty.c (main): Close the master side explicitly.
22784
22785 2010-04-25  Bruno Haible  <bruno@clisp.org>
22786
22787         strnlen: Fix a C++ test error on MacOS X and Solaris.
22788         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22789         the function is not declared.
22790         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22791         Simon Josefsson.
22792
22793 2010-04-24  Bruno Haible  <bruno@clisp.org>
22794
22795         Avoid a gcc warning.
22796         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22797         of correct type for %08lx directive.
22798         Reported by Eric Blake.
22799
22800 2010-04-24  Bruno Haible  <bruno@clisp.org>
22801
22802         vasnprintf: Correct errno value in case of out-of-memory.
22803         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22804         or sprintf. Use the errno value from SNPRINTF or sprintf.
22805         Reported by Ian Beckwith <ianb@erislabs.net>.
22806
22807 2010-04-24  Bruno Haible  <bruno@clisp.org>
22808
22809         ansi-c++-opt: Find correct compiler when cross-compiling.
22810         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22811         AC_CHECK_PROGS.
22812         Reported by Simon Josefsson.
22813
22814 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22815
22816         vc-list-files: Add support for subversion
22817         * build-aux/vc-list-files: Use "svn list" to generate the list of
22818         files controlled by subversion.
22819
22820 2010-04-23  Jim Meyering  <meyering@redhat.com>
22821
22822         vc-list-files tests: convert to use init.sh
22823         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22824         path_prepend_.
22825         Use Exit, not exit.
22826         Use skip_ rather than open coding it.
22827         Remove trap set-up and compare definitions.
22828         * tests/test-vc-list-files-git.sh: Likewise.
22829         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22830
22831 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22832
22833         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22834         backup files.
22835
22836 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22837
22838         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22839
22840 2010-04-20  Eric Blake  <eblake@redhat.com>
22841
22842         tests: be robust to ignored SIGPIPE
22843         * tests/test-select-in.sh: Consume all output.
22844         * tests/test-lseek.sh: Check correct exit status, while avoiding
22845         EPIPE.
22846
22847 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22848             Bruno Haible  <bruno@clisp.org>
22849
22850         visibility: Don't use -fvisibility if it leads to a warning.
22851         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22852         yes, don't pretend that visibility works if it leads to a warning.
22853         Reported by Mike Gran <spk121@yahoo.com>.
22854
22855 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22856
22857         * build-aux/bootstrap: Use "git -h" for testing for supported options
22858         instead of "git --help".  The short-form option only shows a summary,
22859         and doesn't layout the full man page.  Grep for the full option name
22860         in the summary, too.
22861
22862 2010-04-19  Bruno Haible  <bruno@clisp.org>
22863
22864         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22866         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22867         mention of RELOCATABLE_STRIP.
22868         Reported by Sylvain Beucler <beuc@beuc.net>.
22869
22870 2010-04-19  Bruno Haible  <bruno@clisp.org>
22871
22872         * lib/diffseq.h: Fix typo in comment.
22873         Reported by Eric Blake.
22874
22875 2010-04-19  Bruno Haible  <bruno@clisp.org>
22876
22877         ioctl: Move autoconf macro to a .m4 file.
22878         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22879         * modules/ioctl (Files): Add it.
22880         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22881         Reported by Ian Beckwith <ianb@erislabs.net>.
22882
22883 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22884             Bruno Haible  <bruno@clisp.org>
22885
22886         diffseq: Accommodate use-case with abstract arrays.
22887         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22888         is not defined.
22889         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22890         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22891
22892 2010-04-18  Bruno Haible  <bruno@clisp.org>
22893
22894         * doc/posix-headers/stdbool.texi: More precise wording.
22895
22896 2010-04-17  Jim Meyering  <meyering@redhat.com>
22897
22898         maint.mk: use gnu-style indentation in an embedded perl script
22899         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22900         Rename variable: s/two/last_two_bytes/
22901
22902 2010-04-16  Eric Blake  <eblake@redhat.com>
22903
22904         test-stdbool: skip test that fails with Solaris CC
22905         * tests/test-stdbool.c (f): Skip test that causes compilation
22906         error under buggy C++ compiler.
22907         * lib/stdbool.in.h: Document the limitation.
22908         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22909
22910         setenv: allow compilation with C++
22911         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22912         register keyword.
22913
22914         stdint: allow test to pass with C++
22915         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22916
22917         getopt: allow compilation with C++
22918         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22919         struct.
22920         * lib/getopt.c (_getopt_internal_r): Use correct type.
22921         Reported by Dagobert Michelson, via Joel E. Denny.
22922
22923 2010-04-16  Bruno Haible  <bruno@clisp.org>
22924
22925         Override netdb.h always.
22926         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22927         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22928         Reported by Ludovic Courtès <ludo@gnu.org>.
22929
22930 2010-04-15  Bruno Haible  <bruno@clisp.org>
22931
22932         openpty: Fix mistake from 2010-03-21.
22933         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22934         Reported by Simon Josefsson.
22935
22936 2010-04-15  Eric Blake  <eblake@redhat.com>
22937
22938         test-forkpty: fix expected signature
22939         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22940         Reported by Simon Josefsson.
22941
22942 2010-04-15  Jim Meyering  <meyering@redhat.com>
22943
22944         maint.mk: texinfo_suffix_re_: correct the default regexp
22945         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22946
22947         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22948         make it configurable via texinfo_suffix_re_.
22949
22950 2010-04-14  Eric Blake  <eblake@redhat.com>
22951
22952         strtok_r: relax license to LGPLv2+
22953         * modules/strtok_r (License): Relax license.
22954         Reported by Matthias Bolte.
22955
22956 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22957
22958         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22959         version 1.4.4 by default instead of requiring the libgcrypt
22960         version used during build.  This makes it possible to use the
22961         application with older but still binary compatible libgcrypt
22962         versions.
22963
22964 2010-04-13  Eric Blake  <eblake@redhat.com>
22965
22966         getopt-gnu: match recent glibc fixes and posix ruling
22967         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22968         '+' handling, when requesting extensions.
22969         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22970         'W;' handling.
22971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22972         * doc/posix-functions/getopt.texi (getopt): Document this.
22973         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22974         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22975         Likewise.
22976
22977         getopt: merge bug fixes from glibc
22978         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22979         diagnostics.  Honor '+:' correctly.  Reject ';'.
22980
22981         getopt-posix: detect MacOS bug
22982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22983         optind when missing a required argument.
22984         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22985         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22986         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22987         Likewise.
22988
22989         getopt-posix: avoid spurious failure on Solaris
22990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22991         an indicator that setting optind=1 is sufficient for reset.
22992
22993         getopt-posix: avoid spurious failure on FreeBSD
22994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22995         in POSIX mode, since the m4 test uses it.
22996
22997         gnulib-tool: silence warning on BSD sh
22998         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22999
23000 2010-04-13  Jim Meyering  <meyering@redhat.com>
23001
23002         doc: users.txt: GNU patch now uses gnulib
23003         * users.txt: Add patch.
23004
23005 2010-04-12  Jim Meyering  <meyering@redhat.com>
23006
23007         maint.mk: generate more concise timing data for syntax-check rules
23008         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23009         " done" from each line that reports a syntax-check test duration.
23010
23011 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23012
23013         git-version-gen: use "git update-index..." rather than "git status"
23014         * build-aux/git-version-gen: Use git update-index --refresh, not
23015         "git status".  With some versions of git, "git status" would fail
23016         to update the index and result in an unwarranted "-dirty" suffix.
23017
23018 2010-04-11  Jim Meyering  <meyering@redhat.com>
23019
23020         openat: correct formatting (no semantic change)
23021         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23022         Suggested by Bruno Haible.
23023
23024 2010-04-11  Bruno Haible  <bruno@clisp.org>
23025
23026         Stricter declaration checking in testdirs.
23027         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23028         If for_tests is true, augment AM_CPPFLAGS to define
23029         GNULIB_STRICT_CHECKING.
23030         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23031         GNULIB_STRICT_CHECKING is defined, verify that the function is
23032         declared.
23033
23034 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23035             Bruno Haible  <bruno@clisp.org>
23036
23037         libunistring: Improve configure output.
23038         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23039         Don't say "consider installing GNU libunistring" when checking again
23040         with libiconv.
23041
23042 2010-04-11  Bruno Haible  <bruno@clisp.org>
23043
23044         libunistring: Correct value of $LTLIBUNISTRING.
23045         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23046         correct the value of $LTLIBUNISTRING.
23047
23048 2010-04-11  Bruno Haible  <bruno@clisp.org>
23049
23050         havelib: Add static libraries to LIBS in the right order.
23051         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23052         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23053
23054 2010-04-11  Bruno Haible  <bruno@clisp.org>
23055
23056         libunistring: Detect libunistring also when it depends on libiconv.
23057         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23058         the second AC_LIB_HAVE_LINKFLAGS invocation.
23059
23060 2010-04-11  James Youngman  <jay@gnu.org>
23061
23062         close-stream: declare local scalars to be "const"
23063         * lib/close-stream.c (close_stream): Make boolean variables const
23064         to document the fact that we set but do not change them.
23065
23066 2010-04-11  Bruno Haible  <bruno@clisp.org>
23067
23068         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23069
23070 2010-04-11  Jim Meyering  <meyering@redhat.com>
23071
23072         maint.mk: don't include dist-check.mk
23073         * top/maint.mk: Remove bogus include directive.
23074
23075         maint.mk: improve empty-line-at-EOF check
23076         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23077         solution, rather than tail+Perl-based one.  The latter would read
23078         a few kilobytes from the end of each file, and did not handle empty
23079         files properly.
23080
23081         maint.mk: print the elapsed time for each syntax-check rule
23082         * top/maint.mk (sc_m_rules_): Save start time in a file.
23083         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23084         (local-check): Interpose the .z rules
23085
23086 2010-04-11  Jim Meyering  <meyering@redhat.com>
23087
23088         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23089         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23090         empty file with one that ends in an empty line.
23091
23092 2010-04-10  Bruno Haible  <bruno@clisp.org>
23093
23094         mkdir: Make it work on mingw64.
23095         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23096         * lib/mkdir.c: Update comment.
23097         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23098
23099 2010-04-10  Bruno Haible  <bruno@clisp.org>
23100
23101         Don't override improved macro from newer autoconf.
23102         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23103         autoconf >= 2.62.
23104         Reported by Joel E. Denny <jdenny@clemson.edu>.
23105
23106 2010-04-10  Jim Meyering  <meyering@redhat.com>
23107
23108         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23109         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23110
23111         maint.mk: correct a diagnostic
23112         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23113         in diagnostic; now use $prohibit.
23114
23115 2010-04-10  Bruno Haible  <address@hidden>
23116
23117         fchownat: Fix a C++ test error on Solaris 8.
23118         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23119         the function does not exist.
23120
23121 2010-04-10  Bruno Haible  <bruno@clisp.org>
23122
23123         vasnprintf: Add more tests.
23124         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23125         (test_function): Test converting an invalid wide string.
23126
23127         vasnprintf: Correct handling of unconvertible wide string arguments.
23128         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23129         VASNPRINTF.
23130         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23131         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23132         smaller than the expected maximum need for the directive. Set errno to
23133         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23134         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23136         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23137         * modules/vasnprintf (Files): Add m4/printf.m4.
23138         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23139
23140 2010-04-10  Bruno Haible  <bruno@clisp.org>
23141
23142         vasnprintf: Fix crash in %ls directive.
23143         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23144         string is passed as argument to %ls, with no precision and no width.
23145         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23146
23147 2010-04-10  Bruno Haible  <bruno@clisp.org>
23148
23149         vasnprintf: Fix multiple test failures on mingw.
23150         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23151         _snprintf, or snwprintf, not _snwprintf.
23152
23153 2010-04-10  Bruno Haible  <bruno@clisp.org>
23154
23155         write: Fix a C++ test error on mingw.
23156         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23157
23158 2010-04-10  Bruno Haible  <bruno@clisp.org>
23159
23160         vasnprintf test: Reduce code duplication.
23161         * tests/test-vasnprintf.c (test_function): New function, extracted from
23162         test_vasnprintf.
23163         (test_vasnprintf, test_asnprintf): Invoke it.
23164
23165 2010-04-10  Bruno Haible  <bruno@clisp.org>
23166
23167         strnlen: Fix warning in C++ mode on MacOS X.
23168         * lib/string.in.h (strnlen): Use the modern idiom.
23169         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23170         defining strnlen as a macro already in <config.h>.
23171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23172         REPLACE_STRNLEN.
23173         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23174         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23175
23176 2010-04-08  James Youngman  <jay@gnu.org>
23177
23178         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23179         the example.
23180
23181 2010-04-09  Jim Meyering  <meyering@redhat.com>
23182
23183         maint.mk: print better diagnostic when there is no $(_hv_file)
23184         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23185         announce that when $(_hv_file) (aka help-version) does not exist.
23186
23187         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23188         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23189         not try to interpret its random input bytes.  Jarno Rajahalme reported
23190         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23191         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23192         (mktempd_): Likewise, just in case.
23193
23194         ftruncate: add two years to projected module removal date: 2012
23195         * m4/ftruncate.m4: Adjust comments.
23196
23197         ftruncate: mark module as obsolete; even MinGW provides it, now
23198         * modules/ftruncate (Status): Obsolete.
23199         (Notice): Say that.
23200         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23202
23203 2010-04-08  Bruno Haible  <bruno@clisp.org>
23204
23205         Fix side effects from tests-related modules.
23206         * modules/dprintf-posix (Comment): New section.
23207         * modules/fprintf-posix (Comment): Likewise.
23208         * modules/obstack-printf-posix (Comment): Likewise.
23209         * modules/printf-posix (Comment): Likewise.
23210         * modules/snprintf-posix (Comment): Likewise.
23211         * modules/sprintf-posix (Comment): Likewise.
23212         * modules/vasnprintf-posix (Comment): Likewise.
23213         * modules/vasprintf-posix (Comment): Likewise.
23214         * modules/vdprintf-posix (Comment): Likewise.
23215         * modules/vfprintf-posix (Comment): Likewise.
23216         * modules/vprintf-posix (Comment): Likewise.
23217         * modules/vsnprintf-posix (Comment): Likewise.
23218         * modules/vsprintf-posix (Comment): Likewise.
23219         * modules/xprintf-posix (Comment): Likewise.
23220         * modules/xvasprintf-posix (Comment): Likewise.
23221         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23222         * modules/floorf-tests (Depends-on): Likewise.
23223         * modules/round-tests (Depends-on): Likewise.
23224         * modules/roundf-tests (Depends-on): Likewise.
23225         * modules/trunc-tests (Depends-on): Likewise.
23226         * modules/truncf-tests (Depends-on): Likewise.
23227         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23228         'fprintf-posix' module is not present.
23229         * tests/test-floorf2.c (check): Likewise.
23230         * tests/test-trunc2.c (check): Likewise.
23231         * tests/test-truncf2.c (check): Likewise.
23232         * tests/test-round2.c (equal): Likewise.
23233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23234
23235 2010-04-07  Karl Berry  <karl@gnu.org>
23236
23237         * config/srclist.txt,
23238         * config/srclistvars.sh,
23239         * config/srclist-update: doc fixes.
23240
23241 2010-04-07  Jim Meyering  <meyering@redhat.com>
23242
23243         maint.mk: add a PATH crosschecking syntax-check rule
23244         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23245         Useful if you use a test like the one in help-version (coreutils,
23246         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23247         printed by prog --version.
23248
23249 2010-04-06  Bruno Haible  <bruno@clisp.org>
23250
23251         Fix link error on mingw.
23252         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23253         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23254
23255 2010-04-06  Bruno Haible  <bruno@clisp.org>
23256
23257         Assume rmdir exists.
23258         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23259
23260 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23261
23262         doc: update users.txt
23263         * users.txt: Add gcal.
23264
23265 2010-04-06  Jim Meyering  <meyering@redhat.com>
23266
23267         init.sh: simply unset TMPDIR rather than risking env -i
23268         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23269         although it probably works fine on all Unix-based systems, some
23270         systems (Cygwin?) cannot tolerate a totally cleared environment.
23271         Suggestion from Eric Blake.
23272
23273 2010-04-06  Jim Meyering  <meyering@redhat.com>
23274
23275         init.sh: portability fix: use env's POSIX-specified -i option not -u
23276         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23277         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23278
23279 2010-04-05  Bruno Haible  <bruno@clisp.org>
23280
23281         btowc: Work around Cygwin 1.7.2 bug.
23282         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23283         does not map NUL to 0.
23284         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23285
23286 2010-04-05  Bruno Haible  <bruno@clisp.org>
23287
23288         Make the multithread modules work on Cygwin 1.7.2.
23289         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23290         imported symbols can be declared weak, so that it returns "no" on
23291         Cygwin 1.7.2.
23292
23293 2010-04-05  Bruno Haible  <bruno@clisp.org>
23294
23295         Use the module 'strncat'.
23296         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23297
23298         Tests for module 'strncat'.
23299         * modules/strncat-tests: New file.
23300         * tests/test-strncat.c: New file.
23301
23302         New module 'strncat'.
23303         * lib/string.in.h (strncat): New declaration.
23304         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23305         * m4/strncat.m4: New file, based on m4/memchr.m4.
23306         * modules/strncat: New file.
23307         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23308         is declared.
23309         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23310         REPLACE_STRNCAT.
23311         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23312         REPLACE_STRNCAT.
23313         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23314         module.
23315         * tests/test-string-c++.cc: Check signature of strncat.
23316
23317 2010-04-05  Jim Meyering  <meyering@redhat.com>
23318
23319         xstrtoumax-tests: convert to use init.sh
23320         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23321         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23322         Use Exit, not exit.
23323         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23324
23325         xstrtoimax-tests: convert to use init.sh
23326         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23327         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23328         Use Exit, not exit.
23329         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23330
23331 2010-04-05  Bruno Haible  <bruno@clisp.org>
23332
23333         sys_socket: Avoid #define replacements in C++ mode.
23334         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23335         warning to the function if possible, rather than #defining the symbol
23336         to a dysfunctional alias.
23337
23338 2010-04-05  Bruno Haible  <bruno@clisp.org>
23339
23340         fseeko: Fix C++ test error on mingw.
23341         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23342         gl_FUNC_FSEEKO.
23343         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23344         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23345         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23346         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23347
23348 2010-04-05  Bruno Haible  <bruno@clisp.org>
23349
23350         duplocale: Improve test output.
23351         * tests/test-duplocale.c (main): Print reason for skipped test.
23352
23353 2010-04-05  Bruno Haible  <bruno@clisp.org>
23354
23355         Assume rmdir exists.
23356         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23357         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23358
23359 2010-04-05  Bruno Haible  <bruno@clisp.org>
23360
23361         Fix link error on Solaris 8 with cc.
23362         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23363
23364 2010-04-05  Bruno Haible  <bruno@clisp.org>
23365
23366         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23367         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23368
23369 2010-04-05  Bruno Haible  <bruno@clisp.org>
23370
23371         vasprintf: Update documentation.
23372         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23373
23374 2010-04-05  Bruno Haible  <bruno@clisp.org>
23375
23376         ptsname: Improve test.
23377         * tests/test-ptsname.c (main): Also try the various master names of BSD
23378         systems.
23379
23380 2010-04-05  Bruno Haible  <bruno@clisp.org>
23381
23382         memchr: Avoid a possible C++ test error.
23383         * lib/string.in.h (memchr): Provide declaration if function is missing.
23384         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23385         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23387         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23388
23389 2010-04-05  Bruno Haible  <bruno@clisp.org>
23390
23391         strtok_r: Improve idiom.
23392         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23393         AC_LIBOBJ is used.
23394
23395 2010-04-05  Bruno Haible  <bruno@clisp.org>
23396
23397         strdup: Improve idiom.
23398         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23399         AC_LIBOBJ is used.
23400         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23401         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23402         when AC_LIBOBJ is used.
23403
23404 2010-04-05  Bruno Haible  <bruno@clisp.org>
23405
23406         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23407         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23408         don't set REPLACE_MBSINIT to 1.
23409         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23410         don't set REPLACE_MBRTOWC to 1.
23411         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23412         exist, don't set REPLACE_MBSRTOWCS to 1.
23413         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23414         exist, don't set REPLACE_MBSNRTOWCS to 1.
23415         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23416         don't set REPLACE_WCRTOMB to 1.
23417         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23418         exist, don't set REPLACE_WCSRTOMBS to 1.
23419         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23420         exist, don't set REPLACE_WCSNRTOMBS to 1.
23421
23422 2010-04-05  Bruno Haible  <bruno@clisp.org>
23423
23424         ldexpl: Improve idiom.
23425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23426         make sure to set HAVE_DECL_LDEXPL to 0.
23427
23428 2010-04-05  Jim Meyering  <meyering@redhat.com>
23429
23430         xstrtol-tests: convert to use init.sh
23431         * modules/xstrtol-tests (Files): Add tests/init.sh.
23432         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23433         Use Exit, not exit.
23434         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23435
23436         atexit-tests: convert to use init.sh
23437         * modules/atexit-tests (Files): Add tests/init.sh.
23438         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23439         Use Exit, not exit.
23440         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23441
23442         init.sh: fix typo
23443         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23444
23445         init.sh: make it easier for a test script to write to the tty, ...
23446         when using automake's parallel-tests mode.
23447         * tests/init.sh (stderr_fileno_): Define overridable variable.
23448         (warn_): New function, to use it.
23449         (fail_, skip_, framework_failure_): Use warn_.
23450
23451 2010-04-04  Bruno Haible  <bruno@clisp.org>
23452
23453         btowc: Avoid warning.
23454         * lib/btowc.c: Include <stdlib.h>.
23455         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23456
23457 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23458             Bruno Haible  <bruno@clisp.org>
23459
23460         wchar: Port to NetBSD 1.5.
23461         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23462         * lib/wctype.in.h (WEOF): Likewise.
23463
23464 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23465             Bruno Haible  <bruno@clisp.org>
23466
23467         Port extended stdio to NetBSD 1.5.
23468         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23469         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23470         older.
23471
23472 2010-04-04  Bruno Haible  <bruno@clisp.org>
23473
23474         string: Remove unused substitution.
23475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23476         HAVE_DECL_STRERROR.
23477         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23478
23479 2010-04-04  Bruno Haible  <bruno@clisp.org>
23480
23481         strtod: Avoid a possible C++ test error.
23482         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23483         set REPLACE_STRTOD.
23484
23485 2010-04-04  Bruno Haible  <bruno@clisp.org>
23486
23487         strerror: Update documentation.
23488         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23489
23490 2010-04-04  Bruno Haible  <bruno@clisp.org>
23491
23492         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23493         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23494         _GL_CXXALIAS_SYS_CAST.
23495
23496 2010-04-04  Bruno Haible  <bruno@clisp.org>
23497
23498         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23499         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23500         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23501         REPLACE_FREXPL to 1.
23502         * doc/posix-functions/frexpl.texi: Update documentation.
23503
23504 2010-04-04  Bruno Haible  <bruno@clisp.org>
23505
23506         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23507         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23508
23509 2010-04-04  Bruno Haible  <bruno@clisp.org>
23510
23511         Implement nanosleep for native Windows.
23512         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23513
23514 2010-04-04  Bruno Haible  <bruno@clisp.org>
23515
23516         math: Fix some C++ test errors on Solaris 8.
23517         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23518
23519 2010-04-04  Bruno Haible  <bruno@clisp.org>
23520
23521         math: Fix some C++ test errors on Cygwin.
23522         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23523         truncl): Provide declaration if the system does not have it.
23524         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23525         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23526         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23527         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23528         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23529         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23530         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23531         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23532         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23533         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23534         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23535         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23536         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23537         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23538         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23539         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23541         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23542         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23543         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23544         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23545         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23546
23547 2010-04-04  Bruno Haible  <bruno@clisp.org>
23548
23549         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23550         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23551         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23552         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23553         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23554         * m4/isinf.m4 (gl_ISINF): Likewise.
23555         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23556
23557 2010-04-04  Bruno Haible  <bruno@clisp.org>
23558
23559         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23560         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23561
23562 2010-04-04  Bruno Haible  <bruno@clisp.org>
23563
23564         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23565         * modules/tmpfile (configure.ac): Update.
23566
23567         tmpfile: Fix C++ test error on mingw.
23568         * lib/stdio.in.h (tmpfile): New declaration.
23569         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23570         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23571         * modules/tmpfile (Depends-on): Add stdio.
23572         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23573         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23574         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23575         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23576         REPLACE_TMPFILE.
23577         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23578
23579 2010-04-04  Bruno Haible  <bruno@clisp.org>
23580
23581         ioctl: Fix C++ test error on mingw.
23582         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23583         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23584         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23585
23586 2010-04-03  Bruno Haible  <bruno@clisp.org>
23587
23588         wcwidth: Fix C++ test error on mingw.
23589         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23591         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23592
23593 2010-04-03  Bruno Haible  <bruno@clisp.org>
23594
23595         nanosleep: Fix C++ test error on mingw.
23596         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23597         * lib/time.in.h (nanosleep): Use modern idiom.
23598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23599         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23600         REPLACE_NANOSLEEP to 1.
23601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23602         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23603
23604 2010-04-03  Bruno Haible  <bruno@clisp.org>
23605
23606         strptime: Fix C++ test error on mingw.
23607         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23608         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23609         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23610         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23611         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23612         not REPLACE_STRPTIME.
23613         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23614         REPLACE_STRPTIME.
23615
23616 2010-04-03  Bruno Haible  <bruno@clisp.org>
23617
23618         timegm: Fix C++ test error on mingw.
23619         * lib/time.in.h (timegm): Use modern idiom.
23620         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23621         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23622         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23623         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23624
23625 2010-04-03  Bruno Haible  <bruno@clisp.org>
23626
23627         timegm: Assume declaration if function exists.
23628         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23629         if it exists. Don't clobber ac_cv_func_timegm.
23630
23631 2010-04-03  Bruno Haible  <bruno@clisp.org>
23632
23633         time_r: Fix C++ test error on mingw.
23634         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23635         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23636         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23637         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23638         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23639
23640 2010-04-03  Bruno Haible  <bruno@clisp.org>
23641
23642         time_r: Minor updates.
23643         * modules/time_r (Description): Mention the provided functions.
23644         * lib/time_r.c: Don't include <string.h>.
23645         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23646         * doc/posix-functions/localtime_r.texi: Likewise.
23647
23648 2010-04-03  Bruno Haible  <bruno@clisp.org>
23649
23650         time: Fix regression introduced on 2010-03-08.
23651         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23652         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23653
23654 2010-04-03  Jim Meyering  <meyering@redhat.com>
23655
23656         maint.mk: don't silently disable project-specific syntax-check rules
23657         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23658         that they need to convert their project-specific syntax-check rules
23659         to use the new _sc_search_regexp.
23660
23661 2010-04-03  Bruno Haible  <bruno@clisp.org>
23662
23663         fchdir: Fix regression introduced on 2010-03-08.
23664         * lib/unistd.in.h (fchdir): Fix declaration.
23665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23667         REPLACE_FCHDIR.
23668         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23669         REPLACE_FCHDIR.
23670
23671 2010-04-03  Bruno Haible  <bruno@clisp.org>
23672
23673         getpagesize: Fix C++ test error on mingw.
23674         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23675         system does not declare the function.
23676         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23677         declared.
23678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23679         HAVE_DECL_GETPAGESIZE.
23680         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23681
23682 2010-04-03  Bruno Haible  <bruno@clisp.org>
23683
23684         stdio: Make C++ tests work on mingw.
23685         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23686         does not declare the function.
23687
23688 2010-04-03  Bruno Haible  <bruno@clisp.org>
23689
23690         ftello: Fix C++ test error on mingw.
23691         * lib/stdio.in.h (ftello): Use modern idiom.
23692         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23693         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23694         is missing and that it needs to be replaced.
23695         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23697         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23698
23699 2010-04-03  Bruno Haible  <bruno@clisp.org>
23700
23701         fseeko: Fix C++ test error on mingw.
23702         * lib/stdio.in.h (fseeko): Use modern idiom.
23703         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23705         is missing and that it needs to be replaced.
23706         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23708         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23709
23710 2010-04-03  Bruno Haible  <bruno@clisp.org>
23711
23712         mkstemp: Fix C++ test error on mingw.
23713         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23714         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23715         function is missing and that it needs to be replaced.
23716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23717         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23718
23719 2010-04-03  Bruno Haible  <bruno@clisp.org>
23720
23721         stpncpy: Fix C++ test error on mingw.
23722         * lib/string.in.h (stpncpy): Use modern idiom.
23723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23724         function is missing and that it needs to be replaced.
23725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23726         REPLACE_STPNCPY.
23727         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23728
23729 2010-04-03  Bruno Haible  <bruno@clisp.org>
23730
23731         sys_stat: Fix C++ test error on mingw.
23732         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23733         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23734
23735 2010-04-03  Bruno Haible  <bruno@clisp.org>
23736
23737         pty: Update doc.
23738         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23739
23740 2010-04-03  Bruno Haible  <bruno@clisp.org>
23741
23742         unistd: Fix C++ test error on mingw.
23743         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23744
23745 2010-04-03  Bruno Haible  <bruno@clisp.org>
23746
23747         Update doc regarding mingw.
23748         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23749         * doc/glibc-functions/login_tty.texi: Likewise.
23750         * doc/glibc-functions/forkpty.texi: Likewise.
23751
23752 2010-04-03  Bruno Haible  <bruno@clisp.org>
23753
23754         stdlib: Avoid compilation failure of c-strtold on mingw.
23755         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23756
23757 2010-04-03  Bruno Haible  <bruno@clisp.org>
23758
23759         locale: Make C++ tests work on Cygwin and mingw.
23760         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23761         cannot provide the function.
23762         Reported by Simon Josefsson.
23763
23764 2010-04-03  Bruno Haible  <bruno@clisp.org>
23765
23766         localename: Port to MacOS X 10.6.
23767         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23768         memory layout of the locales in MacOS X 10.6 as well.
23769         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23770
23771 2010-04-02  Bruno Haible  <bruno@clisp.org>
23772
23773         gnulib-tool: Ensure that long-running tests are executed last.
23774         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23775         running tests after the one for the other tests.
23776
23777 2010-04-02  Bruno Haible  <bruno@clisp.org>
23778
23779         gnulib-tool: Ensure the tests in the main directory are executed first.
23780         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23781         start with the current directory.
23782
23783 2010-04-02  Bruno Haible  <bruno@clisp.org>
23784
23785         Tests for module 'havelib', moved here from GNU gettext.
23786         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23787         modifications.
23788         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23789         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23790         with modifications.
23791         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23792         modifications.
23793         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23794         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23795         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23796         with modifications.
23797         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23798         with modifications.
23799         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23800         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23801         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23802         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23803         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23804         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23805         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23806         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23807         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23808         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23809         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23810         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23811         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23812         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23813         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23814         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23815         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23816         with modifications.
23817         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23818         with modifications.
23819         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23820         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23821         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23822         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23823         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23824         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23825         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23826         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23827         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23828         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23829         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23830         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23831         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23832         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23833         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23834         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23835         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23836         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23837         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23838         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23839         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23840         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23841         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23842         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23843         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23844         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23845         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23846         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23847         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23848         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23849         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23850         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23851         * tests/havelib/rpathx/rpathx.c: New file, from
23852         gettext/autoconf-lib-link.
23853         * tests/havelib/rpathx/Makefile.am: New file, from
23854         gettext/autoconf-lib-link.
23855         * tests/havelib/rpathx/configure.ac: New file, from
23856         gettext/autoconf-lib-link with modifications.
23857         * tests/havelib/rpathy/rpathy.c: New file, from
23858         gettext/autoconf-lib-link.
23859         * tests/havelib/rpathy/Makefile.am: New file, from
23860         gettext/autoconf-lib-link.
23861         * tests/havelib/rpathy/configure.ac: New file, from
23862         gettext/autoconf-lib-link with modifications.
23863         * tests/havelib/rpathz/rpathz.c: New file, from
23864         gettext/autoconf-lib-link.
23865         * tests/havelib/rpathz/Makefile.am: New file, from
23866         gettext/autoconf-lib-link.
23867         * tests/havelib/rpathz/configure.ac: New file, from
23868         gettext/autoconf-lib-link with modifications.
23869         * tests/havelib/rpathlx/usex.c: New file, from
23870         gettext/autoconf-lib-link.
23871         * tests/havelib/rpathlx/Makefile.am: New file, from
23872         gettext/autoconf-lib-link.
23873         * tests/havelib/rpathlx/configure.ac: New file, from
23874         gettext/autoconf-lib-link with modifications.
23875         * tests/havelib/rpathly/usey.c: New file, from
23876         gettext/autoconf-lib-link.
23877         * tests/havelib/rpathly/Makefile.am: New file, from
23878         gettext/autoconf-lib-link.
23879         * tests/havelib/rpathly/configure.ac: New file, from
23880         gettext/autoconf-lib-link with modifications.
23881         * tests/havelib/rpathlz/usez.c: New file, from
23882         gettext/autoconf-lib-link.
23883         * tests/havelib/rpathlz/Makefile.am: New file, from
23884         gettext/autoconf-lib-link.
23885         * tests/havelib/rpathlz/configure.ac: New file, from
23886         gettext/autoconf-lib-link with modifications.
23887         * tests/havelib/rpathlyx/usey.c: New file, from
23888         gettext/autoconf-lib-link.
23889         * tests/havelib/rpathlyx/Makefile.am: New file, from
23890         gettext/autoconf-lib-link.
23891         * tests/havelib/rpathlyx/configure.ac: New file, from
23892         gettext/autoconf-lib-link with modifications.
23893         * tests/havelib/rpathlzyx/usez.c: New file, from
23894         gettext/autoconf-lib-link.
23895         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23896         gettext/autoconf-lib-link.
23897         * tests/havelib/rpathlzyx/configure.ac: New file, from
23898         gettext/autoconf-lib-link with modifications.
23899         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23900         with modifications.
23901
23902 2010-04-02  Bruno Haible  <bruno@clisp.org>
23903
23904         gnulib-tool: Create distributed built sources also for the tests.
23905         * gnulib-tool (func_create_testdir): Also generate distributed built
23906         sources in the tests directory.
23907
23908 2010-04-02  Bruno Haible  <bruno@clisp.org>
23909
23910         gnulib-tool: Obey user's environment variables.
23911         * gnulib-tool (func_create_testdir): When creating built sources,
23912         respect the environment variables for autoconf, automake, etc. given by
23913         the user.
23914
23915 2010-04-02  Bruno Haible  <bruno@clisp.org>
23916
23917         gnulib-tool: Provide the value of --m4-base to modules.
23918         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23919         of gl_m4_base.
23920
23921 2010-04-02  Eric Blake  <eblake@redhat.com>
23922
23923         maint.mk: fix some fallout
23924         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23925         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23926
23927 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23928
23929         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23930         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23931         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23932         (sc_cast_of_x_alloc_return_value): Likewise.
23933         (sc_cast_of_alloca_return_value): Likewise.
23934         (sc_space_tab): Likewise.
23935         (sc_prohibit_atoi_atof): Likewise.
23936         (sc_prohibit_magic_number_exit): Likewise.
23937         (sc_error_exit_success): Likewise.
23938         (sc_file_system): Likewise.
23939         (sc_prohibit_have_config_h): Likewise.
23940         (sc_require_config_h): Likewise.
23941         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23942         (sc_obsolete_symbols): Likewise.
23943         (sc_changelog): Likewise.
23944         (sc_program_name): Likewise.
23945         (sc_the_the): Likewise.
23946         (sc_trailing_blank): Likewise.
23947         (sc_two_space_separator_in_usage): Likewise.
23948         (sc_useless_cpp_parens): Likewise.
23949         (sc_GPL_version): Likewise.
23950         (sc_GFDL_version): Likewise.
23951         (sc_texinfo_acronym): Likewise.
23952         (sc_prohibit_cvs_keyword): Likewise.
23953         (sc_prohibit_stat_st_blocks): Likewise.
23954         (sc_prohibit_S_IS_definition): Likewise.
23955         (sc_redundant_const): Likewise.
23956         (sc_makefile_TAB_only_indentation): Likewise.
23957         (sc_m4_quote_check): Likewise.
23958         (sc_makefile_path_separator_check): Likewise.
23959         (sc_copyright_check): Likewise.
23960         (sc_Wundef_boolean): Likewise.
23961         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23962
23963         maint.mk: match 0 or more whitespace-before-function-call '('
23964         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23965         that have zero or two-and-more spaces between the function name
23966         and the open parenthesis.
23967         (sc_error_message_warn_fatal): Likewise.
23968         (sc_error_message_uppercase): Likewise.
23969         (sc_error_message_period): Likewise.
23970
23971 2010-03-31  Eric Blake  <eblake@redhat.com>
23972
23973         maint.mk: check for [ as well as test
23974         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23975         Based on a libvirt report by Matthias Bolte.
23976
23977         gnumakefile: don't squelch _version output
23978         * top/GNUmakefile (_version): Create one-shot dependency rather
23979         than using $(shell) when version must be regenerated.
23980         (_autoreconf): Run verbosely, by default.
23981
23982         sys_time: avoid compiler warnings
23983         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23984         unconditional, fixing regression from 2010-03-29.
23985         Reported by Simon Josefsson.
23986
23987 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23988
23989         maint.mk: s/_header_without_use/_sc_header_without_use/
23990         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23991         (sc_prohibit_assert_without_use): Use the new name.
23992         (sc_prohibit_close_stream_without_use): Likewise.
23993         (sc_prohibit_getopt_without_use): Likewise.
23994         (sc_prohibit_quotearg_without_use): Likewise.
23995         (sc_prohibit_quote_without_use): Likewise.
23996         (sc_prohibit_long_options_without_use): Likewise.
23997         (sc_prohibit_inttostr_without_use): Likewise.
23998         (sc_prohibit_ignore_value_without_use): Likewise.
23999         (sc_prohibit_error_without_use): Likewise.
24000         (sc_prohibit_xalloc_without_use): Likewise.
24001         (sc_prohibit_hash_without_use): Likewise.
24002         (sc_prohibit_hash_pjw_without_use): Likewise.
24003         (sc_prohibit_safe_read_without_use): Likewise.
24004         (sc_prohibit_argmatch_without_use): Likewise.
24005         (sc_prohibit_canonicalize_without_use): Likewise.
24006         (sc_prohibit_root_dev_ino_without_use): Likewise.
24007         (sc_prohibit_openat_without_use): Likewise.
24008         (sc_prohibit_c_ctype_without_use): Likewise.
24009         (sc_prohibit_signal_without_use): Likewise.
24010         (sc_prohibit_intprops_without_use): Likewise.
24011
24012 2010-03-30  Eric Blake  <eblake@redhat.com>
24013
24014         maint: improve module indicators
24015         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24016         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24017         columns, and avoid extra macro expansion.
24018
24019         fdopendir: work around FreeBSD bug
24020         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24021         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24022         * modules/dirent (Makefile.am): Substitute it.
24023         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24024         declaration.
24025         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24026         fix.
24027         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24028
24029 2010-03-29  Bruno Haible  <bruno@clisp.org>
24030
24031         Emit #pragma system_header after the inclusion guard, not before.
24032         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24033         guard that spans the entire file, not before. This enables an
24034         optimization in GCC's preprocessor.
24035         * lib/ctype.in.h: Likewise.
24036         * lib/dirent.in.h: Likewise.
24037         * lib/errno.in.h: Likewise.
24038         * lib/float.in.h: Likewise.
24039         * lib/getopt.in.h: Likewise.
24040         * lib/iconv.in.h: Likewise.
24041         * lib/langinfo.in.h: Likewise.
24042         * lib/locale.in.h: Likewise.
24043         * lib/math.in.h: Likewise.
24044         * lib/netdb.in.h: Likewise.
24045         * lib/netinet_in.in.h: Likewise.
24046         * lib/pty.in.h: Likewise.
24047         * lib/sched.in.h: Likewise.
24048         * lib/se-selinux.in.h: Likewise.
24049         * lib/search.in.h: Likewise.
24050         * lib/spawn.in.h: Likewise.
24051         * lib/stdarg.in.h: Likewise.
24052         * lib/stdint.in.h: Likewise.
24053         * lib/string.in.h: Likewise.
24054         * lib/strings.in.h: Likewise.
24055         * lib/sys_file.in.h: Likewise.
24056         * lib/sys_ioctl.in.h: Likewise.
24057         * lib/sys_time.in.h: Likewise.
24058         * lib/sys_times.in.h: Likewise.
24059         * lib/sys_utsname.in.h: Likewise.
24060         * lib/sys_wait.in.h: Likewise.
24061         * lib/sysexits.in.h: Likewise.
24062         * lib/wctype.in.h: Likewise.
24063
24064 2010-03-28  James Youngman  <jay@gnu.org>
24065
24066         save-cwd: don't leak a file descriptor when the caller execs.
24067         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24068         saved file descriptor.
24069         * modules/save-cwd (Depends-on): Depend on cloexec.
24070
24071 2010-03-29  Bruno Haible  <bruno@clisp.org>
24072
24073         Remove vestiges of fts-lgpl module.
24074         * lib/fts_.h: Assume GNULIB_FTS is 1.
24075         * lib/fts.c: Likewise.
24076         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24077
24078 2010-03-28  Bruno Haible  <bruno@clisp.org>
24079
24080         Fix definition of tests witness macro.
24081         * gnulib-tool (func_import): Fix definition of witness macro.
24082
24083 2010-03-28  Bruno Haible  <bruno@clisp.org>
24084
24085         Fix ioctl's protoype on glibc systems.
24086         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24087         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24088         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24089         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24090         signature. If not, arrange to replace the ioctl function.
24091         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24092         REPLACE_IOCTL.
24093         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24094         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24095         Reported by Ludovic Courtès <ludo@gnu.org>.
24096
24097 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24098
24099         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24100         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24101         made it so grep -r --include=GLOB* ... did not work.
24102
24103 2010-03-26  Jim Meyering  <meyering@redhat.com>
24104             Eric Blake  <eblake@redhat.com>
24105
24106         maint.mk: prohibit use of test's -o and -a operators
24107         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24108
24109 2010-03-28  Bruno Haible  <bruno@clisp.org>
24110
24111         Remove unused GNULIB_XYZ macro definitions.
24112         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24113         invocation.
24114
24115 2010-03-28  Bruno Haible  <bruno@clisp.org>
24116
24117         Mark privileged tests modules.
24118         * modules/idpriv-drop-tests (Status): New section.
24119         * modules/idpriv-droptemp-tests (Status): New section.
24120
24121 2010-03-28  Bruno Haible  <bruno@clisp.org>
24122
24123         Split C++ tests into separate tests modules.
24124         * modules/dirent-c++-tests: New file, extracted from
24125         modules/dirent-tests.
24126         * modules/dirent-tests: Depend on it.
24127         * modules/fcntl-h-c++-tests: New file, extracted from
24128         modules/fcntl-h-tests.
24129         * modules/fcntl-h-tests: Depend on it.
24130         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24131         * modules/glob-tests: Depend on it.
24132         * modules/iconv-h-c++-tests: New file, extracted from
24133         modules/iconv-h-tests.
24134         * modules/iconv-h-tests: Depend on it.
24135         * modules/langinfo-c++-tests: New file, extracted from
24136         modules/langinfo-tests.
24137         * modules/langinfo-tests: Depend on it.
24138         * modules/locale-c++-tests: New file, extracted from
24139         modules/locale-tests.
24140         * modules/locale-tests: Depend on it.
24141         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24142         * modules/math-tests: Depend on it.
24143         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24144         * modules/pty-tests: Depend on it.
24145         * modules/search-c++-tests: New file, extracted from
24146         modules/search-tests.
24147         * modules/search-tests: Depend on it.
24148         * modules/signal-c++-tests: New file, extracted from
24149         modules/signal-tests.
24150         * modules/signal-tests: Depend on it.
24151         * modules/spawn-c++-tests: New file, extracted from
24152         modules/spawn-tests.
24153         * modules/spawn-tests: Depend on it.
24154         * modules/stdio-c++-tests: New file, extracted from
24155         modules/stdio-tests.
24156         * modules/stdio-tests: Depend on it.
24157         * modules/stdlib-c++-tests: New file, extracted from
24158         modules/stdlib-tests.
24159         * modules/stdlib-tests: Depend on it.
24160         * modules/string-c++-tests: New file, extracted from
24161         modules/string-tests.
24162         * modules/string-tests: Depend on it.
24163         * modules/sys_ioctl-c++-tests: New file, extracted from
24164         modules/sys_ioctl-tests.
24165         * modules/sys_ioctl-tests: Depend on it.
24166         * modules/sys_select-c++-tests: New file, extracted from
24167         modules/sys_select-tests.
24168         * modules/sys_select-tests: Depend on it.
24169         * modules/sys_socket-c++-tests: New file, extracted from
24170         modules/sys_socket-tests.
24171         * modules/sys_socket-tests: Depend on it.
24172         * modules/sys_stat-c++-tests: New file, extracted from
24173         modules/sys_stat-tests.
24174         * modules/sys_stat-tests: Depend on it.
24175         * modules/sys_time-c++-tests: New file, extracted from
24176         modules/sys_time-tests.
24177         * modules/sys_time-tests: Depend on it.
24178         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24179         * modules/time-tests: Depend on it.
24180         * modules/unistd-c++-tests: New file, extracted from
24181         modules/unistd-tests.
24182         * modules/unistd-tests: Depend on it.
24183         * modules/wchar-c++-tests: New file, extracted from
24184         modules/wchar-tests.
24185         * modules/wchar-tests: Depend on it.
24186         * modules/wctype-c++-tests: New file, extracted from
24187         modules/wctype-tests.
24188         * modules/wctype-tests: Depend on it.
24189         Reported by Simon Josefsson.
24190
24191 2010-03-28  Bruno Haible  <bruno@clisp.org>
24192
24193         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24194         * gnulib-tool (func_exists_module): New function, extracted from
24195         func_verify_module.
24196         (func_verify_module): Use it.
24197         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24198         'foo' only if 'foo' exists.
24199         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24200         module.
24201
24202 2010-03-28  Bruno Haible  <bruno@clisp.org>
24203
24204         gnulib-tool: Add support for special categories of tests.
24205         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24206         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24207         (func_usage): Document them.
24208         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24209         inc_unportable_tests, inc_all_tests): New variables.
24210         (func_acceptable): Consider these variables.
24211         (func_modules_transitive_closure): Make it work when the 'Status' field
24212         consists of multiple words.
24213         (func_import): Store and restore the values of inc_cxx_tests,
24214         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24215         inc_all_tests in gnulib-comp.m4.
24216         (func_create_testdir): Set inc_all_tests to true.
24217         * doc/gnulib.texi (Extra tests modules): New section.
24218         Suggested by Jim Meyering.
24219
24220 2010-03-28  Bruno Haible  <bruno@clisp.org>
24221
24222         ansi-c++-opt: Allow turning off the C++ build by default.
24223         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24224         gl_CXX_CHOICE_DEFAULT_NO is defined.
24225         Requested by Eric Blake.
24226
24227 2010-03-28  Bruno Haible  <bruno@clisp.org>
24228
24229         unistd: Avoid #define replacements in C++ mode.
24230         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24231         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24232         setsockopt, shutdown, select): In C++, attach a warning to the function
24233         if possible, rather than #defining the symbol to a dysfunctional alias.
24234         Reported by John W. Eaton <jwe@gnu.org>.
24235
24236 2010-03-28  Bruno Haible  <bruno@clisp.org>
24237
24238         Fix link errors on mingw.
24239         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24240         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24241         $(LIBSOCKET).
24242         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24243         $(LIBSOCKET).
24244
24245 2010-03-28  Bruno Haible  <bruno@clisp.org>
24246             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24247
24248         lib-ignore: Determine different options for different compilers.
24249         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24250         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24251         Add comments.
24252         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24253         * NEWS: Mention the change.
24254
24255 2010-03-27  Bruno Haible  <bruno@clisp.org>
24256
24257         Remove unused GNULIB_XYZ macro definitions.
24258         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24259         * modules/fseek (configure.ac): Likewise.
24260         * modules/ioctl (configure.ac): Likewise.
24261         * modules/open (configure.ac): Likewise.
24262         * modules/stdlib-safer (configure.ac): Likewise.
24263
24264 2010-03-27  Bruno Haible  <bruno@clisp.org>
24265
24266         Add a remark about certain modules.
24267         * modules/malloc (Comment): New section.
24268         * modules/realloc (Comment): Likewise.
24269         * modules/sigpipe (Comment): Likewise.
24270
24271 2010-03-27  Bruno Haible  <bruno@clisp.org>
24272
24273         Resolve conflict between the two kinds of module indicators.
24274         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24275         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24276         * modules/canonicalize (configure.ac): Invoke
24277         gl_MODULE_INDICATOR_FOR_TESTS.
24278         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24279         GNULIB_XYZ.
24280         * tests/test-dirent-c++.cc: Likewise.
24281         * tests/test-dirent-safer.c: Likewise.
24282         * tests/test-dup2.c: Likewise.
24283         * tests/test-fchdir.c: Likewise.
24284         * tests/test-fcntl-h-c++.cc: Likewise.
24285         * tests/test-getopt.c: Likewise.
24286         * tests/test-getopt.h: Likewise.
24287         * tests/test-langinfo-c++.cc: Likewise.
24288         * tests/test-locale-c++.cc: Likewise.
24289         * tests/test-math-c++.cc: Likewise.
24290         * tests/test-pty-c++.cc: Likewise.
24291         * tests/test-search-c++.cc: Likewise.
24292         * tests/test-signal-c++.cc: Likewise.
24293         * tests/test-spawn-c++.cc: Likewise.
24294         * tests/test-stdio-c++.cc: Likewise.
24295         * tests/test-stdlib-c++.cc: Likewise.
24296         * tests/test-string-c++.cc: Likewise.
24297         * tests/test-sys_ioctl-c++.cc: Likewise.
24298         * tests/test-sys_select-c++.cc: Likewise.
24299         * tests/test-sys_socket-c++.cc: Likewise.
24300         * tests/test-sys_stat-c++.cc: Likewise.
24301         * tests/test-sys_time-c++.cc: Likewise.
24302         * tests/test-time-c++.cc: Likewise.
24303         * tests/test-unistd-c++.cc: Likewise.
24304         * tests/test-wchar-c++.cc: Likewise.
24305         * tests/uninorm/test-u8-nfc.c: Likewise.
24306         * tests/uninorm/test-u8-nfd.c: Likewise.
24307         * tests/uninorm/test-u8-nfkc.c: Likewise.
24308         * tests/uninorm/test-u8-nfkd.c: Likewise.
24309         * tests/uninorm/test-u16-nfc.c: Likewise.
24310         * tests/uninorm/test-u16-nfd.c: Likewise.
24311         * tests/uninorm/test-u16-nfkc.c: Likewise.
24312         * tests/uninorm/test-u16-nfkd.c: Likewise.
24313         * tests/uninorm/test-u32-nfc.c: Likewise.
24314         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24315         * tests/uninorm/test-u32-nfd.c: Likewise.
24316         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24317         * tests/uninorm/test-u32-nfkc.c: Likewise.
24318         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24319         * tests/uninorm/test-u32-nfkd.c: Likewise.
24320         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24321         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24322
24323 2010-03-27  Bruno Haible  <bruno@clisp.org>
24324
24325         Distinguish two kinds of module indicators.
24326         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24327         gl_MODULE_INDICATOR.
24328         (gl_MODULE_INDICATOR): New macro.
24329         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24330         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24331         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24332         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24333         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24334         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24335         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24336         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24337         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24338         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24339         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24340         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24342         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24343         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24344         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24345         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24346         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24347         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24348         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24349         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24350         * modules/cloexec (configure.ac): Likewise.
24351         * modules/getopt-gnu (configure.ac): Likewise.
24352         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24353         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24354         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24355         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24356
24357 2010-03-27  Bruno Haible  <bruno@clisp.org>
24358
24359         New module description field 'Comment'.
24360         * gnulib-tool: New option --extract-comment.
24361         (func_usage): Document it.
24362         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24363         (func_get_comment): New function.
24364         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24365
24366 2010-03-27  Bruno Haible  <bruno@clisp.org>
24367
24368         Addendum to 2010-02-07 commit.
24369         * gnulib-tool (func_usage): Document --extract-applicability option.
24370
24371 2010-03-27  Bruno Haible  <bruno@clisp.org>
24372
24373         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24374         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24375         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24376         rather than link errors.
24377
24378 2010-03-27  Bruno Haible  <bruno@clisp.org>
24379
24380         Avoid side effects from tests-related modules on the compilation of lib.
24381         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24382         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24383         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24384         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24385         macro.
24386         (func_import): Define a witness macro. Assign it a value that depends
24387         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24388         tests-related modules.
24389         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24390         Reported by Jim Meyering.
24391
24392 2010-03-27  Bruno Haible  <bruno@clisp.org>
24393
24394         Factorize common .m4 code.
24395         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24396         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24397         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24398         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24399         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24400         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24401         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24402         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24403         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24404         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24405         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24406         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24407         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24408         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24409         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24410         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24412         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24414         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24415         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24416         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24417         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24418         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24419         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24420         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24421         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24422         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24423         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24424         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24425         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24426         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24427
24428 2010-03-27  Bruno Haible  <bruno@clisp.org>
24429
24430         Fix a compilation error on Cygwin with g++ >= 4.3.
24431         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24432         if it is undefined or if we alias it to chmod.
24433         (lstat): Don't warn about the use of this function if it is undefined
24434         or if we alias it to stat.
24435         Reported by Simon Josefsson.
24436
24437 2010-03-27  Bruno Haible  <bruno@clisp.org>
24438
24439         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24440         * modules/getlogin (configure.ac): Update.
24441
24442         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24443         * modules/getlogin_r (configure.ac): Update.
24444
24445         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24447         * modules/inet_ntop (configure.ac): Update.
24448
24449         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24450         * modules/inet_pton (configure.ac): Update.
24451
24452         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24453         * modules/mbslen (configure.ac): Update.
24454
24455         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24456         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24457         * modules/forkpty (configure.ac): Update.
24458         * modules/openpty (configure.ac): Update.
24459
24460 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24461
24462         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24463         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24464
24465 2010-03-25  Eric Blake  <eblake@redhat.com>
24466
24467         maint: use pragma consistently across replacement headers
24468         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24469         * lib/dirent.in.h (system_header): Likewise.
24470         * lib/errno.in.h (system_header): Likewise.
24471         * lib/float.in.h (system_header): Likewise.
24472         * lib/getopt.in.h (system_header): Likewise.
24473         * lib/iconv.in.h (system_header): Likewise.
24474         * lib/inttypes.in.h (system_header): Likewise.
24475         * lib/langinfo.in.h (system_header): Likewise.
24476         * lib/locale.in.h (system_header): Likewise.
24477         * lib/math.in.h (system_header): Likewise.
24478         * lib/netdb.in.h (system_header): Likewise.
24479         * lib/netinet_in.in.h (system_header): Likewise.
24480         * lib/pty.in.h (system_header): Likewise.
24481         * lib/sched.in.h (system_header): Likewise.
24482         * lib/se-selinux.in.h (system_header): Likewise.
24483         * lib/search.in.h (system_header): Likewise.
24484         * lib/spawn.in.h (system_header): Likewise.
24485         * lib/stdarg.in.h (system_header): Likewise.
24486         * lib/stdint.in.h (system_header): Likewise.
24487         * lib/string.in.h (system_header): Likewise.
24488         * lib/strings.in.h (system_header): Likewise.
24489         * lib/sys_file.in.h (system_header): Likewise.
24490         * lib/sys_ioctl.in.h (system_header): Likewise.
24491         * lib/sys_socket.in.h (system_header): Likewise.
24492         * lib/sys_times.in.h (system_header): Likewise.
24493         * lib/sys_utsname.in.h (system_header): Likewise.
24494         * lib/sys_wait.in.h (system_header): Likewise.
24495         * lib/sysexits.in.h (system_header): Likewise.
24496         * lib/unistd.in.h (system_header): Likewise.
24497         * lib/wctype.in.h (system_header): Likewise.
24498
24499         arpa/inet: fix mingw compilation warning
24500         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24501         Reported by Matthew Bolte.
24502
24503 2010-03-25  Bruno Haible  <bruno@clisp.org>
24504
24505         Avoid collision between gnulib wrapper and libintl wrapper.
24506         * lib/printf.c (printf): Don't define if a printf wrapper is already
24507         defined in intl/printf.c.
24508         Reported by Michel Boaventura <michel@michelboaventura.com>.
24509
24510 2010-03-25  Bruno Haible  <bruno@clisp.org>
24511
24512         Use ANSI C.
24513         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24514
24515 2010-03-25  Bruno Haible  <bruno@clisp.org>
24516
24517         Minor formatting changes.
24518         * lib/acosl.c: Insert space before function argument list.
24519         * lib/argz.c: Likewise.
24520         * lib/asinl.c: Likewise.
24521         * lib/expl.c: Likewise.
24522         * lib/gen-uni-tables.c: Likewise.
24523         * lib/gettext.h: Likewise.
24524         * lib/glthread/lock.h: Likewise.
24525         * lib/tanl.c: Likewise.
24526         * lib/uniname/uniname.c: Likewise.
24527         * tests/test-idpriv-drop.c: Likewise.
24528         * tests/test-idpriv-droptemp.c: Likewise.
24529         * tests/test-lock.c: Likewise.
24530         * tests/test-tls.c: Likewise.
24531         * lib/argp-help.c: Insert space before function-like macro argument
24532         list.
24533         * lib/memcmp.c: Likewise.
24534         * tests/test-base64.c: Likewise.
24535         * lib/localename.c: Insert space before sizeof's argument list.
24536         * lib/safe-alloc.h: Likewise.
24537         * lib/file-set.h: Insert space before macro argument list.
24538         * tests/test-argp.c: Likewise.
24539         * lib/argp-namefrob.h: Insert space before function parameter list.
24540         * lib/getaddrinfo.c: Likewise.
24541         * lib/netdb.in.h: Likewise.
24542         * lib/parse-duration.h: Likewise.
24543         * lib/parse-duration.c: Likewise.
24544         * lib/poll.c: Likewise.
24545         * lib/select.c: Likewise.
24546         * lib/trim.h: Likewise.
24547         * tests/test-usleep.c: Likewise.
24548         * lib/ldexpl.c: Insert space before function parameter list and before
24549         function argument list.
24550         * lib/logl.c: Likewise.
24551         * lib/sqrtl.c: Likewise.
24552         * lib/trim.c: Likewise.
24553         * lib/cosl.c: Use GNU style indentation. Insert space before function
24554         argument list.
24555         * lib/sinl.c: Likewise.
24556         * lib/tsearch.c: Insert space after 'for'.
24557         Reported by Jim Meyering.
24558
24559 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24560
24561         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24562         config header before grepping, as it's not present before
24563         autoreconf/configure are run.  Reported by Simon Josefsson.
24564
24565 2010-03-23  Bruno Haible  <bruno@clisp.org>
24566
24567         pt_chown: Make it work with automake < 1.11.
24568         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24569         Reported by Simon Josefsson.
24570
24571 2010-03-23  Bruno Haible  <bruno@clisp.org>
24572
24573         pt_chown: Don't depend on GPLed modules.
24574         * lib/pt_chown.c: Don't include idpriv.h.
24575         (main): Don't drop privileges.
24576         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24577         Reported by Simon Josefsson.
24578
24579 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24580
24581         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24582         suggestions from karl@freefriends.org (Karl Berry).
24583
24584 2010-03-22  Eric Blake  <eblake@redhat.com>
24585
24586         gethostname: further tweaks
24587         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24588         are overriding gethostname.
24589         Suggested by Bruno Haible.
24590
24591 2010-03-21  Bruno Haible  <bruno@clisp.org>
24592
24593         Fix comments.
24594         * lib/forkpty.c (rpl_forkpty): Fix comment.
24595         * lib/openpty.c (rpl_openpty): Likewise.
24596         Reported by Eric Blake.
24597
24598 2010-03-22  Eric Blake  <eblake@redhat.com>
24599
24600         gethostname: fix build on mingw
24601         * lib/unistd.in.h (includes): Work around fact that mingw
24602         <winsock2.h> re-includes <unistd.h>, by avoiding any
24603         redeclarations if we are being included by <winsock2.h>.
24604         Reported by Matthias Bolte.
24605
24606 2010-03-21  Bruno Haible  <bruno@clisp.org>
24607
24608         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24609         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24610         modifications.
24611         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24612         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24613         provide the replacement.
24614         * modules/forkpty (Depends-on): Add openpty, login_tty.
24615         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24616         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24617         * doc/glibc-functions/forkpty.texi: More supported platforms.
24618         * config/srclist.txt: Add forkpty.c (commented).
24619
24620 2010-03-21  Bruno Haible  <bruno@clisp.org>
24621
24622         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24623         (Makefile.am): Verify that PTY_LIB is defined.
24624
24625         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24626
24627 2010-03-21  Bruno Haible  <bruno@clisp.org>
24628
24629         Tests for module 'login_tty'.
24630         * modules/login_tty-tests: New file.
24631         * tests/test-login_tty.c: New file.
24632
24633         New module 'login_tty'.
24634         * lib/login_tty.c: New file.
24635         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24636         * modules/login_tty: New file.
24637         * doc/glibc-functions/login_tty.texi: Mention the new module.
24638
24639 2010-03-21  Bruno Haible  <bruno@clisp.org>
24640
24641         login_tty: Documentation.
24642         * doc/glibc-functions/login_tty.texi: New file.
24643         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24644
24645 2010-03-21  Bruno Haible  <bruno@clisp.org>
24646
24647         pty: Consistent macro naming.
24648         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24649         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24650         * modules/pty (configure.ac): Update.
24651
24652 2010-03-21  Bruno Haible  <bruno@clisp.org>
24653
24654         Tests for openpty: Make stricter.
24655         * tests/test-openpty.c (main): Add test of canonical processing and
24656         erase.
24657         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24658
24659         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24660         * lib/openpty.c (openpty): New replacement function.
24661         * lib/pty.in.h: Include <termios.h>.
24662         (openpty): Update declaration. Add comments.
24663         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24664         is not declared, arrange to provide the replacement. Check for _getpty
24665         and posix_openpt.
24666         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24667         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24668         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24669         * modules/pty-tests (test_pty_c___LDADD): New variable.
24670         * doc/glibc-functions/openpty.texi: More supported platforms.
24671
24672 2010-03-21  Bruno Haible  <bruno@clisp.org>
24673
24674         setenv: Tweaks.
24675         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24676         the test program.
24677         * doc/posix-functions/setenv.texi: Update platforms list.
24678
24679 2010-03-21  Bruno Haible  <bruno@clisp.org>
24680
24681         New module 'unlockpt'.
24682         * lib/unlockpt.c: New file, from glibc with modifications.
24683         * m4/unlockpt.m4: New file.
24684         * modules/unlockpt: New file.
24685         * lib/stdlib.in.h (unlockpt): New declaration.
24686         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24687         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24688         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24689         HAVE_UNLOCKPT.
24690         * doc/posix-functions/unlockpt.texi: Mention the new module.
24691         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24692         * config/srclist.txt: Add unlockpt.c (commented).
24693
24694 2010-03-21  Jim Meyering  <meyering@redhat.com>
24695
24696         maint.mk: prohibit inclusion of "intprops.h" without use
24697         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24698
24699 2010-03-21  Bruno Haible  <bruno@clisp.org>
24700
24701         New module 'grantpt'.
24702         * lib/grantpt.c: New file, from glibc with modifications.
24703         * m4/grantpt.m4: New file.
24704         * modules/grantpt: New file.
24705         * lib/stdlib.in.h (grantpt): New declaration.
24706         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24707         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24708         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24709         HAVE_GRANTPT.
24710         * doc/posix-functions/grantpt.texi: Mention the new module.
24711         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24712         * config/srclist.txt: Add grantpt.c (commented).
24713
24714 2010-03-21  Bruno Haible  <bruno@clisp.org>
24715
24716         New module 'pt_chown'.
24717         * lib/pt_chown.c: New file, from glibc with modifications.
24718         * lib/pty-private.h: New file, from glibc with modifications.
24719         * modules/pt_chown: New file.
24720         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24721
24722 2010-03-21  Bruno Haible  <bruno@clisp.org>
24723
24724         Tests for module 'ptsname'.
24725         * modules/ptsname-tests: New file.
24726         * tests/test-ptsname.c: New file.
24727
24728         New module 'ptsname'.
24729         * lib/ptsname.c: New file, from glibc with modifications.
24730         * m4/ptsname.m4: New file.
24731         * modules/ptsname: New file.
24732         * lib/stdlib.in.h (ptsname): New declaration.
24733         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24734         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24735         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24736         HAVE_PTSNAME.
24737         * doc/posix-functions/ptsname.texi: Mention the new module.
24738         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24739         * config/srclist.txt: Add ptsname.c (commented).
24740
24741 2010-03-21  Bruno Haible  <bruno@clisp.org>
24742
24743         Tests for module 'ttyname_r'.
24744         * modules/ttyname_r-tests: New file.
24745         * tests/test-ttyname_r.c: New file.
24746
24747         New module 'ttyname_r'.
24748         * lib/ttyname_r.c: New file.
24749         * m4/ttyname_r.m4: New file.
24750         * modules/ttyname_r: New file.
24751         * lib/unistd.in.h (ttyname_r): New declaration.
24752         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24753         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24754         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24755         HAVE_TTYNAME_R.
24756         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24757         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24758
24759 2010-03-20  Bruno Haible  <bruno@clisp.org>
24760
24761         signal: Undefine macro definitions in C++ mode.
24762         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24763         sigfillset): Undefine macro definitions from the system header in C++
24764         mode.
24765         Reported by John W. Eaton <jwe@gnu.org>.
24766
24767 2010-03-20  Bruno Haible  <bruno@clisp.org>
24768
24769         Ensure no #include statements inside extern "C" { ... }.
24770         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24771         contain #include statements.
24772         * lib/time.in.h: Likewise.
24773
24774 2010-03-20  Bruno Haible  <bruno@clisp.org>
24775
24776         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24777         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24778         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24779         Reported by John W. Eaton <jwe@gnu.org>.
24780
24781 2010-03-20  Bruno Haible  <bruno@clisp.org>
24782
24783         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24784         Reported by Jim Meyering.
24785
24786 2010-03-20  Bruno Haible  <bruno@clisp.org>
24787
24788         pipe: Set errno upon failure.
24789         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24790         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24791         errno value in error message.
24792
24793 2010-03-20  Bruno Haible  <bruno@clisp.org>
24794             Jim Meyering  <meyering@redhat.com>
24795
24796         lchown: Avoid "unused variable" warning.
24797         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24798
24799 2010-03-20  Bruno Haible  <bruno@clisp.org>
24800
24801         Work around unlink() bug on MacOS X 10.5.6.
24802         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24803         attempting to unlink a parent directory.
24804         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24805         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24806         activate for the replacement function.
24807         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24808
24809 2010-03-20  Bruno Haible  <bruno@clisp.org>
24810
24811         Fix link errors on Solaris 8.
24812         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24813         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24814
24815 2010-03-19  Jim Meyering  <meyering@redhat.com>
24816
24817         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24818         The _LIBC implementation of build_range_exp correctly honors the
24819         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24820         However, the non-_LIBC implementation would ignore that syntax-bit
24821         flag and return REG_ERANGE unconditionally.
24822         This change makes it honor that flag.
24823         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24824         Make two pointer parameters "const".
24825         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24826         (parse_bracket_exp): Update caller.
24827
24828         regex.m4: correct the reversed range endpoint ([b-a]) test
24829         * m4/regex.m4: When requiring that [b-a] evoke failure,
24830         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24831         test pass once again for x86-based systems.
24832
24833 2010-03-19  Bruno Haible  <bruno@clisp.org>
24834
24835         scandir: Fix link error on Solaris 8.
24836         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24837         macros.
24838
24839 2010-03-19  Bruno Haible  <bruno@clisp.org>
24840
24841         getusershell: Fix documentation.
24842         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24843         module.
24844         * doc/glibc-functions/setusershell.texi: Likewise.
24845
24846         getusershell: Provide declaration, missing on Solaris 9.
24847         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24848         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24849         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24850         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24852         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24853         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24854         HAVE_GETUSERSHELL.
24855         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24856
24857 2010-03-19  Bruno Haible  <bruno@clisp.org>
24858
24859         wctype: Provide iswblank function.
24860         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24861         exists and is fine.
24862         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24863         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24864         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24865         * doc/posix-functions/iswblank.texi: Update.
24866
24867 2010-03-19  Bruno Haible  <bruno@clisp.org>
24868
24869         Tests of module 'pty' in C++ mode.
24870         * modules/pty-tests: New file.
24871         * tests/test-pty-c++.cc: New file.
24872         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24873
24874 2010-03-19  Eric Blake  <eblake@redhat.com>
24875
24876         logb: fix documentation
24877         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24878         1.5 declaration bug.
24879
24880         forkpty, openpty: prefer glibc's const-safe prototype
24881         * lib/forkpty.c (rpl_forkpty): New file.
24882         * lib/openpty.c (rpl_openpty): Likewise.
24883         * modules/forkpty (Files): Distribute it.
24884         * modules/openpty (Files): Likewise.
24885         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24886         check...
24887         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24888         replacement for for non-const BSD signature.
24889         * modules/pty (Makefile.am): Substitute witnesses.
24890         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24891         * tests/test-forkpty.c: Update signature check.
24892         * tests/test-openpty.c: Likewise.
24893         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24894         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24895
24896         forkpty, openpty: split functions into new modules
24897         * modules/pty (Makefile.am): Substitute new witnesses.
24898         (Libraries): Move library detection...
24899         * modules/forkpty: ...into new module.
24900         * modules/openpty: Another new module.
24901         * modules/pty-tests: Rename and split...
24902         * modules/forkpty-tests: ...to this...
24903         * modules/openpty-tests: ...and this.
24904         * tests/test-pty.c: Rename and split...
24905         * tests/test-forkpty.c: ...to this...
24906         * tests/test-openpty.c: ...and this.
24907         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24908         (gl_PTY): Split library searching...
24909         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24910         (gl_FORKPTY, gl_OPENPTY): New macros.
24911         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24912         * NEWS: Mention the split.
24913         * MODULES.html.sh (Misc): Document the modules.
24914         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24915         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24916
24917         pty: improve replacement header
24918         * lib/pty.in.h: New file.
24919         * modules/pty (Files): Ship it.
24920         (Makefile.am): Always build replacement.
24921         * m4/pty.m4: Rename...
24922         * m4/pty_h.m4: ...to this.
24923         (gl_PTY): Modernize setting of witness macros; update check of
24924         forkpty to take proper advantage of cache.
24925         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24926
24927         getopt: avoid compiler warning
24928         * lib/getopt.c (attribute_hidden): Remove unused macro.
24929
24930 2010-03-18  Bruno Haible  <bruno@clisp.org>
24931
24932         Fix link errors on Solaris 8.
24933         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24934         * modules/search-tests (test_search_c___LDADD): Likewise.
24935         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24936         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24937         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24938         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24939         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24940         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24941         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24942
24943 2010-03-18  Bruno Haible  <bruno@clisp.org>
24944
24945         Fix bug introduced on 2010-03-14.
24946         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24947         (gl_SPAWN_H): Require it.
24948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24949         Reported by Simon Josefsson.
24950
24951 2010-03-18  Bruno Haible  <bruno@clisp.org>
24952
24953         Fix typo introduced on 2009-12-31.
24954         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24955         posix_spawn_file_actions_adddup2.
24956
24957 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24958         and Eric Blake  <eblake@redhat.com>
24959
24960         test-vc-list-files-git: make more robust
24961         * tests/test-vc-list-files-git.sh: Unset problematic environment
24962         variables.  Chain commands together.
24963
24964 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24965
24966         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24967         `AC_CHECK_DECL' invocation.
24968
24969 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24970
24971         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24972         appears before executable statements. Suggested by Petr Sumbera
24973         <Petr.Sumbera@Sun.COM>.
24974
24975 2010-03-14  Bruno Haible  <bruno@clisp.org>
24976
24977         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24978         portability problems. Instead use a simpler test.
24979         (main): Check that invalid arguments are rejected only on Linux.
24980
24981 2010-03-14  Bruno Haible  <bruno@clisp.org>
24982
24983         Fix bug introduced on 2009-12-31.
24984         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24985         gl_PREREQ_SYS_H_WINSOCK2 always.
24986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24987         SYS_SOCKET_H variable.
24988         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24989         Update comments.
24990         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24991         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24992         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24993         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24994         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24995
24996 2010-03-14  Bruno Haible  <bruno@clisp.org>
24997
24998         Fix values returned by sinl, cosl.
24999         * lib/trigl.h: Add specification comments.
25000         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25001         that combines the values from the precomputed table with the values of
25002         the Chebyshev polynomials.
25003
25004 2010-03-14  Bruno Haible  <bruno@clisp.org>
25005
25006         Fix compilation error when modules 'posix_spawn[p]' are not used.
25007         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25008         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25009
25010 2010-03-14  Bruno Haible  <bruno@clisp.org>
25011
25012         Fix compilation error on mingw when module 'time_r' is not used.
25013         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25014         is 1.
25015         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25016         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25017         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25018         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25019
25020 2010-03-14  Bruno Haible  <bruno@clisp.org>
25021
25022         Fix compilation error with Sun C.
25023         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25024         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25025         instead of GCC specific ULONG_LONG_MAX.
25026         * lib/xstrtoll.c: Likewise.
25027         * lib/xstrtoull.c: Likewise.
25028
25029 2010-03-13  Bruno Haible  <bruno@clisp.org>
25030
25031         Allow the user to disable C++ code and tests.
25032         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25033         (gl_PROG_ANSI_CXX): Require it.
25034
25035 2010-03-13  Bruno Haible  <bruno@clisp.org>
25036
25037         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25038         cases.
25039
25040 2010-03-13  Bruno Haible  <bruno@clisp.org>
25041
25042         Test that gnulib does not break the standard C++ headers.
25043         * tests/test-locale-c++2.cc: New file.
25044         * modules/locale-tests (Files): Add it.
25045         (Makefile.am): Compile it for test-locale-c++.
25046         * tests/test-math-c++2.cc: New file.
25047         * modules/math-tests (Files): Add it.
25048         (Makefile.am): Compile it for test-math-c++.
25049         * tests/test-signal-c++2.cc: New file.
25050         * modules/signal-tests (Files): Add it.
25051         (Makefile.am): Compile it for test-signal-c++.
25052         * tests/test-stdio-c++2.cc: New file.
25053         * modules/stdio-tests (Files): Add it.
25054         (Makefile.am): Compile it for test-stdio-c++.
25055         * tests/test-stdlib-c++2.cc: New file.
25056         * modules/stdlib-tests (Files): Add it.
25057         (Makefile.am): Compile it for test-stdlib-c++.
25058         * tests/test-string-c++2.cc: New file.
25059         * modules/string-tests (Files): Add it.
25060         (Makefile.am): Compile it for test-string-c++.
25061         * tests/test-time-c++2.cc: New file.
25062         * modules/time-tests (Files): Add it.
25063         (Makefile.am): Compile it for test-time-c++.
25064         Reported by John W. Eaton <jwe@gnu.org>.
25065
25066 2010-03-13  Bruno Haible  <bruno@clisp.org>
25067
25068         * gnulib-tool (func_usage): Clarify which options are available for
25069         --create-testdir and --create-megatestdir.
25070
25071 2010-03-13  Bruno Haible  <bruno@clisp.org>
25072
25073         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25074         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25075         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25076         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25077         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25078         when appropriate.
25079         Reported by Jim Meyering.
25080
25081 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25082
25083         * gnulib-tool (func_import): Explain origin of code.
25084
25085 2010-03-12  Bruno Haible  <bruno@clisp.org>
25086
25087         Fix problem with automake's definition of CXXLINK.
25088         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25089         Reported by Simon Josefsson and Ludovic Courtès.
25090
25091 2010-03-12  Bruno Haible  <bruno@clisp.org>
25092
25093         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25094         stable releases.
25095
25096 2010-03-11  Bruno Haible  <bruno@clisp.org>
25097
25098         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25099         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25100         whether the system provides one variant or multiple variants of the
25101         function.
25102         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25103         C++ compilers.
25104         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25105         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25106         Reported by Jim Meyering.
25107
25108 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25109
25110         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25111
25112 2010-03-08  Bruno Haible  <bruno@clisp.org>
25113
25114         gnulib-tool: Add support for --libtool in --create-testdir.
25115         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25116         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25117
25118 2010-03-08  Eric Blake  <eblake@redhat.com>
25119
25120         gnulib-tool.texi: mention possibility of git submodule
25121         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25122         submodules.
25123         * doc/.gitignore: Ignore another generated file.
25124
25125 2010-03-08  Karl Berry  <karl@gnu.org>
25126
25127         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25128         of committing gnulib files while skipping others.
25129
25130 2010-03-07  Bruno Haible  <bruno@clisp.org>
25131
25132         Tests of module 'wctype' in C++ mode.
25133         * tests/test-wctype-c++.cc: New file.
25134         * modules/wctype-tests (Files): Add it and tests/signature.h.
25135         (Depends-on): Add ansi-c++-opt.
25136         (Makefile.am): Arrange to compile and run test-wctype-c++.
25137
25138         Tests of module 'wchar' in C++ mode.
25139         * tests/test-wchar-c++.cc: New file.
25140         * modules/wchar-tests (Files): Add it and tests/signature.h.
25141         (Depends-on): Add ansi-c++-opt.
25142         (Makefile.am): Arrange to compile and run test-wchar-c++.
25143         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25144         gl_MODULE_INDICATOR.
25145
25146         Tests of module 'unistd' in C++ mode.
25147         * tests/test-unistd-c++.cc: New file.
25148         * modules/unistd-tests (Files): Add it and tests/signature.h.
25149         (Depends-on): Add ansi-c++-opt.
25150         (Makefile.am): Arrange to compile and run test-unistd-c++.
25151         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25152         gl_MODULE_INDICATOR.
25153
25154         Tests of module 'time' in C++ mode.
25155         * tests/test-time-c++.cc: New file.
25156         * modules/time-tests (Files): Add it and tests/signature.h.
25157         (Depends-on): Add ansi-c++-opt.
25158         (Makefile.am): Arrange to compile and run test-time-c++.
25159         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25160
25161         Tests of module 'sys_time' in C++ mode.
25162         * tests/test-sys_time-c++.cc: New file.
25163         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25164         (Depends-on): Add ansi-c++-opt.
25165         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25166         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25167         gl_MODULE_INDICATOR.
25168
25169         Tests of module 'sys_stat' in C++ mode.
25170         * tests/test-sys_stat-c++.cc: New file.
25171         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25172         (Depends-on): Add ansi-c++-opt.
25173         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25174         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25175         gl_MODULE_INDICATOR.
25176
25177         Tests of module 'sys_socket' in C++ mode.
25178         * tests/test-sys_socket-c++.cc: New file.
25179         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25180         (Depends-on): Add ansi-c++-opt.
25181         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25182         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25183         gl_MODULE_INDICATOR.
25184
25185         Tests of module 'sys_select' in C++ mode.
25186         * tests/test-sys_select-c++.cc: New file.
25187         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25188         (Depends-on): Add ansi-c++-opt.
25189         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25190         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25191         gl_MODULE_INDICATOR.
25192
25193         Tests of module 'sys_ioctl' in C++ mode.
25194         * tests/test-sys_ioctl-c++.cc: New file.
25195         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25196         (Depends-on): Add ansi-c++-opt.
25197         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25198         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25199         gl_MODULE_INDICATOR.
25200
25201         Tests of module 'string' in C++ mode.
25202         * tests/test-string-c++.cc: New file.
25203         * modules/string-tests (Files): Add it and tests/signature.h.
25204         (Depends-on): Add ansi-c++-opt.
25205         (Makefile.am): Arrange to compile and run test-string-c++.
25206         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25207         gl_MODULE_INDICATOR.
25208
25209         Tests of module 'stdlib' in C++ mode.
25210         * tests/test-stdlib-c++.cc: New file.
25211         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25212         (Depends-on): Add ansi-c++-opt.
25213         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25214         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25215         gl_MODULE_INDICATOR.
25216
25217         Tests of module 'stdio' in C++ mode.
25218         * tests/test-stdio-c++.cc: New file.
25219         * modules/stdio-tests (Files): Add it and tests/signature.h.
25220         (Depends-on): Add ansi-c++-opt.
25221         (Makefile.am): Arrange to compile and run test-stdio-c++.
25222         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25223         gl_MODULE_INDICATOR.
25224
25225         Tests of module 'spawn' in C++ mode.
25226         * tests/test-spawn-c++.cc: New file.
25227         * modules/spawn-tests (Files): Add it and tests/signature.h.
25228         (Depends-on): Add ansi-c++-opt.
25229         (Makefile.am): Arrange to compile and run test-spawn-c++.
25230         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25231         gl_MODULE_INDICATOR.
25232
25233         Tests of module 'signal' in C++ mode.
25234         * tests/test-signal-c++.cc: New file.
25235         * modules/signal-tests (Files): Add it and tests/signature.h.
25236         (Depends-on): Add ansi-c++-opt.
25237         (Makefile.am): Arrange to compile and run test-signal-c++.
25238         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25239         gl_MODULE_INDICATOR.
25240
25241         Tests of module 'search' in C++ mode.
25242         * tests/test-search-c++.cc: New file.
25243         * modules/search-tests (Files): Add it and tests/signature.h.
25244         (Depends-on): Add ansi-c++-opt.
25245         (Makefile.am): Arrange to compile and run test-search-c++.
25246         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25247         gl_MODULE_INDICATOR.
25248
25249         Tests of module 'math' in C++ mode.
25250         * tests/test-math-c++.cc: New file.
25251         * modules/math-tests (Files): Add it and tests/signature.h.
25252         (Depends-on): Add ansi-c++-opt.
25253         (Makefile.am): Arrange to compile and run test-math-c++.
25254         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25255
25256         Tests of module 'locale' in C++ mode.
25257         * tests/test-locale-c++.cc: New file.
25258         * modules/locale-tests (Files): Add it and tests/signature.h.
25259         (Depends-on): Add ansi-c++-opt.
25260         (Makefile.am): Arrange to compile and run test-locale-c++.
25261         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25262         gl_MODULE_INDICATOR.
25263
25264         Tests of module 'langinfo' in C++ mode.
25265         * tests/test-langinfo-c++.cc: New file.
25266         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25267         (Depends-on): Add ansi-c++-opt.
25268         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25269         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25270         gl_MODULE_INDICATOR.
25271
25272         Tests of module 'iconv-h' in C++ mode.
25273         * tests/test-iconv-h-c++.cc: New file.
25274         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25275         (Depends-on): Add ansi-c++-opt.
25276         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25277
25278         Tests of module 'glob' in C++ mode.
25279         * tests/test-glob-c++.cc: New file.
25280         * modules/glob-tests (Files): Add it.
25281         (Depends-on): Add ansi-c++-opt.
25282         (Makefile.am): Arrange to compile and run test-glob-c++.
25283
25284         Tests of module 'fcntl-h' in C++ mode.
25285         * tests/test-fcntl-h-c++.cc: New file.
25286         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25287         (Depends-on): Add ansi-c++-opt.
25288         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25289         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25290         gl_MODULE_INDICATOR.
25291
25292         Tests of module 'dirent' in C++ mode.
25293         * tests/test-dirent-c++.cc: New file.
25294         * modules/dirent-tests (Files): Add it and tests/signature.h.
25295         (Depends-on): Add ansi-c++-opt.
25296         (Makefile.am): Arrange to compile and run test-dirent-c++.
25297         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25298         gl_MODULE_INDICATOR.
25299
25300         New module 'ansi-c++-opt'.
25301         * modules/ansi-c++-opt: New file.
25302         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25303
25304         Document C++ namespace mode.
25305         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25306
25307         wctype: Avoid #define replacements in C++ mode.
25308         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25309         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25310         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25311         In C++, define a namespaced alias symbol.
25312         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25313         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25314         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25315         rule.
25316
25317         wchar: Avoid #define replacements in C++ mode.
25318         * lib/wchar.in.h: Include c++defs.h.
25319         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25320         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25321         symbol.
25322         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25323         * modules/wchar (Depends-on): Add c++defs.
25324         (Makefile.am): Update wchar.h rule.
25325
25326         unistd: Avoid #define replacements in C++ mode.
25327         * lib/unistd.in.h: Include c++defs.h.
25328         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25329         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25330         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25331         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25332         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25333         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25334         symbol.
25335         (environ): Update.
25336         * modules/unistd (Depends-on): Add c++defs.
25337         (Makefile.am): Update unistd.h rule.
25338
25339         time: Avoid #define replacements in C++ mode.
25340         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25341         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25342         define a namespaced alias symbol.
25343         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25344         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25345         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25346         * modules/time (Depends-on): Add c++defs, warn-on-use.
25347         (Makefile.am): Update time.h rule.
25348         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25349         * modules/nanosleep (configure.ac): Likewise.
25350         * modules/strptime (configure.ac): Likewise.
25351         * modules/timegm (configure.ac): Likewise.
25352
25353         sys_time: Avoid #define replacements in C++ mode.
25354         * lib/sys_time.in.h: Include c++defs.h.
25355         (gettimeofday): In C++, define a namespaced alias symbol.
25356         * modules/sys_time (Depends-on): Add c++defs.
25357         (Makefile.am): Update sys/time.h rule.
25358
25359         sys_stat: Avoid #define replacements in C++ mode.
25360         * lib/sys_stat.in.h: Include c++defs.h.
25361         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25362         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25363         namespaced alias symbol.
25364         In C++, define a namespaced alias symbol.
25365         * modules/sys_stat (Depends-on): Add c++defs.
25366         (Makefile.am): Update sys/stat.h rule.
25367
25368         sys_socket: Avoid #define replacements in C++ mode.
25369         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25370         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25371         definitions also when the system has a <sys/socket.h>.
25372         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25373         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25374         In C++, define a namespaced alias symbol.
25375         * modules/sys_socket (Depends-on): Add c++defs.
25376         (Makefile.am): Update sys/socket.h rule.
25377
25378         sys_select: Avoid #define replacements in C++ mode.
25379         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25380         definitions also when the system has a <sys/select.h>.
25381         (select): In C++, define a namespaced alias symbol.
25382         * modules/sys_select (Depends-on): Add c++defs.
25383         (Makefile.am): Update sys/select.h rule.
25384
25385         sys_ioctl: Avoid #define replacements in C++ mode.
25386         * lib/sys_ioctl.in.h: Include c++defs.h.
25387         (ioctl): In C++, define a namespaced alias symbol.
25388         * modules/sys_ioctl (Depends-on): Add c++defs.
25389         (Makefile.am): Update sys/ioctl.h rule.
25390
25391         string: Avoid #define replacements in C++ mode.
25392         * lib/string.in.h: Include c++defs.h.
25393         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25394         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25395         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25396         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25397         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25398         * modules/string (Depends-on): Add c++defs.
25399         (Makefile.am): Update string.h rule.
25400
25401         stdlib: Avoid #define replacements in C++ mode.
25402         * lib/stdlib.in.h: Include c++defs.h.
25403         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25404         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25405         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25406         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25407         symbol.
25408         * modules/stdlib (Depends-on): Add c++defs.
25409         (Makefile.am): Update stdlib.h rule.
25410
25411         stdio: Avoid #define replacements in C++ mode.
25412         * lib/stdio.in.h: Include c++defs.h.
25413         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25414         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25415         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25416         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25417         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25418         namespaced alias symbol.
25419         * modules/stdio (Depends-on): Add c++defs.
25420         (Makefile.am): Update stdio.h rule.
25421
25422         spawn: Avoid #define replacements in C++ mode.
25423         * lib/spawn.in.h: Include c++defs.h.
25424         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25425         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25426         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25427         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25428         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25429         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25430         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25431         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25432         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25433         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25434         In C++, define a namespaced alias symbol.
25435         * modules/spawn (Depends-on): Add c++defs.
25436         (Makefile.am): Update spawn.h rule.
25437
25438         signal: Avoid #define replacements in C++ mode.
25439         * lib/signal.in.h: Include c++defs.h.
25440         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25441         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25442         namespaced alias symbol.
25443         * modules/signal (Depends-on): Add c++defs.
25444         (Makefile.am): Update signal.h rule.
25445
25446         search: Avoid #define replacements in C++ mode.
25447         * lib/search.in.h: Include c++defs.h.
25448         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25449         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25450         symbol.
25451         * modules/search (Depends-on): Add c++defs.
25452         (Makefile.am): Update search.h rule.
25453
25454         math: Avoid #define replacements in C++ mode.
25455         * lib/math.in.h: Include c++defs.h.
25456         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25457         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25458         trunc, truncl): In C++, define a namespaced alias symbol.
25459         * modules/math (Depends-on): Add c++defs.
25460         (Makefile.am): Update math.h rule.
25461
25462         locale: Avoid #define replacements in C++ mode.
25463         * lib/locale.in.h: Include c++defs.h.
25464         (duplocale): In C++, define a namespaced alias symbol.
25465         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25466         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25467         * modules/locale (Depends-on): Add c++defs.
25468         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25469
25470         langinfo: Avoid #define replacements in C++ mode.
25471         * lib/langinfo.in.h: Include c++defs.h.
25472         (nl_langinfo): In C++, define a namespaced alias symbol.
25473         * modules/langinfo (Depends-on): Add c++defs.
25474         (Makefile.am): Update langinfo.h rule.
25475
25476         iconv-h: Avoid #define replacements in C++ mode.
25477         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25478         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25479         symbol.
25480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25481         whenever iconv is present.
25482         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25483         (Makefile.am): Update iconv.h rule.
25484
25485         glob: Avoid #define replacements in C++ mode.
25486         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25487         (_gl_glob_errfunc_fn): New type.
25488         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25489         symbol.
25490         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25491         (Makefile.am): Update glob.h rule.
25492
25493         fcntl-h: Avoid #define replacements in C++ mode.
25494         * lib/fcntl.in.h: Include c++defs.h.
25495         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25496         * modules/fcntl-h (Depends-on): Add c++defs.
25497         (Makefile.am): Update fcntl.h rule.
25498
25499         dirent: Avoid #define replacements in C++ mode.
25500         * lib/dirent.in.h: Include c++defs.h.
25501         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25502         namespaced alias symbol.
25503         (dirfd): Update declaration.
25504         * modules/dirent (Depends-on): Add c++defs.
25505         (Makefile.am): Update dirent.h rule.
25506
25507         ctype: Make it usable in C++ code.
25508         * lib/ctype.in.h: Include c++defs.h.
25509         (isblank): Declare as extern "C".
25510         * modules/ctype (Depends-on): Add c++defs.
25511         (Makefile.am): Update ctype.h rule.
25512
25513         New module 'c++defs'.
25514         * modules/c++defs: New file.
25515         * build-aux/c++defs.h: New file.
25516         Reported by John W. Eaton <jwe@gnu.org>.
25517
25518 2010-03-07  Bruno Haible  <bruno@clisp.org>
25519
25520         logb: Provide missing declaration for Cygwin.
25521         * lib/math.in.h (logb): New declaration.
25522         * m4/logb.m4: New file.
25523         * modules/logb (Files): Add m4/logb.m4.
25524         (Depends-on): Add math.
25525         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25526         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25528         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25529         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25530
25531 2010-03-07  Bruno Haible  <bruno@clisp.org>
25532
25533         Fix test-cond link error.
25534         * tests/test-cond.c: Include <stdio.h>.
25535
25536 2010-03-07  Bruno Haible  <bruno@clisp.org>
25537
25538         Fix test-dirent-safer link error.
25539         * modules/dirent-safer-tests (Makefile.am): Define
25540         test_dirent_safer_LDADD.
25541
25542 2010-03-07  Bruno Haible  <bruno@clisp.org>
25543
25544         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25545         among default module list.
25546
25547 2010-03-07  Bruno Haible  <bruno@clisp.org>
25548
25549         Fix link error on platforms with GNU libiconv.
25550         * modules/unistr/u8-strcoll-tests (Makefile): Define
25551         test_u8_strcoll_LDADD.
25552         * modules/unistr/u16-strcoll-tests (Makefile): Define
25553         test_u16_strcoll_LDADD.
25554         * modules/unistr/u32-strcoll-tests (Makefile): Define
25555         test_u32_strcoll_LDADD.
25556
25557 2010-03-07  Bruno Haible  <bruno@clisp.org>
25558
25559         Use POSIX declarations for socket functions.
25560         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25561         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25562         rpl_sendto): Change declaration to match POSIX.
25563         * lib/connect.c (rpl_connect): Likewise.
25564         * lib/accept.c (rpl_accept): Likewise.
25565         * lib/bind.c (rpl_bind): Likewise.
25566         * lib/getpeername.c (rpl_getpeername): Likewise.
25567         * lib/getsockname.c (rpl_getsockname): Likewise.
25568         * lib/recv.c (rpl_recv): Likewise.
25569         * lib/send.c (rpl_send): Likewise.
25570         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25571         * lib/sendto.c (rpl_sendto): Likewise.
25572
25573 2010-03-06  Bruno Haible  <bruno@clisp.org>
25574
25575         Clarify access, euidaccess, faccessat.
25576         * doc/posix-functions/faccessat.texi: Mention security problem under
25577         "Other problems", not "Portability problems".
25578         * doc/posix-functions/access.texi: Likewise. Mention a related security
25579         problem.
25580         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25581         * lib/euidaccess.c: Add comments about platforms.
25582         * lib/unistd.in.h (access, euidaccess): Add warnings.
25583
25584 2010-03-07  Bruno Haible  <bruno@clisp.org>
25585
25586         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25587         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25588         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25589         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25590         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25591         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25592         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25593         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25594         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25595         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25596         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25597         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25598         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25599         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25600         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25601         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25602         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25603         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25604         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25605         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25606         Likewise.
25607         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25608         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25609         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25610         Likewise.
25611         * tests/test-spawn.c (main): Make it work when
25612         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25613
25614 2010-03-07  Bruno Haible  <bruno@clisp.org>
25615
25616         Fix incorrect Makefile.am generation in German locale.
25617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25618         Execute sed command with character range in C locale.
25619
25620 2010-03-06  Bruno Haible  <bruno@clisp.org>
25621
25622         Tests for module 'iconv-h'.
25623         * modules/iconv-h-tests: New file.
25624         * tests/test-iconv-h.c: New file.
25625
25626         New module 'iconv-h'.
25627         * modules/iconv-h: New file.
25628         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25629         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25630         (configure.ac): Remove gl_ICONV_H.
25631         (Makefile.am): Remove rule for iconv.h.
25632
25633 2010-03-06  Bruno Haible  <bruno@clisp.org>
25634
25635         More consistent naming of *.m4 files.
25636         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25637         * modules/wctype (Files): Update.
25638
25639         More consistent naming of *.m4 files.
25640         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25641         * modules/wchar (Files): Update.
25642
25643 2010-03-06  Jim Meyering  <meyering@redhat.com>
25644
25645         euidaccess: relax license to LGPLv2+
25646         * modules/euidaccess (License): Relax to LGPLv2+.
25647
25648 2010-03-06  Bruno Haible  <bruno@clisp.org>
25649
25650         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25651         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25652         (Makefile.am): Augment lib_SOURCES instead.
25653
25654 2010-03-04  Jim Meyering  <meyering@redhat.com>
25655
25656         utime: remove obsolete module
25657         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25658         unnecessary for years, and has been marked as obsolete for 10 months.
25659         * modules/utime: Remove file.
25660         * lib/utime.c: Remove file.
25661         * m4/utime.m4: Remove file.
25662         * m4/utimes-null.m4: Remove file.
25663         * doc/posix-functions/utime.texi (utime): Remove reference to
25664         the module.  Move the sole "fixed by gnulib" item into the
25665         "problems not fixed by Gnulib" list.
25666         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25667
25668 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25669
25670         * modules/exit (License): Relax license to LGPLv2+.
25671         (Status): Mark as obsolete.
25672         * NEWS: Mention deprecated 'exit' module.
25673         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25674         of now obsolete 'exit'.
25675
25676 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25677
25678         fts-lgpl: remove unused module
25679         * modules/fts-lgpl: Remove.
25680         * MODULES.html.sh (func_all_modules): Adjust.
25681         * check-module (find_included_lib_files): Adjust.
25682         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25683
25684 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25685
25686         copy-acl: enhance Solaris ACL error handling
25687         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25688         * lib/set-mode-acl.c (qset_acl): Likewise.
25689
25690 2010-03-02  Bruno Haible  <bruno@clisp.org>
25691
25692         spawn: Don't override the system defined values on FreeBSD 8.
25693         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25694         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25695         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25696         if HAVE_POSIX_SPAWN is 1.
25697         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25698
25699 2010-03-01  Bruno Haible  <bruno@clisp.org>
25700
25701         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25702         regarding Automake.
25703
25704 2010-02-25  Bruno Haible  <bruno@clisp.org>
25705
25706         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25707         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25708         setting, not afterwards.
25709         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25710
25711 2010-02-24  Eric Blake  <eblake@redhat.com>
25712
25713         bootstrap, git-version-gen: use timestamp
25714         * build-aux/git-version-gen (scriptversion): Force UTC.
25715         * build-aux/bootstrap (scriptversion): New variable.
25716
25717         bootstrap: allow older git
25718         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25719         older than 1.6.4.  Requested by the libvirt project.
25720
25721 2010-02-23  Eric Blake  <eblake@redhat.com>
25722
25723         warn-on-use: work with old autoconf
25724         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25725         AS_VAR semantics of autoconf 2.60.
25726         Reported by Bruno Haible.
25727
25728         bootstrap: improve some comments
25729         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25730         clarification comments.
25731
25732         gettimeofday: provide correct function
25733         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25734         when replacement is declared, otherwise provide gettimeofday.
25735         Reported by Michael Goffioul.
25736
25737 2010-02-23  Jim Meyering  <meyering@redhat.com>
25738
25739         lib-ignore: relax license to "unlimited", not LGPLv2+
25740         * modules/lib-ignore (License): Relax to "unlimited".
25741
25742 2010-02-23  Jim Meyering  <meyering@redhat.com>
25743
25744         lib-ignore: relax license to LGPLv2+
25745         * modules/lib-ignore (License): Relax to LGPLv2+.
25746
25747 2010-02-22  Eric Blake  <eblake@redhat.com>
25748
25749         lseek: avoid bash 3.2 broken pipe bug
25750         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25751         warning from bash 3.2.
25752         Reported by Ben Pfaff, with analysis from Bruno Haible.
25753
25754         bootstrap: support non-FSF copyright holder
25755         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25756         bootstrap.conf override of COPYRIGHT_HOLDER.
25757         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25758
25759         bootstrap: interoperate with gettext 0.14.1
25760         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25761
25762         bootstrap: allow for alternate submodule location
25763         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25764         hardcoding submodule location.
25765         (gnulib_mk): Allow direct use of Makefile.am.
25766
25767         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25768         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25769         rather than reconfiguring where the submodule points.
25770
25771         gettimeofday: restore support for platforms that lack function
25772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25773         replacement if function is missing.
25774         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25775         * modules/sys_time (Makefile.am): Substitute it.
25776         * lib/sys_time.in.h (gettimeofday): Check it.
25777         Reported by Michael Goffioul.
25778
25779 2010-02-21  Bruno Haible  <bruno@clisp.org>
25780
25781         * lib/stdio.in.h (obstack_printf): Fix typo.
25782
25783 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25784
25785         vc-list-files: use bzr ls's -R option
25786         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25787         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25788
25789 2010-02-21  Jim Meyering  <meyering@redhat.com>
25790
25791         init.sh: fix EXEEXT shims to work also for names like test-prog
25792         * tests/init.sh: Re-exec a better shell, when needed.
25793         If the current shell lacks support for posix $(...), an init.sh-using
25794         test will now try to find a shell that supports that.  If EXEEXT is
25795         nonempty, we also require support for hyphen-in-alias-name and shell
25796         substitutions like ${var#glob}.  Failure to find such a shell results
25797         in a skipped test.
25798
25799 2010-02-21  Bruno Haible  <bruno@clisp.org>
25800
25801         Really work around around "broken pipe" error message from bash 3.2.
25802         * gnulib-tool (func_reset_sigpipe): Remove function.
25803         (echo): In bash 3.2, define to a function that uses printf.
25804         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25805
25806 2010-02-20  Bruno Haible  <bruno@clisp.org>
25807
25808         Restore support for automake 1.9.6 with autoconf 2.61.
25809         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25810         Reported by James Youngman <jay@gnu.org>.
25811
25812 2010-02-20  Bruno Haible  <bruno@clisp.org>
25813
25814         Improve *printf warning condition.
25815         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25816         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25817         and the function is overridden due to SIGPIPE emulation.
25818
25819 2010-02-20  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/stdio.in.h: Tweak comments.
25822
25823 2010-02-19  Bruno Haible  <bruno@clisp.org>
25824
25825         Make it easier to find modules. New gnulib-tool option '--find'.
25826         * gnulib-tool: New option --find.
25827         (func_usage): Document it.
25828         (func_sanitize_modulelist): New function, extracted from
25829         func_all_modules.
25830         (func_all_modules): Invoke it.
25831         * doc/gnulib-tool.texi (Which modules?): New node.
25832
25833 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25834
25835         * lib/sys_select.in.h: Provide select replacement even if
25836         sys/select.h exists on a system, for Interix.
25837
25838 2010-02-18  Jim Meyering  <meyering@redhat.com>
25839
25840         init.sh: don't use $(...) just yet
25841         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25842         to accommodate e.g., Solaris' /bin/sh.
25843
25844 2010-02-17  Bruno Haible  <bruno@clisp.org>
25845
25846         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25847         Reported by Ludovic Courtès <ludo@gnu.org>.
25848
25849 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25850
25851         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25852         linking with -lintl.
25853
25854 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25855
25856         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25857         if not provided by the system's netdb.h.  Reported by
25858         ludo@gnu.org (Ludovic Courtès).
25859
25860 2010-02-15  Jim Meyering  <meyering@redhat.com>
25861
25862         init.sh: improve portability and efficiency
25863         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25864         "dummy" in a for loop.
25865         Use '!', not '^' to select the complement of a character set used
25866         in a "case" statement.
25867         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25868         Suggestions from Eric Blake.
25869
25870         init.sh: automatically accommodate programs with the .exe suffix
25871         Automatically arrange for an invocation of "prog" to execute the
25872         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25873         may use the simpler "prog", yet still work when built on a system
25874         that requires specifying the added suffix.
25875         Do this by constructing a function named "prog" that invokes
25876         "prog.exe" for each .exe file in selected directories.
25877         * tests/init.sh (find_exe_basenames_): New function.
25878         (create_exe_shim_functions_): New function.
25879         (path_prepend_): Use it.
25880
25881         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25882         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25883         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25884
25885 2010-02-14  Jim Meyering  <meyering@redhat.com>
25886
25887         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25888         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25889         (sc_prohibit_hash_pjw_without_use): New rule.
25890
25891         maint.mk: allow the default upload destination dir to be overridden
25892         * top/maint.mk (upload_dest_dir_): Define with a default that
25893         preserves the status quo.
25894         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25895         Reported by Peter Simons.
25896
25897         maint.mk: prohibit inclusion of "hash.h" without_use
25898         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25899
25900 2010-02-10  Jim Meyering  <meyering@redhat.com>
25901
25902         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25903         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25904
25905 2010-02-09  Eric Blake  <ebb9@byu.net>
25906         and Bruno Haible  <bruno@clisp.org>
25907
25908         obstack-printf-posix: ensure declaration
25909         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25910         extracted from gl_FUNC_OBSTACK_PRINTF.
25911         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25912         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25913         Likewise.
25914         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25915         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25916         0.
25917
25918 2010-02-08  Bruno Haible  <bruno@clisp.org>
25919
25920         gnulib-tool: Fix typo in 2010-02-07 commit.
25921         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25922         Reported by Eric Blake.
25923
25924 2010-02-07  Bruno Haible  <bruno@clisp.org>
25925
25926         gnulib-tool: Fix up caching patches.
25927         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25928         option --no-cache. Use associative arrays when supported by the shell.
25929         (sed_comments): New variable.
25930         (modcache): Renamed from do_cache.
25931         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25932         abbreviate unnecessarily.
25933         (have_associative): New variable.
25934         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25935         way also for ksh and zsh.
25936         (func_init_sed_convert_to_cache_statements): New function, extracted
25937         from func_cache_lookup_module. Add support for associative arrays.
25938         Don't set the c_MODULE_cached variable here. Ignore all lines before
25939         the first field header. Remove only the final newline, not all trailing
25940         newlines. Support empty fields correctly. Limit the use of 'eval' to
25941         assignments.
25942         (func_get_description, func_get_status, func_get_notice,
25943         func_get_applicability, func_get_filelist, func_get_dependencies,
25944         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25945         func_get_automake_snippet, func_get_include_directive,
25946         func_get_link_directive, func_get_license, func_get_maintainer):
25947         Update documentation. List the unoptimized code first. Add support for
25948         associative arrays. Limit the use of 'eval' to assignments.
25949         (func_get_applicability): Undo stylistic pessimisations.
25950         (func_get_automake_snippet, func_get_include_directive): Reduce code
25951         duplication.
25952         (func_modules_transitive_closure, func_modules_add_dummy,
25953         func_modules_notice, func_modules_to_filelist, func_add_file,
25954         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25955         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25956         func_create_testdir, func_create_megatestdir): Update documentation.
25957
25958 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25959
25960         * gnulib-tool (func_cache_lookup_module): Store the module name
25961         belonging to the cache variable; error out if two different
25962         module names map to the same cache variable name.
25963
25964 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25965
25966         gnulib-tool: Make caching optional.
25967         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25968         Update matching short versions of --no-changelog.
25969         (func_usage): Update.
25970         (sed_extract_cache_prog): Renamed from ...
25971         (sed_extract_prog): ... this; revert to old extraction script.
25972         (func_get_description, func_get_status)
25973         (func_get_notice, func_get_applicability, func_get_filelist)
25974         (func_get_dependencies, func_get_autoconf_early_snippet)
25975         (func_get_autoconf_snippet, func_get_automake_snippet)
25976         (func_get_include_directive, func_get_link_directive)
25977         (func_get_license, func_get_maintainer): If $do_cache is false,
25978         use old, non-caching extraction scripts.
25979         Suggestion by Bruno Haible.
25980
25981 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25982
25983         gnulib-tool: cache module metainformation.
25984         * gnulib-tool (sed_extract_prog): Match newline before each
25985         header, and rewrite header to a shell variable suffix.
25986         (func_cache_var, func_cache_lookup_module): New functions,
25987         to turn a module name into a cache variable prefix, and to
25988         look up and cache module metainformation.
25989         (func_get_description, func_get_status)
25990         (func_get_notice, func_get_applicability, func_get_filelist)
25991         (func_get_dependencies, func_get_autoconf_early_snippet)
25992         (func_get_autoconf_snippet, func_get_automake_snippet)
25993         (func_get_include_directive, func_get_link_directive)
25994         (func_get_license, func_get_maintainer): Use
25995         func_cache_lookup_module.
25996
25997 2010-02-07  Bruno Haible  <bruno@clisp.org>
25998
25999         fnctl: Fix missing dependency.
26000         * modules/fcntl (Depends-on): Add getdtablesize.
26001         Reported by John W. Eaton <jwe@gnu.org>.
26002
26003 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26004
26005         Argp: fix recognition of short alias options.
26006
26007         * lib/argp-parse.c (convert_options): Fix improper use of
26008         `|' between character values.
26009         * tests/test-argp.c (group1_option): New alias option
26010         --read (-r).
26011         (group1_parser): Special handling for 'r'.
26012         (test15): New test case.
26013         (test_fun): Add test15.
26014         * tests/test-argp-2.sh: Update expected --help and --usage
26015         outputs.
26016
26017 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26018
26019         * tests/test-argp.c: Fix indentation.
26020
26021 2010-02-04  Eric Blake  <ebb9@byu.net>
26022
26023         gettimeofday: expose type of second argument
26024         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26025         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26026         * tests/test-gettimeofday.c: Use it to silence warning.
26027         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26028         the issue.
26029
26030 2010-02-03  Jim Meyering  <meyering@redhat.com>
26031
26032         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26033         * lib/regcomp.c (TYPE_SIGNED): Define.
26034         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26035
26036         regcomp.c: avoid a new -Wshadow warning
26037         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26038
26039 2010-02-01  Jim Meyering  <meyering@redhat.com>
26040
26041         removing useless parentheses in cpp #define directives
26042         For motivation, see commit c0221df4, "define STREQ(a,b)
26043         consistently, removing useless parentheses"
26044         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26045         * lib/mountlist.c (MNT_IGNORE): Likewise.
26046         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26047
26048 2010-02-01  Eric Blake  <ebb9@byu.net>
26049
26050         sys_time: use link-warning
26051         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26052         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26053         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26054         * modules/sys_time (Depends-on): Add warn-on-use.
26055         (Makefile.am): Always build replacement.
26056         (configure.ac): Update substitutions.
26057         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26058         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26059         bother with SYS_TIME_H.
26060         * modules/gettimeofday (configure.ac): Declare indicator.
26061         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26062         in use.
26063
26064         closein-tests: silence compiler warning
26065         * tests/test-closein.c (main): Ignore fread result.
26066         * modules/closein-tests (Depends-on): Add ignore-value.
26067
26068         tests: silence warning about system return
26069         * tests/test-areadlink-with-size.c (main): Ignore system result.
26070         * tests/test-areadlink.c (main): Likewise.
26071         * tests/test-areadlinkat-with-size.c (main): Likewise.
26072         * tests/test-areadlinkat.c (main): Likewise.
26073         * tests/test-canonicalize-lgpl.c (main): Likewise.
26074         * tests/test-canonicalize.c (main): Likewise.
26075         * tests/test-chown.c (main): Likewise.
26076         * tests/test-fchownat.c (main): Likewise.
26077         * tests/test-fdutimensat.c (main): Likewise.
26078         * tests/test-fstatat.c (main): Likewise.
26079         * tests/test-futimens.c (main): Likewise.
26080         * tests/test-lchown.c (main): Likewise.
26081         * tests/test-link.c (main): Likewise.
26082         * tests/test-linkat.c (main): Likewise.
26083         * tests/test-lstat.c (main): Likewise.
26084         * tests/test-mkdir.c (main): Likewise.
26085         * tests/test-mkdirat.c (main): Likewise.
26086         * tests/test-mkfifo.c (main): Likewise.
26087         * tests/test-mkfifoat.c (main): Likewise.
26088         * tests/test-mknod.c (main): Likewise.
26089         * tests/test-readlink.c (main): Likewise.
26090         * tests/test-remove.c (main): Likewise.
26091         * tests/test-rename.c (main): Likewise.
26092         * tests/test-renameat.c (main): Likewise.
26093         * tests/test-rmdir.c (main): Likewise.
26094         * tests/test-symlink.c (main): Likewise.
26095         * tests/test-symlinkat.c (main): Likewise.
26096         * tests/test-unlink.c (main): Likewise.
26097         * tests/test-unlinkat.c (main): Likewise.
26098         * tests/test-utimens.c (main): Likewise.
26099         * tests/test-utimensat.c (main): Likewise.
26100         * modules/areadlink-tests (Depends-on): Add ignore-value.
26101         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26102         * modules/areadlinkat-tests (Depends-on): Likewise.
26103         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26104         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26105         * modules/canonicalize-tests (Depends-on): Likewise.
26106         * modules/chown-tests (Depends-on): Likewise.
26107         * modules/fdutimensat-tests (Depends-on): Likewise.
26108         * modules/futimens-tests (Depends-on): Likewise.
26109         * modules/lchown-tests (Depends-on): Likewise.
26110         * modules/link-tests (Depends-on): Likewise.
26111         * modules/linkat-tests (Depends-on): Likewise.
26112         * modules/lstat-tests (Depends-on): Likewise.
26113         * modules/mkdir-tests (Depends-on): Likewise.
26114         * modules/mkfifo-tests (Depends-on): Likewise.
26115         * modules/mkfifoat-tests (Depends-on): Likewise.
26116         * modules/mknod-tests (Depends-on): Likewise.
26117         * modules/openat-tests (Depends-on): Likewise.
26118         * modules/readlink-tests (Depends-on): Likewise.
26119         * modules/remove-tests (Depends-on): Likewise.
26120         * modules/rename-tests (Depends-on): Likewise.
26121         * modules/renameat-tests (Depends-on): Likewise.
26122         * modules/rmdir-tests (Depends-on): Likewise.
26123         * modules/symlink-tests (Depends-on): Likewise.
26124         * modules/symlinkat-tests (Depends-on): Likewise.
26125         * modules/unlink-tests (Depends-on): Likewise.
26126         * modules/utimens-tests (Depends-on): Likewise.
26127         * modules/utimensat-tests (Depends-on): Likewise.
26128
26129 2010-01-31  Bruno Haible  <bruno@clisp.org>
26130
26131         Perform the same test for many <math.h> functions.
26132         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26133         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26134         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26135         of gl_MATHFUNC.
26136         * modules/acos (configure.ac): Likewise.
26137         * modules/asin (configure.ac): Likewise.
26138         * modules/atan (configure.ac): Likewise.
26139         * modules/atan2 (configure.ac): Likewise.
26140         * modules/cbrt (configure.ac): Likewise.
26141         * modules/copysign (configure.ac): Likewise.
26142         * modules/cos (configure.ac): Likewise.
26143         * modules/cosh (configure.ac): Likewise.
26144         * modules/erf (configure.ac): Likewise.
26145         * modules/erfc (configure.ac): Likewise.
26146         * modules/exp (configure.ac): Likewise.
26147         * modules/fmod (configure.ac): Likewise.
26148         * modules/hypot (configure.ac): Likewise.
26149         * modules/j0 (configure.ac): Likewise.
26150         * modules/j1 (configure.ac): Likewise.
26151         * modules/jn (configure.ac): Likewise.
26152         * modules/lgamma (configure.ac): Likewise.
26153         * modules/log (configure.ac): Likewise.
26154         * modules/log10 (configure.ac): Likewise.
26155         * modules/log1p (configure.ac): Likewise.
26156         * modules/pow (configure.ac): Likewise.
26157         * modules/remainder (configure.ac): Likewise.
26158         * modules/sin (configure.ac): Likewise.
26159         * modules/sinh (configure.ac): Likewise.
26160         * modules/tan (configure.ac): Likewise.
26161         * modules/tanh (configure.ac): Likewise.
26162         * modules/y0 (configure.ac): Likewise.
26163         * modules/y1 (configure.ac): Likewise.
26164         * modules/yn (configure.ac): Likewise.
26165         Suggested by Paolo Bonzini.
26166
26167 2010-01-31  Bruno Haible  <bruno@clisp.org>
26168
26169         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26170
26171 2010-01-31  Bruno Haible  <bruno@clisp.org>
26172
26173         Work around getdelim() bug on FreeBSD 8.0.
26174         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26175         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26176         not work.
26177         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26178         is 1.
26179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26180         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26181         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26182         a non-zero size.
26183         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26184
26185 2010-01-31  Bruno Haible  <bruno@clisp.org>
26186
26187         Work around getline() bug on FreeBSD 8.0.
26188         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26189         and a non-zero size.
26190         * tests/test-getline.c (main): Likewise.
26191         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26192         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26193
26194 2010-01-28  Eric Blake  <ebb9@byu.net>
26195
26196         regex: fix build failure
26197         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26198         platforms.
26199
26200 2010-01-28  Jim Meyering  <meyering@redhat.com>
26201
26202         regex: do not ignore memory allocation failure
26203         * lib/regex_internal.c (create_cd_newstate): Detect
26204         re_node_set_init_copy failure.   Extracted from glibc commit
26205         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26206
26207         regex: sync more white-space changes from libc
26208         * lib/regex_internal.c: White-space only changes.
26209         * lib/regexec.c: Likewise.
26210
26211         regex: add many uses of __attribute_warn_unused_result__
26212         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26213         * lib/regexec.c: Likewise.
26214         Extracted from a messy glibc commit.
26215
26216         regcomp.c: spelling and merge-artifact from glibc
26217         * lib/regcomp.c: Merge remainder of glibc's
26218         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26219
26220         regcomp.c: sync white-space changes from glibc
26221         * lib/regcomp.c: Merge to accommodate white space
26222         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26223
26224         regcomp.c: do not ignore internal return values
26225         * lib/regcomp.c: Do not ignore internal return values.
26226         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26227         but without its white-space changes and spelling fixes.
26228
26229         regex_internal.h: define __attribute_warn_unused_result__
26230         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26231
26232         maint: add a syntax-check rule to check for vulnerable Makefile.in
26233         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26234
26235 2010-01-27  Jim Meyering  <meyering@redhat.com>
26236
26237         ncftpput-ftp: clean up spaces
26238         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26239         Remove trailing blanks.
26240
26241 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26242
26243         * build-aux/git-version-gen: Fix copyright statement.
26244         * build-aux/gnupload: Likewise.
26245         * tests/test-arcfour.c: Likewise.
26246         * tests/test-arctwo.c: Likewise.
26247         * tests/test-count-one-bits.c: Likewise.
26248         * tests/test-crc.c: Likewise.
26249         * tests/test-des.c: Likewise.
26250         * tests/test-gc-arcfour.c: Likewise.
26251         * tests/test-gc-arctwo.c: Likewise.
26252         * tests/test-gc-des.c: Likewise.
26253         * tests/test-gc-hmac-md5.c: Likewise.
26254         * tests/test-gc-hmac-sha1.c: Likewise.
26255         * tests/test-gc-md2.c: Likewise.
26256         * tests/test-gc-md4.c: Likewise.
26257         * tests/test-gc-md5.c: Likewise.
26258         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26259         * tests/test-gc-rijndael.c: Likewise.
26260         * tests/test-gc-sha1.c: Likewise.
26261         * tests/test-gc.c: Likewise.
26262         * tests/test-gethostname.c: Likewise.
26263         * tests/test-gettimeofday.c: Likewise.
26264         * tests/test-hash.c: Likewise.
26265         * tests/test-hmac-md5.c: Likewise.
26266         * tests/test-hmac-sha1.c: Likewise.
26267         * tests/test-md2.c: Likewise.
26268         * tests/test-md4.c: Likewise.
26269         * tests/test-md5.c: Likewise.
26270         * tests/test-memchr.c: Likewise.
26271         * tests/test-memchr2.c: Likewise.
26272         * tests/test-memcmp.c: Likewise.
26273         * tests/test-memmem.c: Likewise.
26274         * tests/test-memrchr.c: Likewise.
26275         * tests/test-rawmemchr.c: Likewise.
26276         * tests/test-read-file.c: Likewise.
26277         * tests/test-rijndael.c: Likewise.
26278         * tests/test-sockets.c: Likewise.
26279         * tests/test-strchrnul.c: Likewise.
26280         * tests/test-strstr.c: Likewise.
26281         * tests/test-strtod.c: Likewise.
26282         * build-aux/ncftpput-ftp: Likewise.
26283
26284 2010-01-26  Eric Blake  <ebb9@byu.net>
26285
26286         ignore-value: update recommended header name
26287         * modules/ignore-value (Include): Only use <> for headers that
26288         exist in glibc.
26289
26290 2010-01-26  Jim Meyering  <meyering@redhat.com>
26291
26292         test-userspec.c: avoid compiler warnings
26293         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26294         and "initialization discards qualifiers..." warnings.
26295         Put the first "uid" in its own scope, and make char* members "const".
26296
26297 2010-01-25  Bruno Haible  <bruno@clisp.org>
26298
26299         gnulib-tool: Make warning diagnostics consistent.
26300         * gnulib-tool (func_warning): New function.
26301         Use it everywhere where gnulib-tool produces output to stderr and it is
26302         not a fatal error.
26303
26304 2010-01-25  Bruno Haible  <bruno@clisp.org>
26305
26306         Fix test dependencies.
26307         * modules/xstrtol-tests (Depends-on): Add inttypes.
26308         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26309
26310 2010-01-25 Pádraig Brady <P@draigBrady.com>
26311
26312         syntax-check: detect incorrect boolean macro values in config.h
26313         * modules/maintainer-makefile (configure.ac): Parameterize the location
26314         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26315         The logic is from Eric Blake and the location indicated by Jim Meyering.
26316         Note the more natural CONFIG_HEADER name is prohibited by automake
26317         for backwards compatibility reasons.
26318         * top/maint.mk (sc_Wundef_boolean): New rule.
26319
26320 2010-01-25  Jim Meyering  <meyering@redhat.com>
26321
26322         bootstrap: detect MacOS 10.6's shasum, too
26323         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26324         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26325
26326 2010-01-23  Jim Meyering  <meyering@redhat.com>
26327
26328         xstrtoll: new module
26329         * modules/xstrtoll: New file.
26330         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26331         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26332         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26333         ./configure fails if you use this module and lack "long long".
26334         * modules/xstrtoll-tests: New module.
26335         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26336         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26337         new init.sh-based test framework.
26338
26339 2010-01-24  Bruno Haible  <bruno@clisp.org>
26340
26341         Tests for module 'yn'.
26342         * modules/yn-tests: New file.
26343         * tests/test-yn.c: New file.
26344
26345         Tests for module 'y1'.
26346         * modules/y1-tests: New file.
26347         * tests/test-y1.c: New file.
26348
26349         Tests for module 'y0'.
26350         * modules/y0-tests: New file.
26351         * tests/test-y0.c: New file.
26352
26353         Tests for module 'tanh'.
26354         * modules/tanh-tests: New file.
26355         * tests/test-tanh.c: New file.
26356
26357         Tests for module 'tan'.
26358         * modules/tan-tests: New file.
26359         * tests/test-tan.c: New file.
26360
26361         Tests for module 'sqrt'.
26362         * modules/sqrt-tests: New file.
26363         * tests/test-sqrt.c: New file.
26364
26365         Tests for module 'sinh'.
26366         * modules/sinh-tests: New file.
26367         * tests/test-sinh.c: New file.
26368
26369         Tests for module 'sin'.
26370         * modules/sin-tests: New file.
26371         * tests/test-sin.c: New file.
26372
26373         Tests for module 'rint'.
26374         * modules/rint-tests: New file.
26375         * tests/test-rint.c: New file.
26376
26377         Tests for module 'remainder'.
26378         * modules/remainder-tests: New file.
26379         * tests/test-remainder.c: New file.
26380
26381         Tests for module 'pow'.
26382         * modules/pow-tests: New file.
26383         * tests/test-pow.c: New file.
26384
26385         Tests for module 'nextafter'.
26386         * modules/nextafter-tests: New file.
26387         * tests/test-nextafter.c: New file.
26388
26389         Tests for module 'modf'.
26390         * modules/modf-tests: New file.
26391         * tests/test-modf.c: New file.
26392
26393         Tests for module 'logb'.
26394         * modules/logb-tests: New file.
26395         * tests/test-logb.c: New file.
26396
26397         Tests for module 'log1p'.
26398         * modules/log1p-tests: New file.
26399         * tests/test-log1p.c: New file.
26400
26401         Tests for module 'log10'.
26402         * modules/log10-tests: New file.
26403         * tests/test-log10.c: New file.
26404
26405         Tests for module 'log'.
26406         * modules/log-tests: New file.
26407         * tests/test-log.c: New file.
26408
26409         Tests for module 'lgamma'.
26410         * modules/lgamma-tests: New file.
26411         * tests/test-lgamma.c: New file.
26412
26413         Tests for module 'ldexp'.
26414         * modules/ldexp-tests: New file.
26415         * tests/test-ldexp.c: New file.
26416
26417         Tests for module 'jn'.
26418         * modules/jn-tests: New file.
26419         * tests/test-jn.c: New file.
26420
26421         Tests for module 'j1'.
26422         * modules/j1-tests: New file.
26423         * tests/test-j1.c: New file.
26424
26425         Tests for module 'j0'.
26426         * modules/j0-tests: New file.
26427         * tests/test-j0.c: New file.
26428
26429         Tests for module 'hypot'.
26430         * modules/hypot-tests: New file.
26431         * tests/test-hypot.c: New file.
26432
26433         Tests for module 'fmod'.
26434         * modules/fmod-tests: New file.
26435         * tests/test-fmod.c: New file.
26436
26437         Tests for module 'fabs'.
26438         * modules/fabs-tests: New file.
26439         * tests/test-fabs.c: New file.
26440
26441         Tests for module 'exp'.
26442         * modules/exp-tests: New file.
26443         * tests/test-exp.c: New file.
26444
26445         Tests for module 'erfc'.
26446         * modules/erfc-tests: New file.
26447         * tests/test-erfc.c: New file.
26448
26449         Tests for module 'erf'.
26450         * modules/erf-tests: New file.
26451         * tests/test-erf.c: New file.
26452
26453         Tests for module 'cosh'.
26454         * modules/cosh-tests: New file.
26455         * tests/test-cosh.c: New file.
26456
26457         Tests for module 'cos'.
26458         * modules/cos-tests: New file.
26459         * tests/test-cos.c: New file.
26460
26461         Tests for module 'copysign'.
26462         * modules/copysign-tests: New file.
26463         * tests/test-copysign.c: New file.
26464
26465         Tests for module 'cbrt'.
26466         * modules/cbrt-tests: New file.
26467         * tests/test-cbrt.c: New file.
26468
26469         Tests for module 'atan2'.
26470         * modules/atan2-tests: New file.
26471         * tests/test-atan2.c: New file.
26472
26473         Tests for module 'atan'.
26474         * modules/atan-tests: New file.
26475         * tests/test-atan.c: New file.
26476
26477         Tests for module 'asin'.
26478         * modules/asin-tests: New file.
26479         * tests/test-asin.c: New file.
26480
26481         Tests for module 'acos'.
26482         * modules/acos-tests: New file.
26483         * tests/test-acos.c: New file.
26484
26485 2010-01-24  Bruno Haible  <bruno@clisp.org>
26486
26487         Fix tests for common <math.h> functions.
26488         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26489         code snippet that references the function pointer, rather than merely
26490         calling the function. Substitute the FUNC_LIBM variable.
26491         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26492         * modules/acos (configure.ac): Likewise.
26493         * modules/asin (configure.ac): Likewise.
26494         * modules/atan (configure.ac): Likewise.
26495         * modules/atan2 (configure.ac): Likewise.
26496         * modules/cbrt (configure.ac): Likewise.
26497         * modules/copysign (configure.ac): Likewise.
26498         * modules/cos (configure.ac): Likewise.
26499         * modules/cosh (configure.ac): Likewise.
26500         * modules/erf (configure.ac): Likewise.
26501         * modules/erfc (configure.ac): Likewise.
26502         * modules/exp (configure.ac): Likewise.
26503         * modules/fabs (configure.ac): Likewise.
26504         * modules/fmod (configure.ac): Likewise.
26505         * modules/hypot (configure.ac): Likewise.
26506         * modules/j0 (configure.ac): Likewise.
26507         * modules/j1 (configure.ac): Likewise.
26508         * modules/jn (configure.ac): Likewise.
26509         * modules/ldexp (configure.ac): Likewise.
26510         * modules/lgamma (configure.ac): Likewise.
26511         * modules/log (configure.ac): Likewise.
26512         * modules/log10 (configure.ac): Likewise.
26513         * modules/log1p (configure.ac): Likewise.
26514         * modules/logb (configure.ac): Likewise.
26515         * modules/modf (configure.ac): Likewise.
26516         * modules/nextafter (configure.ac): Likewise.
26517         * modules/pow (configure.ac): Likewise.
26518         * modules/remainder (configure.ac): Likewise.
26519         * modules/rint (configure.ac): Likewise.
26520         * modules/sin (configure.ac): Likewise.
26521         * modules/sinh (configure.ac): Likewise.
26522         * modules/tan (configure.ac): Likewise.
26523         * modules/tanh (configure.ac): Likewise.
26524         * modules/y0 (configure.ac): Likewise.
26525         * modules/y1 (configure.ac): Likewise.
26526         * modules/yn (configure.ac): Likewise.
26527
26528 2010-01-24  Bruno Haible  <bruno@clisp.org>
26529
26530         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26531         * tests/test-acosl.c (x): New variable.
26532         (main): Store argument in x and fetch it from x.
26533         * tests/test-asinl.c (x): New variable.
26534         (main): Store argument in x and fetch it from x.
26535         * tests/test-atanl.c (x): New variable.
26536         (main): Store argument in x and fetch it from x.
26537         * tests/test-cosl.c (x): New variable.
26538         (main): Store argument in x and fetch it from x.
26539         * tests/test-expl.c (x): New variable.
26540         (main): Store argument in x and fetch it from x.
26541         * tests/test-logl.c (x): New variable.
26542         (main): Store argument in x and fetch it from x.
26543         * tests/test-sinl.c (x): New variable.
26544         (main): Store argument in x and fetch it from x.
26545         * tests/test-sqrtl.c (x): New variable.
26546         (main): Store argument in x and fetch it from x.
26547         * tests/test-tanl.c (x): New variable.
26548         (main): Store argument in x and fetch it from x.
26549
26550 2010-01-24  Bruno Haible  <bruno@clisp.org>
26551
26552         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26553         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26554         assignments to the initial TESTS_ENVIRONMENT.
26555         * doc/gnulib.texi (Unit test modules): Document it.
26556         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26557         TESTS_ENVIRONMENT.
26558         * modules/btowc-tests (Makefile.am): Likewise.
26559         * modules/c-stack-tests (Makefile.am): Likewise.
26560         * modules/c-strcase-tests (Makefile.am): Likewise.
26561         * modules/copy-file-tests (Makefile.am): Likewise.
26562         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26563         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26564         * modules/mbrtowc-tests (Makefile.am): Likewise.
26565         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26566         * modules/mbscasestr-tests (Makefile.am): Likewise.
26567         * modules/mbschr-tests (Makefile.am): Likewise.
26568         * modules/mbscspn-tests (Makefile.am): Likewise.
26569         * modules/mbsinit-tests (Makefile.am): Likewise.
26570         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26571         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26572         * modules/mbspbrk-tests (Makefile.am): Likewise.
26573         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26574         * modules/mbsrchr-tests (Makefile.am): Likewise.
26575         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26576         * modules/mbsspn-tests (Makefile.am): Likewise.
26577         * modules/mbsstr-tests (Makefile.am): Likewise.
26578         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26579         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26580         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26581         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26582         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26583         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26584         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26585         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26586         * modules/wcrtomb-tests (Makefile.am): Likewise.
26587         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26588         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26589         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26590         assignments from TESTS_ENVIRONMENT.
26591         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26592         augmentation.
26593         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26594         * modules/atexit-tests (Makefile.am): Likewise.
26595         * modules/binary-io-tests (Makefile.am): Likewise.
26596         * modules/closein-tests (Makefile.am): Likewise.
26597         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26598         * modules/exclude-tests (Makefile.am): Likewise.
26599         * modules/fflush-tests (Makefile.am): Likewise.
26600         * modules/fpending-tests (Makefile.am): Likewise.
26601         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26602         * modules/freadahead-tests (Makefile.am): Likewise.
26603         * modules/freadptr-tests (Makefile.am): Likewise.
26604         * modules/freadseek-tests (Makefile.am): Likewise.
26605         * modules/fseek-tests (Makefile.am): Likewise.
26606         * modules/fseeko-tests (Makefile.am): Likewise.
26607         * modules/ftell-tests (Makefile.am): Likewise.
26608         * modules/ftello-tests (Makefile.am): Likewise.
26609         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26610         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26611         * modules/lseek-tests (Makefile.am): Likewise.
26612         * modules/parse-duration-tests (Makefile.am): Likewise.
26613         * modules/perror-tests (Makefile.am): Likewise.
26614         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26615         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26616         * modules/pipe-tests (Makefile.am): Likewise.
26617         * modules/pread-tests (Makefile.am): Likewise.
26618         * modules/printf-posix-tests (Makefile.am): Likewise.
26619         * modules/select-tests (Makefile.am): Likewise.
26620         * modules/sigpipe-tests (Makefile.am): Likewise.
26621         * modules/tsearch-tests (Makefile.am): Likewise.
26622         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26623         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26624         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26625         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26626         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26627         * modules/version-etc-tests (Makefile.am): Likewise.
26628         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26629         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26630         * modules/xalloc-die-tests (Makefile.am): Likewise.
26631         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26632         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26633         * modules/xstrtol-tests (Makefile.am): Likewise.
26634         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26635         * modules/yesno-tests (Makefile.am): Likewise.
26636         Suggested by Jim Meyering.
26637
26638 2010-01-24  Bruno Haible  <bruno@clisp.org>
26639
26640         More documentation.
26641         * doc/gnulib.texi (Writing modules): New chapter.
26642         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26643         the new chapter.
26644
26645 2010-01-24  Jim Meyering  <meyering@redhat.com>
26646
26647         maint.mk: do not prepend "./" after filtering
26648         * top/maint.mk (_prepend_srcdir_prefix): New variable
26649         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26650         "./" when $(srcdir) is ".".
26651
26652         define STREQ(a,b) consistently, removing useless parentheses
26653         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26654         since the only risk is that "a" or "b" contains an unparenthesized
26655         comma, but if either did that, STREQ would have 3 or more arguments.
26656         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26657         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26658         * lib/hash-triple.c (STREQ): Likewise.
26659         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26660         * lib/getugroups.c (STREQ): Likewise.
26661
26662 2010-01-23  Jim Meyering  <meyering@redhat.com>
26663
26664         maint.mk: fix syntax-check in a non-srcdir build directory
26665         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26666         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26667
26668 2010-01-22  Jim Meyering  <meyering@redhat.com>
26669
26670         userspec: add unit tests
26671         * tests/test-userspec.c: New file.
26672         * modules/userspec-tests: Likewise.
26673
26674 2010-01-21  Jim Meyering  <meyering@redhat.com>
26675
26676         maint.mk: handle source file names containing "." robustly
26677         * top/maint.mk (_dot_escaped_srcdir): Define.
26678         (VC_LIST): Use it in LHS of sed substitution.
26679
26680 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26681
26682         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26683         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26684         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26685         from a non-srcdir build.
26686
26687 2010-01-20  Eric Blake  <ebb9@byu.net>
26688
26689         warn-on-use: use instead of link-warning
26690         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26691         * modules/unistd (Depends-on, Makefile.am): Likewise.
26692         * modules/arpa_inet (Depends-on): Replace link-warning with
26693         warn-on-use.
26694         (Makefile.am): Update rules accordingly.
26695         * modules/ctype (Depends-on, Makefile.am): Likewise.
26696         * modules/dirent (Depends-on, Makefile.am): Likewise.
26697         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26698         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26699         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26700         * modules/locale (Depends-on, Makefile.am): Likewise.
26701         * modules/math (Depends-on, Makefile.am): Likewise.
26702         * modules/search (Depends-on, Makefile.am): Likewise.
26703         * modules/signal (Depends-on, Makefile.am): Likewise.
26704         * modules/spawn (Depends-on, Makefile.am): Likewise.
26705         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26706         * modules/string (Depends-on, Makefile.am): Likewise.
26707         * modules/strings (Depends-on, Makefile.am): Likewise.
26708         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26709         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26710         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26711         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26712         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26713         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26714         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26715         * modules/wchar (Depends-on, Makefile.am): Likewise.
26716         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26717         should be poisoned.
26718         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26719         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26720         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26721         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26722         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26723         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26724         * m4/math_h.m4 (gl_MATH_H): Likewise.
26725         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26726         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26727         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26728         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26729         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26730         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26731         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26732         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26733         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26737         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26738         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26739         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26740         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26741         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26742         GL_LINK_WARNING.
26743         * lib/ctype.in.h: Likewise.
26744         * lib/dirent.in.h: Likewise.
26745         * lib/fcntl.in.h: Likewise.
26746         * lib/inttypes.in.h: Likewise.
26747         * lib/langinfo.in.h: Likewise.
26748         * lib/locale.in.h: Likewise.
26749         * lib/math.in.h: Likewise.
26750         * lib/search.in.h: Likewise.
26751         * lib/signal.in.h: Likewise.
26752         * lib/spawn.in.h: Likewise.
26753         * lib/stdio.in.h: Likewise.
26754         * lib/stdlib.in.h: Likewise.
26755         * lib/string.in.h: Likewise.
26756         * lib/strings.in.h: Likewise.
26757         * lib/sys_file.in.h: Likewise.
26758         * lib/sys_ioctl.in.h: Likewise.
26759         * lib/sys_select.in.h: Likewise.
26760         * lib/sys_socket.in.h: Likewise.
26761         * lib/sys_stat.in.h: Likewise.
26762         * lib/sys_times.in.h: Likewise.
26763         * lib/sys_utsname.in.h: Likewise.
26764         * lib/unistd.in.h: Likewise.
26765         * lib/wchar.in.h: Likewise.
26766
26767 2010-01-20  Bruno Haible  <bruno@clisp.org>
26768
26769         Avoid duplicate -lm.
26770         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26771         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26772         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26773         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26774         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26775         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26776         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26777         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26778         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26779         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26780         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26781         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26782         Reported by Paolo Bonzini.
26783
26784 2010-01-19  Bruno Haible  <bruno@clisp.org>
26785
26786         langinfo, nl_langinfo: Relicense under LGPLv2+.
26787         * modules/langinfo (License): Change to LGPLv2+.
26788         * modules/nl_langinfo (License): Likewise.
26789         Patch by David Lutterkort <lutter@redhat.com>.
26790
26791 2010-01-19  Bruno Haible  <bruno@clisp.org>
26792
26793         Avoid compilation error with cc on OSF/1 5.1.
26794         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26795         statement, not before.
26796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26797
26798 2010-01-18  Bruno Haible  <bruno@clisp.org>
26799
26800         Avoid a link error due to the __printf__ symbol.
26801         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26802         and 2.6.x.
26803         (__format__, __printf__): Remove definitions.
26804         * lib/argp-fmtstream.h: Likewise.
26805         * lib/argp.h: Likewise.
26806         * lib/error.h: Likewise.
26807         * lib/vasnprintf.h: Likewise.
26808         * lib/xprintf.h: Likewise.
26809         * lib/xvasprintf.h: Likewise.
26810         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26811
26812 2010-01-18  Bruno Haible  <bruno@clisp.org>
26813
26814         Tests for module 'tanl'.
26815         * modules/tanl-tests: New file.
26816         * tests/test-tanl.c: New file.
26817
26818         Tests for module 'sqrtl'.
26819         * modules/sqrtl-tests: New file.
26820         * tests/test-sqrtl.c: New file.
26821
26822         Tests for module 'sinl'.
26823         * modules/sinl-tests: New file.
26824         * tests/test-sinl.c: New file.
26825
26826         Tests for module 'logl'.
26827         * modules/logl-tests: New file.
26828         * tests/test-logl.c: New file.
26829
26830         Tests for module 'expl'.
26831         * modules/expl-tests: New file.
26832         * tests/test-expl.c: New file.
26833
26834         Tests for module 'cosl'.
26835         * modules/cosl-tests: New file.
26836         * tests/test-cosl.c: New file.
26837
26838         Tests for module 'atanl'.
26839         * modules/atanl-tests: New file.
26840         * tests/test-atanl.c: New file.
26841
26842         Tests for module 'asinl'.
26843         * modules/asinl-tests: New file.
26844         * tests/test-asinl.c: New file.
26845
26846         Tests for module 'acosl'.
26847         * modules/acosl-tests: New file.
26848         * tests/test-acosl.c: New file.
26849
26850         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26851         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26852         tanl): Use the standard gnulib idiom.
26853         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26854         * lib/sinl.c: Likewise.
26855         * lib/tanl.c: Don't include trigl.c.
26856         (kernel_tanl): Make static.
26857         * lib/sincosl.c: Include trigl.h first.
26858         * lib/trigl.c: Likewise.
26859         * m4/acosl.m4: New file.
26860         * m4/asinl.m4: New file.
26861         * m4/atanl.m4: New file.
26862         * m4/cosl.m4: New file.
26863         * m4/expl.m4: New file.
26864         * m4/logl.m4: New file.
26865         * m4/sinl.m4: New file.
26866         * m4/sqrtl.m4: New file.
26867         * m4/tanl.m4: New file.
26868         * m4/mathl.m4: Remove file.
26869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26870         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26871         Don't initialize GNULIB_MATHL.
26872         * modules/acosl: New file.
26873         * modules/asinl: New file.
26874         * modules/atanl: New file.
26875         * modules/cosl: New file.
26876         * modules/expl: New file.
26877         * modules/logl: New file.
26878         * modules/sinl: New file.
26879         * modules/sqrtl: New file.
26880         * modules/tanl: New file.
26881         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26882         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26883         substitute GNULIB_MATHL.
26884         * modules/mathl: Rewritten.
26885         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26886         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26887         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26888         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26889         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26890         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26891         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26892         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26893         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26894
26895 2010-01-18  Bruno Haible  <bruno@clisp.org>
26896
26897         sqrt: Make gl_FUNC_SQRT requirable.
26898         * m4/sqrt.m4: New file.
26899         * modules/sqrt (Files): Add it.
26900         (configure.ac): Invoke gl_FUNC_SQRT.
26901
26902 2010-01-18  Bruno Haible  <bruno@clisp.org>
26903
26904         New modules for common <math.h> functions.
26905         * m4/mathfunc.m4: New file.
26906         * modules/acos: New file.
26907         * modules/asin: New file.
26908         * modules/atan: New file.
26909         * modules/atan2: New file.
26910         * modules/cbrt: New file.
26911         * modules/copysign: New file.
26912         * modules/cos: New file.
26913         * modules/cosh: New file.
26914         * modules/erf: New file.
26915         * modules/erfc: New file.
26916         * modules/exp: New file.
26917         * modules/fabs: New file.
26918         * modules/fmod: New file.
26919         * modules/hypot: New file.
26920         * modules/j0: New file.
26921         * modules/j1: New file.
26922         * modules/jn: New file.
26923         * modules/ldexp: New file.
26924         * modules/lgamma: New file.
26925         * modules/log: New file.
26926         * modules/log10: New file.
26927         * modules/log1p: New file.
26928         * modules/logb: New file.
26929         * modules/modf: New file.
26930         * modules/nextafter: New file.
26931         * modules/pow: New file.
26932         * modules/remainder: New file.
26933         * modules/rint: New file.
26934         * modules/sin: New file.
26935         * modules/sinh: New file.
26936         * modules/sqrt: New file.
26937         * modules/tan: New file.
26938         * modules/tanh: New file.
26939         * modules/y0: New file.
26940         * modules/y1: New file.
26941         * modules/yn: New file.
26942         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26943         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26944         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26945         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26946         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26947         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26948         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26949         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26950         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26951         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26952         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26953         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26954         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26955         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26956         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26957         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26958         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26959         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26960         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26961         * doc/posix-functions/log.texi: Mention the 'log' module.
26962         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26963         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26964         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26965         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26966         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26967         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26968         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26969         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26970         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26971         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26972         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26973         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26974         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26975         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26976         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26977         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26978
26979 2010-01-18  Jim Meyering  <meyering@redhat.com>
26980
26981         ignore-value: relax license to LGPLv2+
26982         * modules/ignore-value (License): Relax to LGPLv2+.
26983
26984         getdate: don't leak when TZ contains two or more '"'s
26985         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26986         double quote in TZ after the first one.
26987
26988         readtokens: do not leak internal token_lengths buffer
26989         * lib/readtokens.c (readtokens): Free the local, lengths,
26990         when the supplied "token_lengths" parameter is NULL.
26991
26992 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26993
26994         Fix a couple of missing LIBTHREAD link failures on AIX.
26995         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26996         $(LIBTHREAD).
26997         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26998
26999         Link test-poll against INET_PTON_LIB.
27000         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27001         for inet_pton on Solaris 10.
27002
27003 2010-01-17  Bruno Haible  <bruno@clisp.org>
27004
27005         unistdio/*-sprintf: Fix typo in module description.
27006         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27007         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27008         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27009         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27010         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27011         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27012         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27014
27015 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27016
27017         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27018         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27019         variables in shell case patterns, for AIX and HP-UX ksh.
27020
27021         Split large sed scripts, for HP-UX sed.
27022         * modules/stdio: Split sed scripts around 50 sed commands,
27023         to avoid HP-UX limit of 99 commands, in the near future.
27024         * modules/string: Likewise.
27025         * modules/unistd: Likewise.
27026
27027         gnulib-tool: avoid writing in the current directory.
27028         * gnulib-tool (func_emit_lib_Makefile_am)
27029         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27030         not in the current directory, so concurrent gnulib-tool
27031         instances do not interfere.
27032
27033 2010-01-16  Jim Meyering  <meyering@redhat.com>
27034
27035         doc: update users.txt
27036         * users.txt: Add grep.
27037         (diffutils, gzip): Update URLs.
27038
27039 2010-01-12  Bruno Haible  <bruno@clisp.org>
27040
27041         posix_spawn: Avoid test failure on Cygwin.
27042         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27043         characters.
27044         Reported by Simon Josefsson.
27045
27046 2010-01-12  Bruno Haible  <bruno@clisp.org>
27047
27048         * tests/test-cond.c (main): When skipping the test, show the reason.
27049
27050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27051
27052         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27053
27054 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27055
27056         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27057         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27058
27059 2010-01-12  Eric Blake  <ebb9@byu.net>
27060
27061         build: guarantee AS_VAR_IF
27062         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27063         (gl_AS_VAR_IF): Move...
27064         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27065         Reported by Simon Josefsson.
27066
27067 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27068
27069         * lib/stdio.in.h: Fix typo.
27070
27071 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27072
27073         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27074         libgpg-error.
27075
27076 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27077
27078         * tests/test-xalloc-die.sh: Use $EXEEXT.
27079
27080 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27081             Bruno Haible  <bruno@clisp.org>
27082
27083         getlogin, getlogin_r: Avoid test failure.
27084         * tests/test-getlogin.c: Include <stdio.h>.
27085         (main): Skip the test when the function fails because stdin is not a
27086         tty.
27087         * tests/test-getlogin_r.c: Include <stdio.h>.
27088         (main): Skip the test when the function fails because stdin is not a
27089         tty.
27090
27091 2010-01-11  Eric Blake  <ebb9@byu.net>
27092
27093         tests: avoid more large file warnings
27094         * tests/test-fflush.c: Avoid warning about ftell use.
27095         * tests/test-fseek.c: Avoid warning about fseek use.
27096
27097 2010-01-10  Bruno Haible  <bruno@clisp.org>
27098
27099         nproc: Work better on Linux when /proc and /sys are not mounted.
27100         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27101         as lower bound when, on glibc/Linux systems,
27102         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27103         Suggested by Pádraig Brady <P@draigbrady.com>.
27104         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27105
27106         nproc: Refactor.
27107         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27108         extracted from num_processors.
27109         (num_processors): Call it.
27110
27111 2010-01-11  Jim Meyering  <meyering@redhat.com>
27112
27113         utimecmp: avoid new warning from upcoming gcc-4.5.0
27114         * lib/utimecmp.c (BILLION): Define using #define rather than an
27115         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27116
27117 2010-01-11  Eric Blake  <ebb9@byu.net>
27118
27119         math: add portability warnings for classification macros
27120         * modules/math (Depends-on): Add warn-on-use.
27121         (Makefile.am): Provide new substitutions.
27122         * m4/math_h.m4 (gl_MATH_H): Require inline.
27123         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27124         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27125         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27126         implement warnings.
27127
27128         unistd: warn on use of environ without module
27129         * modules/unistd (Depends-on): Add warn-on-use.
27130         (Makefile.am): Provide new substitutions.
27131         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27132         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27133
27134         stdio: warn on suspicious uses
27135         * modules/stdio (Depends-on): Add warn-on-use.
27136         (Makefile.am): Provide new substitutions.
27137         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27138         fseeko.
27139         * lib/stdio.in.h (gets): Always warn on use.
27140         (fseek, ftell): Adjust when warnings are issued, and honor
27141         _GL_NO_LARGE_FILES as a way to silence the warning.
27142         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27143         any warning about large file offsets.
27144         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27145         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27146         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27147         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27148         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27149         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27150         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27151         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27152
27153         warn-on-use: new module
27154         * modules/warn-on-use: New file.
27155         * build-aux/warn-on-use.h: Likewise.
27156         * m4/warn-on-use.m4: Likewise.
27157         * MODULES.html.sh (Support for building): Mention it.
27158
27159 2010-01-10  Bruno Haible  <bruno@clisp.org>
27160
27161         Tests for module 'unistr/u32-strdup'.
27162         * modules/unistr/u32-strdup-tests: New file.
27163         * tests/unistr/test-u32-strdup.c: New file.
27164
27165         Tests for module 'unistr/u16-strdup'.
27166         * modules/unistr/u16-strdup-tests: New file.
27167         * tests/unistr/test-u16-strdup.c: New file.
27168
27169         Tests for module 'unistr/u8-strdup'.
27170         * modules/unistr/u8-strdup-tests: New file.
27171         * tests/unistr/test-u8-strdup.c: New file.
27172         * tests/unistr/test-strdup.h: New file.
27173
27174         Tests for module 'unistr/u32-strncmp'.
27175         * modules/unistr/u32-strncmp-tests: New file.
27176         * tests/unistr/test-u32-strncmp.c: New file.
27177
27178         Tests for module 'unistr/u16-strncmp'.
27179         * modules/unistr/u16-strncmp-tests: New file.
27180         * tests/unistr/test-u16-strncmp.c: New file.
27181
27182         Tests for module 'unistr/u8-strncmp'.
27183         * modules/unistr/u8-strncmp-tests: New file.
27184         * tests/unistr/test-u8-strncmp.c: New file.
27185         * tests/unistr/test-strncmp.h: New file.
27186
27187         Tests for module 'unistr/u32-strcoll'.
27188         * modules/unistr/u32-strcoll-tests: New file.
27189         * tests/unistr/test-u32-strcoll.c: New file.
27190
27191         Tests for module 'unistr/u16-strcoll'.
27192         * modules/unistr/u16-strcoll-tests: New file.
27193         * tests/unistr/test-u16-strcoll.c: New file.
27194
27195         Tests for module 'unistr/u8-strcoll'.
27196         * modules/unistr/u8-strcoll-tests: New file.
27197         * tests/unistr/test-u8-strcoll.c: New file.
27198
27199         Tests for module 'unistr/u32-strcmp'.
27200         * modules/unistr/u32-strcmp-tests: New file.
27201         * tests/unistr/test-u32-strcmp.c: New file.
27202         * tests/unistr/test-u32-strcmp.h: New file.
27203
27204         Tests for module 'unistr/u16-strcmp'.
27205         * modules/unistr/u16-strcmp-tests: New file.
27206         * tests/unistr/test-u16-strcmp.c: New file.
27207         * tests/unistr/test-u16-strcmp.h: New file.
27208
27209         Tests for module 'unistr/u8-strcmp'.
27210         * modules/unistr/u8-strcmp-tests: New file.
27211         * tests/unistr/test-u8-strcmp.c: New file.
27212         * tests/unistr/test-u8-strcmp.h: New file.
27213         * tests/unistr/test-strcmp.h: New file.
27214
27215         Tests for module 'unistr/u32-strncat'.
27216         * modules/unistr/u32-strncat-tests: New file.
27217         * tests/unistr/test-u32-strncat.c: New file.
27218
27219         Tests for module 'unistr/u16-strncat'.
27220         * modules/unistr/u16-strncat-tests: New file.
27221         * tests/unistr/test-u16-strncat.c: New file.
27222
27223         Tests for module 'unistr/u8-strncat'.
27224         * modules/unistr/u8-strncat-tests: New file.
27225         * tests/unistr/test-u8-strncat.c: New file.
27226         * tests/unistr/test-strncat.h: New file.
27227
27228         Tests for module 'unistr/u32-strcat'.
27229         * modules/unistr/u32-strcat-tests: New file.
27230         * tests/unistr/test-u32-strcat.c: New file.
27231
27232         Tests for module 'unistr/u16-strcat'.
27233         * modules/unistr/u16-strcat-tests: New file.
27234         * tests/unistr/test-u16-strcat.c: New file.
27235
27236         Tests for module 'unistr/u8-strcat'.
27237         * modules/unistr/u8-strcat-tests: New file.
27238         * tests/unistr/test-u8-strcat.c: New file.
27239         * tests/unistr/test-strcat.h: New file.
27240
27241         Tests for module 'unistr/u32-stpncpy'.
27242         * modules/unistr/u32-stpncpy-tests: New file.
27243         * tests/unistr/test-u32-stpncpy.c: New file.
27244
27245         Tests for module 'unistr/u16-stpncpy'.
27246         * modules/unistr/u16-stpncpy-tests: New file.
27247         * tests/unistr/test-u16-stpncpy.c: New file.
27248
27249         Tests for module 'unistr/u8-stpncpy'.
27250         * modules/unistr/u8-stpncpy-tests: New file.
27251         * tests/unistr/test-u8-stpncpy.c: New file.
27252         * tests/unistr/test-stpncpy.h: New file.
27253
27254         Tests for module 'unistr/u32-strncpy'.
27255         * modules/unistr/u32-strncpy-tests: New file.
27256         * tests/unistr/test-u32-strncpy.c: New file.
27257
27258         Tests for module 'unistr/u16-strncpy'.
27259         * modules/unistr/u16-strncpy-tests: New file.
27260         * tests/unistr/test-u16-strncpy.c: New file.
27261
27262         Tests for module 'unistr/u8-strncpy'.
27263         * modules/unistr/u8-strncpy-tests: New file.
27264         * tests/unistr/test-u8-strncpy.c: New file.
27265         * tests/unistr/test-strncpy.h: New file.
27266
27267         Tests for module 'unistr/u32-stpcpy'.
27268         * modules/unistr/u32-stpcpy-tests: New file.
27269         * tests/unistr/test-u32-stpcpy.c: New file.
27270
27271         Tests for module 'unistr/u16-stpcpy'.
27272         * modules/unistr/u16-stpcpy-tests: New file.
27273         * tests/unistr/test-u16-stpcpy.c: New file.
27274
27275         Tests for module 'unistr/u8-stpcpy'.
27276         * modules/unistr/u8-stpcpy-tests: New file.
27277         * tests/unistr/test-u8-stpcpy.c: New file.
27278         * tests/unistr/test-stpcpy.h: New file.
27279
27280         Tests for module 'unistr/u32-strcpy'.
27281         * modules/unistr/u32-strcpy-tests: New file.
27282         * tests/unistr/test-u32-strcpy.c: New file.
27283
27284         Tests for module 'unistr/u16-strcpy'.
27285         * modules/unistr/u16-strcpy-tests: New file.
27286         * tests/unistr/test-u16-strcpy.c: New file.
27287
27288         Tests for module 'unistr/u8-strcpy'.
27289         * modules/unistr/u8-strcpy-tests: New file.
27290         * tests/unistr/test-u8-strcpy.c: New file.
27291         * tests/unistr/test-strcpy.h: New file.
27292
27293         Tests for module 'unistr/u32-strnlen'.
27294         * modules/unistr/u32-strnlen-tests: New file.
27295         * tests/unistr/test-u32-strnlen.c: New file.
27296
27297         Tests for module 'unistr/u16-strnlen'.
27298         * modules/unistr/u16-strnlen-tests: New file.
27299         * tests/unistr/test-u16-strnlen.c: New file.
27300
27301         Tests for module 'unistr/u8-strnlen'.
27302         * modules/unistr/u8-strnlen-tests: New file.
27303         * tests/unistr/test-u8-strnlen.c: New file.
27304         * tests/unistr/test-strnlen.h: New file.
27305
27306         Tests for module 'unistr/u32-strlen'.
27307         * modules/unistr/u32-strlen-tests: New file.
27308         * tests/unistr/test-u32-strlen.c: New file.
27309
27310         Tests for module 'unistr/u16-strlen'.
27311         * modules/unistr/u16-strlen-tests: New file.
27312         * tests/unistr/test-u16-strlen.c: New file.
27313
27314         Tests for module 'unistr/u8-strlen'.
27315         * modules/unistr/u8-strlen-tests: New file.
27316         * tests/unistr/test-u8-strlen.c: New file.
27317
27318         Tests for module 'unistr/u32-prev'.
27319         * modules/unistr/u32-prev-tests: New file.
27320         * tests/unistr/test-u32-prev.c: New file.
27321
27322         Tests for module 'unistr/u16-prev'.
27323         * modules/unistr/u16-prev-tests: New file.
27324         * tests/unistr/test-u16-prev.c: New file.
27325
27326         Tests for module 'unistr/u8-prev'.
27327         * modules/unistr/u8-prev-tests: New file.
27328         * tests/unistr/test-u8-prev.c: New file.
27329
27330         Tests for module 'unistr/u32-next'.
27331         * modules/unistr/u32-next-tests: New file.
27332         * tests/unistr/test-u32-next.c: New file.
27333
27334         Tests for module 'unistr/u16-next'.
27335         * modules/unistr/u16-next-tests: New file.
27336         * tests/unistr/test-u16-next.c: New file.
27337
27338         Tests for module 'unistr/u8-next'.
27339         * modules/unistr/u8-next-tests: New file.
27340         * tests/unistr/test-u8-next.c: New file.
27341
27342         Tests for module 'unistr/u32-strmbtouc'.
27343         * modules/unistr/u32-strmbtouc-tests: New file.
27344         * tests/unistr/test-u32-strmbtouc.c: New file.
27345
27346         Tests for module 'unistr/u16-strmbtouc'.
27347         * modules/unistr/u16-strmbtouc-tests: New file.
27348         * tests/unistr/test-u16-strmbtouc.c: New file.
27349
27350         Tests for module 'unistr/u8-strmbtouc'.
27351         * modules/unistr/u8-strmbtouc-tests: New file.
27352         * tests/unistr/test-u8-strmbtouc.c: New file.
27353
27354         Tests for module 'unistr/u32-strmblen'.
27355         * modules/unistr/u32-strmblen-tests: New file.
27356         * tests/unistr/test-u32-strmblen.c: New file.
27357
27358         Tests for module 'unistr/u16-strmblen'.
27359         * modules/unistr/u16-strmblen-tests: New file.
27360         * tests/unistr/test-u16-strmblen.c: New file.
27361
27362         Tests for module 'unistr/u8-strmblen'.
27363         * modules/unistr/u8-strmblen-tests: New file.
27364         * tests/unistr/test-u8-strmblen.c: New file.
27365
27366         Tests for module 'unistr/u32-cpy-alloc'.
27367         * modules/unistr/u32-cpy-alloc-tests: New file.
27368         * tests/unistr/test-u32-cpy-alloc.c: New file.
27369
27370         Tests for module 'unistr/u16-cpy-alloc'.
27371         * modules/unistr/u16-cpy-alloc-tests: New file.
27372         * tests/unistr/test-u16-cpy-alloc.c: New file.
27373
27374         Tests for module 'unistr/u8-cpy-alloc'.
27375         * modules/unistr/u8-cpy-alloc-tests: New file.
27376         * tests/unistr/test-u8-cpy-alloc.c: New file.
27377         * tests/unistr/test-cpy-alloc.h: New file.
27378
27379         Tests for module 'unistr/u32-mbsnlen'.
27380         * modules/unistr/u32-mbsnlen-tests: New file.
27381         * tests/unistr/test-u32-mbsnlen.c: New file.
27382
27383         Tests for module 'unistr/u16-mbsnlen'.
27384         * modules/unistr/u16-mbsnlen-tests: New file.
27385         * tests/unistr/test-u16-mbsnlen.c: New file.
27386
27387         Tests for module 'unistr/u8-mbsnlen'.
27388         * modules/unistr/u8-mbsnlen-tests: New file.
27389         * tests/unistr/test-u8-mbsnlen.c: New file.
27390
27391         Tests for module 'unistr/u32-chr'.
27392         * modules/unistr/u32-chr-tests: New file.
27393         * tests/unistr/test-u32-chr.c: New file.
27394
27395         Tests for module 'unistr/u16-chr'.
27396         * modules/unistr/u16-chr-tests: New file.
27397         * tests/unistr/test-u16-chr.c: New file.
27398
27399         Tests for module 'unistr/u8-chr'.
27400         * modules/unistr/u8-chr-tests: New file.
27401         * tests/unistr/test-u8-chr.c: New file.
27402         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27403
27404         Tests for module 'unistr/u32-cmp2'.
27405         * modules/unistr/u32-cmp2-tests: New file.
27406         * tests/unistr/test-u32-cmp2.c: New file.
27407
27408         Tests for module 'unistr/u16-cmp2'.
27409         * modules/unistr/u16-cmp2-tests: New file.
27410         * tests/unistr/test-u16-cmp2.c: New file.
27411
27412         Tests for module 'unistr/u8-cmp2'.
27413         * modules/unistr/u8-cmp2-tests: New file.
27414         * tests/unistr/test-u8-cmp2.c: New file.
27415         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27416
27417         Tests for module 'unistr/u32-cmp'.
27418         * modules/unistr/u32-cmp-tests: New file.
27419         * tests/unistr/test-u32-cmp.c: New file.
27420
27421         Tests for module 'unistr/u16-cmp'.
27422         * modules/unistr/u16-cmp-tests: New file.
27423         * tests/unistr/test-u16-cmp.c: New file.
27424
27425         Tests for module 'unistr/u8-cmp'.
27426         * modules/unistr/u8-cmp-tests: New file.
27427         * tests/unistr/test-u8-cmp.c: New file.
27428         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27429
27430         Tests for module 'unistr/u32-set'.
27431         * modules/unistr/u32-set-tests: New file.
27432         * tests/unistr/test-u32-set.c: New file.
27433
27434         Tests for module 'unistr/u16-set'.
27435         * modules/unistr/u16-set-tests: New file.
27436         * tests/unistr/test-u16-set.c: New file.
27437
27438         Tests for module 'unistr/u8-set'.
27439         * modules/unistr/u8-set-tests: New file.
27440         * tests/unistr/test-u8-set.c: New file.
27441         * tests/unistr/test-set.h: New file.
27442
27443         Tests for module 'unistr/u32-move'.
27444         * modules/unistr/u32-move-tests: New file.
27445         * tests/unistr/test-u32-move.c: New file.
27446
27447         Tests for module 'unistr/u16-move'.
27448         * modules/unistr/u16-move-tests: New file.
27449         * tests/unistr/test-u16-move.c: New file.
27450
27451         Tests for module 'unistr/u8-move'.
27452         * modules/unistr/u8-move-tests: New file.
27453         * tests/unistr/test-u8-move.c: New file.
27454         * tests/unistr/test-move.h: New file.
27455
27456         Tests for module 'unistr/u32-cpy'.
27457         * modules/unistr/u32-cpy-tests: New file.
27458         * tests/unistr/test-u32-cpy.c: New file.
27459
27460         Tests for module 'unistr/u16-cpy'.
27461         * modules/unistr/u16-cpy-tests: New file.
27462         * tests/unistr/test-u16-cpy.c: New file.
27463
27464         Tests for module 'unistr/u8-cpy'.
27465         * modules/unistr/u8-cpy-tests: New file.
27466         * tests/unistr/test-u8-cpy.c: New file.
27467         * tests/unistr/test-cpy.h: New file.
27468
27469 2010-01-09  Bruno Haible  <bruno@clisp.org>
27470
27471         Tests for module 'unistr/u32-uctomb'.
27472         * modules/unistr/u32-uctomb-tests: New file.
27473         * tests/unistr/test-u32-uctomb.c: New file.
27474
27475         Tests for module 'unistr/u16-uctomb'.
27476         * modules/unistr/u16-uctomb-tests: New file.
27477         * tests/unistr/test-u16-uctomb.c: New file.
27478
27479         Tests for module 'unistr/u8-uctomb'.
27480         * modules/unistr/u8-uctomb-tests: New file.
27481         * tests/unistr/test-u8-uctomb.c: New file.
27482
27483         Tests for module 'unistr/u32-mbtoucr'.
27484         * modules/unistr/u32-mbtoucr-tests: New file.
27485         * tests/unistr/test-u32-mbtoucr.c: New file.
27486
27487         Tests for module 'unistr/u16-mbtoucr'.
27488         * modules/unistr/u16-mbtoucr-tests: New file.
27489         * tests/unistr/test-u16-mbtoucr.c: New file.
27490
27491         Tests for module 'unistr/u8-mbtoucr'.
27492         * modules/unistr/u8-mbtoucr-tests: New file.
27493         * tests/unistr/test-u8-mbtoucr.c: New file.
27494
27495         Tests for module 'unistr/u32-mbtouc'.
27496         * modules/unistr/u32-mbtouc-tests: New file.
27497         * tests/unistr/test-u32-mbtouc.c: New file.
27498
27499         Tests for module 'unistr/u16-mbtouc'.
27500         * modules/unistr/u16-mbtouc-tests: New file.
27501         * tests/unistr/test-u16-mbtouc.c: New file.
27502
27503         Tests for module 'unistr/u8-mbtouc'.
27504         * modules/unistr/u8-mbtouc-tests: New file.
27505         * tests/unistr/test-u8-mbtouc.c: New file.
27506
27507         Tests for module 'unistr/u32-mbtouc-unsafe'.
27508         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27509         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27510         * tests/unistr/test-u32-mbtouc.h: New file.
27511
27512         Tests for module 'unistr/u16-mbtouc-unsafe'.
27513         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27514         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27515         * tests/unistr/test-u16-mbtouc.h: New file.
27516
27517         Tests for module 'unistr/u8-mbtouc-unsafe'.
27518         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27519         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27520         * tests/unistr/test-u8-mbtouc.h: New file.
27521
27522         Tests for module 'unistr/u32-mblen'.
27523         * modules/unistr/u32-mblen-tests: New file.
27524         * tests/unistr/test-u32-mblen.c: New file.
27525
27526         Tests for module 'unistr/u16-mblen'.
27527         * modules/unistr/u16-mblen-tests: New file.
27528         * tests/unistr/test-u16-mblen.c: New file.
27529
27530         Tests for module 'unistr/u8-mblen'.
27531         * modules/unistr/u8-mblen-tests: New file.
27532         * tests/unistr/test-u8-mblen.c: New file.
27533
27534         Tests for module 'unistr/u32-to-u16'.
27535         * modules/unistr/u32-to-u16-tests: New file.
27536         * tests/unistr/test-u32-to-u16.c: New file.
27537
27538         Tests for module 'unistr/u32-to-u8'.
27539         * modules/unistr/u32-to-u8-tests: New file.
27540         * tests/unistr/test-u32-to-u8.c: New file.
27541
27542         Tests for module 'unistr/u16-to-u32'.
27543         * modules/unistr/u16-to-u32-tests: New file.
27544         * tests/unistr/test-u16-to-u32.c: New file.
27545
27546         Tests for module 'unistr/u16-to-u8'.
27547         * modules/unistr/u16-to-u8-tests: New file.
27548         * tests/unistr/test-u16-to-u8.c: New file.
27549
27550         Tests for module 'unistr/u8-to-u32'.
27551         * modules/unistr/u8-to-u32-tests: New file.
27552         * tests/unistr/test-u8-to-u32.c: New file.
27553
27554         Tests for module 'unistr/u8-to-u16'.
27555         * modules/unistr/u8-to-u16-tests: New file.
27556         * tests/unistr/test-u8-to-u16.c: New file.
27557
27558         Tests for module 'unistr/u32-check'.
27559         * modules/unistr/u32-check-tests: New file.
27560         * tests/unistr/test-u32-check.c: New file.
27561
27562         Tests for module 'unistr/u16-check'.
27563         * modules/unistr/u16-check-tests: New file.
27564         * tests/unistr/test-u16-check.c: New file.
27565
27566         Tests for module 'unistr/u8-check'.
27567         * modules/unistr/u8-check-tests: New file.
27568         * tests/unistr/test-u8-check.c: New file.
27569
27570         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27571         (category_equals): New function.
27572         (main): Add more tests.
27573         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27574
27575         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27576
27577 2010-01-10  Bruno Haible  <bruno@clisp.org>
27578
27579         unistr/u*-strcoll: Try harder to distinguish different strings.
27580         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27581         compare s1 and s2 to see if they are different.
27582
27583 2010-01-10  Bruno Haible  <bruno@clisp.org>
27584
27585         unistr/u*-stpncpy: Fix the return value.
27586         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27587         description of the return value consistent with stpncpy in glibc.
27588         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27589         written non-NUL unit.
27590
27591 2010-01-10  Bruno Haible  <bruno@clisp.org>
27592
27593         unistr/u*-next: Add missing dependencies.
27594         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27595         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27596         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27597
27598 2010-01-10  Bruno Haible  <bruno@clisp.org>
27599
27600         unistr/u8-mbsnlen: Fix return value for incomplete character.
27601         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27602         u8_mblen.
27603         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27604         Remove unistr/u8-mblen.
27605         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27606         u16_mblen.
27607         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27608         Remove unistr/u16-mblen.
27609
27610 2010-01-10  Bruno Haible  <bruno@clisp.org>
27611
27612         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27613         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27614         Reported by Brian Gough <bjg@gnu.org> and
27615         Chris Clayton <chris2553@googlemail.com> via
27616         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27617
27618 2010-01-09  Bruno Haible  <bruno@clisp.org>
27619
27620         unistr/u16-to-u32: Reject invalid input.
27621         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27622         u16_mbtouc.
27623         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27624         Remove unistr/u16-mbtouc.
27625
27626         unistr/u16-to-u8: Reject invalid input.
27627         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27628         u16_mbtouc.
27629         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27630         Remove unistr/u16-mbtouc.
27631
27632         unistr/u8-to-u32: Reject invalid input.
27633         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27634         u8_mbtouc.
27635         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27636         Remove unistr/u8-mbtouc.
27637
27638         unistr/u8-to-u16: Reject invalid input.
27639         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27640         u8_mbtouc.
27641         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27642         Remove unistr/u8-mbtouc.
27643
27644 2010-01-09  Bruno Haible  <bruno@clisp.org>
27645
27646         Tests for module 'getlogin'.
27647         * modules/getlogin-tests: New file.
27648         * tests/test-getlogin.c: New file.
27649
27650         New module 'getlogin'.
27651         * lib/unistd.in.h (getlogin): New declaration.
27652         * lib/getlogin.c: New file.
27653         * m4/getlogin.m4: New file.
27654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27655         HAVE_GETLOGIN.
27656         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27657         HAVE_GETLOGIN.
27658         * modules/getlogin: New file.
27659         * doc/posix-functions/getlogin.texi: Mention the new module.
27660         Reported by John W. Eaton <jwe@gnu.org>.
27661
27662 2010-01-09  Bruno Haible  <bruno@clisp.org>
27663
27664         getlogin_r: Support for native Windows.
27665         * lib/getlogin_r.c: Include <windows.h>
27666         (getlogin_r): Implement for native Windows.
27667         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27668         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27669         via John W. Eaton <jwe@gnu.org>.
27670
27671 2010-01-09  Bruno Haible  <bruno@clisp.org>
27672
27673         getlogin_r: Small fixes.
27674         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27675         succeeds.
27676         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27677         before testing whether getlogin_r is declared. No need to set
27678         HAVE_DECL_GETLOGIN_R to 1.
27679         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27680
27681 2010-01-09  Bruno Haible  <bruno@clisp.org>
27682
27683         * lib/unistd.in.h (getlogin_r): Add comment.
27684
27685 2010-01-09  Bruno Haible  <bruno@clisp.org>
27686
27687         Tests for module 'getlogin_r'.
27688         * modules/getlogin_r-tests: New file.
27689         * tests/test-getlogin_r.c: New file.
27690
27691 2010-01-09  Jim Meyering  <meyering@redhat.com>
27692
27693         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27694         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27695         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27696
27697 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27698
27699         * lib/dup2.c (rpl_dup2): Improve comment.
27700
27701 2010-01-08  Eric Blake  <ebb9@byu.net>
27702
27703         maint.mk: allow packages to add makefile @@ exceptions
27704         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27705         (sc_makefile_check): Rename...
27706         (sc_makefile_at_at_check): ...to this, and use hook.
27707
27708         dup2: work around mingw bug
27709         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27710         Reported by Simon Josefsson.
27711
27712 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27713
27714         glob: Fix C++ compilation.
27715         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27716         C++.
27717
27718 2010-01-07  Bruno Haible  <bruno@clisp.org>
27719
27720         Fix indentation of wctype.in.h, broken since 2007-01-06.
27721         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27722
27723 2010-01-07  Bruno Haible  <bruno@clisp.org>
27724
27725         mbslen: Avoid collision with system function.
27726         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27727         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27728         * m4/mbslen.m4: New file.
27729         * modules/mbslen (Files): Add it.
27730         (configure.ac): Invoke gl_MBSLEN.
27731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27732         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27733         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27734         via Ian Beckwith <ianb@erislabs.net>.
27735
27736 2010-01-07  Bruno Haible  <bruno@clisp.org>
27737
27738         dirent: Document the last fix.
27739         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27740
27741 2010-01-07  Bruno Haible  <bruno@clisp.org>
27742
27743         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27744         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27745         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27746         va_list are defined.
27747         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27748         Reported by Eric Blake.
27749
27750 2010-01-07  Bruno Haible  <bruno@clisp.org>
27751
27752         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27753         * modules/xlist (Depends-on): Add 'list',
27754         * modules/xoset (Depends-on): Add 'oset'.
27755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27756
27757 2010-01-07  Bruno Haible  <bruno@clisp.org>
27758
27759         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27760         * doc/posix-functions/strncasecmp.texi: Likewise.
27761
27762 2010-01-07  Bruno Haible  <bruno@clisp.org>
27763
27764         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27765
27766 2010-01-07  John W. Eaton  <jwe@octave.org>
27767
27768         wctype: allow C++ use
27769         * lib/wctype.in.h: Add extern "C" block for C++.
27770
27771 2010-01-06  Eric Blake  <ebb9@byu.net>
27772
27773         maint.mk: detect incorrect GFDL usage
27774         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27775
27776 2010-01-06  Jim Meyering  <meyering@redhat.com>
27777         and Eric Blake  <ebb9@byu.net>
27778
27779         maint.mk: ignore multi-line copyright in NEWS
27780         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27781
27782 2010-01-06  Eric Blake  <ebb9@byu.net>
27783
27784         select: add missing dependency
27785         * modules/select-tests (Depends-on): Move sockets dependency...
27786         * modules/select (Depends-on): ...here.
27787         Reported by Ian Beckwith.
27788
27789         doc: regenerate INSTALL
27790         * doc/INSTALL: Reflect recent autoconf update.
27791         * doc/INSTALL.ISO: Likewise.
27792         * doc/INSTALL.UTF-8: Likewise.
27793
27794         pread: fix compilation on glibc
27795         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27796         Reported by Ralf Wildenhues.
27797
27798         dirent: fix test failure
27799         * lib/dirent.in.h (includes): Guarantee ino_t.
27800         Reported by Ralf Wildenhues.
27801
27802 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27803
27804         linkat, renameat: avoid bad free
27805         * lib/at-func2.c (at_func2): Fix typo.
27806         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27807
27808 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27809
27810         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27811         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27812         to avoid failure of symlink test later.
27813
27814 2010-01-06  Eric Blake  <ebb9@byu.net>
27815
27816         stdio, unistd: guarantee ssize_t
27817         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27818         2008 are exposed when needed.
27819         * lib/stdio.in.h (includes): Likewise.
27820         Reported by Ralf Wildenhues.
27821
27822 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27823
27824         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27825         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27826         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27827
27828 2010-01-06  Jim Meyering  <meyering@redhat.com>
27829
27830         readtokens: this module *does* require xalloc.h
27831         It uses only functions that were omitted by the old syntax-check rule.
27832         * lib/readtokens.c: Include "xalloc.h" once again.
27833         * modules/readtokens (Depends-on): Add xalloc.
27834         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27835
27836 2010-01-05  Eric Blake  <ebb9@byu.net>
27837
27838         maint: support 'make announcement' from a VPATH build
27839         * top/maint.mk (announcement): Look for correct NEWS file.
27840
27841 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27842
27843         utimens (fdutimens): ignore a negative FD, per contract
27844         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27845         when we have a valid file descriptor.  Otherwise, using a brand
27846         new glibc (with just-patched futimens that now fails with EBADF)
27847         would cause this function to fail with ENOSYS.
27848         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27849         See also http://bugzilla.redhat.com/552320.
27850
27851 2010-01-05  Eric Blake  <ebb9@byu.net>
27852
27853         strcase: document what it provides
27854         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27855         gnulib module.
27856         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27857         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27858
27859 2010-01-05  Jim Meyering  <meyering@redhat.com>
27860
27861         maint: remove useless inclusions of "xalloc.h"
27862         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27863         * lib/readtokens.c: Likewise.
27864         * lib/same.c: Likewise.
27865         * modules/getloadavg (Depends-on): Remove xalloc.
27866         * modules/readtokens: Likewise.
27867         * modules/same: Likewise.
27868
27869         maint.mk: include 4 more function names in alloca.h-checking regexp
27870         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27871         regexp.  Before, we would give a false-positive (saying alloca.h
27872         is included unnecessarily) when the only uses involved omitted symbols.
27873
27874         xalloc.h: use consistent formatting
27875         * lib/xalloc.h: Move declarations to start in the first column.
27876
27877 2010-01-05  Eric Blake  <ebb9@byu.net>
27878
27879         mkdir: avoid xalloc
27880         * lib/mkdir.c (includes): Drop unused header.
27881         Reported by John W. Eaton.
27882
27883 2010-01-04  Jim Meyering  <meyering@redhat.com>
27884
27885         nl_langinfo: avoid configure-time syntax error
27886         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27887         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27888         the empty string.  Don't let that provoke a shell syntax error.
27889
27890         regcomp, regexec, fnmatch: avoid array bounds read error
27891         * lib/regcomp.c (build_equiv_class): From glibc:
27892         Use only the low 24 bits of a findidx return value as an index
27893         into the weights array.  Patch by Ulrich Drepper:
27894         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27895         * lib/regexec.c (check_node_accept_bytes): Likewise.
27896         * lib/fnmatch_loop.c (FCT): Likewise.
27897
27898         regcomp: skip collseq lookup when there are no rules
27899         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27900         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27901
27902         regcomp: recognize ill-formed { } expressions
27903         * lib/regcomp.c (parse_dup_op): From glibc:
27904         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27905
27906         regcomp: fix typo in comment
27907         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27908         s/satisfy/satisfies/.
27909
27910         regcomp: sync from glibc: remove dead store
27911         * lib/regcomp.c (duplicate_node_closure): Remove useless
27912         search_duplicated_node call and dead store.
27913
27914         regcomp: sync from glibc; always use nl_langinfo
27915         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27916         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27917         * modules/regex (Depends-on): Add nl_langinfo.
27918
27919 2010-01-04  Eric Blake  <ebb9@byu.net>
27920
27921         fdopendir: fix configure test
27922         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27923
27924 2010-01-01  Bruno Haible  <bruno@clisp.org>
27925
27926         wchar: Remove unused configure check.
27927         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27928
27929 2010-01-01  Eric Blake  <ebb9@byu.net>
27930
27931         headers: make check of system header explicit
27932         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27933         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27934         ourselves.
27935         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27937         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27938         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27939         internals.
27940         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27941         missing.
27942         Suggested by Bruno Haible.
27943
27944 2010-01-01  Jim Meyering  <meyering@redhat.com>
27945
27946         ChangeLog: tweak to eliminate unnecessary copyright line
27947         * ChangeLog: Remove a copyright line that was mistakenly updated
27948         by today's update-copyright run.  Reported by Eric Blake.
27949
27950         test-update-copyright: don't let envvar setting cause test failure
27951         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27952
27953 2010-01-01  Bruno Haible  <bruno@clisp.org>
27954
27955         localename: Avoid gcc warning.
27956         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27957         function if it is not used.
27958
27959 2010-01-01  Jim Meyering  <meyering@redhat.com>
27960
27961         update nearly all FSF copyright year lists to include 2010
27962         Use the same procedure as for 2009, outlined in
27963         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27964
27965         version-etc: set COPYRIGHT_YEAR to 2010
27966         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27967
27968 2009-12-31  Eric Blake  <ebb9@byu.net>
27969
27970         doc: correct availability of cygwin 1.5.x getopt
27971         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27972         variables.
27973         * doc/posix-functions/opterr.texi (opterr): Likewise.
27974         * doc/posix-functions/optind.texi (optind): Likewise.
27975         * doc/posix-functions/optopt.texi (optopt): Likewise.
27976         * doc/posix-functions/tzname.texi (tzname): Likewise.
27977
27978         openat: update maintainer
27979         * modules/openat (Maintainer): Add myself.
27980
27981         utimens: avoid shadowing warning
27982         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27983         buffers into one, to avoid shadowing, as well as avoiding a
27984         redundant stat.
27985         Reported by Jim Meyering.
27986
27987         test-dup2: avoid compiler warning
27988         * tests/test-dup2.c (is_inheritable): Only define if used.
27989
27990 2010-01-01  Bruno Haible  <bruno@clisp.org>
27991
27992         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27993         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27994         defined, use wctomb instead of wcrtomb.
27995
27996 2010-01-01  Bruno Haible  <bruno@clisp.org>
27997
27998         iconv: Reject native Solaris iconv.
27999         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28000         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28001
28002 2009-12-31  Bruno Haible  <bruno@clisp.org>
28003
28004         * tests/test-signal.c (main): Remove test of 'SIG'.
28005
28006 2009-12-31  Bruno Haible  <bruno@clisp.org>
28007
28008         spawn: Fix incomplete fix.
28009         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28010         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28011         warnings for GNULIB_POSIXCHECK again.
28012         Reported by Eric Blake.
28013
28014 2009-12-31  Bruno Haible  <bruno@clisp.org>
28015
28016         Avoid namespace pollution on glibc systems.
28017         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28018         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28019         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28020         glibc systems.
28021
28022 2009-12-31  Bruno Haible  <bruno@clisp.org>
28023
28024         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28025         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28026         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28027         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28028         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28029         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28030         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28031
28032 2009-12-31  Bruno Haible  <bruno@clisp.org>
28033
28034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28035         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28036         afterwards.
28037
28038 2009-12-31  Bruno Haible  <bruno@clisp.org>
28039
28040         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28041         SYS_UTSNAME_H.
28042
28043 2009-12-31  Bruno Haible  <bruno@clisp.org>
28044
28045         spawn: Fix misapplied patch.
28046         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28047         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28048         warnings for GNULIB_POSIXCHECK.
28049
28050 2009-12-31  Bruno Haible  <bruno@clisp.org>
28051
28052         times: Update after sys_times changed.
28053         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28054         * modules/times (Files): Add it.
28055         (configure.ac): Invoke gl_FUNC_TIMES.
28056
28057 2009-12-31  Bruno Haible  <bruno@clisp.org>
28058
28059         Use AC_C_INLINE where necessary.
28060         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28061         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28063         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28064         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28065         * m4/mbiter.m4 (gl_MBITER): Likewise.
28066         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28067         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28068         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28069         * modules/u64 (configure.ac): Likewise.
28070
28071 2009-12-31  Bruno Haible  <bruno@clisp.org>
28072
28073         Use AC_C_INLINE instead of module 'inline' where possible.
28074         * modules/inline (Description): Clarify purpose.
28075         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28076         * modules/count-one-bits (Depends-on): Remove inline.
28077         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28078         * modules/openat (Depends-on): Remove inline.
28079         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28080         instead of depending on module 'inline'.
28081         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28082         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28083         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28084         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28085         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28086         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28087         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28088         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28089         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28090         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28091         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28092         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28093         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28094         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28095         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28096         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28097         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28098         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28099         Likewise.
28100         * modules/unictype/property-ascii-hex-digit (Depends-on,
28101         configure.ac): Likewise.
28102         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28103         configure.ac): Likewise.
28104         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28105         configure.ac): Likewise.
28106         * modules/unictype/property-bidi-block-separator (Depends-on,
28107         configure.ac): Likewise.
28108         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28109         configure.ac): Likewise.
28110         * modules/unictype/property-bidi-common-separator (Depends-on,
28111         configure.ac): Likewise.
28112         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28113         Likewise.
28114         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28115         configure.ac): Likewise.
28116         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28117         configure.ac): Likewise.
28118         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28119         configure.ac): Likewise.
28120         * modules/unictype/property-bidi-european-digit (Depends-on,
28121         configure.ac): Likewise.
28122         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28123         configure.ac): Likewise.
28124         * modules/unictype/property-bidi-left-to-right (Depends-on,
28125         configure.ac): Likewise.
28126         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28127         configure.ac): Likewise.
28128         * modules/unictype/property-bidi-other-neutral (Depends-on,
28129         configure.ac): Likewise.
28130         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28131         Likewise.
28132         * modules/unictype/property-bidi-segment-separator (Depends-on,
28133         configure.ac): Likewise.
28134         * modules/unictype/property-bidi-whitespace (Depends-on,
28135         configure.ac): Likewise.
28136         * modules/unictype/property-combining (Depends-on, configure.ac):
28137         Likewise.
28138         * modules/unictype/property-composite (Depends-on, configure.ac):
28139         Likewise.
28140         * modules/unictype/property-currency-symbol (Depends-on,
28141         configure.ac): Likewise.
28142         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28143         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28144         Likewise.
28145         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28146         configure.ac): Likewise.
28147         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28148         Likewise.
28149         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28150         Likewise.
28151         * modules/unictype/property-extender (Depends-on, configure.ac):
28152         Likewise.
28153         * modules/unictype/property-format-control (Depends-on, configure.ac):
28154         Likewise.
28155         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28156         Likewise.
28157         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28158         Likewise.
28159         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28160         Likewise.
28161         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28162         Likewise.
28163         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28164         Likewise.
28165         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28166         Likewise.
28167         * modules/unictype/property-id-start (Depends-on, configure.ac):
28168         Likewise.
28169         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28170         Likewise.
28171         * modules/unictype/property-ids-binary-operator (Depends-on,
28172         configure.ac): Likewise.
28173         * modules/unictype/property-ids-trinary-operator (Depends-on,
28174         configure.ac): Likewise.
28175         * modules/unictype/property-ignorable-control (Depends-on,
28176         configure.ac): Likewise.
28177         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28178         Likewise.
28179         * modules/unictype/property-join-control (Depends-on, configure.ac):
28180         Likewise.
28181         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28182         Likewise.
28183         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28184         Likewise.
28185         * modules/unictype/property-logical-order-exception (Depends-on,
28186         configure.ac): Likewise.
28187         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28188         Likewise.
28189         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28190         * modules/unictype/property-non-break (Depends-on, configure.ac):
28191         Likewise.
28192         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28193         Likewise.
28194         * modules/unictype/property-numeric (Depends-on, configure.ac):
28195         Likewise.
28196         * modules/unictype/property-other-alphabetic (Depends-on,
28197         configure.ac): Likewise.
28198         * modules/unictype/property-other-default-ignorable-code-point
28199         (Depends-on, configure.ac): Likewise.
28200         * modules/unictype/property-other-grapheme-extend (Depends-on,
28201         configure.ac): Likewise.
28202         * modules/unictype/property-other-id-continue (Depends-on,
28203         configure.ac): Likewise.
28204         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28205         Likewise.
28206         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28207         Likewise.
28208         * modules/unictype/property-other-math (Depends-on, configure.ac):
28209         Likewise.
28210         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28211         Likewise.
28212         * modules/unictype/property-paired-punctuation (Depends-on,
28213         configure.ac): Likewise.
28214         * modules/unictype/property-paragraph-separator (Depends-on,
28215         configure.ac): Likewise.
28216         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28217         Likewise.
28218         * modules/unictype/property-pattern-white-space (Depends-on,
28219         configure.ac): Likewise.
28220         * modules/unictype/property-private-use (Depends-on, configure.ac):
28221         Likewise.
28222         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28223         Likewise.
28224         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28225         Likewise.
28226         * modules/unictype/property-radical (Depends-on, configure.ac):
28227         Likewise.
28228         * modules/unictype/property-sentence-terminal (Depends-on,
28229         configure.ac): Likewise.
28230         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28231         Likewise.
28232         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28233         * modules/unictype/property-terminal-punctuation (Depends-on,
28234         configure.ac): Likewise.
28235         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28236         Likewise.
28237         * modules/unictype/property-unassigned-code-value (Depends-on,
28238         configure.ac): Likewise.
28239         * modules/unictype/property-unified-ideograph (Depends-on,
28240         configure.ac): Likewise.
28241         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28242         Likewise.
28243         * modules/unictype/property-variation-selector (Depends-on,
28244         configure.ac): Likewise.
28245         * modules/unictype/property-white-space (Depends-on, configure.ac):
28246         Likewise.
28247         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28248         Likewise.
28249         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28250         Likewise.
28251         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28252         Likewise.
28253         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28254         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28255         Likewise.
28256
28257 2009-12-31  Bruno Haible  <bruno@clisp.org>
28258
28259         Remove unnecessary AC_C_INLINE invocation.
28260         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28261         since 2009-08-21.
28262
28263 2009-12-31  Jim Meyering  <meyering@redhat.com>
28264
28265         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28266         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28267         With this change, we can all remove the gpg_key_ID = ... definition
28268         from our respective cfg.mk files.
28269
28270         maint.mk: create announcement template in ~/, not in /tmp
28271         * top/maint.mk (emit_upload_commands): Adjust.
28272         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28273         Remove temporary file, .ci-msg.
28274
28275 2009-12-31  Eric Blake  <ebb9@byu.net>
28276
28277         link-warning: always build headers with link warnings
28278         * modules/arpa_inet (Makefile.am): Always build replacement
28279         header.
28280         * modules/ctype (Makefile.am): Likewise.
28281         * modules/dirent (Makefile.am): Likewise.
28282         * modules/inttypes (Makefile.am): Likewise.
28283         * modules/langinfo (Makefile.am): Likewise.
28284         * modules/locale (Makefile.am): Likewise.
28285         * modules/spawn (Makefile.am): Likewise.
28286         * modules/sys_file (Makefile.am): Likewise.
28287         * modules/sys_ioctl (Makefile.am): Likewise.
28288         * modules/sys_select (Makefile.am): Likewise.
28289         * modules/sys_socket (Makefile.am): Likewise.
28290         * modules/sys_times (Makefile.am): Likewise.
28291         * modules/sys_utsname (Makefile.am): Likewise.
28292         * modules/sys_wait (Makefile.am): Likewise.
28293         * modules/wchar (Makefile.am): Likewise.
28294         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28295         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28296         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28297         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28298         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28299         Likewise.
28300         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28301         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28302         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28303         Likewise.
28304         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28305         Likewise.
28306         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28307         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28308         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28309         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28310         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28311         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28312         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28313         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28314         (gl_WCHAR_H_DEFAULTS): Likewise.
28315
28316 2009-12-31  Eric Blake  <ebb9@byu.net>
28317
28318         signal, spawn: use link warnings
28319         * lib/signal.in.h (sigset_t): Make unconditional.
28320         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28321         (sigpending, sigprocmask, sigaction): Add link warnings.
28322         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28323         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28324         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28325         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28326         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28327         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28328         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28329         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28330         (posix_spawn_file_actions_destroy)
28331         (posix_spawn_file_actions_addopen)
28332         (posix_spawn_file_actions_addclose)
28333         (posix_spawn_file_actions_adddup2): Likewise.
28334         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28335         * tests/test-signal.c (main): Enhance test.
28336
28337         spawn: improve wrapper support
28338         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28339         (gl_SPAWN_H_DEFAULTS): New defaults.
28340         * modules/spawn (Makefile.am): Substitute them.
28341         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28342         Only declare if missing or broken.
28343
28344         sys_times, sys_utsname: use include_next
28345         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28346         header.
28347         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28348         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28349         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28350         * modules/sys_times (Depends-on): Add include_next.
28351         (Makefile.am): Substitute additional values.
28352         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28353         * lib/sys_times.in.h (includes): Include native header, if
28354         available.
28355         * lib/sys_utsname.in.h (includes): Likewise.
28356         * tests/test-sys_times.c (main): Enhance test.
28357
28358         fdutimensat: revert prior patch
28359         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28360         utimens.h.
28361         Reported by Bruno Haible.
28362
28363 2009-12-30  Eric Blake  <ebb9@byu.net>
28364
28365         sys_wait: drop link-warning dependency
28366         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28367         link-warning efforts.
28368         * lib/sys_wait.in.h: Likewise.
28369
28370         fdutimensat: remove bogus dependency
28371         * modules/fdutimensat (Depends-on): Drop inline.
28372
28373         unistd: fix typo
28374         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28375
28376 2009-12-30  Bruno Haible  <bruno@clisp.org>
28377
28378         Fix compilation error with Solaris cc.
28379         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28380         * lib/unicase/u16-is-invariant.c: Likewise.
28381         * lib/unicase/u32-is-invariant.c: Likewise.
28382         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28383
28384 2009-12-30  Bruno Haible  <bruno@clisp.org>
28385
28386         Fix test crash.
28387         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28388         locales.
28389         Reported by Simon Josefsson <simon@josefsson.org>.
28390
28391 2009-12-30  Bruno Haible  <bruno@clisp.org>
28392
28393         Fix compilation error on most platforms.
28394         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28395         Reported by Simon Josefsson <simon@josefsson.org>
28396         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28397
28398 2009-12-30  Eric Blake  <ebb9@byu.net>
28399
28400         futimens, utimensat: work around ntfs-3g bug
28401         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28402         a ctime bug is present, and expand workaround to cover ntfs-3g.
28403         * lib/utimens.c (fdutimens, lutimens): Likewise.
28404         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28405         (validate_timespec): Adjust return value.
28406         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28407         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28408         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28409
28410 2009-12-29  Eric Blake  <ebb9@byu.net>
28411
28412         link-warning: make usage consistent
28413         * modules/ctype (Depends-on): Add link-warning.
28414         (Makefile.am): Update rules accordingly.
28415         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28416         * modules/locale (Depends-on, Makefile.am): Likewise.
28417         * modules/sys_file (Makefile.am): Likewise.
28418         * modules/getopt-posix (Makefile.am): Delete unused link warning
28419         efforts.
28420         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28421         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28422         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28423         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28424
28425         stdio: remove unused variables
28426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28428         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28429
28430         tests: test more substitute headers
28431         * modules/ctype-tests: New file.
28432         * modules/dirent-tests: Likewise.
28433         * modules/spawn-tests: Likewise.
28434         * modules/sys_file-tests: Likewise.
28435         * modules/sys_ioctl-tests: Likewise.
28436         * modules/sys_wait-tests: Likewise.
28437         * tests/test-ctype.c: Likewise.
28438         * tests/test-dirent.c: Likewise.
28439         * tests/test-spawn.c: Likewise.
28440         * tests/test-sys_file.c: Likewise.
28441         * tests/test-sys_ioctl.c: Likewise.
28442         * tests/test-sys_wait.c: Likewise.
28443         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28444         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28445         whether or not flock is in use.
28446
28447         tests: remove License section from module
28448         * modules/arpa_inet-tests: Remove unneeded section.
28449         * modules/byteswap-tests: Likewise.
28450         * modules/ceilf-tests: Likewise.
28451         * modules/ceill-tests: Likewise.
28452         * modules/crypto/des-tests: Likewise.
28453         * modules/crypto/gc-arcfour-tests: Likewise.
28454         * modules/crypto/gc-arctwo-tests: Likewise.
28455         * modules/crypto/gc-des-tests: Likewise.
28456         * modules/crypto/gc-hmac-md5-tests: Likewise.
28457         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28458         * modules/crypto/gc-md2-tests: Likewise.
28459         * modules/crypto/gc-md4-tests: Likewise.
28460         * modules/crypto/gc-md5-tests: Likewise.
28461         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28462         * modules/crypto/gc-rijndael-tests: Likewise.
28463         * modules/crypto/gc-sha1-tests: Likewise.
28464         * modules/crypto/gc-tests: Likewise.
28465         * modules/crypto/md2-tests: Likewise.
28466         * modules/crypto/md4-tests: Likewise.
28467         * modules/fcntl-h-tests: Likewise.
28468         * modules/floorf-tests: Likewise.
28469         * modules/floorl-tests: Likewise.
28470         * modules/frexp-nolibm-tests: Likewise.
28471         * modules/frexp-tests: Likewise.
28472         * modules/frexpl-nolibm-tests: Likewise.
28473         * modules/frexpl-tests: Likewise.
28474         * modules/getaddrinfo-tests: Likewise.
28475         * modules/inttypes-tests: Likewise.
28476         * modules/isfinite-tests: Likewise.
28477         * modules/isinf-tests: Likewise.
28478         * modules/ldexpl-tests: Likewise.
28479         * modules/locale-tests: Likewise.
28480         * modules/math-tests: Likewise.
28481         * modules/netdb-tests: Likewise.
28482         * modules/netinet_in-tests: Likewise.
28483         * modules/printf-frexp-tests: Likewise.
28484         * modules/printf-frexpl-tests: Likewise.
28485         * modules/priv-set-tests: Likewise.
28486         * modules/random_r-tests: Likewise.
28487         * modules/round-tests: Likewise.
28488         * modules/roundf-tests: Likewise.
28489         * modules/roundl-tests: Likewise.
28490         * modules/search-tests: Likewise.
28491         * modules/select-tests: Likewise.
28492         * modules/signal-tests: Likewise.
28493         * modules/stdbool-tests: Likewise.
28494         * modules/stddef-tests: Likewise.
28495         * modules/stdint-tests: Likewise.
28496         * modules/stdio-tests: Likewise.
28497         * modules/stdlib-tests: Likewise.
28498         * modules/string-tests: Likewise.
28499         * modules/strings-tests: Likewise.
28500         * modules/sys_select-tests: Likewise.
28501         * modules/sys_socket-tests: Likewise.
28502         * modules/sys_stat-tests: Likewise.
28503         * modules/sys_time-tests: Likewise.
28504         * modules/sys_utsname-tests: Likewise.
28505         * modules/sysexits-tests: Likewise.
28506         * modules/time-tests: Likewise.
28507         * modules/trunc-tests: Likewise.
28508         * modules/truncf-tests: Likewise.
28509         * modules/truncl-tests: Likewise.
28510         * modules/tsearch-tests: Likewise.
28511         * modules/unistd-tests: Likewise.
28512         * modules/wchar-tests: Likewise.
28513         * modules/wctype-tests: Likewise.
28514
28515         tests: fix license on several tests
28516         * tests/test-des.c: Update to GPLv3+.
28517         * tests/test-flock.c: Likewise.
28518         * tests/test-fsync.c: Likewise.
28519         * tests/test-futimens.h: Likewise.
28520         * tests/test-gc-arcfour.c: Likewise.
28521         * tests/test-gc-arctwo.c: Likewise.
28522         * tests/test-gc-des.c: Likewise.
28523         * tests/test-gc-hmac-md5.c: Likewise.
28524         * tests/test-gc-hmac-sha1.c: Likewise.
28525         * tests/test-gc-md2.c: Likewise.
28526         * tests/test-gc-md4.c: Likewise.
28527         * tests/test-gc-md5.c: Likewise.
28528         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28529         * tests/test-gc-rijndael.c: Likewise.
28530         * tests/test-gc-sha1.c: Likewise.
28531         * tests/test-gc.c: Likewise.
28532         * tests/test-getcwd.c: Likewise.
28533         * tests/test-link.c: Likewise.
28534         * tests/test-link.h: Likewise.
28535         * tests/test-lutimens.h: Likewise.
28536         * tests/test-md2.c: Likewise.
28537         * tests/test-md4.c: Likewise.
28538         * tests/test-mkdir.h: Likewise.
28539         * tests/test-rename.c: Likewise.
28540         * tests/test-rename.h: Likewise.
28541         * tests/test-safe-alloc.c: Likewise.
28542         * tests/test-utimens-common.h: Likewise.
28543         * tests/test-utimens.h: Likewise.
28544
28545         maint: sync license texts
28546         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28547         * doc/gpl-3.0.texi: Revert copyright year update.
28548         * doc/lgpl-3.0.texi: Likewise.
28549
28550 2009-12-29  Jim Meyering  <meyering@redhat.com>
28551
28552         update nearly all FSF copyright year lists to include 2009
28553         The files named by the following are exempted:
28554             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28555               test -f "$dst" && { echo "$dst"; continue; }
28556               test -d "$dst" || continue
28557               echo "$dst"/$(basename "$src")
28558             done > exempt
28559             git ls-files tests/unictype >> exempt
28560         In the remaining files, convert to all-interval notation if
28561         - there is already at least one year interval like 2000-2003
28562         - the file is maintained by me
28563         - the file is in lib/uni*/, where that style already prevails
28564         Otherwise, use update-copyright's default.
28565
28566 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28567         and Eric Blake  <ebb9@byu.net>
28568
28569         tests: don't require debug system() to pass
28570         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28571         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28572         * tests/test-unlink.h (test_unlink_func): Likewise.
28573         * tests/test-fstatat.c (main): ...into callers.
28574         * tests/test-lstat.c (main): Likewise.
28575         * tests/test-rmdir.c (main): Likewise.
28576         * tests/test-unlink.c (main): Likewise.
28577         * tests/test-unlinkat.c (main): Likewise.
28578         * tests/test-areadlink-with-size.c (main): Don't require a
28579         debug-only system call to pass, aiding cross-testing to mingw.
28580         * tests/test-areadlink.c (main): Likewise.
28581         * tests/test-areadlinkat-with-size.c (main): Likewise.
28582         * tests/test-areadlinkat.c (main): Likewise.
28583         * tests/test-canonicalize-lgpl.c (main): Likewise.
28584         * tests/test-canonicalize.c (main): Likewise.
28585         * tests/test-chown.c (main): Likewise.
28586         * tests/test-fchownat.c (main): Likewise.
28587         * tests/test-lchown.c (main): Likewise.
28588         * tests/test-fdutimensat.c (main): Likewise.
28589         * tests/test-futimens.c (main): Likewise.
28590         * tests/test-link.c (main): Likewise.
28591         * tests/test-linkat.c (main): Likewise.
28592         * tests/test-mkdir.c (main): Likewise.
28593         * tests/test-mkdirat.c (main): Likewise.
28594         * tests/test-mkfifo.c (main): Likewise.
28595         * tests/test-mkfifoat.c (main): Likewise.
28596         * tests/test-mknod.c (main): Likewise.
28597         * tests/test-readlink.c (main): Likewise.
28598         * tests/test-remove.c (main): Likewise.
28599         * tests/test-rename.c (main): Likewise.
28600         * tests/test-renameat.c (main): Likewise.
28601         * tests/test-symlink.c (main): Likewise.
28602         * tests/test-symlinkat.c (main): Likewise.
28603         * tests/test-utimens.c (main): Likewise.
28604         * tests/test-utimensat.c (main): Likewise.
28605
28606 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28607
28608         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28609         on $(UNUSED_PARAMETER_H) to avoid build failure.
28610
28611 2009-12-28  Jim Meyering  <meyering@redhat.com>
28612
28613         update-copyright: you may specify a max. line length other than 72
28614         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28615
28616         maint: use consistent FSF copyright line syntax
28617         * lib/posixtm.c: Add missing comma in FSF copyright line.
28618         * lib/posixtm.h: Likewise.
28619         * lib/getugroups.c: Add missing ", Inc.".
28620
28621         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28622         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28623         FSF copyright line.  Remove trailing blanks.
28624
28625 2009-12-28  Eric Blake  <ebb9@byu.net>
28626
28627         test-dup2: reduce dependencies
28628         * modules/cloexec (Configure.ac): Set witness.
28629         * modules/dup2-tests (Depends-on): Drop cloexec.
28630         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28631         not present.
28632         Suggested by Bruno Haible.
28633
28634 2009-12-26  Bruno Haible  <bruno@clisp.org>
28635
28636         Remove an unneeded dependency.
28637         * modules/fseterr (Depends-on): Remove dup2.
28638
28639 2009-12-26  Eric Blake  <ebb9@byu.net>
28640
28641         tests: use macros.h in more places
28642         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28643         (ASSERT_STREAM): Provide default of stderr.
28644         * tests/test-dirent-safer.c: Include macros.h, using alternate
28645         stream for assertions.
28646         * tests/test-dup-safer.c: Likewise.
28647         * tests/test-freopen-safer.c: Likewise.
28648         * tests/test-getopt.c: Likewise.
28649         * tests/test-openat-safer.c: Likewise.
28650         * tests/test-pipe.c: Likewise.
28651         * tests/test-popen-safer.c: Likewise.
28652         * modules/dirent-safer-tests (Files): Include macros.h.
28653         * modules/unistd-safer-tests (Files): Likewise.
28654         * modules/freopen-safer-tests (Files): Likewise.
28655         * modules/getopt-posix-tests (Files): Likewise.
28656         * modules/openat-safer-tests (Files): Likewise.
28657         * modules/pipe-tests (Files): Likewise.
28658
28659 2009-12-26  Bruno Haible  <bruno@clisp.org>
28660
28661         javacomp: Portability fix.
28662         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28663         that it also works on Solaris.
28664
28665 2009-12-26  Bruno Haible  <bruno@clisp.org>
28666
28667         localename: Fix storage allocation of gl_locale_name_thread's result.
28668         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28669         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28670         all platforms that have 'uselocale'.
28671         (gl_locale_name_thread_unsafe): New function, extracted from
28672         gl_locale_name_thread.
28673         (gl_locale_name_thread): Call struniq on all platforms that have
28674         'uselocale'.
28675         * tests/test-localename.c (test_locale_name_thread): Check that the
28676         resulting strings are permanently allocated.
28677         * modules/localename-tests (Depends-on): Add strdup.
28678
28679 2009-12-26  Bruno Haible  <bruno@clisp.org>
28680
28681         * tests/test-localename.c (categories): Fill in the strings.
28682
28683 2009-12-26  Jim Meyering  <meyering@redhat.com>
28684
28685         isdir: complete the removal of m4/isdir.m4
28686         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28687
28688         isdir: clean up, since at least grep still uses it
28689         * lib/isdir.c: Include "isdir.h".
28690         (S_ISDIR): Remove now-unneeded definition.
28691         * modules/isdir (Files): Add lib/isdir.h.
28692         * lib/isdir.h: New file, with declaration.
28693         * m4/isdir.m4: Remove file -- unneeded.
28694
28695 2009-12-25  Bruno Haible  <bruno@clisp.org>
28696
28697         selinux-h: Make generated .h files standalone.
28698         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28699         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28700         * lib/se-selinux.in.h: Likewise.
28701         * modules/selinux-h (Depends-on): Add unused-parameter.
28702         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28703         selinux/selinux.h and selinux/context.h.
28704         Suggested by Eric Blake.
28705
28706 2009-12-25  Bruno Haible  <bruno@clisp.org>
28707
28708         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28709         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28710         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28711         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28712         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28713
28714 2009-12-24  Bruno Haible  <bruno@clisp.org>
28715
28716         openat: Fix warning.
28717         * lib/openat-proc.c: Include <unistd.h>.
28718
28719 2009-12-24  Bruno Haible  <bruno@clisp.org>
28720
28721         New module 'unused-parameter'.
28722         * build-aux/unused-parameter.h: New file, extracted from earlier
28723         gnulib-common.m4.
28724         * modules/unused-parameter: New file.
28725         * lib/unistr.h: Include unused-parameter.h.
28726         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28727         _GL_UNUSED.
28728         * modules/unistr/base (Depends-on): Add unused-parameter.
28729
28730 2009-12-24  Bruno Haible  <bruno@clisp.org>
28731
28732         Add missing dependencies to 'extensions' module.
28733         * m4/extensions.m4: Add comment.
28734         * modules/accept4 (Depends-on): Add extensions.
28735         * modules/dup3 (Depends-on): Likewise.
28736         * modules/fcntl (Depends-on): Likewise.
28737         * modules/futimens (Depends-on): Likewise.
28738         * modules/mknod (Depends-on): Likewise.
28739         * modules/pipe2 (Depends-on): Likewise.
28740         * modules/stat-time (Depends-on): Likewise.
28741         * modules/strcasestr-simple (Depends-on): Likewise.
28742         * modules/strsignal (Depends-on): Likewise.
28743         * modules/utimensat (Depends-on): Likewise.
28744         * modules/localcharset (Depends-on): Likewise. Needed because of
28745         gl_FCNTL_O_FLAGS.
28746         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28747         AC_TYPE_MBSTATE_T.
28748         * modules/wcsnrtombs (Depends-on): Likewise.
28749         * modules/wcsrtombs (Depends-on): Likewise.
28750
28751 2009-12-24  Bruno Haible  <bruno@clisp.org>
28752
28753         binary-io: Avoid gcc warning due to SET_BINARY.
28754         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28755         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28756
28757 2009-12-24  Bruno Haible  <bruno@clisp.org>
28758
28759         Avoid future namespace pollution on glibc systems.
28760         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28761         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28762         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28763         glibc systems.
28764
28765 2009-12-24  Bruno Haible  <bruno@clisp.org>
28766
28767         Refactor common macros used in tests.
28768         * tests/macros.h: New file.
28769         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28770         and/or <stdlib.h>, if appropriate.
28771         (ASSERT, SIZEOF): Remove macros.
28772         * tests/test-areadlink-with-size.c: Likewise.
28773         * tests/test-areadlinkat.c: Likewise.
28774         * tests/test-areadlinkat-with-size.c: Likewise.
28775         * tests/test-argmatch.c: Likewise.
28776         * tests/test-argv-iter.c: Likewise.
28777         * tests/test-array-mergesort.c: Likewise.
28778         * tests/test-array_list.c: Likewise.
28779         * tests/test-array_oset.c: Likewise.
28780         * tests/test-avltree_list.c: Likewise.
28781         * tests/test-avltree_oset.c: Likewise.
28782         * tests/test-avltreehash_list.c: Likewise.
28783         * tests/test-base64.c: Likewise.
28784         * tests/test-binary-io.c: Likewise.
28785         * tests/test-bitrotate.c: Likewise.
28786         * tests/test-btowc.c: Likewise.
28787         * tests/test-byteswap.c: Likewise.
28788         * tests/test-c-ctype.c: Likewise.
28789         * tests/test-c-stack.c: Likewise.
28790         * tests/test-c-strcasecmp.c: Likewise.
28791         * tests/test-c-strcasestr.c: Likewise.
28792         * tests/test-c-strncasecmp.c: Likewise.
28793         * tests/test-c-strstr.c: Likewise.
28794         * tests/test-canonicalize-lgpl.c: Likewise.
28795         * tests/test-canonicalize.c: Likewise.
28796         * tests/test-carray_list.c: Likewise.
28797         * tests/test-ceilf1.c: Likewise.
28798         * tests/test-ceilf2.c: Likewise.
28799         * tests/test-ceill.c: Likewise.
28800         * tests/test-chown.c: Likewise.
28801         * tests/test-cloexec.c: Likewise.
28802         * tests/test-copy-acl.c: Likewise.
28803         * tests/test-copy-file.c: Likewise.
28804         * tests/test-count-one-bits.c: Likewise.
28805         * tests/test-dprintf-posix.c: Likewise.
28806         * tests/test-dup2.c: Likewise.
28807         * tests/test-dup3.c: Likewise.
28808         * tests/test-duplocale.c: Likewise.
28809         * tests/test-fbufmode.c: Likewise.
28810         * tests/test-fchdir.c: Likewise.
28811         * tests/test-fchownat.c: Likewise.
28812         * tests/test-fcntl-safer.c: Likewise.
28813         * tests/test-fcntl.c: Likewise.
28814         * tests/test-fdopendir.c: Likewise.
28815         * tests/test-fdutimensat.c: Likewise.
28816         * tests/test-fflush2.c: Likewise.
28817         * tests/test-file-has-acl.c: Likewise.
28818         * tests/test-filevercmp.c: Likewise.
28819         * tests/test-flock.c: Likewise.
28820         * tests/test-floorf1.c: Likewise.
28821         * tests/test-floorf2.c: Likewise.
28822         * tests/test-floorl.c: Likewise.
28823         * tests/test-fnmatch.c: Likewise.
28824         * tests/test-fopen.h: Likewise.
28825         * tests/test-fpending.c: Likewise.
28826         * tests/test-fprintf-posix.c: Likewise.
28827         * tests/test-fpurge.c: Likewise.
28828         * tests/test-freadable.c: Likewise.
28829         * tests/test-freadahead.c: Likewise.
28830         * tests/test-freading.c: Likewise.
28831         * tests/test-freadptr.c: Likewise.
28832         * tests/test-freadptr2.c: Likewise.
28833         * tests/test-freadseek.c: Likewise.
28834         * tests/test-freopen.c: Likewise.
28835         * tests/test-frexp.c: Likewise.
28836         * tests/test-frexpl.c: Likewise.
28837         * tests/test-fseek.c: Likewise.
28838         * tests/test-fseeko.c: Likewise.
28839         * tests/test-fstatat.c: Likewise.
28840         * tests/test-fstrcmp.c: Likewise.
28841         * tests/test-fsync.c: Likewise.
28842         * tests/test-ftell.c: Likewise.
28843         * tests/test-ftello.c: Likewise.
28844         * tests/test-func.c: Likewise.
28845         * tests/test-futimens.c: Likewise.
28846         * tests/test-fwritable.c: Likewise.
28847         * tests/test-fwriting.c: Likewise.
28848         * tests/test-getcwd.c: Likewise.
28849         * tests/test-getdate.c: Likewise.
28850         * tests/test-getdelim.c: Likewise.
28851         * tests/test-getdtablesize.c: Likewise.
28852         * tests/test-getgroups.c: Likewise.
28853         * tests/test-getline.c: Likewise.
28854         * tests/test-getndelim2.c: Likewise.
28855         * tests/test-glob.c: Likewise.
28856         * tests/test-hash.c: Likewise.
28857         * tests/test-i-ring.c: Likewise.
28858         * tests/test-iconv-utf.c: Likewise.
28859         * tests/test-iconv.c: Likewise.
28860         * tests/test-idpriv-drop.c: Likewise.
28861         * tests/test-idpriv-droptemp.c: Likewise.
28862         * tests/test-inet_ntop.c: Likewise.
28863         * tests/test-inet_pton.c: Likewise.
28864         * tests/test-isblank.c: Likewise.
28865         * tests/test-isfinite.c: Likewise.
28866         * tests/test-isinf.c: Likewise.
28867         * tests/test-isnan.c: Likewise.
28868         * tests/test-isnand.h: Likewise.
28869         * tests/test-isnanf.h: Likewise.
28870         * tests/test-isnanl.h: Likewise.
28871         * tests/test-lchown.c: Likewise.
28872         * tests/test-ldexpl.c: Likewise.
28873         * tests/test-link.c: Likewise.
28874         * tests/test-linkat.c: Likewise.
28875         * tests/test-linked_list.c: Likewise.
28876         * tests/test-linkedhash_list.c: Likewise.
28877         * tests/test-localename.c: Likewise.
28878         * tests/test-lseek.c: Likewise.
28879         * tests/test-lstat.c: Likewise.
28880         * tests/test-mbmemcasecmp.c: Likewise.
28881         * tests/test-mbmemcasecoll.c: Likewise.
28882         * tests/test-mbrtowc.c: Likewise.
28883         * tests/test-mbscasecmp.c: Likewise.
28884         * tests/test-mbscasestr1.c: Likewise.
28885         * tests/test-mbscasestr2.c: Likewise.
28886         * tests/test-mbscasestr3.c: Likewise.
28887         * tests/test-mbscasestr4.c: Likewise.
28888         * tests/test-mbschr.c: Likewise.
28889         * tests/test-mbscspn.c: Likewise.
28890         * tests/test-mbsinit.c: Likewise.
28891         * tests/test-mbsncasecmp.c: Likewise.
28892         * tests/test-mbsnrtowcs.c: Likewise.
28893         * tests/test-mbspbrk.c: Likewise.
28894         * tests/test-mbspcasecmp.c: Likewise.
28895         * tests/test-mbsrchr.c: Likewise.
28896         * tests/test-mbsrtowcs.c: Likewise.
28897         * tests/test-mbsspn.c: Likewise.
28898         * tests/test-mbsstr1.c: Likewise.
28899         * tests/test-mbsstr2.c: Likewise.
28900         * tests/test-mbsstr3.c: Likewise.
28901         * tests/test-memchr.c: Likewise.
28902         * tests/test-memchr2.c: Likewise.
28903         * tests/test-memcmp.c: Likewise.
28904         * tests/test-memmem.c: Likewise.
28905         * tests/test-memrchr.c: Likewise.
28906         * tests/test-mkdir.c: Likewise.
28907         * tests/test-mkdirat.c: Likewise.
28908         * tests/test-mkfifo.c: Likewise.
28909         * tests/test-mkfifoat.c: Likewise.
28910         * tests/test-mknod.c: Likewise.
28911         * tests/test-nanosleep.c: Likewise.
28912         * tests/test-nl_langinfo.c: Likewise.
28913         * tests/test-obstack-printf.c: Likewise.
28914         * tests/test-open.c: Likewise.
28915         * tests/test-openat.c: Likewise.
28916         * tests/test-pipe-filter-gi1.c: Likewise.
28917         * tests/test-pipe-filter-gi2-main.c: Likewise.
28918         * tests/test-pipe-filter-ii1.c: Likewise.
28919         * tests/test-pipe-filter-ii2-main.c: Likewise.
28920         * tests/test-pipe2.c: Likewise.
28921         * tests/test-popen.h: Likewise.
28922         * tests/test-posixtm.c: Likewise.
28923         * tests/test-pread.c: Likewise.
28924         * tests/test-printf-frexp.c: Likewise.
28925         * tests/test-printf-frexpl.c: Likewise.
28926         * tests/test-printf-posix.c: Likewise.
28927         * tests/test-priv-set.c: Likewise.
28928         * tests/test-quotearg.c: Likewise.
28929         * tests/test-random_r.c: Likewise.
28930         * tests/test-rawmemchr.c: Likewise.
28931         * tests/test-rbtree_list.c: Likewise.
28932         * tests/test-rbtree_oset.c: Likewise.
28933         * tests/test-rbtreehash_list.c: Likewise.
28934         * tests/test-readlink.c: Likewise.
28935         * tests/test-remove.c: Likewise.
28936         * tests/test-rename.c: Likewise.
28937         * tests/test-renameat.c: Likewise.
28938         * tests/test-rmdir.c: Likewise.
28939         * tests/test-round1.c: Likewise.
28940         * tests/test-roundf1.c: Likewise.
28941         * tests/test-roundl.c: Likewise.
28942         * tests/test-safe-alloc.c: Likewise.
28943         * tests/test-sameacls.c: Likewise.
28944         * tests/test-set-mode-acl.c: Likewise.
28945         * tests/test-setenv.c: Likewise.
28946         * tests/test-sigaction.c: Likewise.
28947         * tests/test-signbit.c: Likewise.
28948         * tests/test-sleep.c: Likewise.
28949         * tests/test-snprintf-posix.c: Likewise.
28950         * tests/test-snprintf.c: Likewise.
28951         * tests/test-sprintf-posix.c: Likewise.
28952         * tests/test-stat-time.c: Likewise.
28953         * tests/test-stat.c: Likewise.
28954         * tests/test-strcasestr.c: Likewise.
28955         * tests/test-strchrnul.c: Likewise.
28956         * tests/test-strerror.c: Likewise.
28957         * tests/test-striconv.c: Likewise.
28958         * tests/test-striconveh.c: Likewise.
28959         * tests/test-striconveha.c: Likewise.
28960         * tests/test-strsignal.c: Likewise.
28961         * tests/test-strstr.c: Likewise.
28962         * tests/test-strtod.c: Likewise.
28963         * tests/test-strverscmp.c: Likewise.
28964         * tests/test-symlink.c: Likewise.
28965         * tests/test-symlinkat.c: Likewise.
28966         * tests/test-trunc1.c: Likewise.
28967         * tests/test-trunc2.c: Likewise.
28968         * tests/test-truncf1.c: Likewise.
28969         * tests/test-truncf2.c: Likewise.
28970         * tests/test-truncl.c: Likewise.
28971         * tests/test-uname.c: Likewise.
28972         * tests/test-unlink.c: Likewise.
28973         * tests/test-unlinkat.c: Likewise.
28974         * tests/test-unsetenv.c: Likewise.
28975         * tests/test-usleep.c: Likewise.
28976         * tests/test-utimens.c: Likewise.
28977         * tests/test-utimensat.c: Likewise.
28978         * tests/test-vasnprintf-posix.c: Likewise.
28979         * tests/test-vasnprintf-posix2.c: Likewise.
28980         * tests/test-vasnprintf.c: Likewise.
28981         * tests/test-vasprintf-posix.c: Likewise.
28982         * tests/test-vasprintf.c: Likewise.
28983         * tests/test-vdprintf-posix.c: Likewise.
28984         * tests/test-vfprintf-posix.c: Likewise.
28985         * tests/test-vprintf-posix.c: Likewise.
28986         * tests/test-vsnprintf-posix.c: Likewise.
28987         * tests/test-vsnprintf.c: Likewise.
28988         * tests/test-vsprintf-posix.c: Likewise.
28989         * tests/test-wcrtomb.c: Likewise.
28990         * tests/test-wcsnrtombs.c: Likewise.
28991         * tests/test-wcsrtombs.c: Likewise.
28992         * tests/test-wctype.c: Likewise.
28993         * tests/test-wcwidth.c: Likewise.
28994         * tests/test-xfprintf-posix.c: Likewise.
28995         * tests/test-xmemdup0.c: Likewise.
28996         * tests/test-xprintf-posix.c: Likewise.
28997         * tests/test-xvasprintf.c: Likewise.
28998         * tests/unicase/test-locale-language.c: Likewise.
28999         * tests/unicase/test-mapping-part1.h: Likewise.
29000         * tests/unicase/test-predicate-part1.h: Likewise.
29001         * tests/unicase/test-u8-casecmp.c: Likewise.
29002         * tests/unicase/test-u8-casecoll.c: Likewise.
29003         * tests/unicase/test-u8-casefold.c: Likewise.
29004         * tests/unicase/test-u8-is-cased.c: Likewise.
29005         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29006         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29007         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29008         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29009         * tests/unicase/test-u8-tolower.c: Likewise.
29010         * tests/unicase/test-u8-totitle.c: Likewise.
29011         * tests/unicase/test-u8-toupper.c: Likewise.
29012         * tests/unicase/test-u16-casecmp.c: Likewise.
29013         * tests/unicase/test-u16-casecoll.c: Likewise.
29014         * tests/unicase/test-u16-casefold.c: Likewise.
29015         * tests/unicase/test-u16-is-cased.c: Likewise.
29016         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29017         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29018         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29019         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29020         * tests/unicase/test-u16-tolower.c: Likewise.
29021         * tests/unicase/test-u16-totitle.c: Likewise.
29022         * tests/unicase/test-u16-toupper.c: Likewise.
29023         * tests/unicase/test-u32-casecmp.c: Likewise.
29024         * tests/unicase/test-u32-casecoll.c: Likewise.
29025         * tests/unicase/test-u32-casefold.c: Likewise.
29026         * tests/unicase/test-u32-is-cased.c: Likewise.
29027         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29028         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29029         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29030         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29031         * tests/unicase/test-u32-tolower.c: Likewise.
29032         * tests/unicase/test-u32-totitle.c: Likewise.
29033         * tests/unicase/test-u32-toupper.c: Likewise.
29034         * tests/unicase/test-ulc-casecmp.c: Likewise.
29035         * tests/unicase/test-ulc-casecoll.c: Likewise.
29036         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29037         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29038         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29039         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29040         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29041         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29042         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29043         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29044         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29045         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29046         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29047         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29048         * tests/unictype/test-bidi_byname.c: Likewise.
29049         * tests/unictype/test-bidi_name.c: Likewise.
29050         * tests/unictype/test-bidi_of.c: Likewise.
29051         * tests/unictype/test-bidi_test.c: Likewise.
29052         * tests/unictype/test-block_list.c: Likewise.
29053         * tests/unictype/test-block_of.c: Likewise.
29054         * tests/unictype/test-block_test.c: Likewise.
29055         * tests/unictype/test-categ_and.c: Likewise.
29056         * tests/unictype/test-categ_and_not.c: Likewise.
29057         * tests/unictype/test-categ_byname.c: Likewise.
29058         * tests/unictype/test-categ_name.c: Likewise.
29059         * tests/unictype/test-categ_none.c: Likewise.
29060         * tests/unictype/test-categ_of.c: Likewise.
29061         * tests/unictype/test-categ_or.c: Likewise.
29062         * tests/unictype/test-categ_test_withtable.c: Likewise.
29063         * tests/unictype/test-combining.c: Likewise.
29064         * tests/unictype/test-decdigit.c: Likewise.
29065         * tests/unictype/test-digit.c: Likewise.
29066         * tests/unictype/test-mirror.c: Likewise.
29067         * tests/unictype/test-numeric.c: Likewise.
29068         * tests/unictype/test-pr_byname.c: Likewise.
29069         * tests/unictype/test-pr_test.c: Likewise.
29070         * tests/unictype/test-predicate-part1.h: Likewise.
29071         * tests/unictype/test-scripts.c: Likewise.
29072         * tests/unictype/test-sy_c_ident.c: Likewise.
29073         * tests/unictype/test-sy_java_ident.c: Likewise.
29074         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29075         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29076         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29077         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29078         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29079         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29080         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29081         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29082         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29083         * tests/uninorm/test-compat-decomposition.c: Likewise.
29084         * tests/uninorm/test-composition.c: Likewise.
29085         * tests/uninorm/test-decomposing-form.c: Likewise.
29086         * tests/uninorm/test-decomposition.c: Likewise.
29087         * tests/uninorm/test-u8-nfc.c: Likewise.
29088         * tests/uninorm/test-u8-nfd.c: Likewise.
29089         * tests/uninorm/test-u8-nfkc.c: Likewise.
29090         * tests/uninorm/test-u8-nfkd.c: Likewise.
29091         * tests/uninorm/test-u8-normcmp.c: Likewise.
29092         * tests/uninorm/test-u8-normcoll.c: Likewise.
29093         * tests/uninorm/test-u16-nfc.c: Likewise.
29094         * tests/uninorm/test-u16-nfd.c: Likewise.
29095         * tests/uninorm/test-u16-nfkc.c: Likewise.
29096         * tests/uninorm/test-u16-nfkd.c: Likewise.
29097         * tests/uninorm/test-u16-normcmp.c: Likewise.
29098         * tests/uninorm/test-u16-normcoll.c: Likewise.
29099         * tests/uninorm/test-u32-nfc.c: Likewise.
29100         * tests/uninorm/test-u32-nfd.c: Likewise.
29101         * tests/uninorm/test-u32-nfkc.c: Likewise.
29102         * tests/uninorm/test-u32-nfkd.c: Likewise.
29103         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29104         * tests/uninorm/test-u32-normcmp.c: Likewise.
29105         * tests/uninorm/test-u32-normcoll.c: Likewise.
29106         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29107         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29108         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29109         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29110         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29111         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29112         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29113         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29114         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29115         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29116         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29117         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29118         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29119         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29120         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29121         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29122         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29123         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29124         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29125         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29126         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29127         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29128         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29129         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29130         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29131         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29132         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29133         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29134         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29135         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29136         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29137         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29138         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29139         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29140         * tests/uniwidth/test-u8-width.c: Likewise.
29141         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29142         * tests/uniwidth/test-u16-width.c: Likewise.
29143         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29144         * tests/uniwidth/test-u32-width.c: Likewise.
29145         * tests/uniwidth/test-uc_width.c: Likewise.
29146         * tests/uniwidth/test-uc_width2.c: Likewise.
29147         * modules/acl-tests (Files): Add tests/macros.h.
29148         * modules/areadlink-tests (Files): Likewise.
29149         * modules/areadlink-with-size-tests (Files): Likewise.
29150         * modules/areadlinkat-tests (Files): Likewise.
29151         * modules/areadlinkat-with-size-tests (Files): Likewise.
29152         * modules/argmatch-tests (Files): Likewise.
29153         * modules/argv-iter-tests (Files): Likewise.
29154         * modules/array-list-tests (Files): Likewise.
29155         * modules/array-mergesort-tests (Files): Likewise.
29156         * modules/array-oset-tests (Files): Likewise.
29157         * modules/avltree-list-tests (Files): Likewise.
29158         * modules/avltree-oset-tests (Files): Likewise.
29159         * modules/avltreehash-list-tests (Files): Likewise.
29160         * modules/base64-tests (Files): Likewise.
29161         * modules/binary-io-tests (Files): Likewise.
29162         * modules/bitrotate-tests (Files): Likewise.
29163         * modules/btowc-tests (Files): Likewise.
29164         * modules/byteswap-tests (Files): Likewise.
29165         * modules/c-ctype-tests (Files): Likewise.
29166         * modules/c-stack-tests (Files): Likewise.
29167         * modules/c-strcase-tests (Files): Likewise.
29168         * modules/c-strcasestr-tests (Files): Likewise.
29169         * modules/c-strstr-tests (Files): Likewise.
29170         * modules/canonicalize-lgpl-tests (Files): Likewise.
29171         * modules/canonicalize-tests (Files): Likewise.
29172         * modules/carray-list-tests (Files): Likewise.
29173         * modules/ceilf-tests (Files): Likewise.
29174         * modules/ceill-tests (Files): Likewise.
29175         * modules/chown-tests (Files): Likewise.
29176         * modules/cloexec-tests (Files): Likewise.
29177         * modules/copy-file-tests (Files): Likewise.
29178         * modules/count-one-bits-tests (Files): Likewise.
29179         * modules/dprintf-posix-tests (Files): Likewise.
29180         * modules/dup2-tests (Files): Likewise.
29181         * modules/dup3-tests (Files): Likewise.
29182         * modules/duplocale-tests (Files): Likewise.
29183         * modules/fbufmode-tests (Files): Likewise.
29184         * modules/fchdir-tests (Files): Likewise.
29185         * modules/fcntl-safer-tests (Files): Likewise.
29186         * modules/fcntl-tests (Files): Likewise.
29187         * modules/fdopendir-tests (Files): Likewise.
29188         * modules/fdutimensat-tests (Files): Likewise.
29189         * modules/fflush-tests (Files): Likewise.
29190         * modules/filevercmp-tests (Files): Likewise.
29191         * modules/flock-tests (Files): Likewise.
29192         * modules/floorf-tests (Files): Likewise.
29193         * modules/floorl-tests (Files): Likewise.
29194         * modules/fnmatch-tests (Files): Likewise.
29195         * modules/fopen-safer-tests (Files): Likewise.
29196         * modules/fopen-tests (Files): Likewise.
29197         * modules/fpending-tests (Files): Likewise.
29198         * modules/fprintf-posix-tests (Files): Likewise.
29199         * modules/fpurge-tests (Files): Likewise.
29200         * modules/freadable-tests (Files): Likewise.
29201         * modules/freadahead-tests (Files): Likewise.
29202         * modules/freading-tests (Files): Likewise.
29203         * modules/freadptr-tests (Files): Likewise.
29204         * modules/freadseek-tests (Files): Likewise.
29205         * modules/freopen-tests (Files): Likewise.
29206         * modules/frexp-nolibm-tests (Files): Likewise.
29207         * modules/frexp-tests (Files): Likewise.
29208         * modules/frexpl-nolibm-tests (Files): Likewise.
29209         * modules/frexpl-tests (Files): Likewise.
29210         * modules/fseek-tests (Files): Likewise.
29211         * modules/fseeko-tests (Files): Likewise.
29212         * modules/fstrcmp-tests (Files): Likewise.
29213         * modules/fsync-tests (Files): Likewise.
29214         * modules/ftell-tests (Files): Likewise.
29215         * modules/ftello-tests (Files): Likewise.
29216         * modules/func-tests (Files): Likewise.
29217         * modules/futimens-tests (Files): Likewise.
29218         * modules/fwritable-tests (Files): Likewise.
29219         * modules/fwriting-tests (Files): Likewise.
29220         * modules/getcwd-tests (Files): Likewise.
29221         * modules/getdate-tests (Files): Likewise.
29222         * modules/getdelim-tests (Files): Likewise.
29223         * modules/getdtablesize-tests (Files): Likewise.
29224         * modules/getgroups-tests (Files): Likewise.
29225         * modules/getline-tests (Files): Likewise.
29226         * modules/getndelim2-tests (Files): Likewise.
29227         * modules/glob-tests (Files): Likewise.
29228         * modules/hash-tests (Files): Likewise.
29229         * modules/i-ring-tests (Files): Likewise.
29230         * modules/iconv-tests (Files): Likewise.
29231         * modules/iconv_open-utf-tests (Files): Likewise.
29232         * modules/idpriv-drop-tests (Files): Likewise.
29233         * modules/idpriv-droptemp-tests (Files): Likewise.
29234         * modules/inet_ntop-tests (Files): Likewise.
29235         * modules/inet_pton-tests (Files): Likewise.
29236         * modules/isblank-tests (Files): Likewise.
29237         * modules/isfinite-tests (Files): Likewise.
29238         * modules/isinf-tests (Files): Likewise.
29239         * modules/isnan-tests (Files): Likewise.
29240         * modules/isnand-nolibm-tests (Files): Likewise.
29241         * modules/isnand-tests (Files): Likewise.
29242         * modules/isnanf-nolibm-tests (Files): Likewise.
29243         * modules/isnanf-tests (Files): Likewise.
29244         * modules/isnanl-nolibm-tests (Files): Likewise.
29245         * modules/isnanl-tests (Files): Likewise.
29246         * modules/lchown-tests (Files): Likewise.
29247         * modules/ldexpl-tests (Files): Likewise.
29248         * modules/link-tests (Files): Likewise.
29249         * modules/linkat-tests (Files): Likewise.
29250         * modules/linked-list-tests (Files): Likewise.
29251         * modules/linkedhash-list-tests (Files): Likewise.
29252         * modules/localename-tests (Files): Likewise.
29253         * modules/lseek-tests (Files): Likewise.
29254         * modules/lstat-tests (Files): Likewise.
29255         * modules/mbmemcasecmp-tests (Files): Likewise.
29256         * modules/mbmemcasecoll-tests (Files): Likewise.
29257         * modules/mbrtowc-tests (Files): Likewise.
29258         * modules/mbscasecmp-tests (Files): Likewise.
29259         * modules/mbscasestr-tests (Files): Likewise.
29260         * modules/mbschr-tests (Files): Likewise.
29261         * modules/mbscspn-tests (Files): Likewise.
29262         * modules/mbsinit-tests (Files): Likewise.
29263         * modules/mbsncasecmp-tests (Files): Likewise.
29264         * modules/mbsnrtowcs-tests (Files): Likewise.
29265         * modules/mbspbrk-tests (Files): Likewise.
29266         * modules/mbspcasecmp-tests (Files): Likewise.
29267         * modules/mbsrchr-tests (Files): Likewise.
29268         * modules/mbsrtowcs-tests (Files): Likewise.
29269         * modules/mbsspn-tests (Files): Likewise.
29270         * modules/mbsstr-tests (Files): Likewise.
29271         * modules/memchr-tests (Files): Likewise.
29272         * modules/memchr2-tests (Files): Likewise.
29273         * modules/memcmp-tests (Files): Likewise.
29274         * modules/memmem-tests (Files): Likewise.
29275         * modules/memrchr-tests (Files): Likewise.
29276         * modules/mkdir-tests (Files): Likewise.
29277         * modules/mkfifo-tests (Files): Likewise.
29278         * modules/mkfifoat-tests (Files): Likewise.
29279         * modules/mknod-tests (Files): Likewise.
29280         * modules/nanosleep-tests (Files): Likewise.
29281         * modules/nl_langinfo-tests (Files): Likewise.
29282         * modules/obstack-printf-tests (Files): Likewise.
29283         * modules/open-tests (Files): Likewise.
29284         * modules/openat-tests (Files): Likewise.
29285         * modules/pipe-filter-gi-tests (Files): Likewise.
29286         * modules/pipe-filter-ii-tests (Files): Likewise.
29287         * modules/pipe2-tests (Files): Likewise.
29288         * modules/popen-safer-tests (Files): Likewise.
29289         * modules/popen-tests (Files): Likewise.
29290         * modules/posixtm-tests (Files): Likewise.
29291         * modules/pread-tests (Files): Likewise.
29292         * modules/printf-frexp-tests (Files): Likewise.
29293         * modules/printf-frexpl-tests (Files): Likewise.
29294         * modules/printf-posix-tests (Files): Likewise.
29295         * modules/priv-set-tests (Files): Likewise.
29296         * modules/quotearg-tests (Files): Likewise.
29297         * modules/random_r-tests (Files): Likewise.
29298         * modules/rawmemchr-tests (Files): Likewise.
29299         * modules/rbtree-list-tests (Files): Likewise.
29300         * modules/rbtree-oset-tests (Files): Likewise.
29301         * modules/rbtreehash-list-tests (Files): Likewise.
29302         * modules/readlink-tests (Files): Likewise.
29303         * modules/remove-tests (Files): Likewise.
29304         * modules/rename-tests (Files): Likewise.
29305         * modules/renameat-tests (Files): Likewise.
29306         * modules/rmdir-tests (Files): Likewise.
29307         * modules/round-tests (Files): Likewise.
29308         * modules/roundf-tests (Files): Likewise.
29309         * modules/roundl-tests (Files): Likewise.
29310         * modules/safe-alloc-tests (Files): Likewise.
29311         * modules/setenv-tests (Files): Likewise.
29312         * modules/sigaction-tests (Files): Likewise.
29313         * modules/signbit-tests (Files): Likewise.
29314         * modules/sleep-tests (Files): Likewise.
29315         * modules/snprintf-posix-tests (Files): Likewise.
29316         * modules/snprintf-tests (Files): Likewise.
29317         * modules/sprintf-posix-tests (Files): Likewise.
29318         * modules/stat-tests (Files): Likewise.
29319         * modules/stat-time-tests (Files): Likewise.
29320         * modules/strcasestr-tests (Files): Likewise.
29321         * modules/strchrnul-tests (Files): Likewise.
29322         * modules/strerror-tests (Files): Likewise.
29323         * modules/striconv-tests (Files): Likewise.
29324         * modules/striconveh-tests (Files): Likewise.
29325         * modules/striconveha-tests (Files): Likewise.
29326         * modules/strsignal-tests (Files): Likewise.
29327         * modules/strstr-tests (Files): Likewise.
29328         * modules/strtod-tests (Files): Likewise.
29329         * modules/strverscmp-tests (Files): Likewise.
29330         * modules/symlink-tests (Files): Likewise.
29331         * modules/symlinkat-tests (Files): Likewise.
29332         * modules/trunc-tests (Files): Likewise.
29333         * modules/truncf-tests (Files): Likewise.
29334         * modules/truncl-tests (Files): Likewise.
29335         * modules/uname-tests (Files): Likewise.
29336         * modules/unicase/cased-tests (Files): Likewise.
29337         * modules/unicase/ignorable-tests (Files): Likewise.
29338         * modules/unicase/locale-language-tests (Files): Likewise.
29339         * modules/unicase/tolower-tests (Files): Likewise.
29340         * modules/unicase/totitle-tests (Files): Likewise.
29341         * modules/unicase/toupper-tests (Files): Likewise.
29342         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29343         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29344         * modules/unicase/u8-casefold-tests (Files): Likewise.
29345         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29346         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29347         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29348         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29349         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29350         * modules/unicase/u8-tolower-tests (Files): Likewise.
29351         * modules/unicase/u8-totitle-tests (Files): Likewise.
29352         * modules/unicase/u8-toupper-tests (Files): Likewise.
29353         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29354         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29355         * modules/unicase/u16-casefold-tests (Files): Likewise.
29356         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29357         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29358         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29359         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29360         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29361         * modules/unicase/u16-tolower-tests (Files): Likewise.
29362         * modules/unicase/u16-totitle-tests (Files): Likewise.
29363         * modules/unicase/u16-toupper-tests (Files): Likewise.
29364         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29365         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29366         * modules/unicase/u32-casefold-tests (Files): Likewise.
29367         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29368         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29369         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29370         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29371         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29372         * modules/unicase/u32-tolower-tests (Files): Likewise.
29373         * modules/unicase/u32-totitle-tests (Files): Likewise.
29374         * modules/unicase/u32-toupper-tests (Files): Likewise.
29375         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29376         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29377         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29378         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29379         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29380         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29381         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29382         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29383         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29384         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29385         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29386         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29387         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29388         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29389         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29390         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29391         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29392         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29393         * modules/unictype/block-list-tests (Files): Likewise.
29394         * modules/unictype/block-of-tests (Files): Likewise.
29395         * modules/unictype/block-test-tests (Files): Likewise.
29396         * modules/unictype/category-C-tests (Files): Likewise.
29397         * modules/unictype/category-Cc-tests (Files): Likewise.
29398         * modules/unictype/category-Cf-tests (Files): Likewise.
29399         * modules/unictype/category-Cn-tests (Files): Likewise.
29400         * modules/unictype/category-Co-tests (Files): Likewise.
29401         * modules/unictype/category-Cs-tests (Files): Likewise.
29402         * modules/unictype/category-L-tests (Files): Likewise.
29403         * modules/unictype/category-Ll-tests (Files): Likewise.
29404         * modules/unictype/category-Lm-tests (Files): Likewise.
29405         * modules/unictype/category-Lo-tests (Files): Likewise.
29406         * modules/unictype/category-Lt-tests (Files): Likewise.
29407         * modules/unictype/category-Lu-tests (Files): Likewise.
29408         * modules/unictype/category-M-tests (Files): Likewise.
29409         * modules/unictype/category-Mc-tests (Files): Likewise.
29410         * modules/unictype/category-Me-tests (Files): Likewise.
29411         * modules/unictype/category-Mn-tests (Files): Likewise.
29412         * modules/unictype/category-N-tests (Files): Likewise.
29413         * modules/unictype/category-Nd-tests (Files): Likewise.
29414         * modules/unictype/category-Nl-tests (Files): Likewise.
29415         * modules/unictype/category-No-tests (Files): Likewise.
29416         * modules/unictype/category-P-tests (Files): Likewise.
29417         * modules/unictype/category-Pc-tests (Files): Likewise.
29418         * modules/unictype/category-Pd-tests (Files): Likewise.
29419         * modules/unictype/category-Pe-tests (Files): Likewise.
29420         * modules/unictype/category-Pf-tests (Files): Likewise.
29421         * modules/unictype/category-Pi-tests (Files): Likewise.
29422         * modules/unictype/category-Po-tests (Files): Likewise.
29423         * modules/unictype/category-Ps-tests (Files): Likewise.
29424         * modules/unictype/category-S-tests (Files): Likewise.
29425         * modules/unictype/category-Sc-tests (Files): Likewise.
29426         * modules/unictype/category-Sk-tests (Files): Likewise.
29427         * modules/unictype/category-Sm-tests (Files): Likewise.
29428         * modules/unictype/category-So-tests (Files): Likewise.
29429         * modules/unictype/category-Z-tests (Files): Likewise.
29430         * modules/unictype/category-Zl-tests (Files): Likewise.
29431         * modules/unictype/category-Zp-tests (Files): Likewise.
29432         * modules/unictype/category-Zs-tests (Files): Likewise.
29433         * modules/unictype/category-and-not-tests (Files): Likewise.
29434         * modules/unictype/category-and-tests (Files): Likewise.
29435         * modules/unictype/category-byname-tests (Files): Likewise.
29436         * modules/unictype/category-name-tests (Files): Likewise.
29437         * modules/unictype/category-none-tests (Files): Likewise.
29438         * modules/unictype/category-of-tests (Files): Likewise.
29439         * modules/unictype/category-or-tests (Files): Likewise.
29440         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29441         * modules/unictype/combining-class-tests (Files): Likewise.
29442         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29443         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29444         * modules/unictype/ctype-blank-tests (Files): Likewise.
29445         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29446         * modules/unictype/ctype-digit-tests (Files): Likewise.
29447         * modules/unictype/ctype-graph-tests (Files): Likewise.
29448         * modules/unictype/ctype-lower-tests (Files): Likewise.
29449         * modules/unictype/ctype-print-tests (Files): Likewise.
29450         * modules/unictype/ctype-punct-tests (Files): Likewise.
29451         * modules/unictype/ctype-space-tests (Files): Likewise.
29452         * modules/unictype/ctype-upper-tests (Files): Likewise.
29453         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29454         * modules/unictype/decimal-digit-tests (Files): Likewise.
29455         * modules/unictype/digit-tests (Files): Likewise.
29456         * modules/unictype/mirror-tests (Files): Likewise.
29457         * modules/unictype/numeric-tests (Files): Likewise.
29458         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29459         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29460         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29461         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29462         Likewise.
29463         * modules/unictype/property-bidi-block-separator-tests (Files):
29464         Likewise.
29465         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29466         Likewise.
29467         * modules/unictype/property-bidi-common-separator-tests (Files):
29468         Likewise.
29469         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29470         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29471         Likewise.
29472         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29473         Likewise.
29474         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29475         Likewise.
29476         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29477         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29478         Likewise.
29479         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29480         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29481         Likewise.
29482         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29483         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29484         * modules/unictype/property-bidi-segment-separator-tests (Files):
29485         Likewise.
29486         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29487         * modules/unictype/property-byname-tests (Files): Likewise.
29488         * modules/unictype/property-combining-tests (Files): Likewise.
29489         * modules/unictype/property-composite-tests (Files): Likewise.
29490         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29491         * modules/unictype/property-dash-tests (Files): Likewise.
29492         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29493         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29494         Likewise.
29495         * modules/unictype/property-deprecated-tests (Files): Likewise.
29496         * modules/unictype/property-diacritic-tests (Files): Likewise.
29497         * modules/unictype/property-extender-tests (Files): Likewise.
29498         * modules/unictype/property-format-control-tests (Files): Likewise.
29499         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29500         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29501         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29502         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29503         * modules/unictype/property-hyphen-tests (Files): Likewise.
29504         * modules/unictype/property-id-continue-tests (Files): Likewise.
29505         * modules/unictype/property-id-start-tests (Files): Likewise.
29506         * modules/unictype/property-ideographic-tests (Files): Likewise.
29507         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29508         * modules/unictype/property-ids-trinary-operator-tests (Files):
29509         Likewise.
29510         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29511         * modules/unictype/property-iso-control-tests (Files): Likewise.
29512         * modules/unictype/property-join-control-tests (Files): Likewise.
29513         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29514         * modules/unictype/property-line-separator-tests (Files): Likewise.
29515         * modules/unictype/property-logical-order-exception-tests (Files):
29516         Likewise.
29517         * modules/unictype/property-lowercase-tests (Files): Likewise.
29518         * modules/unictype/property-math-tests (Files): Likewise.
29519         * modules/unictype/property-non-break-tests (Files): Likewise.
29520         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29521         * modules/unictype/property-numeric-tests (Files): Likewise.
29522         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29523         * modules/unictype/property-other-default-ignorable-code-point-tests
29524         (Files): Likewise.
29525         * modules/unictype/property-other-grapheme-extend-tests (Files):
29526         Likewise.
29527         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29528         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29529         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29530         * modules/unictype/property-other-math-tests (Files): Likewise.
29531         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29532         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29533         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29534         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29535         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29536         * modules/unictype/property-private-use-tests (Files): Likewise.
29537         * modules/unictype/property-punctuation-tests (Files): Likewise.
29538         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29539         * modules/unictype/property-radical-tests (Files): Likewise.
29540         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29541         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29542         * modules/unictype/property-space-tests (Files): Likewise.
29543         * modules/unictype/property-terminal-punctuation-tests (Files):
29544         Likewise.
29545         * modules/unictype/property-test-tests (Files): Likewise.
29546         * modules/unictype/property-titlecase-tests (Files): Likewise.
29547         * modules/unictype/property-unassigned-code-value-tests (Files):
29548         Likewise.
29549         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29550         * modules/unictype/property-uppercase-tests (Files): Likewise.
29551         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29552         * modules/unictype/property-white-space-tests (Files): Likewise.
29553         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29554         * modules/unictype/property-xid-start-tests (Files): Likewise.
29555         * modules/unictype/property-zero-width-tests (Files): Likewise.
29556         * modules/unictype/scripts-tests (Files): Likewise.
29557         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29558         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29559         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29560         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29561         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29562         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29563         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29564         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29565         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29566         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29567         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29568         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29569         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29570         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29571         * modules/uninorm/composition-tests (Files): Likewise.
29572         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29573         * modules/uninorm/decomposition-tests (Files): Likewise.
29574         * modules/uninorm/filter-tests (Files): Likewise.
29575         * modules/uninorm/nfc-tests (Files): Likewise.
29576         * modules/uninorm/nfd-tests (Files): Likewise.
29577         * modules/uninorm/nfkc-tests (Files): Likewise.
29578         * modules/uninorm/nfkd-tests (Files): Likewise.
29579         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29580         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29581         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29582         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29583         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29584         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29585         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29586         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29587         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29588         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29589         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29590         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29591         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29592         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29593         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29594         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29595         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29596         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29597         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29598         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29599         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29600         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29601         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29602         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29603         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29604         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29605         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29606         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29607         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29608         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29609         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29610         * modules/uniwidth/u8-width-tests (Files): Likewise.
29611         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29612         * modules/uniwidth/u16-width-tests (Files): Likewise.
29613         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29614         * modules/uniwidth/u32-width-tests (Files): Likewise.
29615         * modules/uniwidth/width-tests (Files): Likewise.
29616         * modules/unlink-tests (Files): Likewise.
29617         * modules/unsetenv-tests (Files): Likewise.
29618         * modules/usleep-tests (Files): Likewise.
29619         * modules/utimens-tests (Files): Likewise.
29620         * modules/utimensat-tests (Files): Likewise.
29621         * modules/vasnprintf-posix-tests (Files): Likewise.
29622         * modules/vasnprintf-tests (Files): Likewise.
29623         * modules/vasprintf-posix-tests (Files): Likewise.
29624         * modules/vasprintf-tests (Files): Likewise.
29625         * modules/vdprintf-posix-tests (Files): Likewise.
29626         * modules/vfprintf-posix-tests (Files): Likewise.
29627         * modules/vprintf-posix-tests (Files): Likewise.
29628         * modules/vsnprintf-posix-tests (Files): Likewise.
29629         * modules/vsnprintf-tests (Files): Likewise.
29630         * modules/vsprintf-posix-tests (Files): Likewise.
29631         * modules/wcrtomb-tests (Files): Likewise.
29632         * modules/wcsnrtombs-tests (Files): Likewise.
29633         * modules/wcsrtombs-tests (Files): Likewise.
29634         * modules/wctype-tests (Files): Likewise.
29635         * modules/wcwidth-tests (Files): Likewise.
29636         * modules/xmemdup0-tests (Files): Likewise.
29637         * modules/xprintf-posix-tests (Files): Likewise.
29638         * modules/xvasprintf-tests (Files): Likewise.
29639
29640 2009-12-24  Eric Blake  <ebb9@byu.net>
29641
29642         test-nanosleep: fix typo
29643         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29644         patch.
29645         Reported by Bruno Haible.
29646
29647 2009-12-24  Bruno Haible  <bruno@clisp.org>
29648
29649         Reduce namespace pollution on glibc systems.
29650         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29651         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29652         systems.
29653         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29654         <getopt.h> on glibc systems.
29655         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29656         systems.
29657         * lib/fcntl.c: Include <unistd.h> here instead.
29658
29659 2009-12-24  Bruno Haible  <bruno@clisp.org>
29660
29661         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29662
29663 2009-12-24  Eric Blake  <ebb9@byu.net>
29664
29665         tests: add signature checks
29666         * tests/signature.h (SIGNATURE_CHECK): New file.
29667         * modules/atexit-tests (Files): Use it.
29668         * modules/btowc-tests (Files): Likewise.
29669         * modules/canonicalize-lgpl-tests (Files): Likewise.
29670         * modules/ceilf-tests (Files): Likewise.
29671         * modules/ceill-tests (Files): Likewise.
29672         * modules/chown-tests (Files): Likewise.
29673         * modules/dprintf-posix-tests (Files): Likewise.
29674         * modules/dup2-tests (Files): Likewise.
29675         * modules/dup3-tests (Files): Likewise.
29676         * modules/duplocale-tests (Files): Likewise.
29677         * modules/fchdir-tests (Files): Likewise.
29678         * modules/fcntl-tests (Files): Likewise.
29679         * modules/fdopendir-tests (Files): Likewise.
29680         * modules/fflush-tests (Files): Likewise.
29681         * modules/flock-tests (Files): Likewise.
29682         * modules/floorf-tests (Files): Likewise.
29683         * modules/floorl-tests (Files): Likewise.
29684         * modules/fnmatch-tests (Files): Likewise.
29685         * modules/fopen-tests (Files): Likewise.
29686         * modules/fprintf-posix-tests (Files): Likewise.
29687         * modules/freopen-tests (Files): Likewise.
29688         * modules/frexp-nolibm-tests (Files): Likewise.
29689         * modules/frexp-tests (Files): Likewise.
29690         * modules/frexpl-nolibm-tests (Files): Likewise.
29691         * modules/frexpl-tests (Files): Likewise.
29692         * modules/fseek-tests (Files): Likewise.
29693         * modules/fseeko-tests (Files): Likewise.
29694         * modules/fsync-tests (Files): Likewise.
29695         * modules/ftell-tests (Files): Likewise.
29696         * modules/ftello-tests (Files): Likewise.
29697         * modules/futimens-tests (Files): Likewise.
29698         * modules/getaddrinfo-tests (Files): Likewise.
29699         * modules/getcwd-tests (Files): Likewise.
29700         * modules/getdelim-tests (Files): Likewise.
29701         * modules/getdtablesize-tests (Files): Likewise.
29702         * modules/getgroups-tests (Files): Likewise.
29703         * modules/gethostname-tests (Files): Likewise.
29704         * modules/getline-tests (Files): Likewise.
29705         * modules/getopt-posix-tests (Files): Likewise.
29706         * modules/gettimeofday-tests (Files): Likewise.
29707         * modules/glob-tests (Files): Likewise.
29708         * modules/iconv-tests (Files): Likewise.
29709         * modules/inet_ntop-tests (Files): Likewise.
29710         * modules/inet_pton-tests (Files): Likewise.
29711         * modules/isblank-tests (Files): Likewise.
29712         * modules/lchown-tests (Files): Likewise.
29713         * modules/ldexpl-tests (Files): Likewise.
29714         * modules/link-tests (Files): Likewise.
29715         * modules/linkat-tests (Files): Likewise.
29716         * modules/lseek-tests (Files): Likewise.
29717         * modules/lstat-tests (Files): Likewise.
29718         * modules/mbrtowc-tests (Files): Likewise.
29719         * modules/mbsinit-tests (Files): Likewise.
29720         * modules/mbsnrtowcs-tests (Files): Likewise.
29721         * modules/mbsrtowcs-tests (Files): Likewise.
29722         * modules/memchr-tests (Files): Likewise.
29723         * modules/memcmp-tests (Files): Likewise.
29724         * modules/memmem-tests (Files): Likewise.
29725         * modules/memrchr-tests (Files): Likewise.
29726         * modules/mkdir-tests (Files): Likewise.
29727         * modules/mkfifo-tests (Files): Likewise.
29728         * modules/mkfifoat-tests (Files): Likewise.
29729         * modules/mknod-tests (Files): Likewise.
29730         * modules/nanosleep-tests (Files): Likewise.
29731         * modules/nl_langinfo-tests (Files): Likewise.
29732         * modules/obstack-printf-tests (Files): Likewise.
29733         * modules/open-tests (Files): Likewise.
29734         * modules/openat-tests (Files): Likewise.
29735         * modules/perror-tests (Files): Likewise.
29736         * modules/pipe2-tests (Files): Likewise.
29737         * modules/poll-tests (Files): Likewise.
29738         * modules/popen-tests (Files): Likewise.
29739         * modules/posix_spawn-tests (Files): Likewise.
29740         * modules/posix_spawnp-tests (Files): Likewise.
29741         * modules/pread-tests (Files): Likewise.
29742         * modules/printf-posix-tests (Files): Likewise.
29743         * modules/pty-tests (Files): Likewise.
29744         * modules/random_r-tests (Files): Likewise.
29745         * modules/rawmemchr-tests (Files): Likewise.
29746         * modules/readlink-tests (Files): Likewise.
29747         * modules/remove-tests (Files): Likewise.
29748         * modules/rename-tests (Files): Likewise.
29749         * modules/renameat-tests (Files): Likewise.
29750         * modules/rmdir-tests (Files): Likewise.
29751         * modules/round-tests (Files): Likewise.
29752         * modules/roundf-tests (Files): Likewise.
29753         * modules/roundl-tests (Files): Likewise.
29754         * modules/select-tests (Files): Likewise.
29755         * modules/setenv-tests (Files): Likewise.
29756         * modules/sigaction-tests (Files): Likewise.
29757         * modules/sleep-tests (Files): Likewise.
29758         * modules/snprintf-posix-tests (Files): Likewise.
29759         * modules/snprintf-tests (Files): Likewise.
29760         * modules/sprintf-posix-tests (Files): Likewise.
29761         * modules/stat-tests (Files): Likewise.
29762         * modules/strcasestr-tests (Files): Likewise.
29763         * modules/strchrnul-tests (Files): Likewise.
29764         * modules/strerror-tests (Files): Likewise.
29765         * modules/strsignal-tests (Files): Likewise.
29766         * modules/strstr-tests (Files): Likewise.
29767         * modules/strtod-tests (Files): Likewise.
29768         * modules/strverscmp-tests (Files): Likewise.
29769         * modules/symlink-tests (Files): Likewise.
29770         * modules/symlinkat-tests (Files): Likewise.
29771         * modules/times-tests (Files): Likewise.
29772         * modules/trunc-tests (Files): Likewise.
29773         * modules/truncf-tests (Files): Likewise.
29774         * modules/truncl-tests (Files): Likewise.
29775         * modules/tsearch-tests (Files): Likewise.
29776         * modules/uname-tests (Files): Likewise.
29777         * modules/unlink-tests (Files): Likewise.
29778         * modules/unsetenv-tests (Files): Likewise.
29779         * modules/usleep-tests (Files): Likewise.
29780         * modules/utimensat-tests (Files): Likewise.
29781         * modules/vasprintf-tests (Files): Likewise.
29782         * modules/vdprintf-posix-tests (Files): Likewise.
29783         * modules/vfprintf-posix-tests (Files): Likewise.
29784         * modules/vprintf-posix-tests (Files): Likewise.
29785         * modules/vsnprintf-posix-tests (Files): Likewise.
29786         * modules/vsnprintf-tests (Files): Likewise.
29787         * modules/vsprintf-posix-tests (Files): Likewise.
29788         * modules/wcrtomb-tests (Files): Likewise.
29789         * modules/wcsnrtombs-tests (Files): Likewise.
29790         * modules/wcsrtombs-tests (Files): Likewise.
29791         * modules/wcwidth-tests (Files): Likewise.
29792         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29793         * tests/test-isinf.c (isinf): Likewise.
29794         * tests/test-isnan.c (isnan): Likewise.
29795         * tests/test-signbit.c (signbit): Likewise.
29796         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29797         declaration, either as macro or with correct signature.
29798         (select): Ensure function under test is declared with correct
29799         signature in correct header.
29800         * tests/test-atexit.c (atexit): Likewise.
29801         * tests/test-btowc.c (btowc): Likewise.
29802         * tests/test-canonicalize-lgpl.c (realpath)
29803         (canonicalize_file_name): Likewise.
29804         * tests/test-ceilf1.c (ceilf): Likewise.
29805         * tests/test-ceill.c (ceill): Likewise.
29806         * tests/test-chown.c (chown): Likewise.
29807         * tests/test-dprintf-posix.c (dprintf): Likewise.
29808         * tests/test-dup2.c (dup2): Likewise.
29809         * tests/test-dup3.c (dup3): Likewise.
29810         * tests/test-duplocale.c (duplocale): Likewise.
29811         * tests/test-fchdir.c (fchdir): Likewise.
29812         * tests/test-fchownat.c (fchownat): Likewise.
29813         * tests/test-fcntl.c (fcntl): Likewise.
29814         * tests/test-fdopendir.c (fdopendir): Likewise.
29815         * tests/test-fflush.c (fflush): Likewise.
29816         * tests/test-flock.c (flock): Likewise.
29817         * tests/test-floorf1.c (floorf): Likewise.
29818         * tests/test-floorl.c (floorl): Likewise.
29819         * tests/test-fnmatch.c (fnmatch): Likewise.
29820         * tests/test-fopen.c (fopen): Likewise.
29821         * tests/test-fprintf-posix.c (fprintf): Likewise.
29822         * tests/test-freopen.c (freopen): Likewise.
29823         * tests/test-frexp.c (frexp): Likewise.
29824         * tests/test-frexpl.c (frexpl): Likewise.
29825         * tests/test-fseek.c (fseek): Likewise.
29826         * tests/test-fseeko.c (fseeko): Likewise.
29827         * tests/test-fstatat.c (fstatat): Likewise.
29828         * tests/test-fsync.c (fsync): Likewise.
29829         * tests/test-ftell.c (ftell): Likewise.
29830         * tests/test-ftello.c (ftello): Likewise.
29831         * tests/test-futimens.c (futimens): Likewise.
29832         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29833         (gai_strerror): Likewise.
29834         * tests/test-getcwd.c (getcwd): Likewise.
29835         * tests/test-getdelim.c (getdelim): Likewise.
29836         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29837         * tests/test-getgroups.c (getgroups): Likewise.
29838         * tests/test-gethostname.c (gethostname): Likewise.
29839         * tests/test-getline.c (getline): Likewise.
29840         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29841         Likewise.
29842         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29843         * tests/test-glob.c (glob, globfree): Likewise.
29844         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29845         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29846         * tests/test-inet_pton.c (inet_pton): Likewise.
29847         * tests/test-isblank.c (isblank): Likewise.
29848         * tests/test-lchown.c (lchown): Likewise.
29849         * tests/test-ldexpl.c (ldexpl): Likewise.
29850         * tests/test-link.c (link): Likewise.
29851         * tests/test-linkat.c (linkat): Likewise.
29852         * tests/test-lseek.c (lseek): Likewise.
29853         * tests/test-lstat.c (lstat): Likewise.
29854         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29855         * tests/test-mbsinit.c (mbsinit): Likewise.
29856         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29857         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29858         * tests/test-memchr.c (memchr): Likewise.
29859         * tests/test-memcmp.c (memcmp): Likewise.
29860         * tests/test-memmem.c (memmem): Likewise.
29861         * tests/test-memrchr.c (memrchr): Likewise.
29862         * tests/test-mkdir.c (mkdir): Likewise.
29863         * tests/test-mkdirat.c (mkdirat): Likewise.
29864         * tests/test-mkfifo.c (mkfifo): Likewise.
29865         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29866         * tests/test-mknod.c (mknod): Likewise.
29867         * tests/test-nanosleep.c (nanosleep): Likewise.
29868         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29869         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29870         Likewise.
29871         * tests/test-open.c (open): Likewise.
29872         * tests/test-openat.c (openat): Likewise.
29873         * tests/test-perror.c (perror): Likewise.
29874         * tests/test-pipe2.c (pipe2): Likewise.
29875         * tests/test-poll.c (poll): Likewise.
29876         * tests/test-popen.c (popen, pclose): Likewise.
29877         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29878         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29879         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29880         (posix_spawn_file_actions_destroy)
29881         (posix_spawn_file_actions_addclose)
29882         (posix_spawn_file_actions_addopen)
29883         (posix_spawn_file_actions_adddup2): Likewise.
29884         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29885         * tests/test-pread.c (pread): Likewise.
29886         * tests/test-printf-posix.c (printf): Likewise.
29887         * tests/test-pty.c (openpty, forkpty): Likewise.
29888         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29889         (random_r): Likewise.
29890         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29891         * tests/test-readlink.c (readlink): Likewise.
29892         * tests/test-remove.c (remove): Likewise.
29893         * tests/test-rename.c (rename): Likewise.
29894         * tests/test-renameat.c (renameat): Likewise.
29895         * tests/test-rmdir.c (rmdir): Likewise.
29896         * tests/test-round1.c (round): Likewise.
29897         * tests/test-roundf1.c (roundf): Likewise.
29898         * tests/test-roundl.c (roundl): Likewise.
29899         * tests/test-setenv.c (setenv): Likewise.
29900         * tests/test-sigaction.c (sigaction): Likewise.
29901         * tests/test-sleep.c (sleep): Likewise.
29902         * tests/test-snprintf.c (snprintf): Likewise.
29903         * tests/test-sprintf-posix.c (sprintf): Likewise.
29904         * tests/test-stat.c (stat): Likewise.
29905         * tests/test-stpncpy.c (stpncpy): Likewise.
29906         * tests/test-strcasestr.c (strcasestr): Likewise.
29907         * tests/test-strchrnul.c (strchrnul): Likewise.
29908         * tests/test-strerror.c (strerror): Likewise.
29909         * tests/test-strsignal.c (strsignal): Likewise.
29910         * tests/test-strstr.c (strstr): Likewise.
29911         * tests/test-strtod.c (strtod): Likewise.
29912         * tests/test-strverscmp.c (strverscmp): Likewise.
29913         * tests/test-symlink.c (symlink): Likewise.
29914         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29915         * tests/test-times.c (times): Likewise.
29916         * tests/test-trunc1.c (trunc): Likewise.
29917         * tests/test-truncf1.c (truncf): Likewise.
29918         * tests/test-truncl.c (truncl): Likewise.
29919         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29920         Likewise.
29921         * tests/test-uname.c (uname): Likewise.
29922         * tests/test-unlink.c (unlink): Likewise.
29923         * tests/test-unlinkat.c (unlinkat): Likewise.
29924         * tests/test-unsetenv.c (unsetenv): Likewise.
29925         * tests/test-usleep.c (usleep): Likewise.
29926         * tests/test-utimensat.c (utimensat): Likewise.
29927         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29928         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29929         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29930         * tests/test-vprintf-posix.c (vprintf): Likewise.
29931         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29932         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29933         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29934         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29935         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29936         * tests/test-wcwidth.c (wcwidth): Likewise.
29937
29938         build: pull in conditional headers during GNULIB_POSIXCHECK
29939         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29940         definitions from any conditionally-included headers.
29941         * lib/stdlib.in.h (includes): Likewise.
29942         * lib/unistd.in.h (includes): Likewise.
29943
29944 2009-12-24  Bruno Haible  <bruno@clisp.org>
29945
29946         * tests/test-argv-iter.c: Include header file being tested immediately
29947         after config.h.
29948         * tests/test-base64.c: Likewise.
29949         * tests/test-flock.c: Likewise.
29950         * tests/test-fsync.c: Likewise.
29951         * tests/test-getdate.c: Likewise.
29952         * tests/test-getndelim2.c: Likewise.
29953         * tests/test-isfinite.c: Likewise.
29954         * tests/test-isinf.c: Likewise.
29955         * tests/test-strerror.c: Likewise.
29956         * tests/test-strsignal.c: Likewise.
29957
29958 2009-12-23  Eric Blake  <ebb9@byu.net>
29959
29960         unistd: work around cygwin bug
29961         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29962         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29963         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29964
29965 2009-12-23  Bruno Haible  <bruno@clisp.org>
29966
29967         localename: More tests.
29968         * tests/test-localename.c (SIZEOF): New macro.
29969         (categories): New variable.
29970         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29971         test_locale_name_default): Add test w.r.t. thread locale.
29972         (test_locale_name_thread): New function.
29973         (main): Invoke it.
29974
29975         localename: Make aware of thread locale.
29976         * lib/localename.h (gl_locale_name_thread): New declaration.
29977         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29978         behaviour with respect to thread locale.
29979         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29980         <langinfo.h>, glthread/lock.h.
29981         (SIZE_BITS): New macro.
29982         (string_hash): New function.
29983         (struct hash_node): New type.
29984         (HASH_TABLE_SIZE): New macro.
29985         (struniq_hash_table, struniq_lock): New variables.
29986         (struniq): New function.
29987         (gl_locale_name_thread): New function.
29988         (gl_locale_name): Invoke it.
29989         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29990         * modules/localename (Depends-on): Add lock.
29991         Reported by Mike Gran <spk121@yahoo.com>.
29992
29993 2009-12-23  Eric Blake  <ebb9@byu.net>
29994
29995         va-args: new module
29996         * modules/va-args: New file.
29997         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29998         * MODULES.html.sh (Core language properties): Mention it.
29999
30000         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30001         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30002         named alias for __attribute__((__unused__)).
30003         * lib/chown.c: Update client.
30004         * lib/fchmodat.c: Likewise.
30005         * lib/fts.c: Likewise.
30006         * lib/getdate.y: Likewise.
30007         * lib/getgroups.c: Likewise.
30008         * lib/getopt.c: Likewise.
30009         * lib/getugroups.c: Likewise.
30010         * lib/mkdir.c: Likewise.
30011         * lib/mkfifo.c: Likewise.
30012         * lib/mkfifoat.c: Likewise.
30013         * lib/mknod.c: Likewise.
30014         * lib/mknodat.c: Likewise.
30015         * lib/readlink.c: Likewise.
30016         * lib/se-context.in.h: Likewise.
30017         * lib/se-selinux.in.h: Likewise.
30018         * lib/sockets.c: Likewise.
30019         * lib/symlink.c: Likewise.
30020         * lib/symlinkat.c: Likewise.
30021         * lib/unicodeio.c: Likewise.
30022         * lib/unistr.h: Likewise.
30023         * tests/test-areadlink.c: Likewise.
30024         * tests/test-areadlinkat.c: Likewise.
30025         * tests/test-filenamecat.c: Likewise.
30026         * tests/test-fseeko.c: Likewise.
30027         * tests/test-ftello.c: Likewise.
30028         * tests/test-getdate.c: Likewise.
30029         * tests/test-getgroups.c: Likewise.
30030         * tests/test-gethostname.c: Likewise.
30031         * tests/test-quotearg.c: Likewise.
30032         * tests/test-version-etc.c: Likewise.
30033         * tests/test-xalloc-die.c: Likewise.
30034         * tests/test-xfprintf-posix.c: Likewise.
30035         * tests/test-xprintf-posix.c: Likewise.
30036         * tests/test-xvasprintf.c: Likewise.
30037
30038         tests: avoid compiler warnings
30039         * tests/test-fcntl.c (main): Delete unused parameters.
30040         * tests/test-freopen-safer.c (main): Likewise.
30041         * tests/test-xalloc-die.c (main): Mark unused parameters.
30042         * tests/test-fseeko.c (main): Likewise.
30043         * tests/test-ftello.c (main): Likewise.
30044         * tests/test-nanosleep.c (main): Avoid declaration warning.
30045         * tests/test-sleep.c (main): Likewise.
30046         * tests/test-unsetenv.c (main): Silence warning about string
30047         literal.
30048         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30049
30050 2009-12-23  Bruno Haible  <bruno@clisp.org>
30051
30052         * tests/test-localename.c (test_locale_name): New function, extracted
30053         from main. Also test mixed situations.
30054         (test_locale_name_posix, test_locale_name_environ,
30055         test_locale_name_default): New functions.
30056         (main): Invoke them all.
30057         * modules/localename-tests (configure.ac): Test for newlocale.
30058
30059 2009-12-23  Bruno Haible  <bruno@clisp.org>
30060
30061         unistd: Ensure getcwd gets declared before being overridden.
30062         * lib/unistd.in.h: Conditionally include <io.h>.
30063
30064 2009-12-22  Bruno Haible  <bruno@clisp.org>
30065
30066         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30067         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30068         (gl_WCHAR_H): Invoke it.
30069         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30070         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30071         Reported by Karl Berry <karl@freefriends.org>.
30072
30073 2009-12-22  Eric Blake  <ebb9@byu.net>
30074
30075         math, unistd: avoid redundant includes
30076         * lib/math.in.h (isnan): No need to re-include <math.h>.
30077         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30078
30079         getsubopt: work around cygwin bug
30080         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30081         avoid conflicting with system getsubopt.
30082         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30083         bug.
30084
30085         getopt: synchronize from glibc
30086         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30087         parameter order.  Adjust all callers.
30088         (_getopt_internal_r, main): Adjust quoting in error messages.
30089         Drop considerations for outdated POSIX 1003.2 error message.
30090         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30091         callers.
30092         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30093
30094         test-getopt: test stderr behavior
30095         * modules/getopt-posix-tests (Depends-on): Add dup2.
30096         * tests/test-getopt.c (ASSERT): Avoid stderr.
30097         (main): Move stderr to a temporary file.
30098         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30099         Instead, add parameter to inform caller if output occurred.
30100         (test_getopt): Adjust all existing tests to expect silence, and
30101         add new tests of leading ":".
30102         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30103         glibc shortcomings with leading "-:" or "+:" in optstring.
30104         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30105         Likewise.
30106         * doc/posix-functions/getopt.texi (getopt): Likewise.
30107
30108         test-getopt: enhance test
30109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30110         supports optind=0.
30111         * tests/test-getopt.c (OPTIND_MIN): Move...
30112         * tests/test-getopt.h (OPTIND_MIN): ...here.
30113         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30114         Require that optind=0 works, since modern BSD supports it in
30115         addition to optreset, and since coreutils expects it.
30116         (test_getopt_long_only): New test.
30117         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30118         glibc shortcomings with 'W;', and enforcement of optind=0.
30119         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30120         Likewise.
30121
30122 2009-12-21  Bruno Haible  <bruno@clisp.org>
30123
30124         localename: Improvements for MacOS X and Cygwin.
30125         * lib/localename.h (gl_locale_name_environ): New declaration.
30126         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30127         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30128         (gl_locale_name_posix): Invoke it.
30129         (gl_locale_name_default): Add comments. Use Windows native API also on
30130         Cygwin.
30131
30132 2009-12-21  Bruno Haible  <bruno@clisp.org>
30133
30134         Update list of Win32 locale ids.
30135         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30136         (LANG_SAMI): Renamed from LANG_SAAMI.
30137         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30138         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30139         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30140         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30141         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30142         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30143         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30144         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30145         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30146         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30147         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30148         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30149         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30150         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30151         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30152         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30153         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30154         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30155         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30156         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30157         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30158         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30159         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30160         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30161         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30162         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30163         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30164         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30165         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30166         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30167         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30168         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30169         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30170         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30171         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30172         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30173         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30174         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30175         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30176         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30177         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30178         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30179         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30180         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30181         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30182         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30183         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30184         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30185         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30186         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30187         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30188         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30189         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30190         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30191         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30192         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30193         Add more languages and countries for Sami, Sorbian. Add more countries
30194         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30195         for Pashto. Change country for Syriac, Tswana.
30196
30197 2009-12-21  Eric Blake  <ebb9@byu.net>
30198
30199         test-utimens: avoid spurious failure
30200         * tests/test-chown.h (nap): Factor...
30201         * tests/nap.h: ...into new file.
30202         * tests/test-lchown.h (nap): Avoid duplication.
30203         * tests/test-utimens-common.h (nap): Use shared implementation,
30204         necessary on file systems with 1-second resolution.
30205         * modules/chown-tests (Files): Include new file.
30206         * modules/fdutimensat-tests (Files): Likewise.
30207         * modules/futimens-tests (Files): Likewise.
30208         * modules/lchown-tests (Files): Likewise.
30209         * modules/openat-tests (Files): Likewise.
30210         * modules/utimens-tests (Files): Likewise.
30211         * modules/utimensat-tests (Files): Likewise.
30212
30213 2009-12-19  Eric Blake  <ebb9@byu.net>
30214
30215         futimens, utimensat: work around Linux bug
30216         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30217         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30218         * lib/utimensat.c (rpl_utimensat): Work around it.
30219         * lib/futimens.c (rpl_futimens): Adjust comment.
30220
30221         utimens: work around Linux ctime bug
30222         * lib/utimens.c (detect_ctime_bug): New helper function.
30223         (update_timespec): Differentiate between workaround needed for
30224         this bug vs. what is needed for systems that lack utimensat.
30225         (fdutimens, lutimens): Work around bug.
30226
30227         utimens: check for ctime update
30228         * tests/test-utimens-common.h (check_ctime): Define.
30229         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30230         * tests/test-futimens.h (test_futimens): Likewise.
30231         * tests/test-lutimens.h (test_lutimens): Likewise.
30232         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30233         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30234
30235 2009-12-19  Bruno Haible  <bruno@clisp.org>
30236
30237         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30238         * tests/test-dprintf-posix2.sh: New file.
30239         * tests/test-dprintf-posix2.c: New file.
30240         * modules/dprintf-posix-tests (Files): Add them.
30241         (configure.ac): Check for getrlimit and setrlimit.
30242         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30243
30244 2009-12-19  Bruno Haible  <bruno@clisp.org>
30245
30246         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30247         * tests/test-fprintf-posix3.sh: New file.
30248         * tests/test-fprintf-posix3.c: New file.
30249         * modules/fprintf-posix-tests (Files): Add them.
30250         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30251
30252 2009-12-19  Eric Blake  <ebb9@byu.net>
30253
30254         dirfd: fix prototype
30255         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30256         * lib/dirfd.c (dirfd): Likewise.
30257
30258         canonicalize: reduce memory usage
30259         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30260         allocation to size.
30261         Reported by Solar Designer <solar@openwall.com>.
30262
30263 2009-12-19  Bruno Haible  <bruno@clisp.org>
30264
30265         New module attribute 'Applicability'.
30266         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30267         * gnulib-tool: New option --extract-applicability.
30268         (func_usage): Document it.
30269         (sed_extract_prog): Recognize it.
30270         (func_get_applicability): New function.
30271         (func_import): Generalize handling of 'link-warning' module.
30272         * modules/link-warning (Applicability): New section.
30273         * modules/arg-nonnull (Applicability): New section.
30274         Repoted by Simon Josefsson <simon@josefsson.org>.
30275
30276 2009-12-19  Bruno Haible  <bruno@clisp.org>
30277
30278         fflush: tweak
30279         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30280         * lib/fseeko.c (rpl_fseeko): Likewise.
30281
30282 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30283
30284         * lib/gl_list.h: Fix typo in comment.
30285
30286 2009-12-16  Eric Blake  <ebb9@byu.net>
30287
30288         fcntl: use to simplify other modules
30289         * modules/cloexec (Depends-on): Add fcntl.
30290         * modules/fchdir (Depends-on): Likewise.
30291         * modules/fd-safer-flag (Depends-on): Likewise.
30292         * modules/unistd-safer (Depends-on): Likewise.
30293         * modules/dup3 (configure.ac): Set module indicator.
30294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30295         missing.
30296         * lib/fchdir.c (_gl_register_dup): Fix comment.
30297         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30298         * lib/dup-safer.c (dup_safer): Likewise.
30299         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30300         * lib/dup3.c (dup3): Likewise.
30301         * tests/test-fchdir.c (main): Enhance test.
30302         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30303
30304         fcntl: port portions of fcntl to mingw
30305         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30306         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30307         replacement for mingw.
30308         * modules/fcntl (Description): Update.
30309         (Depends-on): Add dup2.
30310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30311         * modules/fcntl-h (Makefile.am): Substitute it.
30312         * lib/fcntl.in.h (fcntl): Update declaration.
30313         (F_DUPFD, F_GETFD): New macros, when needed.
30314         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30315         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30316         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30317         we now guarantee.
30318
30319         fcntl: work around cygwin bug in F_DUPFD
30320         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30321         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30322         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30323         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30324         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30325
30326         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30327         * modules/fcntl (Files): List new files.
30328         (configure.ac): Run a test.
30329         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30330         * lib/fcntl.c (rpl_fcntl): Likewise.
30331         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30332         (gl_FCNTL_H): Always replace fcntl.h.
30333         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30334         * lib/fcntl.in.h (fcntl): Declare replacement.
30335         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30336         needed, plus a witness.
30337         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30338         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30339         * tests/test-fcntl.c: New file.
30340         * modules/fcntl-tests: Likewise.
30341
30342         binary-io: avoid potential compilation warning
30343         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30344         directives.
30345
30346         fflush: avoid compilation error on NetBSD
30347         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30348         between off_t and fpos_t, since the latter is sometimes a struct.
30349         * lib/fseeko.c (rpl_fseeko): Likewise.
30350         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30351
30352 2009-12-15  Eric Blake  <ebb9@byu.net>
30353
30354         fcntl-h, stdio, sys_ioctl: fix declarations
30355         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30356         function must not take arguments.
30357         * lib/sys_ioctl.in.h (ioctl): Likewise.
30358         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30359         (open): Add a link warning.
30360
30361 2009-12-15  Jim Meyering  <meyering@redhat.com>
30362
30363         areadlink, areadlink-with-size: relax license to LGPLv2+
30364         * modules/areadlink (License): Relax to LGPLv2+.
30365         * modules/areadlink-with-size (License): Likewise.
30366
30367 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30368             Bruno Haible  <bruno@clisp.org>
30369
30370         *printf: Fix memory leak.
30371         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30372         * lib/vfprintf.c (vfprintf): Likewise.
30373         * lib/dprintf.c (dprintf): Likewise.
30374         * lib/vdprintf.c (vdprintf): Likewise.
30375
30376 2009-12-14  Eric Blake  <ebb9@byu.net>
30377
30378         accept4: adjust module dependencies
30379         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30380
30381         utimens: one more try at avoiding compiler warning
30382         * lib/utimens.c (lutimens): Lower scope of result.
30383
30384 2009-12-13  Bruno Haible  <bruno@clisp.org>
30385
30386         Move the malloc checking from module 'list' to new module 'xlist'.
30387         * modules/xlist: New file.
30388         * lib/gl_xlist.h: New file.
30389         * lib/gl_xlist.c: New file.
30390         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30391         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30392         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30393         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30394         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30395         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30396         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30397         gl_sortedlist_nx_add): New declarations.
30398         (struct gl_list_implementation): Rename and change methods accordingly.
30399         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30400         (gl_list_nx_create): Renamed from gl_list_create.
30401         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30402         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30403         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30404         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30405         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30406         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30407         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30408         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30409         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30410         gl_list_create_empty.
30411         (gl_list_nx_create): Renamed from gl_list_create.
30412         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30413         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30414         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30415         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30416         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30417         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30418         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30419         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30420         * lib/gl_array_list.c: Don't include xalloc.h.
30421         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30422         NULL upon out-of-memory.
30423         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30424         out-of-memory.
30425         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30426         Change return type to 'int'.
30427         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30428         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30429         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30430         upon out-of-memory.
30431         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30432         upon out-of-memory.
30433         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30434         upon out-of-memory.
30435         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30436         upon out-of-memory.
30437         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30438         out-of-memory.
30439         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30440         Update.
30441         (gl_array_list_implementation): Update.
30442         * lib/gl_carray_list.c: Don't include xalloc.h.
30443         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30444         Return NULL upon out-of-memory.
30445         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30446         out-of-memory.
30447         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30448         Change return type to 'int'.
30449         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30450         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30451         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30452         upon out-of-memory.
30453         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30454         upon out-of-memory.
30455         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30456         out-of-memory.
30457         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30458         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30459         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30460         Update.
30461         (gl_carray_list_implementation): Update.
30462         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30463         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30464         gl_linked_create_empty. Return NULL upon out-of-memory.
30465         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30466         out-of-memory.
30467         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30468         Change return type to 'int'. Return -1 upon out-of-memory.
30469         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30470         out-of-memory.
30471         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30472         upon out-of-memory.
30473         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30474         upon out-of-memory.
30475         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30476         NULL upon out-of-memory.
30477         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30478         upon out-of-memory.
30479         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30480         out-of-memory.
30481         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30482         Update.
30483         * lib/gl_linked_list.c: Don't include xalloc.h.
30484         (gl_linked_list_implementation): Update.
30485         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30486         (add_to_bucket): Change return type to 'int'.
30487         (gl_linkedhash_list_implementation): Update.
30488         * lib/gl_anytree_list1.h (free_subtree): New function.
30489         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30490         gl_tree_create_empty. Return NULL upon out-of-memory.
30491         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30492         Change return type to 'int'. Return -1 upon out-of-memory.
30493         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30494         out-of-memory.
30495         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30496         (gl_tree_remove_node): New function, moved here from
30497         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30498         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30499         Update.
30500         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30501         malloc, not xmalloc. Return NULL upon out-of-memory.
30502         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30503         out-of-memory.
30504         (gl_tree_remove_node_from_tree): New function, extracted from
30505         gl_tree_remove_node.
30506         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30507         upon out-of-memory.
30508         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30509         out-of-memory.
30510         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30511         upon out-of-memory.
30512         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30513         upon out-of-memory.
30514         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30515         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30516         not xmalloc. Return NULL upon out-of-memory.
30517         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30518         out-of-memory.
30519         (gl_tree_remove_node_from_tree): New function, extracted from
30520         gl_tree_remove_node.
30521         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30522         upon out-of-memory.
30523         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30524         out-of-memory.
30525         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30526         upon out-of-memory.
30527         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30528         upon out-of-memory.
30529         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30530         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30531         gl_anytree_list1.h before gl_anyavltree_list2.h.
30532         (gl_avltree_list_implementation): Update.
30533         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30534         gl_anytree_list1.h before gl_anyavltree_list2.h.
30535         (gl_rbtree_list_implementation): Update.
30536         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30537         Change return type to 'int'. Return -1 upon out-of-memory. Use
30538         __builtin_expect.
30539         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30540         (gl_avltreehash_list_implementation): Update.
30541         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30542         (gl_rbtreehash_list_implementation): Update.
30543         * modules/array-list (Depends-on): Remove xalloc.
30544         * modules/carray-list (Depends-on): Likewise.
30545         * modules/linked-list (Depends-on): Likewise.
30546         * modules/linkedhash-list (Depends-on): Likewise.
30547         * modules/avltree-list (Depends-on): Likewise.
30548         * modules/rbtree-list (Depends-on): Likewise.
30549         * modules/avltreehash-list (Depends-on): Likewise.
30550         * modules/rbtreehash-list (Depends-on): Likewise.
30551
30552         * modules/xsublist: New file.
30553         * lib/gl_xsublist.h: New file.
30554         * lib/gl_xsublist.c: New file.
30555         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30556         (gl_sublist_nx_create): New declaration.
30557         * lib/gl_sublist.c: Don't include xalloc.h.
30558         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30559         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30560         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30561         Change return type to 'int'. Return -1 upon out-of-memory.
30562         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30563         upon out-of-memory.
30564         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30565         NULL upon out-of-memory.
30566         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30567         upon out-of-memory.
30568         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30569         NULL upon out-of-memory.
30570         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30571         NULL upon out-of-memory.
30572         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30573         upon out-of-memory.
30574         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30575         (gl_sublist_list_implementation): Update.
30576         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30577         upon out-of-memory.
30578         * modules/sublist (Depends-on): Remove xalloc.
30579
30580         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30581         * tests/test-carray_list.c: Likewise.
30582         * tests/test-linked_list.c: Likewise.
30583         * tests/test-linkedhash_list.c: Likewise.
30584         * tests/test-avltree_list.c: Likewise.
30585         * tests/test-rbtree_list.c: Likewise.
30586         * tests/test-avltreehash_list.c: Likewise.
30587         * tests/test-rbtreehash_list.c: Likewise.
30588         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30589         * modules/carray-list-tests (Makefile.am): Likewise.
30590         * modules/linked-list-tests (Makefile.am): Likewise.
30591         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30592         * modules/avltree-list-tests (Makefile.am): Likewise.
30593         * modules/rbtree-list-tests (Makefile.am): Likewise.
30594         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30595         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30596
30597         * NEWS: Mention the changes.
30598
30599         * lib/clean-temp.c: Include gl_xlist.h.
30600         * modules/clean-temp (Depends-on): Add xlist.
30601
30602         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30603         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30604
30605         * tests/test-array_oset.c: Include gl_xlist.h.
30606         * modules/array-oset-tests (Depends-on): Add xlist.
30607
30608         Reported by José E. Marchesi <jemarch@gnu.org>.
30609
30610 2009-12-13  Bruno Haible  <bruno@clisp.org>
30611
30612         Move the malloc checking from module 'oset' to new module 'xoset'.
30613         * modules/xoset: New file.
30614         * lib/gl_xoset.h: New file.
30615         * lib/gl_xoset.c: New file.
30616         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30617         declarations.
30618         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30619         (struct gl_oset_implementation): Rename and change methods accordingly.
30620         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30621         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30622         'int'. Mark as __warn_unused_result__.
30623         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30624         gl_oset_create_empty.
30625         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30626         'int'.
30627         * lib/gl_array_oset.c: Don't include xalloc.h.
30628         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30629         malloc, not xmalloc.
30630         (grow): Change return type to 'int'. Don't call xalloc_die.
30631         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30632         to 'int'.
30633         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30634         'int'.
30635         (gl_array_oset_implementation): Update.
30636         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30637         gl_tree_create_empty.
30638         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30639         'int'.
30640         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30641         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30642         xmalloc.
30643         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30644         not xmalloc.
30645         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30646         xmalloc.
30647         (gl_avltree_oset_implementation): Update.
30648         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30649         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30650         xmalloc.
30651         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30652         not xmalloc.
30653         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30654         xmalloc.
30655         (gl_rbtree_oset_implementation): Update.
30656         * modules/array-oset (Depends-on): Remove xalloc.
30657         * modules/avltree-oset (Depends-on): Likewise.
30658         * modules/rbtree-oset (Depends-on): Likewise.
30659         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30660         * tests/test-avltree_oset.c: Likewise.
30661         * tests/test-rbtree_oset.c: Likewise.
30662         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30663         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30664         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30665         * NEWS: Mention the change.
30666
30667 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30668
30669         maint.mk: allow a project to override release-prep commands
30670         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30671         commands into a new rule.
30672         (release-prep): New rule.
30673         (release-prep-hook): New overridable variable.
30674
30675 2009-12-13  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30678
30679 2009-12-13  Jim Meyering  <meyering@redhat.com>
30680
30681         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30682         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30683
30684 2009-12-12  Bruno Haible  <bruno@clisp.org>
30685
30686         duplocale: Tweak.
30687         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30688
30689 2009-12-12  Karl Berry  <karl@gnu.org>
30690
30691         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30692
30693 2009-12-12  Bruno Haible  <bruno@clisp.org>
30694
30695         * m4/po.m4: Undo incorrect untabification.
30696
30697 2009-12-12  Bruno Haible  <bruno@clisp.org>
30698
30699         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30700         * modules/c-strtod (Depends-on): Add locale.
30701         * modules/c-strtold (Depends-on): Likewise.
30702
30703 2009-12-12  Bruno Haible  <bruno@clisp.org>
30704
30705         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30706
30707 2009-12-11  Eric Blake  <ebb9@byu.net>
30708
30709         setenv: relax requirement in light of POSIX ruling
30710         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30711         not NULL.
30712         * tests/test-setenv.c (main): Relax test.
30713         * tests/test-unsetenv.c (main): Likewise.
30714         * doc/posix-functions/setenv.texi (setenv): Document this.
30715         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30716
30717 2009-12-11  Bruno Haible  <bruno@clisp.org>
30718
30719         New module 'fd-safer-flag'.
30720         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30721         * lib/dup-safer.c (dup_safer_flag): Remove function.
30722         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30723         * lib/fd-safer.c (fd_safer_flag): Remove function.
30724         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30725         * modules/cloexec (configure.ac): Drop indicator macro.
30726         * modules/fd-safer-flag: New file.
30727         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30728         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30729         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30730
30731 2009-12-11  Bruno Haible  <bruno@clisp.org>
30732
30733         Tests for module 'nl_langinfo'.
30734         * modules/nl_langinfo-tests: New file.
30735         * tests/test-nl_langinfo.sh: New file.
30736         * tests/test-nl_langinfo.c: New file.
30737
30738         New module 'nl_langinfo'.
30739         * lib/nl_langinfo.c: New file.
30740         * m4/nl_langinfo.m4: New file.
30741         * modules/nl_langinfo: New file.
30742         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30743
30744 2009-12-11  Bruno Haible  <bruno@clisp.org>
30745
30746         Tests for module 'langinfo'.
30747         * modules/langinfo-tests: New file.
30748         * tests/test-langinfo.c: New file.
30749
30750         New module 'langinfo'.
30751         * lib/langinfo.in.h: New file.
30752         * m4/langinfo_h.m4: New file.
30753         * modules/langinfo: New file.
30754         * doc/posix-headers/langinfo.texi: Mention the new module.
30755
30756 2009-12-11  Bruno Haible  <bruno@clisp.org>
30757
30758         * lib/config.charset: Untabify.
30759
30760 2009-12-11  Bruno Haible  <bruno@clisp.org>
30761
30762         * modules/unistd-safer (configure.ac): Drop indicator macro.
30763
30764 2009-12-11  Bruno Haible  <bruno@clisp.org>
30765
30766         Move pipe2-safer code to its own file.
30767         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30768         * lib/pipe-safer.c (pipe2_safer): Remove function.
30769         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30770         (Makefile.am): Add it to lib_SOURCES.
30771
30772 2009-12-10  Bruno Haible  <bruno@clisp.org>
30773
30774         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30775
30776 2009-12-10  Bruno Haible  <bruno@clisp.org>
30777
30778         Declare which arguments expect non-NULL values, for GCC and clang.
30779         * build-aux/arg-nonnull.h: New file.
30780         * modules/arg-nonnull: New file.
30781         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30782         (inet_ntop, inet_pton): Use it.
30783         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30784         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30785         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30786         (open, openat): Use it.
30787         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30788         (fnmatch): Use it.
30789         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30790         (getopt, getopt_long, getopt_long_only): Use it.
30791         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30792         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30793         Use it.
30794         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30795         (iconv_open): Use it.
30796         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30797         (strtoimax, strtoumax): Use it.
30798         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30799         (duplocale): Use it.
30800         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30801         (frexp, frexpl): Use it.
30802         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30803         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30804         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30805         (tsearch, tfind, tdelete, twalk): Use it.
30806         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30807         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30808         sigpending): Use it.
30809         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30810         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30811         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30812         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30813         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30814         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30815         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30816         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30817         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30818         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30819         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30820         Use it.
30821         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30822         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30823         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30824         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30825         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30826         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30827         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30828         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30829         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30830         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30831         strtoull, unsetenv): Use it.
30832         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30833         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30834         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30835         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30836         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30837         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30838         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30839         (strcasecmp, strncasecmp): Use it.
30840         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30841         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30842         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30843         rpl_setsockopt): Use it.
30844         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30845         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30846         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30847         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30848         (gettimeofday): Use it.
30849         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30850         (times): Use it.
30851         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30852         (uname): Use it.
30853         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30854         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30855         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30856         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30857         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30858         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30859         unlinkat, write): Use it.
30860         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30861         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30862         * lib/argv-iter.h: Include arg-nonnull.h.
30863         (_ATTRIBUTE_NONNULL_): Remove macro.
30864         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30865         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30866         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30867         optimization.
30868         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30869         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30870         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30871         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30872         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30873         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30874         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30875         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30876         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30877         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30878         * modules/dirent (Depends-on): Add arg-nonnull.
30879         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30880         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30881         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30882         * modules/fnmatch (Depends-on): Add arg-nonnull.
30883         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30884         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30885         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30886         * modules/glob (Depends-on): Add arg-nonnull.
30887         (Makefile.am): Insert arg-nonnull.h into glob.h.
30888         * modules/iconv_open (Depends-on): Add arg-nonnull.
30889         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30890         * modules/inttypes (Depends-on): Add arg-nonnull.
30891         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30892         * modules/locale (Depends-on): Add arg-nonnull.
30893         (Makefile.am): Insert arg-nonnull.h into locale.h.
30894         * modules/math (Depends-on): Add arg-nonnull.
30895         (Makefile.am): Insert arg-nonnull.h into math.h.
30896         * modules/netdb (Depends-on): Add arg-nonnull.
30897         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30898         * modules/search (Depends-on): Add arg-nonnull.
30899         (Makefile.am): Insert arg-nonnull.h into search.h.
30900         * modules/signal (Depends-on): Add arg-nonnull.
30901         (Makefile.am): Insert arg-nonnull.h into signal.h.
30902         * modules/spawn (Depends-on): Add arg-nonnull.
30903         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30904         * modules/stdio (Depends-on): Add arg-nonnull.
30905         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30906         * modules/stdlib (Depends-on): Add arg-nonnull.
30907         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30908         * modules/string (Depends-on): Add arg-nonnull.
30909         (Makefile.am): Insert arg-nonnull.h into string.h.
30910         * modules/strings (Depends-on): Add arg-nonnull.
30911         (Makefile.am): Insert arg-nonnull.h into strings.h.
30912         * modules/sys_socket (Depends-on): Add arg-nonnull.
30913         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30914         * modules/sys_stat (Depends-on): Add arg-nonnull.
30915         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30916         * modules/sys_time (Depends-on): Add arg-nonnull.
30917         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30918         * modules/sys_times (Depends-on): Add arg-nonnull.
30919         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30920         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30921         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30922         * modules/time (Depends-on): Add arg-nonnull.
30923         (Makefile.am): Insert arg-nonnull.h into time.h.
30924         * modules/unistd (Depends-on): Add arg-nonnull.
30925         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30926         * modules/wchar (Depends-on): Add arg-nonnull.
30927         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30928         * modules/argv-iter (Depends-on): Add arg-nonnull.
30929         * tests/test-canonicalize.c (null_ptr): New function.
30930         (main): Use it.
30931         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30932         (main): Use it.
30933         * tests/test-memmem.c (null_ptr): New function.
30934         (main): Use it.
30935         Reported by Jim Meyering.
30936
30937 2009-12-10  Bruno Haible  <bruno@clisp.org>
30938
30939         Use spaces for indentation, not tabs.
30940         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30941         * m4/*.m4: Untabify.
30942         * build-aux/*.h: Untabify.
30943         * tests/**/*.[hc]: Untabify.
30944         * README: New section "Indent with spaces, not TABs", based on
30945         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30946         * NEWS: Mention the change.
30947
30948 2009-12-10  Bruno Haible  <bruno@clisp.org>
30949
30950         pty test: Fix link error.
30951         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30952         test_pty_LDADD.
30953
30954 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30955
30956         * modules/pty: New file.
30957         * modules/pty-tests: New file.
30958         * m4/pty.m4: New file.
30959         * tests/test-pty.c: New file.
30960         * doc/glibc-headers/pty.texi: Modified.
30961         * doc/glibc-functions/forkpty.texi: Modified.
30962         * doc/glibc-functions/openpty.texi: Modified.
30963
30964 2009-12-10  Bruno Haible  <bruno@clisp.org>
30965
30966         Avoid syntax error in C++ mode.
30967         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30968
30969 2009-12-10  Bruno Haible  <bruno@clisp.org>
30970
30971         Use sed with option -e.
30972         * gnulib-tool (func_version, func_emit_copyright_notice,
30973         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30974         option -e to sed.
30975         * modules/link-warning (Makefile.am): Likewise.
30976
30977 2009-12-10  Jim Meyering  <meyering@redhat.com>
30978
30979         mgetgroups: do not write bytes beyond end of malloc'd buffer
30980         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30981         username, we call getgroups with a one-element-shorter buffer,
30982         but still told it the length was original, max_n_groups.
30983
30984 2009-12-09  Eric Blake  <ebb9@byu.net>
30985
30986         cloexec: relax license
30987         * modules/cloexec (Maintainer): Add myself.
30988         (License): Use LGPL, not GPL.
30989
30990         link-warning: optimize generation
30991         * modules/link-warning (Makefile.am): Reduce process usage.
30992
30993 2009-12-09  Bruno Haible  <bruno@clisp.org>
30994
30995         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30996         workaround was added on 2009-11-17.
30997
30998 2009-12-09  Jim Meyering  <meyering@redhat.com>
30999             Bruno Haible  <bruno@clisp.org>
31000
31001         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31002         * modules/link-warning (Makefile.am): Make the comment-removing sed
31003         command more robust in the face of bootstrap-prepended comment lines.
31004
31005 2009-12-09  Bruno Haible  <bruno@clisp.org>
31006
31007         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31008         most one group.
31009
31010 2009-12-09  Simon Josefsson <simon@josefsson.org>
31011             Bruno Haible  <bruno@clisp.org>
31012
31013         * build-aux/link-warning.h: Add copyright notice.
31014         * modules/link-warning (Makefile.am): Generate link-warning.h from
31015         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31016         * NEWS: Mention change in link-warning module.
31017         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31018         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31019         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31020         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31021         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31022         * modules/math (Makefile.am): Add dependency to math.h.
31023         * modules/search (Makefile.am): Add dependency to search.h.
31024         * modules/signal (Makefile.am): Add dependency to signal.h.
31025         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31026         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31027         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31028         * modules/string (Makefile.am): Add dependency to string.h.
31029         * modules/strings (Makefile.am): Add dependency to strings.h.
31030         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31031         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31032         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31033         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31034         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31035         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31036         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31037         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31038         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31039
31040 2009-12-09  Bruno Haible  <bruno@clisp.org>
31041
31042         fchdir: Optimize away rpl_fstat when possible.
31043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31044         REPLACE_OPEN_DIRECTORY.
31045         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31046
31047 2009-12-09  Bruno Haible  <bruno@clisp.org>
31048
31049         * lib/fchdir.c: Update comment.
31050
31051 2009-12-09  Bruno Haible  <bruno@clisp.org>
31052
31053         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31054
31055 2009-12-08  Eric Blake  <ebb9@byu.net>
31056
31057         fchdir: avoid memory leak on re-registration.
31058         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31059
31060 2009-12-08  Jim Meyering  <meyering@redhat.com>
31061
31062         init.sh: avoid Solaris 10 /bin/sh portability problem
31063         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31064         sourced script:
31065           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31066           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31067           bar
31068         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31069         and two tests used that idiom.
31070         * tests/init.sh: Update suggested usage comments.
31071         (path_prepend_): New function, to be used in place
31072         of the --src-path=DIR option.
31073         (setup_): Move PATH-prepending code into path_prepend_.
31074         * tests/test-pread.sh: Adapt to new usage.
31075         * tests/test-xalloc-die.sh: Likewise.
31076
31077 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31078
31079         * doc/gnulib.texi (Glibc pty.h): Add.
31080         * doc/glibc-functions/forkpty.texi: Add.
31081         * doc/glibc-functions/openpty.texi: Add.
31082         Suggested by Bruno Haible.
31083
31084 2009-12-08  Eric Blake  <ebb9@byu.net>
31085
31086         fchdir: fix logic bugs
31087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31088         * tests/test-fchdir.c (main): Enhance test.
31089         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31090         is in use.
31091
31092         dup2: fix logic bugs
31093         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31094         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31095         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31096         exists.
31097         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31098
31099 2009-12-07  Eric Blake  <ebb9@byu.net>
31100
31101         unlink: fix m4 detection
31102         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31103
31104         unistd-safer: add unit test
31105         * modules/unistd-safer-tests: New file.
31106         * tests/test-dup-safer.c: Likewise.
31107         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31108         * tests/test-dup2.c (setmode): Likewise.
31109         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31110
31111         cloexec: preserve text vs. binary across dup_cloexec
31112         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31113         mode.
31114         * modules/dup2-tests (Depends-on): Add binary-io.
31115         * modules/cloexec-tests (Depends-on): Likewise.
31116         * tests/test-dup2.c (setmode, is_mode): New helpers.
31117         (main): Add tests that translation mode is preserved.
31118         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31119         Reported by Bruno Haible.
31120
31121         mgetgroups: reduce duplicate listings
31122         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31123         resulting array.
31124         * tests/test-chown.h (test_chown): Simplify client.
31125         * tests/test-lchown.h (test_lchown): Likewise.
31126
31127 2009-12-06  Bruno Haible  <bruno@clisp.org>
31128
31129         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31130         value.
31131
31132 2009-12-06  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/progname.c: Include stdio.h, stdlib.h.
31135         (set_program_name): Reject a NULL argument.
31136
31137 2009-12-05  Eric Blake  <ebb9@byu.net>
31138
31139         pipe2-safer: new module
31140         * modules/pipe2-safer: New file.
31141         * lib/unistd-safer.h (pipe2_safer): New prototype.
31142         * lib/unistd--.h (pipe2): New wrapper.
31143         * lib/pipe-safer.c (pipe2_safer): New function.
31144         * modules/pipe (Depends-on): Add pipe2-safer.
31145         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31146
31147         stdlib-safer: preserve cloexec flag for mkostemp[s]
31148         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31149         fd_safer_flag.
31150
31151         unistd-safer: allow preservation of cloexec status via flag
31152         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31153         prototypes.
31154         * lib/dup-safer.c (dup_safer_flag): New function.
31155         * lib/fd-safer.c (fd_safer_flag): Likewise.
31156         * modules/cloexec (configure.ac): Set witness.
31157
31158         test-dup2: enhance test
31159         * modules/dup2-tests (Depends-on): Add cloexec.
31160         * tests/test-dup2.c (main): Enhance test.
31161
31162         cloexec: add dup_cloexec
31163         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31164         header and comments.
31165         * lib/cloexec.c (set_cloexec_flag): Add comments.
31166         (dup_cloexec): New function, with mingw implementation borrowed
31167         from...
31168         * lib/w32spawn.h (dup_noinherit): ...here.
31169         * modules/execute (Depends-on): Add cloexec.
31170         * modules/pipe (Depends-on): Likewise.
31171         * modules/cloexec (Depends-on): Add dup2.
31172         * modules/cloexec-tests (Files): New file.
31173         * tests/test-cloexec.c: Likewise.
31174
31175         test-xalloc-die: fix test for mingw
31176         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31177         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31178         directory and .exe suffix off argv[0] output.
31179
31180         test-fseeko: fix test for mingw
31181         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31182         than undefining fseek, so test will pass on mingw.
31183
31184 2009-12-05  Bruno Haible  <bruno@clisp.org>
31185
31186         * lib/progname.h (set_program_name): Clarify specification.
31187         * lib/progname.c (set_program_name): Likewise.
31188         Reported by Jim Meyering.
31189
31190 2009-12-05  Jim Meyering  <meyering@redhat.com>
31191
31192         maint.mk: backslash-escape parens in default regexp
31193         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31194         backslash-escape the literal parentheses.
31195
31196         maint.mk: news-date-check: use grep -E
31197         * top/maint.mk (today): Define a Make variable, not a...
31198         (news-date-check): ...shell variable.
31199         (news-date-regexp): Use the Make variable.
31200         Use grep's -E option.  Change the failing diagnostic to mention
31201         the variable, $(news-date-regexp).
31202
31203 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31204
31205         maintainer-makefile: allow customization of NEWS entry format
31206         * top/maint.mk (news-date-regexp): New overridable variable.
31207         (news-date-check): Use it.
31208
31209 2009-12-04  Eric Blake  <ebb9@byu.net>
31210
31211         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31212         * lib/mgetgroups.h (xgetgroups): New prototype.
31213         * lib/mgetgroups.c (xgetgroups): New wrapper.
31214         (mgetgroups): Handle ENOSYS.
31215         * modules/mgetgroups (Depends-on): Add realloc.
31216         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31217
31218         mgetgroups: avoid argument promotion issues with -1
31219         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31220         for invalid gid_t.
31221         * tests/test-chown.h (getegid, test_chown): Likewise.
31222         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31223
31224 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31225
31226         exclude: Fix header file problems.
31227         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31228
31229 2009-12-01  Jim Meyering  <meyering@redhat.com>
31230
31231         fts: fts_open: do not let an empty string cause immediate failure
31232         This is required in support of GNU rm, for which the command
31233         "rm A '' B" must process and remove both A and B, in spite of
31234         the empty string argument.
31235         * lib/fts.c (fts_open): Do not let the presence of an empty string
31236         cause fts_open to fail immediately.  Most fts-using tools must be
31237         able to process all arguments, in order, and can be expected to
31238         diagnose such arguments themselves.
31239
31240 2009-11-30  Eric Blake  <ebb9@byu.net>
31241
31242         utimens: fix compilation error
31243         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31244         Declare variable at right scope.
31245
31246 2009-11-29  Jim Meyering  <meyering@redhat.com>
31247
31248         bootstrap: handle perl-5.11's changed --version output
31249         * build-aux/bootstrap (get_version): Handle perl separately,
31250         since perl-5.11's --version output is different.
31251
31252 2009-11-28  Jim Meyering  <meyering@redhat.com>
31253
31254         userspec: depend on the inttostr module, too
31255         * modules/userspec (Depends-on): Add inttostr.
31256
31257         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31258         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31259         number of MAXUID when it evaluates to (uid_t) -1.
31260         Likewise for group ID.  Reported by Matt McCutchen in
31261         <http://savannah.gnu.org/bugs/?28113>
31262
31263         userspec: reformat to use spaces, not TABs
31264         * lib/userspec.c: Expand TABs to spaces.
31265         Add Emacs' "indent-tabs-mode: nil" hint.
31266
31267 2009-11-27  Eric Blake  <ebb9@byu.net>
31268
31269         getopt-gnu: flush out another BSD bug
31270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31271         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31272         flush out BSD bug.
31273         * tests/test-getopt.h (test_getopt): End lists with NULL.
31274         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31275         (test_getopt_long_posix): Enhance test.
31276         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31277         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31278         getopt-gnu.
31279         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31280         Likewise.
31281
31282 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31283
31284         * modules/idpriv-droptemp-tests (Notice): Fix text.
31285
31286 2009-11-27  Jim Meyering  <meyering@redhat.com>
31287
31288         test-xalloc-die: avoid spurious failure due to libtool argv difference
31289         In a libtool-enabled project, this test would fail due to a difference
31290         in the emitted program name, e.g.,
31291         -test-xalloc-die: memory exhausted
31292         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31293         Use program to avoid that.
31294         * modules/xalloc-die-tests (Depends-on): Add progname.
31295         * tests/test-xalloc-die.c: Include progname.h".
31296         (program_name): Remove decl.
31297         (main): Call set_program_name.
31298         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31299
31300 2009-11-26  Richard Jones  <rjones@redhat.com>
31301
31302         w32sock: leave win32 error in place.
31303         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31304
31305 2009-11-26  Eric Blake  <ebb9@byu.net>
31306
31307         init.sh: suggest to use skip_ and fail_ functions in comments
31308         * tests/init.sh: Add a sentence.
31309
31310 2009-11-25  Bruno Haible  <bruno@clisp.org>
31311
31312         init.sh: add documentation in comments
31313         * tests/init.sh: Add some developer and user documentation.
31314
31315 2009-11-26  Jim Meyering  <meyering@redhat.com>
31316
31317         init.sh: accommodate even those who specify bogus srcdir manually
31318         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31319         configure-time tests to be sanitized, so that there is no need to
31320         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31321         (with no double quotes) suffices.  However, since tests may be
31322         invoked manually, and since you may explicitly set srcdir to the
31323         name of a directory containing spaces, do quote its uses here.
31324         * tests/test-pread.sh: Likewise.
31325         Suggested by Bruno Haible.
31326
31327         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31328         * tests/test-pread.sh: Write no data into the pipe, because
31329         test-pread actually reads none.  This avoids a diagnostic,
31330         "bash: echo: write error: Broken pipe", that arises in the unusual
31331         event something is ignoring SIGPIPE, and might be interpreted
31332         as some sort of failure.  Reported by Bruno Haible.
31333
31334 2009-11-25  Jim Meyering  <meyering@redhat.com>
31335
31336         test-pread: cover failure with ESPIPE and EINVAL
31337         * tests/test-pread.c (main): Test for failure, too.
31338         * tests/test-pread.sh: Invoke with stdin on a pipe.
31339         Suggested by Eric Blake.
31340
31341         pread: improvement and fix
31342         * modules/pread (Depends-on): Depend on lseek, for portability to
31343         e.g., mingw.  Suggested by Eric Blake.
31344         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31345
31346         unistd.in.h: correct declaration of pread
31347         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31348         Reported by Richard W.M. Jones.
31349
31350         test-pread.sh: distribute the test script
31351         * modules/pread-tests (Files): Include test-pread.sh.
31352
31353         test-pread.sh: clean up
31354         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31355         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31356         That is unnecessary, since it's always ".".
31357         Suggestion from Eric Blake.
31358
31359         test-pread.sh: make executable
31360         * tests/test-pread.sh: Set executable bit.
31361         Reported by Eric Blake.
31362
31363         correct typo in test-pread.sh
31364         * tests/test-pread.sh: Add #! line.
31365
31366         test pread
31367         * tests/test-pread.c: New file.
31368         * tests/test-pread.sh: Likewise.
31369         * modules/pread-tests: Likewise.
31370
31371         pread: new module
31372         * modules/pread: New file.
31373         * lib/unistd.in.h (pread): Define/declare.
31374         * lib/pread.c (pread): New file.
31375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31376         * modules/unistd (Makefile.am): Substitute witnesses.
31377         * doc/posix-functions/pread.texi (pread): Update.
31378         * MODULES.html.sh: Add pread.
31379
31380 2009-11-25  Jim Meyering  <meyering@redhat.com>
31381
31382         tests/init.sh: new file to be used via most *.sh tests
31383         * tests/init.sh: New file.
31384
31385 2009-11-25  Eric Blake  <ebb9@byu.net>
31386
31387         utimens: work around older Linux failure with symlinks
31388         * lib/utimens.c (lutimensat_works_really): New variable.
31389         (fdutimens, lutimens): Use it to manage kernels that support
31390         nanosecond times on files, but not on symlinks.
31391         Reported by OndÅ™ej Vašík.
31392
31393         utimes: fix configure grammar
31394         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31395
31396 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31397
31398         regex: Fix fastmap for multibyte character ranges.
31399         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31400         characters when a multibyte character range is included.
31401
31402 2009-11-22  Andy Wingo  <wingo@pobox.com>
31403
31404         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31405         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31406
31407 2009-11-24  Bruno Haible  <bruno@clisp.org>
31408
31409         doc: Most *_l functions exist in MacOS X 10.5.
31410         * doc/posix-functions/duplocale.texi: Update platforms list.
31411         * doc/posix-functions/freelocale.texi: Likewise.
31412         * doc/posix-functions/newlocale.texi: Likewise.
31413         * doc/posix-functions/uselocale.texi: Likewise.
31414         * doc/posix-functions/isalnum_l.texi: Likewise.
31415         * doc/posix-functions/isalpha_l.texi: Likewise.
31416         * doc/posix-functions/isblank_l.texi: Likewise.
31417         * doc/posix-functions/iscntrl_l.texi: Likewise.
31418         * doc/posix-functions/isdigit_l.texi: Likewise.
31419         * doc/posix-functions/isgraph_l.texi: Likewise.
31420         * doc/posix-functions/islower_l.texi: Likewise.
31421         * doc/posix-functions/isprint_l.texi: Likewise.
31422         * doc/posix-functions/ispunct_l.texi: Likewise.
31423         * doc/posix-functions/isspace_l.texi: Likewise.
31424         * doc/posix-functions/isupper_l.texi: Likewise.
31425         * doc/posix-functions/iswalnum_l.texi: Likewise.
31426         * doc/posix-functions/iswalpha_l.texi: Likewise.
31427         * doc/posix-functions/iswblank_l.texi: Likewise.
31428         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31429         * doc/posix-functions/iswctype_l.texi: Likewise.
31430         * doc/posix-functions/iswdigit_l.texi: Likewise.
31431         * doc/posix-functions/iswgraph_l.texi: Likewise.
31432         * doc/posix-functions/iswlower_l.texi: Likewise.
31433         * doc/posix-functions/iswprint_l.texi: Likewise.
31434         * doc/posix-functions/iswpunct_l.texi: Likewise.
31435         * doc/posix-functions/iswspace_l.texi: Likewise.
31436         * doc/posix-functions/iswupper_l.texi: Likewise.
31437         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31438         * doc/posix-functions/isxdigit_l.texi: Likewise.
31439         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31440         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31441         * doc/posix-functions/strcoll_l.texi: Likewise.
31442         * doc/posix-functions/strfmon_l.texi: Likewise.
31443         * doc/posix-functions/strftime_l.texi: Likewise.
31444         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31445         * doc/posix-functions/strxfrm_l.texi: Likewise.
31446         * doc/posix-functions/tolower_l.texi: Likewise.
31447         * doc/posix-functions/toupper_l.texi: Likewise.
31448         * doc/posix-functions/towctrans_l.texi: Likewise.
31449         * doc/posix-functions/towlower_l.texi: Likewise.
31450         * doc/posix-functions/towupper_l.texi: Likewise.
31451         * doc/posix-functions/wcscoll_l.texi: Likewise.
31452         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31453         * doc/posix-functions/wctrans_l.texi: Likewise.
31454         * doc/posix-functions/wctype_l.texi: Likewise.
31455         * doc/glibc-functions/strptime_l.texi: Likewise.
31456         * doc/glibc-functions/strtod_l.texi: Likewise.
31457         * doc/glibc-functions/strtof_l.texi: Likewise.
31458         * doc/glibc-functions/strtol_l.texi: Likewise.
31459         * doc/glibc-functions/strtold_l.texi: Likewise.
31460         * doc/glibc-functions/strtoll_l.texi: Likewise.
31461         * doc/glibc-functions/strtoul_l.texi: Likewise.
31462         * doc/glibc-functions/strtoull_l.texi: Likewise.
31463         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31464         * doc/glibc-functions/wcstod_l.texi: Likewise.
31465         * doc/glibc-functions/wcstof_l.texi: Likewise.
31466         * doc/glibc-functions/wcstol_l.texi: Likewise.
31467         * doc/glibc-functions/wcstold_l.texi: Likewise.
31468         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31469         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31470         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31471
31472 2009-11-24  Bruno Haible  <bruno@clisp.org>
31473
31474         duplocale: Fix logic bug.
31475         * lib/duplocale.c: Don't include <langinfo.h>.
31476         (_NL_LOCALE_NAME): Remove macro.
31477         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31478         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31479
31480 2009-11-23  Jim Meyering  <meyering@redhat.com>
31481
31482         test-update-copyright: don't hard-code /usr/bin/perl
31483         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31484         perl to print the current year.  Gilles Espinasse reported that
31485         the replaced use of perl was hard-coded as /usr/bin/perl.
31486
31487 2009-11-23  Bruno Haible  <bruno@clisp.org>
31488
31489         duplocale: Add support for glibc 2.3.x.
31490         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31491
31492 2009-11-22  Bruno Haible  <bruno@clisp.org>
31493
31494         vasnprintf: Tiny optimization.
31495         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31496         MacOS X.
31497
31498 2009-11-22  Bruno Haible  <bruno@clisp.org>
31499
31500         Tests for module 'duplocale'.
31501         * modules/duplocale-tests: New file.
31502         * tests/test-duplocale.c: New file.
31503
31504         New module 'duplocale'.
31505         * m4/duplocale.m4: New file.
31506         * lib/locale.in.h (duplocale): New declaration.
31507         * lib/duplocale.c: New file.
31508         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31509         gl_LOCALE_H_DEFAULTS): New macros.
31510         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31511         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31512         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31513         REPLACE_DUPLOCALE.
31514         * modules/duplocale: New file.
31515         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31516
31517 2009-11-22  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/locale-tests (configure.ac): Test for newlocale function.
31520         * tests/test-locale.c: When the system has extended locale functions,
31521         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31522
31523         locale: Make locale_t available when possible.
31524         * lib/locale.in.h: Include <xlocale.h> when it exists.
31525         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31526         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31527         * modules/locale (Depends-on): Add extensions.
31528         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31529         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31530
31531 2009-11-22  Bruno Haible  <bruno@clisp.org>
31532
31533         Add comments.
31534         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31535         invocation.
31536         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31537         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31538         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31539
31540 2009-11-22  Bruno Haible  <bruno@clisp.org>
31541
31542         error: account for the possibility of freopen (stdout).
31543         * lib/error.c: Include <unistd.h>.
31544         (flush_stdout): New function, extracted from error and error_at_line.
31545         Determine stdout's fd dynamically.
31546         (error, error_at_line): Invoke flush_stdout.
31547         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31548         * modules/error (Depends-on): Add unistd.
31549
31550 2009-11-22  Bruno Haible  <bruno@clisp.org>
31551
31552         diffseq: Add comment.
31553         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31554
31555 2009-11-22  Jim Meyering  <meyering@redhat.com>
31556
31557         c-stack: avoid defining an unused static function
31558         * lib/c-stack.c (find_stack_direction): Do not define this function
31559         when it will not be used.
31560
31561         diffseq: avoid spurious gcc warnings
31562         * lib/diffseq.h (IF_LINT2): Define.
31563         (compareseq): Use it to initialize two members of "part".
31564         This avoids two used-uninitialized warnings.
31565
31566 2009-11-21  Jim Meyering  <meyering@redhat.com>
31567
31568         c-stack: avoid "ignoring return value of `write'" warning
31569         * lib/c-stack.c: Include "ignore-value.h".
31570         (die): Explicitly ignore each write return value.
31571         * modules/c-stack (Depends-on): Add ignore-value.
31572
31573 2009-11-21  Bruno Haible  <bruno@clisp.org>
31574
31575         diffseq: reduce scope of variable 'best'.
31576         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31577         variable, earlier used for two different purposes.
31578
31579 2009-11-21  Jim Meyering  <meyering@redhat.com>
31580
31581         diffseq: remove useless assignment to "best"
31582         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31583         assignment.  At that point "best" is already guaranteed to be zero.
31584
31585 2009-11-20  Eric Blake  <ebb9@byu.net>
31586
31587         build: mention ftp redirector in release announcements
31588         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31589         values that used to come from cfg.mk; mention FTP redirect URL.
31590         * build-aux/announce-gen: Mention the mirror list.
31591         Suggested by Karl Berry.
31592
31593         nanosleep: improve port to mingw
31594         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31596         LIB_NANOSLEEP, but only when needed.
31597         * modules/select (Link): Document LIBSOCKET.
31598         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31599         enough.
31600
31601         nanosleep: work around cygwin bug
31602         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31603         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31604         bug.
31605         (getnow): Delete, not needed.
31606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31607         LIB_CLOCK_GETTIME.
31608         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31609         clock-time, gettime.
31610         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31611         bug.
31612         * modules/nanosleep-tests: New test.
31613         * tests/test-nanosleep.c: New file.
31614
31615         sleep: work around cygwin bug
31616         * lib/sleep.c (rpl_sleep): Work around the bug.
31617         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31618         (gl_PREREQ_SLEEP): Delete unused macro.
31619         * modules/sleep (Depends-on): Add verify.
31620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31621         * modules/unistd (Makefile.am): Substitute witness.
31622         * lib/unistd.in.h (sleep): Update prototype.
31623         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31624         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31625         * modules/sleep-tests (Depends-on): Check for alarm.
31626
31627 2009-11-20  Jim Meyering  <meyering@redhat.com>
31628
31629         maint.mk: improve sc_prohibit_magic_number_exit
31630         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31631         so it does not match uses like System.exit(1).
31632         Add comments showing how to correct all offenders.
31633
31634 2009-11-19  Eric Blake  <ebb9@byu.net>
31635
31636         xalloc-die-tests: add missing library
31637         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31638
31639         test-xvasprintf: silence compiler warnings
31640         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31641         empty string from gcc.
31642
31643 2009-11-19  Jim Meyering  <meyering@redhat.com>
31644
31645         xfreopen: new module, from coreutils
31646         * modules/xfreopen: New module.
31647         * lib/xfreopen.c: New file.
31648         * lib/xfreopen.h: New file.
31649         * MODULES.html.sh (File stream based Input/Output"): Add it.
31650
31651 2009-11-19  Eric Blake  <ebb9@byu.net>
31652
31653         manywarnings: depend on warnings
31654         * modules/manywarnings (Depends-on): Add warnings.
31655
31656         build: avoid compiler warnings
31657         * lib/select.c (rpl_select): Delete unused variable.
31658         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31659
31660 2009-11-18  Eric Blake  <ebb9@byu.net>
31661
31662         tests: avoid false negative with --with-packager
31663         * tests/test-version-etc.sh: Discard packager information.
31664         * tests/test-argp-version-etc-1.sh: Likewise.
31665         Reported by Mike Frysinger.
31666
31667         utimens: fix regression on Solaris
31668         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31669         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31670         can only change fd timestamps via futimesat.  Instead, use an
31671         additional witness macro to avoid BSD bug.
31672         Reported by Jim Meyering.
31673
31674 2009-11-17  Eric Blake  <ebb9@byu.net>
31675
31676         usleep: use it to simplify tests
31677         * modules/stat-time-tests (Depends-on): Add usleep.
31678         (configure.ac): Drop usleep check.
31679         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31680         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31681         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31682         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31683         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31684         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31685         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31686         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31687         Likewise.
31688         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31689         * tests/test-lchown.h (nap): Likewise.
31690         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31691         * tests/test-stat-time.c (nap): Likewise.
31692         * tests/test-utimens-common.h (nap): Update comments.
31693
31694         usleep: new module
31695         * modules/usleep: New file.
31696         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31697         * lib/usleep.c (usleep): Likewise.
31698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31699         * modules/unistd (Makefile.am): Substitute witnesses.
31700         * lib/unistd.in.h (usleep): Add declaration.
31701         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31702         * MODULES.html.sh (Date and time): Likewise.
31703         * modules/usleep-tests (Depends-on): New test.
31704         * tests/test-usleep.c: New file.
31705
31706         chown: work around OpenBSD bug
31707         * lib/chown.c (rpl_chown): Work around the bug.
31708         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31709         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31710         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31711         * modules/chown (Depends-on): Add stdbool.
31712         * modules/lchown (Depends-on): Likewise.
31713         * doc/posix-functions/chown.texi (chown): Document the bug.
31714         * doc/posix-functions/lchown.texi (lchown): Likewise.
31715         * tests/test-lchown.h (test_chown): Relax test.
31716
31717         mkstemp: avoid conflict with C++ keyword template
31718         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31719         * lib/mkostemp.c (mkostemp): Likewise.
31720         * lib/mkostemps.c (mkostemps): Likewise.
31721         * lib/mkstemp.c (mkstemp): Likewise.
31722         * lib/mkstemps.c (mkstemps): Likewise.
31723
31724         xalloc-die-tests: optimize
31725         * tests/test-xalloc-die.sh: Reduce number of processes.
31726
31727 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31728
31729         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31730         patch from ludo@gnu.org (Ludovic Courtès).
31731
31732 2009-11-17  Jim Meyering  <meyering@redhat.com>
31733
31734         version-etc: use proper license string
31735         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31736         * modules/version-etc-fsf: Likewise.
31737
31738 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31739
31740         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31741         printed to stdout.  Deal with EOL differences.
31742
31743 2009-11-17  Eric Blake  <ebb9@byu.net>
31744
31745         unsetenv: work around Solaris bug
31746         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31747         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31748         Reported by Jim Meyering.
31749
31750         vasnprintf: avoid compiler warnings
31751         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31752         variables.
31753         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31754
31755 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31756
31757         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31758         settings since xalloc-die is no longer the self test,
31759         xalloc-die.sh is.
31760
31761 2009-11-17  Jim Meyering  <meyering@redhat.com>
31762
31763         test-xalloc-die.sh: make the code agree with the commit log
31764         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31765         at the end, just in case you happen to have a test-xalloc-die
31766         program in some other PATH directory.
31767
31768         test-xalloc-die.sh: fix a portability bug
31769         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31770         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31771         Otherwise, argv[0] (as often seen in diagnostics) would be too
31772         system-dependent, sometimes with, and sometimes without the leading "./".
31773
31774         version-etc-fsf: relax license to LGPLv3+
31775         * modules/version-etc-fsf (License): Relax license.
31776
31777 2009-11-16  Eric Blake  <ebb9@byu.net>
31778
31779         xalloc-die-tests: avoid printing null pointer
31780         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31781         shell script.
31782         * tests/test-xalloc-die.c (program_name): Declare.
31783         * tests/test-xalloc-die.sh (tmpfiles): New file.
31784
31785         setenv, unsetenv: work around various bugs
31786         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31787         (setenv) [HAVE_SETENV]: Work around bugs.
31788         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31790         for bugs.
31791         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31792         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31794         * modules/stdlib (Makefile.am): Update substitutions.
31795         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31796         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31797         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31798         * modules/setenv-tests: New test.
31799         * modules/unsetenv-tests: Likewise.
31800         * tests/test-setenv.c: New file.
31801         * tests/test-unsetenv.c: Likewise.
31802
31803 2009-11-16  Jim Meyering  <meyering@redhat.com>
31804
31805         version-etc: relax license to LGPLv3+
31806         * modules/version-etc (License): Relax license.
31807
31808         better AC_REQUIRE expanded-before-required-warning avoidance
31809         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31810         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31811         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31812         which is no longer needed.
31813
31814 2009-11-16  Eric Blake  <ebb9@byu.net>
31815
31816         test-freading: clean up temporary file
31817         * tests/test-freading.c (main): Remove file on success, and use
31818         ASSERT more liberally.
31819         Reported by Jim Meyering.
31820
31821 2009-11-16  Jim Meyering  <meyering@redhat.com>
31822
31823         avoid new AC_REQUIRE expanded-before-required warnings
31824         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31825         merely using it.
31826         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31827         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31828
31829 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31830
31831         * tests/test-xalloc-die.c: New file.
31832         * modules/xalloc-die-tests: New file.
31833         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31834         XFAIL_TESTS so it can be appended by modules.
31835
31836 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31837
31838         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31839         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31840
31841 2009-11-14  Eric Blake  <ebb9@byu.net>
31842
31843         fnmatch: avoid compiler warning
31844         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31845         to silence compiler warning about mismatch signedness in ?:.
31846         Reported by Robert Millan.
31847
31848         intprops: add double-inclusion guard
31849         * lib/intprops.h: Allow idempotent includes.
31850         Suggested by Bruce Korb.
31851
31852         openat: detect Solaris fchownat bug
31853         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31854         penalizing glibc chownat when only lchownat is broken.
31855         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31856         trailing slash bugs.
31857         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31858         * modules/openat-tests (Files): Include more files.
31859         (Depends-on): Add mgetgroups, sleep, stat-time.
31860         (configure.ac): Add additional checks.
31861         (Makefile.am): Build new test.
31862         * tests/test-fchownat.c: New file.
31863
31864         lchown: detect Solaris and FreeBSD bug
31865         * lib/lchown.c (rpl_lchown): Work around bug.
31866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31868         * modules/unistd (Makefile.am): Populate it.
31869         * lib/unistd.in.h (lchown): Update declaration.
31870         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31871         * modules/lchown-tests: New file.
31872         * tests/test-lchown.h (test_lchown): Likewise.
31873         * tests/test-lchown.c (main): Likewise.
31874
31875         chown: detect Solaris and FreeBSD bug
31876         * lib/chown.c (rpl_chown): Work around bug.
31877         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31878         (gl_PREREQ_CHOWN): Delete.
31879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31880         * modules/unistd (Makefile.am): Populate it.
31881         * lib/unistd.in.h (chown): Update declaration.
31882         * lib/lchown.c (chown): Update client.
31883         * modules/lchown (Depends-on): Add lstat.
31884         * doc/posix-functions/chown.texi (chown): Document the bug.
31885         * doc/posix-functions/getgroups.texi (getgroups): Document
31886         getgroups pitfall.
31887         * modules/chown-tests: New file.
31888         * tests/test-chown.h (test_chown): Likewise.
31889         * tests/test-chown.c (main): Likewise.
31890
31891 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31892
31893         gnulib-tool: correctly detect absence of m4 directories
31894         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31895
31896 2009-11-14  Jim Meyering  <meyering@redhat.com>
31897
31898         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31899         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31900
31901 2009-11-14  John W. Eaton  <jwe@gnu.org>
31902
31903         strftime.h: wrap funtion declaration in extern "C" block
31904         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31905
31906 2009-11-13  Eric Blake  <ebb9@byu.net>
31907
31908         getgroups: avoid compiler warning
31909         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31910
31911         getgroups: work around FreeBSD bug
31912         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31913         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31914         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31915         * tests/test-getgroups.c (main): Fix buffer overrun.
31916
31917         getgroups: avoid compilation failure
31918         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31919         * modules/getgroups (Depends-on): Add stdint.
31920
31921 2009-11-13  Jim Meyering  <meyering@redhat.com>
31922
31923         test-getgroups: avoid compilation failure
31924         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31925
31926 2009-11-13  Eric Blake  <ebb9@byu.net>
31927
31928         mgetgroups: new module, taken from coreutils
31929         * modules/mgetgroups: New file.
31930         * lib/mgetgroups.h: Likewise.
31931         * lib/mgetgroups.c (mgetgroups): Likewise.
31932         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31933         * MODULES.html.sh (Users and groups): Mention it.
31934
31935         getgroups: don't expose GETGROUPS_T to user
31936         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31937         an element at a time if GETGROUPS_T is wrong size.
31938         * lib/getugroups.h (getugroups): Change signature.
31939         * lib/unistd.in.h (getgroups): Likewise.
31940         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31941         signature needs fixing.
31942         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31943         AC_TYPE_GETGROUPS.
31944         * modules/group-member (Depends-on): Add getgroups.
31945         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31946         (group_member): Rely on getgroups replacement.
31947         * lib/getugroups.c (getugroups): Use gid_t.
31948         * tests/test-getgroups.c (main): Likewise.
31949         * NEWS: Mention the signature change.
31950         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31951         problem with signature.
31952         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31953         GETGROUPS_T is still useful for setgroups.
31954
31955         getgroups, getugroups: provide stubs for mingw
31956         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31957         * lib/getugroups.c (getugroups): Likewise.
31958         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31959         function.  Modernize replacement scheme.
31960         (gl_PREREQ_GETGROUPS): Delete.
31961         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31962         * modules/getgroups (configure.ac): Declare witness.
31963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31964         * modules/unistd (Depends-on): Substitute witness.
31965         * lib/unistd.in.h (getgroups): Declare replacement.
31966
31967         getgroups: avoid calling exit
31968         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31969         drop xalloc.
31970         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31971         dependencies.
31972         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31973         exiting, in the rare case of malloc failure.
31974
31975         getgroups: fix logic error
31976         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31977         has more than 20 groups.
31978         * modules/getgroups-tests: New test.
31979         * tests/test-getgroups.c: New file.
31980
31981 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31982
31983         * tests/test-base64.c: Improve.
31984
31985 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31986
31987         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31988         Blake <ebb9@byu.net>.
31989
31990 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31991
31992         * tests/test-xvasprintf.c: Add %s%s related checks.
31993
31994 2009-11-12  Eric Blake  <ebb9@byu.net>
31995
31996         version-etc: match standards.texi style
31997         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31998         and use <> only for URLs.
31999
32000 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32001
32002         fts: do not fail on a submount during traversal
32003         * lib/fts.c (fts_build): Read the stat info again after opening
32004         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32005         Original report at http://bugzilla.redhat.com/501848.
32006
32007 2009-11-12  Jim Meyering  <meyering@redhat.com>
32008
32009         bootstrap: sync from coreutils
32010         * build-aux/bootstrap (bootstrap_epilogue): New function.
32011         Use git_modules_config in one more place.  This make bootstrap's
32012         --gnulib-srcdir option more useful for testing.
32013
32014         bootstrap: generalize autoheader check
32015         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32016         AC_CONFIG_HEADERS.
32017
32018 2009-11-11  Eric Blake  <ebb9@byu.net>
32019
32020         mkfifoat: use new modules for Solaris and BSD bugs
32021         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32022         * lib/mkfifoat.c (mknodat): Split...
32023         * lib/mknodat.c (mknodat): ...into new file.
32024         * modules/mkfifoat (Files): Ship new file.
32025         (Depends-on): Add mkfifo, mknod.
32026         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32027         (Depends-on): Add symlink.
32028         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32029         redundant with test_mkfifo.h.
32030         (do_mkfifoat, do_mknodat): New helpers.
32031
32032         mknod: new module
32033         * modules/mknod: New file.
32034         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32035         * lib/mknod.c (mknod): Likewise.
32036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32037         defaults.
32038         * modules/sys_stat (Makefile.am): Substitute them.
32039         * lib/sys_stat.in.h (mknod): Declare replacement.
32040         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32041         Document it.
32042         * doc/posix-functions/mknod.texi (mknod): Likewise.
32043         * modules/mknod-tests: New test.
32044         * tests/test-mknod.c: Likewise.
32045
32046         mkfifo: new module
32047         * modules/mkfifo: New file.
32048         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32049         * lib/mkfifo.c (mkfifo): Likewise.
32050         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32051         defaults.
32052         * modules/sys_stat (Makefile.am): Substitute them.
32053         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32054         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32055         Document it.
32056         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32057         * modules/mkfifo-tests: New test.
32058         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32059         from test-mkfifoat.c.
32060         * tests/test-mkfifo.c: New file.
32061
32062         readlink: detect FreeBSD bug
32063         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32064         slash on symlink.
32065         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32066         * tests/test-readlink.h (test_readlink): Enhance test.
32067
32068         symlink: detect FreeBSD bug
32069         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32070         slash on symlink.
32071         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32072         * tests/test-symlink.h (test_symlink): Enhance test.
32073
32074 2009-11-10  Eric Blake  <ebb9@byu.net>
32075
32076         link: detect FreeBSD bug
32077         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32078         symlink.
32079         * doc/posix-functions/link.texi (link): Document the bug.
32080         * tests/test-link.h (test_link): Enhance test.
32081         * tests/test-linkat.c (main): Update caller.
32082
32083         unlink, remove: detect FreeBSD bug
32084         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32085         slash on symlink.
32086         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32087         * doc/posix-functions/remove.texi (remove): Likewise.
32088         * tests/test-unlink.h (test_unlink): Enhance test.
32089         * tests/test-remove.c (main): Likewise.
32090
32091 2009-11-09  Eric Blake  <ebb9@byu.net>
32092
32093         rename: detect FreeBSD bug
32094         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32095         slash on symlink.
32096         * modules/renameat-tests (Depends-on): Add filenamecat.
32097         * tests/test-rename.h (test_rename): Allow one more errno.
32098         * tests/test-renameat.c (main): Likewise.
32099         * doc/posix-functions/rename.texi (rename): Document the bug.
32100
32101         open: detect FreeBSD bug
32102         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32103         symlink.
32104         * doc/posix-functions/open.texi (open): Document the bug.
32105         * doc/posix-functions/utimes.texi (utimes): Likewise.
32106         * tests/test-open.h (test_open): Add parameters, and test symlink
32107         handling.
32108         * tests/test-open.c (main): Adjust caller.
32109         * tests/test-fcntl-safer.c (main): Likewise.
32110         * modules/open-tests (Depends-on): Add stdbool, symlink.
32111         * modules/fcntl-safer-tests (Depends-on): Likewise.
32112         * tests/test-openat.c (main): Add test-open tests.
32113
32114         stat: detect FreeBSD bug
32115         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32116         symlink.
32117         * doc/posix-functions/stat.texi (stat): Document the bug.
32118         * tests/test-stat.h (test_stat_func): Add argument.
32119         * tests/test-stat.c (main): Adjust caller.
32120         * tests/test-fstatat.c (main): Likewise.
32121         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32122         Reported by Jim Meyering.
32123
32124 2009-11-09  James Youngman  <jay@gnu.org>
32125
32126         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32127         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32128
32129 2009-11-08  Jim Meyering  <meyering@redhat.com>
32130
32131         utimens: remove invalid futimesat call
32132         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32133         It used the file descriptor of the target file as the DIR_FD
32134         parameter and NULL as the file name.  That caused failure with
32135         errno == EFAULT on FreeBSD-8.0-rc2
32136
32137 2009-11-07  Eric Blake  <ebb9@byu.net>
32138
32139         fflush, freadseek: use fseeko, not fseek
32140         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32141         (clear_ungetc_buffer): Avoid potential problems on large files.
32142         * lib/freadseek.c (freadseek): Likewise.
32143         * modules/freadseek (Depends-on): Add fseeko.
32144         * modules/fseek (configure.ac): Set a witness.
32145         * tests/test-fflush.c (main): Use fseeko.
32146         * tests/test-fpurge.c (fseek): Disable link warning.
32147         * tests/test-freadable.c (fseek): Likewise.
32148         * tests/test-freading.c (fseek): Likewise.
32149         * tests/test-fseeko.c (fseek): Likewise.
32150         * tests/test-ftell.c (fseek): Likewise.
32151         * tests/test-ftello.c (fseek): Likewise.
32152         * tests/test-fwritable.c (fseek): Likewise.
32153         * tests/test-fwriting.c (fseek): Likewise.
32154
32155 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32156
32157         * modules/memchr (Depends-on): Drop getpagesize dependency.
32158
32159 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32160
32161         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32162         Reported by Ludovic Courtès.
32163         * build-aux/pmccabe2html: Improve example usage.
32164         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32165
32166 2009-11-06  Jim Meyering  <meyering@redhat.com>
32167
32168         do-release-commit-and-tag: New module.
32169         Automate the release-commit and tag process.
32170         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32171         * modules/do-release-commit-and-tag: New file.
32172         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32173
32174 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32175
32176         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32177         because test-select.c uses inet_pton.
32178
32179 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32180
32181         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32182         GETADDRINFO_LIB.  Bump serial number.
32183         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32184         Suggested by Eric Blake <ebb9@byu.net>.
32185
32186 2009-11-05  Eric Blake  <ebb9@byu.net>
32187
32188         strtod: detect darwin bug
32189         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32190         Reported by Leo Davis.
32191
32192         freopen-safer: new module
32193         * modules/freopen-safer: New module.
32194         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32195         * lib/freopen-safer.c (freopen_safer): New file.
32196         * lib/stdio-safer.h (freopen_safer): New declaration.
32197         * lib/stdio--.h (freopen): New override.
32198         * MODULES.html.sh (File stream based Input/Output): Mention it.
32199         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32200         freopen-safer module.
32201         * doc/posix-functions/stderr.texi (stderr): Likewise.
32202         * doc/posix-functions/stdin.texi (stdin): Likewise.
32203         * doc/posix-functions/stdout.texi (stdout): Likewise.
32204         * modules/freopen-safer-tests: New test.
32205         * tests/test-reopen-safer.c: New file.
32206
32207 2009-11-05  Jim Meyering  <meyering@redhat.com>
32208
32209         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32210         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32211
32212 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32213
32214         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32215
32216 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32217
32218         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32219
32220 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32221
32222         Fix link error.
32223         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32224         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32225
32226 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32227
32228         * tests/test-func.c: Also test value of __func__.
32229
32230 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32231
32232         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32233         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32234
32235 2009-11-05  Bruno Haible  <bruno@clisp.org>
32236
32237         Fix link error.
32238         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32239         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32240         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32241
32242 2009-11-05  Bruno Haible  <bruno@clisp.org>
32243
32244         Tests for module 'inet_pton'.
32245         * modules/inet_pton-tests: New file.
32246         * tests/test-inet_pton.c: New file.
32247
32248 2009-11-05  Bruno Haible  <bruno@clisp.org>
32249
32250         Tests for module 'inet_ntop'.
32251         * modules/inet_ntop-tests: New file.
32252         * tests/test-inet_ntop.c: New file.
32253
32254 2009-11-04  Eric Blake  <ebb9@byu.net>
32255
32256         stdlib-safer: wrap all mkstemp variants
32257         * modules/mkostemp (configure.ac): Set witness.
32258         * modules/mkostemps (configure.ac): Likewise.
32259         * modules/mkstemps (configure.ac): Likewise.
32260         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32261         (mkstemps_safer): Wrap more functions.
32262         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32263         wrapping.
32264         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32265         (mkstemps_safer): Implement the wrappers.
32266
32267         mkstemps, mkostemps: new modules
32268         * modules/mkostemps: New module.
32269         * modules/mkstemps: Likewise.
32270         * lib/mkostemps.c (mkostemps): New file.
32271         * lib/mkstemps.c (mkstemps): Likewise.
32272         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32273         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32275         * modules/stdlib (Makefile.am): Substitute them.
32276         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32277         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32278         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32279         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32280         * MODULES.html.sh (File system functions): Mention them.
32281
32282         tempname: resync from glibc
32283         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32284         same values for __GT_FILE as glibc.  Abort even when assertions
32285         are disabled.
32286         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32287         match its value otherwise.  Allow idempotent inclusion.
32288         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32289         * lib/mkostemp.c (mkostemp): Likewise.
32290         * lib/mkstemp.c (mkstemp): Likewise.
32291         * lib/tmpfile.c (tmpfile): Likewise.
32292         * NEWS: Document this.
32293
32294         utimens: fix use of futimens on older Linux
32295         * lib/utimens.c (fdutimens): Use updated, rather than original,
32296         timespec to avoid bug in older Linux kernel.
32297         Reported by Simon Josefsson.
32298
32299 2009-11-04  Bruno Haible  <bruno@clisp.org>
32300
32301         Make num_processors more flexible and consistent.
32302         * lib/nproc.h (enum nproc_query): New type.
32303         (num_processors): Add a 'query' argument.
32304         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32305         (num_processors): Add a 'query' argument. Test the value of the
32306         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32307         mingw, count the number of CPUs available for the current process.
32308         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32309         Check for sched_getaffinity and sched_getaffinity_np.
32310         * modules/nproc (Depends-on): Add c-ctype, extensions.
32311         * NEWS: Mention the change.
32312
32313 2009-11-03  Bruno Haible  <bruno@clisp.org>
32314
32315         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32316
32317 2009-11-03  Jim Meyering  <meyering@redhat.com>
32318
32319         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32320         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32321         if it is defined.
32322
32323 2009-11-02  Eric Blake  <ebb9@byu.net>
32324
32325         mktime, timegm: share common declaration
32326         * lib/mktime-internal.h: New file.
32327         * lib/mktime.c: Use it rather than open-coding a declaration.
32328         * lib/timegm.c: Likewise.
32329         * modules/mktime (Files): Ship it.
32330         * modules/timegm (Files): Likewise.
32331         Suggested by Bruno Haible.
32332
32333         test-update-copyright: update test to match script changes
32334         * tests/test-update-copyright.sh: Avoid hard-coding perl
32335         location.  Don't update *.bak created by earlier runs.
32336
32337 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32338             Simon Josefsson  <simon@josefsson.org>
32339             Bruno Haible  <bruno@clisp.org>
32340
32341         Fix link error on Solaris 8.
32342         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32343         also in libnsl. Define also INET_PTON_LIB.
32344         * modules/inet_pton (Link): New section.
32345
32346 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32347             Bruno Haible  <bruno@clisp.org>
32348
32349         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32350         * modules/inet_ntop (Link): New section.
32351         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32352
32353 2009-11-02  Eric Blake  <ebb9@byu.net>
32354
32355         maint: avoid compiler warnings in m4 macros
32356         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32358
32359 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32360
32361         * m4/pmccabe2html.m4: Remove file.
32362         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32363         function.  Change maintainer.
32364         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32365         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32366         Courtès).
32367
32368 2009-10-31  Eric Blake  <ebb9@byu.net>
32369
32370         fseeko: fix m4 regression
32371         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32372         regression from 2009-10-27.
32373         Reported by Ralf Wildenhues.
32374
32375 2009-10-31  Jim Meyering  <meyering@redhat.com>
32376
32377         inttostr: aesthetics and improved (compile-time) safety
32378         Define inttype_is_signed rather than inttype_is_unsigned,
32379         since the sole use is via "#if inttype_is_signed".
32380         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32381         inttype_is_unsigned.
32382         * lib/offtostr.c (inttype_is_signed): Likewise.
32383         * lib/uinttostr.c (inttype_is_signed): Likewise.
32384         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32385         * lib/inttostr.c (inttostr): Use verify to cross-check the
32386         inttype_is_signed value and the signedness of the actual type.
32387         * modules/inttostr (Depends-on): Add verify.
32388
32389 2009-10-30  Eric Blake  <ebb9@byu.net>
32390
32391         build: avoid compiler warnings
32392         * lib/fchmodat.c (lchmod): Mark unused variables.
32393         * lib/getopt.c (_getopt_initialize): Likewise.
32394         * lib/mktime.c (__mktime_internal): Provide prototype.
32395         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32396         older gcc that do not understand #pragma GCC diagnostic.
32397         * lib/uinttostr.c (inttype_is_unsigned): Define.
32398         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32399
32400 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32401
32402         stat: fix compilation on AIX
32403         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32404         only see struct stat64.
32405
32406 2009-10-30  Eric Blake  <ebb9@byu.net>
32407
32408         exclude: make more robust
32409         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32410         rather than masking a coding bug.
32411         Suggested by Bruno Haible.
32412
32413 2009-10-30  Jim Meyering  <meyering@redhat.com>
32414
32415         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32416         Rather than putting #!/usr/bin/perl on the first line,
32417         start with a variant of what's recommended by "man perlrun" that
32418         invokes the first "perl" program from your shell's search path.
32419         * build-aux/gitlog-to-changelog: Replace #!... as above.
32420         Add a "Local Variables" perl mode setting.
32421         Prompted by a patch from Ludovic Courtès.
32422         Improved by Eric Blake.
32423         * build-aux/useless-if-before-free: Likewise.
32424         * build-aux/announce-gen: Likewise.
32425         * build-aux/update-copyright: Likewise.
32426
32427 2009-10-29  Eric Blake  <ebb9@byu.net>
32428
32429         filenamecat-lgpl: adjust clients
32430         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32431         filenamecat.
32432         * modules/renameat (Depends-on): Likewise.
32433
32434         filenamecat: split into filenamecat-lgpl
32435         * modules/filenamecat-lgpl: New module.
32436         * modules/filenamecat (Files): Move library-safe files into
32437         filenamecat-lgpl.
32438         (Depends-on): Add filenamecat-lgpl.
32439         (configure.ac): Declare witness.
32440         * lib/filenamecat.h (file_name_concat): Only declare when using
32441         GPL module.
32442         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32443         Move...
32444         * lib/filenamecat-lgpl.c: ...into new file.
32445         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32446         (gl_FILE_NAME_CONCAT): Use it.
32447         * MODULES.html.sh (File system functions): Mention new module.
32448
32449         argp: avoid memory leak
32450         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32451         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32452         base_name, since the latter malloc()s and can call exit().
32453         Leak introduced 2006-07-03.
32454
32455         dirname-lgpl: adjust clients that don't need full dirname
32456         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32457         * modules/filenamecat (Depends-on): Likewise.
32458         * modules/linkat (Depends-on): Likewise.
32459         * modules/mkancesdirs (Depends-on): Likewise.
32460         * modules/mkdir (Depends-on): Likewise.
32461         * modules/openat (Depends-on): Likewise.
32462         * modules/savewd (Depends-on): Likewise.
32463         * modules/rename (Depends-on): Likewise.
32464         (License): Relax license.
32465         * modules/mkdir-tests (Depends-on): Drop progname.
32466         (Makefile.am): Delete unneeded LDADD.
32467         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32468
32469         dirname: split into dirname-lgpl
32470         * modules/dirname-lgpl: New module.
32471         * modules/dirname (Files): Move library-safe files into
32472         dirname-lgpl.
32473         (Depends-on): Add dirname-lgpl.
32474         (configure.ac): Declare witness.
32475         * modules/double-slash-root (License): Relax license.
32476         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32477         module.
32478         * lib/dirname.c (dir_len, mdir_name): Move...
32479         * lib/dirname-lgpl.c: ...into new file.
32480         * lib/basename.c (last_component, base_len): Move...
32481         * lib/basename-lgpl.c: ...into new file.
32482         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32483         (gl_DIRNAME): Use it.
32484         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32485         Mention new module.
32486         * modules/dirname-tests (Depends-on): Add progname.
32487         * tests/test-dirname.c (program_name): Delete.
32488
32489         mkdir: make safe for libraries
32490         * modules/mkdir (Depends-on): Drop xalloc.
32491         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32492         exit.
32493
32494         tests: avoid some compiler warnings
32495         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32496         literals.
32497         * tests/test-memchr.c (main): Avoid type mismatch.
32498         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32499         * tests/test-base64.c (main): Likewise.
32500         * tests/test-getdelim.c (main): Likewise.
32501         * tests/test-gethostname.c (main): Likewise.
32502         * tests/test-getline.c (main): Likewise.
32503         * tests/test-netinet_in.c (main): Likewise.
32504         * tests/test-select.c (open_server_socket, main): Likewise.
32505         * tests/test-select-stdin.c (main): Likewise.
32506         * tests/test-sockets.c (main): Likewise.
32507         * tests/test-strsignal.c (main): Likewise.
32508         * tests/test-sys_select.c (main): Likewise.
32509         * tests/test-sys_socket.c (main): Likewise.
32510         * tests/test-u64.c (main): Likewise.
32511         * tests/test-xfprintf-posix.c (main): Likewise.
32512         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32513
32514         sockets: avoid compiler warning
32515         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32516
32517         maint: detect usage(1) and other suspicious exits
32518         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32519
32520 2009-10-29  Jim Meyering  <meyering@redhat.com>
32521
32522         timespec: long-to-int truncation could make timespec_cmp malfunction
32523         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32524         a multiple of 2^32 nanoseconds as no difference.
32525
32526 2009-10-28  Jim Meyering  <meyering@redhat.com>
32527
32528         fprintftime: wrap macro code argument in "do {...} while(0)"
32529         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32530         cpy macro must be a statement that can be followed by a semicolon.
32531         Now that the else clause contains a comment and is hence longer
32532         than one line, I require curly braces.  That in turn requires
32533         that we wrap this code block in the standard do...while(0).
32534
32535         fprintftime: remove stray semicolon from previous change
32536         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32537
32538         fprintftime: avoid a warning about ignored fwrite return value
32539         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32540         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32541         that is unsafe.
32542         * modules/fprintftime (Depends-on): Add ignore-value.
32543
32544         exclude: avoid an unwarranted warning
32545         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32546
32547 2009-10-27  Eric Blake  <ebb9@byu.net>
32548
32549         fseek: avoid compilation failure when fflush is replaced
32550         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32551         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32552         module is in use.
32553         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32554         module is not in use; since REPLACE_FSEEK worked otherwise.
32555         (GNULIB_FTELLO): Likewise for ftell.
32556         Reported by Ian Beckwith and others.
32557
32558 2009-10-27  Bruno Haible  <bruno@clisp.org>
32559
32560         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32561         Reported by Jim Meyering.
32562
32563 2009-10-27  Jim Meyering  <jim@meyering.net>
32564             Bruno Haible  <bruno@clisp.org>
32565
32566         Avoid warning despite dropping the return value of fwrite.
32567         * lib/unicodeio.c: Include ignore-value.h.
32568         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32569         * modules/unicodeio (Depends-on): Add ignore-value.
32570
32571 2009-10-26  Eric Blake  <ebb9@byu.net>
32572
32573         areadlinkat: fix fallback path
32574         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32575         pointer and zero.
32576
32577 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32578
32579         Use a better IO block size for modern systems
32580         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32581         * lib/md2.c: Likewise.
32582         * lib/md4.c: Likewise.
32583         * lib/md5.c: Likewise.
32584         * lib/sha1.c: Likewise.
32585         * lib/sha256.c: Likewise.
32586         * lib/sha512.c: Likewise.
32587
32588 2009-10-22  Eric Blake  <ebb9@byu.net>
32589
32590         tests: avoid several compiler warnings
32591         * tests/test-getcwd.c (main): Avoid buffer underflow.
32592         * tests/test-getdate.c (main): String literals are not safe with
32593         putenv, so use setenv.  Declare unused argument.
32594         * modules/getdate-tests (Depends-on): Add setenv.
32595         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32596         problems with string literals in char *.
32597         * tests/test-hash.c (main): Avoid shadowing declaration.
32598         (insert_new): Treat string literals as char const *.
32599         * tests/test-getopt.h (test_getopt): Likewise.
32600         (getopt_loop): Alter types to minimize casting elsewhere.
32601         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32602         (test_getopt_long_posix): Likewise.
32603         (do_getopt_long): Add wrapper to minimize casting.
32604         * tests/test-atexit.c (clear_temp_file): Use void.
32605         * tests/test-areadlink-with-size.c (main): Declare unused
32606         arguments.
32607         * tests/test-areadlink.c (main): Likewise.
32608         * tests/test-areadlinkat-with-size.c (main): Likewise.
32609         * tests/test-areadlinkat.c (main): Likewise.
32610         * tests/test-canonicalize-lgpl.c (main): Likewise.
32611         * tests/test-canonicalize.c (main): Likewise.
32612         * tests/test-dirent-safer.c (main): Likewise.
32613         * tests/test-dirname.c (main): Likewise.
32614         * tests/test-dup2.c (main): Likewise.
32615         * tests/test-fchdir.c (main): Likewise.
32616         * tests/test-fcntl-h.c (main): Likewise.
32617         * tests/test-fcntl-safer.c (main): Likewise.
32618         * tests/test-fdopendir.c (main): Likewise.
32619         * tests/test-fdutimensat.c (main): Likewise.
32620         * tests/test-fflush.c (main): Likewise.
32621         * tests/test-filenamecat.c (main): Likewise.
32622         * tests/test-filevercmp.c (main): Likewise.
32623         * tests/test-fopen-safer.c (main): Likewise.
32624         * tests/test-fopen.c (main): Likewise.
32625         * tests/test-fpending.c (main): Likewise.
32626         * tests/test-fpurge.c (main): Likewise.
32627         * tests/test-freading.c (main): Likewise.
32628         * tests/test-fstatat.c (main): Likewise.
32629         * tests/test-fsync.c (main): Likewise.
32630         * tests/test-futimens.c (main): Likewise.
32631         * tests/test-getndelim2.c (main): Likewise.
32632         * tests/test-gettimeofday.c (main): Likewise.
32633         * tests/test-getopt.c (main): Likewise.
32634         * tests/test-i-ring.c (main): Likewise.
32635         * tests/test-inttypes.c (main): Likewise.
32636         * tests/test-link.c (main): Likewise.
32637         * tests/test-lstat.c (main): Likewise.
32638         * tests/test-math.c (main): Likewise.
32639         * tests/test-md5.c (main): Likewise.
32640         * tests/test-memchr2.c (main): Likewise.
32641         * tests/test-memrchr.c (main): Likewise.
32642         * tests/test-mkdir.c (main): Likewise.
32643         * tests/test-mkdirat.c (main): Likewise.
32644         * tests/test-mkfifoat.c (main): Likewise.
32645         * tests/test-open.c (main): Likewise.
32646         * tests/test-openat-safer.c (main): Likewise.
32647         * tests/test-openat.c (main): Likewise.
32648         * tests/test-quotearg.c (main): Likewise.
32649         * tests/test-rawmemchr.c (main): Likewise.
32650         * tests/test-readlink.c (main): Likewise.
32651         * tests/test-remove.c (main): Likewise.
32652         * tests/test-rename.c (main): Likewise.
32653         * tests/test-renameat.c (main): Likewise.
32654         * tests/test-rmdir.c (main): Likewise.
32655         * tests/test-sha1.c (main): Likewise.
32656         * tests/test-signal.c (main): Likewise.
32657         * tests/test-sigaction.c (main): Likewise.
32658         * tests/test-stat.c (main): Likewise.
32659         * tests/test-stat-time.c (main): Likewise.
32660         * tests/test-stddef.c (main): Likewise.
32661         * tests/test-stdint.c (main): Likewise.
32662         * tests/test-stdio.c (main): Likewise.
32663         * tests/test-stdlib.c (main): Likewise.
32664         * tests/test-strchrnul.c (main): Likewise.
32665         * tests/test-strerror.c (main): Likewise.
32666         * tests/test-string.c (main): Likewise.
32667         * tests/test-strtod.c (main): Likewise.
32668         * tests/test-strverscmp.c (main): Likewise.
32669         * tests/test-symlink.c (main): Likewise.
32670         * tests/test-symlinkat.c (main): Likewise.
32671         * tests/test-sys_stat.c (main): Likewise.
32672         * tests/test-sys_time.c (main): Likewise.
32673         * tests/test-time.c (main): Likewise.
32674         * tests/test-unistd.c (main): Likewise.
32675         * tests/test-unlink.c (main): Likewise.
32676         * tests/test-unlinkat.c (main): Likewise.
32677         * tests/test-utimens.c (main): Likewise.
32678         * tests/test-utimensat.c (main): Likewise.
32679         * tests/test-version-etc.c (main): Likewise.
32680         * tests/test-wchar.c (main): Likewise.
32681         * tests/test-wctype.c (main): Likewise.
32682         * tests/test-xprintf-posix.c (main): Likewise.
32683         * tests/test-posixtm.c (main): Likewise.
32684         (STREQ): Delete unused macro.
32685         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32686         shadowed variables.
32687         * tests/test-memchr.c (main): Likewise.
32688
32689 2009-10-21  Eric Blake  <ebb9@byu.net>
32690
32691         areadlinkat: avoid failure on older glibc
32692         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32693         rather than mis-comparing 0 against FUNC_RESULT of char*.
32694
32695 2009-10-21  Bruno Haible  <bruno@clisp.org>
32696
32697         * modules/stpncpy (License): Relicense under LGPLv2+.
32698         Reported by David Lutterkort <lutter@redhat.com>.
32699
32700 2009-10-20  Eric Blake  <ebb9@byu.net>
32701
32702         utimensat: work around Solaris 9 bug
32703         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32704         has trailing slash bugs.
32705         * tests/test-lutimens.h (test_lutimens): Enhance test.
32706         * tests/test-utimens.h (test_utimens): Likewise.
32707         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32708         * doc/posix-functions/utimes.texi (utimes): Likewise.
32709         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32710         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32711         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32712         * doc/posix-functions/futimens.texi (futimens): Likewise.
32713
32714         fdutimensat: new module
32715         * modules/fdutimensat: New file.
32716         * lib/fdutimensat.c (fdutimensat): Likewise.
32717         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32718         * MODULES.html.sh (File system functions): Mention module.
32719         * modules/fdutimensat-tests: New test.
32720         * tests/test-fdutimensat.c: Likewise.
32721
32722         doc: regenerate INSTALL
32723         * doc/INSTALL: Reflect recent autoconf update.
32724         * doc/INSTALL.ISO: Likewise.
32725         * doc/INSTALL.UTF-8: Likewise.
32726
32727 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32728
32729         acl: warn if ACL support is not detected
32730         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32731
32732 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32733
32734         * lib/nproc.h: Add extern "C" block for C++.
32735
32736 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32737             Bruno Haible  <bruno@clisp.org>
32738
32739         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32740         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32741         * doc/posix-functions/isalpha.texi: Likewise.
32742         * doc/posix-functions/isblank.texi: Likewise.
32743         * doc/posix-functions/iscntrl.texi: Likewise.
32744         * doc/posix-functions/isdigit.texi: Likewise.
32745         * doc/posix-functions/isgraph.texi: Likewise.
32746         * doc/posix-functions/islower.texi: Likewise.
32747         * doc/posix-functions/isprint.texi: Likewise.
32748         * doc/posix-functions/ispunct.texi: Likewise.
32749         * doc/posix-functions/isspace.texi: Likewise.
32750         * doc/posix-functions/isupper.texi: Likewise.
32751         * doc/posix-functions/isxdigit.texi: Likewise.
32752
32753 2009-10-18  Bruno Haible  <bruno@clisp.org>
32754
32755         Tests for module 'isblank'.
32756         * modules/isblank-tests: New file.
32757         * tests/test-isblank.c: New file.
32758
32759         New module 'isblank'.
32760         * lib/isblank.c: New file.
32761         * m4/isblank.m4: New file.
32762         * modules/isblank: New file.
32763         * doc/posix-functions/isblank.texi: Mention the new module.
32764
32765 2009-10-18  Bruno Haible  <bruno@clisp.org>
32766
32767         New module 'ctype'.
32768         * lib/ctype.in.h: New file.
32769         * m4/ctype.m4: New file.
32770         * modules/ctype: New file.
32771         * doc/posix-headers/ctype.texi: Mention the new module.
32772
32773 2009-10-18  Jim Meyering  <meyering@redhat.com>
32774
32775         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32776         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32777         right after its initialization, rather than farther down.
32778         Keeping these in close proximity makes it easier to ensure
32779         that each such variable is initialized.  E.g.,
32780
32781             LIB_CLOCK_GETTIME=
32782             AC_SUBST([LIB_CLOCK_GETTIME])
32783
32784         This change also increments these serial numbers.
32785         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32786         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32788
32789 2009-10-18  Bruno Haible  <bruno@clisp.org>
32790
32791         Don't let environment variables perturb build.
32792         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32793         (gl_PREREQ_GETHRXTIME): ... not here.
32794
32795 2009-10-18  Bruno Haible  <bruno@clisp.org>
32796
32797         Avoid symlink attack in localcharset module.
32798         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32799         (O_NOFOLLOW): Define fallback.
32800         (get_charset_aliases): Don't open the file if it is a symbolic link.
32801         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32802         gl_FCNTL_H.
32803         (gl_FCNTL_H): Require it.
32804         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32805         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32806         Reported by Fergal Glynn <fglynn@veracode.com>.
32807
32808 2009-10-18  Bruno Haible  <bruno@clisp.org>
32809
32810         Implement nproc for mingw.
32811         * lib/nproc.c: Include <windows.h>
32812         (num_processors): On native Windows platforms, try GetSystemInfo.
32813
32814 2009-10-18  Bruno Haible  <bruno@clisp.org>
32815
32816         Implement nproc for IRIX.
32817         * lib/nproc.c: Include <sys/sysmp.h>.
32818         (num_processors): On IRIX systems, try sysmp.
32819         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32820
32821 2009-10-18  Bruno Haible  <bruno@clisp.org>
32822
32823         Implement nproc for HP-UX.
32824         * lib/nproc.c: Include <sys/pstat.h>
32825         (num_processors): On HP-UX systems, try pstat_getdynamic.
32826         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32827         pstat_getdynamic.
32828
32829 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32830             Bruno Haible  <bruno@clisp.org>
32831
32832         Implement nproc for NetBSD, OpenBSD.
32833         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32834         (ARRAY_SIZE): New macro.
32835         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32836         * m4/nproc.m4: New file.
32837         * modules/nproc (Files): Add m4/nproc.m4.
32838         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32839         (Makefile.am): Instead, augment lib_SOURCES.
32840
32841 2009-10-18  Bruno Haible  <bruno@clisp.org>
32842
32843         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32844         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32845         sys/param.h.
32846
32847 2009-10-16  Eric Blake  <ebb9@byu.net>
32848
32849         utimensat: new module
32850         * modules/utimensat: New file.
32851         * lib/utimensat.c (utimensat): Likewise.
32852         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32853         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32854         so we can work around Linux bugs.
32855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32856         * modules/sys_stat (Makefile.am): Substitute them.
32857         * lib/sys_stat.in.h (utimensat): Declare it.
32858         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32859         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32860         * modules/utimensat-tests: New test.
32861         * tests/test-utimensat.c: Likewise.
32862
32863         utimens: let lutimens work on non-symlinks
32864         * lib/utimens.c (lutimens): Fall back to utimens rather than
32865         failing with ENOSYS, when file is not a symlink.
32866         (utimens): Reduce redirection.
32867         * tests/test-lutimens.h (test_lutimens): Update test to cover
32868         non-symlinks.
32869         * tests/test-utimens.h (test_utimens): Update test to cover
32870         symlinks.
32871         * tests/test-utimens.c (main): Update caller.
32872
32873         utimens: cache whether utimensat syscall works
32874         * lib/utimens.c (utimensat_works_really): New cache variable.
32875         (fdutimens, lutimens): Use it to avoid failing syscall.
32876
32877         test-stat-time, test-utimens: improve portability
32878         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32879         ext4 on alpha, and for cygwin.
32880         * tests/test-utimens-common.h: New file.
32881         (nap): Factor delays into single function.
32882         * tests/test-lutimens.h (test_lutimens): Use new header.
32883         * tests/test-futimens.h (test_futimens): Likewise.
32884         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32885         timestamps to occur from same machine, as was done previously for
32886         test_utimens.
32887         * modules/utimens-tests (Files): Ship new file.
32888         * modules/futimens-tests (Files): Likewise.
32889         Reported in part by Jim Meyering.
32890
32891         sys_stat: sort replacement declarations
32892         * lib/sys_stat.in.h: Sort declarations.
32893         * lib/futimens.c (futimens): Fix typo.
32894
32895 2009-10-15  Jim Meyering  <meyering@redhat.com>
32896
32897         don't let environment settings perturb build
32898         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32899         could cause a configure-time and/or build-time malfunction.
32900         Typically, a configure-time function-in-library test is performed
32901         via code like this:
32902
32903           LIB_VAR=
32904           AC_SUBST([LIB_VAR])
32905           prefix_saved_LIBS=$LIBS
32906             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32907                        [test "$ac_cv_search_FUNC" = "none required" ||
32908                         LIB_VAR=$ac_cv_search_FUNC])
32909           LIBS=$prefix_saved_LIBS
32910
32911         However, in each of the files affected by this change, the LIB_VAR=
32912         initialization was omitted.  Thus, when set in the environment, its
32913         value would propagate into generated Makefiles when FUNC is not found
32914         in LIB_NAME.
32915         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32916         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32917         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32918
32919 2009-10-14  Eric Blake  <ebb9@byu.net>
32920
32921         fchdir: avoid infinite recursion in mingw
32922         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32923         recursing.
32924
32925         test-stat-time: port to mingw
32926         * tests/test-stat-time.c (force_unlink): Return a value.
32927         (test_ctime) [W32]: Fix compilation error.
32928         (nap): Don't call usleep with too large an argument.  Use
32929         force_unlink.
32930         * doc/pastposix-functions/usleep.texi (usleep): Document the
32931         portability issue.
32932
32933 2009-10-13  Jim Meyering  <meyering@redhat.com>
32934
32935         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32936         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32937         * modules/pipe-filter-ii: Likewise.
32938         * modules/sys_socket-tests: Likewise.
32939         * modules/tsearch-tests: Likewise.
32940         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32941         (check): Depend on it.
32942
32943 2009-10-12  Eric Blake  <ebb9@byu.net>
32944
32945         utimens-tests: port to NFS file systems
32946         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32947         comparisons to avoid spurious failures from timestamp drift
32948         between NFS machines.
32949
32950 2009-10-12  Eric Blake  <ebb9@byu.net>
32951
32952         stat-time-tests: minor cleanups
32953         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32954         * tests/test-stat-time.c (nap): Separate assignment from call.
32955         Suggested by Paolo Bonzini and Bruno Haible.
32956
32957         sys_stat: guarantee struct timespec
32958         * lib/sys_stat.in.h (includes): Always include <time.h>
32959         * modules/sys_stat (Depends-on): Add time.
32960         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32961         mode_t permission values.
32962         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32963         get at subsecond timestamps.
32964
32965 2009-10-10  Eric Blake  <ebb9@byu.net>
32966
32967         futimens: new module
32968         * modules/futimens: New file.
32969         * lib/futimens.c (futimens): Likewise.
32970         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32971         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32972         we can work around Linux bugs.
32973         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32974         * modules/sys_stat (Makefile.am): Substitute them.
32975         * lib/sys_stat.in.h (futimens): Declare it.
32976         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32977         * doc/posix-functions/futimens.texi (futimens): Likewise.
32978         * modules/futimens-tests: New test.
32979         * tests/test-futimens.c: Likewise.
32980
32981         utimens: introduce fdutimens
32982         * lib/utimens.h (fdutimens): New prototype.
32983         * lib/utimens.c (gl_futimens): Move guts...
32984         (fdutimens): ...to new interface.
32985         * tests/test-utimens.c (do_fdutimens): Use it.
32986
32987         utimens: add UTIME_NOW and UTIME_OMIT support
32988         * lib/utimens.c (validate_timespec, update_timespec): New helper
32989         functions.
32990         (gl_futimens, lutimens): Use them.
32991         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32992         stdbool, sys_stat.
32993         (Link): Mention resulting library dependency.
32994         * modules/utimecmp (Link): Likewise.
32995         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32996         (Makefile.am): Pick up library dependency.
32997         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32998         definition.
32999         * tests/test-sys_stat.c: Test the definitions.
33000         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33001         * NEWS: Document library dependency.
33002
33003         utimecmp: support symlink timestamps
33004         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33005         hashing when possible.  Use pathconf when available.
33006         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33007         * modules/utimecmp (Depends-on): Add lstat.
33008
33009         utimens: add lutimens interface
33010         * lib/utimens.c (lutimens): New function.
33011         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33012         * lib/utimens.h (lutimens): Declare new interface.
33013         * tests/test-utimens.c (main): Enhance test.
33014         * tests/test-lutimens.h (test_lutimens): New file.
33015         * modules/utimens-tests (Files): Distribute it.
33016         (Depends-on): Add symlink.
33017         (configure.ac): Check for usleep.
33018
33019         utimens: validate futimens usage
33020         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33021         fewer syscalls on failure later on.  Avoid compiler warning on
33022         mingw.
33023         * modules/utimens (Depends-on): Add dup2.
33024
33025         utimens: add test
33026         * modules/utimens-tests: New test.
33027         * tests/test-utimens.h: New file.
33028         * tests/test-futimens.h: Likewise.
33029         * tests/test-utimens.c: Likewise.
33030
33031         doc: mention timestamp portability issues
33032         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33033         instead.
33034         * doc/posix-functions/utime.texi (utime): Likewise.
33035         * doc/posix-functions/utimes.texi (utimes): Likewise.
33036         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33037         instead.
33038         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33039         module.
33040         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33041         Mention weakness with symlink timestamps.
33042         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33043         to utimensat/futimens instead.
33044         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33045
33046         test-dup2: enhance test
33047         * tests/test-dup2.c (main): Also check AT_FDCWD.
33048
33049         test-stat-time: avoid more spurious failures
33050         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33051         xfs; and avoid race if the two timestamps cross quantization edge.
33052
33053         relocatable: prefer 'file system' over 'filesystem'
33054         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33055         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33056         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33057         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33058         * lib/relocatable.c (compute_curr_prefix): Likewise.
33059
33060 2009-10-10  Jim Meyering  <meyering@redhat.com>
33061
33062         stat-time-tests: check for the usleep function
33063         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33064
33065 2009-10-10  Bruno Haible  <bruno@clisp.org>
33066
33067         * modules/xnanosleep: Put the Link section after the Include section.
33068
33069 2009-10-09  Eric Blake  <ebb9@byu.net>
33070
33071         dup2: work around FreeBSD 6.1 bug
33072         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33073         * doc/posix-functions/dup2.texi (dup2): Document it.
33074         Reported by Nelson H. F. Beebe and Jim Meyering.
33075
33076         test-stat-time: port to buggy NFS clients
33077         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33078         (test_ctime): Also skip test if mtime and ctime are skewed.
33079
33080         maint: prefer 'file system' over 'filesystem'
33081         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33082         * doc/posix-functions/lstat.texi (lstat): Likewise.
33083         * lib/file-has-acl.c (file_has_acl): Likewise.
33084         * lib/fwriteerror.c [TEST]: Likewise.
33085         * tests/test-areadlink.h (test_areadlink): Likewise.
33086         * tests/test-areadlinkat-with-size.c (main): Likewise.
33087         * tests/test-areadlinkat.c (main): Likewise.
33088         * tests/test-canonicalize-lgpl.c (main): Likewise.
33089         * tests/test-canonicalize.c (main): Likewise.
33090         * tests/test-fstatat.c (main): Likewise.
33091         * tests/test-linkat.c (main): Likewise.
33092         * tests/test-lstat.h (test_lstat_func): Likewise.
33093         * tests/test-mkdir.h (test_mkdir): Likewise.
33094         * tests/test-readlink.h (test_readlink): Likewise.
33095         * tests/test-remove.c (main): Likewise.
33096         * tests/test-rename.h (test_rename): Likewise.
33097         * tests/test-renameat.c (main): Likewise.
33098         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33099         * tests/test-symlink.h (test_symlink): Likewise.
33100         * tests/test-symlinkat.c (main): Likewise.
33101         * tests/test-unlink.h (test_unlink_func): Likewise.
33102         * tests/test-unlinkat.c (main): Likewise.
33103
33104         maint: make realtime library usage explicit
33105         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33106         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33107         * modules/settime (Link): Likewise.
33108         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33109
33110         test-stat-time: speed up execution
33111         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33112         warning on mingw.
33113         (nap): New helper function.
33114         (prepare_test): Use it to reduce sleep time.
33115         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33116         execution.
33117         * modules/stat-time-tests (configure.ac): Check for usleep.
33118
33119 2009-10-09  Jim Meyering  <meyering@redhat.com>
33120
33121         selinux-h: always use getfilecon wrappers
33122         * lib/getfilecon.c: New file.
33123         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33124         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33125         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33126         (fgetfilecon): Provide a stub.
33127         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33128         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33129         file unconditionally.
33130         When <selinux/selinux.h> is found, arrange to use wrappers.
33131         * modules/selinux-h (Files): Add getfilecon.c.
33132         (Makefile.am): Substitute include-next-related bits
33133         into the now-always-generated selinux/selinux.h file.
33134         * doc/glibc-functions/lgetfilecon.texi: New file.
33135         * doc/glibc-functions/fgetfilecon.texi: New file.
33136         * doc/glibc-functions/getfilecon.texi: New file.
33137         * doc/glibc-functions/getfilecon-desc.texi: New file.
33138         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33139         which to pull in the new files.
33140         * MODULES.html.sh (Misc): Add selinux-h.
33141
33142 2009-10-08  Jim Meyering  <meyering@redhat.com>
33143
33144         unistd: fix comment typo
33145         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33146
33147 2009-10-08  Eric Blake  <ebb9@byu.net>
33148
33149         areadlink: use SIZE_MAX consistently
33150         * modules/areadlink (Depends-on): Add stdint.
33151         * modules/areadlink-with-size (Depends-on): Likewise.
33152         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33153         gives NULL; drop sys/types, since unistd gives size_t; and add
33154         stdint for SIZE_MAX.
33155         (SIZE_MAX): Rely on headers.
33156         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33157         and add stdint.
33158         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33159         (SIZE_MAX): Likewise.
33160         (INITIAL_BUF_SIZE): Turn into enum.
33161         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33162
33163 2009-10-08  Jim Meyering  <meyering@redhat.com>
33164
33165         areadlinkat: avoid compilation failure
33166         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33167         Fix typo in comment.
33168
33169 2009-10-07  Eric Blake  <ebb9@byu.net>
33170
33171         areadlinkat-with-size: new module
33172         * modules/areadlinkat-with-size: New module.
33173         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33174         * lib/areadlink.h (areadlinkat): Declare it.
33175         * MODULES.html.sh (File system functions): Mention it.
33176         * modules/areadlinkat-with-size-tests: New test.
33177         * tests/test-areadlinkat-with-size.c: New file.
33178
33179         xreadlinkat: new module
33180         * modules/xreadlinkat: New module.
33181         * lib/xreadlinkat.c (xreadlinkat): New file.
33182         * lib/xreadlink.h (xreadlinkat): Declare it.
33183         * MODULES.html.sh (File system functions): Mention it.
33184
33185         areadlinkat: new module
33186         * lib/at-func.c (FUNC_FAIL): New define.
33187         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33188         * modules/areadlinkat: New module.
33189         * lib/linkat.c (areadlinkat): Move...
33190         * lib/areadlinkat.c (areadlinkat): ...to new file.
33191         * lib/areadlink.h (areadlinkat): Declare it.
33192         * modules/linkat (Depends-on): Add areadlinkat.
33193         * MODULES.html.sh (File system functions): Mention it.
33194         * modules/areadlinkat-tests: New test.
33195         * tests/test-areadlinkat.c: New file.
33196
33197         areadlink, areadlink-with-size: add tests
33198         * modules/areadlink-tests: New test.
33199         * modules/areadlink-with-size-tests: Likewise.
33200         * tests/test-areadlink.h: New file.
33201         * tests/test-areadlink.c: Likewise.
33202         * tests/test-areadlink-with-size.c: Likewise.
33203
33204         maint: minor cleanups
33205         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33206         _UNUSED_PARAMETER_ instead.
33207         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33208         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33209         * modules/linkat-tests (Files): Distribute test-link.h.
33210
33211         openat, utimens: whitespace cleanup
33212         * lib/openat.c: Prefer space throughout, rather than mix of 8
33213         spaces vs. tabs.
33214         * lib/at-func.c: Likewise.
33215         * lib/utimens.c: Likewise.
33216
33217         openat: avoid using wrong fd
33218         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33219         working directory chooses same fd.
33220         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33221
33222         mkdir, mkdirat: fix cygwin 1.5.x bug
33223         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33225         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33226         bug.
33227         (gl_PREREQ_MKDIR): Delete unused macro.
33228         * modules/mkdir (Files): Track file rename.
33229         (configure.ac): Update macro name.
33230         * modules/openat (Depends-on): Add mkdir.
33231         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33232
33233         mkdir, mkdirat: add tests
33234         * modules/mkdir-tests: New test.
33235         * tests/test-mkdir.h: New file.
33236         * tests/test-mkdir.c: Likewise.
33237         * tests/test-mkdirat.c: Likewise.
33238         * modules/openat-tests (Files): Add new files.
33239         (Makefile.am): Run new test.
33240
33241 2009-10-06  Eric Blake  <ebb9@byu.net>
33242
33243         doc: tweak *at function documentation
33244         * doc/posix-functions/faccessat.texi (faccessat): Mention
33245         known issue with replacement.
33246         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33247         * doc/posix-functions/linkat.texi (linkat): Likewise.
33248         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33249         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33250         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33251         * doc/posix-functions/renameat.texi (renameat): Likewise.
33252         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33253
33254         openat: fix GNU/Hurd bug in unlinkat
33255         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33256         broken.
33257         * doc/posix-functions/unlink.texi (unlink): Document this.
33258         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33259
33260         fdopendir: fix GNU/Hurd bug
33261         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33262         allowing non-directory fds.
33263         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33264         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33265         * modules/dirent (Makefile.am): Substitute it.
33266         * lib/dirent.in.h (fdopendir): Declare replacement.
33267         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33268         * tests/test-fdopendir.c (main): Test something other than
33269         /dev/null, since on Hurd that behaves like a directory.
33270
33271         test-symlink: port to GNU/Hurd
33272         * tests/test-symlink.h (test_symlink): Relax expected errno.
33273
33274         doc: tweak more cygwin information
33275         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33276         now compatible with glibc.
33277         * doc/posix-functions/getopt.texi (getopt): Likewise.
33278
33279         getopt-gnu: add another test
33280         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33281         guarantee behavior relied on by m4.
33282         * tests/test-getopt.c (main): Use it.
33283         * modules/getopt-posix-tests (Depends-on): Add setenv.
33284         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33285
33286         getopt: fix compilation on darwin
33287         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33288         include.
33289         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33290         Reported by Ludovic Courtès.
33291
33292 2009-10-06  Bruno Haible  <bruno@clisp.org>
33293
33294         * modules/size_max (Description): Discourage its use.
33295         Reported by Simon Josefsson.
33296
33297 2009-10-06  Jim Meyering  <meyering@redhat.com>
33298
33299         linkat: avoid compilation failure
33300         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33301
33302 2009-10-05  Eric Blake  <ebb9@byu.net>
33303
33304         linkat: support Linux 2.6.17
33305         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33306         linkat on Linux, but allow cache variable override.
33307         * lib/linkat.c (rpl_linkat): Define override.
33308         * modules/linkat (Depends-on): Add symlinkat.
33309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33310         * modules/unistd (Makefile.am): Substitute it.
33311         * lib/unistd.in.h (linkat): Declare replacement.
33312         Reported by Pádraig Brady.
33313
33314         quotearg: port test to systems with C.UTF-8 locale
33315         * tests/test-quotearg.c (struct result_strings): Add another
33316         member, differentiating between C.ASCII and C.UTF-8 handling.
33317         (compare_strings): Add parameter.
33318         (main): Adjust all callers.
33319
33320         getopt: avoid clash with FreeBSD _getopt_internal
33321         * lib/getopt.in.h (_getopt_internal): Override the name.
33322         * lib/getopt_int.h (includes): Pick up any overrides.
33323         Reported by Reuben Thomas.
33324
33325         hash: allow C89 compilation
33326         * lib/hash.c (check_tuning): Move declaration before statement.
33327         Reported by Reuben Thomas.
33328
33329 2009-10-05  Karl Berry  <karl@gnu.org>
33330
33331         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33332
33333 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33334             Bruno Haible  <bruno@clisp.org>
33335
33336         * lib/uname.c (uname): Use a table-driven algorithm to compute
33337         Windows NT versions.
33338
33339 2009-10-04  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33342         program_invocation_short_name.
33343         * modules/progname (configure.ac): Test for presence of
33344         program_invocation_short_name.
33345         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33346
33347 2009-10-04  Bruno Haible  <bruno@clisp.org>
33348
33349         * lib/progname.c (set_program_name): Fix comment.
33350         Reported by Jim Meyering.
33351
33352 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33353             Bruno Haible  <bruno@clisp.org>
33354
33355         * lib/uname.c: Include <string.h>.
33356         (uname): Do only one call to GetVersionEx in the common case.
33357
33358 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33359             Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33362         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33363         (uname): Add support for Windows CE and various non-x86 CPU types.
33364
33365 2009-10-03  Bruno Haible  <bruno@clisp.org>
33366
33367         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33368         invocation to tests/configure.ac.
33369         Reported by Ian Beckwith <ianb@erislabs.net>.
33370
33371 2009-10-02  Eric Blake  <ebb9@byu.net>
33372
33373         fchdir: avoid compiler warning
33374         * lib/fchdir.c (canonicalize_file_name)
33375         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33376
33377         test-open: support mingw errno values
33378         * tests/test-open.h (test_open): Relax test.
33379         * tests/test-fopen.h (test_fopen): Likewise.
33380         * tests/test-openat-safer.c (main): Likewise.
33381
33382         open: fix opening directory on mingw
33383         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33384
33385         test-open: on GNU/Hurd, /dev/null is a directory
33386         * tests/test-fopen.h (main): Rename...
33387         (test_fopen): ...to this.  Use a guaranteed non-directory when
33388         confirming open behavior on trailing slash.
33389         * tests/test-openat-safer.c (main): Likewise.
33390         * tests/test-open.h (main): Likewise....
33391         (test_open): ...to this.
33392         * tests/test-fopen.c (main): Adjust caller.
33393         * tests/test-fopen-safer.c (main): Likewise.
33394         * tests/test-open.c (main): Likewise.
33395         * tests/test-fcntl-safer.c (main): Likewise.
33396         Reported by Samuel Thibault.
33397
33398         rename, fchdir: don't ignore chdir failure
33399         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33400         * lib/rename.c (rpl_rename) [W32]: Likewise.
33401         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33402         an empty destination directory if source cannot be renamed,
33403         although there is still possibility for failure.
33404         * doc/posix-functions/rename.texi (rename): Document the race.
33405         Reported by Jim Meyering.
33406
33407         maint: cleanup whitespace in recent commits
33408         * lib/rename.c (rpl_rename): Remove tabs.
33409         * tests/test-link.h (test_link): Likewise.
33410         * lib/fchdir.c (get_name): Likewise.
33411         Reported by Jim Meyering.
33412
33413 2009-10-02  Ben Pfaff  <blp@gnu.org>
33414
33415         relocatable-prog-wrapper: Add missing dependency on
33416         double-slash-root.
33417         * modules/relocatable-prog-wrapper: Add dependency.
33418         Reported by Ian Beckwith <ianb@erislabs.net>.
33419
33420 2009-10-02  Eric Blake  <ebb9@byu.net>
33421
33422         renameat: fix Solaris bugs
33423         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33424         needed fixing.
33425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33426         * modules/stdio (Makefile.am): Substitute it.
33427         * lib/stdio.in.h (renameat): Declare replacement.
33428         * lib/renameat.c (rpl_renameat): Implement fix.
33429
33430         renameat: new module
33431         * modules/renameat: New file.
33432         * lib/renameat.c (renameat): Likewise.
33433         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33435         * modules/stdio (Makefile.am): Substitute them.
33436         * lib/stdio.in.h (renameat): Declare it.
33437         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33438         * doc/posix-functions/renameat.texi (renameat): Likewise.
33439         * modules/renameat-tests: New test.
33440         * tests/test-renameat.c: Likewise.
33441
33442         rename: fix mingw bugs
33443         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33444         directory overwrite bugs.
33445
33446         rename: fix another cygwin 1.5 bug
33447         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33448         checks.
33449         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33450         unnecessary cygwin workarounds.  Also work around bug with moving
33451         full directory onto an empty one.
33452         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33453
33454         rename-dest-slash: merge into rename module
33455         * modules/rename-dest-slash (Status): Mark obsolete.
33456         (Depends-on): Add rename.
33457         (Files): Let rename do it all.
33458         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33459         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33460         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33461         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33462         * lib/rename.c (rpl_rename): Update comments.
33463
33464         rename: fix cygwin 1.5.x bugs
33465         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33466         * lib/rename.c (rpl_rename): Work around them.
33467         * modules/rename (Depends-on): Add same-inode.
33468
33469         rename: fix Solaris 10 bug
33470         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33471         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33472         was the only bug.
33473
33474         rename: fix Solaris 9 bug
33475         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33476         on non-directory.  Avoid calling exit.
33477         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33478         strdup.
33479         * modules/rename-tests (Depends-on): Drop lstat.
33480         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33481         (gl_PREREQ_RENAME): Delete unused macro.
33482
33483         rename-dest-slash: fix NetBSD bug
33484         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33485         links.
33486         * modules/rename-dest-slash (Depends-on): Add same-inode.
33487
33488         rename-tests: new test, exposes several platform bugs
33489         * modules/rename-tests: New file.
33490         * tests/test-rename.h: Likewise.
33491         * tests/test-rename.c: Likewise.
33492         * doc/posix-functions/rename.texi (rename): Improve documentation,
33493         including bugs that will eventually be fixed in gnulib.
33494
33495 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33496
33497         * lib/uname.c: Include <stdlib.h>
33498         (uname): Assume version info is available.
33499
33500 2009-10-02  Jim Meyering  <meyering@redhat.com>
33501
33502         gnu-web-doc-update: correct --help output
33503         * build-aux/gnu-web-doc-update: Make --help output relevant.
33504
33505         gnu-web-doc-update: add standard options
33506         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33507
33508         gnu-web-doc-update: New module.
33509         Use this script to automatically update the on-line web documentation
33510         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33511         * modules/gnu-web-doc-update: New file, from coreutils.
33512         * build-aux/gnu-web-doc-update: New script.
33513
33514 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33515
33516         link: LoadLibrary is not needed.
33517         * lib/link.c: Use GetModuleHandle.
33518
33519 2009-10-01  Eric Blake  <ebb9@byu.net>
33520
33521         getopt: bump serial number
33522         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33523         change.
33524
33525         tests: tighten link, rmdir, and remove tests
33526         * tests/test-link.h (includes): No need to use <config.h> here.
33527         Clean up if directory hard link was created, otherwise test for
33528         trailing '.'.
33529         * tests/test-linkat.c (main): Simplify.
33530         * tests/test-remove.c (main): Enhance test for trailing '.'.
33531         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33532
33533 2009-10-01  Jim Meyering  <meyering@redhat.com>
33534
33535         maint.mk: requiring "make major" was annoying, for a "minor" release.
33536         What is intended is "stable", to contrast with alpha and beta,
33537         so require "make stable", not "make major".
33538         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33539         (get_tool_versions): Likewise.
33540         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33541
33542 2009-09-30  Ben Pfaff  <blp@gnu.org>
33543
33544         Fix broken build of replacement for Windows tmpfile().
33545         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33546         flags argument added along with the 'mkostemp' module.
33547
33548 2009-09-28  Bruno Haible  <bruno@clisp.org>
33549
33550         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33551         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33552         to 'remove_elt'.
33553         (gl_list_remove): Update.
33554         * lib/gl_list.c (gl_list_remove): Update.
33555         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33556         to 'remove_elt'.
33557         (gl_oset_remove): Update.
33558         * lib/gl_list.c (gl_oset_remove): Update.
33559         Reported by Eric Blake.
33560
33561 2009-09-28  Eric Blake  <ebb9@byu.net>
33562
33563         doc: mention yet more cygwin 1.7 status
33564         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33565         cygwin.
33566         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33567         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33568
33569         argp: fix test failure
33570         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33571         that are not upper-case.  Pass correct range to tolower.
33572
33573 2009-09-27  Jim Meyering  <meyering@redhat.com>
33574
33575         test-yesno: work around sparc-dash here-document infelicity
33576         Without this change, the literal \177 byte in a here document
33577         would make dash 0.5.5.1-3 access uninitialized memory.
33578         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33579         Instead, use a marker, "@", and filter through tr to create the desired
33580         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33581
33582 2009-09-27  Bruno Haible  <bruno@clisp.org>
33583
33584         Disable untested support for new flavours of ACLs on AIX.
33585         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33586         progress.
33587         * lib/set-mode-acl.c (qset_acl): Likewise.
33588
33589 2008-12-07  Bruno Haible  <bruno@clisp.org>
33590
33591         Add support for new flavours of ACLs on AIX. (Untested.)
33592         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33593         (file_has_acl): Add support for newer AIX.
33594         * lib/set-mode-acl.c (qset_acl): Likewise.
33595         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33596         Rainer Tammer <tammer@tammer.net>.
33597
33598 2009-09-26  Eric Blake  <ebb9@byu.net>
33599
33600         argp: fix compilation of getopt
33601         * lib/getopt.in.h (includes): Use different guard than glibc.
33602         Reported by Sergey Poznyakoff.
33603
33604         doc: mention more cygwin 1.7 status
33605         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33606         bug.
33607         * doc/posix-functions/execl.texi (execl): Likewise.
33608         * doc/posix-functions/execle.texi (execle): Likewise.
33609         * doc/posix-functions/execlp.texi (execlp): Likewise.
33610         * doc/posix-functions/execv.texi (execv): Likewise.
33611         * doc/posix-functions/execve.texi (execve): Likewise.
33612         * doc/posix-functions/execvp.texi (execvp): Likewise.
33613         * doc/glibc-functions/canonicalize_file_name.texi
33614         (canonicalize_file_name): Cygwin 1.7 now provides this.
33615         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33616         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33617         on AT_SYMLINK_NOFOLLOW.
33618
33619 2009-09-24  Eric Blake  <ebb9@byu.net>
33620
33621         test-linkat: make test more robust
33622         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33623
33624         getopt: fix inclusion guards for cygwin
33625         * modules/getopt-posix (Depends-on): Add include-next.
33626         (Makefile.am): Substitute more items in replacement header.
33627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33628         <getopt.h>.
33629         * lib/getopt.in.h (includes): Use split inclusion guard, and
33630         prefer <getopt.h> over include <unistd.h> when one is present.
33631         (option): Also override name of 'struct option'.
33632
33633         same-inode: revert prior change; it is not yet ready
33634         * NEWS: Undo mention of this change.
33635         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33636         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33637         * lib/cycle-check.c (cycle_check): Likewise.
33638         * lib/same.c (same_name): Likewise.
33639         * lib/at-func2.c (at_func2): Likewise.
33640
33641 2009-09-23  Eric Blake  <ebb9@byu.net>
33642
33643         linkat: new module
33644         * modules/linkat: New file.
33645         * lib/at-func2.c (at_func2): Likewise.
33646         * lib/linkat.c (linkat): Likewise.
33647         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33648         * lib/openat-priv.h (at_func2): Add declaration.
33649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33650         * modules/unistd (Makefile.am): Substitute them.
33651         * lib/unistd.in.h (linkat): Declare it.
33652         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33653         * doc/posix-functions/linkat.texi (linkat): Likewise.
33654         * doc/posix-functions/link.texi (link): Tweak wording.
33655         * tests/test-link.c (main): Move guts...
33656         * tests/test-link.h (test_link): ...into new file.
33657         * modules/linkat-tests: New test.
33658         * tests/test-linkat.c: Likewise.
33659         * modules/link-tests (Files): Ship new file.
33660         (Depends-on): Add stdbool.
33661
33662         dirname: add library-safe mdir_name
33663         * lib/dirname.h (mdir_name): New prototype.
33664         * lib/dirname.c (dir_name): Move guts...
33665         (mdir_name): ...to new function that avoids xalloc_die.
33666
33667         fchdir: another mingw fix
33668         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33669         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33670         on mingw (where it has not yet been ported), and make it optional
33671         elsewhere.
33672         (_gl_register_fd): Use it.
33673
33674         same-inode: make SAME_INODE tri-state, to port to mingw
33675         * NEWS: Mention this change.
33676         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33677         st_ino always being 0.
33678         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33679         * lib/cycle-check.c (cycle_check): Likewise.
33680         * lib/same.c (same_name): Likewise.
33681
33682         lstat: avoid mingw compilation error
33683         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33684         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33685         lstat ourselves.
33686         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33687         was adequate.
33688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33689         the checks for lstat.
33690         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33691
33692         link: fix test failure on Solaris 9
33693         * lib/link.c (rpl_link): Don't assume link will catch bogus
33694         trailing slash on source.
33695
33696         test-symlinkat: enhance test
33697         * tests/test-readlink.c (main): Move guts...
33698         * tests/test-readlink.h (test_readlink): ...into new file.
33699         * tests/test-symlink.c (main): Move guts...
33700         * tests/test-symlink.h (test_symlink): ...into new file.
33701         * tests/test-symlinkat.c (main): Use new files for further
33702         coverage.
33703         (do_symlink, do_readlink): New helper functions.
33704         * modules/symlink-tests (Files): Ship new file.
33705         (Depends-on): Add stdbool.
33706         * modules/readlink-tests (Files): Ship new file.
33707         (Depends-on): Add stdbool.
33708         * modules/symlinkat-tests (Files): Use new files.
33709
33710 2009-09-23  Eric Blake  <ebb9@byu.net>
33711
33712         readlink: document portability issue with symlink length
33713         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33714         systems have bogus st_size on symlinks, and mention the
33715         areadlink-with-size module.
33716         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33717         * doc/posix-functions/readlink.texi (readlink): Mention the
33718         areadlink module, and ERANGE failure.
33719         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33720         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33721
33722         readlink: fix Solaris 9 bug with trailing slash
33723         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33724         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33725         * doc/posix-functions/readlink.texi (readlink): Document this.
33726         * modules/readlink-tests: New test.
33727         * tests/test-readlink.c: Likewise.
33728
33729         readlink: fix cygwin 1.5.x bug with return type
33730         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33731         * lib/unistd.in.h (readlink): Use ssize_t.
33732         * lib/readlink.c (readlink): Likewise.
33733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33734         * modules/unistd (Makefile.am): Substitute it.
33735         * lib/unistd.in.h (readlink): Declare replacement.
33736         * doc/posix-functions/readlink.texi (readlink): Document this.
33737
33738         symlink: use throughout gnulib
33739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33740         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33741         symlink is not used.
33742         * modules/symlinkat (Depends-on): Add symlink.
33743         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33744         * modules/canonicalize-tests (Depends-on): Likewise.
33745         * modules/lstat-tests (Depends-on): Likewise.
33746         * modules/openat-tests (Depends-on): Likewise.
33747         * modules/remove-tests (Depends-on): Likewise.
33748         * modules/rmdir-tests (Depends-on): Likewise.
33749         * modules/unlink-tests (Depends-on): Likewise.
33750         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33751         * tests/test-canonicalize.c (symlink): Likewise.
33752         * tests/test-fstatat.c (symlink): Likewise.
33753         * tests/test-lstat.c (symlink): Likewise.
33754         * tests/test-remove.c (symlink): Likewise.
33755         * tests/test-rmdir.c (symlink): Likewise.
33756         * tests/test-unlink.c (symlink): Likewise.
33757         * tests/test-unlinkat.c (symlink): Likewise.
33758
33759         symlink: new module, for Solaris 9 bug
33760         * modules/symlink: New file.
33761         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33762         * lib/symlink.c: Likewise.
33763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33764         * modules/unistd (Makefile.am): Substitute them.
33765         * lib/unistd.in.h (symlink): Declare replacement.
33766         * MODULES.html.sh (File system functions): Mention it.
33767         * doc/posix-functions/symlink.texi (symlink): Likewise.
33768         * modules/symlink-tests: New test.
33769         * tests/test-symlink.c: Likewise.
33770
33771 2009-09-23  Bruno Haible  <bruno@clisp.org>
33772
33773         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33774         when needed.
33775         Test case: gnulib-tool --import --with-tests atexit inttypes.
33776         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33777
33778 2009-09-23  Bruno Haible  <bruno@clisp.org>
33779
33780         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33781         subcommand, not in a subshell.
33782
33783 2009-09-22  Eric Blake  <ebb9@byu.net>
33784
33785         unistd: sort replacement declarations
33786         * lib/unistd.in.h: Sort declarations.
33787
33788         open, openat: minor optimization
33789         * lib/open.c (open): If open succeeded, len is non-zero.
33790         * lib/openat.c (rpl_openat): Likewise.
33791
33792         link-follow: ensure correct result
33793         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33794         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33795         distinguish between possible failures.
33796
33797 2009-09-21  Eric Blake  <ebb9@byu.net>
33798
33799         fts: avoid compiler warning
33800         * lib/fts.c (dirent_inode_sort_may_be_useful)
33801         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33802
33803 2009-09-19  Bruno Haible  <bruno@clisp.org>
33804
33805         * lib/progreloc.c (canonicalize_file_name): New declaration.
33806
33807 2009-09-19  Eric Blake  <ebb9@byu.net>
33808
33809         link: fix quoting
33810         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33811
33812         openat: fix openat bugs on Solaris 9
33813         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33814         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33815         * modules/openat (Depends-on): Add open.
33816         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33817         * modules/fcntl-h (Makefile.am): Substitute it.
33818         * lib/fcntl.in.h (openat): Declare replacement.
33819         * doc/posix-functions/openat.texi (openat): Document this.
33820
33821         openat: move fstatat and unlinkat into correct files
33822         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33823         compiled.
33824         * lib/openat.c (fstatat, unlinkat): Move...
33825         * lib/fstatat.c (fstatat): ...into correct files.
33826         * lib/unlinkat.c (unlinkat): Likewise.
33827
33828         openat: fix unlinkat bugs on Solaris 9
33829         * lib/unlinkat.c (unlinkat): New file.
33830         * modules/openat (Depends-on): Add unlink.
33831         (Files): Distribute it.
33832         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33833         trailing slash behavior is broken.
33834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33835         * modules/unistd (Makefile.am): Substitute it.
33836         * lib/unistd.in.h (unlinkat): Declare replacement.
33837         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33838
33839         openat: fix fstatat bugs on Solaris 9
33840         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33841         stat.
33842         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33843
33844         test-unlinkat: enhance test, to expose Solaris 9 bug
33845         * tests/test-unlink.c (main): Factor guts...
33846         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33847         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33848         * tests/test-rmdir.c (main): Adjust caller.
33849         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33850         (unlinker): New helper function.
33851         (rmdirat): Enhance check.
33852         * modules/rmdir-tests (Depends-on): Add stdbool.
33853         * modules/unlink-tests (Depends-on): Likewise.
33854         (Files): Add test-unlink.h.
33855         * modules/openat-tests (Files): Likewise.
33856         (Depends-on): Add unlinkdir.
33857
33858         test-fstatat: new test, to expose Solaris 9 bugs
33859         * tests/test-stat.c (main): Factor guts...
33860         * tests/test-stat.h (test_stat_func): ...into new file.
33861         * tests/test-lstat.c (main): Factor guts...
33862         * tests/test-lstat.h (test_lstat_func): ...into new file.
33863         * tests/test-fstatat.c: New file.
33864         * modules/stat-tests (Files): Add test-stat.h.
33865         * modules/lstat-tests (Files): Add test-lstat.h.
33866         (Depends-on): Add stdbool.
33867         * modules/openat-tests (Depends-on): Add pathmax.
33868         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33869         (Makefile.am): Run new test.
33870
33871         remove: new module, for mingw and Solaris 9 bugs
33872         * modules/remove: New file.
33873         * lib/remove.c: Likewise.
33874         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33876         * modules/stdio (Makefile.am): Use them.
33877         * lib/stdio.in.h (remove): Declare replacement.
33878         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33879         * doc/posix-functions/remove.texi (remove): Likewise.
33880         * modules/remove-tests: New test.
33881         * tests/test-remove.c: Likewise.
33882
33883         unlink: new module, for Solaris 9 bug
33884         * modules/unlink: New file.
33885         * lib/unlink.c: Likewise.
33886         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33888         * modules/unistd (Makefile.am): Use them.
33889         * lib/unistd.in.h (stat): Declare replacement.
33890         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33891         * doc/posix-functions/unlink.texi (unlink): Likewise.
33892         * modules/unlink-tests: New test.
33893         * tests/test-unlink.c: Likewise.
33894
33895         lstat: fix Solaris 9 bug
33896         * lib/lstat.c (lstat): Also check for trailing slash on
33897         non-symlink, non-directories.  Use stat module to simplify logic.
33898         * doc/posix-functions/lstat.texi (lstat): Document it.
33899         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33900         (configure.ac): Check for symlink.
33901         * tests/test-lstat.c (main): Add more tests.
33902
33903         stat: add as dependency to other modules
33904         * modules/chown (Depends-on): Add stat.
33905         * modules/euidaccess (Depends-on): Likewise.
33906         * modules/fchdir (Depends-on): Likewise.
33907         * modules/isdir (Depends-on): Likewise.
33908         * modules/link (Depends-on): Likewise.
33909         * modules/lstat (Depends-on): Likewise.
33910         * modules/mkdir-p (Depends-on): Likewise.
33911         * modules/modechange (Depends-on): Likewise.
33912         * modules/open (Depends-on): Likewise.
33913         * modules/readlink (Depends-on): Likewise.
33914         * modules/same (Depends-on): Likewise.
33915
33916         stat: fix Solaris 9 bug
33917         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33918         slash.
33919         * lib/stat.c (rpl_stat): Work around it.
33920         * doc/posix-functions/stat.texi (stat): Update documentation.
33921
33922         stat: new module, for mingw bug
33923         * modules/stat: New file.
33924         * lib/stat.c: Likewise.
33925         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33926         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33927         * modules/sys_stat (Makefile.am): Use them.
33928         * lib/sys_stat.in.h (stat): Declare replacement.
33929         * lib/openat.c (fstatat): Deal with lstat and stat being function
33930         macros.
33931         * modules/openat (Depends-on): Add inline.
33932         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33933         * doc/posix-functions/stat.texi (stat): Likewise.
33934         * modules/stat-tests: New test.
33935         * tests/test-stat.c: Likewise.
33936
33937 2009-09-19  Jim Meyering  <meyering@redhat.com>
33938
33939         syntax-check: detect unnecessary inclusion of canonicalize.h
33940         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33941
33942 2009-09-19  Eric Blake  <ebb9@byu.net>
33943
33944         canonicalize-lgpl: adjust clients to use correct header
33945         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33946         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33947         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33948         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33949         * lib/progreloc.c (includes): Likewise.
33950
33951 2009-09-19  Jim Meyering  <meyering@redhat.com>
33952
33953         test-posixtm.c: correct a comment
33954         * tests/test-posixtm.c: Correct first-line comment.
33955         Spotted by Eric Blake.
33956
33957 2009-09-16  Jim Meyering  <meyering@redhat.com>
33958
33959         posixtm-tests: make T const-correct; add a test case
33960         * tests/test-posixtm.c (T): Declare const.
33961         Add a test for -(2^31+1).
33962         Remove useless can-succeed-only-in-2002 test.
33963
33964         posixtm-tests: adjust the sole failing test
33965         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33966         expected output matches what mktime now produces.  Cross-checked via
33967         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33968
33969         posixtm: move #ifdef'd tests into a new module
33970         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33971         * tests/test-posixtm.c: ... this new file.
33972         * modules/posixtm-tests: New module.
33973
33974 2009-09-19  Eric Blake  <ebb9@byu.net>
33975
33976         openat: simplify use of at-func.c
33977         * lib/at-func.c (includes): Include prerequisites here, to
33978         simplify requirements on client files.
33979         * lib/openat-priv.h: Add double-inclusion guard.
33980         * lib/faccessat.c (includes): Simplify.
33981         * lib/fchmodat.c (includes): Likewise.
33982         * lib/fchownat.c (includes): Likewise.
33983         * lib/mkdirat.c (includes): Likewise.
33984         * lib/mkfifoat.c (includes): Likewise.
33985         * lib/symlinkat.c (includes): Likewise.
33986
33987         openat: allow return of fd 0
33988         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33989         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33990         unistd-safer.
33991         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33992         <fcntl.h>; this module does not leak fds.
33993         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33994         must be allowed to return 0, leaving openat_safer to add the
33995         safety.
33996         (openat_permissive): Avoid writing to just-opened fd 2 if
33997         restoring the current directory fails.
33998         * lib/openat-die.c (openat_restore_fail): Add comment.
33999         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34000         (save_cwd): Guarantee safe fd, but without use of open_safer.
34001         * tests/test-openat.c: New test.
34002         * modules/openat-tests (Files, Makefile.am): Distribute and build
34003         new file.
34004
34005         relocatable-prog-wrapper: fix build
34006         * modules/relocatable-prog-wrapper (Files): Update name of
34007         canonicalize m4 file, broken on 2009-09-17.
34008         Reported by emad hajjar <aleppos@hotmail.com>.
34009
34010 2009-09-19  Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34013         * lib/safe-alloc.c: Likewise.
34014         Reported by Ian Beckwith <ianb@erislabs.net>.
34015
34016 2009-09-18  Bruno Haible  <bruno@clisp.org>
34017
34018         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34019         Reported by <erobles@sensacd.com.mx>.
34020
34021 2009-09-17  Eric Blake  <ebb9@byu.net>
34022
34023         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34024         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34025         slashes when checking if last component is missing.
34026         * tests/test-canonicalize.c (main): Test this.
34027
34028         canonicalize, canonicalize-lgpl: honor // if distinct from /
34029         * modules/canonicalize (Files): Add double-slash-root.m4.
34030         * modules/canonicalize-lgpl (Files): Likewise.
34031         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34032         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34033         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34034         fallback definition.
34035         (canonicalize_filename_mode): Use it to protect //.
34036         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34037         (__realpath): Likewise.
34038         * tests/test-canonicalize.c (main): Test this.
34039         * tests/test-canonicalize-lgpl.c (main): Likewise.
34040         * modules/canonicalize-tests (Depends-on): Add same-inode.
34041         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34042
34043         canonicalize-lgpl: fix glibc bug with trailing slash
34044         * m4/canonicalize-lgpl.m4: Move contents...
34045         * m4/canonicalize.m4: ...here.
34046         (gl_CANONICALIZE_LGPL): Factor realpath check...
34047         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34048         glibc 2.3.5 bug, fixed 2005-04-27.
34049         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34050         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34051         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34052         * modules/canonicalize-lgpl (Files): Manage file rename.
34053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34054         * modules/stdlib (Makefile.am): Substitute witness.
34055         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34056         is needed.
34057         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34058         replacement is required.
34059         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34060         * doc/glibc-functions/canonicalize_file_name.texi
34061         (canonicalize_file_name): Document this.
34062         * doc/posix-functions/realpath.texi (realpath): Likewise.
34063
34064         canonicalize-lgpl: reject non-directory with trailing slash
34065         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34066         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34067         catches failures in glibc 2.3.5.
34068         * tests/test-canonicalize.c (main): Likewise.
34069
34070         canonicalize-lgpl: use native realpath if it works
34071         * lib/canonicalize-lgpl.c (realpath): Guard with
34072         FUNC_REALPATH_WORKS.
34073         * lib/stdlib.in.h (realpath): Make declaration optional based on
34074         HAVE_REALPATH.
34075         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34076         native realpath works.
34077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34078         * modules/stdlib (Makefile.am): Substitute witness.
34079
34080         canonicalize, canonicalize-lgpl: use <stdlib.h>
34081         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34082         (Include): Mention <stdlib.h>.
34083         (configure.ac): Mention functions we provide.
34084         * modules/canonicalize (configure.ac): Likewise.
34085         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34086         realpath if canonicalize_file_name is missing.
34087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34088         * modules/stdlib (Makefile.am): Substitute witnesses.
34089         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34090         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34091         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34092         * NEWS: Document this.
34093         * doc/glibc-functions/canonicalize_file_name.texi
34094         (canonicalize_file_name): Likewise.
34095         * doc/posix-functions/realpath.texi (realpath): Likewise.
34096         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34097
34098         test-canonicalize: consolidate into single C program
34099         * tests/test-canonicalize.sh: Delete; move setup into...
34100         * tests/test-canonicalize.c (main): ...the program, making it
34101         easier to run in debugger.  Add some tests.
34102         * modules/canonicalize-tests (Files): Remove unused file.
34103         (Depends-on): Add progname.
34104         (configure.ac, Makefile.am): Simplify.
34105
34106         test-canonicalize-lgpl: consolidate into single C program
34107         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34108         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34109         easier to run in debugger.  Add some tests.
34110         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34111         (configure.ac, Makefile.am): Simplify.
34112
34113         canonicalize: avoid resolvepath
34114         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34115         unnecessary checks.
34116         * lib/canonicalize.c (includes): Simplify.
34117         (canonicalize_file_name): Drop resolvepath implementation.
34118         * modules/canonicalize (Depends-on): Drop filenamecat.
34119
34120         canonicalize: don't lose errno
34121         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34122         over calls to free.
34123
34124         canonicalize: simplify errno handling
34125         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34126         assignment.
34127
34128         canonicalize, canonicalize-lgpl: update module dependencies
34129         * modules/canonicalize (Depends-on): Add extensions, lstat,
34130         pathmax, stdlib.
34131         (Files): Drop pathmax.h.
34132         (configure.ac): Adjust macro name.
34133         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34134         lstat, stdlib, sys_stat.
34135         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34136         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34137         extensions.
34138         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34139         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34140         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34141         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34142         declaration, if available.
34143         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34144         we can rely on the readlink module.
34145         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34146         (includes): Use <unistd.h> unconditionally.
34147
34148 2009-09-17  Eric Blake  <ebb9@byu.net>
34149
34150         maint: make Include sections of modules consistent
34151         * modules/alloca: Use only header name; no need to list #include.
34152         * modules/alloca-opt: Likewise.
34153         * modules/arpa_inet: Likewise.
34154         * modules/canon-host: Likewise.
34155         * modules/configmake: Likewise.
34156         * modules/dirent: Likewise.
34157         * modules/eealloc: Likewise.
34158         * modules/environ: Likewise.
34159         * modules/fchdir: Likewise.
34160         * modules/fcntl: Likewise.
34161         * modules/fcntl-h: Likewise.
34162         * modules/gethrxtime: Likewise.
34163         * modules/gettime: Likewise.
34164         * modules/ignore-value: Likewise.
34165         * modules/inet_ntop: Likewise.
34166         * modules/inet_pton: Likewise.
34167         * modules/inttypes: Likewise.
34168         * modules/isnand-nolibm: Likewise.
34169         * modules/isnanf-nolibm: Likewise.
34170         * modules/mbchar: Likewise.
34171         * modules/mbfile: Likewise.
34172         * modules/mbiter: Likewise.
34173         * modules/mbuiter: Likewise.
34174         * modules/netdb: Likewise.
34175         * modules/netinet_in: Likewise.
34176         * modules/nproc: Likewise.
34177         * modules/pagealign_alloc: Likewise.
34178         * modules/poll: Likewise.
34179         * modules/printf-frexp: Likewise.
34180         * modules/pthread: Likewise.
34181         * modules/putenv: Likewise.
34182         * modules/random_r: Likewise.
34183         * modules/relocatable-prog: Likewise.
34184         * modules/search: Likewise.
34185         * modules/select: Likewise.
34186         * modules/selinux-h: Likewise.
34187         * modules/settime: Likewise.
34188         * modules/signal: Likewise.
34189         * modules/size_max: Likewise.
34190         * modules/socklen: Likewise.
34191         * modules/ssize_t: Likewise.
34192         * modules/stdarg: Likewise.
34193         * modules/stdbool: Likewise.
34194         * modules/stddef: Likewise.
34195         * modules/stdint: Likewise.
34196         * modules/stdio: Likewise.
34197         * modules/stdlib: Likewise.
34198         * modules/string: Likewise.
34199         * modules/strings: Likewise.
34200         * modules/sys_file: Likewise.
34201         * modules/sys_ioctl: Likewise.
34202         * modules/sys_select: Likewise.
34203         * modules/sys_socket: Likewise.
34204         * modules/sys_stat: Likewise.
34205         * modules/sys_time: Likewise.
34206         * modules/sys_times: Likewise.
34207         * modules/sys_utsname: Likewise.
34208         * modules/sys_wait: Likewise.
34209         * modules/sysexits: Likewise.
34210         * modules/time: Likewise.
34211         * modules/times: Likewise.
34212         * modules/tmpfile: Likewise.
34213         * modules/trim: Likewise.
34214         * modules/unistd: Likewise.
34215         * modules/wchar: Likewise.
34216         * modules/wctype: Likewise.
34217
34218 2009-09-17  Bruno Haible  <bruno@clisp.org>
34219
34220         Make getdate.y compile on QNX and NetBSD 5 / i386.
34221         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34222         TIME_T_FITS_IN_LONG_INT.
34223         * lib/getdate.y (long_time_t): New type.
34224         (relative_time): Change type of 'seconds' field to long_time_t.
34225         (get_date): Update types of local variables. Check against overflow
34226         during conversion from long_time_t to time_t.
34227         Reported by Matt Kraai <kraai@ftbfs.org>
34228         and Hasso Tepper <hasso@netbsd.org>.
34229
34230 2009-09-17  Bruno Haible  <bruno@clisp.org>
34231
34232         * modules/COPYING: Update copyright years.
34233         * modules/README: Likeiwse.
34234         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34235         Reported by Ian Beckwith <ianb@erislabs.net>.
34236
34237 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34238
34239         * users.txt: Update references for gnuit package.
34240
34241 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34242
34243         * m4/getdelim.m4: Fix typo in copyright line.
34244
34245 2009-09-17  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/atoll.c: Use the standard header with GPL copyright.
34248         * lib/argz.in.h: Likewise.
34249         * lib/glob.c: Likewise.
34250         * lib/glob-libc.h: Likewise.
34251         * lib/random_r.c: Likewise.
34252         * lib/siglist.h: Likewise.
34253         * lib/strsignal.c: Likewise.
34254         Reported by Ian Beckwith <ianb@erislabs.net>.
34255
34256 2009-09-17  Eric Blake  <ebb9@byu.net>
34257
34258         rmdir: ensure correct dependency order
34259         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34260
34261 2009-09-17  Bruno Haible  <bruno@clisp.org>
34262
34263         Disable assertion that fails on NetBSD 5 / i386.
34264         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34265         Reported by Sam Steingold <sds@gnu.org>
34266         and Hasso Tepper <hasso@netbsd.org>.
34267
34268 2009-09-16  Eric Blake  <ebb9@byu.net>
34269
34270         unlinkdir: port to mingw
34271         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34272         on which no one can unlink a directory.
34273
34274         stdlib: sort witness names
34275         * modules/stdlib (Makefile.am): Sort replacements.
34276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34277         * lib/stdlib.in.h: Likewise.
34278
34279         parse-duration-tests: avoid link failure
34280         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34281         LIBINTL.
34282         Reported by Tom G. Christensen.
34283
34284         openat-tests: ensure unlinkat behaves like rmdir
34285         * tests/test-rmdir.c (main): Factor guts...
34286         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34287         * modules/rmdir-tests (Files): Ship new file.
34288         * modules/openat-tests: New test.
34289         * tests/test-unlinkat.c: Likewise.
34290
34291         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34292         * modules/rmdir-errno (Status, Notice): Now obsolete.
34293
34294         rmdir: work around cygwin 1.5.x and mingw bugs
34295         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34296         * lib/rmdir.c (rmdir): Work around it.
34297         * modules/rmdir (Status, Notice): No longer obsolete.
34298         (Files): Add dos.m4.
34299         (Depends-on): Add unistd.
34300         (configure.ac): Set witnesses.
34301         (License): Relax to LGPLv2+.
34302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34303         * modules/unistd (Makefile.am): Substitute witnesses.
34304         * lib/unistd.in.h (rmdir): Declare replacement.
34305         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34306         * modules/rmdir-tests: New tests.
34307         * tests/test-rmdir.c: Likewise.
34308
34309 2009-09-15  Eric Blake  <ebb9@byu.net>
34310
34311         fchdir: improve use of replacement functions
34312         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34314         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34315         REPLACE_CLOSEDIR.
34316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34317         * modules/sys_stat (Makefile.am): Substitute correct witness.
34318         * modules/dirent (Makefile.am): Likewise.
34319         * modules/unistd (Makefile.am): Likewise.
34320         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34321         * lib/unistd.in.h (dup): Likewise.
34322         * lib/sys_stat.in.h (fstat): Likewise.
34323
34324         maint: ignore gnulib-tool temp files
34325         * .gitignore: Ignore files created during gnulib-tool --test.
34326
34327 2009-09-13  Jim Meyering  <meyering@redhat.com>
34328
34329         posixtm: don't reject a time that specify "60" as the number of seconds
34330         * lib/posixtm.c (posixtime): The code to reject invalid dates
34331         would also reject a time specified with the .60 suffix.
34332         But POSIX allows that, in order to accommodate leap seconds.
34333         So don't reject it.
34334         (main): Adjust tests accordingly.
34335         * modules/posixtm (Depends-on): Add stpcpy.
34336
34337 2009-09-11  Jim Meyering  <meyering@redhat.com>
34338
34339         announce-gen: include [$release_type] in emitted Subject:
34340         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34341         e.g., [stable] in the emitted Subject: line.
34342
34343 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34344
34345         Remove obsolete macros from several modules.
34346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34347         obsolete Autoconf macros with their modern counterparts.
34348         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34349         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34350         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34351         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34352         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34353         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34355         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34356         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34357         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34358         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34359         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34360         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34361         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34362         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34363         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34364         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34365         * m4/time_r.m4 (gl_TIME_R): Likewise.
34366         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34367         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34368         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34369
34370         Fix copyright header in build-aux scripts.
34371         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34372         recommendation.
34373         * build-aux/ncftpput-ftp: Likewise.
34374         * build-aux/update-copyright: Likewise.
34375
34376 2009-09-09  Eric Blake  <ebb9@byu.net>
34377
34378         test-link: allow Linux choice of errno
34379         * tests/test-link.c (main): Relax test for alternate error.
34380
34381         strndup: fix improper m4 caching
34382         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34383         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34384         (gl_PREREQ_STRNDUP): Delete.
34385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34386         * modules/string (Makefile.am): Substitute it.
34387         * lib/string.in.h (strndup): Modernize prototype.
34388
34389         getcwd: port to mingw
34390         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34391         different from the POSIX assumptions made throughout the getcwd
34392         module; fortunately, the mingw getcwd does not need replacement.
34393         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34394         * modules/getcwd-tests: New test.
34395         * tests/test-getcwd.c: Likewise.
34396
34397         link: fix platform bugs
34398         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34399         * lib/link.c (link): Work around them.  Fix related mingw bug.
34400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34401         * modules/unistd (Makefile.am): Substitute it.
34402         * lib/unistd.in.h (link): Declare replacement.
34403         * doc/posix-functions/link.texi (link): Document this.
34404         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34405
34406         test-link: consolidate into single C program, test more cases
34407         * tests/test-link.sh: Delete.
34408         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34409         at least Cygwin and Solaris.
34410         * modules/link-tests (Files): Remove unused file.
34411         (Depends-on): Add errno, sys_stat.
34412         (Makefile.am): Simplify.
34413
34414 2009-09-08  Bruno Haible  <bruno@clisp.org>
34415
34416         Work around towlower, towupper bug on mingw.
34417         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34418         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34419         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34420         * doc/posix-functions/towupper.texi: Likewise.
34421         Reported by Eric Blake.
34422
34423 2009-09-08  Jim Meyering  <meyering@redhat.com>
34424
34425         build: don't try to run autoheader if we don't use it
34426         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34427         is not used in configure.ac.
34428
34429 2009-09-08  Eric Blake  <ebb9@byu.net>
34430
34431         euidaccess: fix compilation error
34432         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34433
34434         rawmemchr: relax license
34435         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34436         okay.
34437         Reported by Jim Meyering.
34438
34439         mkfifoat: new module
34440         * modules/mkfifoat: New file.
34441         * lib/mkfifoat.c: Likewise.
34442         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34444         * modules/sys_stat (Makefile.am): Use them.
34445         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34446         * MODULES.html.sh (File system functions): Mention module.
34447         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34448         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34449         * modules/mkfifoat-tests: New test.
34450         * tests/test-mkfifoat.c: Likewise.
34451
34452         strchrnul: relax license
34453         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34454         okay.
34455         Reported by Jim Meyering.
34456
34457 2009-09-08  Eric Blake  <ebb9@byu.net>
34458
34459         fstatat: fix compilation on Solaris
34460         * lib/fstatat.c (includes): Add fcntl.h.
34461         Reported by Pádraig Brady.
34462
34463 2009-09-07  Eric Blake  <ebb9@byu.net>
34464
34465         rename: modernize replacement
34466         * modules/rename (Depends-on): Add stdio.
34467         (configure.ac): Declare witness.
34468         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34469         stdio take care of replacement.
34470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34471         * modules/stdio (Makefile.am): Substitute them.
34472         * lib/stdio.in.h (rename): Declare replacement.
34473         * lib/rename.c (includes): Allow cross-compilation to non-windows
34474         machines.
34475         * doc/posix-functions/rename.texi (rename): Improve
34476         documentation.
34477
34478         stdio: sort witness names
34479         * modules/stdio (Makefile.am): Sort replacements.
34480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34481         * lib/stdio.in.h: Likewise.
34482
34483         getcwd: minor cleanups
34484         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34485         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34486
34487         openat: provide more convenience names
34488         * modules/faccessat (configure.ac): Add C witness.
34489         * lib/unistd.in.h (readlinkat): Fix typo.
34490         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34491         convenience wrappers.
34492         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34493         wrappers in syntax checks.
34494
34495 2009-09-06  Eric Blake  <ebb9@byu.net>
34496
34497         doc: fix comments in recent patches
34498         * lib/faccessat.c: Mention correct function.
34499         * lib/fchmodat.c: Likewise.
34500         * lib/fchownat.c: Likewise.
34501         * lib/symlinkat.c: Likewise.
34502         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34503         constants.
34504
34505         faccessat, symlinkat: continue cleanup of previous patch
34506         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34507         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34508         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34510         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34511         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34512         set.
34513
34514 2009-09-06  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34517         (fstatat): Declare if GNULIB_FSTATAT is set.
34518         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34519         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34520         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34521         * modules/fcntl-h (Files): Remove m4/openat.m4.
34522         * modules/sys_stat (Files): Remove m4/openat.m4.
34523         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34524         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34525         * modules/unistd (Files): Remove m4/openat.m4.
34526         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34527         GNULIB_OPENAT.
34528         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34529         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34531         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34532         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34533         gl_OPENAT_DEFAULTS.
34534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34535         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34536         Don't require gl_OPENAT_DEFAULTS.
34537         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34538         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34539         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34540         (gl_OPENAT_DEFAULTS): Remove macro.
34541
34542 2009-09-06  Bruno Haible  <bruno@clisp.org>
34543
34544         * modules/openat (configure.ac): Remove unneeded witness.
34545
34546 2009-09-06  Bruno Haible  <bruno@clisp.org>
34547
34548         Set errno to ENOSYS when a function is entirely unsupported.
34549         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34550         EOPNOTSUPP.
34551         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34552         * modules/chown (Depends-on): Remove errno.
34553
34554 2009-09-06  Bruno Haible  <bruno@clisp.org>
34555
34556         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34557
34558 2009-09-06  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34561
34562 2009-09-06  Ben Pfaff  <blp@gnu.org>
34563             Bruno Haible  <bruno@clisp.org>
34564
34565         Work around a glibc bug in strtok_r.
34566         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34567         Undefine if UNDEFINE_STRTOK_R is set.
34568         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34570         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34571         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34572         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34573         UNDEFINE_STRTOK_R.
34574         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34575
34576 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34577
34578         exclude: minor fix
34579         * lib/exclude.c: Include wctype.h
34580
34581 2009-09-06  Akim Demaille  <demaille@gostai.com>
34582
34583         bootstrap: improve error message
34584         * build-aux/bootstrap (find_tool): Upon failure, report the list
34585         of candidates.
34586         Honor the initial value of the envvar.
34587
34588 2009-09-05  Eric Blake  <ebb9@byu.net>
34589
34590         symlinkat: new module
34591         * modules/symlinkat: New file.
34592         * lib/symlinkat.c: Likewise.
34593         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34595         * modules/unistd (Makefile.am): Use them.
34596         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34597         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34598         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34599         * MODULES.html.sh (File system functions): Mention module.
34600         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34601         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34602         * modules/symlinkat-tests: New test.
34603         * tests/test-symlinkat.c: Likewise.
34604
34605         test-openat-safer: add more checks
34606         * tests/test-openat-safer.c (main): Check more code paths.
34607
34608 2009-09-05  Jim Meyering  <meyering@redhat.com>
34609
34610         syntax-check: detect unnecessary inclusion of openat.h
34611         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34612
34613 2009-09-05  Bruno Haible  <bruno@clisp.org>
34614
34615         Support towlower, towupper.
34616         * doc/posix-functions/towlower.texi: Mention module wctype.
34617         * doc/posix-functions/towupper.texi: Likewise.
34618         * lib/wctype.in.h (towlower, towupper): New functions.
34619         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34620         (ASSERT): New macro.
34621         (e): New variable.
34622         (main): Test also towlower, towupper. Test WEOF argument.
34623         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34624
34625 2009-09-05  Bruno Haible  <bruno@clisp.org>
34626
34627         Fix conversion behaviour when the input is invalid.
34628         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34629         mark occurring in first pass of indirect conversion.
34630         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34631         input.
34632         Found by clang's static analyzer.
34633
34634 2009-09-05  Bruno Haible  <bruno@clisp.org>
34635
34636         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34637         where direct conversion is possible.
34638
34639 2009-09-04  Eric Blake  <ebb9@byu.net>
34640
34641         openat: fail with ENOENT on empty name
34642         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34643         buffer.
34644
34645         link-follow: fix logic bug in prior patch
34646         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34647         reversed sense of yes and no in prior patch.  Avoid confusing
34648         compilation failure with desired semantics.
34649
34650         link-follow: accomodate mingw and cross-compilation
34651         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34652         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34653         cross-compilation results to -1, to make linkat easier to
34654         implement when cross-compiling.  Trivially support mingw.
34655         * modules/link-follow (configure.ac): Call new name.
34656         * NEWS: Mention this.
34657
34658 2009-09-03  Eric Blake  <ebb9@byu.net>
34659
34660         faccessat: compile replacement
34661         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34662         needed.
34663
34664         fts: fix compilation error
34665         * lib/fts.c (includes): Re-add "openat.h", for
34666         openat_needs_fchdir.
34667
34668         faccessat: new module
34669         * modules/faccessat: New file.
34670         * lib/faccessat.c: Likewise.
34671         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34673         * modules/unistd (Makefile.am): Use it.
34674         * lib/unistd.in.h (faccessat): Declare it.
34675         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34676         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34677         * MODULES.html.sh (File system functions): Mention it.
34678         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34679         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34680
34681         euidaccess: prefer POSIX over non-standard implementation
34682         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34683         * lib/euidaccess.c (euidaccess): Use it if available.
34684
34685         openat: make template easier to use
34686         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34687         AT_FUNC_F2 to be undefined.
34688         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34689         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34690         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34691         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34692         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34693         Likewise.
34694         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34695         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34696         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34697         Likewise.
34698
34699         openat: declare in POSIX headers
34700         * NEWS: Mention this.
34701         * modules/openat (configure.ac): Declare witnesses.
34702         (Depends-on): Add fcntl-h, sys_stat, unistd.
34703         (Include): Mention correct headers.
34704         * modules/fcntl-h (Depends-on): Add link-warning.
34705         (Files): Add openat.m4.
34706         (Makefile.am): Substitute witnesses.
34707         * modules/sys_stat (Files, Makefile.am): Likewise.
34708         * modules/unistd (Files, Makefile.am): Likewise.
34709         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34710         (gl_OPENAT_DEFAULTS): New macro.
34711         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34714         (SYS_STAT_H): Remove unused variable.
34715         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34716         * lib/fcntl--.h (includes): Remove unneeded header.
34717         * lib/openat-safer.c (includes): Likewise.
34718         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34719         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34720         appropriate headers.
34721         (__OPENAT_PREFIX): Delete.
34722         * lib/fcntl.in.h (openat): Provide declaration.
34723         (AT_FDCWD): Fix Solaris bug.
34724         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34725         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34726         * lib/fchmodat.c (includes):  Adjust to find declaration.
34727         * lib/fchownat.c (includes): Likewise.
34728         * lib/mkdirat.c (includes): Likewise.
34729         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34730         still visible.
34731
34732 2009-09-02  Eric Blake  <ebb9@byu.net>
34733
34734         errno: use consistently
34735         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34736         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34737         * lib/canonicalize.c (ELOOP): Likewise.
34738         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34739         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34740         * lib/lchown.c (EOPNOTSUPP): Likewise.
34741         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34742         * lib/savewd.c (ESTALE): Likewise.
34743         * lib/settime.c (ENOSYS): Likewise.
34744         * lib/utimens.c (ENOSYS): Likewise.
34745         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34746         * lib/chdir-safer.c (ELOOP): Likewise.
34747         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34748         * modules/c-stack (Depends-on): Add errno.
34749         * modules/canonicalize (Depends-on): Likewise.
34750         * modules/chdir-safer (Depends-on): Likewise.
34751         * modules/fdopendir (Depends-on): Likewise.
34752         * modules/inet_ntop (Depends-on): Likewise.
34753         * modules/inet_pton (Depends-on): Likewise.
34754         * modules/lchown (Depends-on): Likewise.
34755         * modules/openat (Depends-on): Likewise.
34756         * modules/savewd (Depends-on): Likewise.
34757         * modules/settime (Depends-on): Likewise.
34758         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34759
34760         fts: avoid leaking fds
34761         * modules/fts (Depends-on): Add cloexec.
34762         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34763         flag.
34764
34765         fts: make directory fds more robust
34766         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34767         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34768
34769         backupfile, chdir-long, fts, savedir: make safer
34770         * lib/backupfile.c (includes): Use "dirent--.h", since
34771         numbered_backup can write to stderr during readdir.
34772         * lib/savedir.c (includes): Likewise.
34773         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34774         emulation can write to stderr on failure.
34775         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34776         * lib/getcwd.c: Document why opendir_safer is unused.
34777         * lib/glob.c: Likewise.
34778         * lib/scandir.c: Likewise.
34779         * lib/openat-proc.c: Likewise, for open_safer.
34780         * modules/backupfile (Depends-on): Add dirent-safer.
34781         * modules/savedir (Depends-on): Likewise.
34782         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34783         * modules/chdir-long (Depends-on): Add openat-safer.
34784
34785         openat-safer: new module
34786         * modules/openat-safer: New file.
34787         * lib/openat-safer.c: Likewise.
34788         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34789         * lib/fcntl-safer.h (openat_safer): Declare.
34790         * lib/fcntl--.h (openat): Override.
34791         * MODULES.html.sh (File descriptor based I/O): Mention it.
34792         * lib/openat.h: Add double-inclusion guards.
34793         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34794         "fcntl--.h", so we can implement openat.
34795         * modules/openat-safer-tests: New test.
34796         * tests/test-openat-safer.c: New file.
34797
34798         dirent-safer: new module
34799         * modules/dirent-safer: New file.
34800         * lib/dirent--.h: Likewise.
34801         * lib/dirent-safer.h: Likewise.
34802         * lib/opendir-safer.c: Likewise.
34803         * m4/dirent-safer.m4: Likewise.
34804         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34805         * modules/dirent-safer-tests: New test.
34806         * tests/test-dirent-safer.c: New file.
34807         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34808
34809         fdopendir: optimize on mingw
34810         * lib/unistd.in.h (_gl_directory_name): New prototype.
34811         * lib/fchdir.c (_gl_directory_name): Implement it.
34812         (fchdir): Use it to simplify implementation.
34813         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34814         fchdir, when available, to avoid calling [f]chdir().
34815
34816         fdopendir: split into its own module
34817         * lib/openat.c (fdopendir): Move...
34818         * lib/fdopendir.c: ...into new file.
34819         * modules/fdopendir: New module.
34820         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34821         * modules/openat (Depends-on): Add fdopendir.
34822         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34823         fdopendir here.
34824         * modules/savedir (Depends-on): Only need fdopendir, not full
34825         openat.
34826         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34827         * lib/openat.h (fdopendir): Drop prototype.
34828         * lib/dirent.in.h (fdopendir): Provide prototype.
34829         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34830         * modules/dirent (Makefile.am): Substitute them.
34831         * MODULES.html.sh (File system functions): Mention it.
34832         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34833         * modules/fdopendir-tests: New file.
34834         * tests/test-fdopendir.c: Likewise.
34835
34836         fchdir: use more consistent macro convention
34837         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34838         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34839         REPLACE_FCHDIR, rather than relying on config.h macros.
34840         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34841         inside a single make-time REPLACE_FCHDIR block, rather than using
34842         the config.h FCHDIR_REPLACEMENT.
34843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34844         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34845         Manage fstat replacement.
34846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34847         REPLACE_FCHDIR.
34848         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34849         (Makefile.am): Substitute REPLACE_FCHDIR.
34850         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34851         FCHDIR_REPLACEMENT.
34852         * lib/dup-safer.c (dup_safer): Likewise.
34853         * lib/dup2.c (rpl_dup2): Likewise.
34854         * lib/dup3.c (rpl_dup3): Likewise.
34855         * lib/open.c (rpl_open): Likewise.
34856
34857         fchdir: simplify error handling, and support dup3
34858         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34859         stdbool, malloc-posix, realloc-posix.
34860         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34861         (ensure_dirs_slot): Return false on allocation failure.
34862         (rpl_dup2): Delete.
34863         (_gl_register_dup): New function.
34864         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34865         (_gl_register_fd): Close fd on allocation failure.
34866         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34867         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34868         prototype.
34869         (rpl_dup2_fchdir): Delete prototype.
34870         * lib/open.c (open): Update caller.
34871         * lib/dup2.c (dup2): Track fchdir metadata.
34872         * lib/dup3.c (dup3): Likewise.
34873         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34875
34876 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34877
34878         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34879         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34880         don't pass arguments to AC_OUTPUT.
34881
34882 2009-09-02  Bruno Haible  <bruno@clisp.org>
34883
34884         * modules/mkdtemp (License): Relicense under LGPLv2+.
34885         Reported by Paolo Bonzini.
34886
34887 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34888
34889         Replace uses of obsolete autoconf macros in Jim's modules.
34890         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34891         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34892         can evoke a warning from autoconf when run with -Wobsolete
34893         enabled.  They were declared obsolete for good reasons (see
34894         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34895         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34896         should not continue using the deprecated macros.
34897         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34898         obsolete Autoconf macros with modern counterparts.
34899         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34900         * m4/dos.m4 (gl_AC_DOS): Likewise.
34901         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34902         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34903         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34904         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34905         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34906         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34907         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34908         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34909         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34910         Likewise.
34911         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34912         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34913         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34914         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34915         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34916         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34917
34918 2009-09-01  Eric Blake  <ebb9@byu.net>
34919
34920         fchdir: fix off-by-one bug in previous patch
34921         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34922         (_gl_unregister_fd): Delete useless if.
34923
34924 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34925
34926         maint.mk: sort the list of syntax-check rules
34927         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34928         easier to get a sense of progress when the rules are run sequentially
34929         and take a long time.
34930
34931 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34932
34933         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34934         * modules/netinet_in: Likewise.
34935         * modules/sys_file: Likewise.
34936         * modules/sys_ioctl: Likewise.
34937         * modules/sys_select: Likewise.
34938         * modules/sys_socket: Likewise.
34939         * modules/sys_stat: Likewise.
34940         * modules/sys_time: Likewise.
34941         * modules/sys_times: Likewise.
34942         * modules/sys_utsname: Likewise.
34943         * modules/sys_wait: Likewise.
34944
34945 2009-09-01  Jim Meyering  <meyering@redhat.com>
34946
34947         fts: help ensure that return values are not ignored
34948         * lib/fts_.h (__GNUC_PREREQ): Define.
34949         (__attribute_warn_unused_result__): Define.
34950         (fts_children, fts_close, fts_open, fts_read): Declare with
34951         __attribute_warn_unused_result__.
34952
34953         fts: fts_close now fails also when closing a dir file descriptor fails
34954         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34955         and propagate to caller, along with errno.
34956
34957         announce-gen: correct formatting in --help output
34958         * build-aux/announce-gen (usage): Move the one-line description in
34959         --help output "up", to where it belongs, just after Usage:.
34960
34961 2009-08-31  Eric Blake  <ebb9@byu.net>
34962
34963         fchdir: port to mingw
34964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34965         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34966         opened, then use a substitute.
34967         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34968         replacement.
34969         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34970         (_gl_register_fd): No need to check stat if open already filters
34971         all directories.
34972         (fchdir): Fix error condition to match POSIX.
34973         * modules/fchdir (Depends-on): Add sys_stat.
34974         * doc/posix-functions/open.texi (open): Document the limitation.
34975         * modules/fchdir-tests: New file.
34976         * tests/test-fchdir.c: Likewise.
34977
34978         canonicalize: allow cross-testing from cygwin to mingw
34979         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34980         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34981         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34982         Likewise.
34983         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34984         target does not support symlinks.
34985         * tests/test-canonicalize-lgpl.sh: Likewise.
34986
34987         chown: avoid compilation warning on mingw
34988         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34989         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34990         mingw.
34991         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34992         * modules/chown (Depends-on): Add errno.
34993
34994 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34995
34996         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34997         command.
34998
34999 2009-08-31  Jim Meyering  <meyering@redhat.com>
35000
35001         canonicalize: remove useless initialization
35002         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35003         initialization of local, "end".
35004
35005 2009-08-30  Bruno Haible  <bruno@clisp.org>
35006
35007         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35008         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35009         ENOSYS.
35010
35011 2009-08-30  Bruno Haible  <bruno@clisp.org>
35012
35013         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35014         /usr/xpg4/bin/tr when it exists.
35015         * tests/test-pipe-filter-gi1.sh: Likewise.
35016
35017 2009-08-30  Bruno Haible  <bruno@clisp.org>
35018
35019         Work around deficient /usr/bin/id program on Solaris.
35020         * tests/test-file-has-acl.sh (ID): New variable.
35021         * tests/test-set-mode-acl.sh (ID): Likewise.
35022         * tests/test-copy-acl.sh (ID): Likewise.
35023         * tests/test-copy-file.sh (ID): Likewise.
35024
35025 2009-08-30  Bruno Haible  <bruno@clisp.org>
35026
35027         New module 'xstriconveh'.
35028         * lib/xstriconveh.h: New file.
35029         * lib/xstriconveh.c: New file.
35030         * modules/xstriconveh: New file.
35031
35032 2009-08-30  Bruno Haible  <bruno@clisp.org>
35033
35034         Make it easier to use mem_cd_iconveh.
35035         * lib/striconveh.h (iconveh_t): New type.
35036         (iconveh_open, iconveh_close): New declarations.
35037         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35038         with a single 'const iconveh_t *' argument.
35039         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35040         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35041         with a single 'const iconveh_t *' argument.
35042         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35043         * tests/test-striconveh.c (main): Update.
35044         * NEWS: Mention the change.
35045
35046 2009-08-30  Bruno Haible  <bruno@clisp.org>
35047
35048         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35049         problem.
35050
35051 2009-08-30  Bruno Haible  <bruno@clisp.org>
35052
35053         Work around iconv_open problem on Solaris.
35054         * lib/iconv_open-solaris.gperf: New file.
35055         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35057         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35058         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35059         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35060         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35061
35062 2009-08-29  Jim Meyering  <meyering@redhat.com>
35063
35064         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35065         * top/maint.mk (cvs-check): Remove target; it was just an alias
35066         to the better-named vc-diff-check.
35067         (maintainer-distcheck): Remove rule.  It was used only from
35068         the (alpha/beta/major) target, and all of its commands but one
35069         were coreutils-specific.
35070         (vc-dist): Remove rule.
35071         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35072         Run vc-diff-check, not vc-dist.
35073         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35074
35075 2009-08-27  Bruno Haible  <bruno@clisp.org>
35076
35077         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35078         of 0.
35079
35080 2009-08-27  Bruno Haible  <bruno@clisp.org>
35081
35082         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35083         compilers.
35084         * doc/func.texi: Document the SunPRO C bug.
35085
35086 2009-08-27  Bruno Haible  <bruno@clisp.org>
35087
35088         Fix link error on Solaris.
35089         * tests/test-parse-duration.c (xstrdup): Remove function.
35090
35091 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35092
35093         ignore-value: handle pointer types, too
35094         * lib/ignore-value.h (__attribute__): Remove definition.
35095         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35096         of a more concise and more-often effective "(void) i" statement.
35097         (ignore_ptr): New function to suppress warnings from functions that
35098         return pointers, and to make it explicit that one function doesn't
35099         handle all cases.
35100
35101 2009-08-25  Bruno Haible  <bruno@clisp.org>
35102
35103         dup2: work around a Linux bug.
35104         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35105         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35106         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35107         Reported by Simon Josefsson.
35108
35109 2009-08-25  Jim Meyering  <meyering@redhat.com>
35110
35111         libguestfs uses gnulib
35112         * users.txt: Add libguestfs.
35113
35114 2009-08-24  Eric Blake  <ebb9@byu.net>
35115
35116         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35117         * lib/pipe2.c (includes): Add binary-io.h.
35118         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35119
35120 2009-08-24  Bruno Haible  <bruno@clisp.org>
35121
35122         Tolerate declared but missing accept4 syscall.
35123         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35124         available.
35125         * lib/sys_socket.in.h (accept4): If the function is already present,
35126         override it.
35127         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35128         * modules/accept4 (Makefile.am): Compile accept4.c always.
35129         Reported by Paolo Bonzini and Eric Blake.
35130
35131 2009-08-23  Bruno Haible  <bruno@clisp.org>
35132
35133         New module 'accept4'.
35134         * lib/sys_socket.in.h (accept4): New declaration.
35135         * lib/accept4.c: New file.
35136         * m4/accept4.m4: New file.
35137         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35138         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35139         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35140         HAVE_ACCEPT4.
35141         * modules/accept4: New file.
35142         * doc/glibc-functions/accept4.texi: Mention the new module.
35143
35144 2009-08-24  Jim Meyering  <meyering@redhat.com>
35145
35146         progname: also set global program_invocation_name, when possible
35147         Before this change, a libtool-enabled program that calls glibc's
35148         error function would report the program name as
35149         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35150         * modules/progname (configure.ac): Check for a declaration of
35151         program_invocation_name.
35152         * lib/progname.c:  Include <errno.h>.
35153         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35154         Set program_invocation_name.
35155
35156 2009-08-23  Bruno Haible  <bruno@clisp.org>
35157
35158         * lib/dup3.c: Include <string.h>.
35159
35160 2009-08-23  Bruno Haible  <bruno@clisp.org>
35161
35162         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35163         * lib/pipe2.c (pipe2): Likewise.
35164         Suggested by Eric Blake.
35165
35166 2009-08-23  Bruno Haible  <bruno@clisp.org>
35167
35168         Tolerate declared but missing dup3 syscall.
35169         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35170         * lib/unistd.in.h (dup3): If the function is already present,
35171         override it.
35172         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35173         * modules/dup3 (Makefile.am): Compile dup3.c always.
35174         Reported by Paolo Bonzini.
35175
35176 2009-08-23  Bruno Haible  <bruno@clisp.org>
35177
35178         Tolerate declared but missing pipe2 syscall.
35179         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35180         available.
35181         * lib/unistd.in.h (pipe2): If the function is already present,
35182         override it.
35183         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35184         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35185         Reported by Paolo Bonzini.
35186
35187 2009-08-23  Bruno Haible  <bruno@clisp.org>
35188
35189         * lib/pipe2.c (pipe2): Move #ifs inside function.
35190
35191 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35192
35193         quotearg: document limitations of quote_these_too
35194         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35195         those limitations are created.
35196         * lib/quotearg.h (set_char_quoting): Document that digits and
35197         letters that are special after backslash are not permitted.
35198         (quotearg_char): Cross-reference set_char_quoting documentation.
35199
35200 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35201
35202         quotearg: implement custom_quoting_style
35203         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35204         right_quote fields.
35205         (set_custom_quoting): New public function.
35206         (quotearg_buffer_restyled): Add left_quote and right_quote
35207         arguments, handle them very much like locale quoting, and update
35208         all uses.
35209         (quotearg_n_custom): New public function.
35210         (quotearg_n_custom_mem): New public function.
35211         (quotearg_custom): New public function.
35212         (quotearg_custom_mem): New public function.
35213         * lib/quotearg.h: Prototype and document new public functions.
35214         (enum quoting_style): For escape_quoting_style and
35215         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35216         ignored even though they're otherwise like c_quoting_style.
35217         Add custom_quoting_style member and document with comparison to
35218         clocale_quoting_style.
35219         * tests/test-quotearg.c (custom_quotes): New array.
35220         (custom_results): New array.
35221         (main): Extend to test custom quoting.
35222
35223 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35224
35225         quotearg: fix right quote escaping when it's in quote_these_too
35226         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35227         quote, be sure to prepend only one backslash.
35228         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35229         (main): Test it.
35230
35231 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35232
35233         quotearg-tests: test escaping of embedded locale quotes
35234         * tests/test-quotearg.c (struct result_strings): Add member for
35235         new input.
35236         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35237         (inputs): Add new input.
35238         (results_g): Add expected results.
35239         (flag_results): Likewise.
35240         (locale_results): Likewise.
35241         (compare_strings): Check those.
35242
35243 2009-08-23  Bruno Haible  <bruno@clisp.org>
35244
35245         Tests for module 'dup3'.
35246         * modules/dup3-tests: New file.
35247         * tests/test-dup3.c: New file.
35248
35249         New module 'dup3'.
35250         * lib/unistd.in.h (dup3): New declaration.
35251         * lib/dup3.c: New file.
35252         * m4/dup3.m4: New file.
35253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35254         HAVE_DUP3.
35255         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35256         * modules/dup3: New file.
35257         * doc/glibc-functions/dup3.texi: Mention the new module.
35258
35259 2009-08-23  Bruno Haible  <bruno@clisp.org>
35260
35261         Tweak the dup2 test.
35262         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35263         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35264         the test file is still empty. Fix argument order of lseek.
35265
35266 2009-08-23  Bruno Haible  <bruno@clisp.org>
35267
35268         Avoid test link errors when the modules getopt-gnu, gettext are used.
35269         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35271
35272 2009-08-23  Bruno Haible  <bruno@clisp.org>
35273
35274         Fix getdtablesize() on mingw.
35275         * lib/getdtablesize.c (getdtablesize): Implement differently.
35276         * lib/unistd.in.h (getdtablesize): Improve comment.
35277
35278 2009-08-23  Bruno Haible  <bruno@clisp.org>
35279
35280         New module 'mkostemp'.
35281         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35282         * lib/stdlib.in.h (mksotemp): New declaration.
35283         * lib/mkostemp.c: New file, from glibc with modifications.
35284         * lib/tempname.h (GT_FILE): Remove outdated comment.
35285         (gen_tempname): Add flags argument.
35286         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35287         (__GT_FILE): Map to 1.
35288         (small_open, large_open): Remove macros.
35289         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35290         * lib/mkstemp.c (mkstemp): Update.
35291         * lib/mkdtemp.c (mkdtemp): Likewise.
35292         * m4/mkostemp.m4: New file.
35293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35294         HAVE_MKOSTEMP.
35295         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35296         HAVE_MKOSTEMP.
35297         * modules/mkostemp: New file, based on modules/mkstemp.
35298         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35299         * NEWS: Mention the change.
35300
35301 2009-08-23  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35304         Reported by Eric Blake.
35305
35306 2009-08-23  Bruno Haible  <bruno@clisp.org>
35307
35308         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35309         Reported by Eric Blake.
35310
35311 2009-08-23  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35314         * modules/pipe2 (Depends-on): Likewise.
35315
35316 2009-08-23  Eric Blake  <ebb9@byu.net>
35317
35318         fcntl-h: add O_TTY_INIT support
35319         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35320         * tests/test-fcntl-h.c (o): Test it.
35321         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35322
35323         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35324         * modules/fcntl: Move <fcntl.h> header replacement...
35325         * modules/fcntl-h: ...to new name, so as not to collide with
35326         like-named function.
35327         * tests/test-fcntl.c: Rename...
35328         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35329         * modules/fcntl-tests: Rename...
35330         * modules/fcntl-h-tests: ...to this.  Update test file name.
35331         * modules/chdir-long (Depends-on): Update clients.
35332         * modules/chdir-safer (Depends-on): Likewise.
35333         * modules/fcntl-safer (Depends-on): Likewise.
35334         * modules/fts (Depends-on): Likewise.
35335         * modules/mkancesdirs (Depends-on): Likewise.
35336         * modules/mkdir-p (Depends-on): Likewise.
35337         * modules/open (Depends-on): Likewise.
35338         * modules/savewd (Depends-on): Likewise.
35339         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35340         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35341
35342 2009-08-22  Bruno Haible  <bruno@clisp.org>
35343
35344         * modules/binary-io (License): Relicense under LGPL.
35345         * modules/pipe2 (License): Likewise.
35346
35347 2009-08-22  Bruno Haible  <bruno@clisp.org>
35348
35349         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35350         return value.
35351         * lib/pipe-filter-gi.c (filter_init): Likewise.
35352         Reported by Eric Blake.
35353
35354 2009-08-22  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35357         * modules/pipe (Depends-on): Add pipe2.
35358
35359 2009-08-22  Bruno Haible  <bruno@clisp.org>
35360
35361         Tests for module 'pipe2'.
35362         * modules/pipe2-tests: New file.
35363         * tests/test-pipe2.c: New file.
35364
35365         New module 'pipe2'.
35366         * lib/unistd.in.h (pipe2): New declaration.
35367         * lib/pipe2.c: New file.
35368         * m4/pipe2.m4: New file.
35369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35370         HAVE_PIPE2.
35371         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35372         * modules/pipe2: New file.
35373         * doc/glibc-functions/pipe2.texi: Mention the new module.
35374
35375 2009-08-22  Bruno Haible  <bruno@clisp.org>
35376
35377         Reference some new glibc functions.
35378         * doc/glibc-functions/accept4.texi: New file.
35379         * doc/glibc-functions/dup3.texi: New file.
35380         * doc/glibc-functions/mkostemp.texi: New file.
35381         * doc/glibc-functions/pipe2.texi: New file.
35382         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35383         (Glibc sys/socket.h): Refer to accept4.
35384         (Glibc unistd.h): Refer to dup3, pipe2.
35385         Reported by Eric Blake.
35386
35387 2009-08-22  Jim Meyering  <meyering@redhat.com>
35388             Bruno Haible  <bruno@clisp.org>
35389
35390         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35391         This makes it so packages using automake-1.11's silent-rules option
35392         can print e.g., a single "GEN    configmake.h" line, rather than
35393         the 30+ statements that perform the job.  If you want to see the
35394         actual commands, you can still run "make V=1".
35395         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35396         so that make output is abbreviated when those variables are defined
35397         appropriately.
35398         * modules/argz: Likewise.
35399         * modules/arpa_inet: Likewise.
35400         * modules/byteswap: Likewise.
35401         * modules/configmake: Likewise.
35402         * modules/dirent: Likewise.
35403         * modules/errno: Likewise.
35404         * modules/fcntl: Likewise.
35405         * modules/float: Likewise.
35406         * modules/fnmatch: Likewise.
35407         * modules/getopt-posix: Likewise.
35408         * modules/glob: Likewise.
35409         * modules/iconv_open: Likewise.
35410         * modules/inttypes: Likewise.
35411         * modules/localcharset: Likewise.
35412         * modules/locale: Likewise.
35413         * modules/math: Likewise.
35414         * modules/netdb: Likewise.
35415         * modules/netinet_in: Likewise.
35416         * modules/poll: Likewise.
35417         * modules/posix_spawnp-tests: Likewise.
35418         * modules/sched: Likewise.
35419         * modules/search: Likewise.
35420         * modules/selinux-h: Likewise.
35421         * modules/signal: Likewise.
35422         * modules/spawn: Likewise.
35423         * modules/stdarg: Likewise.
35424         * modules/stdbool: Likewise.
35425         * modules/stddef: Likewise.
35426         * modules/stdint: Likewise.
35427         * modules/stdio: Likewise.
35428         * modules/stdlib: Likewise.
35429         * modules/string: Likewise.
35430         * modules/strings: Likewise.
35431         * modules/sys_file: Likewise.
35432         * modules/sys_ioctl: Likewise.
35433         * modules/sys_select: Likewise.
35434         * modules/sys_socket: Likewise.
35435         * modules/sys_stat: Likewise.
35436         * modules/sys_time: Likewise.
35437         * modules/sys_times: Likewise.
35438         * modules/sys_utsname: Likewise.
35439         * modules/sys_wait: Likewise.
35440         * modules/sysexits: Likewise.
35441         * modules/time: Likewise.
35442         * modules/unistd: Likewise.
35443         * modules/wchar: Likewise.
35444         * modules/wctype: Likewise.
35445
35446 2009-08-22  Jim Meyering  <meyering@redhat.com>
35447
35448         announce-gen: detect write failure
35449         * build-aux/announce-gen: Add Coda at end.
35450         Remove equivalent-but-more-verbose block at top.
35451
35452 2009-08-19  Akim Demaille  <demaille@gostai.com>
35453
35454         bootstrap: --help to stdout.
35455         * bootstrap (usage): Don't send --help to stderr.
35456         Use a here doc instead of a long string.
35457
35458 2009-08-21  Eric Blake  <ebb9@byu.net>
35459
35460         test-popen-safer: split from test-popen
35461         * tests/test-popen.c (main): Move...
35462         * tests/test-popen.h: ...into new file.
35463         * tests/test-popen-safer2.c: New file.
35464         * modules/popen-tests (Files): Add test-popen.h.
35465         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35466         Suggested by Bruno Haible.
35467
35468         test-fcntl-safer: split from test-open
35469         * tests/test-open.c (main): Move...
35470         * tests/test-open.h: ...into new file.
35471         * tests/test-fcntl-safer.c: New file.
35472         * modules/open-tests (Files): Add test-open.h.
35473         * modules/fcntl-safer-tests: New file.
35474         Suggested by Bruno Haible.
35475
35476         test-fopen-safer: split from test-fopen
35477         * tests/test-fopen.c (main): Move...
35478         * tests/test-fopen.h: ...into new file.
35479         * tests/test-fopen-safer.c: New file.
35480         * modules/fopen-tests (Files): Add test-fopen.h.
35481         * modules/fopen-safer-tests: New file.
35482         Suggested by Bruno Haible.
35483
35484 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35485
35486         popen-safer: test O_CLOEXEC at run-time.
35487         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35488
35489 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35490
35491         fcntl: move more flags to the header
35492         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35493         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35494         * lib/fcntl.in.h: Do both things here.
35495
35496 2009-08-21  Jim Meyering  <meyering@redhat.com>
35497
35498         consistently remove $@-t before redirecting to it
35499         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35500         * modules/alloca-opt: Likewise.
35501         * modules/byteswap: Likewise.
35502         * modules/fnmatch: Likewise.
35503         * modules/getopt-posix: Likewise.
35504         * modules/glob: Likewise.
35505         * modules/poll: Likewise.
35506         * modules/posix_spawnp-tests: Likewise.
35507         * modules/sys_socket: Likewise.
35508         * modules/sysexits: Likewise.
35509
35510 2009-08-21  Eric Blake  <ebb9@byu.net>
35511
35512         popen: simplify access to original popen
35513         * lib/popen.c (rpl_popen): No need to worry about popen being a
35514         macro.
35515         Reported by Bruno Haible.
35516
35517 2009-08-20  Eric Blake  <ebb9@byu.net>
35518
35519         build: avoid some compiler warnings
35520         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35521         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35522         type.
35523         (new_exclude_segment, excluded_file_pattern_p)
35524         (excluded_file_name_p): Reduce scope.
35525         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35526         old-style declaration.
35527
35528 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35529
35530         * tests/test-exclude1.sh: Handle Windows EOL.
35531         * tests/test-exclude2.sh: Likewise.
35532         * tests/test-exclude3.sh: Likewise.
35533         * tests/test-exclude4.sh: Likewise.
35534         * tests/test-exclude5.sh: Likewise.
35535         * tests/test-exclude6.sh: Likewise.
35536         * tests/test-exclude7.sh: Likewise.
35537
35538 2009-08-19  Akim Demaille  <demaille@gostai.com>
35539
35540         bootstrap: find sha1sum when named gsha1sum.
35541         * bootstrap (find_tool): New.
35542         ($SHA1SUM): New.
35543         Use it.
35544
35545 2009-08-20  Jim Meyering  <meyering@redhat.com>
35546
35547         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35548         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35549         expression that converts "." in a file name to "\." in the resulting
35550         regexp.  Start with a dummy statement, so that prior shell variable
35551         definitions are expanded portably.  Reported by Simon Josefsson.
35552
35553 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35554
35555         Fix polling for writeability of a screen buffer.
35556         * lib/poll.c: Distinguish input and screen buffers for the
35557         Win32 implementation.
35558         * lib/select.c: Likewise.
35559
35560 2009-08-19  Eric Blake  <ebb9@byu.net>
35561
35562         popen-safer: prevent popen from clobbering std descriptors
35563         * modules/popen-safer: New file.
35564         * lib/popen-safer.c: Likewise.
35565         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35566         * lib/stdio--.h (popen): Provide override.
35567         * lib/stdio-safer.h (popen_safer): Provide declaration.
35568         * tests/test-popen.c (includes): Partially test this.
35569         * modules/popen-safer-tests: New file, for more tests.
35570         * tests/test-popen-safer.c: Likewise.
35571         * MODULES.html.sh (file stream based Input/Output): Mention it.
35572
35573         tests: test some of the *-safer modules
35574         * modules/fopen-safer (Depends-on): Add fopen.
35575         * modules/fcntl-safer (Depends-on): Add fcntl.
35576         * modules/stdlib-safer (Depends-on): Add stdlib.
35577         (configure.ac): Set indicator.
35578         * modules/unistd-safer (configure.ac): Likewise.
35579         * modules/tmpfile-safer (configure.ac): Likewise.
35580         (Depends-on): Add tmpfile.
35581         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35582         active.
35583         * tests/test-fopen.c (includes): Test safer versions when they are
35584         in use.
35585         * tests/test-open.c (includes): Likewise.
35586
35587         popen: fix cygwin 1.5 bug when stdin closed
35588         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35589         * modules/popen: New file.
35590         * modules/popen-tests: Likewise.
35591         * tests/test-popen.c: Likewise.
35592         * m4/popen.m4: Likewise.
35593         * lib/popen.c: Likewise.
35594         * lib/stdio.in.h (popen): New declaration.
35595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35596         * modules/stdio (Makefile.am): Likewise.
35597         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35598
35599 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35600
35601         maint.mk: give full control over update-copyright exclusions
35602         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35603         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35604         (update-copyright): Don't force inclusion of top-level
35605         ChangeLog.  Don't force exclusion of all COPYING files, but make
35606         them the default exclusion instead.
35607
35608 2009-08-16  Bruno Haible  <bruno@clisp.org>
35609
35610         Fix test failures on Solaris 10.
35611         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35612         tests when Solaris iconv() is used.
35613         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35614         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35615         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35616         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35617         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35618
35619 2009-08-16  Bruno Haible  <bruno@clisp.org>
35620
35621         Fix test failures on Solaris 10.
35622         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35623         'tr' program and pass it as first argument.
35624         * tests/test-pipe-filter-gi1.sh: Likewise.
35625         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35626         program as first argument.
35627         * tests/test-pipe-filter-gi1.c (main): Likewise.
35628
35629 2009-08-16  Eric Blake  <ebb9@byu.net>
35630
35631         fpurge: fix previous commits
35632         * modules/fpurge (Makefile.am): Make replacement conditional,
35633         partially reverting 2007-04-29 change; missed in previous
35634         attempt.
35635         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35636         is missing.
35637
35638 2009-08-16  Bruno Haible  <bruno@clisp.org>
35639
35640         Clarify fpurge's effect on the file position.
35641         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35642         * tests/test-fpurge.c (main): Make a second pass for checking the file
35643         position.
35644
35645 2009-08-16  Bruno Haible  <bruno@clisp.org>
35646
35647         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35648         declaration of fpurge is missing.
35649         * tests/test-fpurge.c (main): Check that the file has not more contents
35650         than expected. Close the file before removing it.
35651
35652 2009-08-15  Eric Blake  <ebb9@byu.net>
35653
35654         fpurge: don't wrap working cygwin implementation
35655         * lib/fpurge.c (fpurge): Fix comment typo.
35656         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35657         1.7 to avoid replacement.
35658         * tests/test-fpurge.c (main): Enhance test.
35659
35660 2009-08-15  Eric Blake  <ebb9@byu.net>
35661         and Jim Meyering  <meyering@redhat.com>
35662
35663         test-update-copyright: skip if perl is insufficient
35664         * tests/test-update-copyright.sh: Failure to run maintainer tool
35665         should not cause testsuite failure on cygwin 1.5.
35666
35667 2009-08-14  Eric Blake  <ebb9@byu.net>
35668
35669         doc: mention more functions added in cygwin 1.7.0
35670         * doc/posix-headers/limits.texi (limits.h): Update for recent
35671         cygwin additions.
35672         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35673         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35674         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35675         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35676         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35677
35678 2009-08-14  Eric Blake  <ebb9@byu.net>
35679
35680         maint.mk: simplify update-copyright rule
35681         * top/maint.mk (update-copyright-local): Delete, and document how
35682         to do it in cfg.mk instead.
35683         (update-copyright-exclude-regexp): Delete, and document how to do
35684         it in .x-update-copyright instead.
35685         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35686         exclude ChangeLog.
35687
35688 2009-08-14  Bruno Haible  <bruno@clisp.org>
35689
35690         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35691
35692 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35693
35694         maint.mk: support update-copyright-env
35695         * top/maint.mk (update-copyright-env): Define place-holder.
35696         (update-copyright): Expand $(update-copyright-env) before
35697         invoking update-copyright.
35698
35699 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35700
35701         update-copyright: implement forced reformatting
35702         * build-aux/update-copyright: Implement and document
35703         UPDATE_COPYRIGHT_FORCE.
35704         * tests/test-update-copyright.sh: Test it.
35705
35706 2009-08-14  Eric Blake  <ebb9@byu.net>
35707         and Bruno Haible  <bruno@clisp.org>
35708
35709         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35710         * tests/test-locale.c: Revert previous patch related to NULL.
35711         * tests/test-stdio.c: Likewise.
35712         * tests/test-stdlib.c: Likewise.
35713         * tests/test-string.c: Likewise.
35714         * tests/test-unistd.c: Likewise.
35715         * modules/time-tests (Depends-on): Add verify.
35716         * modules/wchar-tests (Depends-on): Likewise.
35717         * tests/test-time.c: Test for NULL compliance.
35718         * tests/test-wchar.c: Likewise.
35719         * modules/locale (Depends-on): Add stddef.
35720         * modules/stdio (Depends-on): Likewise.
35721         * modules/stdlib (Depends-on): Likewise.
35722         * modules/string (Depends-on): Likewise.
35723         * modules/time (Depends-on): Likewise.
35724         * modules/unistd (Depends-on): Likewise.
35725         * modules/wchar (Depends-on): Likewise.
35726         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35727         * lib/stdlib.in.h (includes): Likewise.
35728         * lib/string.in.h (includes): Likewise.
35729         * lib/time.in.h (includes): Likewise.
35730         * lib/unistd.in.h (includes): Likewise.
35731         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35732         replaced.
35733         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35734         * m4/stddef_h.m4: New file.
35735         * modules/stddef: Likewise.
35736         * lib/stddef.in.h: Likewise.
35737         * modules/stddef-tests: Likewise.
35738         * tests/test-stddef.c: Likewise.
35739         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35740         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35741         * doc/posix-headers/locale.texi (locale.h): Likewise.
35742         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35743         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35744         * doc/posix-headers/string.texi (string.h): Likewise.
35745         * doc/posix-headers/time.texi (time.h): Likewise.
35746         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35747         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35748
35749 2009-08-14  Eric Blake  <ebb9@byu.net>
35750
35751         doc: improve git diff of texinfo files
35752         * .gitattributes: Add rule for *.texi files, with hint on how to
35753         use it.
35754         Copied from m4, and based on a report by Bruno Haible.
35755
35756 2009-08-14  Bruno Haible  <bruno@clisp.org>
35757
35758         Disable multithread support by default on Cygwin 1.5.x for real.
35759         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35760
35761 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35762
35763         update-copyright: much ado about intervals
35764         * build-aux/update-copyright: Implement and document
35765         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35766         of copyright year intervals.
35767         Also, document UPDATE_COPYRIGHT_YEAR.
35768         * tests/test-update-copyright.sh: Test it.
35769
35770         update-copyright: convert 2-digit to 4-digit years
35771         * build-aux/update-copyright: Implement and document.
35772         * tests/test-update-copyright.sh: Update.
35773
35774 2009-08-14  Jim Meyering  <meyering@redhat.com>
35775
35776         test-exclude: avoid coreutils "make check" failure
35777         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35778         just as in test-argmatch.c.
35779
35780 2009-08-13  Eric Blake  <ebb9@byu.net>
35781
35782         test-dup2: fix bad assumption
35783         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35784         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35785
35786         test-version-etc: fix CRLF portability issue
35787         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35788         recognize \r.
35789         * tests/test-argp-version-etc-1.sh: Likewise.
35790
35791         getopt: update client modules
35792         * modules/argp (Depends-on): Use getopt-gnu.
35793         * modules/git-merge-changelog (Depends-on): Likewise.
35794         * modules/long-options (Depends-on): Likewise.
35795         * modules/xstrtol (Depends-on): Likewise.
35796
35797 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35798
35799         * tests/test-version-etc.sh: Don't fail on different
35800         project/version.  Don't fail on CRLF differences.  Rewrite to use
35801         multiple -e instead of multiple sed forks, suggested by Eric Blake
35802         <ebb9@byu.net>.
35803         * tests/test-argp-version-etc-1.sh: Likewise.
35804
35805 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35806
35807         * tests/test-version-etc.sh: Don't fail on different
35808         project/version.
35809
35810 2009-08-12  Bruno Haible  <bruno@clisp.org>
35811
35812         Tests for modules 'getopt-posix', 'getopt-gnu'.
35813         * modules/getopt-posix-tests: New file.
35814         * tests/test-getopt.c: New file.
35815         * tests/test-getopt.h: New file.
35816         * tests/test-getopt_long.h: New file.
35817
35818         New modules 'getopt-posix', 'getopt-gnu'.
35819         * modules/getopt-gnu: New file, renamed from modules/getopt.
35820         * modules/getopt-posix: New file.
35821         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35822         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35823         (gl_GETOPT): Remove macro.
35824         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35825         Disable the test against BSD systems that declare optreset. Test
35826         against mingw bug. Test against lack of support of optional arguments
35827         on many platforms.
35828         * doc/glibc-headers/getopt.texi: Update module name and list of
35829         relevant platforms.
35830         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35831         'getopt-gnu' and more portability problems.
35832         * NEWS: Mention the changes.
35833
35834 2009-08-12  Bruno Haible  <bruno@clisp.org>
35835
35836         Ensure that optarg etc. get declared by <unistd.h>.
35837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35838         AC_USE_SYSTEM_EXTENSIONS.
35839         * modules/getopt (Depends-on): Add 'extensions'.
35840
35841 2009-08-12  Bruno Haible  <bruno@clisp.org>
35842
35843         Avoid test link errors.
35844         * modules/pipe-filter-ii-tests (Makefile.am): Define
35845         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35846         * modules/pipe-filter-gi-tests (Makefile.am): Define
35847         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35849
35850 2009-08-12  Bruno Haible  <bruno@clisp.org>
35851
35852         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35853         gl_GETOPT_SUBSTITUTE before.
35854         (gl_GETOPT): Use it.
35855         * m4/argp.m4 (gl_ARGP): Update.
35856         Reported by Sergey Poznyakoff.
35857
35858         * m4/getopt.m4: Reorder macros.
35859         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35860         (gl_GETOPT_SUBSTITUTE): Remove macro.
35861
35862 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35863
35864         Minor improvement in gitlog-to-changelog
35865
35866         * build-aux/gitlog-to-changelog: New option `--format' makes
35867         output format string configurable.
35868
35869 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35870
35871         Optimize exclude: use hash tables for non-wildcard patterns.
35872
35873         * lib/exclude.c: Include hash.h and mbuiter.h
35874         (struct exclude_pattern, exclude_segment): New data types.
35875         (struct exclude): Rewrite.
35876         (fnmatch_pattern_has_wildcards): New function.
35877         (new_exclude_segment, free_exclude_segment): New functions.
35878         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35879         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35880         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35881         * modules/exclude: Depend on hash and mbuiter.
35882
35883         * modules/exclude-tests: New file.
35884         * tests/test-exclude.c: New file.
35885         * tests/test-exclude1.sh: New file.
35886         * tests/test-exclude2.sh: New file.
35887         * tests/test-exclude3.sh: New file.
35888         * tests/test-exclude4.sh: New file.
35889         * tests/test-exclude5.sh: New file.
35890         * tests/test-exclude6.sh: New file.
35891         * tests/test-exclude7.sh: New file.
35892
35893 2009-08-12  Bruno Haible  <bruno@clisp.org>
35894
35895         Ensure that getopt() gets declared by <unistd.h>.
35896         * lib/unistd.in.h: Conditionally include getopt.h.
35897         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35898         Set GNULIB_UNISTD_H_GETOPT.
35899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35900         GNULIB_UNISTD_H_GETOPT.
35901         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35902
35903 2009-08-12  Bruno Haible  <bruno@clisp.org>
35904
35905         Clarify logic.
35906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35907         gl_replace_getopt instead of GETOPT_H.
35908
35909 2009-08-12  Bruno Haible  <bruno@clisp.org>
35910
35911         * m4/getopt.m4: Add comments.
35912
35913 2009-08-12  Bruno Haible  <bruno@clisp.org>
35914
35915         Disable multithread support by default on Cygwin 1.5.x.
35916         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35917         set gl_use_threads=no if not specified otherwise.
35918
35919 2009-08-11  Bruno Haible  <bruno@clisp.org>
35920
35921         Avoid compilation error on NetBSD 5.0.
35922         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35923         * tests/test-stdio.c: Likewise.
35924         * tests/test-stdlib.c: Likewise.
35925         * tests/test-string.c: Likewise.
35926         * tests/test-unistd.c: Likewise.
35927         Reported by Greg Troxel <gdt@ir.bbn.com>
35928         at <https://savannah.gnu.org/support/?106973>.
35929
35930 2009-08-11  Bruno Haible  <bruno@clisp.org>
35931
35932         * modules/dup2-tests (Depends-on): Remove close.
35933
35934         Undo 2009-07-19 commit.
35935         * modules/acl-tests (Depends-on): Remove close.
35936         * modules/binary-io-tests (Depends-on): Likewise.
35937         * modules/closein-tests (Depends-on): Likewise.
35938         * modules/flock-tests (Depends-on): Likewise.
35939         * modules/fsync-tests (Depends-on): Likewise.
35940         * modules/lseek-tests (Depends-on): Likewise.
35941         * modules/pipe-tests (Depends-on): Likewise.
35942         * modules/posix_spawn-tests (Depends-on): Likewise.
35943         * modules/posix_spawnp-tests (Depends-on): Likewise.
35944         * modules/stat-time-tests (Depends-on): Likewise.
35945         * modules/yesno-tests (Depends-on): Likewise.
35946
35947 2009-08-10  Bruno Haible  <bruno@clisp.org>
35948
35949         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35950
35951 2009-08-10  Bruno Haible  <bruno@clisp.org>
35952
35953         Fix a gcc warning.
35954         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35955
35956 2009-08-10  Bruno Haible  <bruno@clisp.org>
35957
35958         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35959         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35960         not only the first time.
35961         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35962         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35963         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35964         is 1, not only the the first time.
35965
35966 2009-08-10  Bruno Haible  <bruno@clisp.org>
35967
35968         Make it possible to use module 'gethostname' without module 'close'.
35969         * lib/unistd.in.h (close): Evoke a link error only if
35970         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35972         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35973         * modules/unistd (Makefile.am): Substitute
35974         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35975         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35976         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35977         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35978         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35979         * modules/sys_ioctl (Makefile.am): Substitute
35980         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35981         * modules/socket (configure.ac): On native Windows, set
35982         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35983         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35984         Reported by Sam Steingold <sds@gnu.org>.
35985
35986 2009-08-10  Bruno Haible  <bruno@clisp.org>
35987
35988         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35989         * modules/ioctl (configure.ac): Likewise.
35990
35991 2009-08-10  Bruno Haible  <bruno@clisp.org>
35992
35993         Avoid collision between gnulib wrapper and libintl wrapper.
35994         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35995         already defined in intl/printf.c.
35996         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35997         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35998
35999 2009-08-09  Bruno Haible  <bruno@clisp.org>
36000
36001         Make <sys/select.h> really self-contained, also on Solaris 10.
36002         * lib/sys_select.in.h: Include <string.h>.
36003         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36004         Solaris 10 problem.
36005         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36006         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36007         Reported by Jim Meyering.
36008
36009 2009-08-09  Bruno Haible  <bruno@clisp.org>
36010
36011         Avoid warnings from 'aclocal' that are due to a use of macro name
36012         AM_XGETTEXT_OPTION that is not defined in automake.
36013         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36014         automake.
36015         * modules/error (configure.ac): Likewise.
36016         * modules/propername (configure.ac): Likewise.
36017         * modules/vasprintf (configure.ac): Likewise.
36018         * modules/verror (configure.ac): Likewise.
36019         * modules/xprintf (configure.ac): Likewise.
36020         * modules/xvasprintf (configure.ac): Likewise.
36021
36022 2009-08-08  Bruno Haible  <bruno@clisp.org>
36023
36024         Avoid compilation error in C++ mode.
36025         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36026         Reported by Sam Steingold <sds@gnu.org>.
36027
36028 2009-08-08  Bruno Haible  <bruno@clisp.org>
36029
36030         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36031         for the various Unix platforms.
36032         * doc/posix-headers/limits.texi: Update platforms list regarding
36033         HOST_NAME_MAX.
36034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36035
36036 2009-08-07  Jim Meyering  <meyering@redhat.com>
36037
36038         selinux-at: fix typo in a comment
36039         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36040         Spotted by Paolo Bonzini.
36041
36042         selinux-at: remove redundant m4 code, add documentation
36043         * modules/selinux-at (configure.ac): Remove redundant code.
36044         LIB_SELINUX is already set via the dependent module, selinux-h.
36045         (Include): Add quotes around selinux-at.h.
36046         * lib/selinux-at.h: Add documentation.
36047         Reported by Bruno Haible in
36048         http://marc.info/?l=gnulib-bug&m=124958988300749
36049
36050 2009-08-07  Bruno Haible  <bruno@clisp.org>
36051
36052         Avoid link error on MacOS X 10.3 and 10.4.
36053         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36054         on non-ELF systems.
36055         * lib/argp-pv.c (argp_program_version): Likewise.
36056         Reported by Simon Josefsson.
36057
36058 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36059
36060         * tests/test-version-etc.sh: Use $EXEEXT.
36061
36062 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36063
36064         update-copyright: update documentation to point to maint.mk
36065         * build-aux/update-copyright: Here.
36066
36067 2009-08-06  Jim Meyering  <meyering@redhat.com>
36068
36069         maint.mk: support update-copyright-local
36070         * top/maint.mk (update-copyright-local): Define place-holder.
36071         (update-copyright): Depend on $(update-copyright-local).
36072
36073 2009-08-06  Jim Meyering  <meyering@redhat.com>
36074
36075         selinux-at: new module
36076         Initially written for coreutils, this module will soon be
36077         used by findutils, too.
36078         * MODULES.html.sh [Misc]: Add selinux-at.
36079         * lib/selinux-at.h: New file, from coreutils.
36080         * lib/selinux-at.c: Likewise.
36081         * modules/selinux-at: Likewise.
36082         (License): Change from LGPL to GPL, since it depends
36083         on the GPL'd openat module.
36084
36085         doc: update README
36086         * README: Remove references to cogito.
36087         Remove cvs-repo-updating instructions from 2007.
36088         Don't imply that CVS is better if you have limited disk space.
36089
36090 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36091
36092         update-copyright: support C-style comments
36093         * build-aux/update-copyright: Implement and document.
36094         * tests/test-update-copyright.sh: Test.
36095
36096 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36097
36098         update-copyright: support omitted "(C)"
36099         * build-aux/update-copyright: Implement and document.  Also,
36100         allow variable whitespace before "(C)".
36101         * tests/test-update-copyright.sh: Test.
36102
36103 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36104
36105         update-copyright: don't trip on non-FSF copyright statements
36106         * build-aux/update-copyright: Fix so that the first correctly
36107         formatted FSF copyright statement is recognized no matter what
36108         appears before it.  Update documentation.
36109         * tests/test-update-copyright.sh: Test that.
36110
36111 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36112
36113         update-copyright: clean up code a little
36114         * build-aux/update-copyright: Append "_re" to the name of any
36115         variable holding a regular expression.
36116         Replace "old" and "new" with "stmt" in variable names.
36117         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36118         handled correctly.
36119         Format code more consistently.
36120
36121 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36122
36123         update-copyright-tests: improve portability
36124         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36125         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36126
36127 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36128
36129         update-copyright: support @copyright{} and &copy;
36130         * build-aux/update-copyright: Implement and document.
36131         * tests/test-update-copyright.sh: Test.
36132
36133 2009-08-04  Jim Meyering  <meyering@redhat.com>
36134
36135         update-copyright-tests: correctly test EOL=\r\n handling
36136         * tests/test-update-copyright.sh: Put \r at the end of some lines
36137         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36138
36139         maint.mk: make update-copyright exclusion list more configurable
36140         * top/maint.mk (update-copyright): Default to excluding COPYING,
36141         but allow an override, in case someone does want to update that file.
36142
36143         maint.mk: don't update copyright date in COPYING
36144         * top/maint.mk (update-copyright): Exclude COPYING.
36145
36146         maint.mk: add a copyright-updating rule
36147         * top/maint.mk (update-copyright): New rule.
36148         Derived from coreutils/Makefile.am.
36149
36150         update-copyright: rename some variables
36151         * build-aux/update-copyright: Rename a few variables for clarity.
36152         Tweak syntax.  List Joel E. Denny as coauthor.
36153
36154 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36155
36156         update-copyright: fix bug for 2-digit last year and add tests
36157         * build-aux/update-copyright: Fix bug.
36158         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36159         specified.
36160         * modules/update-copyright-tests: New
36161         * tests/test-update-copyright.sh: New.
36162
36163 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36164
36165         update-copyright: handle leading tabs in line prefix
36166         * build-aux/update-copyright: Count leading tabs as 8 spaces
36167         when computing margin.  This helps with the formatting of
36168         ChangeLogs, for example.
36169         Fix documentation a little.
36170
36171 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36172
36173         update-copyright: support EOL=\r\n
36174         * build-aux/update-copyright: Implement that.
36175
36176 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36177
36178         update-copyright: automatically format copyright statements
36179         * build-aux/update-copyright: Implement that.
36180         Also, be a little more predictable and safer by always failing
36181         when the full copyright format is not perfectly recognized as an
36182         unbroken whole.  Discussed at
36183         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36184         Rewrite documentation.
36185
36186 2009-08-03  Bruno Haible  <bruno@clisp.org>
36187
36188         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36189
36190 2009-08-02  Bruno Haible  <bruno@clisp.org>
36191
36192         Tests for module 'uname'.
36193         * modules/uname-tests: New file.
36194         * tests/test-uname.c: New file.
36195
36196         New module 'uname'.
36197         * lib/uname.c: New file.
36198         * m4/uname.m4: New file.
36199         * modules/uname: New file.
36200         * doc/posix-functions/uname.texi: Mention the new module.
36201
36202 2009-08-02  Bruno Haible  <bruno@clisp.org>
36203
36204         Tests for module 'sys_utsname'.
36205         * modules/sys_utsname-tests: New file.
36206         * tests/test-sys_utsname.c: New file.
36207
36208         New module 'sys_utsname'.
36209         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36210         * m4/sys_utsname_h.m4: New file.
36211         * modules/sys_utsname: New file.
36212         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36213
36214 2009-08-02  Bruno Haible  <bruno@clisp.org>
36215
36216         Implicitly initialize the sockets library.
36217         * lib/gethostname.c: Include sockets.h.
36218         (rpl_gethostname): Invoke gl_sockets_startup.
36219         * lib/socket.c: Include sockets.h.
36220         (rpl_socket): Invoke gl_sockets_startup.
36221         * modules/gethostname (Depends-on): Add sockets.
36222         * modules/socket (Depends-on): Likewise.
36223         * tests/test-poll.c: Don't include sockets.h.
36224         (main): Don't invoke gl_sockets_startup.
36225         * tests/test-select.c: Don't include sockets.h.
36226         (main): Don't invoke gl_sockets_startup.
36227
36228 2009-08-02  Bruno Haible  <bruno@clisp.org>
36229
36230         Allow multiple calls to gl_sockets_startup.
36231         * lib/sockets.c (initialized_sockets_version): New variable.
36232         (gl_sockets_startup): Do nothing if already called for this or a higher
36233         version.
36234         (gl_sockets_cleanup): Reset initialized_sockets_version.
36235
36236 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36237
36238         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36239         different project/version.
36240
36241 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36242             Bruno Haible  <bruno@clisp.org>
36243
36244         Tests for module 'pipe-filter-gi'.
36245         * modules/pipe-filter-gi-tests: New file.
36246         * tests/test-pipe-filter-gi1.sh: New file.
36247         * tests/test-pipe-filter-gi1.c: New file.
36248         * tests/test-pipe-filter-gi2.sh: New file.
36249         * tests/test-pipe-filter-gi2-main.c: New file.
36250         * tests/test-pipe-filter-gi2-child.c: New file.
36251
36252         New module 'pipe-filter-gi'.
36253         * lib/pipe-filter-gi.c: New file.
36254         * modules/pipe-filter-gi: New file.
36255
36256 2009-08-02  Bruno Haible  <bruno@clisp.org>
36257             Paolo Bonzini  <bonzini@gnu.org>
36258
36259         Tests for module 'pipe-filter-ii'.
36260         * modules/pipe-filter-ii-tests: New file.
36261         * tests/test-pipe-filter-ii1.sh: New file.
36262         * tests/test-pipe-filter-ii1.c: New file.
36263         * tests/test-pipe-filter-ii2.sh: New file.
36264         * tests/test-pipe-filter-ii2-main.c: New file.
36265         * tests/test-pipe-filter-ii2-child.c: New file.
36266
36267         New module 'pipe-filter-ii'.
36268         * lib/pipe-filter.h: New file.
36269         * lib/pipe-filter-ii.c: New file.
36270         * lib/pipe-filter-aux.h: New file.
36271         * modules/pipe-filter-ii: New file.
36272
36273 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36274
36275         * lib/gc-libgcrypt.c: Change copyright to FSF.
36276         * lib/gc-gnulib.c: Likewise.
36277
36278 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36279
36280         * lib/gethostname.c: Include limits.h.
36281
36282 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36283             Bruno Haible  <bruno@clisp.org>
36284
36285         Ensure HOST_NAME_MAX as part of the gethostname module.
36286         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36287         define also HOST_NAME_MAX.
36288         * tests/test-gethostname.c: Include <limits.h>.
36289         (main): Check also HOST_NAME_MAX.
36290         * doc/posix-headers/limits.texi: Document the mingw problem.
36291
36292 2009-08-02  Bruno Haible  <bruno@clisp.org>
36293
36294         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36295         Add comments.
36296
36297 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36298
36299         * lib/gethostname.c: Add Windows wrapper.
36300         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36301         * modules/gethostname: Depend on sys_socket & errno, for also
36302         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36303         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36304
36305 2009-07-31  Jim Meyering  <meyering@redhat.com>
36306
36307         getloadavg: fix symbol name in comment
36308         * lib/getloadavg.c: Correct a typo I introduced when adding
36309         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36310         Matt Kraai spotted the problem.
36311
36312 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36313
36314         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36315         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36316         code also if ! defined N_NAME_POINTER.
36317         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36318         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36319         but the n_name member is a 12-byte array.
36320
36321 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36322
36323         update-copyright: generalize comment handling
36324         * build-aux/update-copyright: Handle copyright statements
36325         within more comment styles.
36326         Document usage.
36327         Report any file with an external copyright holder or parse failure.
36328
36329 2009-07-29  Jim Meyering  <meyering@redhat.com>
36330
36331         mktime: correct setting of REPLACE_MKTIME
36332         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36333
36334         update-copyright: new module
36335         * modules/update-copyright: New file.
36336         * build-aux/update-copyright: New file.
36337         * MODULES.html.sh (maint+release support): Add update-copyright.
36338
36339 2009-07-27  Bruno Haible  <bruno@clisp.org>
36340
36341         Fix compilation error when <ctime> is used and mktime is replaced.
36342         * lib/time.in.h (mktime): New declaration.
36343         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36344         REPLACE_MKTIME instead of defining mktime in config.h.
36345         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36346         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36347         Reported by Ross McFarland <rwmcfa1@neces.com>.
36348
36349 2009-07-27  Bruno Haible  <bruno@clisp.org>
36350
36351         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36352         Reported by Matt Kraai <mkraai@beckman.com>.
36353
36354 2009-07-25  Jim Meyering  <meyering@redhat.com>
36355
36356         maint.mk: avoid warnings about missing files
36357         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36358         diagnostic when .prev-version does not exist.
36359         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36360         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36361         nonexistent cfg.mk.
36362         Suggestions from Simon Josefsson.
36363
36364 2009-07-25  Bruno Haible  <bruno@clisp.org>
36365
36366         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36367         defined as macros. Needed on QNX 6.4.1.
36368         Reported by Matt Kraai <mkraai@beckman.com>.
36369
36370 2009-07-23  Jim Meyering  <meyering@redhat.com>
36371
36372         maint.mk: invoke "make dist" with a working value of XZ_OPT
36373         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36374
36375 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36376
36377         Make fseeko.c compile on QNX.
36378         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36379
36380 2009-07-22  Peter Simons  <simons@cryp.to>
36381
36382         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36383         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36384         * lib/md4.h: Likewise.
36385         * lib/md5.h: Likewise.
36386         * lib/sha1.h: Likewise.
36387         * lib/sha256.h: Likewise.
36388         * lib/sha512.h: Likewise.
36389
36390         tests-sha1: don't assign literal string to 'char *' variable
36391         * tests/test-sha1.c (main): Declare locals with "const" to match
36392         attributes of the right hand side.
36393
36394 2009-07-21  Eric Blake  <ebb9@byu.net>
36395
36396         dup2: fix more mingw problems
36397         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36398         fd to itself.
36399         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36400         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36401         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36402         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36403         care of mingw bugs.
36404
36405 2009-07-21  Jim Meyering  <meyering@redhat.com>
36406
36407         vc-list-files: avoid failure when /bin/sh is dash
36408         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36409         On some Debian based systems, /bin/sh is a symlink to dash, and running
36410         this command would omit the "/" following each 'tests' prefix:
36411           dash -x build-aux/vc-list-files -C . tests
36412         That is because bash and dash work differently:
36413           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36414           bash ok
36415           dash odd
36416
36417 2009-07-21  Eric Blake  <ebb9@byu.net>
36418
36419         dup2-tests: test previous patch
36420         * modules/dup2-tests: New file.
36421         * tests/test-dup2.c: Likewise.
36422         * tests/test-open.c (main): Avoid unspecified behavior.
36423         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36424         test.
36425
36426         dup2: work around mingw and cygwin 1.5 bug
36427         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36429         * modules/unistd (Makefile.am): Substitute it.
36430         * lib/unistd.in.h (dup2): Declare the replacement.
36431         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36432         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36433         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36434         * modules/execute (Depends-on): Add dup2.
36435         * modules/fseterr (Depends-on): Likewise.
36436         * modules/pipe (Depends-on): Likewise.
36437         * modules/posix_spawn-internal (Depends-on): Likewise.
36438
36439 2009-07-21  Bruno Haible  <bruno@clisp.org>
36440
36441         * modules/.gitattributes: New file.
36442
36443 2009-07-20  Bruno Haible  <bruno@clisp.org>
36444
36445         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36446         (main): Use it.
36447
36448 2009-07-20  Eric Blake  <ebb9@byu.net>
36449
36450         test-pipe: make a bit more robust.
36451         * tests/test-pipe.c (myerr): Allow error messages regardless of
36452         what we do to stderr.
36453         (test_pipe): Rearrange to avoid deadlock.
36454         (child_main): Try a larger read, to ensure we avoided deadlock.
36455         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36456         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36457         if misused.
36458
36459 2009-07-19  Jim Meyering  <meyering@redhat.com>
36460
36461         fts: avoid false-positive cycle-detection
36462         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36463         for each new command line argument.
36464
36465 2009-07-19  Bruno Haible  <bruno@clisp.org>
36466
36467         Fix build error on mingw with the modules sys_select and unistd.
36468         * modules/acl-tests (Depends-on): Add close.
36469         * modules/binary-io-tests (Depends-on): Likewise.
36470         * modules/closein-tests (Depends-on): Likewise.
36471         * modules/flock-tests (Depends-on): Likewise.
36472         * modules/fsync-tests (Depends-on): Likewise.
36473         * modules/lseek-tests (Depends-on): Likewise.
36474         * modules/pipe-tests (Depends-on): Likewise.
36475         * modules/posix_spawn-tests (Depends-on): Likewise.
36476         * modules/posix_spawnp-tests (Depends-on): Likewise.
36477         * modules/stat-time-tests (Depends-on): Likewise.
36478         * modules/yesno-tests (Depends-on): Likewise.
36479
36480 2009-07-19  Bruno Haible  <bruno@clisp.org>
36481
36482         Unify conditionals.
36483         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36484         macros, not at the compiler macros.
36485         * lib/pipe.c: Likewise.
36486         * lib/execute.c: Likewise.
36487         * lib/spawni.c: Likewise.
36488
36489 2009-07-19  Bruno Haible  <bruno@clisp.org>
36490
36491         Fix handling of closed stdin/stdout/stderr on mingw.
36492         * lib/w32spawn.h: Include unistd.h.
36493         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36494         file descriptor with O_NOINHERIT flag.
36495         (fd_safer_noinherit): New function, based on fd-safer.c.
36496         (dup_safer_noinherit): New function, based on dup-safer.c.
36497         (undup_safer_noinherit): New function.
36498         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36499         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36500         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36501         instead of fd_safer.
36502         * tests/test-pipe.c: Include <windows.h>.
36503         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36504         result.
36505
36506         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36507         from main.
36508         (test_pipe): Pass an extra argument for disambiguation.
36509         (main): Invoke parent_main or child_main.
36510
36511         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36512         consistently.
36513
36514 2009-07-18  Eric Blake  <ebb9@byu.net>
36515
36516         test-pipe: fix mingw build
36517         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36518
36519 2009-07-18  Bruno Haible  <bruno@clisp.org>
36520
36521         * modules/pipe-tests (Makefile.am): Fix typo.
36522
36523 2009-07-18  Eric Blake  <ebb9@byu.net>
36524
36525         error: fix mingw build
36526         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36527         Reported by Bruno Haible.
36528
36529         error: avoid undefined use of stdout
36530         * lib/error.c (error, error_at_line): Check that fd 1 is open
36531         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36532         is handling faults and the close_stdout module wants to report the
36533         detection of closed stdout as an error.
36534
36535 2009-07-17  Eric Blake  <ebb9@byu.net>
36536
36537         pipe: be robust in face of closed fds
36538         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36539         should cause child to misbehave.
36540         * modules/pipe-tests: New module.
36541         * tests/test-pipe.c: New file.
36542         * tests/test-pipe.sh: New file.
36543         Reported by Akim Demaille.
36544
36545 2009-07-14  Bruno Haible  <bruno@clisp.org>
36546
36547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36548         Reported by anonymous kc.
36549
36550 2009-07-07  Jim Meyering  <meyering@redhat.com>
36551
36552         maint.mk: don't look for translatable strings in *.m4 or *.mk
36553         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36554         when searching for translatable strings.
36555
36556 2009-07-05  Jim Meyering  <meyering@redhat.com>
36557
36558         remove superfluous parentheses in STREQ definition
36559         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36560         * lib/getugroups.c (STREQ): Likewise.
36561         * lib/fnmatch.c (STREQ): Likewise.
36562         Spotted by Bruno Haible.
36563
36564 2009-07-04  Jim Meyering  <meyering@redhat.com>
36565
36566         argv-iter: new module
36567         * MODULES.html.sh: Add argv-iter.
36568         * lib/argv-iter.c, lib/argv-iter.h: New files.
36569         * modules/argv-iter: New file.
36570         * modules/argv-iter-tests: New file.
36571         * tests/test-argv-iter.c: Test it.
36572
36573 2009-07-04  Bruno Haible  <bruno@clisp.org>
36574
36575         Fix assertion.
36576         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36577         contains more exact copies of a given entry than file2, leave the extra
36578         copies unpaired rather than aborting.
36579         Reported by Eric Blake.
36580
36581 2009-07-02  Bruno Haible  <bruno@clisp.org>
36582
36583         Speedup git-merge-changelog for git cherry-pick.
36584         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36585         (entries_mapping_get): New function, extracted from compute_mapping.
36586         (entries_mapping_reverse_get): New function.
36587         (compute_mapping): Add a 'full' argument. Return the result in a
36588         'struct entries_mapping'.
36589         (main): Update. Access the mappings through entries_mapping_get.
36590         Reported by Eric Blake.
36591
36592 2009-07-02  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36595         best_i.
36596
36597 2009-07-02  Bruno Haible  <bruno@clisp.org>
36598
36599         Speed up approximate search for matching ChangeLog entries.
36600         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36601         argument. Call fstrcmp_bounded instead of fstrcmp.
36602         (compute_mapping, try_split_merged_entry, main): Update callers.
36603
36604 2009-07-02  Bruno Haible  <bruno@clisp.org>
36605
36606         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36607
36608 2009-06-30  Bruno Haible  <bruno@clisp.org>
36609
36610         Reduce the number of uc_is_cased calls.
36611         * lib/unicase.h (casing_suffix_context_t): Add
36612         'first_char_except_ignorable' field.
36613         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36614         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36615         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36616         Update initializer.
36617         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36618         case-ignorable characters.
36619         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36620         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36621         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36622         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36623         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36624
36625 2009-06-30  Bruno Haible  <bruno@clisp.org>
36626
36627         Tests for module 'unicase/ignorable'.
36628         * modules/unicase/ignorable-tests: New file.
36629         * tests/unicase/test-ignorable.c: New file, generated by
36630         gen-uni-tables.
36631
36632         Tests for module 'unicase/cased'.
36633         * modules/unicase/cased-tests: New file.
36634         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36635         * tests/unicase/test-predicate-part1.h: New file, derived from
36636         tests/unictype/test-predicate-part1.h.
36637         * tests/unicase/test-predicate-part2.h: New file, same as
36638         tests/unictype/test-predicate-part2.h.
36639
36640         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36641         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36642         (output_casing_properties): New function.
36643         (main): Call it.
36644         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36645         * lib/unicase/cased.c: Include unictype/bitmap.h.
36646         (uc_is_cased): Define through a bitmap lookup.
36647         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36648         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36649         (uc_is_case_ignorable): Define through a bitmap lookup.
36650         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36651         lib/unictype/bitmap.h.
36652         (Depends-on): Add inline. Clean up.
36653         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36654         lib/unictype/bitmap.h.
36655         (Depends-on): Add inline. Clean up.
36656         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36657         recognition.
36658         * tests/unicase/test-u16-tolower.c (main): Likewise.
36659         * tests/unicase/test-u32-tolower.c (main): Likewise.
36660
36661 2009-06-30  Bruno Haible  <bruno@clisp.org>
36662
36663         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36664         * lib/unicase/u16-casemap.c: Likewise.
36665         * lib/unicase/u32-casemap.c: Likewise.
36666
36667 2009-06-29  Bruno Haible  <bruno@clisp.org>
36668
36669         Define u32_casefold as a wrapper around u32_ct_casefold.
36670         * lib/unicase/u32-casefold.c: Update.
36671         * modules/unicase/u32-casefold (Depends-on): Add
36672         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36673         unicase/empty-suffix-context. Clean up.
36674
36675         Define u16_casefold as a wrapper around u16_ct_casefold.
36676         * lib/unicase/u16-casefold.c: Update.
36677         * modules/unicase/u16-casefold (Depends-on): Add
36678         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36679         unicase/empty-suffix-context. Clean up.
36680
36681         Define u8_casefold as a wrapper around u8_ct_casefold.
36682         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36683         * lib/unicase/u8-casefold.c: Update.
36684         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36685         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36686
36687         Define u32_totitle as a wrapper around u32_ct_totitle.
36688         * lib/unicase/u32-totitle.c: Update.
36689         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36690         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36691
36692         Define u16_totitle as a wrapper around u16_ct_totitle.
36693         * lib/unicase/u16-totitle.c: Update.
36694         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36695         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36696
36697         Define u8_totitle as a wrapper around u8_ct_totitle.
36698         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36699         functions.
36700         (FUNC): Delegate to U_CT_TOTITLE.
36701         * lib/unicase/u8-totitle.c: Update.
36702         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36703         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36704
36705         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36706         invocation.
36707         * modules/unicase/u32-tolower (Depends-on): Add
36708         unicase/empty-prefix-context, unicase/empty-suffix-context.
36709
36710         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36711         invocation.
36712         * modules/unicase/u16-tolower (Depends-on): Add
36713         unicase/empty-prefix-context, unicase/empty-suffix-context.
36714
36715         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36716         * modules/unicase/u8-tolower (Depends-on): Add
36717         unicase/empty-prefix-context, unicase/empty-suffix-context.
36718
36719         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36720         invocation.
36721         * modules/unicase/u32-toupper (Depends-on): Add
36722         unicase/empty-prefix-context, unicase/empty-suffix-context.
36723
36724         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36725         invocation.
36726         * modules/unicase/u16-toupper (Depends-on): Add
36727         unicase/empty-prefix-context, unicase/empty-suffix-context.
36728
36729         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36730         * modules/unicase/u8-toupper (Depends-on): Add
36731         unicase/empty-prefix-context, unicase/empty-suffix-context.
36732
36733         New module 'unicase/u32-ct-casefold'.
36734         * lib/unicase/u32-ct-casefold.c: New file.
36735         * modules/unicase/u32-ct-casefold: New file.
36736
36737         New module 'unicase/u16-ct-casefold'.
36738         * lib/unicase/u16-ct-casefold.c: New file.
36739         * modules/unicase/u16-ct-casefold: New file.
36740
36741         New module 'unicase/u8-ct-casefold'.
36742         * lib/unicase/u8-ct-casefold.c: New file.
36743         * lib/unicase/u-ct-casefold.h: New file, derived from
36744         lib/unicase/u-casefold.h.
36745         * modules/unicase/u8-ct-casefold: New file.
36746
36747         New module 'unicase/u32-ct-totitle'.
36748         * lib/unicase/u32-ct-totitle.c: New file.
36749         * modules/unicase/u32-ct-totitle: New file.
36750
36751         New module 'unicase/u16-ct-totitle'.
36752         * lib/unicase/u16-ct-totitle.c: New file.
36753         * modules/unicase/u16-ct-totitle: New file.
36754
36755         New module 'unicase/u8-ct-totitle'.
36756         * lib/unicase/u8-ct-totitle.c: New file.
36757         * lib/unicase/u-ct-totitle.h: New file, derived from
36758         lib/unicase/u-totitle.h.
36759         * modules/unicase/u8-ct-totitle: New file.
36760
36761         New module 'unicase/u32-ct-tolower'.
36762         * lib/unicase/u32-ct-tolower.c: New file.
36763         * modules/unicase/u32-ct-tolower: New file.
36764
36765         New module 'unicase/u16-ct-tolower'.
36766         * lib/unicase/u16-ct-tolower.c: New file.
36767         * modules/unicase/u16-ct-tolower: New file.
36768
36769         New module 'unicase/u8-ct-tolower'.
36770         * lib/unicase/u8-ct-tolower.c: New file.
36771         * modules/unicase/u8-ct-tolower: New file.
36772
36773         New module 'unicase/u32-ct-toupper'.
36774         * lib/unicase/u32-ct-toupper.c: New file.
36775         * modules/unicase/u32-ct-toupper: New file.
36776
36777         New module 'unicase/u16-ct-toupper'.
36778         * lib/unicase/u16-ct-toupper.c: New file.
36779         * modules/unicase/u16-ct-toupper: New file.
36780
36781         New module 'unicase/u8-ct-toupper'.
36782         * lib/unicase/u8-ct-toupper.c: New file.
36783         * modules/unicase/u8-ct-toupper: New file.
36784
36785         Add context arguments to u*_casemap functions.
36786         * lib/unicase/unicasemap.h: Include unicase.h.
36787         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36788         suffix_context arguments.
36789         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36790         functions.
36791         (FUNC): Add prefix_context and suffix_context arguments. Use
36792         uc_is_cased and uc_is_case_ignorable.
36793         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36794         * lib/unicase/u16-casemap.c: Likewise.
36795         * lib/unicase/u32-casemap.c: Likewise.
36796         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36797         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36798         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36799         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36800         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36801         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36802
36803         New module 'unicase/u32-suffix-context'.
36804         * lib/unicase/u32-suffix-context.c: New file.
36805         * modules/unicase/u32-suffix-context: New file.
36806
36807         New module 'unicase/u16-suffix-context'.
36808         * lib/unicase/u16-suffix-context.c: New file.
36809         * modules/unicase/u16-suffix-context: New file.
36810
36811         New module 'unicase/u8-suffix-context'.
36812         * lib/unicase/u8-suffix-context.c: New file.
36813         * lib/unicase/u-suffix-context.h: New file.
36814         * modules/unicase/u8-suffix-context: New file.
36815
36816         New module 'unicase/empty-suffix-context'.
36817         * lib/unicase/empty-suffix-context.c: New file.
36818         * modules/unicase/empty-suffix-context: New file.
36819
36820         New module 'unicase/u32-prefix-context'.
36821         * lib/unicase/u32-prefix-context.c: New file.
36822         * modules/unicase/u32-prefix-context: New file.
36823
36824         New module 'unicase/u16-prefix-context'.
36825         * lib/unicase/u16-prefix-context.c: New file.
36826         * modules/unicase/u16-prefix-context: New file.
36827
36828         New module 'unicase/u8-prefix-context'.
36829         * lib/unicase/u8-prefix-context.c: New file.
36830         * lib/unicase/u-prefix-context.h: New file.
36831         * lib/unicase/context.h: New file.
36832         * modules/unicase/u8-prefix-context: New file.
36833
36834         New module 'unicase/empty-prefix-context'.
36835         * lib/unicase/empty-prefix-context.c: New file.
36836         * modules/unicase/empty-prefix-context: New file.
36837
36838         New module 'unicase/ignorable'.
36839         * lib/unicase/ignorable.c: New file.
36840         * modules/unicase/ignorable: New file.
36841
36842         New module 'unicase/cased'.
36843         * lib/unicase/caseprop.h: New file.
36844         * lib/unicase/cased.c: New file.
36845         * modules/unicase/cased: New file.
36846
36847         New functions for case mapping of substrings.
36848         * lib/unicase.h (casing_prefix_context_t): New type.
36849         (unicase_empty_prefix_context): New variable.
36850         (u8_casing_prefix_context, u16_casing_prefix_context,
36851         u32_casing_prefix_context, u8_casing_prefixes_context,
36852         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36853         declarations.
36854         (casing_suffix_context_t): New type.
36855         (unicase_empty_suffix_context): New variable.
36856         (u8_casing_suffix_context, u16_casing_suffix_context,
36857         u32_casing_suffix_context, u8_casing_suffixes_context,
36858         u16_casing_suffixes_context, u32_casing_suffixes_context,
36859         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36860         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36861         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36862         declarations.
36863
36864 2009-06-28  Jim Meyering  <meyering@redhat.com>
36865
36866         boostrap: indent only with spaces
36867         * build-aux/bootstrap: Indent only with spaces, never TABs.
36868
36869         bootstrap: split long lines
36870         * build-aux/bootstrap: Keep line length < 80.
36871
36872         bootstrap: sync from coreutils
36873         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36874         just as autoreconf does.  Verify a list of prerequisite
36875         package-name,version-number pairs if defined in bootstrap.conf.
36876         Refer to README-prereq, if prerequisites are not satisfied.
36877
36878 2009-06-27  Eric Blake  <ebb9@byu.net>
36879
36880         tests: add test for bogus NULL definition
36881         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36882         * tests/test-stdlib.c: Likewise.
36883         * tests/test-string.c: Likewise.
36884         * tests/test-locale.c: Likewise.
36885         * tests/test-unistd.c: Likewise.
36886         * modules/stdio-tests (Depends-on): Add verify.
36887         * modules/stdlib-tests (Depends-on): Likewise.
36888         * modules/string-tests (Depends-on): Likewise.
36889         * modules/locale-tests (Depends-on): Likewise.
36890         * modules/unistd-tests (Depends-on): Likewise.
36891
36892 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36893
36894         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36895         self-explaining comment.
36896         * m4/selinux-selinux-h: Update serial.
36897         (gl_LIBSELINUX): New macro, adding a warning for missing development
36898         packages to code extracted from...
36899         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36900         Add warning for missing development packages here, too.
36901
36902 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36903
36904         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36905
36906 2009-06-25  Eric Blake  <ebb9@byu.net>
36907
36908         version-etc: fix regression
36909         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36910         gcc.
36911         (version_etc): Use it, to catch bugs with trailing NULL.
36912         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36913         (version_etc_va): Fix logic bug.
36914         * modules/version-etc-tests: Add test.
36915         * tests/test-version-etc.c: New file.
36916         * tests/test-version-etc.sh: Likewise.
36917
36918 2009-06-25  Sam Steingold  <sds@gnu.org>
36919
36920         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36921         mbtowc declaration.
36922
36923 2009-06-25  Eric Blake  <ebb9@byu.net>
36924
36925         fpurge: migrate into <stdio.h>
36926         * lib/fpurge.h: Delete...
36927         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36928         * lib/fpurge.c (fpurge): Change declaring header.
36929         * modules/fpurge (Files): Drop deleted file.
36930         (Depends-on): Add stdio.
36931         (configure.ac): Set witness.
36932         * modules/stdio (Makefile.am): Support fpurge macros.
36933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36934         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36935         * lib/fflush.c: Update client.
36936         * tests/test-fpurge.c: Likewise.
36937         * NEWS: Mention the change.
36938
36939 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36940
36941         * lib/argp-version-etc.c (program_authors): Add const
36942         qualifier.
36943         * lib/version-etc.c: Fix typos in the comments.
36944         * modules/argp-version-etc: Depends on version-etc.
36945
36946 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36947
36948         argp-version-etc: new module.
36949
36950         * lib/argp-version-etc.c: New file.
36951         * lib/argp-version-etc.h: New file.
36952         * modules/argp-version-etc: New file.
36953         * modules/argp-version-etc-tests: New file.
36954         * tests/test-argp-version-etc.c: New test.
36955         * tests/test-argp-version-etc-1.sh: New test.
36956
36957 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36958
36959         Provide additional interfaces and documentation for version-etc
36960         module.
36961
36962         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36963         interfaces.
36964         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36965         prototypes.
36966
36967 2009-06-24  Bruno Haible  <bruno@clisp.org>
36968
36969         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36970         HAVE_LIB${NAME} macro.
36971         Reported by Sam Steingold <sds@gnu.org>.
36972
36973 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36974
36975         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36976         needed.
36977
36978 2009-06-21  Bruno Haible  <bruno@clisp.org>
36979
36980         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36981         work.
36982         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36983         together with LIB${NAME}, LTLIB${NAME}.
36984         Reported by Sam Steingold <sds@gnu.org>.
36985
36986 2009-06-20  Jim Meyering  <meyering@redhat.com>
36987
36988         tests: make sc_require_test_exit_idiom more generic
36989         * top/maint.mk (Exit_witness_file): New overridable variable.
36990         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36991         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36992
36993 2009-06-19  Jim Meyering  <meyering@redhat.com>
36994
36995         hash: reverse order of src/dst parameters in an internal interface
36996         * lib/hash.c (transfer_entries): Reverse order of parameters to
36997         put DST before SRC.  Adjust callers.
36998
36999         tests: test-hash: avoid wholesale duplication
37000         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37001         Instead, use a loop and add a single conditional.
37002
37003         tests: test-hash: allow seed selection via a command line argument
37004         * tests/test-hash.c (get_seed): New function.
37005         (main): Use it.
37006
37007 2009-06-19  Eric Blake  <ebb9@byu.net>
37008
37009         hash: avoid memory leak on allocation failure
37010         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37011         failure.  Factor repeated algorithm...
37012         (transfer_entries): ...into new helper routine.
37013         (hash_delete): React to hash_rehash return value.
37014
37015         hash: reduce memory pressure in hash_rehash no-op case
37016         * lib/hash.c (next_prime): Avoid overflow.
37017         (hash_initialize): Factor bucket size computation...
37018         (compute_bucket_size): ...into new helper function.
37019         (hash_rehash): Use new function and open coding to reduce memory
37020         pressure, and avoid a memory leak in USE_OBSTACK code.
37021         Reported by Jim Meyering.
37022
37023 2009-06-18  Eric Blake  <ebb9@byu.net>
37024
37025         hash: make rotation more obvious
37026         * modules/hash (Depends-on): Add bitrotate and stdint.
37027         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37028         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37029         (SIZE_MAX): Rely on headers for definition.
37030         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37031         (raw_hasher): Use rotr_sz.
37032         Suggested by Jim Meyering.
37033
37034         hash: fix memory leak in last patch
37035         * lib/hash.c (hash_rehash): Avoid memory leak.
37036
37037         hash: avoid no-op rehashing
37038         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37039
37040         hash: provide default callback functions
37041         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37042         (hash_initialize): Use them as defaults.
37043         * tests/test-hash.c (main): Test this.
37044
37045         hash: minor optimization
37046         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37047         when possible.
37048         (hash_initialize): Document this promise.
37049         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37050         * tests/test-hash.c (hash_compare_strings): Test this.
37051
37052 2009-06-18  Bruno Haible  <bruno@clisp.org>
37053
37054         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37055         going to be replaced anyway.
37056
37057 2009-06-18  Bruno Haible  <bruno@clisp.org>
37058
37059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37060         in one place.
37061         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37062         be replaced anyway.
37063
37064 2009-06-18  Eric Blake  <ebb9@byu.net>
37065
37066         hash: check for resize before insertion
37067         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37068         threshold before insertion, so that a pathological hash_rehash
37069         that fills every bucket can still trigger another rehash.
37070
37071 2009-06-18  Jim Meyering  <meyering@redhat.com>
37072
37073         hash-tests: add a loop around the small tests
37074         * tests/test-hash.c (main): Repeat small tests with selected
37075         small initial table sizes.
37076
37077 2009-06-17  Eric Blake  <ebb9@byu.net>
37078
37079         hash: minor cleanups
37080         * lib/hash.h (hash_entry): Make opaque, by moving...
37081         * lib/hash.c (hash_entry): ...here.
37082         (hash_insert): Clarify restrictions on what can be inserted.
37083         (hash_get_next): Clarify when it is safe to remove an element
37084         during traversal.
37085         (check_tuning): Skip verification when tuning is known safe.
37086         (hash_initialize): Clarify restrictions on tuning.
37087
37088 2009-06-17  Jim Meyering  <jim@meyering.net>
37089         and Eric Blake  <ebb9@byu.net>
37090
37091         hash-tests: new module
37092         * modules/hash-tests: New file.
37093         * tests/test-hash.c: New file.
37094
37095 2009-06-17  Eric Blake  <ebb9@byu.net>
37096
37097         strstr-simple: document new module
37098         * MODULES.html.sh: Document new module.
37099
37100         strstr, strcasestr: replace on platforms with broken memchr
37101         * modules/strstr: Split into...
37102         * modules/strstr-simple: ...new module that does not care about
37103         performance, but does care about glibc bug.
37104         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37105         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37106         if platform memchr is broken, per Debian bug 521737.
37107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37108         memchr.
37109         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37110         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37111         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37112         * modules/mountlist (Depends-on): Add strstr-simple.
37113         * modules/gen-uni-tables (Depends-on): Likewise.
37114         * modules/argz (Depends-on): Add strstr.
37115
37116 2009-06-17  Bruno Haible  <bruno@clisp.org>
37117
37118         * modules/posix_spawn-internal (Depends-on): Add errno.
37119
37120 2009-06-17  Bruno Haible  <bruno@clisp.org>
37121
37122         Define missing ESTALE on Interix 3.5.
37123         * lib/errno.in.h (ESTALE): Assign a value if missing.
37124         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37125         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37126         missing.
37127         * doc/posix-headers/errno.texi: Mention the Interix bug.
37128         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37129
37130 2009-06-15  Eric Blake  <ebb9@byu.net>
37131
37132         memchr, memchr2: add valgrind exception
37133         * lib/memchr.valgrind: New file.
37134         * lib/memchr2.valgrind: New file.
37135         * modules/memchr (Files): Distribute valgrind file.
37136         * modules/memchr2 (Files): Likewise.
37137
37138         docs: memchr is no longer obsolete
37139         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37140         * lib/string.in.h (memchr): Simplify logic.
37141
37142 2009-06-14  Jim Meyering  <meyering@redhat.com>
37143
37144         link-follow: fix the "checking..." message to not mention trailing slash
37145         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37146         never considered trailing slashes.
37147
37148 2009-06-14  Bruno Haible  <bruno@clisp.org>
37149
37150         * m4/memchr.m4: Mention also the bug on IA-64.
37151         * doc/posix-functions/memchr.texi: Likewise.
37152
37153 2009-06-12  Eric Blake  <ebb9@byu.net>
37154
37155         memchr: detect broken x86_64 and alpha implementations
37156         * modules/memchr-tests (Depends-on): Move mmap detection...
37157         * modules/memchr (Depends-on): ...here.
37158         (configure.ac): Set indicator.
37159         * lib/string.in.h (memchr): Declare replacement.
37160         * modules/string (Makefile.am): Trigger replacement.
37161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37162         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37163         bugs.
37164         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37165         * modules/getpagesize (License): Relax license.
37166
37167 2009-06-11  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/idpriv.h: Add more references.
37170
37171 2009-06-08  Bruno Haible  <bruno@clisp.org>
37172
37173         Tests for module 'idpriv-droptemp'.
37174         * modules/idpriv-droptemp-tests: New file.
37175         * tests/test-idpriv-droptemp.sh: New file.
37176         * tests/test-idpriv-droptemp.su.sh: New file.
37177         * tests/test-idpriv-droptemp.c: New file.
37178
37179         New module 'idpriv-droptemp'.
37180         * lib/idpriv-droptemp.c: New file.
37181         * modules/idpriv-droptemp: New file.
37182
37183 2009-06-08  Bruno Haible  <bruno@clisp.org>
37184
37185         Tests for module 'idpriv-drop'.
37186         * modules/idpriv-drop-tests: New file.
37187         * tests/test-idpriv-drop.sh: New file.
37188         * tests/test-idpriv-drop.su.sh: New file.
37189         * tests/test-idpriv-drop.c: New file.
37190
37191         New module 'idpriv-drop'.
37192         * lib/idpriv.h: New file.
37193         * lib-idpriv-drop.c: New file.
37194         * m4/idpriv.m4: New file.
37195         * modules/idpriv-drop: New file.
37196
37197 2009-06-08  Bruno Haible  <bruno@clisp.org>
37198
37199         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37200         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37201         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37202         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37203         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37204         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37205         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37206
37207 2009-06-08  Eric Blake  <ebb9@byu.net>
37208
37209         test-strstr: use memory fence, when possible
37210         * tests/test-strstr.c (main): Use memory fence, in order to be
37211         more likely to trigger Debian bug 521737.
37212         * modules/strstr-tests (Files): Pull in additional files.
37213
37214         memchr: no longer obsolete, for wider field testing
37215         * modules/memchr (Status, Notice): Delete, this module is no
37216         longer obsolete.
37217         * modules/vasnprintf (Depends-on): Add memchr.
37218
37219 2009-06-07  Jim Meyering  <meyering@redhat.com>
37220
37221         hash: declare some functions with the warn_unused_result attribute
37222         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37223
37224 2009-06-07  Bruno Haible  <bruno@clisp.org>
37225
37226         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37227         Reported by Eric Blake.
37228
37229 2009-06-06  Eric Blake  <ebb9@byu.net>
37230
37231         test-alignof: fix typo with long double
37232         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37233         compiler error.
37234
37235 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37236
37237         Escape non-texinfo { and }s.
37238         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37239         markup error.
37240
37241 2009-06-04  Jim Meyering  <meyering@redhat.com>
37242
37243         gitlog-to-changelog: don't infloop on an empty commit log
37244         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37245         Reported by Boris Petersen <transacid@centerim.org>.
37246
37247 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37248
37249         version-etc: extend for packagers
37250         Add three new configure options, intended for packagers:
37251           --with-packager="packager name"
37252           --with-packager-version="packager-specific version"
37253           --with-packager-bug-reports="packager bug reporting"
37254         An example with coreutils:
37255           $ ./configure \
37256             --with-packager=Gentoo \
37257             --with-packager-bug-report=http://bugs.gentoo.org/ \
37258             --with-packager-version="patchset 1.6"
37259           $ ./src/ls --version | head -n2
37260           ls (GNU coreutils) 7.1-dirty
37261           Packaged by Gentoo (patchset 1.6)
37262         Note that the bug reporting info via --help doesn't show up because
37263         coreutils uses its own custom emit_bug_reporting_address() implementation
37264         in src/system.h.  If it didn't, it'd look like:
37265           $ ./src/ls --help | tail -n4
37266           Report bugs to <bug-coreutils@gnu.org>.
37267           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37268           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37269           General help using GNU software: <http://www.gnu.org/gethelp/>.
37270         * lib/version-etc.c: Print new information, if provided.
37271         * m4/version-etc.m4: New file.
37272         * modules/version-etc (Files): Add m4/version-etc.m4.
37273         (configure.ac): Add gl_VERSION_ETC.
37274
37275 2009-05-31  Bruno Haible  <bruno@clisp.org>
37276
37277         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37278         and 'int64_t'.
37279         * modules/alignof-tests (Dependencies): Add stdint.
37280         Reported by Eric Blake.
37281
37282 2009-05-31  Bruno Haible  <bruno@clisp.org>
37283
37284         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37285         restriction due to compiler bugs.
37286         Reported by Eric Blake.
37287
37288 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37289             Bruno Haible  <bruno@clisp.org>
37290
37291         Fix test-alignof failure.
37292         * lib/alignof.h (alignof_slot): New macro.
37293         (alignof_type): New macro, with the same semantics as the previous
37294         'alignof'.
37295         (alignof): Alias to alignof_slot.
37296         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37297         check that the results are usable as constant expressions.
37298
37299 2009-05-31  Bruno Haible  <bruno@clisp.org>
37300
37301         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37302         * tests/test-memchr.c (main): Check that memchr does not read past the
37303         first occurrence of the byte.
37304         * tests/test-strstr.c (main): Update comment.
37305         Suggested by Eric Blake.
37306
37307 2009-05-30  Bruno Haible  <bruno@clisp.org>
37308
37309         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37310         detail how to use dumpbin.
37311         Reported by David Byron <dbyron@dbyron.com>.
37312
37313 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37314
37315         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37316
37317 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37318
37319         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37320
37321 2009-05-28  Bruno Haible  <bruno@clisp.org>
37322
37323         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37324         build-aux/ files.
37325
37326 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37327
37328         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37329
37330 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37331
37332         * gnulib-tool (sed_transform_main_lib_file)
37333         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37334         regexps.
37335
37336 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37337
37338         * tests/test-strstr.c: Add another self-test.
37339         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37340         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37341
37342 2009-05-23  Bruno Haible  <bruno@clisp.org>
37343
37344         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37345         change.
37346
37347 2009-05-21  Bruno Haible  <bruno@clisp.org>
37348
37349         Simplify use of mode_t varargs.
37350         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37351         uses 'mode_t' or 'int'.
37352         * lib/openat.c (openat): Likewise.
37353         * lib/open-safer.c (open_safer): Likewise.
37354         * m4/mode_t.m4: New file.
37355         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37356         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37357         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37358         * modules/open (Files): Add m4/mode_t.m4.
37359         * modules/openat (Files): Likewise.
37360         * modules/fcntl-safer (Files): Likewise.
37361         Suggested by Eric Blake.
37362
37363 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37364
37365         * doc/glibc-functions/fallocate.texi: New file.
37366         * doc/gnulib.texi: Include it.
37367
37368 2009-05-21  Eric Blake  <ebb9@byu.net>
37369             Bruno Haible  <bruno@clisp.org>
37370
37371         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37372         invocations.
37373         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37374
37375 2009-05-21  Eric Blake  <ebb9@byu.net>
37376             Bruno Haible  <bruno@clisp.org>
37377
37378         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37379         include_next. Fix of 2008-11-20 commit.
37380         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37381         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37382         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37383         NEXT_MATH_H.
37384         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37385         instead of NEXT_MATH_H.
37386
37387 2009-05-21  Bruno Haible  <bruno@clisp.org>
37388
37389         Avoid redefinition warnings for SIZE_MAX.
37390         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37391         Reported by Simon Josefsson.
37392
37393 2009-05-21  Bruno Haible  <bruno@clisp.org>
37394
37395         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37396         AC_CACHE_VAL.
37397
37398 2009-05-20  Bruno Haible  <bruno@clisp.org>
37399
37400         Make zeroptr.h work on mingw.
37401         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37402         mprotect.
37403         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37404         * modules/memchr2-tests (configure.ac): Likewise.
37405         * modules/memcmp-tests (configure.ac): Likewise.
37406         * modules/memmem-tests (configure.ac): Likewise.
37407         * modules/memrchr-tests (configure.ac): Likewise.
37408         Reported by Simon Josefsson.
37409
37410 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37411
37412         * tests/test-glob.c: Include string.h for strcmp prototype.
37413
37414 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37415
37416         * modules/getdelim (Depends-on): Add explicit stdint, although it
37417         was implicitly already pulled in via realloc-posix.
37418         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37419
37420 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37421
37422         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37423         G. Christensen" <tgc@jupiterrise.com>.
37424         * m4/sys_socket_h.m4: Check for sa_family_t.
37425         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37426         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37427         * tests/test-sys_socket.c: Check that sa_family_t works.
37428
37429 2009-05-18  Eric Blake  <ebb9@byu.net>
37430
37431         maint.mk: allow gnulib_dir in VPATH build
37432         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37433
37434 2009-05-15  Jim Meyering  <meyering@redhat.com>
37435
37436         maint.mk: Give gnulib_dir a default definition.
37437         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37438         Thus, most packages no longer need to specify this variable in cfg.mk
37439
37440 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37441
37442         rename.m4: fix typos that would make non-mingw cross-configure fail
37443         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37444
37445 2009-05-13  Eric Blake  <ebb9@byu.net>
37446
37447         mmap-anon: avoid out-of-order autoconf expansion
37448         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37449         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37450         * modules/memchr-tests (Depends-on): Add extensions.
37451         * modules/memchr2-tests (Depends-on): Add extensions.
37452         * modules/memcmp-tests (Depends-on): Add extensions.
37453         * modules/memmem-tests (Depends-on): Add extensions.
37454         * modules/memrchr-tests (Depends-on): Add extensions.
37455
37456 2009-05-13  Bruno Haible  <bruno@clisp.org>
37457
37458         Make some tests ISO C 99 compliant.
37459         * tests/zerosize-ptr.h: New file.
37460         * tests/test-memchr.c: Include zerosize-ptr.h.
37461         (main): Use a zero-size object pointer instead of NULL.
37462         * tests/test-memchr2.c: Include zerosize-ptr.h.
37463         (main): Use a zero-size object pointer instead of NULL.
37464         * tests/test-memcmp.c: Include zerosize-ptr.h.
37465         (main): Use a zero-size object pointer instead of NULL.
37466         * tests/test-memmem.c: Include zerosize-ptr.h.
37467         (main): Use a zero-size object pointer instead of NULL.
37468         * tests/test-memrchr.c: Include zerosize-ptr.h.
37469         (main): Use a zero-size object pointer instead of NULL.
37470         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37471         m4/mmap-anon.m4.
37472         (Depends-on): Add getpagesize.
37473         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37474         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37475         m4/mmap-anon.m4.
37476         (Depends-on): Add getpagesize.
37477         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37478         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37479         m4/mmap-anon.m4.
37480         (Depends-on): Add getpagesize.
37481         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37482         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37483         m4/mmap-anon.m4.
37484         (Depends-on): Add getpagesize.
37485         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37486         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37487         m4/mmap-anon.m4.
37488         (Depends-on): Add getpagesize.
37489         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37490
37491 2009-05-12  Bruno Haible  <bruno@clisp.org>
37492
37493         Tests for module 'alignof'.
37494         * modules/alignof-tests: New file.
37495         * tests/test-alignof.c: New file.
37496
37497 2009-05-12  Bruno Haible  <bruno@clisp.org>
37498
37499         Fix alignof macro.
37500         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37501         vendor compilers that are always correct.
37502
37503 2009-05-12  Bruno Haible  <bruno@clisp.org>
37504
37505         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37506         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37507         not whether its fully works.
37508
37509 2009-05-12  Bruno Haible  <bruno@clisp.org>
37510
37511         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37512
37513 2009-05-12  Jim Meyering  <meyering@redhat.com>
37514
37515         * top/maint.mk: Adjust backslash alignment.
37516
37517 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37518
37519         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37520
37521 2009-05-11  Eric Blake  <ebb9@byu.net>
37522
37523         argp: avoid undefined behavior
37524         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37525         macros.
37526
37527 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37528
37529         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37530         user.name to prevent git commit from complaining.
37531
37532 2009-05-10  Bruno Haible  <bruno@clisp.org>
37533
37534         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37535         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37536         it rewrites every file name only once.
37537         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37538
37539 2009-05-08  Bruno Haible  <bruno@clisp.org>
37540
37541         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37542         instead of 'max'.
37543
37544 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37545
37546         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37547         sockaddr_storage test.
37548
37549 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37550
37551         * modules/sys_socket (Makefile.am): Substitute
37552         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37553         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37554         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37555         * tests/test-sys_socket.c: Check sockaddr_storage.
37556
37557 2009-05-08  Bruno Haible  <bruno@clisp.org>
37558
37559         New module 'alignof'.
37560         * lib/alignof.h: New file.
37561         * modules/alignof: New file.
37562
37563 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37564             Bruno Haible  <bruno@clisp.org>
37565
37566         Fix test-file-has-acl on FreeBSD.
37567         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37568         mask is implicitly added.
37569         * tests/test-file-has-acl.c: Include <signal.h>.
37570         (main): Terminate the test after 5 seconds.
37571         * modules/acl-tests (configure.ac): Check for alarm function.
37572
37573 2009-05-04  Bruno Haible  <bruno@clisp.org>
37574
37575         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37577         * modules/errno (configure.ac): Drop AC_REQUIRE.
37578         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37579         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37580
37581 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37582
37583         * modules/glob-tests: New module.
37584         * tests/test-glob.c: Add.
37585
37586 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37587
37588         * modules/fnmatch-tests: New module.
37589         * tests/test-fnmatch.c: Add.
37590
37591 2009-05-04  Eric Blake  <ebb9@byu.net>
37592
37593         maint: make the new no-submodule-changes rule VPATH-safe
37594         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37595
37596 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37597             Bruno Haible  <bruno@clisp.org>
37598
37599         acl: Fix infinite loop on FreeBSD.
37600         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37601         of return value from acl_get_entry.
37602         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37603         Likewise.
37604
37605 2009-05-03  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/acl-internal.h (acl_entries): Clarify return value.
37608         * lib/acl_entries.c (acl_entries): Likewise.
37609
37610 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37611
37612         Bug fix in acl module.
37613         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37614
37615 2009-05-03  Bruno Haible  <bruno@clisp.org>
37616
37617         Create gperf-generated file in the source dir, not in the build dir.
37618         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37619         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37620         * modules/unicase/locale-language (unicase/locale-languages.h):
37621         Likewise.
37622         * modules/unicase/special-casing (unicase/special-casing-table.h):
37623         Likewise.
37624         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37625         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37626         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37627         Reported by Ralf Wildenhues.
37628
37629 2009-05-03  Bruno Haible  <bruno@clisp.org>
37630
37631         * modules/fnmatch (Description, configure.ac): Taken from
37632         fnmatch-posix.
37633         * modules/fnmatch-posix: Turn into a symbolic reference to the
37634         'fnmatch' module, and deprecate.
37635         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37636
37637 2009-05-03  Bruno Haible  <bruno@clisp.org>
37638
37639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37640         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37641         Reported by Ralf Wildenhues.
37642
37643 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37644
37645         * m4/fnmatch.m4: Fix fnmatch re-define.
37646
37647 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37648
37649         priv-set: new module and tests; adapt write-any-file
37650         * lib/priv-set.c: New file.
37651         * lib/priv-set.h: New file.
37652         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37653         * lib/write-any-file.c: Simplify by using priv-set module.
37654         * m4/priv-set.m4: New file.
37655         * modules/priv-set: New file.
37656         * modules/unlinkdir: Add dependency on priv-set module.
37657         * modules/write-any-file: Likewise.
37658
37659         Tests for module 'priv-set'.
37660         * modules/priv-set-tests: New file.
37661         * tests/test-priv-set.c: New file.
37662
37663 2009-05-03  Jim Meyering  <meyering@redhat.com>
37664             Bruno Haible  <bruno@clisp.org>
37665
37666         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37667         use the converted UTF-8 variant of the name instead.
37668
37669 2009-05-03  Jim Meyering  <meyering@redhat.com>
37670
37671         tests: tighten some getdate tests
37672         * tests/test-getdate.c (main): Tighten tests: require equality,
37673         not just greater than.  Set TZ envvar to UTC0.
37674
37675 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37676
37677         getdate: correctly interpret "next monday" when run on a Monday
37678         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37679         that e.g., "next tues" (when run on a tuesday) results in a date
37680         that is one week in the future, and not today's date.
37681         I.e., add a week when the wday is the same as the current one.
37682         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37683         and earlier by Martin Bernreuther and Jan Minář.
37684         * tests/test-getdate.c (main): Check that "next DAY" is always in
37685         the future and that "last DAY" is always in the past.
37686
37687 2009-05-02  Jim Meyering  <meyering@redhat.com>
37688
37689         build: ensure that a release build fails when a submodule is unclean
37690         * top/maint.mk (no-submodule-changes): New rule.
37691         (alpha beta major): Depend on it.
37692
37693 2009-05-02  Bruno Haible  <bruno@clisp.org>
37694
37695         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37696         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37697         shell variable gl_fnmatch_required to detect which variant is
37698         requested.
37699         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37700         gl_FUNC_FNMATCH_POSIX.
37701         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37702         exclude fnmatch-posix.
37703
37704 2009-05-02  Bruno Haible  <bruno@clisp.org>
37705
37706         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37707         * modules/mbsrtowcs (License): Change to LGPLv2+.
37708         * modules/strnlen1 (License): Likewise.
37709         Reported by Simon Josefsson.
37710
37711 2009-05-02  Bruno Haible  <bruno@clisp.org>
37712
37713         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37714         "cross".
37715         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37716         gnulib-tool was called with option --source-base=lib.
37717
37718 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37719
37720         Use automake *-local hooks without commands, for extensibility.
37721         * modules/localcharset (Makefile.am): Rename install-exec-local
37722         rule to install-exec-localcharset, and make it a prerequisite of
37723         install-exec-local.  Likewise, rename the uninstall-local rule to
37724         uninstall-localcharset, and make it a prerequisite of the former.
37725
37726 2009-05-01  Bruno Haible  <bruno@clisp.org>
37727
37728         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37729         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37730         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37732         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37733         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37734         m4/locale-zh.m4, m4/codeset.m4.
37735
37736         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37737         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37738         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37739         m4/locale-zh.m4.
37740
37741         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37742         REPLACE_WCRTOMB if mbstate_t must be replaced.
37743         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37744         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37745
37746 2009-05-01  Bruno Haible  <bruno@clisp.org>
37747
37748         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37749         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37750         dngettext, dcngettext, textdomain, bindtextdomain,
37751         bind_textdomain_codeset): Undefine before redefining.
37752
37753 2009-04-30  Bruno Haible  <bruno@clisp.org>
37754
37755         Fix bug introduced on 2009-04-25.
37756         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37757         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37758         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37759         is defined.
37760         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37761         is defined.
37762         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37763         is defined.
37764         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37765
37766 2009-04-28  Bruno Haible  <bruno@clisp.org>
37767
37768         Comment tweaks.
37769         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37770         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37771         * lib/unicase.h (u*_casexfrm): Likewise.
37772         Reported by Paolo Bonzini.
37773
37774 2009-04-28  Bruno Haible  <bruno@clisp.org>
37775
37776         Fix a compilation error.
37777         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37778         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37779         Reported by Jim Meyering.
37780
37781 2009-04-27  Bruno Haible  <bruno@clisp.org>
37782
37783         New module 'libunistring'.
37784         * modules/libunistring: New file.
37785         * m4/libunistring.m4: New file.
37786         * MODULES.html.sh (Unicode string functions): Add it.
37787
37788 2009-04-27  Eric Blake  <ebb9@byu.net>
37789
37790         maint.mk: allow package-specific header to provide <config.h>
37791         * top/maint.mk (sc_require_config_h): New variable.
37792         (sc_require_config_h, sc_require_config_h_first): Use it.
37793
37794 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37795
37796         * top/maint.mk (sc_avoid_if_before_free): Except
37797         useless-if-before-free script.
37798
37799 2009-04-27  Eric Blake  <ebb9@byu.net>
37800
37801         maintainer-makefile: depend on all required helper scripts
37802         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37803         useless-if-before-free.
37804         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37805         version, rather than assuming gnulib checkout is available.
37806         Reported by Simen Josefsson.
37807
37808 2009-04-26  Bruno Haible  <bruno@clisp.org>
37809
37810         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37811         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37812         "../" or "..".
37813
37814 2009-04-26  Bruno Haible  <bruno@clisp.org>
37815
37816         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37817         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37818         AC_LIB_HAVE_LINKFLAGS.
37819
37820 2009-04-26  Bruno Haible  <bruno@clisp.org>
37821
37822         Simplify calling convention of u*_conv_from_encoding.
37823         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37824         u32_conv_from_encoding): Expect a resultbuf argument and return the
37825         result directly as a pointer.
37826         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37827         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37828         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37829         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37830         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37831         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37832         Update.
37833         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37834         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37835         * lib/vasnprintf.c (VASNPRINTF): Update.
37836         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37837         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37838         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37839         * NEWS: Mention the change.
37840
37841 2009-04-26  Bruno Haible  <bruno@clisp.org>
37842
37843         Simplify calling convention of u*_conv_to_encoding.
37844         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37845         u32_conv_to_encoding): Expect a resultbuf argument and return the
37846         result directly as a pointer.
37847         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37848         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37849         freeing scaled_offsets if mem_iconveha failed.
37850         * lib/unicase/u-casexfrm.h (FUNC): Update.
37851         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37852         * lib/vasnprintf.c (VASNPRINTF): Update.
37853         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37854         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37855         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37856         * NEWS: Mention the change.
37857
37858 2009-04-26  Bruno Haible  <bruno@clisp.org>
37859
37860         Avoid test failures on AIX and OSF/1.
37861         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37862         malloc(0).
37863         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37864         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37865         Likewise.
37866         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37867         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37868         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37869         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37870         * doc/posix-functions/malloc.texi: Document the portability problem
37871         related to malloc(0).
37872
37873 2009-04-26  Bruno Haible  <bruno@clisp.org>
37874
37875         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37876         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37877         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37878
37879 2009-04-25  Bruno Haible  <bruno@clisp.org>
37880
37881         Avoid link error when creating a namespace clean library.
37882         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37883         as macro with arguments if already defined as an alias.
37884         * lib/signbitf.c (gl_signbitf): Don't undefine.
37885         * lib/signbitd.c (gl_signbitd): Don't undefine.
37886         * lib/signbitl.c (gl_signbitl): Don't undefine.
37887
37888 2009-04-25  Jim Meyering  <meyering@redhat.com>
37889
37890         vc-list-files: fix another quoting bug
37891         * build-aux/vc-list-files: Avoid sed backslash expansion
37892         of pathological directory names.
37893
37894 2009-04-25  Eric Blake  <ebb9@byu.net>
37895
37896         vc-list-files: fix shell quoting error
37897         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37898         timestamp.
37899
37900 2009-04-25  Jim Meyering  <meyering@redhat.com>
37901
37902         vc-list-files: restore lost functionality with subdir argument
37903         * build-aux/vc-list-files: When given a non-"." sub-directory
37904         argument, substitute the $dir/ prefix back onto each resulting name.
37905         Otherwise, coreutils' root_tests check would fail.
37906
37907 2009-04-24  Eric Blake  <ebb9@byu.net>
37908
37909         vc-list-files: ignore git symlinks
37910         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37911         than ls-files, to ignore git symlinks.
37912
37913         maint.mk: import improvements from m4
37914         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37915         (move_if_change): Delete unused macro.
37916         (news-date-check, vc-diff-check): Support VPATH builds.
37917         (announcement): Likewise.  Split --bootstrap-tools list...
37918         (boostrap-tools): ...into separate list, which can be overridden
37919         in cfg.mk.
37920         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37921         requiring dependency on useless-if-before-free module.
37922         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37923         Support VPATH builds.
37924
37925 2009-04-24  Jim Meyering  <meyering@redhat.com>
37926
37927         maint.mk: remove coreutils-specific rules and variables
37928         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37929         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37930         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37931
37932         maint.mk: remove obsolete rule
37933         * top/maint.mk (rel-check): Remove rule.
37934         (WGET, WGETFLAGS): Remove now-unused variables.
37935
37936 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37937
37938         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37939         consistency.
37940
37941         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37942         '$(PATH_SEPARATOR)' instead of ':'.
37943
37944 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37945
37946         * lib/getopt1.c (main): Use 'const' for static array.
37947
37948 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37949
37950         * top/maint.mk: Sync with coreutils.
37951         * NEWS: Explain incompatibilities.
37952
37953 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37954             Bruno Haible  <bruno@clisp.org>
37955
37956         Fix cross-compilation results.
37957         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37958         statement, as third argument of AC_TRY_RUN.
37959         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37960         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37961         Likewise.
37962         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37963         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37964         Likewise.
37965         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37966         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37967         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37968
37969 2009-04-20  Bruno Haible  <bruno@clisp.org>
37970
37971         Avoid test failure on mingw.
37972         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37973
37974 2009-04-20  Bruno Haible  <bruno@clisp.org>
37975
37976         Avoid compilation error on mingw.
37977         * modules/localename-tests (Depends-on): Add locale.
37978
37979 2009-04-19  Bruno Haible  <bruno@clisp.org>
37980
37981         Support for building a shared library on Windows platforms.
37982         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37983         (main): Test the presence of UNINORM_NFC here.
37984         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37985         (main): Test the presence of UNINORM_NFD here.
37986         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37987         (main): Test the presence of UNINORM_NFKC here.
37988         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37989         (main): Test the presence of UNINORM_NFKD here.
37990
37991 2009-04-19  Bruno Haible  <bruno@clisp.org>
37992
37993         Avoid a compiler warning.
37994         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37995         Change type of variable 'sequence'.
37996
37997 2009-04-19  Bruno Haible  <bruno@clisp.org>
37998
37999         * modules/configmake (Makefile.am): When the contents of configmake.h
38000         does not change, arrange to preserve its modification time.
38001
38002 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38003
38004         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38005         gettext domain.
38006
38007 2009-04-16  Jim Meyering  <meyering@redhat.com>
38008
38009         useless-if-before-free: improve conversion code
38010         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38011         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38012
38013 2009-04-14  Bruno Haible  <bruno@clisp.org>
38014
38015         * modules/fcntl (Depends-on): Add extensions.
38016         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38017
38018 2009-04-12  Ben Pfaff  <blp@gnu.org>
38019
38020         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38021         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38022
38023 2009-03-20  Ben Pfaff  <blp@gnu.org>
38024
38025         Make rename replace existing destinations on Windows.
38026         * m4/rename.m4: Add test for Mingw.
38027         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38028         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38029         * doc/posix-functions/rename.texi: Document.
38030
38031 2009-04-10  Bruno Haible  <bruno@clisp.org>
38032
38033         New include file "iconveh.h".
38034         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38035         * lib/striconveh.h: Include it.
38036         (enum iconv_ilseq_handler): Remove definition.
38037         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38038         striconveh.h.
38039         * lib/striconveha.c: Include striconveh.h.
38040         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38041         * modules/striconveh (Files): Add lib/iconveh.h.
38042         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38043         lib/striconveh.h.
38044
38045 2009-04-10  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/uniconv.h: Update comment.
38048
38049 2009-04-10  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38052         always.
38053         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38054         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38055         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38056         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38057         "unistring-notinline.h", so that the function gets defined always.
38058         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38059         * lib/unistr/u8-uctomb.c: Likewise.
38060         * lib/unistr/u16-mbtouc.c: Likewise.
38061         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38062         * lib/unistr/u16-uctomb.c: Likewise.
38063         * lib/unistr/u32-mbtouc.c: Likewise.
38064         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38065         * lib/unistr/u32-uctomb.c: Likewise.
38066
38067 2009-04-10  Bruno Haible  <bruno@clisp.org>
38068
38069         Mark 'utime' obsolete.
38070         * modules/utime (Status, Notice): New sections.
38071         Suggested by Jim Meyering.
38072
38073         Fix cross-compile guess for utime test.
38074         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38075         autoconf.
38076         * doc/posix-functions/utime.texi: Give more precisions.
38077         Reported by Jan <ipif@ymail.com>.
38078
38079 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38080
38081         filevercmp: correct today's change
38082         * lib/filevercmp.c: Also handle coreutils' test inputs.
38083         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38084
38085         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38086         for reporting it.
38087         * lib/filevercmp.c: Special handle for "", "." and "..".
38088         * tests/test-filevercmp.c: Enlarge the set suite.
38089
38090 2009-04-07  Jim Meyering  <meyering@redhat.com>
38091
38092         useless-if-before-free: show how to remove braced useless free, too
38093         * build-aux/useless-if-before-free: still only in a comment, though.
38094
38095 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38096
38097         maint.mk: import changes to syntax-check macros from coreutils
38098         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38099         Use them in the relevant macros.
38100
38101 2009-04-06  Bruno Haible  <bruno@clisp.org>
38102
38103         Fix unportable use of bit-fields.
38104         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38105         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38106         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38107
38108 2009-04-06  Bruno Haible  <bruno@clisp.org>
38109
38110         Avoid test failures on AIX and OSF/1.
38111         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38112         that malloc(0) = NULL.
38113         * tests/unicase/test-u8-tolower.c (check): Likewise.
38114         * tests/unicase/test-u8-totitle.c (check): Likewise.
38115         * tests/unicase/test-u8-toupper.c (check): Likewise.
38116         * tests/unicase/test-u16-casefold.c (check): Likewise.
38117         * tests/unicase/test-u16-tolower.c (check): Likewise.
38118         * tests/unicase/test-u16-totitle.c (check): Likewise.
38119         * tests/unicase/test-u16-toupper.c (check): Likewise.
38120         * tests/unicase/test-u32-casefold.c (check): Likewise.
38121         * tests/unicase/test-u32-tolower.c (check): Likewise.
38122         * tests/unicase/test-u32-totitle.c (check): Likewise.
38123         * tests/unicase/test-u32-toupper.c (check): Likewise.
38124         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38125         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38126         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38127         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38128         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38129         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38130         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38131         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38132         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38133         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38134         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38135         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38136
38137 2009-04-05  Bruno Haible  <bruno@clisp.org>
38138
38139         Work around an autoconf limitation.
38140         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38141         comment line if it would be longer than 3 KB.
38142
38143 2009-04-05  Bruno Haible  <bruno@clisp.org>
38144
38145         Avoid test failure with libiconv-1.13.
38146         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38147         of the expected test results.
38148
38149 2009-04-05  Bruno Haible  <bruno@clisp.org>
38150
38151         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38152         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38153         that it should be installed.
38154
38155 2009-04-05  Bruno Haible  <bruno@clisp.org>
38156
38157         * gnulib-tool: New option --copy-file.
38158         (func_usage): Document it.
38159         (func_dest_tmpfilename): Moved out of func_import.
38160         (func_add_file, func_update_file): New functions, extracted from
38161         func_import.
38162         (func_import): Update.
38163
38164 2009-04-05  Karl Berry  <karl@gnu.org>
38165
38166         * README: prominently mention gnulib-tool.
38167         Rearrange sections so getting the code is near the top.
38168
38169 2009-04-05  Bruno Haible  <bruno@clisp.org>
38170
38171         * lib/unicase.h: Mention u*_cmp2.
38172         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38173         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38174         * lib/unicase/ulc-casecmp.c: Likewise.
38175         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38176         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38177         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38178         unistr/u8-cmp.
38179         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38180         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38181         unistr/u16-cmp.
38182         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38183         unistr/u32-cmp.
38184
38185         * lib/uninorm.h: Mention u*_cmp2.
38186         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38187         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38188         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38189         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38190         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38191         unistr/u8-cmp.
38192         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38193         unistr/u16-cmp.
38194         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38195         unistr/u32-cmp.
38196
38197         New module 'unistr/u32-cmp2'.
38198         * lib/unistr/u32-cmp2.c: New file.
38199         * modules/unistr/u32-cmp2: New file.
38200
38201         New module 'unistr/u16-cmp2'.
38202         * lib/unistr/u16-cmp2.c: New file.
38203         * modules/unistr/u16-cmp2: New file.
38204
38205         New module 'unistr/u8-cmp2'.
38206         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38207         * lib/unistr/u8-cmp2.c: New file.
38208         * lib/unistr/u-cmp2.h: New file.
38209         * modules/unistr/u8-cmp2: New file.
38210
38211 2009-04-05  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/unictype.h (uc_property_is_valid): New macro.
38214         * tests/unictype/test-pr_byname.c (main): Use it.
38215
38216         * lib/unistr.h: Doc fixes.
38217         * lib/uniconv.h: Doc fixes.
38218         * lib/unictype.h: Doc fixes.
38219
38220 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38221
38222         Port coreutils 7.2 to Solaris 8.
38223
38224         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38225         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38226         for Solaris 8.  This is a bit of a hack, as it means it's the
38227         caller's responsibility to add -lnsl if needed, but most likely it
38228         won't be needed since only getaddrinfo uses this and getaddrinfo
38229         isn't needed on Solaris 8.
38230
38231         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38232         problem to Solaris 8 encountered with coreutils 7.2, which
38233         resulted in a message "fnmatch.c:292: warning: passing argument 4
38234         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38235         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38236
38237 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38238
38239         * m4/ld-version-script.m4: Add FIXME comment.
38240
38241 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38242
38243         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38244         SOVERSION variable.
38245
38246 2009-04-02  Bruno Haible  <bruno@clisp.org>
38247
38248         * Makefile (info, html, dvi, pdf): Combine the rules.
38249         Suggested by Jim Meyering.
38250
38251 2009-04-01  Bruno Haible  <bruno@clisp.org>
38252
38253         * Makefile (info, html, dvi, pdf): New targets.
38254         Reported by Reuben Thomas <rrt@sc3d.org>.
38255
38256 2009-04-01  Bruno Haible  <bruno@clisp.org>
38257
38258         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38259         can be put into PATH.
38260         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38261
38262 2009-04-01  Bruno Haible  <bruno@clisp.org>
38263
38264         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38265
38266 2009-04-01  Bruno Haible  <bruno@clisp.org>
38267
38268         Rename module 'visibility'.
38269         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38270         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38271         * doc/gnulib.texi: Update.
38272         * MODULES.html.sh (Misc): Update.
38273         * NEWS: Mention the change.
38274
38275 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38276
38277         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38278         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38279         Eric Blake <ebb9@byu.net> for review.
38280         * MODULES.html.sh: Add lib-msvc-compat.
38281         * doc/gnulib.texi: Link to new section.
38282         * m4/ld-output-def.m4: New file.
38283         * doc/ld-output-def.texi: New file.
38284
38285 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38286
38287         Rename ld-version-script to lib-symbol-versions.  Suggested by
38288         Bruno Haible <bruno@clisp.org>.
38289         * modules/ld-version-script: Renamed to lib-symbol-versions.
38290         * doc/ld-version-script.texi: Fix module name.
38291         * MODULES.html.sh: Add lib-symbol-versions.
38292
38293 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38294
38295         * modules/u64-tests: New file.
38296         * tests/test-u64.c: New file.
38297
38298 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38299
38300         * MODULES.html.sh: Mention u64.
38301         * modules/u64: New module.
38302         * modules/crypto/sha512: Depend on u64 module instead of providing
38303         u64.h.
38304
38305 2009-03-27  Eric Blake  <ebb9@byu.net>
38306
38307         test-strerror: make debugging EAI_SYSTEM easier
38308         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38309         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38310         failure was EAI_SYSTEM.
38311
38312 2009-03-25  Bruno Haible  <bruno@clisp.org>
38313
38314         Fix a problem with --enable-relocatable on Solaris 7.
38315         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38316         since 2008-02-24.
38317
38318 2009-03-25  Eric Blake  <ebb9@byu.net>
38319
38320         test-sockets: avoid gcc warning
38321         * tests/test-sockets.c (main): Silence compiler warning.
38322
38323 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38324
38325         New modules nproc, pthread, contributed by Glen Lenker.
38326
38327         * MODULES.html.sh: Add pthread, nproc.
38328         * lib/nproc.c: New file.
38329         * lib/nproc.h: New file.
38330         * lib/pthread.in.h: New file.
38331         * m4/pthread.m4: New file.
38332         * modules/nproc: New file.
38333         * modules/pthread: New file.
38334
38335 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38336
38337         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38338         New variable.
38339
38340 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38341
38342         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38343         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38344         * tests/test-filevercmp.c: Add tests for backup suffixes.
38345
38346 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38347
38348         * modules/stdlib (Depends-on): Add stdint, needed when defining
38349         struct random_data on, for example, HP-UX 10.20.  Reported by
38350         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38351
38352 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38353
38354         * lib/readline.c (readline): Call fflush on stdout after printing
38355         prompt.
38356
38357 2009-03-20  Bruno Haible  <bruno@clisp.org>
38358
38359         Remove dependency from 'close' module to -lws2_32 on native Windows.
38360         * lib/close-hook.h: New file.
38361         * lib/close-hook.c: New file.
38362         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38363         w32sock.h.
38364         (_gl_close_fd_maybe_socket): Remove function.
38365         (rpl_close): Invoke execute_all_close_hooks instead of
38366         _gl_close_fd_maybe_socket.
38367         * lib/sockets.c: Include close-hook.h, w32sock.h.
38368         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38369         (close_sockets_hook): New variable.
38370         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38371         (gl_sockets_cleanup): Unregister it.
38372         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38373         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38374         * modules/close-hook: New file.
38375         * modules/close (Files): Remove lib/w32sock.h.
38376         (Depends-on): Add close-hook.
38377         (Link): Remove section.
38378         * modules/sockets (Files): Add lib/w32sock.h.
38379         (Depends-on): Add close-hook.
38380         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38381         invocation.
38382         * NEWS: Mention that LIB_CLOSE is gone.
38383
38384 2009-03-23  Eric Blake  <ebb9@byu.net>
38385
38386         signal-tests: test previous patch
38387         * tests/test-signal.c: New file.
38388         * modules/signal-tests: Likewise.
38389
38390         signal.h: always support 'volatile sig_atomic_t'
38391         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38392         (gl_SIGNAL_H_DEFAULTS): Add a default.
38393         * modules/signal (Makefile.am): Substitute if needed.
38394         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38395         users can blindly add volatile.
38396         * doc/posix-headers/signal.texi (signal.h): Document it.
38397         Reported by Matthew Woehlke.
38398
38399 2009-03-23  Jim Meyering  <meyering@redhat.com>
38400
38401         pathmax: PATH_MAX: use pathconf only when available
38402         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38403         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38404         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38405         This avoids a link failure in a PSP cross-compilation environment
38406         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38407
38408         * lib/vasnprintf.c (divide): Fix typo in comment.
38409
38410 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38411
38412         * gnulib-tool (func_filter_filelist): Fix comment.
38413
38414 2009-03-20  Bruno Haible  <bruno@clisp.org>
38415
38416         Make sockets.h self-contained.
38417         * lib/sockets.c: Include sockets.h first.
38418         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38419
38420 2009-03-19  Eric Blake  <ebb9@byu.net>
38421
38422         doc: mention more functions added in cygwin 1.7.0
38423         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38424         addition.
38425         * doc/posix-functions/log2f.texi: Likewise.
38426
38427 2009-03-19  Jim Meyering  <meyering@redhat.com>
38428
38429         fsusage: avoid syntax error due to statement-before-declaration
38430         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38431         after all declarations.  Reported by Matthew Woehlke in
38432         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38433
38434 2009-03-18  Eric Blake  <ebb9@byu.net>
38435
38436         build-aux/compile: sync from automake
38437         * build-aux/compile: New file, from automake.
38438         * config/srclist.txt: Mention build-aux/compile.
38439
38440 2009-03-17  Bruno Haible  <bruno@clisp.org>
38441
38442         * lib/git-merge-changelog.c: Fix typo in comment.
38443         Reported by Reuben Thomas <rrt@sc3d.org>.
38444
38445 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38446
38447         * m4/regex.m4: update and improve help for
38448         --without-included-regex.
38449
38450 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38451
38452         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38453         failure on missing include files.
38454
38455 2009-03-17  Eric Blake  <ebb9@byu.net>
38456
38457         doc: mention more functions added in cygwin 1.7.0
38458         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38459         addition.
38460         * doc/posix-functions/fwscanf.texi: Likewise.
38461         * doc/posix-functions/swprintf.texi: Likewise.
38462         * doc/posix-functions/swscanf.texi: Likewise.
38463         * doc/posix-functions/vfwprintf.texi: Likewise.
38464         * doc/posix-functions/vfwscanf.texi: Likewise.
38465         * doc/posix-functions/vswprintf.texi: Likewise.
38466         * doc/posix-functions/vswscanf.texi: Likewise.
38467         * doc/posix-functions/vwprintf.texi: Likewise.
38468         * doc/posix-functions/vwscanf.texi: Likewise.
38469         * doc/posix-functions/wcscasecmp.texi: Likewise.
38470         * doc/posix-functions/wcsdup.texi: Likewise.
38471         * doc/posix-functions/wcsftime.texi: Likewise.
38472         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38473         * doc/posix-functions/wprintf.texi: Likewise.
38474         * doc/posix-functions/wscanf.texi: Likewise.
38475         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38476
38477 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38478
38479         maint.mk: really add $(AM_MAKEFLAGS)
38480         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38481         was inadvertently omitted in the last commit.
38482         Spotted by Bruno Haible.
38483
38484         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38485         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38486         $(AM_MAKEFLAGS)' rather than plain `make'.
38487
38488         gnulib-tool: execute $MAKE not make
38489         * gnulib-tool: Default $MAKE to 'make'.
38490         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38491         than make.  Initialize $MAKE in the do-autobuild script.
38492
38493         gnulib-tool: use $MAKE not make in generated files
38494         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38495         make, in generated files.  Initialize $MAKE in the do-autobuild
38496         script.
38497
38498         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38499
38500         GNUmakefile: disable parallelism only for multiple, recursive targets
38501         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38502         additions in the Makefile.
38503         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38504         by Automake.
38505         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38506         are listed on the command line and at least one of them is
38507         listed in $(ALL_RECURSIVE_TARGETS).
38508
38509 2009-03-14  Bruno Haible  <bruno@clisp.org>
38510
38511         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38512         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38513         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38514         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38515         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38516         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38517         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38518         unistr/u8-uctomb.
38519         * modules/unistr/u8-strchr (Depends-on): Likewise.
38520         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38521         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38522         unistr/u16-uctomb.
38523         * modules/unistr/u16-strchr (Depends-on): Likewise.
38524         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38525
38526 2009-03-12  Bruno Haible  <bruno@clisp.org>
38527
38528         Work around select() bug on Interix 3.5.
38529         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38530         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38531         * m4/select.m4: New file.
38532         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38533         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38534         * modules/select (Files): Add m4/select.m4.
38535         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38536         * modules/nanosleep (Depends-on): Add select.
38537         * modules/poll (Depends-on): Likewise.
38538         * doc/posix-functions/select.texi: Mention the Interix bug.
38539         Reported by Markus Duft <mduft@gentoo.org>.
38540
38541         * lib/select.c: Renamed from lib/winsock-select.c.
38542         * modules/select (Files): Add lib/select.c, remove
38543         lib/winsock-select.c.
38544         (configure.ac): Update.
38545
38546 2009-03-12  Jim Meyering  <meyering@redhat.com>
38547
38548         avoid gcc warnings about unused macro definitions
38549         * lib/readtokens.c (STREQ): Remove unused definition.
38550         * lib/xmalloc.c (SIZE_MAX): Likewise.
38551         * lib/openat-die.c (N_): Likewise.
38552         * lib/mountlist.c (SIZE_MAX): Remove definition.
38553         Instead, include <stdint.h>.
38554         * lib/readutmp.c: Likewise.
38555         * modules/readutmp (Depends-on): Add stdint.
38556         * modules/mountlist (Depends-on): Add stdint.
38557         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38558
38559 2009-03-10  Bruno Haible  <bruno@clisp.org>
38560
38561         Tests for module 'mbmemcasecoll'.
38562         * modules/mbmemcasecoll-tests: New file.
38563         * tests/test-mbmemcasecoll1.sh: New file.
38564         * tests/test-mbmemcasecoll2.sh: New file.
38565         * tests/test-mbmemcasecoll3.sh: New file.
38566         * tests/test-mbmemcasecoll.c: New file.
38567
38568         New module 'mbmemcasecoll'.
38569         * lib/mbmemcasecoll.h: New file.
38570         * lib/mbmemcasecoll.c: New file.
38571         * modules/mbmemcasecoll: New file.
38572
38573         * tests/test-mbmemcasecmp.h: New file, extracted from
38574         tests/test-mbmemcasecmp.c.
38575         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38576         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38577         (main): Update.
38578         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38579
38580 2009-03-09  Bruno Haible  <bruno@clisp.org>
38581
38582         Tests for module 'mbmemcasecmp'.
38583         * modules/mbmemcasecmp-tests: New file.
38584         * tests/test-mbmemcasecmp1.sh: New file.
38585         * tests/test-mbmemcasecmp2.sh: New file.
38586         * tests/test-mbmemcasecmp3.sh: New file.
38587         * tests/test-mbmemcasecmp.c: New file.
38588
38589         New module 'mbmemcasecmp'.
38590         * lib/mbmemcasecmp.h: New file.
38591         * lib/mbmemcasecmp.c: New file.
38592         * modules/mbmemcasecmp: New file.
38593
38594 2009-03-09  Bruno Haible  <bruno@clisp.org>
38595
38596         Tests for module 'unicase/ulc-casecoll'.
38597         * modules/unicase/ulc-casecoll-tests: New file.
38598         * tests/unicase/test-ulc-casecoll1.sh: New file.
38599         * tests/unicase/test-ulc-casecoll2.sh: New file.
38600         * tests/unicase/test-ulc-casecoll.c: New file.
38601
38602         New module 'unicase/ulc-casecoll'.
38603         * lib/unicase.h (ulc_casecoll): New declaration.
38604         * lib/unicase/ulc-casecoll.c: New file.
38605         * modules/unicase/ulc-casecoll: New file.
38606
38607         New module 'unicase/ulc-casexfrm'.
38608         * lib/unicase.h (ulc_casexfrm): New declaration.
38609         * lib/unicase/ulc-casexfrm.c: New file.
38610         * modules/unicase/ulc-casexfrm: New file.
38611
38612 2009-03-09  Bruno Haible  <bruno@clisp.org>
38613
38614         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38615         invocations.
38616
38617         * m4/mbscasecmp.m4: Remove file.
38618         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38619         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38620
38621         * m4/mbscasestr.m4: Remove file.
38622         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38623         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38624
38625         * m4/mbschr.m4: Remove file.
38626         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38627         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38628
38629         * m4/mbscspn.m4: Remove file.
38630         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38631         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38632
38633         * m4/mbslen.m4: Remove file.
38634         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38635         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38636
38637         * m4/mbsncasecmp.m4: Remove file.
38638         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38639         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38640
38641         * m4/mbsnlen.m4: Remove file.
38642         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38643         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38644
38645         * m4/mbspbrk.m4: Remove file.
38646         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38647         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38648
38649         * m4/mbspcasecmp.m4: Remove file.
38650         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38651         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38652
38653         * m4/mbsrchr.m4: Remove file.
38654         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38655         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38656
38657         * m4/mbssep.m4: Remove file.
38658         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38659         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38660
38661         * m4/mbsspn.m4: Remove file.
38662         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38663         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38664
38665         * m4/mbsstr.m4: Remove file.
38666         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38667         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38668
38669         * m4/mbstok_r.m4: Remove file.
38670         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38671         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38672
38673         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38674
38675         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38676         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38677
38678         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38679
38680 2009-03-08  Bruno Haible  <bruno@clisp.org>
38681
38682         Tests for module 'unicase/ulc-casecmp'.
38683         * modules/unicase/ulc-casecmp-tests: New file.
38684         * tests/unicase/test-ulc-casecmp1.sh: New file.
38685         * tests/unicase/test-ulc-casecmp2.sh: New file.
38686         * tests/unicase/test-ulc-casecmp.c: New file.
38687
38688         New module 'unicase/ulc-casecmp'.
38689         * lib/unicase.h (ulc_casecmp): New declaration.
38690         * lib/unicase/ulc-casecmp.c: New file.
38691         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38692         'const SRC_UNIT *'.
38693         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38694         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38695         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38696         * modules/unicase/ulc-casecmp: New file.
38697
38698         Tests for module 'unicase/u32-is-cased'.
38699         * modules/unicase/u32-is-cased-tests: New file.
38700         * tests/unicase/test-u32-is-cased.c: New file.
38701
38702         Tests for module 'unicase/u16-is-cased'.
38703         * modules/unicase/u16-is-cased-tests: New file.
38704         * tests/unicase/test-u16-is-cased.c: New file.
38705
38706         Tests for module 'unicase/u8-is-cased'.
38707         * modules/unicase/u8-is-cased-tests: New file.
38708         * tests/unicase/test-u8-is-cased.c: New file.
38709         * tests/unicase/test-is-cased.h: New file.
38710
38711         New module 'unicase/u32-is-cased'.
38712         * lib/unicase/u32-is-cased.c: New file.
38713         * modules/unicase/u32-is-cased: New file.
38714
38715         New module 'unicase/u16-is-cased'.
38716         * lib/unicase/u16-is-cased.c: New file.
38717         * modules/unicase/u16-is-cased: New file.
38718
38719         New module 'unicase/u8-is-cased'.
38720         * lib/unicase/u8-is-cased.c: New file.
38721         * lib/unicase/u-is-cased.h: New file.
38722         * modules/unicase/u8-is-cased: New file.
38723
38724         Tests for module 'unicase/u32-is-casefolded'.
38725         * modules/unicase/u32-is-casefolded-tests: New file.
38726         * tests/unicase/test-u32-is-casefolded.c: New file.
38727
38728         Tests for module 'unicase/u16-is-casefolded'.
38729         * modules/unicase/u16-is-casefolded-tests: New file.
38730         * tests/unicase/test-u16-is-casefolded.c: New file.
38731
38732         Tests for module 'unicase/u8-is-casefolded'.
38733         * modules/unicase/u8-is-casefolded-tests: New file.
38734         * tests/unicase/test-u8-is-casefolded.c: New file.
38735         * tests/unicase/test-is-casefolded.h: New file.
38736
38737         New module 'unicase/u32-is-casefolded'.
38738         * lib/unicase/u32-is-casefolded.c: New file.
38739         * modules/unicase/u32-is-casefolded: New file.
38740
38741         New module 'unicase/u16-is-casefolded'.
38742         * lib/unicase/u16-is-casefolded.c: New file.
38743         * modules/unicase/u16-is-casefolded: New file.
38744
38745         New module 'unicase/u8-is-casefolded'.
38746         * lib/unicase/u8-is-casefolded.c: New file.
38747         * modules/unicase/u8-is-casefolded: New file.
38748
38749         Tests for module 'unicase/u32-is-titlecase'.
38750         * modules/unicase/u32-is-titlecase-tests: New file.
38751         * tests/unicase/test-u32-is-titlecase.c: New file.
38752
38753         Tests for module 'unicase/u16-is-titlecase'.
38754         * modules/unicase/u16-is-titlecase-tests: New file.
38755         * tests/unicase/test-u16-is-titlecase.c: New file.
38756
38757         Tests for module 'unicase/u8-is-titlecase'.
38758         * modules/unicase/u8-is-titlecase-tests: New file.
38759         * tests/unicase/test-u8-is-titlecase.c: New file.
38760         * tests/unicase/test-is-titlecase.h: New file.
38761
38762         New module 'unicase/u32-is-titlecase'.
38763         * lib/unicase/u32-is-titlecase.c: New file.
38764         * modules/unicase/u32-is-titlecase: New file.
38765
38766         New module 'unicase/u16-is-titlecase'.
38767         * lib/unicase/u16-is-titlecase.c: New file.
38768         * modules/unicase/u16-is-titlecase: New file.
38769
38770         New module 'unicase/u8-is-titlecase'.
38771         * lib/unicase/u8-is-titlecase.c: New file.
38772         * modules/unicase/u8-is-titlecase: New file.
38773
38774         Tests for module 'unicase/u32-is-lowercase'.
38775         * modules/unicase/u32-is-lowercase-tests: New file.
38776         * tests/unicase/test-u32-is-lowercase.c: New file.
38777
38778         Tests for module 'unicase/u16-is-lowercase'.
38779         * modules/unicase/u16-is-lowercase-tests: New file.
38780         * tests/unicase/test-u16-is-lowercase.c: New file.
38781
38782         Tests for module 'unicase/u8-is-lowercase'.
38783         * modules/unicase/u8-is-lowercase-tests: New file.
38784         * tests/unicase/test-u8-is-lowercase.c: New file.
38785         * tests/unicase/test-is-lowercase.h: New file.
38786
38787         New module 'unicase/u32-is-lowercase'.
38788         * lib/unicase/u32-is-lowercase.c: New file.
38789         * modules/unicase/u32-is-lowercase: New file.
38790
38791         New module 'unicase/u16-is-lowercase'.
38792         * lib/unicase/u16-is-lowercase.c: New file.
38793         * modules/unicase/u16-is-lowercase: New file.
38794
38795         New module 'unicase/u8-is-lowercase'.
38796         * lib/unicase/u8-is-lowercase.c: New file.
38797         * modules/unicase/u8-is-lowercase: New file.
38798
38799         Tests for module 'unicase/u32-is-uppercase'.
38800         * modules/unicase/u32-is-uppercase-tests: New file.
38801         * tests/unicase/test-u32-is-uppercase.c: New file.
38802
38803         Tests for module 'unicase/u16-is-uppercase'.
38804         * modules/unicase/u16-is-uppercase-tests: New file.
38805         * tests/unicase/test-u16-is-uppercase.c: New file.
38806
38807         Tests for module 'unicase/u8-is-uppercase'.
38808         * modules/unicase/u8-is-uppercase-tests: New file.
38809         * tests/unicase/test-u8-is-uppercase.c: New file.
38810         * tests/unicase/test-is-uppercase.h: New file.
38811
38812         New module 'unicase/u32-is-uppercase'.
38813         * lib/unicase/u32-is-uppercase.c: New file.
38814         * modules/unicase/u32-is-uppercase: New file.
38815
38816         New module 'unicase/u16-is-uppercase'.
38817         * lib/unicase/u16-is-uppercase.c: New file.
38818         * modules/unicase/u16-is-uppercase: New file.
38819
38820         New module 'unicase/u8-is-uppercase'.
38821         * lib/unicase/u8-is-uppercase.c: New file.
38822         * modules/unicase/u8-is-uppercase: New file.
38823
38824         New module 'unicase/u32-is-invariant'.
38825         * lib/unicase/u32-is-invariant.c: New file.
38826         * modules/unicase/u32-is-invariant: New file.
38827
38828         New module 'unicase/u16-is-invariant'.
38829         * lib/unicase/u16-is-invariant.c: New file.
38830         * modules/unicase/u16-is-invariant: New file.
38831
38832         New module 'unicase/u8-is-invariant'.
38833         * lib/unicase/u8-is-invariant.c: New file.
38834         * lib/unicase/invariant.h: New file.
38835         * lib/unicase/u-is-invariant.h: New file.
38836         * modules/unicase/u8-is-invariant: New file.
38837
38838         Tests for module 'unicase/u32-casecoll'.
38839         * modules/unicase/u32-casecoll-tests: New file.
38840         * tests/unicase/test-u32-casecoll.c: New file.
38841
38842         Tests for module 'unicase/u16-casecoll'.
38843         * modules/unicase/u16-casecoll-tests: New file.
38844         * tests/unicase/test-u16-casecoll.c: New file.
38845
38846         Tests for module 'unicase/u8-casecoll'.
38847         * modules/unicase/u8-casecoll-tests: New file.
38848         * tests/unicase/test-u8-casecoll.c: New file.
38849
38850         New module 'unicase/u32-casecoll'.
38851         * lib/unicase/u32-casecoll.c: New file.
38852         * modules/unicase/u32-casecoll: New file.
38853
38854         New module 'unicase/u16-casecoll'.
38855         * lib/unicase/u16-casecoll.c: New file.
38856         * modules/unicase/u16-casecoll: New file.
38857
38858         New module 'unicase/u8-casecoll'.
38859         * lib/unicase/u8-casecoll.c: New file.
38860         * lib/unicase/u-casecoll.h: New file.
38861         * modules/unicase/u8-casecoll: New file.
38862
38863         New module 'unicase/u32-casexfrm'.
38864         * lib/unicase/u32-casexfrm.c: New file.
38865         * modules/unicase/u32-casexfrm: New file.
38866
38867         New module 'unicase/u16-casexfrm'.
38868         * lib/unicase/u16-casexfrm.c: New file.
38869         * modules/unicase/u16-casexfrm: New file.
38870
38871         New module 'unicase/u8-casexfrm'.
38872         * lib/unicase/u8-casexfrm.c: New file.
38873         * lib/unicase/u-casexfrm.h: New file.
38874         * modules/unicase/u8-casexfrm: New file.
38875
38876         Tests for module 'unicase/u32-casecmp'.
38877         * modules/unicase/u32-casecmp-tests: New file.
38878         * tests/unicase/test-u32-casecmp.c: New file.
38879
38880         Tests for module 'unicase/u16-casecmp'.
38881         * modules/unicase/u16-casecmp-tests: New file.
38882         * tests/unicase/test-u16-casecmp.c: New file.
38883
38884         Tests for module 'unicase/u8-casecmp'.
38885         * modules/unicase/u8-casecmp-tests: New file.
38886         * tests/unicase/test-u8-casecmp.c: New file.
38887         * tests/unicase/test-casecmp.h: New file.
38888
38889         New module 'unicase/u32-casecmp'.
38890         * lib/unicase/u32-casecmp.c: New file.
38891         * modules/unicase/u32-casecmp: New file.
38892
38893         New module 'unicase/u16-casecmp'.
38894         * lib/unicase/u16-casecmp.c: New file.
38895         * modules/unicase/u16-casecmp: New file.
38896
38897         New module 'unicase/u8-casecmp'.
38898         * lib/unicase/u8-casecmp.c: New file.
38899         * lib/unicase/u-casecmp.h: New file.
38900         * modules/unicase/u8-casecmp: New file.
38901
38902         Tests for module 'unicase/u32-casefold'.
38903         * modules/unicase/u32-casefold-tests: New file.
38904         * tests/unicase/test-u32-casefold.c: New file.
38905
38906         Tests for module 'unicase/u16-casefold'.
38907         * modules/unicase/u16-casefold-tests: New file.
38908         * tests/unicase/test-u16-casefold.c: New file.
38909
38910         Tests for module 'unicase/u8-casefold'.
38911         * modules/unicase/u8-casefold-tests: New file.
38912         * tests/unicase/test-u8-casefold.c: New file.
38913
38914         New module 'unicase/u32-casefold'.
38915         * lib/unicase/u32-casefold.c: New file.
38916         * modules/unicase/u32-casefold: New file.
38917
38918         New module 'unicase/u16-casefold'.
38919         * lib/unicase/u16-casefold.c: New file.
38920         * modules/unicase/u16-casefold: New file.
38921
38922         New module 'unicase/u8-casefold'.
38923         * lib/unicase/u8-casefold.c: New file.
38924         * lib/unicase/u-casefold.h: New file.
38925         * modules/unicase/u8-casefold: New file.
38926
38927         New module 'unicase/tocasefold'.
38928         * lib/unicase/casefold.h: New file.
38929         * lib/unicase/tocasefold.c: New file.
38930         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38931         * modules/unicase/tocasefold: New file.
38932
38933         Tests for module 'unicase/u32-totitle'.
38934         * modules/unicase/u32-totitle-tests: New file.
38935         * tests/unicase/test-u32-totitle.c: New file.
38936
38937         Tests for module 'unicase/u16-totitle'.
38938         * modules/unicase/u16-totitle-tests: New file.
38939         * tests/unicase/test-u16-totitle.c: New file.
38940
38941         Tests for module 'unicase/u8-totitle'.
38942         * modules/unicase/u8-totitle-tests: New file.
38943         * tests/unicase/test-u8-totitle.c: New file.
38944
38945         New module 'unicase/u32-totitle'.
38946         * lib/unicase/u32-totitle.c: New file.
38947         * modules/unicase/u32-totitle: New file.
38948
38949         New module 'unicase/u16-totitle'.
38950         * lib/unicase/u16-totitle.c: New file.
38951         * modules/unicase/u16-totitle: New file.
38952
38953         New module 'unicase/u8-totitle'.
38954         * lib/unicase/u8-totitle.c: New file.
38955         * lib/unicase/u-totitle.h: New file.
38956         * modules/unicase/u8-totitle: New file.
38957
38958         Tests for module 'unicase/u32-tolower'.
38959         * modules/unicase/u32-tolower-tests: New file.
38960         * tests/unicase/test-u32-tolower.c: New file.
38961
38962         Tests for module 'unicase/u16-tolower'.
38963         * modules/unicase/u16-tolower-tests: New file.
38964         * tests/unicase/test-u16-tolower.c: New file.
38965
38966         Tests for module 'unicase/u8-tolower'.
38967         * modules/unicase/u8-tolower-tests: New file.
38968         * tests/unicase/test-u8-tolower.c: New file.
38969
38970         New module 'unicase/u32-tolower'.
38971         * lib/unicase/u32-tolower.c: New file.
38972         * modules/unicase/u32-tolower: New file.
38973
38974         New module 'unicase/u16-tolower'.
38975         * lib/unicase/u16-tolower.c: New file.
38976         * modules/unicase/u16-tolower: New file.
38977
38978         New module 'unicase/u8-tolower'.
38979         * lib/unicase/u8-tolower.c: New file.
38980         * modules/unicase/u8-tolower: New file.
38981
38982         Tests for module 'unicase/u32-toupper'.
38983         * modules/unicase/u32-toupper-tests: New file.
38984         * tests/unicase/test-u32-toupper.c: New file.
38985
38986         Tests for module 'unicase/u16-toupper'.
38987         * modules/unicase/u16-toupper-tests: New file.
38988         * tests/unicase/test-u16-toupper.c: New file.
38989
38990         Tests for module 'unicase/u8-toupper'.
38991         * modules/unicase/u8-toupper-tests: New file.
38992         * tests/unicase/test-u8-toupper.c: New file.
38993
38994         New module 'unicase/u32-toupper'.
38995         * lib/unicase/u32-toupper.c: New file.
38996         * modules/unicase/u32-toupper: New file.
38997
38998         New module 'unicase/u16-toupper'.
38999         * lib/unicase/u16-toupper.c: New file.
39000         * modules/unicase/u16-toupper: New file.
39001
39002         New module 'unicase/u8-toupper'.
39003         * lib/unicase/u8-toupper.c: New file.
39004         * modules/unicase/u8-toupper: New file.
39005
39006         New module 'unicase/u32-casemap'.
39007         * lib/unicase/u32-casemap.c: New file.
39008         * modules/unicase/u32-casemap: New file.
39009
39010         New module 'unicase/u16-casemap'.
39011         * lib/unicase/u16-casemap.c: New file.
39012         * modules/unicase/u16-casemap: New file.
39013
39014         New module 'unicase/u8-casemap'.
39015         * lib/unicase/unicasemap.h: New file.
39016         * lib/unicase/u8-casemap.c: New file.
39017         * lib/unicase/u-casemap.h: New file.
39018         * modules/unicase/u8-casemap: New file.
39019
39020         New module 'unicase/special-casing'.
39021         * lib/unicase/special-casing.h: New file.
39022         * lib/unicase/special-casing.c: New file.
39023         * lib/unicase/special-casing-table.gperf: New file, generated by
39024         gen-uni-tables.c.
39025         * modules/unicase/special-casing: New file.
39026
39027         Tests for module 'unicase/locale-language'.
39028         * modules/unicase/locale-language-tests: New file.
39029         * tests/unicase/test-locale-language.sh: New file.
39030         * tests/unicase/test-locale-language.c: New file.
39031
39032         New module 'unicase/locale-language'.
39033         * lib/unicase/locale-language.c: New file.
39034         * lib/unicase/locale-languages.gperf: New file.
39035         * modules/unicase/locale-language: New file.
39036
39037         Generate more tables for case conversion and case folding.
39038         * lib/gen-uni-tables.c (SCC_*): New enum items.
39039         (struct special_casing_rule): New type.
39040         (casing_rules, num_casing_rules, allocated_casing_rules): New
39041         variables.
39042         (add_casing_rule, fill_casing_rules): New functions.
39043         (struct casefold_rule): New type.
39044         (casefolding_rules, num_casefolding_rules,
39045         allocated_casefolding_rules): New variables.
39046         (fill_casefolding_rules): New function.
39047         (unicode_casefold): New variable.
39048         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39049         sort_casing_rules, output_casing_rules): New functions.
39050         (main): Accept to more arguments: SpecialCasing.txt and
39051         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39052         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39053         Output mapping for casefolding.
39054
39055         * lib/unicase.h: Include stdbool.h, uninorm.h.
39056         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39057         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39058         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39059         arguments.
39060         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39061         resultp arguments.
39062         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39063         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39064         resultp arguments.
39065         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39066         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39067         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39068         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39069         declarations.
39070         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39071
39072 2009-03-08  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39075         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39076         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39077         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39078
39079 2009-03-07  Bruno Haible  <bruno@clisp.org>
39080
39081         Adjust u*_normcmp, u*_normcoll API.
39082         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39083         u16_normcoll, u32_normcoll): Change failure conventions.
39084         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39085         errno and return -1.
39086         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39087
39088 2009-03-07  Bruno Haible  <bruno@clisp.org>
39089
39090         Tests for module 'uninorm/u32-normcoll'.
39091         * modules/uninorm/u32-normcoll-tests: New file.
39092         * tests/uninorm/test-u32-normcoll.c: New file.
39093
39094         Tests for module 'uninorm/u16-normcoll'.
39095         * modules/uninorm/u16-normcoll-tests: New file.
39096         * tests/uninorm/test-u16-normcoll.c: New file.
39097
39098         Tests for module 'uninorm/u8-normcoll'.
39099         * modules/uninorm/u8-normcoll-tests: New file.
39100         * tests/uninorm/test-u8-normcoll.c: New file.
39101
39102 2009-03-07  Bruno Haible  <bruno@clisp.org>
39103
39104         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39105         tests/uninorm/test-u32-normcmp.c.
39106         * tests/uninorm/test-u32-normcmp.c: Include it.
39107         (test_nonascii): New function, extracted from main. Add some more
39108         tests.
39109         (main): Invoke test_ascii and test_nonascii.
39110         * modules/uninorm/u32-normcmp-tests (Files): Add
39111         tests/uninorm/test-u32-normcmp.h.
39112         (Depends-on): Remove uninorm/u32-normcmp.
39113
39114         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39115         tests/uninorm/test-u16-normcmp.c.
39116         * tests/uninorm/test-u16-normcmp.c: Include it.
39117         (test_nonascii): New function, extracted from main. Add some more
39118         tests.
39119         (main): Invoke test_ascii and test_nonascii.
39120         * modules/uninorm/u16-normcmp-tests (Files): Add
39121         tests/uninorm/test-u16-normcmp.h.
39122         (Depends-on): Remove uninorm/u16-normcmp.
39123
39124         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39125         tests/uninorm/test-u8-normcmp.c.
39126         * tests/uninorm/test-u8-normcmp.c: Include it.
39127         (test_nonascii): New function, extracted from main. Add some more
39128         tests.
39129         (main): Invoke test_ascii and test_nonascii.
39130         * modules/uninorm/u8-normcmp-tests (Files): Add
39131         tests/uninorm/test-u8-normcmp.h.
39132         (Depends-on): Remove uninorm/u8-normcmp.
39133
39134 2009-03-07  Bruno Haible  <bruno@clisp.org>
39135
39136         New module 'uninorm/u32-normcoll'.
39137         * lib/uninorm/u32-normcoll.c: New file.
39138         * modules/uninorm/u32-normcoll: New file.
39139
39140         New module 'uninorm/u16-normcoll'.
39141         * lib/uninorm/u16-normcoll.c: New file.
39142         * modules/uninorm/u16-normcoll: New file.
39143
39144         New module 'uninorm/u8-normcoll'.
39145         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39146         declarations.
39147         * lib/uninorm/u8-normcoll.c: New file.
39148         * lib/uninorm/u-normcoll.h: New file.
39149         * modules/uninorm/u8-normcoll: New file.
39150
39151         New module 'uninorm/u32-normxfrm'.
39152         * lib/uninorm/u32-normxfrm.c: New file.
39153         * modules/uninorm/u32-normxfrm: New file.
39154
39155         New module 'uninorm/u16-normxfrm'.
39156         * lib/uninorm/u16-normxfrm.c: New file.
39157         * modules/uninorm/u16-normxfrm: New file.
39158
39159         New module 'uninorm/u8-normxfrm'.
39160         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39161         declarations.
39162         * lib/uninorm/u8-normxfrm.c: New file.
39163         * lib/uninorm/u-normxfrm.h: New file.
39164         * modules/uninorm/u8-normxfrm: New file.
39165
39166 2009-03-07  Bruno Haible  <bruno@clisp.org>
39167
39168         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39169         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39170         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39171
39172 2009-03-07  Bruno Haible  <bruno@clisp.org>
39173
39174         New module 'memxfrm'.
39175         * lib/memxfrm.h: New file.
39176         * lib/memxfrm.c: New file.
39177         * modules/memxfrm: New file.
39178
39179 2009-03-07  Bruno Haible  <bruno@clisp.org>
39180
39181         New module 'memcmp2'.
39182         * lib/memcmp2.h: New file.
39183         * lib/memcmp2.c: New file.
39184         * modules/memcmp2: New file.
39185
39186 2009-03-07  Bruno Haible  <bruno@clisp.org>
39187
39188         Tests for module 'uninorm/decomposing-form'.
39189         * modules/uninorm/decomposing-form-tests: New file.
39190         * tests/uninorm/test-decomposing-form.c: New file.
39191
39192         New module 'uninorm/decomposing-form'.
39193         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39194         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39195         Add 'decomposing_variant' field.
39196         * lib/uninorm/decomposing-form.c: New file.
39197         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39198         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39199         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39200         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39201         * modules/uninorm/decomposing-form: New file.
39202         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39203         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39204
39205 2009-03-07  Bruno Haible  <bruno@clisp.org>
39206
39207         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39208         strings.
39209
39210 2009-03-06  Bruno Haible  <bruno@clisp.org>
39211
39212         Tests for module 'uninorm/u32-normcmp'.
39213         * tests/uninorm/test-u32-normcmp.c: New file.
39214         * modules/uninorm/u32-normcmp-tests: New file.
39215
39216         Tests for module 'uninorm/u16-normcmp'.
39217         * tests/uninorm/test-u16-normcmp.c: New file.
39218         * modules/uninorm/u16-normcmp-tests: New file.
39219
39220         Tests for module 'uninorm/u8-normcmp'.
39221         * tests/uninorm/test-u8-normcmp.c: New file.
39222         * modules/uninorm/u8-normcmp-tests: New file.
39223
39224         New module 'uninorm/u32-normcmp'.
39225         * lib/uninorm/u32-normcmp.c: New file.
39226         * modules/uninorm/u32-normcmp: New file.
39227
39228         New module 'uninorm/u16-normcmp'.
39229         * lib/uninorm/u16-normcmp.c: New file.
39230         * modules/uninorm/u16-normcmp: New file.
39231
39232         New module 'uninorm/u8-normcmp'.
39233         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39234         declarations.
39235         * lib/uninorm/u8-normcmp.c: New file.
39236         * lib/uninorm/u-normcmp.h: New file.
39237         * modules/uninorm/u8-normcmp: New file.
39238
39239 2009-03-06  Bruno Haible  <bruno@clisp.org>
39240
39241         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39242         Reported by Eric Blake.
39243
39244 2009-03-06  Eric Blake  <ebb9@byu.net>
39245             Bruno Haible  <bruno@clisp.org>
39246
39247         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39248         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39249         condition.
39250         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39251         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39252         condition.
39253         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39254
39255 2009-03-06  Eric Blake  <ebb9@byu.net>
39256
39257         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39258         to avoid compiler warnings.
39259         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39260
39261 2009-03-05  Bruno Haible  <bruno@clisp.org>
39262
39263         * tests/test-ftell.c (main): Disable test beyond end of file on
39264         FreeMiNT.
39265         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39266
39267 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39268
39269         * lib/filevercmp.c: Move hidden files up in ordering.
39270         * tests/test-filevercmp.c: Add tests for hidden files.
39271
39272 2009-03-04  Bruno Haible  <bruno@clisp.org>
39273
39274         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39275         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39276         AM_CFLAGS.
39277         Reported by Simon Josefsson.
39278
39279 2009-03-03  Bruno Haible  <bruno@clisp.org>
39280
39281         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39282         Reported by Simon Josefsson.
39283
39284         * doc/ld-version-script.texi: Update node reference.
39285
39286 2009-03-03  Bruno Haible  <bruno@clisp.org>
39287
39288         * modules/visibility (License): Change to 'unlimited'.
39289         Suggested by Simon Josefsson.
39290
39291 2009-03-03  Jim Meyering  <meyering@redhat.com>
39292
39293         unlinkdir: cannot_unlink_dir may modify process state
39294         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39295         it's neither thread-safe nor appropriate for use in a library.
39296
39297 2009-03-03  Eric Blake  <ebb9@byu.net>
39298
39299         test-closein: silence test under Darwin
39300         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39301         care if it dies from EPIPE or EBADF.
39302
39303 2009-03-03  Bruno Haible  <bruno@clisp.org>
39304
39305         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39306         earlier.
39307         * doc/visibility.texi: Fix @node and @section.
39308
39309 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39310
39311         * doc/gnulib.texi: Link to sections for ld version script and
39312         visibility.
39313         * doc/visibility.texi: Add @node and @section.
39314         * modules/ld-version-script: New module.
39315         * m4/ld-version-script.m4: New file.
39316         * doc/ld-version-script.texi: New file.
39317
39318 2009-03-02  David Lutterkort  <lutter@redhat.com>
39319
39320         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39322
39323 2009-03-02  Bruno Haible  <bruno@clisp.org>
39324
39325         * doc/visibility.texi: Mention libtool's -export-symbols option.
39326
39327 2009-03-02  Jim Meyering  <meyering@redhat.com>
39328
39329         announce-gen: new option: --no-print-checksums
39330         * build-aux/announce-gen (usage): Describe it.
39331         (print_checksums): Print a newline here, not in the [*] footnote.
39332         (main): Honor it.
39333
39334 2009-03-01  Bruno Haible  <bruno@clisp.org>
39335
39336         Use socklen_t in the native Windows replacements prototypes.
39337         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39338         instead of 'int'.
39339         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39340         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39341         * modules/getsockopt (Depends-on): Add socklen.
39342         * modules/setsockopt (Depends-on): Add socklen.
39343
39344 2009-03-01  Bruno Haible  <bruno@clisp.org>
39345
39346         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39347         least 4.2.
39348
39349 2009-03-01  Eric Blake  <ebb9@byu.net>
39350             Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39353         error messages.
39354         * lib/wait-process.c (wait_subprocess): Omit error message about
39355         deadly signal sent to the child of termsigp != NULL.
39356
39357 2009-03-01  Eric Blake  <ebb9@byu.net>
39358
39359         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39360
39361 2009-03-01  Bruno Haible  <bruno@clisp.org>
39362
39363         Avoid a gcc warning.
39364         * tests/test-sched.c (b): Make global.
39365         Reported by Eric Blake.
39366
39367 2009-01-19  Martin Lambers  <marlam@marlam.de>
39368
39369         Provide POSIX semantics for socket timeout options on W32.
39370         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39371         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39372         * modules/setsockopt: Depend on sys_time module for struct timeval.
39373         * modules/getsockopt: Depend on sys_time module for struct timeval.
39374
39375 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39376
39377         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39378         __USE_GNU, for consistency with netdb.in.h.
39379         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39380
39381 2009-03-01  Bruno Haible  <bruno@clisp.org>
39382
39383         More support for FreeMiNT.
39384         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39385         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39386
39387 2009-03-01  Bruno Haible  <bruno@clisp.org>
39388
39389         More support for FreeMiNT.
39390         * lib/fpurge.c (fpurge): Correct last commit.
39391         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39392
39393 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39394
39395         Fix unportable awk script in vc-list-files.
39396         * build-aux/vc-list-files: In the replacement awk script, use
39397         substr with a second argument of 1, not zero.
39398         Report by Simon Josefsson.
39399
39400 2009-02-28  Bruno Haible  <bruno@clisp.org>
39401
39402         More support for FreeMiNT.
39403         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39404         to FreeMiNT today.
39405         * lib/fwriting.c (fwriting): Likewise.
39406         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39407
39408 2009-02-28  Bruno Haible  <bruno@clisp.org>
39409
39410         * tests/test-freadseek.c (main): Disable test beyond end of file on
39411         FreeMiNT.
39412         * tests/test-ftello.c (main): Likewise.
39413         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39414
39415 2009-02-28  Bruno Haible  <bruno@clisp.org>
39416
39417         Add tentative support for FreeMiNT.
39418         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39419         * lib/fpurge.c (fpurge): Likewise.
39420         * lib/freadable.c (freadable): Likewise.
39421         * lib/freading.c (freading): Likewise.
39422         * lib/freadptr.c (freadptr): Likewise.
39423         * lib/freadseek.c (freadptrinc): Likewise.
39424         * lib/fseeko.c (rpl_fseeko): Likewise.
39425         * lib/fseterr.c (fseterr): Likewise.
39426         * lib/fwritable.c (fwritable): Likewise.
39427         * lib/fwriting.c (fwriting): Likewise.
39428         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39429         Hourihane.
39430         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39431
39432 2009-02-28  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39435         SIGCHLD.
39436         Reported by Jim Meyering.
39437
39438 2009-02-28  Bruno Haible  <bruno@clisp.org>
39439
39440         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39441         Mention the results of these tests on various platforms.
39442         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39443         order.
39444         * doc/posix-functions/printf.texi: Likewise.
39445         * doc/posix-functions/snprintf.texi: Likewise.
39446         * doc/posix-functions/sprintf.texi: Likewise.
39447         * doc/posix-functions/vfprintf.texi: Likewise.
39448         * doc/posix-functions/vprintf.texi: Likewise.
39449         * doc/posix-functions/vsnprintf.texi: Likewise.
39450         * doc/posix-functions/vsprintf.texi: Likewise.
39451         * doc/glibc-functions/obstack_printf.texi: Likewise.
39452         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39453
39454 2009-02-28  Bruno Haible  <bruno@clisp.org>
39455
39456         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39457         Reported by Loïc Minier <lool@dooz.org>.
39458
39459 2009-02-27  Bruno Haible  <bruno@clisp.org>
39460
39461         * gnulib-tool (func_import): Make the sed expression used to create the
39462         sed script for updating the .gitignore file POSIX compliant.
39463         Reported by Eric Blake.
39464
39465 2009-02-27  Bruno Haible  <bruno@clisp.org>
39466
39467         * gnulib-tool (sed): Don't alias as "sed --posix".
39468         Reported by Eric Blake.
39469
39470 2009-02-27  Bruno Haible  <bruno@clisp.org>
39471
39472         Avoid test link errors.
39473         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39474         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39475         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39476         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39478
39479 2009-02-27  Bruno Haible  <bruno@clisp.org>
39480
39481         Avoid spurious "(cached)" in configure output.
39482         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39483         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39484         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39485         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39486         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39487         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39488         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39489         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39490         Reported by Eric Blake.
39491
39492 2009-02-27  Eric Blake  <ebb9@byu.net>
39493
39494         printf: fix regression in previous patch
39495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39496
39497 2009-02-27  Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39500         value.
39501         * lib/stdint.in.h: Likewise.
39502         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39503
39504 2009-02-27  Eric Blake  <ebb9@byu.net>
39505
39506         doc: mention more functions added in cygwin 1.7.0
39507         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39508         addition.
39509         * doc/posix-functions/open_wmemstream.texi: Likewise.
39510         * doc/posix-functions/wcsnlen.texi: Likewise.
39511         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39512         * doc/posix-functions/wcstod.texi: Likewise.
39513         * doc/posix-functions/wcstof.texi: Likewise.
39514         * doc/posix-functions/wcstoimax.texi: Likewise.
39515         * doc/posix-functions/wcstok.texi: Likewise.
39516         * doc/posix-functions/wcstoumax.texi: Likewise.
39517
39518         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39520         * doc/posix-functions/fprintf.texi: Update.
39521         * doc/posix-functions/printf.texi: Update.
39522         * doc/posix-functions/snprintf.texi: Update.
39523         * doc/posix-functions/sprintf.texi: Update.
39524         * doc/posix-functions/vfprintf.texi: Update.
39525         * doc/posix-functions/vprintf.texi: Update.
39526         * doc/posix-functions/vsnprintf.texi: Update.
39527         * doc/posix-functions/vsprintf.texi: Update.
39528         * doc/glibc-functions/obstack_printf.texi: Update.
39529         * doc/glibc-functions/obstack_vprintf.texi: Update.
39530
39531 2009-02-26  Eric Blake  <ebb9@byu.net>
39532
39533         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39534         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39535         compilation bug by using runtime conversion.
39536         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39537         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39538         * modules/ceill-tests (Files): Use nan.h.
39539         * modules/floorl-tests (Files): Likewise.
39540         * modules/frexpl-tests (Files): Likewise.
39541         * modules/isnanl-tests (Files): Likewise.
39542         * modules/ldexpl-tests (Files): Likewise.
39543         * modules/roundl-tests (Files): Likewise.
39544         * modules/truncl-tests (Files): Likewise.
39545         * tests/test-ceill.c (main): Use a working NaN.
39546         * tests/test-floorl.c (main): Likewise.
39547         * tests/test-frexpl.c (main): Likewise.
39548         * tests/test-isnan.c (test_long_double): Likewise.
39549         * tests/test-isnanl.h (main): Likewise.
39550         * tests/test-ldexpl.h (main): Likewise.
39551         * tests/test-roundl.h (main): Likewise.
39552         * tests/test-truncl.h (main): Likewise.
39553         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39554
39555 2009-02-26  Eric Blake  <ebb9@byu.net>
39556             Bruno Haible  <bruno@clisp.org>
39557
39558         Work around a *printf bug with %ls on Solaris.
39559         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39560         precision is specified, sprintf stops converting the wide string
39561         argument when the number of bytes that have been produced by this
39562         conversion equals or exceeds the precision.
39563         * doc/posix-functions/fprintf.texi: Update.
39564         * doc/posix-functions/printf.texi: Update.
39565         * doc/posix-functions/snprintf.texi: Update.
39566         * doc/posix-functions/sprintf.texi: Update.
39567         * doc/posix-functions/vfprintf.texi: Update.
39568         * doc/posix-functions/vprintf.texi: Update.
39569         * doc/posix-functions/vsnprintf.texi: Update.
39570         * doc/posix-functions/vsprintf.texi: Update.
39571         * doc/glibc-functions/obstack_printf.texi: Update.
39572         * doc/glibc-functions/obstack_vprintf.texi: Update.
39573
39574 2009-02-26  Eric Blake  <ebb9@byu.net>
39575
39576         stdlib: favor compiler check of random.h
39577         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39578         to avoid an ObjC random.h installed by Swarm.
39579
39580 2009-02-26  Bruno Haible  <bruno@clisp.org>
39581
39582         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39583         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39584         Reported by Gary V. Vaughan <gary@gnu.org>.
39585
39586 2009-02-26  Bruno Haible  <bruno@clisp.org>
39587
39588         Fix *printf behaviour regarding the %ls directive.
39589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39590         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39591         NEED_PRINTF_DIRECTIVE_LS.
39592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39593         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39595         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39596         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39597         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39598         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39599         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39600         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39603         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39604         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39605         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39606         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39607         * doc/posix-functions/fprintf.texi: Update.
39608         * doc/posix-functions/printf.texi: Update.
39609         * doc/posix-functions/snprintf.texi: Update.
39610         * doc/posix-functions/sprintf.texi: Update.
39611         * doc/posix-functions/vfprintf.texi: Update.
39612         * doc/posix-functions/vprintf.texi: Update.
39613         * doc/posix-functions/vsnprintf.texi: Update.
39614         * doc/posix-functions/vsprintf.texi: Update.
39615         * doc/glibc-functions/obstack_printf.texi: Update.
39616         * doc/glibc-functions/obstack_vprintf.texi: Update.
39617         Reported by Eric Blake.
39618
39619 2009-02-25  Bruno Haible  <bruno@clisp.org>
39620
39621         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39622         with known value.
39623         Reported by Gary V. Vaughan <gary@gnu.org>.
39624
39625 2009-02-25  Bruno Haible  <bruno@clisp.org>
39626
39627         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39628         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39629         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39630         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39631         Reported by Gary V. Vaughan <gary@gnu.org>.
39632
39633 2009-02-25  Bruno Haible  <bruno@clisp.org>
39634
39635         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39636         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39637         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39638         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39639         Reported by Gary V. Vaughan <gary@gnu.org>.
39640
39641 2009-02-25  Eric Blake  <ebb9@byu.net>
39642
39643         tests: skip fseek/ftell tests if ungetc is broken
39644         * m4/ungetc.m4: New file.
39645         * modules/fseek-tests: Split test, so ungetc dependency is
39646         separate from rest of test.
39647         * modules/fseeko-tests: Likewise.
39648         * modules/ftell-tests: Likewise.
39649         * modules/ftello-tests: Likewise.
39650         * tests/test-fseek.c (main): Isolate ungetc dependency.
39651         * tests/test-fseeko.c (main): Likewise.
39652         * tests/test-ftell.c (main): Likewise.
39653         * tests/test-ftello.c (main): Likewise.
39654         * tests/test-fseek2.sh: New file.
39655         * tests/test-fseeko2.sh: Likewise.
39656         * tests/test-ftell2.sh: Likewise.
39657         * tests/test-ftello2.sh: Likewise.
39658
39659 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39660
39661         test-getaddrinfo: fix usage of skip return code 77
39662         * tests/test-gettaddrinfo.c: Return skip code 77 only
39663         for first occurance of skip (4x77 is not 77)
39664
39665 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39666
39667         strtod: avoid C99 decl-after-statement
39668         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39669
39670 2009-02-24  Eric Blake  <ebb9@byu.net>
39671
39672         strtod: detect HP-UX 11.31 bug
39673         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39674         Reported by Gary V. Vaughan.
39675
39676 2009-02-23  Bruno Haible  <bruno@clisp.org>
39677
39678         Fix invalid read past end of memory block.
39679         * lib/vasnprintf.c (DCHAR_SET): Define.
39680         (local_wcslen): Define only when needed.
39681         (local_strnlen, local_wcsnlen): New functions.
39682         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39683         directives that involve a conversion ourselves.
39684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39685         wcsnlen, mbrtowc, wcrtomb.
39686         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39687         * tests/test-vasprintf-posix.c (test_function): Likewise.
39688         * tests/test-snprintf-posix.h (test_function): Likewise.
39689         * tests/test-sprintf-posix.h (test_function): Likewise.
39690         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39691
39692 2009-02-22  Bruno Haible  <bruno@clisp.org>
39693
39694         Implement new clarified decomposition of Hangul syllables.
39695         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39696         of type LTV, return only a pairwise decomposition.
39697         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39698         Likewise.
39699         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39700         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39701         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39702
39703 2009-02-22  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39706         zero-length results and shrink excess allocated memory.
39707         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39708         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39709         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39710         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39711         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39712         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39713         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39714         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39715         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39716         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39717         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39718         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39719
39720 2009-02-21  Bruno Haible  <bruno@clisp.org>
39721
39722         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39723         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39724         spaces after a period. Put a space between a macro name and its
39725         argument list. Trivial rewordings.
39726         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39727         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39728         (main): Return 0 explicitly.
39729
39730 2009-02-21  Bruno Haible  <bruno@clisp.org>
39731
39732         Tests for module 'uninorm/filter'.
39733         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39734         * modules/uninorm/filter-tests: New file.
39735
39736         New module 'uninorm/filter'.
39737         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39738         uninorm_filter_flush, uninorm_filter_free): New declarations.
39739         * lib/uninorm/uninorm-filter.c: New file.
39740         * modules/uninorm/filter: New file.
39741
39742 2009-02-21  Bruno Haible  <bruno@clisp.org>
39743
39744         Tests for module 'uninorm/nfkc'.
39745         * tests/uninorm/test-nfkc.c: New file.
39746         * tests/uninorm/test-u8-nfkc.c: New file.
39747         * tests/uninorm/test-u16-nfkc.c: New file.
39748         * tests/uninorm/test-u32-nfkc.c: New file.
39749         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39750         * tests/uninorm/test-u32-nfkc-big.c: New file.
39751         * modules/uninorm/nfkc-tests: New file.
39752
39753         New module 'uninorm/nfkc'.
39754         * lib/uninorm/nfkc.c: New file.
39755         * modules/uninorm/nfkc: New file.
39756
39757         Tests for module 'uninorm/nfkd'.
39758         * tests/uninorm/test-nfkd.c: New file.
39759         * tests/uninorm/test-u8-nfkd.c: New file.
39760         * tests/uninorm/test-u16-nfkd.c: New file.
39761         * tests/uninorm/test-u32-nfkd.c: New file.
39762         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39763         * tests/uninorm/test-u32-nfkd-big.c: New file.
39764         * modules/uninorm/nfkd-tests: New file.
39765
39766         New module 'uninorm/nfkd'.
39767         * lib/uninorm/nfkd.c: New file.
39768         * modules/uninorm/nfkd: New file.
39769
39770         Tests for module 'uninorm/nfc'.
39771         * tests/uninorm/test-nfc.c: New file.
39772         * tests/uninorm/test-u8-nfc.c: New file.
39773         * tests/uninorm/test-u16-nfc.c: New file.
39774         * tests/uninorm/test-u32-nfc.c: New file.
39775         * tests/uninorm/test-u32-nfc-big.sh: New file.
39776         * tests/uninorm/test-u32-nfc-big.c: New file.
39777         * modules/uninorm/nfc-tests: New file.
39778
39779         New module 'uninorm/nfc'.
39780         * lib/uninorm/nfc.c: New file.
39781         * modules/uninorm/nfc: New file.
39782
39783         Tests for module 'uninorm/nfd'.
39784         * tests/uninorm/test-nfd.c: New file.
39785         * tests/uninorm/test-u8-nfd.c: New file.
39786         * tests/uninorm/test-u16-nfd.c: New file.
39787         * tests/uninorm/test-u32-nfd.c: New file.
39788         * tests/uninorm/test-u32-nfd-big.sh: New file.
39789         * tests/uninorm/test-u32-nfd-big.c: New file.
39790         * tests/uninorm/test-u32-normalize-big.h: New file.
39791         * tests/uninorm/test-u32-normalize-big.c: New file.
39792         * tests/uninorm/NormalizationTest.txt: New file, created from
39793         Unicode 5.1.0 NormalizationTest.txt.
39794         * modules/uninorm/nfd-tests: New file.
39795
39796         New module 'uninorm/nfd'.
39797         * lib/uninorm/nfd.c: New file.
39798         * modules/uninorm/nfd: New file.
39799
39800         New module 'uninorm/u32-normalize'.
39801         * lib/uninorm/u32-normalize.c: New file.
39802         * modules/uninorm/u32-normalize: New file.
39803
39804         New module 'uninorm/u16-normalize'.
39805         * lib/uninorm/u16-normalize.c: New file.
39806         * modules/uninorm/u16-normalize: New file.
39807
39808         New module 'uninorm/u8-normalize'.
39809         * lib/uninorm/u8-normalize.c: New file.
39810         * lib/uninorm/normalize-internal.h: New file.
39811         * lib/uninorm/u-normalize-internal.h: New file.
39812         * modules/uninorm/u8-normalize: New file.
39813
39814         New module 'uninorm/decompose-internal'.
39815         * lib/uninorm/decompose-internal.c: New file.
39816         * modules/uninorm/decompose-internal: New file.
39817
39818         Tests for module 'uninorm/composition'.
39819         * tests/uninorm/test-composition.c: New file.
39820         * modules/uninorm/composition-tests: New file.
39821
39822         New module 'uninorm/composition'.
39823         * lib/uninorm/composition.c: New file.
39824         * lib/uninorm/composition-table.gperf: New file, generated by
39825         gen-uni-tables.
39826         * modules/uninorm/composition: New file.
39827
39828         Tests for module 'uninorm/compat-decomposition'.
39829         * tests/uninorm/test-compat-decomposition.c: New file.
39830         * modules/uninorm/compat-decomposition-tests: New file.
39831
39832         New module 'uninorm/compat-decomposition'.
39833         * lib/uninorm/decompose-internal.h: New file.
39834         * lib/uninorm/compat-decomposition.c: New file.
39835         * modules/uninorm/compat-decomposition: New file.
39836
39837         Tests for module 'uninorm/canonical-decomposition'.
39838         * tests/uninorm/test-canonical-decomposition.c: New file.
39839         * modules/uninorm/canonical-decomposition-tests: New file.
39840
39841         New module 'uninorm/canonical-decomposition'.
39842         * lib/uninorm/canonical-decomposition.c: New file.
39843         * modules/uninorm/canonical-decomposition: New file.
39844
39845         Tests for module 'uninorm/decomposition'.
39846         * tests/uninorm/test-decomposition.c: New file.
39847         * modules/uninorm/decomposition-tests: New file.
39848
39849         New module 'uninorm/decomposition'.
39850         * lib/uninorm/decomposition.c: New file.
39851         * modules/uninorm/decomposition: New file.
39852
39853         New module 'uninorm/decomposition-table'.
39854         * lib/uninorm/decomposition-table.h: New file.
39855         * lib/uninorm/decomposition-table.c: New file.
39856         * lib/uninorm/decomposition-table1.h: New file, generated by
39857         gen-uni-tables.
39858         * lib/uninorm/decomposition-table2.h: New file, generated by
39859         gen-uni-tables.
39860         * modules/uninorm/decomposition-table: New file.
39861
39862         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39863         (UC_DECOMP_*): New enumeration items.
39864         (get_decomposition): New function.
39865         (struct decomp_table): New type.
39866         (output_decomposition, output_decomposition_tables): New functions.
39867         (unicode_composition_exclusions): New variable.
39868         (fill_composition_exclusions, debug_output_composition_tables): New
39869         functions.
39870         (main): Accept one more argument. Invoke fill_composition_exclusions.
39871         Output decomposition and composition tables.
39872
39873         New module 'uninorm/base'.
39874         * lib/uninorm.h: New file.
39875         * lib/unictype.h: Update comment.
39876         * modules/uninorm/base: New file.
39877
39878 2009-02-21  David Lutterkort  <lutter@redhat.com>
39879
39880         Tests for module 'safe-alloc'.
39881         * tests/test-safe-alloc.c: New file.
39882         * modules/safe-alloc-tests: New file.
39883
39884         New module 'safe-alloc'.
39885         * lib/safe-alloc.h: New file.
39886         * lib/safe-alloc.c: New file.
39887         * m4/safe-alloc.m4: New file.
39888         * modules/safe-alloc: New file.
39889         * doc/safe-alloc.texi: New file.
39890         * doc/gnulib.texi: Include it.
39891         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39892         safe-alloc.
39893
39894 2009-02-18  Bruno Haible  <bruno@clisp.org>
39895
39896         Fix link error on non-glibc systems.
39897         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39898         variable.
39899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39900
39901 2009-02-18  Jim Meyering  <meyering@redhat.com>
39902
39903         fts: avoid used-uninitialized error due to recent change
39904         * lib/fts.c (fts_read): Guard uses of the new member,
39905         parent->fts_n_dirs_remaining, since it's not relevant for
39906         the parent of a directory specified on the command-line.
39907
39908 2009-02-17  James Youngman  <jay@gnu.org>
39909             Bruno Haible  <bruno@clisp.org>
39910
39911         * m4/include_next.m4: Reformulate comment.
39912
39913 2009-02-16  Jim Meyering  <meyering@redhat.com>
39914
39915         fts: add #if guards so that the fts_lgpl module still builds
39916         * lib/fts.c: Guard just-added hash-table-using parts with
39917         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39918         Reported by Simon Josefsson.
39919
39920 2009-02-15  Bruno Haible  <bruno@clisp.org>
39921
39922         * modules/array-mergesort-tests: New file.
39923         * tests/test-array-mergesort.c: New file.
39924
39925         New module 'array-mergesort'.
39926         * modules/array-mergesort: New file.
39927         * lib/array-mergesort.h: New file.
39928
39929 2009-02-15  Bruno Haible  <bruno@clisp.org>
39930
39931         Fix 2009-02-07 commit.
39932         * lib/gen-uni-tables.c (output_predicate, output_category,
39933         output_combclass, output_bidi_category, output_decimal_digit,
39934         output_digit, output_numeric, output_mirror, output_scripts,
39935         output_ident_category, output_simple_mapping): Fix format directives.
39936         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39937
39938 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39939
39940         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39941         fixes are available from IBM.
39942
39943 2009-02-13  Jim Meyering  <meyering@redhat.com>
39944
39945         fts: arrange not to stat non-directories in more cases
39946         This makes GNU find (when it doesn't need to stat each file)
39947         *much* more efficient at traversing reiserfs file systems.
39948         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39949         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39950         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39951         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39952         (leaf_optimization_applies): New function.
39953         (LCO_hash, LCO_compare): New helper functions.
39954         (link_count_optimize_ok): New function.
39955         (fts_stat): Initialize new member (if dir).
39956         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39957         we've just stat'ed a directory.  Skip the stat call when possible.
39958         ---
39959         Note this AFS-related exchange:
39960         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39961         and note find's pioctl call in find/fstype.c.
39962         But that is necessary only if you want to enable the
39963         optimization for AFS, and for now, I don't.
39964
39965         fts: move a function definition "up" (no semantic change)
39966         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39967         "up" to precede upcoming use of a related function.
39968
39969 2009-02-11  Jim Meyering  <meyering@redhat.com>
39970
39971         fts: correct internal computation of nlinks (optimization-related)
39972         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39973         whether the current entry is a directory, so don't test it.
39974
39975 2009-02-10  Bruno Haible  <bruno@clisp.org>
39976
39977         Tests for module 'uniwbrk/ulc-wordbreaks'.
39978         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39979         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39980         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39981
39982         Tests for module 'uniwbrk/u32-wordbreaks'.
39983         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39984         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39985
39986         Tests for module 'uniwbrk/u16-wordbreaks'.
39987         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39988         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39989
39990         Tests for module 'uniwbrk/u8-wordbreaks'.
39991         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39992         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39993
39994 2009-02-10  Bruno Haible  <bruno@clisp.org>
39995
39996         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39997         property.
39998         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39999         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40000         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40001
40002 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40003
40004         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40005         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40006
40007 2009-02-10  Bruno Haible  <bruno@clisp.org>
40008
40009         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40010         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40011         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40012         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40013         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40014         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40015
40016 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40017
40018         * lib/sockets.h (gl_fd_to_handle): New function.
40019
40020         * tests/test-sockets.c: Call gl_fd_to_handle.
40021
40022 2009-02-09  Bruno Haible  <bruno@clisp.org>
40023
40024         * doc/havelib.texi: Document the conventions on bi-arch systems.
40025
40026 2009-02-08  Bruno Haible  <bruno@clisp.org>
40027
40028         Document the AC_LIB_LINKFLAGS macro.
40029         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40030         * doc/gnulib.texi: Include it.
40031
40032 2009-02-08  Bruno Haible  <bruno@clisp.org>
40033
40034         Fix wrong order of sections, compared to TOC.
40035         * doc/gnulib.texi: Include relocatable-maint.texi after the
40036         "Regular expressions" node, not before.
40037
40038 2009-02-08  Bruno Haible  <bruno@clisp.org>
40039
40040         Tests for module 'unicase/totitle'.
40041         * modules/unicase/totitle-tests: New file.
40042
40043         Tests for module 'unicase/tolower'.
40044         * modules/unicase/tolower-tests: New file.
40045
40046         Tests for module 'unicase/toupper'.
40047         * modules/unicase/toupper-tests: New file.
40048         * tests/unicase/test-mapping-part1.h: New file.
40049         * tests/unicase/test-mapping-part2.h: New file.
40050
40051         New module 'unicase/totitle'.
40052         * modules/unicase/totitle: New file.
40053         * lib/unicase/totitle.c: New file.
40054
40055         New module 'unicase/tolower'.
40056         * modules/unicase/tolower: New file.
40057         * lib/unicase/tolower.c: New file.
40058
40059         New module 'unicase/toupper'.
40060         * modules/unicase/toupper: New file.
40061         * lib/unicase/toupper.c: New file.
40062         * lib/unicase/simple-mapping.h: New file.
40063
40064         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40065         (mapping_table): New structure.
40066         (output_simple_mapping): New function.
40067         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40068         * modules/gen-uni-tables (Description): Update.
40069         * lib/unicase/toupper.h: New file, automatically generated by
40070         gen-uni-tables.
40071         * lib/unicase/tolower.h: New file, automatically generated by
40072         gen-uni-tables.
40073         * lib/unicase/totitle.h: New file, automatically generated by
40074         gen-uni-tables.
40075         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40076         gen-uni-tables.
40077         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40078         gen-uni-tables.
40079         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40080         gen-uni-tables.
40081
40082         New module 'unicase/base'.
40083         * modules/unicase/base: New file.
40084         * lib/unicase.h: New file.
40085
40086 2009-02-08  Bruno Haible  <bruno@clisp.org>
40087
40088         New module 'uniwbrk/ulc-wordbreaks'.
40089         * modules/uniwbrk/ulc-wordbreaks: New file.
40090         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40091
40092         New module 'uniwbrk/u32-wordbreaks'.
40093         * modules/uniwbrk/u32-wordbreaks: New file.
40094         * lib/uniwbrk/u32-wordbreaks.c: New file.
40095
40096         New module 'uniwbrk/u16-wordbreaks'.
40097         * modules/uniwbrk/u16-wordbreaks: New file.
40098         * lib/uniwbrk/u16-wordbreaks.c: New file.
40099
40100         New module 'uniwbrk/u8-wordbreaks'.
40101         * modules/uniwbrk/u8-wordbreaks: New file.
40102         * lib/uniwbrk/u8-wordbreaks.c: New file.
40103         * lib/uniwbrk/u-wordbreaks.h: New file.
40104
40105         New module 'uniwbrk/table'.
40106         * modules/uniwbrk/table: New file.
40107         * lib/uniwbrk/wbrktable.h: New file.
40108         * lib/uniwbrk/wbrktable.c: New file.
40109
40110         New module 'uniwbrk/wordbreak-property'.
40111         * modules/uniwbrk/wordbreak-property: New file.
40112         * lib/uniwbrk/wordbreak-property.c: New file.
40113
40114         * lib/gen-uni-tables.c (WBP_*): New enum items.
40115         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40116         (unicode_org_wbp): New variable.
40117         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40118         New functions.
40119         (wbp_table): New structure.
40120         (output_wbp, output_wbrk_tables): New functions.
40121         (main): Accept additional argument. Invoke fill_org_wbp,
40122         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40123         output_wbrk_tables.
40124         * modules/gen-uni-tables (Description): Update.
40125         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40126         gen-uni-tables.
40127
40128         New module 'uniwbrk/base'.
40129         * modules/uniwbrk/base: New file.
40130         * lib/uniwbrk.h: New file.
40131
40132 2009-02-08  Bruno Haible  <bruno@clisp.org>
40133
40134         Update to Unicode 5.1.0.
40135         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40136         U+2185..U+2188.
40137         (is_property_default_ignorable_code_point): Don't include characters
40138         of category Cc or Cs and not-a-characters.
40139         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40140         U+0D79, U+109E, U+109F, U+A60C.
40141         * lib/unictype/bidi_of.h: Regenerated.
40142         * lib/unictype/blocks.h: Regenerated.
40143         * lib/unictype/categ_C.h: Regenerated.
40144         * lib/unictype/categ_Cf.h: Regenerated.
40145         * lib/unictype/categ_Cn.h: Regenerated.
40146         * lib/unictype/categ_L.h: Regenerated.
40147         * lib/unictype/categ_Ll.h: Regenerated.
40148         * lib/unictype/categ_Lm.h: Regenerated.
40149         * lib/unictype/categ_Lo.h: Regenerated.
40150         * lib/unictype/categ_Lu.h: Regenerated.
40151         * lib/unictype/categ_M.h: Regenerated.
40152         * lib/unictype/categ_Mc.h: Regenerated.
40153         * lib/unictype/categ_Me.h: Regenerated.
40154         * lib/unictype/categ_Mn.h: Regenerated.
40155         * lib/unictype/categ_N.h: Regenerated.
40156         * lib/unictype/categ_Nd.h: Regenerated.
40157         * lib/unictype/categ_Nl.h: Regenerated.
40158         * lib/unictype/categ_No.h: Regenerated.
40159         * lib/unictype/categ_P.h: Regenerated.
40160         * lib/unictype/categ_Pd.h: Regenerated.
40161         * lib/unictype/categ_Pe.h: Regenerated.
40162         * lib/unictype/categ_Pf.h: Regenerated.
40163         * lib/unictype/categ_Pi.h: Regenerated.
40164         * lib/unictype/categ_Po.h: Regenerated.
40165         * lib/unictype/categ_Ps.h: Regenerated.
40166         * lib/unictype/categ_S.h: Regenerated.
40167         * lib/unictype/categ_Sk.h: Regenerated.
40168         * lib/unictype/categ_Sm.h: Regenerated.
40169         * lib/unictype/categ_So.h: Regenerated.
40170         * lib/unictype/categ_of.h: Regenerated.
40171         * lib/unictype/combining.h: Regenerated.
40172         * lib/unictype/ctype_alnum.h: Regenerated.
40173         * lib/unictype/ctype_alpha.h: Regenerated.
40174         * lib/unictype/ctype_graph.h: Regenerated.
40175         * lib/unictype/ctype_lower.h: Regenerated.
40176         * lib/unictype/ctype_print.h: Regenerated.
40177         * lib/unictype/ctype_punct.h: Regenerated.
40178         * lib/unictype/ctype_upper.h: Regenerated.
40179         * lib/unictype/decdigit.h: Regenerated.
40180         * lib/unictype/digit.h: Regenerated.
40181         * lib/unictype/mirror.h: Regenerated.
40182         * lib/unictype/numeric.h: Regenerated.
40183         * lib/unictype/pr_alphabetic.h: Regenerated.
40184         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40185         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40186         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40187         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40188         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40189         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40190         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40191         * lib/unictype/pr_combining.h: Regenerated.
40192         * lib/unictype/pr_dash.h: Regenerated.
40193         * lib/unictype/pr_decimal_digit.h: Regenerated.
40194         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40195         * lib/unictype/pr_deprecated.h: Regenerated.
40196         * lib/unictype/pr_diacritic.h: Regenerated.
40197         * lib/unictype/pr_extender.h: Regenerated.
40198         * lib/unictype/pr_format_control.h: Regenerated.
40199         * lib/unictype/pr_grapheme_base.h: Regenerated.
40200         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40201         * lib/unictype/pr_grapheme_link.h: Regenerated.
40202         * lib/unictype/pr_id_continue.h: Regenerated.
40203         * lib/unictype/pr_id_start.h: Regenerated.
40204         * lib/unictype/pr_ideographic.h: Regenerated.
40205         * lib/unictype/pr_ignorable_control.h: Regenerated.
40206         * lib/unictype/pr_lowercase.h: Regenerated.
40207         * lib/unictype/pr_math.h: Regenerated.
40208         * lib/unictype/pr_numeric.h: Regenerated.
40209         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40210         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40211         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40212         * lib/unictype/pr_other_id_continue.h: Regenerated.
40213         * lib/unictype/pr_other_lowercase.h: Regenerated.
40214         * lib/unictype/pr_other_math.h: Regenerated.
40215         * lib/unictype/pr_punctuation.h: Regenerated.
40216         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40217         * lib/unictype/pr_soft_dotted.h: Regenerated.
40218         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40219         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40220         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40221         * lib/unictype/pr_uppercase.h: Regenerated.
40222         * lib/unictype/pr_xid_continue.h: Regenerated.
40223         * lib/unictype/pr_xid_start.h: Regenerated.
40224         * lib/unictype/pr_zero_width.h: Regenerated.
40225         * lib/unictype/scripts.h: Regenerated.
40226         * lib/unictype/scripts_byname.gperf: Regenerated.
40227         * lib/unictype/sy_java_ident.h: Regenerated.
40228         * lib/unilbrk/lbrkprop1.h: Regenerated.
40229         * lib/unilbrk/lbrkprop2.h: Regenerated.
40230         * tests/unictype/test-categ_C.c: Regenerated.
40231         * tests/unictype/test-categ_Cf.c: Regenerated.
40232         * tests/unictype/test-categ_Cn.c: Regenerated.
40233         * tests/unictype/test-categ_L.c: Regenerated.
40234         * tests/unictype/test-categ_Ll.c: Regenerated.
40235         * tests/unictype/test-categ_Lm.c: Regenerated.
40236         * tests/unictype/test-categ_Lo.c: Regenerated.
40237         * tests/unictype/test-categ_Lu.c: Regenerated.
40238         * tests/unictype/test-categ_M.c: Regenerated.
40239         * tests/unictype/test-categ_Mc.c: Regenerated.
40240         * tests/unictype/test-categ_Me.c: Regenerated.
40241         * tests/unictype/test-categ_Mn.c: Regenerated.
40242         * tests/unictype/test-categ_N.c: Regenerated.
40243         * tests/unictype/test-categ_Nd.c: Regenerated.
40244         * tests/unictype/test-categ_Nl.c: Regenerated.
40245         * tests/unictype/test-categ_No.c: Regenerated.
40246         * tests/unictype/test-categ_P.c: Regenerated.
40247         * tests/unictype/test-categ_Pd.c: Regenerated.
40248         * tests/unictype/test-categ_Pe.c: Regenerated.
40249         * tests/unictype/test-categ_Pf.c: Regenerated.
40250         * tests/unictype/test-categ_Pi.c: Regenerated.
40251         * tests/unictype/test-categ_Po.c: Regenerated.
40252         * tests/unictype/test-categ_Ps.c: Regenerated.
40253         * tests/unictype/test-categ_S.c: Regenerated.
40254         * tests/unictype/test-categ_Sk.c: Regenerated.
40255         * tests/unictype/test-categ_Sm.c: Regenerated.
40256         * tests/unictype/test-categ_So.c: Regenerated.
40257         * tests/unictype/test-ctype_alnum.c: Regenerated.
40258         * tests/unictype/test-ctype_alpha.c: Regenerated.
40259         * tests/unictype/test-ctype_graph.c: Regenerated.
40260         * tests/unictype/test-ctype_lower.c: Regenerated.
40261         * tests/unictype/test-ctype_print.c: Regenerated.
40262         * tests/unictype/test-ctype_punct.c: Regenerated.
40263         * tests/unictype/test-ctype_upper.c: Regenerated.
40264         * tests/unictype/test-decdigit.h: Regenerated.
40265         * tests/unictype/test-digit.h: Regenerated.
40266         * tests/unictype/test-numeric.h: Regenerated.
40267         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40268         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40269         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40270         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40271         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40272         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40273         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40274         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40275         * tests/unictype/test-pr_combining.c: Regenerated.
40276         * tests/unictype/test-pr_dash.c: Regenerated.
40277         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40278         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40279         * tests/unictype/test-pr_deprecated.c: Regenerated.
40280         * tests/unictype/test-pr_diacritic.c: Regenerated.
40281         * tests/unictype/test-pr_extender.c: Regenerated.
40282         * tests/unictype/test-pr_format_control.c: Regenerated.
40283         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40284         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40285         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40286         * tests/unictype/test-pr_id_continue.c: Regenerated.
40287         * tests/unictype/test-pr_id_start.c: Regenerated.
40288         * tests/unictype/test-pr_ideographic.c: Regenerated.
40289         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40290         * tests/unictype/test-pr_lowercase.c: Regenerated.
40291         * tests/unictype/test-pr_math.c: Regenerated.
40292         * tests/unictype/test-pr_numeric.c: Regenerated.
40293         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40294         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40295         Regenerated.
40296         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40297         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40298         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40299         * tests/unictype/test-pr_other_math.c: Regenerated.
40300         * tests/unictype/test-pr_punctuation.c: Regenerated.
40301         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40302         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40303         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40304         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40305         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40306         * tests/unictype/test-pr_uppercase.c: Regenerated.
40307         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40308         * tests/unictype/test-pr_xid_start.c: Regenerated.
40309         * tests/unictype/test-pr_zero_width.c: Regenerated.
40310
40311         Update to Unicode 5.1.0.
40312         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40313         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40314         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40315         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40316         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40317         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40318         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40319         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40320         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40321         (nonspacing_table_ind): Update.
40322         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40323
40324         Update to Unicode 5.1.0.
40325         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40326         code transform.
40327         * lib/uniname/uniname.c (unicode_character_name,
40328         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40329         * lib/uniname/uninames.h: Regenerated.
40330         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40331
40332 2009-02-07  Bruno Haible  <bruno@clisp.org>
40333
40334         Merge gen-ctype and gen-lbrk into a single program.
40335         * lib/gen-uni-tables.c: New file, incorporating
40336         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40337         Add directory prefixes to the names of the generated files.
40338         * lib/unictype/gen-ctype.c: Remove file.
40339         * lib/unilbrk/gen-lbrk.c: Remove file.
40340         * modules/gen-uni-tables: New file.
40341         * modules/unictype/gen-ctype: Remove file.
40342         * modules/unilbrk/gen-lbrk: Remove file.
40343
40344 2009-02-07  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40347
40348         New module 'unistr/u32-strcoll'.
40349         * modules/unistr/u32-strcoll: New file.
40350         * lib/unistr/u32-strcoll.c: New file.
40351
40352         New module 'unistr/u16-strcoll'.
40353         * modules/unistr/u16-strcoll: New file.
40354         * lib/unistr/u16-strcoll.c: New file.
40355
40356         New module 'unistr/u8-strcoll'.
40357         * modules/unistr/u8-strcoll: New file.
40358         * lib/unistr/u8-strcoll.c: New file.
40359         * lib/unistr/u-strcoll.h: New file.
40360
40361 2009-02-07  Bruno Haible  <bruno@clisp.org>
40362
40363         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40364         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40365         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40366         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40367         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40368         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40369
40370 2009-02-07  Bruno Haible  <bruno@clisp.org>
40371
40372         Make 64-bit clean.
40373         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40374         output_combclass, output_bidi_category, output_decimal_digit,
40375         output_digit, output_numeric, output_mirror, output_scripts,
40376         output_ident_category): Use proper width specifier in format strings.
40377
40378 2009-02-07  Bruno Haible  <bruno@clisp.org>
40379
40380         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40381         failure behaviour.
40382
40383 2009-02-07  Jim Meyering  <meyering@redhat.com>
40384
40385         regex: avoid compilation failure with upcoming gcc-4.4
40386         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40387         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40388         "... error: integer overflow in preprocessor expression".
40389
40390 2009-02-05  Ben Pfaff  <blp@gnu.org>
40391
40392         Fix link errors on Windows when close module is used.
40393         * modules/close: Add $(LIB_CLOSE) to Link section.
40394         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40395         $(LIB_CLOSE) on Windows.
40396
40397 2009-02-05  Jim Meyering  <meyering@redhat.com>
40398
40399         still avoid unused-parameter warnings, but do it cleanly
40400         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40401         (get_fs_usage): Cast to void instead.
40402         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40403         (dev_from_mount_options, read_file_system_list): Cast to void.
40404         Prompted by Bruno Haible.
40405
40406 2009-02-04  Jim Meyering  <meyering@redhat.com>
40407
40408         fsusage.c: correct copyright year
40409         * lib/fsusage.c: Reflect year in which the change is pushed into
40410
40411         avoid misc. warnings
40412         * lib/fsusage.c (UNUSED_PARAM): Define.
40413         (get_fs_usage): Mark parameter "disk" as unused.
40414         * lib/getugroups.c (getgrent): Use "void" in prototype.
40415         * lib/mountlist.c: Mark unused parameters.
40416         (read_file_system_list): Declare a local with "const".
40417         * lib/nanosleep.c (getnow): Declare static.
40418         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40419
40420         dirfd: set errno upon failure
40421         * lib/dirfd.c: Include <errno.h>.
40422         Set errno to ENOTSUP when returning -1.
40423         * modules/dirfd (Depends-on): Add errno.
40424         Suggested by John Kodis <kodis@comcast.net>.
40425
40426 2009-02-01  Bruno Haible  <bruno@clisp.org>
40427
40428         Don't assume sizeof (long) >= sizeof (void *).
40429         * lib/memcmp.c: Include stdint.h.
40430         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40431         srcp2 to 'const byte *'.
40432         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40433         types to uintptr_t.
40434         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40435         * modules/memcmp (Depends-on): Add stdint.
40436         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40437
40438 2009-01-30  Eric Blake  <ebb9@byu.net>
40439
40440         fix more require-before-expand issues
40441         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40442         expand, AC_PROG_AWK.
40443         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40444
40445 2009-01-28  Eric Blake  <ebb9@byu.net>
40446
40447         version-etc: use consistent URL formatting
40448         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40449         Improve formatting.  Use fputs for string without %.
40450
40451 2009-01-28  Jim Meyering  <meyering@redhat.com>
40452
40453         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40454         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40455         "underquoted definition of NAME" from autoconf-2.59.
40456
40457 2009-01-28  Bruno Haible  <bruno@clisp.org>
40458
40459         * doc/gnulib.texi: Add "Obsolete modules" to index.
40460
40461 2009-01-28  Jim Meyering  <meyering@redhat.com>
40462
40463         useless-if-before-free: recognize more variants
40464         * build-aux/useless-if-before-free: Also recognize e.g.,
40465         if (NULL != p) free (p);
40466
40467 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40468
40469         test-getaddrinfo: skip (don't fail) this test when there's no network
40470         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40471         on the presumption that it means you lack network access.
40472
40473 2009-01-26  Jim Meyering  <meyering@redhat.com>
40474
40475         fflush: avoid warnings on modern systems
40476         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40477         pos and result, into scopes where they're used.
40478
40479 2009-01-26  Eric Blake  <ebb9@byu.net>
40480
40481         Silence warning reintroduced by recent extensions patch.
40482         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40483         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40484         autoconf.
40485
40486         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40487         * m4/00gnulib.m4: New file.
40488         * gnulib-tool (func_get_filelist): Always use it.
40489         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40490         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40491
40492 2009-01-25  Bruno Haible  <bruno@clisp.org>
40493
40494         Make test-quotearg work on MacOS X and AIX.
40495         * tests/test-quotearg.sh: New file.
40496         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40497         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40498         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40499         include <libintl.h>.
40500         (fake_locale): Remove variable.
40501         (gettext, dgettext, dcgettext): Remove functions.
40502         (main): Instead of setting a fake locale, set a real locale. Call
40503         textdomain and bindtextdomain.
40504         * modules/quotearg-tests (Files): Add the new files.
40505         (Depends-on): Add gettext, setenv, unsetenv.
40506         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40507         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40508         Augment TESTS_ENVIRONMENT.
40509
40510 2009-01-25  Bruno Haible  <bruno@clisp.org>
40511
40512         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40513         fr_FR.ISO8859-1 locale on MacOS X.
40514         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40515         ja_JP.eucJP locale on MacOS X.
40516         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40517         zh_CN.GB18030 locale on MacOS X.
40518
40519 2009-01-25  Bruno Haible  <bruno@clisp.org>
40520
40521         Avoid link errors on MacOS X 10.3.
40522         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40523         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40524
40525 2009-01-25  Bruno Haible  <bruno@clisp.org>
40526
40527         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40528         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40529         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40530         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40531         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40532         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40533         posix_spawnattr_init, posix_spawnattr_setsigmask,
40534         posix_spawnattr_setflags, posix_spawnattr_destroy.
40535
40536         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40537         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40538         * modules/execute (Files): Remove m4/posix_spawn.m4.
40539         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40540         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40541         posix_spawnattr_init, posix_spawnattr_setsigmask,
40542         posix_spawnattr_setflags, posix_spawnattr_destroy.
40543
40544 2009-01-25  Bruno Haible  <bruno@clisp.org>
40545
40546         * lib/glthread/threadlib.c: Include <stdlib.h>.
40547
40548 2009-01-25  Bruno Haible  <bruno@clisp.org>
40549
40550         * lib/glthread/threadlib.c (dummy): New declaration.
40551
40552 2009-01-25  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40555         multibyte characters also for the GB18030 encoding. Don't crash when
40556         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40557
40558 2009-01-25  Bruno Haible  <bruno@clisp.org>
40559
40560         Avoid redefining 'struct random_data' on OSF/1 5.1.
40561         * lib/stdlib.in.h: Include <random.h> if it exists.
40562         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40563         HAVE_RANDOM_H. Include <random.h> when testing whether
40564         'struct random_data' exists.
40565         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40566
40567 2009-01-25  Bruno Haible  <bruno@clisp.org>
40568
40569         Don't install charset.alias on MacOS X >= 10.3.
40570         * lib/localcharset.c (DARWIN7): New macro.
40571         (get_charset_aliases): Hardcode the result for Darwin7.
40572         * modules/localcharset (install-exec-local): Don't install
40573         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40574
40575 2009-01-25  Bruno Haible  <bruno@clisp.org>
40576
40577         Don't install charset.alias on mingw and Cygwin.
40578         * modules/localcharset (install-exec-local): Don't install
40579         charset.alias on mingw and Cygwin, if the file does not yet exist.
40580         The result for these platforms is hardcoded in localcharset.c.
40581
40582 2009-01-25  Bruno Haible  <bruno@clisp.org>
40583
40584         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40586         before requiring AC_USE_SYSTEM_EXTENSIONS.
40587
40588 2009-01-25  Jim Meyering  <meyering@redhat.com>
40589
40590         c-strtod: avoid warnings
40591         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40592         "assignment discards qualifiers from pointer target type" warnings.
40593
40594 2009-01-24  Bruno Haible  <bruno@clisp.org>
40595
40596         Add support for non-UTF-8 locales on MacOS X.
40597         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40598         canonical encodings. For Darwin 7 and newer, don't map traditional
40599         encodings to UTF-8.
40600         Reported by Vincent Lefevre <vincent@vinc17.org>
40601         at <http://savannah.gnu.org/bugs/?25235>.
40602
40603 2009-01-24  Bruno Haible  <bruno@clisp.org>
40604
40605         * doc/gnulib.texi (Obsolete modules): New section.
40606         Reported by Mike Frysinger <vapier@gentoo.org>.
40607
40608 2009-01-24  Bruno Haible  <bruno@clisp.org>
40609
40610         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40611         (%.dvi): New rule.
40612
40613 2009-01-24  Bruno Haible  <bruno@clisp.org>
40614
40615         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40616         Reported by Eric Blake.
40617
40618 2009-01-24  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40621         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40622         Reported by Gary V. Vaughan <gary@gnu.org>.
40623
40624 2009-01-24  Bruno Haible  <bruno@clisp.org>
40625
40626         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40627
40628 2009-01-23  Bruno Haible  <bruno@clisp.org>
40629
40630         Make c-strtod, c-strtold usable in libraries.
40631         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40632         (C_STRTOD): Call strdup instead of xstrdup.
40633         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40634         * modules/c-strtold (Depends-on): Likewise.
40635         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40636         * NEWS: Mention the change.
40637         Reported by Michael Gold <mgold@ncf.ca>.
40638
40639 2009-01-23  Jim Meyering  <meyering@redhat.com>
40640
40641         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40642         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40643         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40644
40645 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40646
40647         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40648         GNU CoreUtils.
40649         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40650         * modules/version-etc (Description): Update.
40651
40652 2009-01-22  Bruno Haible  <bruno@clisp.org>
40653
40654         Cache the C locale object.
40655         * lib/c-strtod.c (c_locale_cache): New variable.
40656         (c_locale): New function.
40657         (C_STRTOD): Use it, and don't call freelocale.
40658         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40659         Suggested by Paolo Bonzini.
40660
40661 2009-01-21  Bruno Haible  <bruno@clisp.org>
40662
40663         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40664         conditions other than overflow.
40665
40666 2009-01-21  Bruno Haible  <bruno@clisp.org>
40667
40668         * lib/c-strtod.c: Include errno.h.
40669         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40670         value from STRTOD_L and STRTOD.
40671
40672 2009-01-21  Bruno Haible  <bruno@clisp.org>
40673         and Jim Meyering  <meyering@redhat.com>
40674
40675         nanosleep: skip configure test (fail it) for apple universal builds
40676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40677         universal builds, assume that nanosleep does not work.
40678         * modules/nanosleep (Depends-on): Add multiarch.
40679
40680         mktime: skip configure test (fail it) for apple universal builds
40681         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40682         universal builds, assume that mktime does not work.
40683         * modules/mktime (Depends-on): Add multiarch.
40684
40685 2009-01-21  Eric Blake  <ebb9@byu.net>
40686
40687         multiarch: avoid expand-before-require warning
40688         * modules/multiarch (configure.ac): Require, rather than expand,
40689         gl_MULTIARCH.
40690         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40691         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40692         enforce that all clients require it.  Partial reversion of
40693         2008-12-29 patch.
40694
40695         error: avoid expand-before-require warning
40696         * modules/errno (configure.ac): Require, rather than expand,
40697         gl_HEADER_ERRNO_H.
40698         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40699         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40700         enforce that all clients require it.
40701
40702         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40703         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40704         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40705         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40706
40707 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40708
40709         Revert:
40710         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40711
40712         regex: do not depend on obsolete modules.
40713         * modules/regex: Remove memcmp and memmove.
40714
40715 2009-01-20  Bruno Haible  <bruno@clisp.org>
40716
40717         Make the 'link' module link on Windows NT 4.
40718         * lib/link.c (_WIN32_WINNT): Don't define.
40719         (CreateHardLinkFuncType): New type.
40720         (CreateHardLinkFunc, initialized): New variables.
40721         (initialize): New function.
40722         (link): Invoke CreateHardLink indirectly through the function pointer.
40723
40724 2009-01-20  Bruno Haible  <bruno@clisp.org>
40725
40726         Fix compilation failure on mingw.
40727         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40728
40729 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40730
40731         * doc/c-strtod.texi: Mention a couple of restrictions.
40732
40733 2009-01-20  Jim Meyering  <meyering@redhat.com>
40734
40735         gettimeofday: move more declarations out of functions
40736         * lib/gettimeofday.c: Move extern declarations of tzset and
40737         gmtime out of containing functions.  Prompted by Bruno Haible.
40738
40739 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40740
40741         regex: do not depend on obsolete modules.
40742         * modules/regex: Remove memcmp and memmove.
40743
40744 2009-01-19  Bruno Haible  <bruno@clisp.org>
40745
40746         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40747         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40748         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40749         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40750         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40751
40752 2009-01-19  Bruno Haible  <bruno@clisp.org>
40753
40754         * tests/test-link.c: Include <errno.h>.
40755         (main): Exit with code 77 when a hard link cannot be created due to
40756         the file system.
40757         * tests/test-link.sh: Skip test when a hard link cannot be created due
40758         to the file system.
40759         Suggested by Eric Blake.
40760
40761 2009-01-19  Martin Lambers  <marlam@marlam.de>
40762
40763         * modules/link-tests: New file.
40764         * tests/test-link.sh: New file.
40765         * tests/test-link.c: New file.
40766
40767 2009-01-19  Eric Blake  <ebb9@byu.net>
40768
40769         doc: mention another function added in cygwin 1.7.0
40770         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40771         Another new function in cygwin 1.7.
40772
40773 2009-01-19  Bruno Haible  <bruno@clisp.org>
40774
40775         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40776         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40777         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40778         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40779         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40780         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40782         * m4/md4.m4 (gl_MD4): Likewise.
40783         * m4/md5.m4 (gl_MD5): Likewise.
40784         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40785         * m4/sha1.m4 (gl_SHA1): Likewise.
40786         * m4/sha256.m4 (gl_SHA256): Likewise.
40787         * m4/sha512.m4 (gl_SHA512): Likewise.
40788
40789 2009-01-19  Bruno Haible  <bruno@clisp.org>
40790
40791         * modules/uniname/uniname-tests (Depends-on): Add progname.
40792         * tests/uniname/test-uninames.c: Include progname.h.
40793         (main): Call set_program_name.
40794
40795         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40796         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40797         (main): Call set_program_name.
40798
40799         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40800         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40801         (main): Call set_program_name.
40802
40803         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40804         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40805         (main): Call set_program_name.
40806
40807         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40808         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40809         (main): Call set_program_name.
40810
40811         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40812         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40813         (main): Call set_program_name.
40814
40815         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40816         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40817         (main): Call set_program_name.
40818
40819         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40820         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40821         (main): Call set_program_name.
40822
40823         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40824         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40825         (main): Call set_program_name.
40826
40827 2009-01-19  Eric Blake  <ebb9@byu.net>
40828
40829         test-unistd: test previous patch
40830         * tests/test-unistd.c: Test *_FILENO macros.
40831
40832         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40833         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40834         Guarantee a definition.
40835         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40836         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40837         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40838         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40839         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40840         Likewise.
40841         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40842         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40843         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40844         Likewise.
40845         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40846         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40847         (STDERR_FILENO): Likewise.
40848         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40849         (STDERR_FILENO): Likewise.
40850         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40851         (STDERR_FILENO): Likewise.
40852         Reported by Elbert Pol.
40853
40854 2009-01-19  Eric Blake  <ebb9@byu.net>
40855
40856         doc: mention more functions added in cygwin 1.7.0
40857         * doc/posix-functions/abort.texi (abort): Update wording related
40858         to cygwin.
40859         * doc/posix-functions/daylight.texi (daylight): Likewise.
40860         * doc/posix-functions/optarg.texi (optarg): Likewise.
40861         * doc/posix-functions/optarg.texi (opterr): Likewise.
40862         * doc/posix-functions/optarg.texi (optind): Likewise.
40863         * doc/posix-functions/optarg.texi (optopt): Likewise.
40864         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40865         worked in 1.5.x, and was withdrawn in 1.7.
40866         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40867         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40868         cygwin versions.
40869         * doc/posix-functions/perror.texi (perror): Likewise.
40870         * doc/posix-functions/printf.texi (printf): Likewise.
40871         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40872         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40873         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40874         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40875         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40876         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40877         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40878         Likewise.
40879         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40880         Likewise.
40881         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40882         this function.
40883         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40884         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40885         Likewise.
40886         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40887         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40888         * doc/posix-functions/confstr.texi (confstr): Likewise.
40889         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40890         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40891         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40892         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40893         * doc/posix-functions/fputws.texi (fputws): Likewise.
40894         * doc/posix-functions/fwide.texi (fwide): Likewise.
40895         * doc/posix-functions/getwc.texi (getwc): Likewise.
40896         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40897         * doc/posix-functions/putwc.texi (putwc): Likewise.
40898         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40899         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40900         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40901         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40902         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40903         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40904         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40905         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40906         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40907         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40908         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40909
40910 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40911
40912         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40913         * lib/ioctl.c: Include <sys/ioctl.h>.
40914
40915 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40916
40917         * modules/getdate-tests (Depends-on): Add progname.
40918         * tests/test-getdate.c: Use progname module, to avoid link errors
40919         on non-glibc systems.
40920
40921 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40922
40923         * modules/filenamecat-tests (Depends-on): Add progname.
40924         * modules/fstrcmp-tests (Depends-on): Likewise.
40925
40926         * tests/test-filenamecat.c: Use progname module, to avoid link
40927         errors on non-glibc systems.
40928         * tests/test-fstrcmp.c: Likewise.
40929
40930 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40931
40932         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40933         * lib/gettimeofday.c: Move extern declaration out of function.
40934
40935 2009-01-18  Bruno Haible  <bruno@clisp.org>
40936
40937         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40938         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40939         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40940
40941 2009-01-18  Bruno Haible  <bruno@clisp.org>
40942
40943         * lib/strftime.c (MEMPCPY): Remove unused macro.
40944         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40945
40946 2009-01-18  Martin Lambers  <marlam@marlam.de>
40947
40948         New module 'link'.
40949         * lib/unistd.in.h (link): New declaration.
40950         * lib/link.c: New file.
40951         * m4/link.m4: New file.
40952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40953         HAVE_LINK.
40954         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40955         * modules/link: New file.
40956         * doc/posix-functions/link.texi: Mention the new module.
40957
40958 2009-01-18  Bruno Haible  <bruno@clisp.org>
40959
40960         * tests/test-avltree_list.c (main): Call set_program_name.
40961         * tests/test-avltree_oset.c (main): Likewise.
40962         * tests/test-obstack-printf.c: Include progname.h.
40963         (main): Call set_program_name.
40964         * tests/test-quotearg.c: Include progname.h.
40965         (main): Call set_program_name.
40966         * tests/test-xmemdup0.c: Include progname.h.
40967         (main): Call set_program_name.
40968
40969 2009-01-18  Bruno Haible  <bruno@clisp.org>
40970
40971         New module 'alphasort'.
40972         * lib/dirent.in.h (alphasort): New declaration.
40973         * lib/alphasort.c: New file, from glibc with modifications.
40974         * m4/alphasort.m4: New file.
40975         * modules/alphasort: New file.
40976         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40977         HAVE_ALPHASORT.
40978         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40979         HAVE_ALPHASORT.
40980         * doc/posix-functions/alphasort.texi: Mention the new module and the
40981         portability problems.
40982
40983 2009-01-18  Bruno Haible  <bruno@clisp.org>
40984
40985         New module 'scandir'.
40986         * lib/dirent.in.h (scandir): New declaration.
40987         * lib/scandir.c: New file, from glibc with modifications.
40988         * m4/scandir.m4: New file.
40989         * modules/scandir: New file.
40990         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40991         HAVE_SCANDIR.
40992         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40993         HAVE_SCANDIR.
40994         * doc/posix-functions/scandir.texi: Mention the new module and the
40995         portability problems.
40996
40997 2009-01-17  Bruno Haible  <bruno@clisp.org>
40998
40999         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41000         Update documentation.
41001         (func_remove_suffix): Escape all dots in the suffix. Update
41002         documentation.
41003         (func_filter_filelist): Update documentation.
41004         Reported by Ralf Wildenhues.
41005
41006 2009-01-17  Bruno Haible  <bruno@clisp.org>
41007
41008         * modules/dprintf-posix-tests: New file.
41009         * tests/test-dprintf-posix.sh: New file.
41010         * tests/test-dprintf-posix.c: New file.
41011
41012         New modules 'dprintf', 'dprintf-posix'.
41013         * lib/stdio.in.h (dprintf): New declaration.
41014         * lib/dprintf.c: New file.
41015         * m4/dprintf.m4: New file.
41016         * m4/dprintf-posix.m4: New file.
41017         * modules/dprintf: New file.
41018         * modules/dprintf-posix: New file.
41019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41020         HAVE_DPRINTF, REPLACE_DPRINTF.
41021         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41022         HAVE_DPRINTF, REPLACE_DPRINTF.
41023         * doc/posix-functions/dprintf.texi: Mention the new modules.
41024
41025 2009-01-17  Bruno Haible  <bruno@clisp.org>
41026
41027         * modules/vdprintf-posix-tests: New file.
41028         * tests/test-vdprintf-posix.sh: New file.
41029         * tests/test-vdprintf-posix.c: New file.
41030
41031         New modules 'vdprintf', 'vdprintf-posix'.
41032         * lib/stdio.in.h (vdprintf): New declaration.
41033         * lib/vdprintf.c: New file.
41034         * m4/vdprintf.m4: New file.
41035         * m4/vdprintf-posix.m4: New file.
41036         * modules/vdprintf: New file.
41037         * modules/vdprintf-posix: New file.
41038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41039         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41040         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41041         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41042         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41043
41044 2009-01-17  Bruno Haible  <bruno@clisp.org>
41045
41046         Fix replacement of fopen on mingw.
41047         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41048         mingw.
41049
41050 2009-01-17  Bruno Haible  <bruno@clisp.org>
41051
41052         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41053         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41054
41055 2009-01-17  Bruno Haible  <bruno@clisp.org>
41056
41057         Avoid test-fflush2.sh failure on mingw.
41058         * tests/test-fflush2.c: Include binary-io.h.
41059         (main): Put standard input into binary mode.
41060         * modules/fflush-tests (Depends-on): Add binary-io.
41061
41062 2009-01-17  Bruno Haible  <bruno@clisp.org>
41063
41064         * lib/wchar.in.h: In another particular situation, include only the
41065         system's <wchar.h> file.
41066         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41067         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41068         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41069
41070 2009-01-17  Bruno Haible  <bruno@clisp.org>
41071
41072         Support for stripping executables in --enable-relocatable.
41073         * build-aux/install-reloc: Expect one more argument, or an environment
41074         variable RELOC_STRIP_PROG. If set, strip the destination program and
41075         its wrapper.
41076         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41077         RELOC_STRIP_PROG.
41078         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41079         to set RELOCATABLE_STRIP.
41080         * NEWS: Mention the new Makefile requirement.
41081
41082 2009-01-17  Bruno Haible  <bruno@clisp.org>
41083
41084         * build-aux/install-reloc: Remove debugging information left over by
41085         C compiler on MacOS X.
41086
41087 2009-01-17  Bruno Haible  <bruno@clisp.org>
41088
41089         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41090         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41091         _NSGetExecutablePath.
41092
41093 2009-01-16  Jim Meyering  <meyering@redhat.com>
41094
41095         strerror: avoid warnings about discarding "const"
41096         * lib/strerror.c (rpl_strerror): Instead of returning a const
41097         string from each and every "case", use a variable, and add a single
41098         cast after the switch.
41099
41100 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41101
41102         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41103
41104 2009-01-16  Bruno Haible  <bruno@clisp.org>
41105
41106         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41107         array initializer syntax that also works in C++ mode.
41108         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41109
41110 2009-01-16  Jim Meyering  <meyering@redhat.com>
41111
41112         poll: suppress a warning
41113         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41114         to ignore "...unsigned expression < 0 is always false" warnings.
41115
41116 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41117
41118         poll: remove declarations of unused variables
41119         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41120         sockbuf and optlen.
41121
41122 2009-01-15  Bruno Haible  <bruno@clisp.org>
41123
41124         Make fflush-after-ungetc POSIX compliant on BSD systems.
41125         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41126         (clear_ungetc_buffer): Implement also for other systems.
41127         (rpl_fflush): On glibc systems, invoke
41128         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41129         clear_ungetc_buffer after fetching the stream's position, not before.
41130
41131 2009-01-15  Bruno Haible  <bruno@clisp.org>
41132
41133         Make fflush-after-ungetc POSIX compliant on glibc systems.
41134         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41135         after ungetc.
41136         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41137         (rpl_fflush): On glibc systems, simply call the system's fflush
41138         function after clearing the ungetc buffer.
41139         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41140         Instead, lseek only to the end of file, then use the system's fseeko
41141         for the rest. On glibc systems, reset the EOF indicator bit.
41142
41143 2009-01-15  Jim Meyering  <meyering@redhat.com>
41144
41145         openmp.m4: revert quote-adding change, for portability to older autoconf
41146         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41147         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41148         Simon Josefsson noticed the problem when using autoconf-2.61.
41149
41150 2009-01-15  Bruno Haible  <bruno@clisp.org>
41151
41152         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41153         * tests/test-fflush2.c (ASSERT): Always fail.
41154         (main): Add two tests for fflush() after ungetc(), taking into account
41155         the Austin Group's clarification.
41156         Suggested by Eric Blake.
41157
41158 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41159
41160         mktime.m4: remove K&R-style function prototypes
41161         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41162         for the Sun C++ compiler.
41163
41164 2009-01-14  Bruno Haible  <bruno@clisp.org>
41165
41166         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41167         while including <wchar.h>.
41168         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41169         the system's <wchar.h> file.
41170         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41171
41172 2009-01-14  Bruno Haible  <bruno@clisp.org>
41173
41174         * m4/csharp.m4: Don't mention gettext on the serial number line.
41175         * m4/csharpexec.m4: Likewise.
41176         * m4/eaccess.m4: Likewise.
41177         * m4/javaexec.m4: Likewise.
41178         * m4/sig_atomic_t.m4: Likewise.
41179         * m4/tmpdir.m4: Likewise.
41180         * m4/intldir.m4: Bump gettext version.
41181         * m4/lib-ld.m4: Likewise.
41182
41183 2009-01-14  Bruno Haible  <bruno@clisp.org>
41184
41185         * lib/progname.c (set_program_name): Add more comments.
41186         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41187
41188 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41189
41190         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41191         were sys/stat.h does not define it.
41192
41193 2009-01-14  Jim Meyering  <meyering@redhat.com>
41194
41195         many *.m4 files: improve m4 quoting
41196         99% of this change was performed by running the following commands:
41197         git ls-files | grep '\.m4$' | xargs perl -pi \
41198           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41199           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41200           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41201           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41202         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41203         The remainder were to add Copyright dates, increment serial numbers,
41204         undo some changes in comments, exclude m4/intl.m4, and add quotes
41205         around the "1" in ",1" where the unusual spacing prohibited the
41206         above regexps from doing the job.  For more details, see
41207         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41208         * m4/acl.m4: Modified.
41209         * m4/afs.m4: Likewise.
41210         * m4/alloca.m4: Likewise.
41211         * m4/argp.m4: Likewise.
41212         * m4/argz.m4: Likewise.
41213         * m4/atexit.m4: Likewise.
41214         * m4/bison-i18n.m4: Likewise.
41215         * m4/bison.m4: Likewise.
41216         * m4/byteswap.m4: Likewise.
41217         * m4/c-stack.m4: Likewise.
41218         * m4/c-strtod.m4: Likewise.
41219         * m4/calloc.m4: Likewise.
41220         * m4/canonicalize-lgpl.m4: Likewise.
41221         * m4/chown.m4: Likewise.
41222         * m4/clock_time.m4: Likewise.
41223         * m4/codeset.m4: Likewise.
41224         * m4/copy-file.m4: Likewise.
41225         * m4/csharp.m4: Likewise.
41226         * m4/csharpcomp.m4: Likewise.
41227         * m4/csharpexec.m4: Likewise.
41228         * m4/d-ino.m4: Likewise.
41229         * m4/d-type.m4: Likewise.
41230         * m4/dirfd.m4: Likewise.
41231         * m4/double-slash-root.m4: Likewise.
41232         * m4/eaccess.m4: Likewise.
41233         * m4/eealloc.m4: Likewise.
41234         * m4/environ.m4: Likewise.
41235         * m4/errno_h.m4: Likewise.
41236         * m4/euidaccess.m4: Likewise.
41237         * m4/execute.m4: Likewise.
41238         * m4/fatal-signal.m4: Likewise.
41239         * m4/fchdir.m4: Likewise.
41240         * m4/fcntl_h.m4: Likewise.
41241         * m4/fileblocks.m4: Likewise.
41242         * m4/filenamecat.m4: Likewise.
41243         * m4/findprog.m4: Likewise.
41244         * m4/flexmember.m4: Likewise.
41245         * m4/fnmatch.m4: Likewise.
41246         * m4/fopen.m4: Likewise.
41247         * m4/fpending.m4: Likewise.
41248         * m4/fprintf-posix.m4: Likewise.
41249         * m4/free.m4: Likewise.
41250         * m4/frexp.m4: Likewise.
41251         * m4/frexpl.m4: Likewise.
41252         * m4/fsusage.m4: Likewise.
41253         * m4/ftruncate.m4: Likewise.
41254         * m4/gc-camellia.m4: Likewise.
41255         * m4/gc-random.m4: Likewise.
41256         * m4/gc.m4: Likewise.
41257         * m4/getaddrinfo.m4: Likewise.
41258         * m4/getcwd-abort-bug.m4: Likewise.
41259         * m4/getcwd-path-max.m4: Likewise.
41260         * m4/getdate.m4: Likewise.
41261         * m4/getdomainname.m4: Likewise.
41262         * m4/getgroups.m4: Likewise.
41263         * m4/gethostname.m4: Likewise.
41264         * m4/gethrxtime.m4: Likewise.
41265         * m4/getline.m4: Likewise.
41266         * m4/getloadavg.m4: Likewise.
41267         * m4/getndelim2.m4: Likewise.
41268         * m4/getpass.m4: Likewise.
41269         * m4/gettext.m4: Likewise.
41270         * m4/gettime.m4: Likewise.
41271         * m4/gettimeofday.m4: Likewise.
41272         * m4/gnulib-common.m4: Likewise.
41273         * m4/group-member.m4: Likewise.
41274         * m4/host-os.m4: Likewise.
41275         * m4/iconv.m4: Likewise.
41276         * m4/iconv_open.m4: Likewise.
41277         * m4/inet_ntop.m4: Likewise.
41278         * m4/inet_pton.m4: Likewise.
41279         * m4/inline.m4: Likewise.
41280         * m4/intldir.m4: Likewise.
41281         * m4/intlmacosx.m4: Likewise.
41282         * m4/intmax.m4: Likewise.
41283         * m4/intmax_t.m4: Likewise.
41284         * m4/inttypes.m4: Likewise.
41285         * m4/inttypes_h.m4: Likewise.
41286         * m4/inttypes-pri.m4: Likewise.
41287         * m4/isapipe.m4: Likewise.
41288         * m4/isnand.m4: Likewise.
41289         * m4/isnanf.m4: Likewise.
41290         * m4/isnanl.m4: Likewise.
41291         * m4/javacomp.m4: Likewise.
41292         * m4/javaexec.m4: Likewise.
41293         * m4/jm-winsz1.m4: Likewise.
41294         * m4/jm-winsz2.m4: Likewise.
41295         * m4/lchown.m4: Likewise.
41296         * m4/lcmessage.m4: Likewise.
41297         * m4/ldexpl.m4: Likewise.
41298         * m4/lib-ld.m4: Likewise.
41299         * m4/lib-link.m4: Likewise.
41300         * m4/libsigsegv.m4: Likewise.
41301         * m4/link-follow.m4: Likewise.
41302         * m4/localcharset.m4: Likewise.
41303         * m4/locale-fr.m4: Likewise.
41304         * m4/locale-ja.m4: Likewise.
41305         * m4/locale-tr.m4: Likewise.
41306         * m4/locale-zh.m4: Likewise.
41307         * m4/lock.m4: Likewise.
41308         * m4/longlong.m4: Likewise.
41309         * m4/ls-mntd-fs.m4: Likewise.
41310         * m4/lstat.m4: Likewise.
41311         * m4/malloc.m4: Likewise.
41312         * m4/mathl.m4: Likewise.
41313         * m4/mbrtowc.m4: Likewise.
41314         * m4/mbstate_t.m4: Likewise.
41315         * m4/mbswidth.m4: Likewise.
41316         * m4/memchr.m4: Likewise.
41317         * m4/memcmp.m4: Likewise.
41318         * m4/memcpy.m4: Likewise.
41319         * m4/memmem.m4: Likewise.
41320         * m4/memmove.m4: Likewise.
41321         * m4/mempcpy.m4: Likewise.
41322         * m4/memrchr.m4: Likewise.
41323         * m4/memset.m4: Likewise.
41324         * m4/minmax.m4: Likewise.
41325         * m4/mkdir-slash.m4: Likewise.
41326         * m4/mkdtemp.m4: Likewise.
41327         * m4/mktime.m4: Likewise.
41328         * m4/mmap-anon.m4: Likewise.
41329         * m4/mountlist.m4: Likewise.
41330         * m4/nanosleep.m4: Likewise.
41331         * m4/nls.m4: Likewise.
41332         * m4/nocrash.m4: Likewise.
41333         * m4/open.m4: Likewise.
41334         * m4/openat.m4: Likewise.
41335         * m4/openmp.m4: Likewise.
41336         * m4/pathmax.m4: Likewise.
41337         * m4/perl.m4: Likewise.
41338         * m4/physmem.m4: Likewise.
41339         * m4/pipe.m4: Likewise.
41340         * m4/po.m4: Likewise.
41341         * m4/poll.m4: Likewise.
41342         * m4/posixtm.m4: Likewise.
41343         * m4/posixver.m4: Likewise.
41344         * m4/printf-frexp.m4: Likewise.
41345         * m4/printf-frexpl.m4: Likewise.
41346         * m4/printf-posix.m4: Likewise.
41347         * m4/printf-posix-rpl.m4: Likewise.
41348         * m4/printf.m4: Likewise.
41349         * m4/progtest.m4: Likewise.
41350         * m4/putenv.m4: Likewise.
41351         * m4/readline.m4: Likewise.
41352         * m4/readlink.m4: Likewise.
41353         * m4/readutmp.m4: Likewise.
41354         * m4/realloc.m4: Likewise.
41355         * m4/regex.m4: Likewise.
41356         * m4/relocatable.m4: Likewise.
41357         * m4/relocatable-lib.m4: Likewise.
41358         * m4/rename-dest-slash.m4: Likewise.
41359         * m4/rename.m4: Likewise.
41360         * m4/rmdir-errno.m4: Likewise.
41361         * m4/rmdir.m4: Likewise.
41362         * m4/roundf.m4: Likewise.
41363         * m4/roundl.m4: Likewise.
41364         * m4/rpmatch.m4: Likewise.
41365         * m4/save-cwd.m4: Likewise.
41366         * m4/selinux-selinux-h.m4: Likewise.
41367         * m4/setenv.m4: Likewise.
41368         * m4/settime.m4: Likewise.
41369         * m4/sig2str.m4: Likewise.
41370         * m4/sig_atomic_t.m4: Likewise.
41371         * m4/signalblocking.m4: Likewise.
41372         * m4/signbit.m4: Likewise.
41373         * m4/sigpipe.m4: Likewise.
41374         * m4/sockets.m4: Likewise.
41375         * m4/sockpfaf.m4: Likewise.
41376         * m4/st_dm_mode.m4: Likewise.
41377         * m4/stat-time.m4: Likewise.
41378         * m4/stdbool.m4: Likewise.
41379         * m4/stdint.m4: Likewise.
41380         * m4/stdint_h.m4: Likewise.
41381         * m4/stpcpy.m4: Likewise.
41382         * m4/stpncpy.m4: Likewise.
41383         * m4/strcase.m4: Likewise.
41384         * m4/strchrnul.m4: Likewise.
41385         * m4/strcspn.m4: Likewise.
41386         * m4/strdup.m4: Likewise.
41387         * m4/strftime.m4: Likewise.
41388         * m4/strndup.m4: Likewise.
41389         * m4/strnlen.m4: Likewise.
41390         * m4/strpbrk.m4: Likewise.
41391         * m4/strptime.m4: Likewise.
41392         * m4/strsep.m4: Likewise.
41393         * m4/strtod.m4: Likewise.
41394         * m4/strtoimax.m4: Likewise.
41395         * m4/strtok_r.m4: Likewise.
41396         * m4/strtol.m4: Likewise.
41397         * m4/strtoll.m4: Likewise.
41398         * m4/strtoul.m4: Likewise.
41399         * m4/strtoull.m4: Likewise.
41400         * m4/strtoumax.m4: Likewise.
41401         * m4/strverscmp.m4: Likewise.
41402         * m4/threadlib.m4: Likewise.
41403         * m4/timegm.m4: Likewise.
41404         * m4/tm_gmtoff.m4: Likewise.
41405         * m4/tmpdir.m4: Likewise.
41406         * m4/tmpfile.m4: Likewise.
41407         * m4/tzset.m4: Likewise.
41408         * m4/uintmax_t.m4: Likewise.
41409         * m4/unlinkdir.m4: Likewise.
41410         * m4/unlocked-io.m4: Likewise.
41411         * m4/uptime.m4: Likewise.
41412         * m4/userspec.m4: Likewise.
41413         * m4/utimbuf.m4: Likewise.
41414         * m4/utime.m4: Likewise.
41415         * m4/utimes-null.m4: Likewise.
41416         * m4/utimes.m4: Likewise.
41417         * m4/vararrays.m4: Likewise.
41418         * m4/vasnprintf.m4: Likewise.
41419         * m4/vfprintf-posix.m4: Likewise.
41420         * m4/vprintf-posix.m4: Likewise.
41421         * m4/wait-process.m4: Likewise.
41422         * m4/wchar_t.m4: Likewise.
41423         * m4/wint_t.m4: Likewise.
41424         * m4/write-any-file.m4: Likewise.
41425         * m4/yield.m4: Likewise.
41426
41427 2009-01-13  Bruno Haible  <bruno@clisp.org>
41428
41429         Avoid test-copy-file.sh failures when ACL support insufficient.
41430         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41431         TESTS_ENVIRONMENT.
41432         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41433         Reported by Jim Meyering.
41434
41435 2009-01-13  Bruno Haible  <bruno@clisp.org>
41436
41437         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41438         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41439         * modules/unistdio/u8-printf-parse (Files): Likewise.
41440         * modules/unistdio/u32-printf-parse (Files): Likewise.
41441         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41442
41443 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41444
41445         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41446         and m4/inttypes_h.m4 too.
41447
41448 2009-01-12  Eric Blake  <ebb9@byu.net>
41449
41450         tests: IRIX 6.2 cc can't compile -0.0 into .data
41451         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41452         rather than at compile-time.
41453         * tests/test-floorl.c (minus_zero): Likewise.
41454         * tests/test-frexpl.c (minus_zero): Likewise.
41455         * tests/test-isnan.c (minus_zerol): Likewise.
41456         * tests/test-isnanl.h (minus_zero): Likewise.
41457         * tests/test-ldexpl.c (minus_zero): Likewise.
41458         * tests/test-roundl.c (minus_zero): Likewise.
41459         * tests/test-signbit.c (minus_zerol): Likewise.
41460         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41461         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41462         * tests/test-truncl.c (minus_zero): Likewise.
41463         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41464         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41465         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41466
41467 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41468
41469         regex: fix glibc bug 9697
41470         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41471         handling.
41472
41473 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41474
41475         regex: fix glibc bug 697
41476         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41477         being NULL also if there are no backreferences.
41478
41479 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41480
41481         regex: merge glibc changes
41482         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41483         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41484         re_string_skip_chars, re_string_reconstruct): Likewise.
41485         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41486
41487 2009-01-07  Jim Meyering  <meyering@redhat.com>
41488
41489         poll: filter through cppi
41490         * lib/poll.c: Indent cpp directives to reflect nesting.
41491
41492 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41493
41494         poll: don't return uninitialized
41495         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41496
41497 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41498
41499         avoid compile failure on AIX 6.1
41500         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41501         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41502
41503 2009-01-04  Jim Meyering  <meyering@redhat.com>
41504
41505         remove duplicate inclusion of <stdio.h>
41506         * tests/test-fprintf-posix.c: Likewise.
41507         * tests/test-printf-posix.c: Likewise.
41508         * tests/test-snprintf-posix.c: Likewise.
41509         * tests/test-sprintf-posix.c: Likewise.
41510         * tests/test-vasprintf-posix.c: Likewise.
41511         * tests/test-vfprintf-posix.c: Likewise.
41512         * tests/test-vprintf-posix.c: Likewise.
41513         * tests/test-vsnprintf-posix.c: Likewise.
41514         * tests/test-vsprintf-posix.c: Likewise.
41515
41516 2009-01-03  Jim Meyering  <meyering@redhat.com>
41517
41518         gnulib-tool: fix sed-based filtering
41519         * gnulib-tool (func_filter_filelist): Remove extra backslash
41520         in sed_fff_filter definition.
41521
41522 2009-01-02  Jim Meyering  <meyering@redhat.com>
41523
41524         strftime: avoid compilation failure on Solaris 2.6
41525         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41526         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41527         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41528         be available.  Reported by Tom G. Christensen.  Details in
41529         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41530
41531 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41532             Bruno Haible  <bruno@clisp.org>
41533
41534         Speed up gnulib-tool by doing more string processing through shell
41535         built-ins.
41536         * gnulib-tool (fast_func_append): New variable.
41537         (func_remove_prefix, func_remove_suffix): New functions.
41538         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41539         (func_filter_filelist): New function.
41540         (func_get_dependencies): Use func_remove_suffix instead of sed.
41541         (func_get_automake_snippet): Use func_filter_filelist instead of a
41542         subshell and sed invocation.
41543
41544 2009-01-01  Bruno Haible  <bruno@clisp.org>
41545
41546         Fix a security bug.
41547         * gnulib-tool (func_import, import, update): Don't allow the characters
41548         '"', '$', '`', '\' in macro arguments that become part of commands that
41549         are evaluated.
41550
41551 2009-01-01  Bruno Haible  <bruno@clisp.org>
41552
41553         * gnulib-tool (func_reset_sigpipe): Add more comments.
41554
41555 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41556
41557         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41558         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41559         already know the answer.
41560
41561 2009-01-01  Jim Meyering  <meyering@redhat.com>
41562
41563         * lib/version-etc.c (version_etc_va): Update copyright year.
41564
41565 2008-12-30  Bruno Haible  <bruno@clisp.org>
41566
41567         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41568         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41569         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41570
41571 2008-12-29  Eric Blake  <ebb9@byu.net>
41572
41573         multiarch: avoid autoconf AC_REQUIRE bug
41574         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41575         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41576         2.63 and older.
41577         Reported by Bruno Haible, and analyzed in
41578         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41579
41580 2008-12-29  Bruno Haible  <bruno@clisp.org>
41581
41582         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41583         files in subdirectories correctly.
41584         Reported by Ralf Wildenhues.
41585
41586 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41587
41588         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41589         rather than 'join FILE -', for Solaris join.
41590
41591 2008-12-29  Bruno Haible  <bruno@clisp.org>
41592
41593         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41594         quoting.
41595         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41596         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41597         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41598         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41599         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41600         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41601         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41602         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41603         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41604         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41605         * m4/nls.m4 (AM_NLS): Likewise.
41606         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41607         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41608         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41609         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41610         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41611         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41612         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41613         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41614         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41615         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41616         * m4/xsize.m4 (gl_XSIZE): Likewise.
41617         Suggested by Jim Meyering.
41618
41619 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41620
41621         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41622         * lib/parse-duration.c: use a switch instead of cascading if's.
41623
41624 2008-12-29  Eric Blake  <ebb9@byu.net>
41625
41626         wchar.h: supply WEOF on Irix 5.3
41627         * lib/wchar.in.h (wint_t): Also supply WEOF.
41628         * lib/wctype.in.h (wint_t): Likewise.
41629         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41630         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41631         Reported by Tom G. Christensen.
41632
41633 2008-12-26  Bruno Haible  <bruno@clisp.org>
41634
41635         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41636         i486, i586, i686.
41637
41638 2008-12-26  Bruno Haible  <bruno@clisp.org>
41639
41640         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41641
41642 2008-12-26  Bruno Haible  <bruno@clisp.org>
41643
41644         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41645         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41646         not __STDC_CONSTANT_MACROS.
41647         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41648
41649 2008-12-25  Bruno Haible  <bruno@clisp.org>
41650
41651         Add support for universal builds to vasnprintf.
41652         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41653         universal builds, guess no.
41654         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41655         * modules/vasprintf-posix (Depends-on): Likewise.
41656         * modules/fprintf-posix (Depends-on): Likewise.
41657         * modules/vfprintf-posix (Depends-on): Likewise.
41658         * modules/snprintf-posix (Depends-on): Likewise.
41659         * modules/vsnprintf-posix (Depends-on): Likewise.
41660         * modules/sprintf-posix (Depends-on): Likewise.
41661         * modules/vsprintf-posix (Depends-on): Likewise.
41662         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41663         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41664         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41665         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41666         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41667         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41668         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41669
41670         Add support for universal builds to <inttypes.h>.
41671         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41672         _SCNu64_PREFIX): In Apple
41673         universal builds, define directly, using _LP64.
41674         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41675         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41676         * modules/inttypes (Depends-on): Add multiarch.
41677         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41678
41679         Add support for universal builds to <stdint.h>.
41680         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41681         universal builds, define directly, using _LP64.
41682         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41683         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41684         and size_t.
41685         * modules/stdint (Depends-on): Add multiarch.
41686         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41687
41688         New module 'multiarch'.
41689         * modules/multiarch: New file.
41690         * m4/multiarch.m4: New file.
41691
41692 2008-12-25  Bruno Haible  <bruno@clisp.org>
41693
41694         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41695
41696 2008-12-25  Bruno Haible  <bruno@clisp.org>
41697
41698         * modules/btowc (License): Relicense under LGPLv2+.
41699         * modules/mbsinit (License): Likewise.
41700         * modules/mbrtowc (License): Likewise.
41701         * modules/wcrtomb (License): Likewise.
41702         * modules/streq (License): Likewise.
41703         Reported by David Lutterkort <lutter@redhat.com>.
41704
41705 2008-12-23  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41708
41709 2008-12-23  Bruno Haible  <bruno@clisp.org>
41710
41711         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41713         GETADDRINFO_LIB, not in LIBS.
41714         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41715         * modules/canon-host (Link): Likewise.
41716         * NEWS: Mention the change.
41717         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41718         GETADDRINFO_LIB.
41719
41720 2008-12-22  Bruno Haible  <bruno@clisp.org>
41721
41722         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41723         * doc/posix-functions/iswalpha_l.texi: Likewise.
41724         * doc/posix-functions/iswblank_l.texi: Likewise.
41725         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41726         * doc/posix-functions/iswctype_l.texi: Likewise.
41727         * doc/posix-functions/iswdigit_l.texi: Likewise.
41728         * doc/posix-functions/iswgraph_l.texi: Likewise.
41729         * doc/posix-functions/iswlower_l.texi: Likewise.
41730         * doc/posix-functions/iswprint_l.texi: Likewise.
41731         * doc/posix-functions/iswpunct_l.texi: Likewise.
41732         * doc/posix-functions/iswspace_l.texi: Likewise.
41733         * doc/posix-functions/iswupper_l.texi: Likewise.
41734         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41735         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41736         * doc/posix-functions/open_wmemstream.texi: Likewise.
41737         * doc/posix-functions/swscanf.texi: Likewise.
41738         * doc/posix-functions/towctrans_l.texi: Likewise.
41739         * doc/posix-functions/towlower.texi: Likewise.
41740         * doc/posix-functions/towlower_l.texi: Likewise.
41741         * doc/posix-functions/towupper.texi: Likewise.
41742         * doc/posix-functions/towupper_l.texi: Likewise.
41743         * doc/posix-functions/vfwprintf.texi: Likewise.
41744         * doc/posix-functions/vfwscanf.texi: Likewise.
41745         * doc/posix-functions/vswscanf.texi: Likewise.
41746         * doc/posix-functions/vwprintf.texi: Likewise.
41747         * doc/posix-functions/vwscanf.texi: Likewise.
41748         * doc/posix-functions/wcpcpy.texi: Likewise.
41749         * doc/posix-functions/wcpncpy.texi: Likewise.
41750         * doc/posix-functions/wcscasecmp.texi: Likewise.
41751         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41752         * doc/posix-functions/wcscoll_l.texi: Likewise.
41753         * doc/posix-functions/wcsdup.texi: Likewise.
41754         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41755         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41756         * doc/posix-functions/wcsnlen.texi: Likewise.
41757         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41758         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41759         * doc/posix-functions/wctrans_l.texi: Likewise.
41760         * doc/posix-functions/wctype_l.texi: Likewise.
41761         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41762         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41763         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41764         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41765         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41766         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41767         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41768         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41769         * doc/glibc-functions/wcschrnul.texi: Likewise.
41770         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41771         * doc/glibc-functions/wcstod_l.texi: Likewise.
41772         * doc/glibc-functions/wcstof_l.texi: Likewise.
41773         * doc/glibc-functions/wcstol_l.texi: Likewise.
41774         * doc/glibc-functions/wcstold_l.texi: Likewise.
41775         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41776         * doc/glibc-functions/wcstoq.texi: Likewise.
41777         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41778         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41779         * doc/glibc-functions/wcstouq.texi: Likewise.
41780         * doc/glibc-functions/wmempcpy.texi: Likewise.
41781
41782 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41783             Eric Blake  <ebb9@byu.net>
41784             Paolo Bonzini  <bonzini@gnu.org>
41785             Bruno Haible  <bruno@clisp.org>
41786
41787         Make c-stack work on Haiku.
41788         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41789         (c_stack_action): Use SA_ONSTACK flag.
41790
41791 2008-12-22  Bruno Haible  <bruno@clisp.org>
41792
41793         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41794
41795 2008-12-22  Bruno Haible  <bruno@clisp.org>
41796
41797         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41798         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41799         being overridden.
41800         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41801         New macros.
41802         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41804         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41805         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41806
41807 2008-12-22  Bruno Haible  <bruno@clisp.org>
41808
41809         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41810         from test code.
41811
41812 2008-12-22  Eric Blake  <ebb9@byu.net>
41813
41814         Avoid gcc warnings on cygwin.
41815         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41816         Avoid unused variable.
41817         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41818         Likewise.
41819
41820 2008-12-22  Bruno Haible  <bruno@clisp.org>
41821
41822         Remove HAVE_MBRTOWC conditionals.
41823         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41824         (mbscasecmp): Assume mbrtowc function.
41825         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41826         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41827         * lib/mbschr.c: Include mbuiter.h unconditionally.
41828         (mbschr): Assume mbrtowc function.
41829         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41830         (mbscspn): Assume mbrtowc function.
41831         * lib/mbslen.c: Include mbuiter.h unconditionally.
41832         (mbslen): Assume mbrtowc function.
41833         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41834         (mbsncasecmp): Assume mbrtowc function.
41835         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41836         (mbsnlen): Assume mbrtowc function.
41837         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41838         (mbspbrk): Assume mbrtowc function.
41839         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41840         (mbspcasecmp): Assume mbrtowc function.
41841         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41842         (mbsrchr): Assume mbrtowc function.
41843         * lib/mbssep.c: Include mbuiter.h unconditionally.
41844         (mbssep): Assume mbrtowc function.
41845         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41846         (mbsspn): Assume mbrtowc function.
41847         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41848         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41849         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41850         (mbstok_r): Assume mbrtowc function.
41851         * lib/propername.c: Include mbuiter.h unconditionally.
41852         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41853         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41854         (trim2): Assume mbrtowc function.
41855         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41856         (mbsnwidth): Assume mbrtowc function.
41857         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41858         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41859         fallback definitions.
41860         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41861
41862 2008-12-22  Bruno Haible  <bruno@clisp.org>
41863
41864         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41865
41866 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41867
41868         * modules/regex: Request emulations for the mb*/wc* functions we need.
41869         * m4/regex.m4: Don't look for those functions here.
41870         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41871
41872 2008-12-22  Bruno Haible  <bruno@clisp.org>
41873
41874         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41875
41876 2008-12-21  Bruno Haible  <bruno@clisp.org>
41877
41878         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41879         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41880         (Include): Remove conditionalization.
41881         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41882         (Include): Remove conditionalization.
41883         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41884         (Include): Remove conditionalization.
41885         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41886         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41887         * NEWS: Mention the change.
41888         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41889         via Sergey Poznyakoff <gray@gnu.org.ua>.
41890
41891 2008-12-21  Bruno Haible  <bruno@clisp.org>
41892
41893         * MODULES.html.sh (Extended multibyte and wide character utilities
41894         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41895         wcrtomb, wcsrtombs.
41896         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41897         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41898         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41899         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41900
41901 2008-12-21  Bruno Haible  <bruno@clisp.org>
41902
41903         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41904
41905 2008-12-21  Bruno Haible  <bruno@clisp.org>
41906
41907         * modules/wcsnrtombs-tests: New file.
41908         * tests/test-wcsnrtombs1.sh: New file.
41909         * tests/test-wcsnrtombs2.sh: New file.
41910         * tests/test-wcsnrtombs3.sh: New file.
41911         * tests/test-wcsnrtombs4.sh: New file.
41912         * tests/test-wcsnrtombs.c: New file.
41913
41914         New module 'wcsnrtombs'.
41915         * lib/wchar.in.h (wcsnrtombs): New declaration.
41916         * lib/wcsnrtombs.c: New file.
41917         * lib/wcsrtombs-state.c: New file.
41918         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41919         (internal_state): Remove variable.
41920         * m4/wcsnrtombs.m4: New file.
41921         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41922         compilation units.
41923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41924         HAVE_WCSNRTOMBS.
41925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41926         HAVE_WCSNRTOMBS.
41927         * modules/wcsnrtombs: New file.
41928         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41929         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41930
41931 2008-12-21  Bruno Haible  <bruno@clisp.org>
41932
41933         * modules/wcsrtombs-tests: New file.
41934         * tests/test-wcsrtombs1.sh: New file.
41935         * tests/test-wcsrtombs2.sh: New file.
41936         * tests/test-wcsrtombs3.sh: New file.
41937         * tests/test-wcsrtombs4.sh: New file.
41938         * tests/test-wcsrtombs.c: New file.
41939
41940         New module 'wcsrtombs'.
41941         * lib/wchar.in.h (wcsrtombs): New declaration.
41942         * lib/wcsrtombs.c: New file.
41943         * m4/wcsrtombs.m4: New file.
41944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41945         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41947         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41948         * modules/wcsrtombs: New file.
41949         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41950         bugs.
41951
41952 2008-12-21  Bruno Haible  <bruno@clisp.org>
41953
41954         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41955         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41956         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41957         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41958         if not correct.
41959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41960         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41961         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41962         m4/locale-zh.m4, m4/codeset.m4.
41963         * doc/posix-functions/wcrtomb.texi: Document the bug.
41964
41965 2008-12-21  Bruno Haible  <bruno@clisp.org>
41966
41967         Work around a btowc() bug on IRIX 6.5.
41968         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41969         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41970         REPLACE_WTOBC if not.
41971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41972         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41973         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41974
41975 2008-12-21  Bruno Haible  <bruno@clisp.org>
41976
41977         * modules/wcrtomb-tests: New file.
41978         * tests/test-wcrtomb.sh: New file.
41979         * tests/test-wcrtomb.c: New file.
41980
41981         New module 'wcrtomb'.
41982         * lib/wchar.in.h (wcrtomb): New declaration.
41983         * lib/wcrtomb.c: New file.
41984         * m4/wcrtomb.m4: New file.
41985         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41986         HAVE_WCRTOMB.
41987         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41988         HAVE_WCRTOMB.
41989         * modules/wcrtomb: New file.
41990         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41991
41992 2008-12-21  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41995         * modules/mbsrtowcs (Files): Likewise.
41996         * modules/wctob (Files): Likewise.
41997         * modules/c-strcase-tests (Files): Likewise.
41998         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41999         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42000         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42001         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42002         * modules/vasnprintf-posix-tests (Files): Likewise.
42003
42004 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42005
42006         gitlog-to-changelog: pass all command-line arguments to git-log
42007         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42008         it is sometimes convenient to filter the commits in various ways.
42009         gitlog-to-changelog only allows --since to specify a start date,
42010         but git-log itself supports many other filtering mechanisms.
42011         At the moment, I want to filter by branch name.  Rather than
42012         adding a --branch option to gitlog-to-changelog, it seems more
42013         flexible to simply pass all options directly to git-log and let
42014         git do the work.  Notice that this effectively makes --since a
42015         redundant option for gitlog-to-changelog, but removing it would
42016         require current usage to change since calls would then require
42017         an additional '--'.
42018
42019 2008-12-21  Bruno Haible  <bruno@clisp.org>
42020
42021         * modules/mbsnrtowcs-tests: New file.
42022         * tests/test-mbsnrtowcs1.sh: New file.
42023         * tests/test-mbsnrtowcs2.sh: New file.
42024         * tests/test-mbsnrtowcs3.sh: New file.
42025         * tests/test-mbsnrtowcs4.sh: New file.
42026         * tests/test-mbsnrtowcs.c: New file.
42027
42028         New module 'mbsnrtowcs'.
42029         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42030         * lib/mbsnrtowcs.c: New file.
42031         * lib/mbsrtowcs-state.c: New file.
42032         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42033         (internal_state): Remove variable.
42034         * m4/mbsnrtowcs.m4: New file.
42035         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42036         compilation units.
42037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42038         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42039         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42040         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42041         * modules/mbsnrtowcs: New file.
42042         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42043         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42044         portability problem.
42045
42046 2008-12-21  Bruno Haible  <bruno@clisp.org>
42047
42048         Work around mbsrtowcs bug.
42049         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42050         (gl_FUNC_MBSRTOWCS): Invoke it.
42051         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42052         m4/locale-zh.m4.
42053         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42054
42055 2008-12-21  Bruno Haible  <bruno@clisp.org>
42056
42057         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42058
42059 2008-12-21  Bruno Haible  <bruno@clisp.org>
42060
42061         Update doc for AIX.
42062         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42063         16-bit wchar_t type.
42064         * doc/posix-functions/btowc.texi: Likewise.
42065         * doc/posix-functions/fgetwc.texi: Likewise.
42066         * doc/posix-functions/fgetws.texi: Likewise.
42067         * doc/posix-functions/fputwc.texi: Likewise.
42068         * doc/posix-functions/fputws.texi: Likewise.
42069         * doc/posix-functions/fwide.texi: Likewise.
42070         * doc/posix-functions/fwprintf.texi: Likewise.
42071         * doc/posix-functions/fwscanf.texi: Likewise.
42072         * doc/posix-functions/getwchar.texi: Likewise.
42073         * doc/posix-functions/getwc.texi: Likewise.
42074         * doc/posix-functions/iswalnum.texi: Likewise.
42075         * doc/posix-functions/iswalpha.texi: Likewise.
42076         * doc/posix-functions/iswblank.texi: Likewise.
42077         * doc/posix-functions/iswcntrl.texi: Likewise.
42078         * doc/posix-functions/iswctype.texi: Likewise.
42079         * doc/posix-functions/iswdigit.texi: Likewise.
42080         * doc/posix-functions/iswgraph.texi: Likewise.
42081         * doc/posix-functions/iswlower.texi: Likewise.
42082         * doc/posix-functions/iswprint.texi: Likewise.
42083         * doc/posix-functions/iswpunct.texi: Likewise.
42084         * doc/posix-functions/iswspace.texi: Likewise.
42085         * doc/posix-functions/iswupper.texi: Likewise.
42086         * doc/posix-functions/iswxdigit.texi: Likewise.
42087         * doc/posix-functions/mbrtowc.texi: Likewise.
42088         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42089         * doc/posix-functions/mbstowcs.texi: Likewise.
42090         * doc/posix-functions/mbtowc.texi: Likewise.
42091         * doc/posix-functions/putwchar.texi: Likewise.
42092         * doc/posix-functions/putwc.texi: Likewise.
42093         * doc/posix-functions/swprintf.texi: Likewise.
42094         * doc/posix-functions/tolower.texi: Likewise.
42095         * doc/posix-functions/toupper.texi: Likewise.
42096         * doc/posix-functions/towctrans.texi: Likewise.
42097         * doc/posix-functions/ungetwc.texi: Likewise.
42098         * doc/posix-functions/vswprintf.texi: Likewise.
42099         * doc/posix-functions/wcrtomb.texi: Likewise.
42100         * doc/posix-functions/wcscat.texi: Likewise.
42101         * doc/posix-functions/wcschr.texi: Likewise.
42102         * doc/posix-functions/wcscmp.texi: Likewise.
42103         * doc/posix-functions/wcscoll.texi: Likewise.
42104         * doc/posix-functions/wcscpy.texi: Likewise.
42105         * doc/posix-functions/wcscspn.texi: Likewise.
42106         * doc/posix-functions/wcsftime.texi: Likewise.
42107         * doc/posix-functions/wcslen.texi: Likewise.
42108         * doc/posix-functions/wcsncat.texi: Likewise.
42109         * doc/posix-functions/wcsncmp.texi: Likewise.
42110         * doc/posix-functions/wcsncpy.texi: Likewise.
42111         * doc/posix-functions/wcspbrk.texi: Likewise.
42112         * doc/posix-functions/wcsrchr.texi: Likewise.
42113         * doc/posix-functions/wcsrtombs.texi: Likewise.
42114         * doc/posix-functions/wcsspn.texi: Likewise.
42115         * doc/posix-functions/wcsstr.texi: Likewise.
42116         * doc/posix-functions/wcstod.texi: Likewise.
42117         * doc/posix-functions/wcstof.texi: Likewise.
42118         * doc/posix-functions/wcstoimax.texi: Likewise.
42119         * doc/posix-functions/wcstok.texi: Likewise.
42120         * doc/posix-functions/wcstold.texi: Likewise.
42121         * doc/posix-functions/wcstoll.texi: Likewise.
42122         * doc/posix-functions/wcstol.texi: Likewise.
42123         * doc/posix-functions/wcstombs.texi: Likewise.
42124         * doc/posix-functions/wcstoull.texi: Likewise.
42125         * doc/posix-functions/wcstoul.texi: Likewise.
42126         * doc/posix-functions/wcstoumax.texi: Likewise.
42127         * doc/posix-functions/wcswidth.texi: Likewise.
42128         * doc/posix-functions/wcsxfrm.texi: Likewise.
42129         * doc/posix-functions/wctob.texi: Likewise.
42130         * doc/posix-functions/wctomb.texi: Likewise.
42131         * doc/posix-functions/wctrans.texi: Likewise.
42132         * doc/posix-functions/wctype.texi: Likewise.
42133         * doc/posix-functions/wcwidth.texi: Likewise.
42134         * doc/posix-functions/wmemchr.texi: Likewise.
42135         * doc/posix-functions/wmemcmp.texi: Likewise.
42136         * doc/posix-functions/wmemcpy.texi: Likewise.
42137         * doc/posix-functions/wmemmove.texi: Likewise.
42138         * doc/posix-functions/wmemset.texi: Likewise.
42139         * doc/posix-functions/wprintf.texi: Likewise.
42140         * doc/posix-functions/wscanf.texi: Likewise.
42141
42142 2008-12-21  Bruno Haible  <bruno@clisp.org>
42143
42144         Update doc for HP-UX 11.11.
42145         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42146         in HP-UX version 11.00, not in all versions of HP-UX 11.
42147         * doc/posix-functions/fwide.texi: Likewise.
42148         * doc/posix-functions/fwprintf.texi: Likewise.
42149         * doc/posix-functions/fwscanf.texi: Likewise.
42150         * doc/posix-functions/inet_ntop.texi: Likewise.
42151         * doc/posix-functions/inet_pton.texi: Likewise.
42152         * doc/posix-functions/mbrlen.texi: Likewise.
42153         * doc/posix-functions/mbrtowc.texi: Likewise.
42154         * doc/posix-functions/mbsinit.texi: Likewise.
42155         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42156         * doc/posix-functions/swprintf.texi: Likewise.
42157         * doc/posix-functions/swscanf.texi: Likewise.
42158         * doc/posix-functions/towctrans.texi: Likewise.
42159         * doc/posix-functions/vfwprintf.texi: Likewise.
42160         * doc/posix-functions/vswprintf.texi: Likewise.
42161         * doc/posix-functions/vwprintf.texi: Likewise.
42162         * doc/posix-functions/wcrtomb.texi: Likewise.
42163         * doc/posix-functions/wcsrtombs.texi: Likewise.
42164         * doc/posix-functions/wcsstr.texi: Likewise.
42165         * doc/posix-functions/wctob.texi: Likewise.
42166         * doc/posix-functions/wctrans.texi: Likewise.
42167         * doc/posix-functions/wmemchr.texi: Likewise.
42168         * doc/posix-functions/wmemcmp.texi: Likewise.
42169         * doc/posix-functions/wmemcpy.texi: Likewise.
42170         * doc/posix-functions/wmemmove.texi: Likewise.
42171         * doc/posix-functions/wmemset.texi: Likewise.
42172         * doc/posix-functions/wprintf.texi: Likewise.
42173         * doc/posix-functions/wscanf.texi: Likewise.
42174
42175 2008-12-21  Bruno Haible  <bruno@clisp.org>
42176
42177         Work around a portability problem.
42178         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42179         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42180
42181 2008-12-20  Bruno Haible  <bruno@clisp.org>
42182
42183         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42184         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42185         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42186         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42187         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42188
42189         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42190         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42191         set.
42192         (GNULIB_defined_mbstate_t): New macro.
42193         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42194         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42195         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42196         reuses the system's mbrtowc function but works around the bugs.
42197         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42198         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42199         macros.
42200         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42201         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42202         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42203         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42204         REPLACE_MBSINIT if mbsinit needs to be overridden.
42205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42206         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42207         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42208         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42209         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42210         m4/locale-zh.m4.
42211         (Depends): Add mbsinit.
42212         * modules/mbsinit (Depends): Add mbrtowc.
42213         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42214
42215 2008-12-20  Bruno Haible  <bruno@clisp.org>
42216
42217         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42218         so that there are no conversion errors on AIX.
42219         * tests/test-mbsrtowcs.c (main): LIkewise.
42220
42221 2008-12-20  Bruno Haible  <bruno@clisp.org>
42222
42223         Work around wctob bug on Solaris <= 9.
42224         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42225         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42227         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42228         * modules/wctob (Files): Add m4/locale-fr.m4.
42229         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42230
42231 2008-12-20  Bruno Haible  <bruno@clisp.org>
42232
42233         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42234         /dev/null.
42235         * tests/test-select-in.sh: Likewise.
42236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42237
42238 2008-12-20  Bruno Haible  <bruno@clisp.org>
42239
42240         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42241         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42242         Cygwin 1.5.x.
42243
42244 2008-12-20  Bruno Haible  <bruno@clisp.org>
42245
42246         Ensure mbstate_t is defined on HP-UX 11.11.
42247         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42248         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42249         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42250         AC_USE_SYSTEM_EXTENSIONS.
42251         * modules/fnmatch (Depends-on): Add extensions.
42252         * modules/mbrlen (Depends-on): Likewise.
42253         * modules/mbrtowc (Depends-on): Likewise.
42254         * modules/mbsinit (Depends-on): Likewise.
42255         * modules/mbsrtowcs (Depends-on): Likewise.
42256         * modules/mbswidth (Depends-on): Likewise.
42257         * modules/quotearg (Depends-on): Likewise.
42258         * modules/strftime (Depends-on): Likewise.
42259
42260 2008-12-20  Bruno Haible  <bruno@clisp.org>
42261
42262         Ensure wctob is declared on IRIX 6.5.
42263         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42264         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42265         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42267         of HAVE_WCTOB.
42268         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42269         HAVE_WCTOB.
42270         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42271
42272 2008-12-19  Bruno Haible  <bruno@clisp.org>
42273
42274         * modules/mbsrtowcs-tests: New file.
42275         * tests/test-mbsrtowcs1.sh: New file.
42276         * tests/test-mbsrtowcs2.sh: New file.
42277         * tests/test-mbsrtowcs3.sh: New file.
42278         * tests/test-mbsrtowcs4.sh: New file.
42279         * tests/test-mbsrtowcs.c: New file.
42280
42281         New module 'mbsrtowcs'.
42282         * lib/wchar.in.h (mbsrtowcs): New declaration.
42283         * lib/mbsrtowcs.c: New file.
42284         * m4/mbsrtowcs.m4: New file.
42285         * modules/mbsrtowcs: New file.
42286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42287         HAVE_MBSRTOWCS.
42288         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42289         HAVE_MBSRTOWCS.
42290         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42291
42292 2008-12-19  Bruno Haible  <bruno@clisp.org>
42293
42294         New module 'mbrlen'.
42295         * lib/wchar.in.h (mbrlen): New declaration.
42296         * lib/mbrlen.c: New file.
42297         * m4/mbrlen.m4: New file.
42298         * modules/mbrlen: New file.
42299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42300         HAVE_MBRLEN.
42301         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42302         HAVE_MBRLEN.
42303         * doc/posix-functions/mbrlen.texi: Document the new module.
42304
42305 2008-12-19  Bruno Haible  <bruno@clisp.org>
42306
42307         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42308         * modules/mbrtowc (Depends-on): Add verify.
42309         Suggested by Paul Eggert.
42310
42311 2008-12-18  Bruno Haible  <bruno@clisp.org>
42312
42313         * modules/mbsinit-tests: New file.
42314         * tests/test-mbsinit.sh: New file.
42315         * tests/test-mbsinit.c: New file.
42316
42317 2008-12-18  Bruno Haible  <bruno@clisp.org>
42318
42319         * modules/mbrtowc-tests: New file.
42320         * tests/test-mbrtowc1.sh: New file.
42321         * tests/test-mbrtowc2.sh: New file.
42322         * tests/test-mbrtowc3.sh: New file.
42323         * tests/test-mbrtowc4.sh: New file.
42324         * tests/test-mbrtowc.c: New file.
42325
42326         New module 'mbrtowc'.
42327         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42328         mbsinit and mbrtowc.
42329         (mbrtowc): New declaration.
42330         * lib/mbrtowc.c: New file.
42331         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42332         * modules/mbrtowc: New file.
42333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42334         HAVE_MBRTOWC.
42335         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42336         HAVE_MBRTOWC.
42337         * doc/posix-functions/mbrtowc.texi: Document the new module.
42338
42339 2008-12-18  Bruno Haible  <bruno@clisp.org>
42340
42341         New module 'wctob'.
42342         * lib/wchar.in.h (wctob): New declaration.
42343         * lib/wctob.c: New file.
42344         * m4/wctob.m4: New file.
42345         * modules/wctob: New file.
42346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42347         HAVE_WCTOB.
42348         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42349         * doc/posix-functions/wctob.texi: Document the new module.
42350
42351 2008-12-18  Bruno Haible  <bruno@clisp.org>
42352
42353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42354         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42355
42356 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42357
42358         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42359         G. Christensen" <tgc@jupiterrise.com>.
42360
42361         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42362         G. Christensen" <tgc@jupiterrise.com>.
42363
42364         * lib/flock.c: Need to include string.h.  Reported by "Tom
42365         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42366         <ebb9@byu.net>.
42367
42368 2008-12-18  Bruno Haible  <bruno@clisp.org>
42369
42370         * m4/locale-ja.m4: New file, from GNU gettext.
42371
42372 2008-12-17  Bruno Haible  <bruno@clisp.org>
42373
42374         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42375         Suggested by Eric Blake.
42376
42377 2008-12-17  Bruno Haible  <bruno@clisp.org>
42378
42379         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42380
42381 2008-12-17  Bruno Haible  <bruno@clisp.org>
42382
42383         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42384         * modules/mbsinit (Depends-on): Add verify.
42385         Suggested by Paul Eggert.
42386
42387 2008-12-17  Bruno Haible  <bruno@clisp.org>
42388
42389         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42390         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42391         gl_FUNC_MBRTOWC.
42392         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42393         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42394         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42395         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42396         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42397         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42398         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42399         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42400         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42401         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42402         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42403         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42404         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42405         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42406         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42407         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42408         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42409         * modules/trim (configure.ac): Likewise.
42410
42411 2008-12-17  Bruno Haible  <bruno@clisp.org>
42412
42413         * modules/btowc-tests: New file.
42414         * tests/test-btowc1.sh: New file.
42415         * tests/test-btowc2.sh: New file.
42416         * tests/test-btowc.c: New file.
42417
42418         New module 'btowc'.
42419         * lib/wchar.in.h (btowc): New declaration.
42420         * lib/btowc.c: New file.
42421         * m4/btowc.m4: New file.
42422         * modules/btowc: New file.
42423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42424         HAVE_BTOWC.
42425         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42426         * doc/posix-functions/btowc.texi: Document the new module.
42427
42428 2008-12-17  Bruno Haible  <bruno@clisp.org>
42429
42430         New module 'mbsinit'.
42431         * lib/wchar.in.h (mbsinit): New declaration.
42432         * lib/mbsinit.c: New file.
42433         * m4/mbsinit.m4: New file.
42434         * modules/mbsinit: New file.
42435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42436         HAVE_MBSINIT.
42437         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42438         HAVE_MBSINIT.
42439         * doc/posix-functions/mbsinit.texi: Document the new module.
42440
42441 2008-12-16  Bruno Haible  <bruno@clisp.org>
42442
42443         * lib/unistd.in.h: Add comment.
42444         * tests/test-environ.c: Don't include <stdlib.h>.
42445
42446 2008-12-16  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/parse-duration.h (parse_duration): Document return value
42449         convention.
42450         * lib/parse-duration.c: Include specification header first. Add
42451         comments.
42452         (_): Remove macro.
42453         (parse_year_month_day, parse_hour_minute_second): Move side effects
42454         outside of strchr call.
42455         (parse_non_iso8601): Move side effects outside of isspace call.
42456         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42457         call.
42458
42459 2008-12-16  Bruno Haible  <bruno@clisp.org>
42460
42461         * tests/test-parse-duration.sh: Produce no output when the test
42462         succeeds.
42463
42464 2008-12-16  Bruno Haible  <bruno@clisp.org>
42465
42466         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42467         expressions.
42468
42469 2008-12-15  Bruno Haible  <bruno@clisp.org>
42470
42471         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42472         * doc/glibc-functions/flistxattr.texi: Likewise.
42473         * doc/glibc-functions/fopencookie.texi: Likewise.
42474         * doc/glibc-functions/fremovexattr.texi: Likewise.
42475         * doc/glibc-functions/fsetxattr.texi: Likewise.
42476         * doc/glibc-functions/getxattr.texi: Likewise.
42477         * doc/glibc-functions/lgetxattr.texi: Likewise.
42478         * doc/glibc-functions/listxattr.texi: Likewise.
42479         * doc/glibc-functions/llistxattr.texi: Likewise.
42480         * doc/glibc-functions/lremovexattr.texi: Likewise.
42481         * doc/glibc-functions/lsetxattr.texi: Likewise.
42482         * doc/glibc-functions/removexattr.texi: Likewise.
42483         * doc/glibc-functions/setxattr.texi: Likewise.
42484         * doc/posix-functions/open_memstream.texi: Likewise.
42485
42486 2008-12-15  Eric Blake  <ebb9@byu.net>
42487
42488         Update doc for cygwin 1.7.
42489         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42490         functions.
42491         * doc/posix-functions/fchmodat.texi: Likewise.
42492         * doc/posix-functions/fchownat.texi: Likewise.
42493         * doc/posix-functions/fdopendir.texi: Likewise.
42494         * doc/posix-functions/fmemopen.texi: Likewise.
42495         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42496         * doc/posix-functions/fstatat.texi: Likewise.
42497         * doc/posix-functions/futimens.texi: Likewise.
42498         * doc/posix-functions/gai_strerror.texi: Likewise.
42499         * doc/posix-functions/getaddrinfo.texi: Likewise.
42500         * doc/posix-functions/getnameinfo.texi: Likewise.
42501         * doc/posix-functions/if_freenameindex.texi: Likewise.
42502         * doc/posix-functions/if_indextoname.texi: Likewise.
42503         * doc/posix-functions/if_nameindex.texi: Likewise.
42504         * doc/posix-functions/if_nametoindex.texi: Likewise.
42505         * doc/posix-functions/insque.texi: Likewise.
42506         * doc/posix-functions/linkat.texi: Likewise.
42507         * doc/posix-functions/llrint.texi: Likewise.
42508         * doc/posix-functions/llrintf.texi: Likewise.
42509         * doc/posix-functions/llrintl.texi: Likewise.
42510         * doc/posix-functions/lockf.texi: Likewise.
42511         * doc/posix-functions/lrintl.texi: Likewise.
42512         * doc/posix-functions/mkdirat.texi: Likewise.
42513         * doc/posix-functions/mkfifoat.texi: Likewise.
42514         * doc/posix-functions/mknodat.texi: Likewise.
42515         * doc/posix-functions/mq_close.texi: Likewise.
42516         * doc/posix-functions/mq_getattr.texi: Likewise.
42517         * doc/posix-functions/mq_notify.texi: Likewise.
42518         * doc/posix-functions/mq_open.texi: Likewise.
42519         * doc/posix-functions/mq_receive.texi: Likewise.
42520         * doc/posix-functions/mq_send.texi: Likewise.
42521         * doc/posix-functions/mq_setattr.texi: Likewise.
42522         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42523         * doc/posix-functions/mq_timedsend.texi: Likewise.
42524         * doc/posix-functions/mq_unlink.texi: Likewise.
42525         * doc/posix-functions/open_memstream.texi: Likewise.
42526         * doc/posix-functions/openat.texi: Likewise.
42527         * doc/posix-functions/posix_fadvise.texi: Likewise.
42528         * doc/posix-functions/posix_fallocate.texi: Likewise.
42529         * doc/posix-functions/posix_madvise.texi: Likewise.
42530         * doc/posix-functions/posix_memalign.texi: Likewise.
42531         * doc/posix-functions/posix_openpt.texi: Likewise.
42532         * doc/posix-functions/readlinkat.texi: Likewise.
42533         * doc/posix-functions/remque.texi: Likewise.
42534         * doc/posix-functions/renameat.texi: Likewise.
42535         * doc/posix-functions/rintl.texi: Likewise.
42536         * doc/posix-functions/sem_unlink.texi: Likewise.
42537         * doc/posix-functions/shm_open.texi: Likewise.
42538         * doc/posix-functions/shm_unlink.texi: Likewise.
42539         * doc/posix-functions/signgam.texi: Likewise.
42540         * doc/posix-functions/sigset.texi: Likewise.
42541         * doc/posix-functions/stpcpy.texi: Likewise.
42542         * doc/posix-functions/stpncpy.texi: Likewise.
42543         * doc/posix-functions/strerror.texi: Likewise.
42544         * doc/posix-functions/strtod.texi: Likewise.
42545         * doc/posix-functions/symlinkat.texi: Likewise.
42546         * doc/posix-functions/unlinkat.texi: Likewise.
42547         * doc/posix-functions/utimensat.texi: Likewise.
42548         * doc/glibc-functions/bindresvport.texi: Likewise.
42549         * doc/glibc-functions/dn_expand.texi: Likewise.
42550         * doc/glibc-functions/exp10.texi: Likewise.
42551         * doc/glibc-functions/exp10f.texi: Likewise.
42552         * doc/glibc-functions/fgetxattr.texi: Likewise.
42553         * doc/glibc-functions/flistxattr.texi: Likewise.
42554         * doc/glibc-functions/fopencookie.texi: Likewise.
42555         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42556         * doc/glibc-functions/fremovexattr.texi: Likewise.
42557         * doc/glibc-functions/fsetxattr.texi: Likewise.
42558         * doc/glibc-functions/getifaddrs.texi: Likewise.
42559         * doc/glibc-functions/getxattr.texi: Likewise.
42560         * doc/glibc-functions/lgetxattr.texi: Likewise.
42561         * doc/glibc-functions/listxattr.texi: Likewise.
42562         * doc/glibc-functions/llistxattr.texi: Likewise.
42563         * doc/glibc-functions/lremovexattr.texi: Likewise.
42564         * doc/glibc-functions/lsetxattr.texi: Likewise.
42565         * doc/glibc-functions/pow10.texi: Likewise.
42566         * doc/glibc-functions/pow10f.texi: Likewise.
42567         * doc/glibc-functions/rcmd_af.texi: Likewise.
42568         * doc/glibc-functions/removexattr.texi: Likewise.
42569         * doc/glibc-functions/res_init.texi: Likewise.
42570         * doc/glibc-functions/res_mkquery.texi: Likewise.
42571         * doc/glibc-functions/res_query.texi: Likewise.
42572         * doc/glibc-functions/res_querydomain.texi: Likewise.
42573         * doc/glibc-functions/res_send.texi: Likewise.
42574         * doc/glibc-functions/rresvport_af.texi: Likewise.
42575         * doc/glibc-functions/setxattr.texi: Likewise.
42576         * doc/glibc-functions/strcasestr.texi: Likewise.
42577
42578 2008-12-15  Bruno Haible  <bruno@clisp.org>
42579
42580         Fix compilation error on OSF/1 4.0.
42581         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42582         <sys/time.h>, simply delegate to the system header.
42583         Reported by Daniel Richard G. <oss@teragram.com>.
42584
42585 2008-12-15  Bruno Haible  <bruno@clisp.org>
42586
42587         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42588         * doc/posix-functions/fchmodat.texi: Likewise.
42589         * doc/posix-functions/fchownat.texi: Likewise.
42590         * doc/posix-functions/fdopendir.texi: Likewise.
42591         * doc/posix-functions/fstatat.texi: Likewise.
42592         * doc/posix-functions/mkdirat.texi: Likewise.
42593         * doc/posix-functions/unlinkat.texi: Likewise.
42594
42595 2008-12-14  Bruno Haible  <bruno@clisp.org>
42596
42597         Update doc for POSIX:2008.
42598         * doc/posix-functions/faccessat.texi: New file.
42599         * doc/posix-functions/fchmodat.texi: New file.
42600         * doc/posix-functions/fchownat.texi: New file.
42601         * doc/posix-functions/fdopendir.texi: New file.
42602         * doc/posix-functions/fstatat.texi: New file.
42603         * doc/posix-functions/futimens.texi: New file.
42604         * doc/posix-functions/linkat.texi: New file.
42605         * doc/posix-functions/mkdirat.texi: New file.
42606         * doc/posix-functions/mkfifoat.texi: New file.
42607         * doc/posix-functions/mknodat.texi: New file.
42608         * doc/posix-functions/open_wmemstream.texi: New file.
42609         * doc/posix-functions/openat.texi: New file.
42610         * doc/posix-functions/psiginfo.texi: New file.
42611         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42612         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42613         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42614         * doc/posix-functions/readlinkat.texi: New file.
42615         * doc/posix-functions/renameat.texi: New file.
42616         * doc/posix-functions/strerror_l.texi: New file.
42617         * doc/posix-functions/symlinkat.texi: New file.
42618         * doc/posix-functions/unlinkat.texi: New file.
42619         * doc/posix-functions/utimensat.texi: New file.
42620         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42621
42622 2008-12-14  Bruno Haible  <bruno@clisp.org>
42623
42624         Update doc for POSIX:2008.
42625         * doc/posix-functions/alphasort.texi: Renamed from
42626         doc/glibc-functions/alphasort.texi.
42627         * doc/posix-functions/dirfd.texi: Renamed from
42628         doc/glibc-functions/dirfd.texi.
42629         * doc/posix-functions/dprintf.texi: Renamed from
42630         doc/glibc-functions/dprintf.texi.
42631         * doc/posix-functions/duplocale.texi: Renamed from
42632         doc/glibc-functions/duplocale.texi.
42633         * doc/posix-functions/fexecve.texi: Renamed from
42634         doc/glibc-functions/fexecve.texi.
42635         * doc/posix-functions/fmemopen.texi: Renamed from
42636         doc/glibc-functions/fmemopen.texi.
42637         * doc/posix-functions/freelocale.texi: Renamed from
42638         doc/glibc-functions/freelocale.texi.
42639         * doc/posix-functions/getdate_err.texi: Renamed from
42640         doc/glibc-functions/getdate_err.texi.
42641         * doc/posix-functions/isalnum_l.texi: Renamed from
42642         doc/glibc-functions/isalnum_l.texi.
42643         * doc/posix-functions/isalpha_l.texi: Renamed from
42644         doc/glibc-functions/isalpha_l.texi.
42645         * doc/posix-functions/isblank_l.texi: Renamed from
42646         doc/glibc-functions/isblank_l.texi.
42647         * doc/posix-functions/iscntrl_l.texi: Renamed from
42648         doc/glibc-functions/iscntrl_l.texi.
42649         * doc/posix-functions/isdigit_l.texi: Renamed from
42650         doc/glibc-functions/isdigit_l.texi.
42651         * doc/posix-functions/isgraph_l.texi: Renamed from
42652         doc/glibc-functions/isgraph_l.texi.
42653         * doc/posix-functions/islower_l.texi: Renamed from
42654         doc/glibc-functions/islower_l.texi.
42655         * doc/posix-functions/isprint_l.texi: Renamed from
42656         doc/glibc-functions/isprint_l.texi.
42657         * doc/posix-functions/ispunct_l.texi: Renamed from
42658         doc/glibc-functions/ispunct_l.texi.
42659         * doc/posix-functions/isspace_l.texi: Renamed from
42660         doc/glibc-functions/isspace_l.texi.
42661         * doc/posix-functions/isupper_l.texi: Renamed from
42662         doc/glibc-functions/isupper_l.texi.
42663         * doc/posix-functions/iswalnum_l.texi: Renamed from
42664         doc/glibc-functions/iswalnum_l.texi.
42665         * doc/posix-functions/iswalpha_l.texi: Renamed from
42666         doc/glibc-functions/iswalpha_l.texi.
42667         * doc/posix-functions/iswblank_l.texi: Renamed from
42668         doc/glibc-functions/iswblank_l.texi.
42669         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42670         doc/glibc-functions/iswcntrl_l.texi.
42671         * doc/posix-functions/iswctype_l.texi: Renamed from
42672         doc/glibc-functions/iswctype_l.texi.
42673         * doc/posix-functions/iswdigit_l.texi: Renamed from
42674         doc/glibc-functions/iswdigit_l.texi.
42675         * doc/posix-functions/iswgraph_l.texi: Renamed from
42676         doc/glibc-functions/iswgraph_l.texi.
42677         * doc/posix-functions/iswlower_l.texi: Renamed from
42678         doc/glibc-functions/iswlower_l.texi.
42679         * doc/posix-functions/iswprint_l.texi: Renamed from
42680         doc/glibc-functions/iswprint_l.texi.
42681         * doc/posix-functions/iswpunct_l.texi: Renamed from
42682         doc/glibc-functions/iswpunct_l.texi.
42683         * doc/posix-functions/iswspace_l.texi: Renamed from
42684         doc/glibc-functions/iswspace_l.texi.
42685         * doc/posix-functions/iswupper_l.texi: Renamed from
42686         doc/glibc-functions/iswupper_l.texi.
42687         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42688         doc/glibc-functions/iswxdigit_l.texi.
42689         * doc/posix-functions/isxdigit_l.texi: Renamed from
42690         doc/glibc-functions/isxdigit_l.texi.
42691         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42692         doc/glibc-functions/mbsnrtowcs.texi.
42693         * doc/posix-functions/mkdtemp.texi: Renamed from
42694         doc/glibc-functions/mkdtemp.texi.
42695         * doc/posix-functions/newlocale.texi: Renamed from
42696         doc/glibc-functions/newlocale.texi.
42697         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42698         doc/glibc-functions/nl_langinfo_l.texi.
42699         * doc/posix-functions/open_memstream.texi: Renamed from
42700         doc/glibc-functions/open_memstream.texi.
42701         * doc/posix-functions/opterr.texi: Renamed from
42702         doc/glibc-functions/opterr.texi.
42703         * doc/posix-functions/optind.texi: Renamed from
42704         doc/glibc-functions/optind.texi.
42705         * doc/posix-functions/optopt.texi: Renamed from
42706         doc/glibc-functions/optopt.texi.
42707         * doc/posix-functions/psignal.texi: Renamed from
42708         doc/glibc-functions/psignal.texi.
42709         * doc/posix-functions/scandir.texi: Renamed from
42710         doc/glibc-functions/scandir.texi.
42711         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42712         doc/glibc-functions/sched_get_priority_min.texi.
42713         * doc/posix-functions/signgam.texi: Renamed from
42714         doc/glibc-functions/signgam.texi.
42715         * doc/posix-functions/stpcpy.texi: Renamed from
42716         doc/glibc-functions/stpcpy.texi.
42717         * doc/posix-functions/stpncpy.texi: Renamed from
42718         doc/glibc-functions/stpncpy.texi.
42719         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42720         doc/glibc-functions/strcasecmp_l.texi.
42721         * doc/posix-functions/strcoll_l.texi: Renamed from
42722         doc/glibc-functions/strcoll_l.texi.
42723         * doc/posix-functions/strfmon_l.texi: Renamed from
42724         doc/glibc-functions/strfmon_l.texi.
42725         * doc/posix-functions/strftime_l.texi: Renamed from
42726         doc/glibc-functions/strftime_l.texi.
42727         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42728         doc/glibc-functions/strncasecmp_l.texi.
42729         * doc/posix-functions/strndup.texi: Renamed from
42730         doc/glibc-functions/strndup.texi.
42731         * doc/posix-functions/strnlen.texi: Renamed from
42732         doc/glibc-functions/strnlen.texi.
42733         * doc/posix-functions/strsignal.texi: Renamed from
42734         doc/glibc-functions/strsignal.texi.
42735         * doc/posix-functions/strxfrm_l.texi: Renamed from
42736         doc/glibc-functions/strxfrm_l.texi.
42737         * doc/posix-functions/timer_gettime.texi: Renamed from
42738         doc/glibc-functions/timer_gettime.texi.
42739         * doc/posix-functions/tolower_l.texi: Renamed from
42740         doc/glibc-functions/tolower_l.texi.
42741         * doc/posix-functions/toupper_l.texi: Renamed from
42742         doc/glibc-functions/toupper_l.texi.
42743         * doc/posix-functions/towctrans_l.texi: Renamed from
42744         doc/glibc-functions/towctrans_l.texi.
42745         * doc/posix-functions/towlower_l.texi: Renamed from
42746         doc/glibc-functions/towlower_l.texi.
42747         * doc/posix-functions/towupper_l.texi: Renamed from
42748         doc/glibc-functions/towupper_l.texi.
42749         * doc/posix-functions/uselocale.texi: Renamed from
42750         doc/glibc-functions/uselocale.texi.
42751         * doc/posix-functions/vdprintf.texi: Renamed from
42752         doc/glibc-functions/vdprintf.texi.
42753         * doc/posix-functions/wcpcpy.texi:
42754         Renamed from doc/glibc-functions/wcpcpy.texi.
42755         * doc/posix-functions/wcpncpy.texi: Renamed from
42756         doc/glibc-functions/wcpncpy.texi.
42757         * doc/posix-functions/wcscasecmp.texi: Renamed from
42758         doc/glibc-functions/wcscasecmp.texi.
42759         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42760         doc/glibc-functions/wcscasecmp_l.texi.
42761         * doc/posix-functions/wcscoll_l.texi: Renamed from
42762         doc/glibc-functions/wcscoll_l.texi.
42763         * doc/posix-functions/wcsdup.texi: Renamed from
42764         doc/glibc-functions/wcsdup.texi.
42765         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42766         doc/glibc-functions/wcsncasecmp.texi.
42767         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42768         doc/glibc-functions/wcsncasecmp_l.texi.
42769         * doc/posix-functions/wcsnlen.texi: Renamed from
42770         doc/glibc-functions/wcsnlen.texi.
42771         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42772         doc/glibc-functions/wcsnrtombs.texi.
42773         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42774         doc/glibc-functions/wcsxfrm_l.texi.
42775         * doc/posix-functions/wctrans_l.texi: Renamed from
42776         doc/glibc-functions/wctrans_l.texi.
42777         * doc/posix-functions/wctype_l.texi: Renamed from
42778         doc/glibc-functions/wctype_l.texi.
42779         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42780         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42781         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42782         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42783         these subsections.
42784         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42785         Remove sections.
42786
42787 2008-12-14  Bruno Haible  <bruno@clisp.org>
42788
42789         Update doc for POSIX:2008.
42790         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42791
42792 2008-12-14  Bruno Haible  <bruno@clisp.org>
42793
42794         Update doc for POSIX:2008.
42795         * doc/pastposix-functions/bcmp.texi: Renamed from
42796         doc/posix-functions/bcmp.texi.
42797         * doc/pastposix-functions/bcopy.texi: Renamed from
42798         doc/posix-functions/bcopy.texi.
42799         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42800         doc/posix-functions/bsd_signal.texi.
42801         * doc/pastposix-functions/bzero.texi: Renamed from
42802         doc/posix-functions/bzero.texi.
42803         * doc/pastposix-functions/ecvt.texi: Renamed from
42804         doc/posix-functions/ecvt.texi.
42805         * doc/pastposix-functions/fcvt.texi: Renamed from
42806         doc/posix-functions/fcvt.texi.
42807         * doc/pastposix-functions/ftime.texi: Renamed from
42808         doc/posix-functions/ftime.texi.
42809         * doc/pastposix-functions/gcvt.texi: Renamed from
42810         doc/posix-functions/gcvt.texi.
42811         * doc/pastposix-functions/getcontext.texi: Renamed from
42812         doc/posix-functions/getcontext.texi.
42813         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42814         doc/posix-functions/gethostbyaddr.texi.
42815         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42816         doc/posix-functions/gethostbyname.texi.
42817         * doc/pastposix-functions/getwd.texi: Renamed from
42818         doc/posix-functions/getwd.texi.
42819         * doc/pastposix-functions/h_errno.texi: Renamed from
42820         doc/posix-functions/h_errno.texi.
42821         * doc/pastposix-functions/index.texi: Renamed from
42822         doc/posix-functions/index.texi.
42823         * doc/pastposix-functions/makecontext.texi: Renamed from
42824         doc/posix-functions/makecontext.texi.
42825         * doc/pastposix-functions/mktemp.texi: Renamed from
42826         doc/posix-functions/mktemp.texi.
42827         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42828         doc/posix-functions/pthread_attr_getstackaddr.texi.
42829         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42830         doc/posix-functions/pthread_attr_setstackaddr.texi.
42831         * doc/pastposix-functions/rindex.texi: Renamed from
42832         doc/posix-functions/rindex.texi.
42833         * doc/pastposix-functions/scalb.texi: Renamed from
42834         doc/posix-functions/scalb.texi.
42835         * doc/pastposix-functions/setcontext.texi: Renamed from
42836         doc/posix-functions/setcontext.texi.
42837         * doc/pastposix-functions/swapcontext.texi: Renamed from
42838         doc/posix-functions/swapcontext.texi.
42839         * doc/pastposix-functions/ualarm.texi: Renamed from
42840         doc/posix-functions/ualarm.texi.
42841         * doc/pastposix-functions/usleep.texi: Renamed from
42842         doc/posix-functions/usleep.texi.
42843         * doc/pastposix-functions/vfork.texi: Renamed from
42844         doc/posix-functions/vfork.texi.
42845         * doc/pastposix-functions/wcswcs.texi: Renamed from
42846         doc/posix-functions/wcswcs.texi.
42847         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42848         (Function Substitutes): Update.
42849
42850 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42851
42852         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42853         m4/strerror.m4.
42854
42855 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42856             Bruno Haible  <bruno@clisp.org>
42857
42858         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42859
42860 2008-12-13  Bruno Haible  <bruno@clisp.org>
42861
42862         * modules/strtoull (Depends-on): Remove unistd.
42863
42864 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42865
42866         * modules/strtoull (Depends-on): Add stdlib.
42867
42868 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42869
42870         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42871
42872 2008-12-10  Jim Meyering  <meyering@redhat.com>
42873
42874         gl_ASSERT: don't say assertions are disabled when they're not
42875         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42876         "checking whether to enable assertions... no", when they are in
42877         fact enabled.  This is solely a bug in the output of configure.
42878         In spite of saying "no", NDEBUG was not defined in that case.
42879         Also, as noted by Eric Blake, leave assertions enabled upon
42880         --enable-assert=INVALID.
42881
42882 2008-12-10  Bruno Haible  <bruno@clisp.org>
42883
42884         Change MODULES.html to refer to POSIX:2008 where possible.
42885         * MODULES.html.sh (POSIX2008_URL): New variable.
42886         (posix_headers): Remove sys/timeb, ucontext.
42887         (posix2001_headers): New variable.
42888         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42889         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42890         index, makecontext, mktemp, pthread_attr_getstackaddr,
42891         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42892         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42893         (posix2001_functions): New variable.
42894         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42895         otherwise.
42896
42897 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42898
42899         add missing include to parse-duration.c
42900         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42901         * modules/parse-duration (Depends-on): Add xalloc.
42902
42903         fix sed script reading maint.mk
42904         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42905         (syntax-check-rules): Use it.
42906
42907 2008-12-09  Bruno Haible  <bruno@clisp.org>
42908
42909         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42910         MacOS X 10.4/PowerPC.
42911         Reported by Simon Josefsson.
42912
42913 2008-12-08  Jim Meyering  <meyering@redhat.com>
42914
42915         work around mingw's lack of some S_IF definitions
42916         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42917         Reported by Simon Josefsson.
42918
42919 2008-12-08  Bruno Haible  <bruno@clisp.org>
42920
42921         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42922         applied to variables. Needed on MacOS X 10.4/PowerPC.
42923         Reported by Simon Josefsson.
42924
42925 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42926         and Eric Blake  <ebb9@byu.net>
42927
42928         assert: honor --enable-assert
42929         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42930         order to honor --enable-assert, rather than treating it as a
42931         synonym for --disable-assert.
42932
42933 2008-12-08  Jim Meyering  <meyering@redhat.com>
42934
42935         * lib/posixtm.c: Remove now-useless declaration of mktime.
42936
42937         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42938
42939 2008-12-07  Bruno Haible  <bruno@clisp.org>
42940
42941         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42942         test_once): Mark functions as static.
42943         * tests/test-tls.c (test_tls): Likewise.
42944
42945 2008-12-07  Bruno Haible  <bruno@clisp.org>
42946
42947         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42948         iconv_register_autodetect.
42949
42950 2008-12-07  Jim Meyering  <meyering@redhat.com>
42951
42952         posixtm.c: avoid a warning
42953         * lib/posixtm.c (posixtime): Don't initialize tm0.
42954         It's no longer needed to placate gcc4's -Wuninitialized,
42955         and the attempt to placate would elicit a new warning.
42956
42957         unicodeio.c: mark unused parameters
42958         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42959         (fallback_failure_callback): Likewise.
42960
42961 2008-12-07  Bruno Haible  <bruno@clisp.org>
42962
42963         * gnulib-tool (func_create_testdir): When building the tests
42964         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42965         Reported by Simon Josefsson.
42966
42967 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42968
42969         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42970
42971 2008-12-06  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42974         Suggested by Eric Blake.
42975
42976 2008-12-06  Bruno Haible  <bruno@clisp.org>
42977
42978         Fix a c-stack test failure on MacOS X.
42979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42980         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42981         handler for SIGBUS as well.
42982         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42983         install a signal handler for SIGBUS as well.
42984         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42985
42986 2008-12-06  Bruno Haible  <bruno@clisp.org>
42987
42988         Advocacy documentation.
42989         * doc/gnulib-intro.texi (Benefits): New section.
42990         * doc/gnulib.texi: Update.
42991
42992 2008-12-06  Bruno Haible  <bruno@clisp.org>
42993
42994         Document the 'manywarnings' module.
42995         * doc/manywarnings.texi: New file.
42996         * doc/gnulib.texi: Include it.
42997
42998 2008-12-05  Eric Blake  <ebb9@byu.net>
42999
43000         tests: silence some gcc warnings
43001         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43002         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43003         type mismatches.
43004
43005 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43006             Bruno Haible  <bruno@clisp.org>
43007
43008         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43009
43010 2008-11-29  Jim Meyering  <meyering@redhat.com>
43011
43012         unicodeio.c: mark unused parameters
43013         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43014         (fallback_failure_callback): Likewise.
43015
43016         fts: fix a thinko
43017         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43018         (set_stat_type): Return S_IF*-valued "type" directly.
43019         Prompted by James Youngman's spotting a related bug.
43020         Confirmed by further testing through find.
43021
43022         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43023         * lib/fts.c (D_TYPE): Define.
43024         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43025         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43026         (s_ifmt_shift_bits): New function.
43027         (set_stat_type): New function.
43028         (fts_build): When not calling fts_stat, call set_stat_type
43029         to propagate dirent.d_type info to fts_read caller.
43030         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43031         fts_statp->st_mode type information may be valid.
43032
43033 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43034
43035         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43036         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43037         <sds@gnu.org>.
43038
43039 2008-11-20  Bruno Haible  <bruno@clisp.org>
43040
43041         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43042         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43043         INCLUDE_NEXT.
43044         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43045         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43046         * modules/math (Makefile.am): Substitute
43047         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43048         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43049
43050 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43051             Bruno Haible  <bruno@clisp.org>
43052
43053         * lib/stdint.in.h: Define all type macros so that their expansion is
43054         a single typedef'ed token. Fixes a compilation failure in Boost which
43055         does "using ::int8_t;".
43056
43057 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43058
43059         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43060         gl_MANYWARN_ALL_GCC.
43061         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43062         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43063         * modules/manywarnings: New file.
43064         * MODULES.html.sh: Mention manywarnings module.
43065
43066 2008-11-18  Bruno Haible  <bruno@clisp.org>
43067
43068         * doc/gnulib-tool.texi (Unit tests): New section.
43069
43070 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43071
43072         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43073         paths like 'lib/po/foo.po'.
43074
43075 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43076
43077         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43078         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43079
43080 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43081
43082         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43083         parameter works.
43084
43085 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43086
43087         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43088
43089 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43090
43091         * modules/parse-duration-tests: New file.
43092         * tests/test-parse-duration.sh: New file.
43093         * tests/test-parse-duration.c: New file.
43094
43095         New module 'parse-duration'.
43096         * lib/parse-duration.h: New file.
43097         * lib/parse-duration.c: New file.
43098         * modules/parse-duration: New file.
43099
43100 2008-11-17  Bruno Haible  <bruno@clisp.org>
43101
43102         * tests/test-select-out.sh: Comment out the first pipe test.
43103         Reported by Simon Josefsson.
43104
43105 2008-11-17  Bruno Haible  <bruno@clisp.org>
43106
43107         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43109         gl_HOSTENT.
43110
43111 2008-11-17  Bruno Haible  <bruno@clisp.org>
43112
43113         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43114         -lnetwork and -lnet. Needed for Haiku and BeOS.
43115
43116 2008-11-16  Bruno Haible  <bruno@clisp.org>
43117
43118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43119
43120 2008-11-16  Bruno Haible  <bruno@clisp.org>
43121
43122         Avoid test failure on Haiku.
43123         * tests/test-fsync.c: Include <errno.h>.
43124         (main): Don't require that fsync (0) fails.
43125
43126 2008-11-15  Bruno Haible  <bruno@clisp.org>
43127
43128         New module 'hostent'.
43129         * modules/hostent: New file.
43130         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43131
43132 2008-11-15  Bruno Haible  <bruno@clisp.org>
43133
43134         New module 'servent'.
43135         * modules/servent: New file.
43136         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43137
43138 2008-11-15  Bruno Haible  <bruno@clisp.org>
43139
43140         Avoid generating same test program with two different rules.
43141         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43142         test-frexp to test-frexp-nolibm.
43143         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43144         test-frexpl to test-frexpl-nolibm.
43145
43146 2008-11-15  Bruno Haible  <bruno@clisp.org>
43147
43148         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43149         $(FREXPL_LIBM).
43150
43151 2008-11-15  Bruno Haible  <bruno@clisp.org>
43152
43153         * lib/netdb.in.h: Activate the definitions also when the system's
43154         <netdb.h> has 'struct addrinfo'.
43155         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43156         EAI_OVERFLOW or AI_NUMERICSERV.
43157         * doc/posix-headers/netdb.texi: Document the problem.
43158
43159 2008-11-15  Bruno Haible  <bruno@clisp.org>
43160
43161         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43162
43163         Make the 'sched' module work on platforms where <sched.h> exists but
43164         is incomplete (such as Haiku).
43165         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43166         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43167         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43168         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43169         HAVE_STRUCT_SCHED_PARAM.
43170         * modules/sched (Depends-on): Add include_next.
43171         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43172         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43173         * doc/posix-headers/sched.texi: Document the issue.
43174
43175 2008-11-13  Jim Meyering  <meyering@redhat.com>
43176
43177         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43178         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43179         test would fail due to the difference in the Report bugs to ...
43180         line.  The expected address is empty, "<>", while the actual
43181         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43182
43183 2008-11-12  Bruno Haible  <bruno@clisp.org>
43184
43185         lstat: don't compile lstat.c on systems lacking lstat
43186         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43187         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43188         Reported by Daniel P. Berrange via Jim Meyering.
43189
43190 2008-11-12  Jim Meyering  <meyering@redhat.com>
43191
43192         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43193
43194 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43195
43196         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43197         instead.
43198
43199 2008-11-12  Bruno Haible  <bruno@clisp.org>
43200
43201         * lib/unicodeio.c: Include unistr.h.
43202         (utf8_wctomb): Remove function.
43203         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43204
43205 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43206
43207         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43208         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43209         <bruno@clisp.org>.
43210         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43211
43212 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43213
43214         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43215         * doc/gnulib.texi: Add section for warnings.
43216
43217 2008-11-11  Bruno Haible  <bruno@clisp.org>
43218
43219         * lib/sockets.h: Add a comment.
43220
43221 2008-11-11  Karl Berry  <karl@gnu.org>
43222
43223         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43224
43225 2008-11-11  Eric Blake  <ebb9@byu.net>
43226
43227         fdl.texi: avoid git symlinks
43228         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43229
43230 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43231
43232         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43233
43234 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43235
43236         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43237         (gl_WARN_ADD): Substitute $2 if literal.
43238
43239 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43240
43241         * m4/warning.m4: Remove.
43242
43243 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43244
43245         * m4/warnings.m4: Almost complete rewrite. :-)
43246
43247 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43248
43249         * modules/warnings: New module.
43250         * m4/warnings.m4: New file.
43251         * MODULES.html.sh: Mention warnings module.
43252         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43253         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43254
43255 2008-11-10  Eric Blake  <ebb9@byu.net>
43256
43257         fdl.texi: make a symlink to the latest version
43258         * doc/standards.texi: Revert today's earlier change.
43259         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43260         * doc/fdl.texi: ...and replace this with a symlink to the newer
43261         fdl-1.3.texi.
43262
43263 2008-11-10  Bruno Haible  <bruno@clisp.org>
43264
43265         * tests/test-select-fd.c (main): Accept the result file name as fourth
43266         argument.
43267         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43268         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43269
43270 2008-11-10  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43273         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43274         as autoconf-substituted macros.
43275         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43277         gl_NETDB_H_DEFAULTS. Set these variables.
43278         * modules/netdb (Makefile.am): Substitute these variables.
43279
43280 2008-11-10  Eric Blake  <ebb9@byu.net>
43281
43282         standards.texi: include correct file for FDL 1.3
43283         * doc/standards.texi (GNU Free Documentation License): Change
43284         include file to pull in FDL 1.3, not 1.2.
43285
43286         fdl.texi: revert accidental change to license
43287         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43288
43289 2008-11-10  Bruno Haible  <bruno@clisp.org>
43290
43291         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43292         cross-compiling guesses also when the native compile gives no result.
43293
43294 2008-11-10  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/spawni.c (__spawni): Force variable into the stack.
43297
43298 2008-11-10  Bruno Haible  <bruno@clisp.org>
43299
43300         Add support for Haiku.
43301         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43302         glibc and BeOS, but also on Haiku.
43303         * lib/fpurge.c (fpurge): Likewise.
43304         * lib/freadable.c (freadable): Likewise.
43305         * lib/freadahead.c (freadahead): Likewise.
43306         * lib/freading.c (freading): Likewise.
43307         * lib/freadptr.c (freadptr): Likewise.
43308         * lib/freadseek.c (freadptrinc): Likewise.
43309         * lib/fseeko.c (rpl_fseeko): Likewise.
43310         * lib/fseterr.c (fseterr): Likewise.
43311         * lib/fwritable.c (fwritable): Likewise.
43312         * lib/fwriting.c (fwriting): Likewise.
43313         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43314
43315 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43316
43317         * lib/config.charset: Treat Haiku like BeOS.
43318
43319 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43320
43321         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43322         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43323
43324 2008-11-08  Bruno Haible  <bruno@clisp.org>
43325
43326         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43327         AC_CACHE_CHECK.
43328
43329 2008-11-08  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43332
43333 2008-11-08  Bruno Haible  <bruno@clisp.org>
43334
43335         * tests/test-select-fd.c: New file.
43336         * tests/test-select-in.sh: New file.
43337         * tests/test-select-out.sh: New file.
43338         * tests/test-select-stdin.c: New file.
43339         * modules/select-tests (Files): Add the new files.
43340         (Depends-on): Add gettimeofday.
43341         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43342         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43343         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43344
43345 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43346             Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43349
43350 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43351
43352         * build-aux/pmccabe2html: Added support for C++ source files.
43353
43354 2008-11-05  Ben Pfaff  <blp@gnu.org>
43355
43356         Fix lib/close.c build on Windows.
43357         * modules/close (Files): Add lib/w32sock.h.
43358
43359 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43360
43361         Accept Bison's NEWS format.
43362         * build-aux/announce-gen (print_news_deltas): Tweak
43363         $re_prefix.
43364
43365 2008-11-04  Bruno Haible  <bruno@clisp.org>
43366
43367         * modules/random_r (Maintainer): Add glibc.
43368
43369 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43370
43371         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43372         by karl@freefriends.org (Karl Berry).
43373         * doc/alloca.texi: Likewise.
43374         * doc/c-ctype.texi: Likewise.
43375         * doc/c-strcase.texi: Likewise.
43376         * doc/c-strcaseeq.texi: Likewise.
43377         * doc/c-strcasestr.texi: Likewise.
43378         * doc/c-strstr.texi: Likewise.
43379         * doc/c-strtod.texi: Likewise.
43380         * doc/c-strtold.texi: Likewise.
43381         * doc/ctime.texi: Likewise.
43382         * doc/error.texi: Likewise.
43383         * doc/fdl.texi: Likewise.
43384         * doc/gcd.texi: Likewise.
43385         * doc/getdate.texi: Likewise.
43386         * doc/gnulib-intro.texi: Likewise.
43387         * doc/gnulib-tool.texi: Likewise.
43388         * doc/gnulib.texi: Likewise.
43389         * doc/inet_ntoa.texi: Likewise.
43390         * doc/maintain.texi: Likewise.
43391         * doc/make-stds.texi: Likewise.
43392         * doc/quote.texi: Likewise.
43393         * doc/regexprops-generic.texi: Likewise.
43394         * doc/standards.texi: Likewise.
43395         * doc/verify.texi: Likewise.
43396         * doc/visibility.texi: Likewise.
43397         * doc/gnulib.texi (GNU Free Documentation License): Include
43398         fdl-1.3.texi instead of fdl.texi.
43399
43400 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43401
43402         * doc/fdl-1.3.texi: New file, from
43403         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43404         * modules/fdl-1.3: Add.
43405         * MODULES.html.sh: Add fdl-1.3.
43406
43407 2008-11-03  Bruno Haible  <bruno@clisp.org>
43408
43409         Make determination of absolute name of header file work with AIX xlc.
43410         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43411         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43412         preprocessing.
43413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43414         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43415
43416 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43417
43418         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43419         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43420         <ludo@gnu.org>.
43421
43422 2008-11-02  Bruno Haible  <bruno@clisp.org>
43423
43424         Mark 'strpbrk' obsolete.
43425         * modules/strpbrk (Status, Notice): New sections.
43426         * modules/strtok_r (Depends-on): Add strpbrk.
43427
43428 2008-11-02  Bruno Haible  <bruno@clisp.org>
43429
43430         Mark 'strdup' obsolete.
43431         * modules/strdup (Status, Notice): New sections.
43432         * modules/findprog (Depends-on): Add strdup.
43433         * modules/getaddrinfo (Depends-on): Likewise.
43434         * modules/localename (Depends-on): Likewise.
43435         * modules/relocatable-lib (Depends-on): Likewise.
43436         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43437         * modules/relocatable-prog (Depends-on): Likewise.
43438         * modules/trim (Depends-on): Likewise.
43439         * modules/unictype/gen-ctype (Depends-on): Likewise.
43440         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43441
43442 2008-11-02  Bruno Haible  <bruno@clisp.org>
43443
43444         Mark 'strcspn' obsolete.
43445         * modules/strcspn (Status, Notice): New sections.
43446
43447 2008-11-02  Bruno Haible  <bruno@clisp.org>
43448
43449         Mark 'rmdir' obsolete.
43450         * modules/rmdir (Status, Notice): New sections.
43451         * modules/clean-temp (Depends-on): Add rmdir.
43452         * modules/openat (Depends-on): Likewise.
43453
43454 2008-11-02  Bruno Haible  <bruno@clisp.org>
43455
43456         Mark 'raise' obsolete.
43457         * modules/raise (Status, Notice): New sections.
43458         (Include): Specify <signal.h>.
43459         * modules/stdio (Depends-on): Add raise.
43460         * modules/write (Depends-on): Likewise.
43461
43462 2008-11-02  Bruno Haible  <bruno@clisp.org>
43463
43464         Mark 'memset' obsolete.
43465         * modules/memset (Status, Notice): New sections.
43466
43467 2008-11-02  Bruno Haible  <bruno@clisp.org>
43468
43469         Mark 'memmove' obsolete.
43470         * modules/memmove (Status, Notice): New sections.
43471         * modules/argp (Depends-on): Add memmove.
43472         * modules/argz (Depends-on): Likewise.
43473         * modules/canonicalize (Depends-on): Likewise.
43474         * modules/canonicalize-lgpl (Depends-on): Likewise.
43475         * modules/fts (Depends-on): Likewise.
43476         * modules/getcwd (Depends-on): Likewise.
43477         * modules/human (Depends-on): Likewise.
43478         * modules/regex (Depends-on): Likewise.
43479         * modules/striconveh (Depends-on): Likewise.
43480         * modules/trim (Depends-on): Likewise.
43481         * modules/unistr/u8-move (Depends-on): Likewise.
43482         * modules/unistr/u16-move (Depends-on): Likewise.
43483         * modules/unistr/u32-move (Depends-on): Likewise.
43484
43485 2008-11-02  Bruno Haible  <bruno@clisp.org>
43486
43487         Mark 'memcpy' obsolete.
43488         * modules/memcpy (Status, Notice): New sections.
43489
43490 2008-11-02  Bruno Haible  <bruno@clisp.org>
43491
43492         Mark 'memcmp' obsolete.
43493         * modules/memcmp (Status, Notice): New sections.
43494         * modules/argmatch (Depends-on): Add memchr.
43495         * modules/backupfile (Depends-on): Likewise.
43496         * modules/c-strcasestr (Depends-on): Likewise.
43497         * modules/crypto/des (Depends-on): Likewise.
43498         * modules/csharpcomp (Depends-on): Likewise.
43499         * modules/fnmatch (Depends-on): Likewise.
43500         * modules/git-merge-changelog (Depends-on): Likewise.
43501         * modules/isnand (Depends-on): Likewise.
43502         * modules/isnand-nolibm (Depends-on): Likewise.
43503         * modules/isnanf (Depends-on): Likewise.
43504         * modules/isnanf-nolibm (Depends-on): Likewise.
43505         * modules/isnanl (Depends-on): Likewise.
43506         * modules/isnanl-nolibm (Depends-on): Likewise.
43507         * modules/mbchar (Depends-on): Likewise.
43508         * modules/memcoll (Depends-on): Likewise.
43509         * modules/quotearg (Depends-on): Likewise.
43510         * modules/regex (Depends-on): Likewise.
43511         * modules/relocatable-prog (Depends-on): Likewise.
43512         * modules/same (Depends-on): Likewise.
43513         * modules/signbit (Depends-on): Likewise.
43514         * modules/strcasestr-simple (Depends-on): Likewise.
43515         * modules/unictype/gen-ctype (Depends-on): Likewise.
43516         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43517         * modules/uniname/uniname (Depends-on): Likewise.
43518         * modules/unistr/u8-cmp (Depends-on): Likewise.
43519
43520 2008-11-02  Bruno Haible  <bruno@clisp.org>
43521
43522         Mark 'memchr' obsolete.
43523         * modules/memchr (Status, Notice): New sections.
43524         * modules/argp (Depends-on): Add memchr.
43525         * modules/base64 (Depends-on): Likewise.
43526         * modules/c-strcasestr (Depends-on): Likewise.
43527         * modules/chdir-long (Depends-on): Likewise.
43528         * modules/fnmatch (Depends-on): Likewise.
43529         * modules/getsubopt (Depends-on): Likewise.
43530         * modules/git-merge-changelog (Depends-on): Likewise.
43531         * modules/glob (Depends-on): Likewise.
43532         * modules/strcasestr-simple (Depends-on): Likewise.
43533         * modules/strnlen (Depends-on): Likewise.
43534
43535 2008-11-02  Bruno Haible  <bruno@clisp.org>
43536
43537         Mark 'atexit' obsolete.
43538         * modules/atexit (Status, Notice): New sections.
43539         * modules/chdir-long (Depends-on): Add atexit.
43540         * modules/wait-process (Depends-on): Likewise.
43541
43542 2008-11-02  Bruno Haible  <bruno@clisp.org>
43543
43544         * gnulib-tool: New option --with-obsolete.
43545         (func_usage): Document it.
43546         (func_modules_transitive_closure): Drop obsolete dependencies if
43547         incobsolete is not true.
43548         (func_import): Read and save the incobsolete variable to the cache.
43549
43550 2008-11-02  Bruno Haible  <bruno@clisp.org>
43551
43552         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43553         * gnulib-tool: New option --extract-status.
43554         (func_usage): Document it.
43555         (sed_extract_prog): Recognize it.
43556         (func_get_status): New function.
43557
43558 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43559
43560         * modules/sockets (License): Change from LGPL to LGPLv2+.
43561
43562 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43563
43564         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43565
43566 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43567
43568         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43569         Mention times and sys_times.
43570         * modules/sys_times, modules/sys_times-tests: New modules.
43571         * modules/times, modules/times-tests: Likewise
43572         * m4/sys_times_h.m4: New file.
43573         * lib/sys_times.in.h: Likewise
43574         * lib/times.c: Likewise.
43575         * tests/test-sys_times.c: Likewise.
43576         * tests/test-times.c: Likewise.
43577         * doc/posix-headers/sys_times.texi: Update.
43578         * doc/posix-functions/times.texi: Update.
43579
43580 2008-10-28  Jim Meyering  <meyering@redhat.com>
43581
43582         * modules/tempname (Depends-on): Add lstat.
43583
43584         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43585
43586 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43587
43588         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43589         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43590         using idiom used elsewhere in gnulib.
43591
43592 2008-10-27  Jim Meyering  <meyering@redhat.com>
43593
43594         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43595
43596 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43597
43598         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43599         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43600         programs.
43601         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43602
43603 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43604
43605         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43606
43607 2008-10-27  Bruno Haible  <bruno@clisp.org>
43608
43609         * tests/test-lstat.c: Include <stdio.h>.
43610
43611 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43612
43613         * modules/lstat-tests: New module.
43614         * tests/test-lstat.c: New file.
43615
43616 2008-10-26  Jim Meyering  <meyering@redhat.com>
43617
43618         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43619
43620 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43621             Bruno Haible  <bruno@clisp.org>
43622
43623         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43624         * modules/configmake (Include): Add a note that the include must come
43625         after all system headers.
43626         * lib/javaversion.c: Include configmake.h after all other includes.
43627
43628 2008-10-26  Bruno Haible  <bruno@clisp.org>
43629
43630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43631         HAVE_STRUCT_RANDOM_DATA to 1.
43632         (gl_STDLIB_H): Simplify.
43633
43634 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43635
43636         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43637         substitute HAVE_STRUCT_RANDOM_DATA.
43638         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43639         random_data.
43640         * modules/stdlib (Makefile.am): Substitute
43641         HAVE_STRUCT_RANDOM_DATA.
43642
43643 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43644
43645         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43646         * doc/gnulib-intro.texi (Copyright): Likewise.
43647
43648 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43649
43650         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43651         findings.
43652
43653 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43654             Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/unistd.in.h: Include <winsock2.h>.
43657         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43658         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43659         Provide dummy declarations.
43660         (gethostname): Override.
43661         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43662         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43663         gl_PREREQ_SYS_H_WINSOCK2.
43664         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43665         * doc/posix-functions/gethostname.texi: More details.
43666
43667 2008-10-25  Bruno Haible  <bruno@clisp.org>
43668
43669         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43670         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43671         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43672
43673         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43674         here ...
43675         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43677         gl_UNISTD_H_DEFAULTS.
43678
43679 2008-10-25  Eric Blake  <ebb9@byu.net>
43680
43681         signbit: avoid spurious compiler failure
43682         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43683         declarations inside function.
43684
43685 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43686             Bruno Haible  <bruno@clisp.org>
43687
43688         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43689         * modules/random_r (Depends-on): Add stdint.
43690
43691 2008-10-24  Bruno Haible  <bruno@clisp.org>
43692
43693         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43694         Eggert.
43695         * modules/strerror (License): Likewise.
43696
43697 2008-10-24  Jim Meyering  <meyering@redhat.com>
43698
43699         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43700         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43701
43702 2008-10-24  Eric Blake  <ebb9@byu.net>
43703
43704         getgroups: fix compilation when getgroups is available
43705         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43706         but with <config.h> override of getgroups disabled.
43707
43708 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43709
43710         * doc/gnulib.texi (Header files): Add note about C++ problems.
43711         Explained by Bruno Haible <bruno@clisp.org>.
43712
43713 2008-10-23  Bruno Haible  <bruno@clisp.org>
43714
43715         Define a dummy SA_NODEFER macro on Interix.
43716         * lib/signal.in.h (SA_NODEFER): Define fallback.
43717         Reported by Aleksey Cheusov <cheusov@tut.by> via
43718         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43719
43720 2008-10-23  Bruno Haible  <bruno@clisp.org>
43721
43722         * modules/freadahead (License): Change to LGPLv2+.
43723         Suggested by Simon Josefsson.
43724
43725 2008-10-23  Jim Meyering  <meyering@redhat.com>
43726
43727         random_r: new module
43728         * modules/random_r: New file.
43729         * m4/random_r.m4: New file.
43730         * lib/random_r.c: New file, from glibc.
43731         * modules/random_r-tests: New file.
43732         * tests/test-random_r.c: New file.
43733         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43734          Declare.
43735         (RAND_MAX): Define.
43736         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43737         * modules/stdlib: Substitute them, too.
43738         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43739         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43740         * doc/glibc-functions/random_r.texi: Likewise.
43741         * doc/glibc-functions/setstate_r.texi: Likewise.
43742         * doc/glibc-functions/srandom_r.texi: Likewise.
43743         * config/srclist.txt: Mention it.
43744
43745 2008-10-23  David Lutterkort  <lutter@redhat.com>
43746
43747         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43748         link requirement
43749
43750 2008-10-23  Jim Meyering  <meyering@redhat.com>
43751
43752         selinux-h: mark parameters of stub functions as intentionally unused
43753         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43754         * lib/se-context.in.h: Likewise.
43755
43756 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43757
43758         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43759
43760 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43761
43762         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43763
43764 2008-10-22  Eric Blake  <ebb9@byu.net>
43765
43766         glthread/thread: avoid compiler warning
43767         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43768         Add unreachable abort to silence compiler.
43769
43770 2008-10-22  Eric Blake  <ebb9@byu.net>
43771
43772         netdb: also supply struct addrinfo for cygwin 1.5.x
43773         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43774         older cygwin.
43775         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43776         cygwin.
43777         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43778
43779 2008-10-22  Bruno Haible  <bruno@clisp.org>
43780
43781         * users.txt: Update entry about pspp.
43782
43783 2008-10-21  Bruno Haible  <bruno@clisp.org>
43784
43785         Simplification.
43786         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43787         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43788
43789         Simplification.
43790         * lib/ioctl.c (ioctl): Don't undefine.
43791         * lib/socket.c (socket): Don't undefine.
43792
43793         Remove unused module indicator macros.
43794         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43795         GNULIB_$1 as a C macro.
43796
43797         * doc/posix-functions/close.texi: Undo last change.
43798         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43799         Windows platforms.
43800
43801 2008-10-21  Bruno Haible  <bruno@clisp.org>
43802
43803         Add gethostname() declaration to <unistd.h>.
43804         * lib/unistd.in.h (gethostname): New declaration.
43805         * lib/gethostname.c: Include <unistd.h>.
43806         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43807         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43809         and HAVE_GETHOSTNAME.
43810         * modules/gethostname (Depends-on): Add unistd.
43811         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43812         (Include): Specify <unistd.h>.
43813         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43814         HAVE_GETHOSTNAME.
43815         * tests/test-gethostname.c: Include <unistd.h> first.
43816
43817 2008-10-21  Bruno Haible  <bruno@clisp.org>
43818
43819         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43820         * modules/select-tests (Depends-on): Likewise.
43821         Reported by Simon Josefsson.
43822
43823 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43824
43825         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43826         * lib/accept.c: New file, based on winsock.c.
43827         * lib/bind.c: New file, based on winsock.c.
43828         * lib/connect.c: New file, based on winsock.c.
43829         * lib/getpeername.c: New file, based on winsock.c.
43830         * lib/getsockname.c: New file, based on winsock.c.
43831         * lib/getsockopt.c: New file, based on winsock.c.
43832         * lib/ioctl.c: New file, based on winsock.c.
43833         * lib/listen.c: New file, based on winsock.c.
43834         * lib/recv.c: New file, based on winsock.c.
43835         * lib/recvfrom.c: New file, based on winsock.c.
43836         * lib/send.c: New file, based on winsock.c.
43837         * lib/sendto.c: New file, based on winsock.c.
43838         * lib/setsockopt.c: New file, based on winsock.c.
43839         * lib/shutdown.c: New file, based on winsock.c.
43840         * lib/socket.c: New file, based on winsock.c.
43841         * lib/w32sock.h: New file, based on winsock.c.
43842         * lib/winsock.c: Remove file.
43843         * modules/accept: Likewise.
43844         * modules/bind: Likewise.
43845         * modules/connect: Likewise.
43846         * modules/getpeername: Likewise.
43847         * modules/getsockname: Likewise.
43848         * modules/getsockopt: Likewise.
43849         * modules/ioctl: Likewise.
43850         * modules/listen: Likewise.
43851         * modules/recv: Likewise.
43852         * modules/recvfrom: Likewise.
43853         * modules/send: Likewise.
43854         * modules/sendto: Likewise.
43855         * modules/setsockopt: Likewise.
43856         * modules/shutdown: Likewise.
43857         * modules/socket: Use socket.c instead of winsock.c.
43858         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43859         * doc/posix-functions/accept.texi: Doc fix.
43860         * doc/posix-functions/bind.texi: Doc fix.
43861         * doc/posix-functions/close.texi: Doc fix.
43862         * doc/posix-functions/connect.texi: Doc fix.
43863         * doc/posix-functions/getpeername.texi: Doc fix.
43864         * doc/posix-functions/getsockname.texi: Doc fix.
43865         * doc/posix-functions/getsockopt.texi: Doc fix.
43866         * doc/posix-functions/ioctl.texi: Doc fix.
43867         * doc/posix-functions/listen.texi: Doc fix.
43868         * doc/posix-functions/recv.texi: Doc fix.
43869         * doc/posix-functions/recvfrom.texi: Doc fix.
43870         * doc/posix-functions/send.texi: Doc fix.
43871         * doc/posix-functions/sendto.texi: Doc fix.
43872         * doc/posix-functions/setsockopt.texi: Doc fix.
43873         * doc/posix-functions/shutdown.texi: Doc fix.
43874         * doc/posix-functions/socket.texi: Doc fix.
43875
43876 2008-10-20  Bruno Haible  <bruno@clisp.org>
43877
43878         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43879         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43880         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43881         as an alias for SIGABRT.
43882         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43883         (sigaction): Map it to SIGABRT.
43884         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43885
43886 2008-10-20  Bruno Haible  <bruno@clisp.org>
43887
43888         * lib/fts.c: Don't include lstat.h.
43889         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43890
43891         Move the lstat() declaration to <sys/stat.h>.
43892         * lib/lstat.h: Remove file.
43893         * lib/sys_stat.in.h: Add special invocation convention.
43894         (lstat): New declaration.
43895         * lib/lstat.c (orig_lstat): New function.
43896         (rpl_lstat): Use orig_lstat instead of lstat.
43897         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43898         AC_C_INLINE. Set REPLACE_LSTAT.
43899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43900         and REPLACE_LSTAT.
43901         * modules/lstat (Files): Remove lib/lstat.h.
43902         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43903         (Include): Specify <sys/stat.h> instead of lstat.h.
43904         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43905         REPLACE_LSTAT.
43906         * NEWS: Mention the change.
43907
43908 2008-10-20  Bruno Haible  <bruno@clisp.org>
43909
43910         * modules/posix_spawn-tests: New file.
43911         * tests/test-posix_spawn3.c: New file.
43912
43913 2008-10-20  Bruno Haible  <bruno@clisp.org>
43914
43915         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43916         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43917         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43918         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43919         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43920
43921 2008-10-20  Bruno Haible  <bruno@clisp.org>
43922
43923         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43924         of posix_spawn on AIX 5.3.
43925
43926 2008-10-20  Bruno Haible  <bruno@clisp.org>
43927
43928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43929
43930 2008-10-20  Bruno Haible  <bruno@clisp.org>
43931
43932         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43933         of AC_LANG_PROGRAM.
43934
43935 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43936
43937         * lib/netdb.in.h: Don't define GNU specific constants until they
43938         are supported or needed.  Reported by Bruno Haible
43939         <bruno@clisp.org>.
43940
43941 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43942
43943         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43944
43945 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43946
43947         * lib/getaddrinfo.h: Remove file.
43948         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43949         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43950         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43951         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43952         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43953         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43954         * tests/test-getaddrinfo.c: Likewise.
43955         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43956         * NEWS: Mention change.
43957
43958 2008-10-19  Bruno Haible  <bruno@clisp.org>
43959
43960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43961
43962 2008-10-19  Bruno Haible  <bruno@clisp.org>
43963
43964         * lib/wait-process.c: Include simply <sys/wait.h>.
43965         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43966         WIFSTOPPED): Remove fallback definitions.
43967         * modules/wait-process (Depends-on): Add sys_wait.
43968
43969         New module 'sys_wait'.
43970         * modules/sys_wait: New file.
43971         * lib/sys_wait.in.h: New file, partially copied from
43972         lib/wait-process.c.
43973         * m4/sys_wait_h.m4: New file.
43974         * doc/posix-headers/sys_wait.texi: Mention the new module.
43975
43976 2008-10-19  Bruno Haible  <bruno@clisp.org>
43977
43978         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43979
43980 2008-10-19  Bruno Haible  <bruno@clisp.org>
43981
43982         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43983         * lib/wait-process.c (WAIT_T): Remove type.
43984         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43985         (wait_subprocess): Update.
43986
43987 2008-10-19  Bruno Haible  <bruno@clisp.org>
43988
43989         New module 'atoll'.
43990         * modules/atoll: New file.
43991         * lib/stdlib.in.h (atoll): New declaration.
43992         * lib/atoll.c: New file, from glibc with modifications.
43993         * m4/atoll.m4: New file.
43994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43995         HAVE_ATOLL.
43996         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43997         * doc/posix-functions/atoll.texi: Mention the new module.
43998
43999 2008-10-19  Bruno Haible  <bruno@clisp.org>
44000
44001         Add strtoull() declaration to <stdlib.h>.
44002         * lib/stdlib.in.h (strtoull): New declaration.
44003         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44004         Set HAVE_STRTOULL.
44005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44006         HAVE_STRTOULL.
44007         * modules/strtoull (Depends-on): Add stdlib.
44008         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44009         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44010         HAVE_STRTOULL.
44011
44012 2008-10-19  Bruno Haible  <bruno@clisp.org>
44013
44014         Add strtoll() declaration to <stdlib.h>.
44015         * lib/stdlib.in.h (strtoll): New declaration.
44016         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44017         Set HAVE_STRTOLL.
44018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44019         HAVE_STRTOLL.
44020         * modules/strtoll (Depends-on): Add stdlib.
44021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44022         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44023
44024 2008-10-19  Bruno Haible  <bruno@clisp.org>
44025
44026         * modules/bcopy (Depends-on): Add strings.
44027         (Include): Specify <strings.h>.
44028
44029 2008-10-19  Bruno Haible  <bruno@clisp.org>
44030
44031         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44032
44033 2008-10-19  Bruno Haible  <bruno@clisp.org>
44034
44035         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44036         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44037         mingw.
44038
44039 2008-10-19  Bruno Haible  <bruno@clisp.org>
44040
44041         * lib/atanl.c: Don't include isnanl.h.
44042         * lib/cosl.c: Likewise.
44043         * lib/ldexpl.c: Likewise.
44044         * lib/logl.c: Likewise.
44045         * lib/sinl.c: Likewise.
44046         * lib/sqrtl.c: Likewise.
44047         * lib/tanl.c: Likewise.
44048
44049         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44050         * lib/isnanf.h: Remove file.
44051         * lib/isnand.h: Remove file.
44052         * lib/isnanl.h: Remove file.
44053         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44054         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44055         macros.
44056         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44057         HAVE_ISNANF, don't define it as a C macro.
44058         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44059         HAVE_ISNAND, don't define it as a C macro.
44060         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44061         HAVE_ISNANL, don't define it as a C macro.
44062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44063         HAVE_ISNAN[FDL].
44064         * modules/isnanf (Files): Remove lib/isnanf.h.
44065         (Depends-on): Add math.
44066         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44067         (Include): Specify <math.h> instead of isnanf.h.
44068         * modules/isnand (Files): Remove lib/isnand.h.
44069         (Depends-on): Add math.
44070         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44071         (Include): Specify <math.h> instead of isnand.h.
44072         * modules/isnanl (Files): Remove lib/isnanl.h.
44073         (Depends-on): Add math.
44074         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44075         (Include): Specify <math.h> instead of isnanl.h.
44076         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44077         HAVE_ISNAN[FDL].
44078         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44079         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44080         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44081         * NEWS: Mention the change.
44082
44083 2008-10-18  Bruno Haible  <bruno@clisp.org>
44084
44085         Add getusershell(), setusershell(), endusershell() declarations to
44086         <unistd.h>.
44087         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44088         declarations.
44089         * lib/getusershell.c: Include unistd.h.
44090         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44091         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44092         HAVE_GETUSERSHELL.
44093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44094         and HAVE_GETUSERSHELL.
44095         * modules/getusershell (Depends-on): Add unistd, extensions.
44096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44097         (Include): Specify <unistd.h>.
44098         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44099         HAVE_GETUSERSHELL.
44100
44101 2008-10-18  Bruno Haible  <bruno@clisp.org>
44102
44103         Add a getloadavg() declaration to <stdlib.h>.
44104         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44105         getloadavg declaration.
44106         (getloadavg): New declaration.
44107         * lib/getloadavg.c: Include <stdlib.h> first.
44108         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44109         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44110         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44112         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44113         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44114         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44115         (Include): Specify <stdlib.h>.
44116         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44117         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44118
44119 2008-10-18  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/dirchownmod.c: Don't include lchmod.h.
44122
44123         Move the lchmod() declaration to <sys/stat.h>.
44124         * lib/lchmod.h: Remove file.
44125         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44126         (lchmod): New declaration, moved here from lib/lchown.h.
44127         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44128         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44130         and HAVE_LCHMOD.
44131         * modules/lchmod (Files): Remove lib/lchmod.h.
44132         (Depends-on): Add sys_stat, extensions.
44133         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44134         (Include): Specify <sys/stat.h> instead of lchmod.h.
44135         * modules/sys_stat (Depends-on): Add link-warning.
44136         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44137         definition of GL_LINK_WARNING.
44138         * NEWS: Mention the change.
44139
44140 2008-10-18  Bruno Haible  <bruno@clisp.org>
44141
44142         * lib/fchdir.c: Don't include dirfd.h.
44143         * lib/fts.c: Likewise.
44144         * lib/getcwd.c: Likewise.
44145         * lib/glob.c: Likewise.
44146
44147         Move the dirfd() declaration to <dirent.h>.
44148         * lib/dirfd.h: Remove file.
44149         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44150         (dirfd): New declaration.
44151         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44152         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44153         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44154         HAVE_DECL_DIRFD.
44155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44156         HAVE_DECL_DIRFD.
44157         * modules/dirfd (Files): Remove lib/dirfd.h.
44158         (Depends-on): Add dirent, extensions.
44159         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44160         (Include): Specify <dirent.h> instead of dirfd.h.
44161         * modules/dirent (Depends-on): Add link-warning.
44162         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44163         definition of GL_LINK_WARNING.
44164         * NEWS: Mention the change.
44165
44166 2008-10-18  Bruno Haible  <bruno@clisp.org>
44167
44168         Move the euidaccess() declaration to <unistd.h>.
44169         * lib/euidaccess.h: Remove file.
44170         * lib/unistd.in.h (euidaccess): New declaration.
44171         * lib/euidaccess.c: Don't include euidaccess.h.
44172         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44173         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44175         and HAVE_EUIDACCESS.
44176         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44177         (Depends-on): Add unistd.
44178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44179         (Include): Specify <unistd.h> instead of euidaccess.h.
44180         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44181         HAVE_EUIDACCESS.
44182         * NEWS: Mention the change.
44183
44184 2008-10-18  Bruno Haible  <bruno@clisp.org>
44185
44186         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44187
44188         Move the getdomainname() declaration to <unistd.h>.
44189         * lib/getdomainname.h: Remove file.
44190         * lib/unistd.in.h (getdomainname): New declaration.
44191         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44192         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44193         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44194         HAVE_GETDOMAINNAME.
44195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44196         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44197         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44198         (Depends-on): Add unistd, extensions.
44199         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44200         (Includes): Specify <unistd.h> instead of getdomainname.h.
44201         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44202         HAVE_GETDOMAINNAME.
44203         * NEWS: Mention the change.
44204
44205 2008-10-18  Bruno Haible  <bruno@clisp.org>
44206
44207         * modules/dirent: New file.
44208         * m4/dirent_h.m4: New file.
44209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44210         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44211         * modules/fchdir (Files): Remove lib/dirent.in.h.
44212         (Depends-on): Add dirent.
44213         (Makefile.am): Move rules to modules/dirent.
44214         * doc/posix-headers/dirent.texi: Mention the new module.
44215
44216 2008-10-18  Bruno Haible  <bruno@clisp.org>
44217
44218         Avoid -Wunused-parameter warnings in public gnulib header files.
44219         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44220         macro.
44221         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44222
44223 2008-10-18  Bruno Haible  <bruno@clisp.org>
44224
44225         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44226         * doc/glibc-functions/error.texi: Mention the module 'error'.
44227         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44228         * doc/glibc-functions/getdomainname.texi: Mention the module
44229         'getdomainname'.
44230         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44231         * doc/glibc-functions/getpagesize.texi: Mention the module
44232         'getpagesize'.
44233         * doc/glibc-functions/getusershell.texi: Mention the module
44234         'getusershell'.
44235         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44236         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44237         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44238         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44239         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44240         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44241         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44242         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44243         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44244         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44245         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44246         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44247         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44248         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44249
44250 2008-10-17  Bruno Haible  <bruno@clisp.org>
44251
44252         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44253         HP-UX and IRIX, use -0.0L.
44254         * tests/test-ceill.c (minus_zero): Likewise.
44255         * tests/test-floorl.c (minus_zero): Likewise.
44256         * tests/test-frexpl.c (minus_zero): Likewise.
44257         * tests/test-isnan.c (minus_zerol): Likewise.
44258         * tests/test-isnanl.h (minus_zero): Likewise.
44259         * tests/test-ldexpl.c (minus_zero): Likewise.
44260         * tests/test-roundl.c (minus_zero): Likewise.
44261         * tests/test-signbit.c (minus_zerol): Likewise.
44262         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44263         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44264         * tests/test-truncl.c (minus_zero): Likewise.
44265         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44266         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44267         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44268         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44269
44270 2008-10-17  Bruno Haible  <bruno@clisp.org>
44271
44272         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44273         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44274         that it gets activated only for gcc >= 3.0.
44275         * lib/dirent.in.h: Likewise.
44276         * lib/errno.in.h: Likewise.
44277         * lib/fcntl.in.h: Likewise.
44278         * lib/float.in.h: Likewise.
44279         * lib/iconv.in.h: Likewise.
44280         * lib/inttypes.in.h: Likewise.
44281         * lib/locale.in.h: Likewise.
44282         * lib/math.in.h: Likewise.
44283         * lib/netdb.in.h: Likewise.
44284         * lib/netinet_in.in.h: Likewise.
44285         * lib/search.in.h: Likewise.
44286         * lib/signal.in.h: Likewise.
44287         * lib/spawn.in.h: Likewise.
44288         * lib/stdarg.in.h: Likewise.
44289         * lib/stdint.in.h: Likewise.
44290         * lib/stdio.in.h: Likewise.
44291         * lib/stdlib.in.h: Likewise.
44292         * lib/string.in.h: Likewise.
44293         * lib/strings.in.h: Likewise.
44294         * lib/sys_file.in.h: Likewise.
44295         * lib/sys_ioctl.in.h: Likewise.
44296         * lib/sys_select.in.h: Likewise.
44297         * lib/sys_socket.in.h: Likewise.
44298         * lib/sys_stat.in.h: Likewise.
44299         * lib/sys_time.in.h: Likewise.
44300         * lib/sysexits.in.h: Likewise.
44301         * lib/time.in.h: Likewise.
44302         * lib/unistd.in.h: Likewise.
44303         * lib/wchar.in.h: Likewise.
44304         * lib/wctype.in.h: Likewise.
44305         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44306
44307 2008-10-17  Jim Meyering  <meyering@redhat.com>
44308
44309         ignore-value: don't depend on inline module
44310         * modules/ignore-value (Depends-on): Remove 'inline'.
44311         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44312         Suggestion from Bruno Haible.
44313
44314 2008-10-17  Bruno Haible  <bruno@clisp.org>
44315
44316         New implementation of condition variables for Win32.
44317         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44318         (gl_linked_waitqueue_t): New type.
44319         (gl_cond_t): Use it.
44320         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44321         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44322         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44323         (glthread_cond_init_func, glthread_cond_wait_func,
44324         glthread_cond_timedwait_func, glthread_cond_signal_func,
44325         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44326         Reimplemented on the basis of gl_linked_waitqueue_t.
44327         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44328         gl_waitqueue_t.
44329         (gl_rwlock_t): Update.
44330         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44331
44332 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44333
44334         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44335         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44336
44337 2008-10-17  Jim Meyering  <meyering@redhat.com>
44338
44339         ignore-value: new module
44340         * modules/ignore-value: New file.
44341         * lib/ignore-value.h: New file.
44342         * MODULES.html.sh (Compiler warning management): New section,
44343         just for this module.  More to come.
44344
44345 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44346
44347         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44348         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44349         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44350
44351 2008-10-16  Jim Meyering  <meyering@redhat.com>
44352
44353         openat-die.c: avoid 'no previous prototype' warning
44354         * lib/openat-die.c: Include "openat.h".
44355         Reported by Reuben Thomas <rrt@sc3d.org>.
44356
44357 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44358
44359         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44360         * lib/netdb.in.h: Fix typo.
44361         Reported by Bruno Haible  <bruno@clisp.org>
44362
44363         * lib/netdb.in.h: Include sys/socket.h for platforms without
44364         netdb.h, to get structures like hostent on MinGW.
44365         * modules/netdb (Depends-on): Add sys_socket.
44366
44367 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44368
44369         * modules/netdb, modules/netdb-tests: New file.
44370         * m4/netdb_h.m4: New file.
44371         * lib/netdb.in.h: Add, currently just an empty file pending
44372         definitions.
44373         * tests/test-netdb.c: New file.
44374         * doc/posix-headers/netdb.texi: Mention that we replace it if
44375         needed.
44376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44377         netdb.
44378
44379 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44380
44381         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44382         with code.
44383
44384 2008-10-13  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/glthread/cond.c (glthread_cond_wait_func,
44387         glthread_cond_timedwait_func): Add a comment.
44388
44389 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44390
44391         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44392         * tests/test-select.c: Likewise,
44393
44394 2008-10-13  Bruno Haible  <bruno@clisp.org>
44395
44396         * lib/glthread/cond.c (glthread_cond_wait_func,
44397         glthread_cond_timedwait_func): Fix variable name.
44398         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44399
44400 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44401
44402         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44404         struct sockaddr.sa_len.
44405         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44406
44407 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44408
44409         * build-aux/pmccabe2html: Add css and css_url parameters.
44410
44411 2008-10-12  Bruno Haible  <bruno@clisp.org>
44412
44413         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44414         calling aclx_get.
44415         Reported by Rainer Tammer <tammer@tammer.net>.
44416
44417 2008-10-12  Bruno Haible  <bruno@clisp.org>
44418
44419         Use msvcrt aware primitives for creation/termination of Win32 threads.
44420         * lib/glthread/thread.c: Include <process.h>.
44421         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44422         (wrapper_func): Update signature.
44423         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44424
44425 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44426             Bruno Haible  <bruno@clisp.org>
44427
44428         Provide a Win32 implementation of the 'cond' module.
44429         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44430         * lib/glthread/cond.c (glthread_cond_init_func,
44431         glthread_cond_wait_func, glthread_cond_timedwait_func,
44432         glthread_cond_signal_func, glthread_cond_broadcast_func,
44433         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44434         * modules/cond (Dependencies): Add gettimeofday.
44435
44436 2008-10-11  Bruno Haible  <bruno@clisp.org>
44437
44438         Make sleep work on older versions of mingw.
44439         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44440         only whether it exists.
44441         * doc/posix-functions/sleep.texi: Mention the problem with older
44442         versions of mingw.
44443
44444 2008-10-11  Bruno Haible  <bruno@clisp.org>
44445
44446         New module 'shutdown'.
44447         * modules/shutdown: New file.
44448         * lib/sys_socket.in.h (shutdown): New declaration.
44449         * lib/winsock.c (shutdown): New function.
44450         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44451         GNULIB_SHUTDOWN.
44452         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44453         * doc/posix-functions/shutdown.texi: Document the new module.
44454
44455 2008-10-11  Jim Meyering  <meyering@redhat.com>
44456
44457         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44458
44459 2008-10-11  Bruno Haible  <bruno@clisp.org>
44460
44461         New module 'fclose'.
44462         * modules/fclose: New file.
44463         * lib/stdio.in.h (fclose): New declaration.
44464         * lib/fclose.c: New file.
44465         * m4/fclose.m4: New file.
44466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44467         REPLACE_FCLOSE.
44468         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44469         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44470         REPLACE_FCLOSE.
44471         * modules/close (Depends-on): fclose.
44472         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44473
44474 2008-10-11  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44477         set errno and don't call _close.
44478
44479 2008-10-10  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44482         ACL, not afterwards. Fixes test failure on Cygwin.
44483
44484 2008-10-09  Ben Pfaff  <blp@gnu.org>
44485
44486         * build-aux/announce-gen: Fix gnulib version related part of usage
44487         message.  Die with a useful error message if no tarballs are
44488         found.
44489
44490 2008-10-10  Jim Meyering  <meyering@redhat.com>
44491
44492         bootstrap: use git's --depth=N option only if it's supported
44493         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44494         recognize the --depth option.  Reported by Pádraig Brady.
44495
44496 2008-10-09  Bruno Haible  <bruno@clisp.org>
44497
44498         New module 'ioctl'.
44499         * modules/ioctl: New file.
44500         * lib/sys_socket.in.h (ioctl): Remove declaration.
44501         * lib/winsock.c: Include <sys/ioctl.h>.
44502         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44503         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44504         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44505         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44506         * doc/posix-functions/ioctl.texi: Mention the new module.
44507
44508 2008-10-09  Bruno Haible  <bruno@clisp.org>
44509
44510         New module 'sys_ioctl'.
44511         * lib/sys_ioctl.in.h: New file.
44512         * m4/sys_ioctl_h.m4: New file.
44513         * modules/sys_ioctl: New file.
44514         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44515
44516 2008-10-09  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44519         * lib/winsock.c: Include <stdarg.h>.
44520         (rpl_ioctl): Change to second argument 'int' and then varargs.
44521
44522 2008-10-09  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44525         when the sys_socket module is present and the system has <winsock2.h>.
44526
44527 2008-10-09  Bruno Haible  <bruno@clisp.org>
44528
44529         * doc/posix-functions/close.texi: Mention module 'close' instead of
44530         module 'sys_socket'.
44531
44532 2008-10-09  Bruno Haible  <bruno@clisp.org>
44533
44534         * doc/glibc-headers/sys_ioctl.texi: New file.
44535         * doc/gnulib.texi: Include it.
44536
44537 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44538             Bruno Haible  <bruno@clisp.org>
44539
44540         Combine the two replacements of 'close'.
44541         * lib/sys_socket.in.h (close): Define to a reminder to include
44542         <unistd.h>.
44543         (_gl_close_fd_maybe_socket): New declaration.
44544         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44545         * lib/winsock.c (close): Remove undefinition.
44546         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44547         needed for the gnulib module 'close'.
44548         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44549         define to an error symbol or to a warning, if suitable.
44550         * lib/close.c: Include <sys/socket.h>.
44551         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44552         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44553         UNISTD_H_HAVE_WINSOCK2_H.
44554         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44556         UNISTD_H_HAVE_WINSOCK2_H.
44557         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44558         (configure.ac): Set a module indicator.
44559         (Makefile.am): Substitute GNULIB_CLOSE.
44560         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44561         * modules/poll-tests (Depends-on): Add close.
44562         * modules/select-tests (Depends-on): Likewise.
44563
44564 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44565             Bruno Haible  <bruno@clisp.org>
44566
44567         New module 'close'.
44568         * modules/close: New file.
44569         * lib/unistd.in.h (close): Move declaration out of the
44570         FCHDIR_REPLACEMENT scope.
44571         (_gl_unregister_fd): New declaration.
44572         * lib/close.c: New file.
44573         * lib/fchdir.c (rpl_close): Remove function.
44574         * m4/close.m4: New file.
44575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44576         close.
44577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44578         REPLACE_CLOSE.
44579         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44580         REPLACE_CLOSE.
44581         * modules/fchdir (Depends-on): Add close.
44582
44583 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44584             Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/fcntl.in.h (open): Simplify conditionals.
44587         (_gl_register_fd): New declaration.
44588         * lib/fchdir.c (rpl_open): Remove function.
44589         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44590         also.
44591         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44593         open.
44594
44595 2008-10-09  Jim Meyering  <meyering@redhat.com>
44596
44597         GNUmakefile: use the more name-space-friendly "_version"
44598         * top/GNUmakefile (_dummy): Update.
44599         (_version): Rename from "version".
44600
44601 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44602             Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44605         rpl_close.
44606         (_gl_register_fd): New function, extracted from rpl_open.
44607         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44608         (rpl_open, rpl_opendir): Use _gl_register_fd.
44609
44610 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44611
44612         Fix organization of 'open' replacement.
44613         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44614         (gl_FUNC_OPEN): Use it.
44615         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44616
44617 2008-10-08  Bruno Haible  <bruno@clisp.org>
44618
44619         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44620
44621 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44622
44623         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44624         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44625         listen).
44626
44627 2008-10-08  Eric Blake  <ebb9@byu.net>
44628
44629         GNUmakefile: add 'make version' target
44630         * top/GNUmakefile (_curr-ver): Split version update rules...
44631         (version): ...into a target.
44632
44633 2008-10-07  Bruno Haible  <bruno@clisp.org>
44634
44635         Use a more portable replacement expression for -0.0L.
44636         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44637         instead of -0.0L. Fix m4 quotation.
44638
44639         * tests/test-signbit.c: Include <float.h>.
44640         (minus_zero): New variable.
44641         (test_signbitl): Use minus_zero instead of -zero.
44642         * modules/signbit-tests (Depends-on): Add float.
44643
44644         * tests/test-ceill.c: Include <float.h>.
44645         (zero): Remove variable.
44646         (minus_zero): New variable.
44647         (main): Use minus_zero instead of -zero.
44648         * modules/ceill-tests (Depends-on): Add float.
44649
44650         * tests/test-floorl.c: Include <float.h>.
44651         (zero): Remove variable.
44652         (minus_zero): New variable.
44653         (main): Use minus_zero instead of -zero.
44654         * modules/floorl-tests (Depends-on): Add float.
44655
44656         * tests/test-roundl.c: Include <float.h>.
44657         (zero): Remove variable.
44658         (minus_zero): New variable.
44659         (main): Use minus_zero instead of -zero.
44660         * modules/roundl-tests (Depends-on): Add float.
44661
44662         * tests/test-truncl.c: Include <float.h>.
44663         (zero): Remove variable.
44664         (minus_zero): New variable.
44665         (main): Use minus_zero instead of -zero.
44666         * modules/truncl-tests (Depends-on): Add float.
44667
44668         * tests/test-frexpl.c (zero): Remove variable.
44669         (minus_zero): New variable.
44670         (main): Use minus_zero instead of -zero.
44671         * modules/frexpl-tests (Depends-on): Add float.
44672
44673         * tests/test-isnan.c (zerol): Remove variable.
44674         (minus_zerol): New variable.
44675         (test_long_double): Use minus_zerol instead of -zerol.
44676         * modules/isnan-tests (Depends-on): Add float.
44677
44678         * tests/test-isnanl.h (zero): Remove variable.
44679         (minus_zero): New variable.
44680         (main): Use minus_zero instead of -zero.
44681         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44682         * modules/isnanl-tests (Depends-on): Add float.
44683
44684         * tests/test-ldexpl.c (zero): Remove variable.
44685         (minus_zero): New variable.
44686         (main): Use minus_zero instead of -zero.
44687         * modules/ldexpl-tests (Depends-on): Add float.
44688
44689         * tests/test-snprintf-posix.h (zerol): Remove variable.
44690         (minus_zerol): New variable.
44691         (test_function): Use minus_zerol instead of -zerol.
44692         * modules/snprintf-posix-tests (Depends-on): Add float.
44693         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44694
44695         * tests/test-sprintf-posix.h (zerol): Remove variable.
44696         (minus_zerol): New variable.
44697         (test_function): Use minus_zerol instead of -zerol.
44698         * modules/sprintf-posix-tests (Depends-on): Add float.
44699         * modules/vsprintf-posix-tests (Depends-on): Add float.
44700
44701         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44702         (minus_zerol): New variable.
44703         (test_function): Use minus_zerol instead of -zerol.
44704         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44705
44706         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44707         (minus_zerol): New variable.
44708         (test_function): Use minus_zerol instead of -zerol.
44709         * modules/vasprintf-posix-tests (Depends-on): Add float.
44710
44711 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44712
44713         * MODULES.html.sh (Support for building documentation): Mention
44714         pmccabe2html.  Sort entries.
44715
44716         Add pmccabe2html module, from gnupdf.
44717         * build-aux/pmccabe.css: New file.
44718         * build-aux/pmccabe2html: New file.
44719         * m4/pmccabe2html.m4: New file.
44720         * modules/pmccabe2html: New file.
44721
44722 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44723
44724         flock: new module
44725         * MODULES.html.sh: Add to list of modules.
44726         * lib/flock.c: flock implementation for Windows and Unix systems
44727         which have fcntl.
44728         * doc/glibc-functions/flock.texi: Update documentation.
44729         * lib/sys_file.in.h: <sys/file.h> header file.
44730         * m4/flock.m4: M4 macros.
44731         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44732         * modules/flock: flock module.
44733         * modules/flock-tests: flock tests module.
44734         * modules/sys_file: sys/file.h module.
44735         * tests/test-flock.c: test suite for flock.
44736
44737 2008-10-06  Jim Meyering  <meyering@redhat.com>
44738
44739         bootstrap: check for LT_INIT more portably still ;-)
44740         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44741         Spotted by Bruno Haible.
44742
44743 2008-10-06  Eric Blake  <ebb9@byu.net>
44744
44745         test-signbit: avoid tripping Irix cc bug on -0.0L
44746         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44747         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44748         entire testsuite consistent and avoids an Irix 6.2 bug.
44749
44750 2008-10-05  Bruno Haible  <bruno@clisp.org>
44751             Jim Meyering  <jim@meyering.net>
44752
44753         Add an option for ignoring EPIPE during close_stdout.
44754         * lib/closeout.h: Include <stdbool.h>.
44755         (close_stdout_set_ignore_EPIPE): New declaration.
44756         * lib/closeout.c: Include <stdbool.h>.
44757         (ignore_EPIPE): New variable.
44758         (close_stdout_set_ignore_EPIPE): New function.
44759         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44760         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44761         failure.
44762         * modules/closeout (Depends-on): Add stdbool.
44763
44764 2008-10-05  Bruno Haible  <bruno@clisp.org>
44765
44766         * modules/accept: New file.
44767         * modules/bind: New file.
44768         * modules/connect: New file.
44769         * modules/getpeername: New file.
44770         * modules/getsockname: New file.
44771         * modules/getsockopt: New file.
44772         * modules/listen: New file.
44773         * modules/recv: New file.
44774         * modules/recvfrom: New file.
44775         * modules/send: New file.
44776         * modules/sendto: New file.
44777         * modules/setsockopt: New file.
44778         * modules/socket: New file.
44779         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44780         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44781         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44782         the particular module is requested. Add a link warning when the
44783         particular module is not requested.
44784         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44785         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44786         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44787         the particular module is requested.
44788         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44789         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44790         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44791         * modules/sys_socket (Depends-on): Add link-warning.
44792         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44793         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44794         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44795         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44796         GL_LINK_WARNING.
44797         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44798         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44799         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44800         * doc/posix-functions/getpeername.texi: Mention the new module
44801         'getpeername'.
44802         * doc/posix-functions/getsockname.texi: Mention the new module
44803         'getsockname'.
44804         * doc/posix-functions/getsockopt.texi: Mention the new module
44805         'getsockopt'.
44806         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44807         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44808         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44809         * doc/posix-functions/send.texi: Mention the new module 'send'.
44810         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44811         * doc/posix-functions/setsockopt.texi: Mention the new module
44812         'setsockopt'.
44813         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44814         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44815         listen, connect, accept.
44816         * modules/select-tests (Depends-on): Likewise.
44817
44818 2008-10-05  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/winsock.c (strerror): Remove unused #undef.
44821         (rpl_close): Remove unused local variable.
44822
44823         * modules/sys_socket (Depends-on); Add errno.
44824
44825 2008-10-05  Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44828         (select): Add a link warning when the 'select' module is not used.
44829         * modules/sys_select (Depends-on): Add link-warning.
44830         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44831         Suggested by Paolo Bonzini.
44832
44833 2008-10-05  Jim Meyering  <meyering@redhat.com>
44834
44835         bootstrap: check for LT_INIT more portably
44836         * build-aux/bootstrap: Avoid using grep -E, since it's not
44837         portable enough.  Suggestion from Bruno Haible.
44838
44839 2008-10-05  Bruno Haible  <bruno@clisp.org>
44840
44841         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44842         as being fixed by gnulib.
44843
44844 2008-10-05  Bruno Haible  <bruno@clisp.org>
44845
44846         * modules/select-tests: New file, mostly copied from
44847         modules/sys_select-tests.
44848         * tests/test-select.c: New file, mostly copied from
44849         tests/test-sys_select.c.
44850         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44851         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44852         (Makefile.am): Remove test_sys_select_LDADD.
44853
44854         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44855         to an undefined symbol, for an error message.
44856         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44857         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44858         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44859         winsock-select.c here.
44860         * modules/sys_select (Files): Remove lib/winsock-select.c.
44861         (Depends-on): Remove alloca.
44862         (Makefile.am): Substitute GNULIB_SELECT.
44863         * modules/select: New file.
44864         * doc/posix-functions/select.texi: Update.
44865
44866 2008-10-05  Bruno Haible  <bruno@clisp.org>
44867
44868         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44869         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44870         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44871         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44872         getdtablesize.
44873         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44874         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44875
44876 2008-10-05  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/getdtablesize-tests: New file.
44879         * tests/test-getdtablesize.c: New file.
44880
44881         New module 'getdtablesize'.
44882         * lib/unistd.in.h (getdtablesize): New declaration.
44883         * lib/getdtablesize.c: New file.
44884         * m4/getdtablesize.m4: New file.
44885         * modules/getdtablesize: New file.
44886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44887         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44888         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44889         HAVE_GETDTABLESIZE.
44890         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44891
44892 2008-10-05  Bruno Haible  <bruno@clisp.org>
44893
44894         * modules/sched (Makefile.am): Fix typo.
44895         Reported by Simon Josefsson.
44896
44897 2008-10-05  Jim Meyering  <meyering@redhat.com>
44898
44899         bootstrap: check for LT_INIT, too
44900         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44901         are deprecated.  Suggestion from Ralf Wildenhues.
44902
44903 2008-10-05  Bruno Haible  <bruno@clisp.org>
44904
44905         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44906         overriding them by ours.
44907         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44908
44909 2008-10-05  Jim Meyering  <meyering@redhat.com>
44910
44911         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44912         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44913         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44914
44915 2008-10-04  Bruno Haible  <bruno@clisp.org>
44916
44917         * modules/dup2 (License): Change to LGPLv2+.
44918         * modules/sleep (License): Likewise.
44919         * modules/perror (License): Likewise.
44920         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44921         Blake.
44922         * modules/signal (License): Likewise.
44923         * modules/sigprocmask (License): Likewise.
44924         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44925         Meyering.
44926
44927 2008-10-04  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44930         Reported by Rainer Tammer <tammer@tammer.net>.
44931
44932 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44933             Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44936         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44937         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44938
44939 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44940
44941         filevercmp: new module
44942         * lib/filevercmp.h: New function filevercmp comparing version strings.
44943         * lib/filevercmp.c: Implementation of filevercmp function.
44944         * modules/filevercmp: Module metadata.
44945         * tests/test-filevercmp.c: Unit test for new module.
44946         * modules/filevercmp-tests: Unit test metadata.
44947         * MODULES.html.sh: Add filevercmp module.
44948
44949 2008-10-03  Bruno Haible  <bruno@clisp.org>
44950
44951         * lib/c-ctype.h: Add comment.
44952         Reported by Jim Meyering.
44953
44954 2008-10-02  Bruno Haible  <bruno@clisp.org>
44955
44956         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44957
44958 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44959
44960         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44961         name of bootstrap.conf accordingly.
44962
44963 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44964
44965         * build-aux/bootstrap: Install git-merge-changelog configuration
44966         items into .gitconfig if needed.
44967
44968 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44969
44970         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44971         git repository, and initialize/update it accordingly.
44972
44973 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44974
44975         * modules/fsync-tests: New file.
44976         * tests/test-fsync.c: New file.
44977
44978         New module 'fsync'.
44979         * lib/fsync.c: New file.
44980         * m4/fsync.m4: New file.
44981         * modules/fsync: New file.
44982         * lib/unistd.in.h (fsync): New declaration.
44983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44984         GNULIB_FSYNC and HAVE_FSYNC.
44985         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44986         * MODULES.html.sh (posix_functions): Add fsync.
44987         * doc/posix-functions/fsync.texi: Mention the new module.
44988
44989 2008-10-02  Jim Meyering  <meyering@redhat.com>
44990
44991         fts.c: sync with similar code from coreutils' remove.c
44992         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44993         Guard also with "#if defined __linux__", since for now at least,
44994         this code is Linux-kernel-specific.
44995
44996 2008-10-02  Jim Meyering  <meyering@redhat.com>
44997
44998         fts: bug fixes
44999         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45000         Include <sys/vfs.h>, not <sys/statfs.h>.
45001
45002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45003         Include <sys/vfs.h>, not <sys/statfs.h>.
45004
45005 2008-10-01  Bruno Haible  <bruno@clisp.org>
45006
45007         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45008         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45009         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45010         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45011         * doc/posix-functions/posix_spawnp.texi: Likewise.
45012         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45013         whether posix_spawn actually works.
45014         * m4/pipe.m4 (gl_PIPE): Likewise.
45015         * modules/execute (Files): Add m4/posix_spawn.m4.
45016         * modules/pipe (Files): Add m4/posix_spawn.m4.
45017         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45018
45019 2008-10-01  Jim Meyering  <meyering@redhat.com>
45020
45021         remove trailing spaces
45022         * NEWS: Likewise.
45023         * lib/poll.c (poll): Likewise.
45024         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45025         * lib/winsock.c (rpl_close): Likewise.
45026         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45027         * modules/yield: Likewise.
45028         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45029         * tests/test-sys_select.c (connect_to_socket): Likewise.
45030
45031         fts.c: adjust a new interface to be more generally useful
45032         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45033         (fts_build): Adjust caller.
45034
45035 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45036
45037         * modules/cond-tests: New file.
45038         * tests/test-cond.c: New file.
45039
45040 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45041             Bruno Haible  <bruno@clisp.org>
45042
45043         * modules/cond (Dependencies): Add errno, time.
45044         * lib/glthread/cond.h: Include <time.h>.
45045         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45046         across platforms.
45047
45048 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45049             Bruno Haible  <bruno@clisp.org>
45050
45051         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45052
45053 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45054             Bruno Haible  <bruno@clisp.org>
45055
45056         * modules/tls-tests (Depends-on): Add thread, yield.
45057         (configure.ac): Remove all checks.
45058         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45059         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45060         gl_thread_self): Remove definitions. Include glthread/thread.h and
45061         glthread/yield.h instead.
45062         (test_tls): Pass an additional NULL argument to gl_thread_join.
45063
45064 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45065             Bruno Haible  <bruno@clisp.org>
45066
45067         * modules/lock-tests (Depends-on): Add thread, yield.
45068         (configure.ac): Remove all checks.
45069         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45070         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45071         gl_thread_self): Remove definitions. Include glthread/thread.h and
45072         glthread/yield.h instead.
45073         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45074         additional NULL argument to gl_thread_join.
45075
45076 2008-09-30  Bruno Haible  <bruno@clisp.org>
45077
45078         Fix the Win32 implementation of the 'thread' module.
45079         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45080         pointer type.
45081         (gl_thread_self): Invoke gl_thread_self_func.
45082         (gl_thread_self_func): New declaration.
45083         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45084         (do_init_self_key, init_self_key): New functions.
45085         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45086         Remove some fields.
45087         (running_threads, running_lock): Remove variables.
45088         (get_current_thread_handle): New function.
45089         (gl_thread_self_func, wrapper_func, glthread_create_func,
45090         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45091         simplified.
45092
45093 2008-09-30  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45096         files.
45097
45098 2008-09-30  Jim Meyering  <meyering@redhat.com>
45099
45100         fts.m4: correct the test for statfs.f_type
45101         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45102         when checking for statfs.f_type.
45103
45104 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45105
45106         tests: avoid some compiler warnings
45107         * tests/test-memchr.c (main): Pass NULL indirectly.
45108         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45109
45110 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45111
45112         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45113         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45114         exactly specified dayshifts.
45115         (dayshift): New rule.
45116         (rel): Add dayshift.
45117         (relative_time_table) [tomorrow, yesterday, today, now]:
45118         Use tDAY_SHIFT in place of tDAY_UNIT.
45119         * tests/test-getdate.c: Add tests for now-disallowed countable
45120         dayshifts, e.g., "4 yesterday ago".
45121
45122 2008-09-29  Bruno Haible  <bruno@clisp.org>
45123
45124         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45125         * tests/test-posix_spawn1.in.sh: Renamed from
45126         tests/test-posix_spawn.in.sh.
45127         * tests/test-posix_spawn2.c: New file.
45128         * tests/test-posix_spawn2.in.sh: New file.
45129         * modules/posix_spawnp-tests (Files): Update.
45130         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45131
45132 2008-09-29  Bruno Haible  <bruno@clisp.org>
45133
45134         Propagate effects of putenv/setenv/unsetenv to child processes.
45135         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45136         * lib/pipe.c (create_pipe): Likewise.
45137
45138 2008-09-29  Bruno Haible  <bruno@clisp.org>
45139
45140         Enable use of shell scripts as executables in mingw.
45141         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45142         run the program as a shell script.
45143         * lib/pipe.c (create_pipe): Likewise.
45144         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45145         resulting array.
45146
45147 2008-09-29  Eric Blake  <ebb9@byu.net>
45148
45149         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45150
45151 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45152
45153         * doc/posix-functions/accept.texi: Update mingw problems.
45154         * doc/posix-functions/bind.texi: Update mingw problems.
45155         * doc/posix-functions/close.texi: Update mingw problems.
45156         * doc/posix-functions/connect.texi: Update mingw problems.
45157         * doc/posix-functions/getpeername.texi: Update mingw problems.
45158         * doc/posix-functions/getsockname.texi: Update mingw problems.
45159         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45160         * doc/posix-functions/ioctl.texi: Update mingw problems.
45161         * doc/posix-functions/listen.texi: Update mingw problems.
45162         * doc/posix-functions/recv.texi: Update mingw problems.
45163         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45164         * doc/posix-functions/select.texi: Update mingw problems.
45165         * doc/posix-functions/send.texi: Update mingw problems.
45166         * doc/posix-functions/sendto.texi: Update mingw problems.
45167         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45168         * doc/posix-functions/socket.texi: Update mingw problems.
45169
45170 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45171             Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/sys_select.in.h: Include sys/time.h.
45174         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45175         * modules/sys_select: Depend on sys_time.
45176         * tests/test-sys_select.c: Test that sys/select.h defines struct
45177         timeval fully.
45178
45179 2008-09-29  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45182         * lib/sys_select.in.h: Likewise.
45183
45184 2008-09-29  Bruno Haible  <bruno@clisp.org>
45185
45186         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45187
45188 2008-09-29  Bruno Haible  <bruno@clisp.org>
45189
45190         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45191         Set LIBSOCKET instead of augmenting LIBS.
45192         * modules/sockets (Link): New section.
45193         * modules/sockets-tests (test_sockets_LDADD): New variable.
45194         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45195         * modules/poll-tests (test_poll_LDADD): New variable.
45196         * NEWS: Document the change.
45197
45198 2008-09-29  Bruno Haible  <bruno@clisp.org>
45199
45200         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45201         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45202         ARPA_INET_H directly.
45203         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45204
45205 2008-09-28  Bruno Haible  <bruno@clisp.org>
45206
45207         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45208         from gl_HEADER_SYS_SOCKET.
45209         (gl_HEADER_SYS_SOCKET): Invoke it.
45210         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45211
45212 2008-09-28  Bruno Haible  <bruno@clisp.org>
45213
45214         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45215         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45216         Needed on OSF/1 4.0.
45217
45218 2008-09-28  Bruno Haible  <bruno@clisp.org>
45219
45220         Override open more carefully.
45221         * lib/open.c (orig_open): New function.
45222         (rpl_open): Use orig_open instead of open.
45223         * lib/fcntl.in.h: Add special invocation convention.
45224         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45225         (gl_FUNC_OPEN): Invoke it.
45226
45227         Override freopen more carefully.
45228         * lib/freopen.c (orig_freopen): New function.
45229         (rpl_freopen): Use orig_freopen instead of freopen.
45230         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45231         (gl_FUNC_FREOPEN): Invoke it.
45232
45233         Override fopen more carefully.
45234         * lib/fopen.c (orig_fopen): New function.
45235         (rpl_fopen): Use orig_fopen instead of fopen.
45236         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45237         (gl_FUNC_FOPEN): Invoke it.
45238         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45239
45240 2008-09-28  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45243         SIGPIPE.
45244
45245 2008-09-28  Bruno Haible  <bruno@clisp.org>
45246
45247         * tests/test-sigaction.c (handler, main): Disable the check whether
45248         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45249         glibc systems with LinuxThreads.
45250
45251 2008-09-28  Bruno Haible  <bruno@clisp.org>
45252
45253         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45254
45255         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45256         with AIX xlc.
45257         * lib/fcntl.in.h (open): Likewise.
45258         Reported by Rainer Tammer <tammer@tammer.net>.
45259
45260 2008-09-28  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/posix_spawnp-tests: New file.
45263         * tests/test-posix_spawn.c: New file.
45264         * tests/test-posix_spawn.in.sh: New file.
45265
45266         New module 'posix_spawnp'.
45267         * modules/posix_spawnp: New file.
45268         * lib/spawnp.c: New file, from GNU libc with modifications.
45269         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45270
45271         New module 'posix_spawn'.
45272         * modules/posix_spawn: New file.
45273         * lib/spawn.c: New file, from GNU libc with modifications.
45274         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45275
45276         New module 'posix_spawnattr_destroy'.
45277         * modules/posix_spawnattr_destroy: New file.
45278         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45279         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45280         module.
45281
45282         New module 'posix_spawnattr_setsigmask'.
45283         * modules/posix_spawnattr_setsigmask: New file.
45284         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45285         modifications.
45286         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45287         new module.
45288
45289         New module 'posix_spawnattr_getsigmask'.
45290         * modules/posix_spawnattr_getsigmask: New file.
45291         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45292         modifications.
45293         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45294         new module.
45295
45296         New module 'posix_spawnattr_setsigdefault'.
45297         * modules/posix_spawnattr_setsigdefault: New file.
45298         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45299         modifications.
45300         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45301         new module.
45302
45303         New module 'posix_spawnattr_getsigdefault'.
45304         * modules/posix_spawnattr_getsigdefault: New file.
45305         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45306         modifications.
45307         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45308         new module.
45309
45310         New module 'posix_spawnattr_setschedpolicy'.
45311         * modules/posix_spawnattr_setschedpolicy: New file.
45312         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45313         modifications.
45314         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45315         new module.
45316
45317         New module 'posix_spawnattr_getschedpolicy'.
45318         * modules/posix_spawnattr_getschedpolicy: New file.
45319         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45320         modifications.
45321         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45322         new module.
45323
45324         New module 'posix_spawnattr_setschedparam'.
45325         * modules/posix_spawnattr_setschedparam: New file.
45326         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45327         modifications.
45328         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45329         new module.
45330
45331         New module 'posix_spawnattr_getschedparam'.
45332         * modules/posix_spawnattr_getschedparam: New file.
45333         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45334         modifications.
45335         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45336         new module.
45337
45338         New module 'posix_spawnattr_setpgroup'.
45339         * modules/posix_spawnattr_setpgroup: New file.
45340         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45341         modifications.
45342         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45343         module.
45344
45345         New module 'posix_spawnattr_getpgroup'.
45346         * modules/posix_spawnattr_getpgroup: New file.
45347         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45348         modifications.
45349         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45350         module.
45351
45352         New module 'posix_spawnattr_setflags'.
45353         * modules/posix_spawnattr_setflags: New file.
45354         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45355         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45356         module.
45357
45358         New module 'posix_spawnattr_getflags'.
45359         * modules/posix_spawnattr_getflags: New file.
45360         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45361         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45362         module.
45363
45364         New module 'posix_spawnattr_init'.
45365         * modules/posix_spawnattr_init: New file.
45366         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45367         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45368         module.
45369
45370         New module 'posix_spawn_file_actions_destroy'.
45371         * modules/posix_spawn_file_actions_destroy: New file.
45372         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45373         modifications.
45374         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45375         the new module.
45376
45377         New module 'posix_spawn_file_actions_addopen'.
45378         * modules/posix_spawn_file_actions_addopen: New file.
45379         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45380         modifications.
45381         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45382         the new module.
45383
45384         New module 'posix_spawn_file_actions_adddup2'.
45385         * modules/posix_spawn_file_actions_adddup2: New file.
45386         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45387         modifications.
45388         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45389         the new module.
45390
45391         New module 'posix_spawn_file_actions_addclose'.
45392         * modules/posix_spawn_file_actions_addclose: New file.
45393         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45394         modifications.
45395         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45396         the new module.
45397
45398         New module 'posix_spawn_file_actions_init'.
45399         * modules/posix_spawn_file_actions_init: New file.
45400         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45401         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45402         new module.
45403
45404         New module 'posix_spawn-internal'.
45405         * modules/posix_spawn-internal: New file.
45406         * lib/spawn_int.h: New file, from GNU libc with modifications.
45407         * lib/spawni.c: New file, from GNU libc with modifications.
45408         * m4/posix_spawn.m4: New file.
45409
45410         New module 'spawn'.
45411         * modules/spawn: New file.
45412         * lib/spawn.in.h: New file, from GNU libc with modifications.
45413         * m4/spawn_h.m4: New file.
45414         * doc/posix-headers/spawn.texi: Mention the new module.
45415
45416 2008-09-28  Bruno Haible  <bruno@clisp.org>
45417
45418         * modules/sched-tests: New file.
45419         * tests/test-sched.c: New file.
45420
45421         New module 'sched'.
45422         * modules/sched: New file.
45423         * lib/sched.in.h: New file.
45424         * m4/sched_h.m4: New file.
45425         * doc/posix-headers/sched.texi: Mention the new module.
45426
45427 2008-09-27  Eric Blake  <ebb9@byu.net>
45428
45429         Fix previous patch, and tweak references to $0.
45430         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45431         (func_version, func_gnulib_dir): Don't call this program
45432         gnulib-tool.
45433         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45434         with using $0 in function.
45435         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45436         (func_fatal_error): Reuse the name the user invoked us with.
45437
45438 2008-09-27  Bruno Haible  <bruno@clisp.org>
45439
45440         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45441         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45442         (gl_ICONV_H): Not here.
45443         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45444         instead of assigning ICONV_H directly.
45445
45446         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45448         WCHAR_H directly.
45449
45450 2008-09-27  Bruno Haible  <bruno@clisp.org>
45451
45452         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45453         * modules/arpa_inet (Depends-on): Add link-warning.
45454         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45455         * modules/unistd (Makefile.am): Likewise.
45456
45457 2008-09-26  Bruno Haible  <bruno@clisp.org>
45458
45459         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45460         variables.
45461         (func_version): Essentially copied from gnulib-tool.
45462         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45463         func_readlink): Copied from gnulib-tool.
45464
45465 2008-09-26  Bruno Haible  <bruno@clisp.org>
45466
45467         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45468         invoking git-version-gen.
45469
45470 2008-09-26  Bruno Haible  <bruno@clisp.org>
45471
45472         * posix-modules: Update to directory names changed on 2008-01-19.
45473         Remove commas in output before splitting into words. No more need to
45474         avoid 'ftruncate' since 2007-02-19.
45475
45476 2008-09-26  Bruno Haible  <bruno@clisp.org>
45477
45478         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45479
45480 2008-09-26  Bruno Haible  <bruno@clisp.org>
45481
45482         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45483         * modules/fwriteerror (Depends-on): Add errno.
45484
45485 2008-09-26  Bruno Haible  <bruno@clisp.org>
45486
45487         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45488         * tests/test-vc-list-files-cvs.sh: Likewise.
45489
45490 2008-09-26  Bruno Haible  <bruno@clisp.org>
45491
45492         * doc/posix-headers/sys_resource.texi: Reorder items.
45493
45494 2008-09-26  Jim Meyering  <meyering@redhat.com>
45495
45496         fts: tweak inode comparison function
45497         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45498         inode numbers, as documented.
45499
45500         fts: sort dirent entries on inode number before traversing
45501         This avoids a quadratic, seek-related performance penalty when
45502         operating on a directory containing many entries (measurable at 10k;
45503         3.5 hours at 2 million entries with a cold cache) on certain types
45504         of file systems, including ext3 and ext4, but not tmpfs.
45505         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45506         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45507         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45508         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45509         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45510         (fts_build): Set the stat.st_ino member from D_INO.
45511         If it is likely to be useful, sort dirent entries on inode number.
45512
45513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45514         and the struct statfs.f_type member.
45515         * modules/fts (Depends-on): Add d-ino.
45516
45517 2008-09-26  Bruno Haible  <bruno@clisp.org>
45518
45519         * modules/sigpipe-die (Depends-on): Add sigpipe.
45520
45521         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45522         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45523         and GNULIB_STDIO_H_SIGPIPE are set.
45524         * lib/stdio-write.c: New file.
45525         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45526         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45527         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45528         REPLACE_STDIO_WRITE_FUNCS.
45529         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45530         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45531         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45532         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45533         * modules/stdio (Files): Add lib/stdio-write.c.
45534         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45535         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45536         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45537         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45538         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45539         REPLACE_FPRINTF_POSIX.
45540         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45541         REPLACE_PRINTF_POSIX.
45542         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45543         REPLACE_VFPRINTF_POSIX.
45544         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45545         REPLACE_VPRINTF_POSIX.
45546         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45547         SIGPIPE issue.
45548         * doc/posix-functions/fputc.texi: Likewise.
45549         * doc/posix-functions/fputs.texi: Likewise.
45550         * doc/posix-functions/fwrite.texi: Likewise.
45551         * doc/posix-functions/printf.texi: Likewise.
45552         * doc/posix-functions/putc.texi: Likewise.
45553         * doc/posix-functions/putchar.texi: Likewise.
45554         * doc/posix-functions/puts.texi: Likewise.
45555         * doc/posix-functions/vfprintf.texi: Likewise.
45556         * doc/posix-functions/vprintf.texi: Likewise.
45557
45558         * modules/safe-write (Depends-on): Add write.
45559
45560         * modules/sigpipe-tests: New file.
45561         * tests/test-sigpipe.c: New file.
45562         * tests/test-sigpipe.sh: New file.
45563
45564         * modules/write: New file.
45565         * lib/unistd.in.h: Include <sys/types.h>.
45566         (write): New declaration.
45567         * lib/write.c: New file.
45568         * m4/write.m4: New file.
45569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45570         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45571         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45572         GNULIB_WRITE, REPLACE_WRITE.
45573         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45574         and the SIGPIPE issue.
45575
45576         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45577         (raise): New declaration.
45578         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45579         (ext_signal): New function.
45580         (rpl_raise): New function.
45581         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45582         GNULIB_SIGNAL_H_SIGPIPE.
45583         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45584         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45585
45586         * modules/sigpipe: New file.
45587         * m4/sigpipe.m4: New file.
45588
45589 2008-09-25  Derek Price  <derek@ximbiot.com>
45590             Bruno Haible  <bruno@clisp.org>
45591
45592         * gnulib-tool (func_import): Report all license incompatibilities, not
45593         just the first one.
45594
45595 2008-09-25  Bruno Haible  <bruno@clisp.org>
45596
45597         * gnulib-tool (func_import): When computing the edits, consider not
45598         only the Makefile.ams that exist but also those that will be generated.
45599
45600 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45601
45602         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45603         fixes gnulib-tool --test warning about duplicate dependency.
45604
45605 2008-09-25  Bruno Haible  <bruno@clisp.org>
45606
45607         * gnulib-tool: Don't ask the user to perform edits in the generated
45608         Makefile.ams.
45609         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45610         apply to the Makefile.am being generated.
45611         (func_emit_tests_Makefile_am): Execute edits that apply to the
45612         Makefile.am being generated.
45613         (func_import): Setup list of Makefile.am edits before emitting the
45614         Makefile.ams, not at the end.
45615         (func_create_testdir): Update.
45616         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45617
45618 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45619
45620         * gnulib-tool (func_import): Store the --tests-base option in the
45621         comment in gnulib-cache.m4.
45622
45623 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45624
45625         * NEWS: Document increased portability that sys_select now provides.
45626
45627         * lib/sys_select.in.h: Install select wrapper.
45628         * lib/sys_socket.in.h: Use more descriptive name when there is no
45629         select wrapper.
45630         * lib/winsock-select.c: New.
45631         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45632         Require gl_HEADER_SYS_SOCKET.
45633         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45634         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45635         * tests/test-sys_select.c: Add functional tests.
45636
45637 2008-09-24  Eric Blake  <ebb9@byu.net>
45638
45639         open, fopen: close fd leak in last patch
45640         * lib/open.c (rpl_open): Close fd before returning error.
45641         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45642         * doc/posix-functions/open.texi (open): Document that Irix also
45643         has the bug.
45644         * doc/posix-functions/fopen.texi (fopen): Likewise.
45645         Reported by Paolo Bonzini.
45646
45647 2008-09-24  Bruno Haible  <bruno@clisp.org>
45648
45649         Ensure that a filename ending in a slash cannot be used to access a
45650         non-directory.
45651         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45652         to check whether it's really a directory.
45653         * lib/fopen.c: Include fcntl.h, unistd.h.
45654         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45655         and fdopen().
45656         * modules/fopen (Depends-on): Add unistd.
45657         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45658         * tests/test-fopen.c (main): Likewise.
45659         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45660         * doc/posix-functions/fopen.texi: Likewise.
45661         Reported by Eric Blake.
45662
45663 2008-09-23  Eric Blake  <ebb9@byu.net>
45664
45665         c-stack: avoid compiler optimizations when provoking overflow
45666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45667         recursion harder to optimize, to ensure a stack overflow occurs.
45668         * tests/test-c-stack.c (recurse): Likewise.
45669         Borrowed from libsigsegv.
45670
45671         c-stack: work around Irix sigaltstack bug
45672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45673         whether sigaltstack uses wrong end of stack_t (copied in part from
45674         libsigsegv).
45675         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45676         Irix bug, without requiring an over-allocation.
45677         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45678         bug.
45679
45680         fopen: document mingw bug on directories
45681         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45682         not allowing a stream visiting a directory, even though reading
45683         from such a stream is not portable.
45684
45685 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45686
45687         * lib/poll.c: Rewrite.
45688         * modules/poll: Depend on alloca.
45689
45690 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45691
45692         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45693         instead define prototypes for a full set of wrappers.  Ensure
45694         that Cygwin does not use the compatibility code, which is only
45695         for MinGW.
45696         * lib/winsock.c: New.
45697         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45698         * modules/sys_socket: Add lib/winsock.c.
45699
45700         * modules/poll-tests: Add errno and perror.
45701         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45702
45703 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45704
45705         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45706
45707 2008-09-23  Bruno Haible  <bruno@clisp.org>
45708
45709         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45710         * doc/glibc-functions/*: Likewise.
45711
45712 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45713
45714         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45715         success.
45716
45717 2008-09-22  Eric Blake  <ebb9@byu.net>
45718             Bruno Haible  <bruno@clisp.org>
45719
45720         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45721         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45722         supply %A but mishandle pseudo-NaN.
45723         Reported by Simon Josefsson.
45724
45725 2008-09-21  Bruno Haible  <bruno@clisp.org>
45726
45727         * tests/test-lock.c (main): Tweak skip message.
45728         * tests/test-tls.c (main): Likewise.
45729
45730 2008-09-21  Bruno Haible  <bruno@clisp.org>
45731
45732         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45733         whether 'struct sigaction' has sa_sigaction here...
45734         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45735         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45736
45737 2008-09-21  Bruno Haible  <bruno@clisp.org>
45738
45739         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45740         section.
45741         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45742         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45743         the new section.
45744         (Support for obsolete systems lacking POSIX:2001): New section.
45745         (String handling <string.h>): Move strdup to the new section.
45746         Suggested by Simon Josefsson and Paolo Bonzini.
45747
45748 2008-09-21  Bruno Haible  <bruno@clisp.org>
45749
45750         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45751         exponents in %e and %g results on 'long double'. Needed for mingw's
45752         improved *printf functions.
45753         * tests/test-vasprintf-posix.c (test_function): Likewise.
45754         * tests/test-snprintf-posix.h (test_function): Likewise.
45755         * tests/test-sprintf-posix.h (test_function): Likewise.
45756         Reported by Eric Blake.
45757
45758 2008-09-21  Bruno Haible  <bruno@clisp.org>
45759
45760         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45761         * tests/test-sprintf-posix.h (test_function): Likewise.
45762
45763 2008-09-21  Bruno Haible  <bruno@clisp.org>
45764
45765         * modules/getpass (Depends-on): Add strdup-posix.
45766
45767         New module 'strdup-posix'.
45768         * modules/strdup-posix: New file.
45769         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45770         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45772         REPLACE_STRDUP.
45773         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45774         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45776         strdup-posix.
45777
45778         * modules/strdup (Depends-on): Remove malloc-posix.
45779
45780 2008-09-20  Bruno Haible  <bruno@clisp.org>
45781
45782         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45783         Wildenhues.
45784
45785 2008-09-20  Bruno Haible  <bruno@clisp.org>
45786
45787         Ensure that wint_t gets defined on IRIX 5.3.
45788         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45789         * lib/wctype.in.h (wint_t): Likewise.
45790         (__wctype_wint_t): Remove type.
45791         (isw*): Use wint_t instead of __wctype_wint_t.
45792         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45793         * modules/wchar (Files): Add m4/wint_t.m4.
45794         (Makefile.am): Substitute HAVE_WINT_T.
45795         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45796         * tests/test-wctype.c: Check that wint_t is defined.
45797         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45798         * doc/posix-headers/wctype.texi: Likewise.
45799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45800
45801 2008-09-18  Bruno Haible  <bruno@clisp.org>
45802
45803         * gnulib-tool (func_exit): Update comment.
45804
45805 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45806
45807         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45808         assumes strdup exists and does not depend on strdup to return
45809         ENOMEM on out of memory conditions.
45810
45811 2008-09-18  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45814         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45815         digits for the exponent.
45816
45817 2008-09-18  Jim Meyering  <meyering@redhat.com>
45818             Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/vasnprintf.c (decimal_point_char): Define also if
45821         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45822
45823 2008-09-16  Bruno Haible  <bruno@clisp.org>
45824         and Eric Blake  <ebb9@byu.net>
45825
45826         vasnprintf: support Irix 5.3
45827         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45828         that mishandle long double infinity.
45829         Reported by Tom G. Christensen.
45830
45831 2008-09-16  Bruno Haible  <bruno@clisp.org>
45832
45833         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45834         Solaris 9.
45835         * doc/glibc-functions/alphasort.texi: Likewise.
45836         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45837
45838 2008-09-16  Jim Meyering  <meyering@redhat.com>
45839
45840         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45841         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45842         a umask modification leak out of a subshell.  Otherwise, the
45843         opensolaris /bin/sh would be accepted and thus cause unwarranted
45844         failures in the coreutils test suite.
45845
45846 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45847
45848         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45849         to succeed.
45850
45851 2008-09-16  Jim Meyering  <meyering@redhat.com>
45852
45853         avoid spurious test failure when library is built without ACL support
45854         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45855         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45856         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45857         * tests/test-copy-acl.sh: Likewise.
45858
45859 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45860
45861         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45862         based on character occurrence counts.
45863
45864 2008-09-15  Eric Blake  <ebb9@byu.net>
45865
45866         tests: avoid some compiler warnings
45867         * tests/test-memchr.c (main): Pass NULL indirectly.
45868         * tests/test-closein.c (main): Avoid unused variable.
45869
45870 2008-09-15  Bruno Haible  <bruno@clisp.org>
45871
45872         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45873         are missing on OpenBSD 4.0 individually.
45874         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45875
45876 2008-09-15  Bruno Haible  <bruno@clisp.org>
45877
45878         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45879         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45880         * doc/posix-functions/perror.texi: Likewise.
45881         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45882         is missing.
45883         Reported by Eric Blake.
45884
45885         * lib/errno.in.h: Use replacement values >= 2000.
45886         Reported by Eric Blake.
45887
45888 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45889
45890         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45891         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45892         limit.
45893         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45894         compareseq was aborted.
45895
45896 2008-09-14  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45899         yvec_edit_count.
45900         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45901         (fstrcmp_bounded): Simplify result computation accordingly.
45902
45903 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45904
45905         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45906         (fstrcmp): Define in terms of fstrcmp_bounded.
45907         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45908         lower_bound argument.
45909         Return quickly if the result is certainly < lower_bound.
45910         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45911
45912 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45913
45914         * lib/diffseq.h (EARLY_ABORT): New macro.
45915         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45916         evaluates to true.
45917
45918 2008-09-14  Bruno Haible  <bruno@clisp.org>
45919
45920         * modules/perror-tests: New file.
45921         * tests/test-perror.sh: New file.
45922         * tests/test-perror.c: New file.
45923
45924         New module 'perror'.
45925         * lib/stdio.in.h (perror): New declaration.
45926         * lib/perror.c: New file.
45927         * m4/perror.m4: New file.
45928         * modules/perror: New file.
45929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45930         * doc/posix-functions/perror.texi: Mention the perror module.
45931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45932         REPLACE_PERROR.
45933         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45934         REPLACE_PERROR.
45935
45936 2008-09-14  Bruno Haible  <bruno@clisp.org>
45937
45938         * modules/stdio (Makefile.am): Reorder to match the order in
45939         lib/stdio.in.h.
45940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45941
45942 2008-09-13  Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45945
45946 2008-09-13  Bruno Haible  <bruno@clisp.org>
45947
45948         Extend strerror to cover the added errno values.
45949         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45950         (rpl_strerror): Provide error messages for the added errno values and
45951         for the WSA* values.
45952         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45953         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45954         strerror.
45955         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45956         * modules/strerror (Depends-on): Add errno.
45957         * doc/posix-functions/strerror.texi: Document the change.
45958         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45959         and EOVERFLOW.
45960
45961 2008-09-13  Bruno Haible  <bruno@clisp.org>
45962
45963         * modules/EOVERFLOW: Remove file.
45964         * m4/eoverflow.m4: Remove file.
45965         * modules/EOVERFLOW-tests: Remove file.
45966         * tests/test-EOVERFLOW.c: Remove file.
45967         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45968         * modules/ftell (Depends-on): Likewise.
45969         * modules/getdelim (Depends-on): Likewise.
45970         * modules/getugroups (Depends-on): Likewise.
45971         * modules/poll (Depends-on): Likewise.
45972         * modules/snprintf (Depends-on): Likewise.
45973         * modules/sprintf-posix (Depends-on): Likewise.
45974         * modules/vasnprintf (Depends-on): Likewise.
45975         * modules/vasprintf (Depends-on): Likewise.
45976         * modules/vfprintf-posix (Depends-on): Likewise.
45977         * modules/vsnprintf (Depends-on): Likewise.
45978         * modules/vsprintf-posix (Depends-on): Likewise.
45979         * modules/xvasprintf (Depends-on): Likewise.
45980         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45981         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45982         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45983         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45984         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45985         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45986         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45987         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45988         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45989         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45990         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45991         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45992         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45993         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45994         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45995         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45996         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45997         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45998         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45999         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46000         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46001         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46002         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46003         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46004         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46005         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46006         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46007         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46008         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46009         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46010         * MODULES.html.sh: Remove EOVERFLOW.
46011         * NEWS: Mention the change.
46012
46013 2008-09-13  Bruno Haible  <bruno@clisp.org>
46014
46015         * modules/errno-tests: New file.
46016         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46017
46018         * lib/errno.in.h: New file.
46019         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46020         * modules/errno: New file.
46021         * doc/posix-headers/errno.texi: Update documentation.
46022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46023
46024 2008-09-13  Bruno Haible  <bruno@clisp.org>
46025
46026         * tests/test-poll.c: Use #if for native Windows, rather than testing
46027         __MSVCRT__.
46028
46029 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46030             Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/glob.c: Don't include <pwd.h> on native Windows.
46033         (WINDOWS32): New macro.
46034         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46035
46036 2008-09-13  Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46039         (ETIMEDOUT): Remove macro.
46040         (glthread_cond_timedwait_multithreaded): New declaration.
46041         (glthread_cond_timedwait): Use it.
46042         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46043         (glthread_cond_timedwait_multithreaded): New function.
46044
46045 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46046
46047         * modules/poll-tests: Do not check for io.h.
46048         * tests/test-poll.c: Check for __MSVCRT__ instead.
46049
46050 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46051
46052         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46053         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46054         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46055
46056 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46057
46058         * modules/poll-tests: New.
46059         * tests/test-poll.c: New.
46060
46061 2008-09-12  Eric Blake  <ebb9@byu.net>
46062
46063         frexp: test for NetBSD failure on -0.0
46064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46065         not all, bugs from NetBSD 3.0 have been fixed.
46066         * doc/posix-functions/frexp.texi (frexp): Document bug.
46067         Reported by Thomas Klausner.
46068
46069         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46070         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46071         literal -0.0.
46072         Reported by Jonathan C. Patschke <jp@centtech.com>.
46073
46074 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46075
46076         * lib/glthread/cond.h: Use dummy implementation also if
46077         USE_WIN32_THREADS.
46078
46079 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46080
46081         * modules/fnmatch-posix (License): Change to LGPLv2+.
46082         * modules/fnmatch-gnu (License): Likewise.
46083
46084 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46085
46086         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46087
46088 2008-09-11  Jim Meyering  <meyering@redhat.com>
46089
46090         * users.txt: Add gtk-vnc.
46091
46092 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46093
46094         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46095         rotate amounts.
46096
46097         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46098         required for 16-bit and 8-bit rotates.
46099         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46100         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46101         UINT8_MAX instead of hard-coded constants.
46102         Suggested by Paul Eggert.
46103
46104 2008-09-07  Bruno Haible  <bruno@clisp.org>
46105
46106         * tests/test-striconveh.c (main): Check behaviour when converting from
46107         UTF-7.
46108
46109         Make striconveh work better with stateful encodings.
46110         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46111         that iconv does not increment the inptr when returning -1/EINVAL.
46112
46113 2008-09-07  Bruno Haible  <bruno@clisp.org>
46114
46115         * build-aux/config.rpath: Update according to libtool-2.2.6.
46116         * build-aux/config.libpath: Likewise.
46117
46118 2008-09-06  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46121         * lib/freadptr.c (freadptr): Likewise.
46122         * lib/freadseek.c (freadptrinc): Likewise.
46123         Reported by Simon Josefsson.
46124
46125 2008-09-06  Bruno Haible  <bruno@clisp.org>
46126
46127         * modules/freadptr (License): Change to LGPLv2+.
46128         * modules/freadseek (License): Likewise.
46129         Suggested by Eric Blake.
46130
46131         * modules/memchr2 (License): Change to LGPLv2+.
46132         Approved by Eric Blake.
46133
46134 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46135             Bruno Haible  <bruno@clisp.org>
46136
46137         Make gnulib-tool work with native 'sed' on AIX.
46138         * gnulib-tool (sed_noop): New variable.
46139         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46140         func_add_or_update, func_create_testdir): Use it to initialize sed
46141         script variables.
46142         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46143
46144 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46145             Bruno Haible  <bruno@clisp.org>
46146
46147         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46148         also works after #include directives.
46149
46150 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46151
46152         getdate.y: reject an out-of-range timezone value
46153         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46154         the range [-24...+24].  When specified with only one or two digits,
46155         * tests/test-getdate.c: Tests for the fix.
46156         * doc/getdate.texi: Document this change.
46157
46158 2008-09-03  Bruno Haible  <bruno@clisp.org>
46159
46160         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46161
46162 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46163
46164         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46165         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46166         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46167         Blake <ebb9@byu.net>.
46168
46169         * tests/test-bitrotate.c: Add more test vectors.
46170
46171 2008-09-02  Eric Blake  <ebb9@byu.net>
46172
46173         vasnprintf-posix: handle large precision via %.*d
46174         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46175         when handling it ourselves.
46176         * tests/test-vasnprintf-posix.c (test_function): Add test.
46177         * tests/test-snprintf-posix.h (test_function): Likewise.
46178         * tests/test-sprintf-posix.h (test_function): Likewise.
46179         * tests/test-vasprintf-posix.c (test_function): Likewise.
46180         Reported by Alain Guibert.
46181
46182 2008-09-01  Eric Blake  <ebb9@byu.net>
46183
46184         c-stack: make configure-time check more robust
46185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46186         successful sigaction call.
46187         Reported by Tom G. Christensen.
46188
46189 2008-09-01  Bruno Haible  <bruno@clisp.org>
46190
46191         New module 'findprog-lgpl'.
46192         * modules/findprog-lgpl: New file.
46193         * lib/findprog-lgpl.c: New file.
46194         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46195         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46196         to decide whether to use strdup or xstrdup, concatenated_filename or
46197         xconcatenated_filename.
46198
46199 2008-09-01  Bruno Haible  <bruno@clisp.org>
46200
46201         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46202         'xconcat-filename' (GPL).
46203         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46204         (License): Change to LGPLv2+.
46205         * modules/xconcat-filename: New file.
46206         * lib/concat-filename.h (concatenated_filename): Change specification.
46207         (xconcatenated_filename): New declaration.
46208         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46209         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46210         memory situations.
46211         * lib/xconcat-filename.c: New file.
46212         * NEWS: Mention the change.
46213         * lib/findprog.c: Include concat-filename.h, not filename.h.
46214         (find_in_path): Use xconcatenated_filename instead of
46215         concatenated_filename.
46216         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46217         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46218         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46219         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46220         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46221         instead of concatenated_filename.
46222         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46223         (execute_java_class): Use xconcatenated_filename instead of
46224         concatenated_filename.
46225         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46226         * modules/javacomp (Depends-on): Likewise.
46227         * modules/javaexec (Depends-on): Likewise.
46228
46229 2008-09-01  Bruno Haible  <bruno@clisp.org>
46230
46231         Split module 'filename' into 'filename' and 'concat-filename'.
46232         * modules/filename: Keep only lib/filename.h.
46233         (License): Change to LGPLv2+.
46234         * modules/concat-filename: New file, extracted from modules/filename.
46235         * lib/filename.h (concatenated_filename): Remove declaration.
46236         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46237         * lib/concat-filename.c: Include concat-filename.h.
46238         * NEWS: Mention the change.
46239
46240 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46241
46242         * lib/bitrotate.h (rotl8, rotr8): Add.
46243
46244         * modules/bitrotate (configure.ac): Need
46245         AC_REQUIRE([AC_C_INLINE]).
46246         (Description): Mention stdint.h.  Reported by Bruno Haible
46247         <bruno@clisp.org>.
46248
46249         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46250         Paolo Bonzini <bonzini@gnu.org>.
46251
46252 2008-08-31  Bruno Haible  <bruno@clisp.org>
46253
46254         Assume Solaris specific bi-arch conventions on Solaris systems.
46255         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46256         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46258         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46259         like acl_libdirstem.
46260         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46261         acl_libdirstem.
46262         * NEWS: Mention the change.
46263         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46264
46265 2008-08-31  Jim Meyering  <meyering@redhat.com>
46266
46267         * lib/strftime.h: Add comments describing the two added arguments.
46268
46269         remove duplicate #include directives
46270         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46271         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46272
46273 2008-08-31  Bruno Haible  <bruno@clisp.org>
46274
46275         New module 'sigpipe-die'.
46276         * modules/sigpipe-die: New file.
46277         * lib/sigpipe-die.h: New file.
46278         * lib/sigpipe-die.c: New file.
46279         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46280
46281 2008-08-31  Bruno Haible  <bruno@clisp.org>
46282
46283         Don't override previously installed signal handlers.
46284         * lib/fatal-signal.c (saved_sigactions): New variable.
46285         (uninstall_handlers): Reset the signal to the saved handler, not
46286         to SIG_DFL (except when ignored).
46287         (install_handlers): Save the previous handlers.
46288
46289 2008-08-30  Bruno Haible  <bruno@clisp.org>
46290
46291         * gnulib-tool (func_reset_sigpipe): New function.
46292         (func_get_automake_snippet, func_modules_transitive_closure,
46293         func_import): Invoke it before a join command that reads from stdin,
46294         to avoid "echo: write error: Broken pipe" error messages on stderr.
46295         Reported by Sam Steingold <sds@gnu.org>.
46296
46297 2008-08-30  Bruno Haible  <bruno@clisp.org>
46298
46299         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46300         Code copied from m4/open.m4.
46301         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46302         access and the filename ends in a slash. Code copied from lib/open.c.
46303         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46304         * tests/test-fopen.c (main): Check against bug with trailing slash.
46305
46306 2008-08-29  Bruno Haible  <bruno@clisp.org>
46307
46308         Avoid some "gcc -pedantic" warnings.
46309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46310         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46311         * lib/dirent.in.h: Likewise.
46312         * lib/fcntl.in.h: Likewise.
46313         * lib/float.in.h: Likewise.
46314         * lib/iconv.in.h: Likewise.
46315         * lib/inttypes.in.h: Likewise.
46316         * lib/locale.in.h: Likewise.
46317         * lib/math.in.h: Likewise.
46318         * lib/netinet_in.in.h: Likewise.
46319         * lib/search.in.h: Likewise.
46320         * lib/signal.in.h: Likewise.
46321         * lib/stdarg.in.h: Likewise.
46322         * lib/stdint.in.h: Likewise.
46323         * lib/stdio.in.h: Likewise.
46324         * lib/stdlib.in.h: Likewise.
46325         * lib/string.in.h: Likewise.
46326         * lib/strings.in.h: Likewise.
46327         * lib/sys_select.in.h: Likewise.
46328         * lib/sys_socket.in.h: Likewise.
46329         * lib/sys_stat.in.h: Likewise.
46330         * lib/sys_time.in.h: Likewise.
46331         * lib/sysexits.in.h: Likewise.
46332         * lib/time.in.h: Likewise.
46333         * lib/unistd.in.h: Likewise.
46334         * lib/wchar.in.h: Likewise.
46335         * lib/wctype.in.h: Likewise.
46336         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46337         * modules/fchdir (Makefile.am): Likewise.
46338         * modules/fcntl (Makefile.am): Likewise.
46339         * modules/float (Makefile.am): Likewise.
46340         * modules/iconv_open (Makefile.am): Likewise.
46341         * modules/inttypes (Makefile.am): Likewise.
46342         * modules/locale (Makefile.am): Likewise.
46343         * modules/math (Makefile.am): Likewise.
46344         * modules/netinet_in (Makefile.am): Likewise.
46345         * modules/search (Makefile.am): Likewise.
46346         * modules/signal (Makefile.am): Likewise.
46347         * modules/stdarg (Makefile.am): Likewise.
46348         * modules/stdint (Makefile.am): Likewise.
46349         * modules/stdio (Makefile.am): Likewise.
46350         * modules/stdlib (Makefile.am): Likewise.
46351         * modules/string (Makefile.am): Likewise.
46352         * modules/strings (Makefile.am): Likewise.
46353         * modules/sys_select (Makefile.am): Likewise.
46354         * modules/sys_socket (Makefile.am): Likewise.
46355         * modules/sys_stat (Makefile.am): Likewise.
46356         * modules/sys_time (Makefile.am): Likewise.
46357         * modules/sysexits (Makefile.am): Likewise.
46358         * modules/time (Makefile.am): Likewise.
46359         * modules/unistd (Makefile.am): Likewise.
46360         * modules/wchar (Makefile.am): Likewise.
46361         * modules/wctype (Makefile.am): Likewise.
46362         Reported by Reuben Thomas <rrt@sc3d.org>.
46363
46364 2008-08-29  Bruno Haible  <bruno@clisp.org>
46365
46366         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46367         any more.
46368
46369 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46370
46371         * MODULES.html.sh (Misc): Add bitrotate.
46372
46373         * modules/bitrotate: New file.
46374
46375         * lib/bitrotate.h: New file.
46376
46377         * modules/bitrotate-tests: New file.
46378
46379         * tests/test-bitrotate.c: New file.
46380
46381         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46382         on the bitrotate module.
46383
46384         * lib/arctwo.c: Use new bitrotate module.
46385
46386 2008-08-29  Jim Meyering  <meyering@redhat.com>
46387
46388         bootstrap: merge changes from coreutils
46389         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46390         of copied files.  Remove a kludge, now that this is fixed.
46391         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46392         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46393         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46394
46395 2008-08-29  Bruno Haible  <bruno@clisp.org>
46396
46397         * MODULES.html.sh: Remove --cvs-urls option.
46398
46399 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46400
46401         maint.mk: adjust to file name change
46402         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46403
46404 2008-08-28  Jim Meyering  <meyering@redhat.com>
46405
46406         * modules/getndelim2 (License): Relicense to LGPLv2+.
46407         Approved by Richard Stallman for the version of 1995, and by
46408         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46409
46410 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46411
46412         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46413         dummy if one is not available.  Do not touch them if
46414         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46415         (getc_maybe_unlocked): New.
46416         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46417
46418 2008-08-26  Eric Blake  <ebb9@byu.net>
46419
46420         doc/INSTALL: resync from autoconf
46421         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46422         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46423         moving...
46424         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46425         * INSTALL: Regenerate.
46426         * INSTALL.ISO: New file.
46427         * INSTALL.UTF-8: Likewise.
46428
46429 2008-08-26  Jim Meyering  <meyering@redhat.com>
46430
46431         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46432         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46433         these definitions conditional, so that they may be overridden, too.
46434
46435 2008-08-26  Bruno Haible  <bruno@clisp.org>
46436
46437         Generate INSTALL file variants with prettier quotes.
46438         * doc/Makefile (INSTALL_PRELUDE): New macro.
46439         (INSTALL): Use it.
46440         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46441
46442 2008-08-26  Bruno Haible  <bruno@clisp.org>
46443
46444         Run makeinfo in an English locale.
46445         * doc/Makefile (MAKEINFO): New variable.
46446
46447 2008-08-26  Bruno Haible  <bruno@clisp.org>
46448
46449         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46450         Suggested by Eric Blake.
46451
46452 2008-08-25  Bruno Haible  <bruno@clisp.org>
46453
46454         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46455
46456 2008-08-25  Eric Blake  <ebb9@byu.net>
46457
46458         c-stack: test that stack overflow can be caught
46459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46460         that platform allows handling stack overflow; at least OS/2 EMX
46461         has sigaltstack, but crashes before transferring control to
46462         handler on stack overflow.
46463         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46464         check for HAVE_STACK_OVERFLOW_HANDLING.
46465         Reported by Elbert Pol.
46466
46467 2008-08-25  Bruno Haible  <bruno@clisp.org>
46468
46469         * doc/posix-functions/strftime.texi: Fix description of strftime
46470         module.
46471
46472 2008-08-24  Bruno Haible  <bruno@clisp.org>
46473
46474         * tests/uniwidth/test-uc_width2.c: New file.
46475         * tests/uniwidth/test-uc_width2.sh: New file.
46476         * modules/uniwidth/width-tests (Files): Add the new files.
46477         (TESTS): Add uniwidth/test-uc_width2.sh.
46478         (TESTS_ENVIRONMENT): New variable.
46479         (check_PROGRAMS): Add test-uc_width2.
46480         (test_uc_width2_SOURCES): New variable.
46481
46482         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46483         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46484         not 0x00AB.
46485         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46486
46487 2008-08-22  Eric Blake  <ebb9@byu.net>
46488
46489         test-lock, test-tls: mention why a test is skipped
46490         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46491         skipped.
46492         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46493
46494         count-one-bits: relax license
46495         * modules/count-one-bits (License): Relicense to LGPLv2+.
46496         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46497
46498 2008-08-22  Andreas Schwab  <schwab@suse.de>
46499
46500         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46501         Remove spurious space in assignment.
46502
46503 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46504
46505         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46506         Paul Eggert <eggert@CS.UCLA.EDU>.
46507
46508 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46509
46510         * modules/gettext: Add m4/threadlib.m4.
46511
46512 2008-08-19  Eric Blake  <ebb9@byu.net>
46513
46514         test-c-stack: fix compilation failure on FreeBSD 5.0
46515         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46516         headers before <sys/resource.h>.
46517         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46518         the bug.
46519         Reported by Nelson H. F. Beebe.
46520
46521         strverscmp: migrate from "strverscmp.h" to <string.h>
46522         * modules/string (Makefile.am): Add new hooks.
46523         * modules/strverscmp (Files): Remove strverscmp.h.
46524         (Depends-on): Add string.
46525         (configure.ac): Add indicator.
46526         (Include): Mention new header.
46527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46528         defaults.
46529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46530         results.
46531         * lib/strverscmp.h: Delete.
46532         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46533         * tests/test-strverscmp.c (includes): Adjust client.
46534         * lib/check-version.c (includes): Likewise.
46535         * NEWS: Document the change.
46536
46537         strverscmp: add unit test
46538         * modules/strverscmp-tests: New file.
46539         * tests/test-strverscmp.c: Likewise.
46540
46541 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46542
46543         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46544         regarding Windows crypto stuff, from Mono.
46545
46546 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46547
46548         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46549         if present, for intel RND.  Return error on failures.
46550
46551 2008-08-18  Ben Pfaff  <blp@gnu.org>
46552
46553         gitlog-to-changelog: give better diagnostic for failed pipe-open
46554         * build-aux/gitlog-to-changelog: Improve error message: suggest
46555         that the version of Git may be too old.
46556
46557 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46558
46559         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46560         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46561
46562 2008-08-18  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46565         pthread_in_use().
46566
46567 2008-08-18  Bruno Haible  <bruno@clisp.org>
46568
46569         * lib/glthread/threadlib.c: Include <pthread.h>.
46570
46571 2008-08-18  Bruno Haible  <bruno@clisp.org>
46572
46573         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46574         glthread_recursive_lock_* macros.
46575         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46576         Fix syntax error.
46577
46578 2008-08-18  Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/glthread/thread.c: Avoid forcing a context switch right after
46581         thread creation.
46582
46583 2008-08-17  Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46586         * lib/glthread/thread.h: Provide Win32 specific implementation.
46587         * modules/thread (Files): Add lib/glthread/thread.c.
46588         (Depends-on): Add lock.
46589         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46590
46591 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46592
46593         New module 'yield'.
46594         * modules/yield: New file.
46595         * lib/glthread/yield.h: New file.
46596         * m4/yield.m4: New file.
46597         * MODULES.html.sh (Multithreading): Add yield.
46598
46599 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46600
46601         New module 'thread'.
46602         * modules/thread: New file.
46603         * lib/glthread/thread.h: New file.
46604         * m4/thread.m4: New file.
46605         * MODULES.html.sh (Multithreading): Add thread.
46606
46607 2008-08-17  Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/glthread/lock.h: Include <stdlib.h> always.
46610         * lib/glthread/tls.h: Likewise.
46611         * lib/glthread/cond.h: Likewise.
46612
46613 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46614
46615         New module 'cond'.
46616         * modules/cond: New file.
46617         * lib/glthread/cond.h: New file.
46618         * lib/glthread/cond.c: New file.
46619         * m4/cond.m4: New file.
46620         * MODULES.html.sh (Multithreading): Add cond.
46621
46622 2008-08-16  Eric Blake  <ebb9@byu.net>
46623
46624         c-stack: fix regression on Irix 5.3 from 2008-06-21
46625         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46626         sa_sigaction...
46627         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46628         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46629         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46630         * modules/signal (Makefile.am): Use the value.
46631         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46632         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46633         * doc/posix-headers/signal.texi (signal.h): Document this
46634         portability issue.
46635         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46636         Reported by Tom G. Christensen.
46637
46638 2008-08-17  Bruno Haible  <bruno@clisp.org>
46639
46640         New module 'threadlib'.
46641         * modules/threadlib: New file.
46642         * lib/glthread/threadlib.c: New file, extracted from
46643         lib/glthread/lock.c.
46644         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46645         functions.
46646         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46647         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46648         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46649         macros.
46650         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46651         (gl_DISABLE_THREADS): Remove macro.
46652         * modules/lock (Files): Remove build-aux/config.rpath.
46653         (Depends-on): Remove havelib. Add threadlib.
46654         (configure.ac-early): Remove section.
46655         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46656         * modules/tls (Depends-on): Remove lock. Add threadlib.
46657         (Link): New section, copied from threadlib.
46658         * MODULES.html.sh (Multithreading): Add threadlib.
46659
46660 2008-08-14  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46663         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46664         glthread_rwlock_unlock, glthread_rwlock_destroy,
46665         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46666         glthread_recursive_lock_destroy): Define as macros always.
46667         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46668         glthread_lock_lock.
46669         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46670         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46671         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46672         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46673         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46674         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46675         (glthread_recursive_lock_lock_func): Renamed from
46676         glthread_recursive_lock_lock.
46677         (glthread_recursive_lock_unlock_func): Renamed from
46678         glthread_recursive_lock_unlock.
46679         (glthread_recursive_lock_destroy_func): Renamed from
46680         glthread_recursive_lock_destroy.
46681
46682 2008-08-14  Bruno Haible  <bruno@clisp.org>
46683
46684         * lib/glthread/lock.h: Renamed from lib/lock.h.
46685         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46686         * lib/glthread/tls.h: Renamed from lib/tls.h.
46687         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46688         * lib/fstrcmp.c: Update includes.
46689         * lib/strsignal.c: Update includes.
46690         * modules/lock (Files, Makefile.am): Update.
46691         (Include): Change to "glthread/lock.h".
46692         * modules/tls (Files, Makefile.am): Update.
46693         (Include): Change to "glthread/tls.h".
46694         * tests/test-lock.c: Update includes.
46695         * tests/test-tls.c: Update includes.
46696         * NEWS: Mention the renamed header files.
46697
46698 2008-08-11  Jim Meyering  <meyering@redhat.com>
46699
46700         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46701
46702 2008-08-11  Eric Blake  <ebb9@byu.net>
46703
46704         test-c-stack: avoid C99-ism
46705         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46706         before statement.
46707         Reported by Alain Guibert.
46708
46709 2008-08-10  Jim Meyering  <meyering@redhat.com>
46710
46711         ensure that return value of uinttostr et al are not ignored
46712         * lib/inttostr.h (__GNUC_PREREQ): Define.
46713         (__attribute_warn_unused_result__): Define.
46714         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46715
46716 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46717
46718         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46719         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46720
46721 2008-08-07  Jim Meyering  <meyering@redhat.com>
46722
46723         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46724
46725         * modules/mkstemp (License): Relicense under LGPLv2+.
46726         * modules/tempname (License): Likewise.
46727
46728 2008-08-06  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/poll.c (poll): Further micro-optimization.
46731
46732 2008-08-06  Jim Meyering  <meyering@redhat.com>
46733
46734         inet_pton.c: use locale-independent tolower
46735         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46736         (inet_pton6): Use c_tolower rather than tolower.
46737         * modules/inet_pton (Depends-on): Add c-ctype.
46738
46739 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46740
46741         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46742         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46743
46744 2008-08-06  Jim Meyering  <meyering@redhat.com>
46745
46746         * modules/inet_pton (License): Relicense under LGPLv2+.
46747
46748 2008-08-03  Bruno Haible  <bruno@clisp.org>
46749
46750         Additional non-aborting API for lock and tls.
46751         * lib/lock.h: Include <errno.h>.
46752         (glthread_lock_init): New macro/function.
46753         (gl_lock_init): Define as wrapper around glthread_lock_init.
46754         (glthread_lock_lock): New macro/function.
46755         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46756         (glthread_lock_unlock): New macro/function.
46757         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46758         (glthread_lock_destroy): New macro/function.
46759         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46760         (glthread_rwlock_init): New macro/function.
46761         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46762         (glthread_rwlock_rdlock): New macro/function.
46763         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46764         (glthread_rwlock_wrlock): New macro/function.
46765         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46766         (glthread_rwlock_unlock): New macro/function.
46767         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46768         (glthread_rwlock_destroy): New macro/function.
46769         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46770         (glthread_recursive_lock_init): New macro/function.
46771         (gl_recursive_lock_init): Define as wrapper around
46772         glthread_recursive_lock_init.
46773         (glthread_recursive_lock_lock): New macro/function.
46774         (gl_recursive_lock_lock): Define as wrapper around
46775         glthread_recursive_lock_lock.
46776         (glthread_recursive_lock_unlock): New macro/function.
46777         (gl_recursive_lock_unlock): Define as wrapper around
46778         glthread_recursive_lock_unlock.
46779         (glthread_recursive_lock_destroy): New macro/function.
46780         (gl_recursive_lock_destroy): Define as wrapper around
46781         glthread_recursive_lock_destroy.
46782         (glthread_once): New macro/function.
46783         (gl_once): Define as wrapper around glthread_once.
46784         Update function declarations.
46785         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46786         glthread_rwlock_init. Return error code.
46787         (glthread_rwlock_rdlock_multithreaded): Renamed from
46788         glthread_rwlock_rdlock. Return error code.
46789         (glthread_rwlock_wrlock_multithreaded): Renamed from
46790         glthread_rwlock_wrlock. Return error code.
46791         (glthread_rwlock_unlock_multithreaded): Renamed from
46792         glthread_rwlock_unlock. Return error code.
46793         (glthread_rwlock_destroy_multithreaded): Renamed from
46794         glthread_rwlock_destroy. Return error code.
46795         (glthread_recursive_lock_init_multithreaded): Renamed from
46796         glthread_recursive_lock_init. Return error code.
46797         (glthread_recursive_lock_lock_multithreaded): Renamed from
46798         glthread_recursive_lock_lock. Return error code.
46799         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46800         glthread_recursive_lock_unlock. Return error code.
46801         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46802         glthread_recursive_lock_destroy. Return error code.
46803         (glthread_once_call): Make static.
46804         (glthread_once_multithreaded): Renamed from glthread_once.
46805         * lib/tls.h: Include <errno.h>.
46806         (glthread_tls_key_init): New macro/function.
46807         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46808         (glthread_tls_set): New macro/function.
46809         (gl_tls_set): Define as wrapper around glthread_tls_set.
46810         (glthread_tls_key_destroy): New macro/function.
46811         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46812         Update function declarations.
46813         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46814         glthread_tls_get.
46815         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46816
46817 2008-08-04  Eric Blake  <ebb9@byu.net>
46818
46819         gnumakefile: use space, not TAB, outside of targets
46820         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46821
46822 2008-08-02  Jim Meyering  <meyering@redhat.com>
46823
46824         getdate.y: avoid locale-dependent date parsing failure
46825         In Turkish locales, getdate would fail to recognize keywords
46826         containing a lowercase "i".  The solution is not to rely on
46827         locale-sensitive case-conversion.
46828         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46829         (lookup_word): Use c_toupper in place of toupper.
46830         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46831         Reported by Vefa Bicakci <bicave@superonline.com> in
46832         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46833         * modules/getdate (Depends-on): Add c-ctype.
46834
46835 2008-08-02  Bruno Haible  <bruno@clisp.org>
46836
46837         * gnulib-tool (func_import): When updating or creating a .gitignore
46838         file, prepend each added line with a slash, and ignore leading slashes
46839         from the existing lines.
46840         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46841
46842 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46843
46844         Portability fix for GNU make 3.79.1.
46845         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46846         versions do not understand.
46847
46848 2008-08-01  Bruno Haible  <bruno@clisp.org>
46849
46850         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46851         * tests/test-isnanf.h (zero): New variable.
46852         (main): Avoid literal -0.0f.
46853         * tests/test-isnand.h (zero): New variable.
46854         (main): Avoid literal -0.0.
46855         * tests/test-isnanl.h (zero): New variable.
46856         (main): Avoid literal -0.0L.
46857         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46858         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46859         -0.0, -0.0L.
46860         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46861         (test_signbitd): Avoid literal -0.0.
46862         (test_signbitl): Avoid literal -0.0L.
46863         * tests/test-ceilf1.c (zero): New variable.
46864         (main): Avoid literal -0.0f.
46865         * tests/test-ceill.c (zero): New variable.
46866         (main): Avoid literal -0.0L.
46867         * tests/test-floorf1.c (zero): New variable.
46868         (main): Avoid literal -0.0f.
46869         * tests/test-floorl.c (zero): New variable.
46870         (main): Avoid literal -0.0L.
46871         * tests/test-roundf1.c (zero): New variable.
46872         (main): Avoid literal -0.0f.
46873         * tests/test-round1.c (zero): New variable.
46874         (main): Avoid literal -0.0.
46875         * tests/test-roundl.c (zero): New variable.
46876         (main): Avoid literal -0.0L.
46877         * tests/test-truncf1.c (zero): New variable.
46878         (main): Avoid literal -0.0f.
46879         * tests/test-trunc1.c (zero): New variable.
46880         (main): Avoid literal -0.0.
46881         * tests/test-truncl.c (zero): New variable.
46882         (main): Avoid literal -0.0L.
46883         * tests/test-frexp.c (zero): New variable.
46884         (main): Avoid literal -0.0.
46885         * tests/test-frexpl.c (zero): New variable.
46886         (main): Avoid literal -0.0L.
46887         * tests/test-ldexpl.c (zero): New variable.
46888         (main): Avoid literal -0.0L.
46889         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46890         (zerod, zerol): New variables.
46891         (test_function): Avoid literals -0.0, -0.0L.
46892         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46893         (zerod, zerol): New variables.
46894         (test_function): Avoid literals -0.0, -0.0L.
46895         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46896         (zerod, zerol): New variables.
46897         (test_function): Avoid literals -0.0, -0.0L.
46898         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46899         (zerod, zerol): New variables.
46900         (test_function): Avoid literals -0.0, -0.0L.
46901         * tests/test-strtod.c (zero): New variable.
46902         (main): Avoid literal -0.0.
46903         Reported by Jonathan C. Patschke <jp@centtech.com>.
46904
46905 2008-07-31  Jim Meyering  <meyering@redhat.com>
46906
46907         sha256.h: correct definition of SHA224_DIGEST_SIZE
46908         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46909         Reported by Paulie Pena IV <paulie4@gmail.com>.
46910         Define as 224 / 8, rather than as a literal.
46911         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46912         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46913         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46914
46915 2008-07-31  Bruno Haible  <bruno@clisp.org>
46916
46917         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46918         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46919         Reported by Jonathan Patschke <jp@centtech.com>.
46920
46921 2008-07-31  Bruno Haible  <bruno@clisp.org>
46922
46923         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46924         Reported by Paolo Bonzini <bonzini@gnu.org>.
46925
46926 2008-07-30  Eric Blake  <ebb9@byu.net>
46927
46928         test-strtod: allow compilation without -lm
46929         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46930         Reported by Dennis Clarke <blastwave@gmail.com>.
46931
46932 2008-07-28  Jim Meyering  <meyering@redhat.com>
46933
46934         bootstrap: work also when there are no .po files in po/
46935         * build-aux/bootstrap (update_po_files): Complete the change
46936         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46937
46938 2008-07-27  Jim Meyering  <meyering@redhat.com>
46939
46940         * users.txt: Add zile.
46941
46942 2008-07-26  Ben Pfaff  <blp@gnu.org>
46943
46944         Add missing dependencies on new m4/exponent[fdl].m4 files.
46945         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46946         * modules/isnand-nolibm: Add m4/exponentd.m4.
46947         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46948         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46949         m4/isnan[fdl].m4, because the macros actually used moved.
46950         Reported by Jim Meyering.
46951
46952 2008-07-14  Ben Pfaff  <blp@gnu.org>
46953
46954         Add isinf module.
46955         * lib/isinf.c: New file.
46956         * lib/math.in.h: Define isinf macro if we have decided to replace
46957         it.
46958         * m4/isinf.m4: New file.
46959         * m4/math_h.m4: Initialize and substitute variables for isinf
46960         module.
46961         * modules/isinf: New file.
46962         * modules/isinf-tests: New file.
46963         * modules/math: Add substitutions for new module.
46964         * tests/test-isinf.c: New file.
46965         * doc/posix-functions/isinf.texi: Mention new module.
46966         * MODULES.html.sh: Mention new module.
46967
46968 2008-07-14  Ben Pfaff  <blp@gnu.org>
46969
46970         Factor out some macros for use by additional modules.
46971         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46972         exponentf.m4.
46973         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46974         exponentd.m4.
46975         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46976         file exponentl.m4.
46977         * m4/exponentf.m4: New file.
46978         * m4/exponentd.m4: New file.
46979         * m4/exponentl.m4: New file.
46980         * modules/isnanf: Use new file m4/exponentf.m4.
46981         * modules/isnand: Use new file m4/exponentd.m4.
46982         * modules/isnanl: Use new file m4/exponentl.m4.
46983
46984 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46985
46986         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46987         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46988         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46989         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46990
46991         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46992         readlink on platforms without PATH_MAX.
46993
46994 2008-07-21  Eric Blake  <ebb9@byu.net>
46995
46996         Warn, not fail, on stale version.
46997         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46998
46999         Don't allow installation with stale devel version number.
47000         * top/GNUmakefile (_is-install-target): New macro.
47001         (_curr-ver): Forbid installation with stale version number.
47002
47003 2008-07-20  Bruno Haible  <bruno@clisp.org>
47004
47005         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47006         TESTS_ENVIRONMENT.
47007         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47008
47009 2008-07-20  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/c-stack.h (c_stack_action): Add documentation.
47012         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47013
47014 2008-07-20  Bruno Haible  <bruno@clisp.org>
47015
47016         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47017         * modules/readlink (License): Likewise.
47018
47019 2008-07-17  Eric Blake  <ebb9@byu.net>
47020
47021         * modules/c-stack (Link): Fix typo.
47022
47023         Make c-stack use libsigsegv, when available.
47024         * modules/c-stack (Depends-on): Add libsigsegv.
47025         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47026         needed.
47027         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47028         (segv_handler, overflow_handler, c_stack_action)
47029         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47030         implementation when libsigsegv is available, but only when using
47031         the library is necessary.
47032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47033         comment, explaining why XSI check fails on Linux.
47034         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47035         * tests/test-c-stack2.sh: Tweak skip message.
47036         * NEWS: Document new link-time requirements.
47037
47038 2008-07-16  Eric Blake  <ebb9@byu.net>
47039
47040         c-stack: Expose false positives when not using libsigsegv.
47041         * modules/c-stack-tests (Files): Expand test.
47042         * tests/test-c-stack.c (main): Add means to conditionally trigger
47043         non-overflow SIGSEGV.
47044         * tests/test-c-stack2.sh: New file.
47045
47046 2008-07-14  Bruno Haible  <bruno@clisp.org>
47047
47048         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47049         Reported by Eric Blake.
47050
47051 2008-07-14  Sam Steingold  <sds@gnu.org>
47052             Bruno Haible  <bruno@clisp.org>
47053
47054         New module libsigsegv.
47055         * modules/libsigsegv: New file.
47056         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47057         modifications.
47058         * MODULES.html.sh (Signal handling): New section.
47059
47060 2008-07-14  Bruno Haible  <bruno@clisp.org>
47061
47062         * modules/unictype/ctype-* (Description): Add the word "function".
47063         Improves the resulting doc in MODULES.html.
47064
47065 2008-07-12  Ben Pfaff  <blp@gnu.org>
47066
47067         Add longlong module.
47068         * modules/longlong: New file.
47069
47070 2008-07-12  Bruno Haible  <bruno@clisp.org>
47071
47072         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47073         to empty.
47074
47075 2008-07-10  Ben Pfaff  <blp@gnu.org>
47076
47077         Add isnan module.
47078         * doc/posix-functions/isnan.texi: Mention new module.
47079         * lib/math.in.h: Define isnan macro if we have decided to replace
47080         it.
47081         * m4/isnan.m4: New file.
47082         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47083         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47084         also.
47085         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47086         redundancy.
47087         * m4/math_h.m4: Initialize and substitute variables for isnan
47088         module.
47089         * modules/isnan: New file.
47090         * modules/isnan-tests: New file.
47091         * modules/math: Add substitutions for new module.
47092         * tests/test-isnan.c: New file.
47093         * MODULES.html.sh: Mention new module.
47094
47095 2008-07-10  Ben Pfaff  <blp@gnu.org>
47096
47097         Add isnanf module.
47098         * lib/isnanf.m4: New file.
47099         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47100         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47101         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47102         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47103         * modules/isnanf: New file.
47104         * modules/isnanf-tests: New file.
47105         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47106         files.
47107         * tests/test-isnanf-nolibm.c: factored most of its contents into
47108         new file tests/test-isnanf.h.
47109         * tests/test-isnanf.h: New file.
47110         * tests/test-isnanf.c: New file.
47111         * MODULES.html.sh: Mention new module.
47112         * doc/glibc-functions/isnanf.texi: Mention new module.
47113
47114 2008-07-10  Ben Pfaff  <blp@gnu.org>
47115
47116         Add isnand module.
47117         * lib/isnand.h: New file.
47118         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47119         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47120         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47121         functionality also.
47122         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47123         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47124         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47125         * modules/isnand: New file.
47126         * modules/isnand-tests: New file.
47127         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47128         files.
47129         * tests/test-isnand-nolibm.c: factored most of its contents into
47130         new file tests/test-isnand.h.
47131         * tests/test-isnand.h: New file.
47132         * tests/test-isnand.c: New file.
47133         * MODULES.html.sh: Mention new module.
47134
47135 2008-07-10  Ben Pfaff  <blp@gnu.org>
47136
47137         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47138         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47139         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47140         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47141         * modules/isnanf-nolibm: Update references to renamed files.
47142         * modules/isnand-nolibm: Likewise.
47143         * modules/isnanf-nolibm-tests: Likewise.
47144         * modules/isnand-nolibm-tests: Likewise.
47145         * lib/frexp.c: Likewise.
47146         * lib/isfinite.c: Likewise.
47147         * lib/signbitd.c: Likewise.
47148         * lib/signbitf.c: Likewise.
47149         * lib/vasnprintf.c: Likewise.
47150         * tests/test-ceilf1.c: Likewise.
47151         * tests/test-ceilf2.c: Likewise.
47152         * tests/test-floorf1.c: Likewise.
47153         * tests/test-floorf2.c: Likewise.
47154         * tests/test-frexp.c: Likewise.
47155         * tests/test-round1.c: Likewise.
47156         * tests/test-round2.c: Likewise.
47157         * tests/test-roundf1.c: Likewise.
47158         * tests/test-strtod.c: Likewise.
47159         * tests/test-trunc1.c: Likewise.
47160         * tests/test-trunc2.c: Likewise.
47161         * tests/test-truncf1.c: Likewise.
47162         * tests/test-truncf2.c: Likewise.
47163         * NEWS: Mention the renamed header files.
47164
47165 2008-07-11  Jim Meyering  <meyering@redhat.com>
47166
47167         vc-list-files: make the last-resort awk code more portable
47168         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47169         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47170         does not support it.
47171
47172 2008-07-10  Eric Blake  <ebb9@byu.net>
47173
47174         Work with tar's bootstrap.
47175         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47176         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47177         an m4 comment.
47178
47179 2008-07-09  Jim Meyering  <meyering@redhat.com>
47180
47181         posix-shell.m4: fix typo that made this test malfunction
47182         * m4/posix-shell.m4: Remove capitalization in variable name.
47183
47184 2008-07-08  Bruno Haible  <bruno@clisp.org>
47185
47186         * m4/onceonly.m4: Update comments.
47187         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47188
47189 2008-07-04  Jim Meyering  <meyering@redhat.com>
47190
47191         * users.txt: Add vc-dwim.
47192         (bison, coreutils): Use the gitweb URL.
47193
47194 2008-07-03  Jim Meyering  <meyering@redhat.com>
47195
47196         * users.txt: Add libffcall.  From Sam Steingold.
47197
47198 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47199
47200         getdate.y: do not ignore TZ with relative day, month or year offset
47201         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47202         relative-date-handling, since otherwise, the latter would clobber the
47203         sole output (an updated Start value) of the tz-handling block.
47204         * tests/test-getdate.c: Tests for the fix
47205
47206 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47207
47208         Recognize 'foo_LIBRARIES += libgnu.a'.
47209         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47210         makefile snippet has already specified an installation location,
47211         also using '+='.
47212
47213 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47214
47215         getdate.y: factor out common actions
47216         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47217         Use them in place of open-coded actions.
47218
47219 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47220
47221         Add self-test for getdate module.
47222         * modules/getdate-tests: New file.
47223         * tests/test-getdate.c: New file.
47224
47225 2008-06-29  Bruno Haible  <bruno@clisp.org>
47226
47227         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47228         .gitignore.
47229         Reported by Sylvain Beucler <beuc@beuc.net>.
47230
47231 2008-06-29  Bruno Haible  <bruno@clisp.org>
47232
47233         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47234         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47235
47236 2008-06-29  Bruno Haible  <bruno@clisp.org>
47237
47238         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47239         EXTRA_DIST.
47240         Reported by Sylvain Beucler <beuc@beuc.net>.
47241
47242 2008-06-26  Jim Meyering  <meyering@redhat.com>
47243
47244         make several modules depend on the "open" module
47245         This provides slightly increased consistency when opening-for-write
47246         the name of a non-directory spelled with a trailing slash.
47247         * modules/chdir-safer: Likewise.
47248         * modules/chown: Likewise.
47249         * modules/clean-temp: Likewise.
47250         * modules/copy-file: Likewise.
47251         * modules/fchdir: Likewise.
47252         * modules/fcntl-safer: Likewise.
47253         * modules/pipe: Likewise.
47254         * modules/utime: Likewise.
47255         Prompted by Eric Blake and Bruno Haible.
47256
47257 2008-06-24  Andreas Schwab  <schwab@suse.de>
47258
47259         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47260         literals can be used as initializers for global variables.
47261
47262 2008-06-23  Eric Blake  <ebb9@byu.net>
47263
47264         Make gnulib-cache.m4 easier to diff.
47265         * gnulib-tool (func_import): Allow newlines when reading cached
47266         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47267
47268 2008-06-23  Bruno Haible  <bruno@clisp.org>
47269
47270         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47271         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47272         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47273         m4/signalblocking.m4.
47274         (gl_PREREQ_SIGACTION): Don't invoke it.
47275         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47276         gl_PREREQ_SIG_HANDLER_H.
47277         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47278         Don't check for sigaction here.
47279
47280 2008-06-23  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47283         (install_handlers): Don't set the SA_RESETHAND flag.
47284
47285 2008-06-23  Bruno Haible  <bruno@clisp.org>
47286
47287         * m4/sigaction.m4: Comment fixes.
47288         * lib/signal.in.h: Likewise.
47289
47290 2008-06-23  Eric Blake  <ebb9@byu.net>
47291
47292         Fix typo.
47293         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47294
47295         Avoid SA_ namespace.
47296         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47297         Reported by Ralf Wildenhues.
47298
47299         Avoid test failure due to SA_RESTORER.
47300         * tests/test-sigaction.c (SA_MASK): New macro.
47301         (main): Avoid failing due to extension flags being set.
47302         Reported by Jim Meyering.
47303
47304         Revert use of sig-handler.h in sigprocmask.c.
47305         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47306         it requires the existence of struct sigaction.
47307         * lib/sigprocmask.c (handler_t): Restore typedef.
47308         (rpl_signal, old_handlers): Use local type.
47309
47310 2008-06-22  Bruno Haible  <bruno@clisp.org>
47311
47312         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47313         conditionally.
47314         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47315
47316 2008-06-22  Bruno Haible  <bruno@clisp.org>
47317
47318         * doc/posix-functions/siginterrupt.texi: Move note.
47319
47320         * lib/signal.in.h (SA_RESTART): New macro.
47321         * lib/sigaction.c: Update comment.
47322
47323         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47324
47325         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47326         (gl_PREREQ_SIGPROCMASK): Invoke it.
47327         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47328
47329         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47330
47331         * lib/sigprocmask.c: Update a comment.
47332
47333 2008-06-21  Eric Blake  <ebb9@byu.net>
47334
47335         Use sigaction module rather than signal().
47336         * modules/c-stack (Depends-on): Add sigaction.
47337         * modules/fatal-signal (Depends-on): Likewise.
47338         * modules/nanosleep (Depends-on): Likewise.
47339         * modules/sigprocmask (Files): Add sig-handler.h.
47340         * modules/sigaction (Files): Likewise.
47341         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47342         Eggert.
47343         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47344         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47345         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47346         (init_fatal_signals): Likewise.
47347         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47348         (siginterrupt): Delete fallback.
47349         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47350         instead.
47351         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47352         siginterrupt.
47353
47354         New module sigaction, for mingw.
47355         * modules/sigaction: New module...
47356         * modules/sigaction-tests: ...and its test.
47357         * m4/sigaction.m4: New file.
47358         * lib/sigaction.c: Likewise.
47359         * tests/test-sigaction.c: Likewise.
47360         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47361         * modules/signal (Makefile.am): Likewise.
47362         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47363         needed.
47364         * doc/posix-headers/signal.texi (signal.h): Mention provided
47365         types.
47366         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47367         that sigaction is preferable.
47368         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47369         module.
47370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47371         sigaction.
47372
47373         Improve robustness of sigprocmask by overriding signal.
47374         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47375         is in use.
47376         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47377         (SIGKILL, SIGSTOP): Provide fallbacks.
47378         (rpl_signal): Implement.
47379         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47380         signal can be called inside handlers.
47381
47382         Fix nanosleep module on mingw.
47383         * modules/nanosleep (Depends-on): Add sys_select.
47384         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47385
47386         Fix licensing of sigprocmask.
47387         * modules/raise (License): Relicense as LGPL.
47388
47389 2008-06-21  Bruno Haible  <bruno@clisp.org>
47390
47391         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47392         result if it contains question marks.
47393         Reported by Michael Geng <linux@michaelgeng.de>.
47394
47395 2008-06-19  Bruno Haible  <bruno@clisp.org>
47396
47397         Fix CVS-ism.
47398         * doc/gnulib.texi: Include updated-stamp.texi.
47399         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47400         (updated-stamp.texi): New rule.
47401         (gnulib.info): Depend on it.
47402         * doc/.gitignore: Add updated-stamp.texi.
47403         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47404
47405 2008-06-19  Bruno Haible  <bruno@clisp.org>
47406
47407         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47408         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47409
47410 2008-06-19  Eric Blake  <ebb9@byu.net>
47411
47412         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47413         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47414         Reported by Stepan Kasal.
47415
47416 2008-06-18  Bruno Haible  <bruno@clisp.org>
47417
47418         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47419         Reported by Eric Blake.
47420
47421 2008-06-18  Eric Blake  <ebb9@byu.net>
47422
47423         Work around cygwin 1.5.25 strsignal bug.
47424         * tests/test-strsignal.c: Allow for const char *.
47425         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47426
47427 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47428
47429         * users.txt: Update URL to article and add author/date
47430         information.
47431
47432 2008-06-17  Bruno Haible  <bruno@clisp.org>
47433
47434         New macro gl_DISABLE_THREADS.
47435         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47436         if the user did not pass --enable-threads or --disable-threads option.
47437         (gl_DISABLE_THREADS): New macro.
47438         Reported by Eric Blake <ebb9@byu.net>.
47439
47440 2008-06-17  Bruno Haible  <bruno@clisp.org>
47441
47442         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47443         when the macro ignores it.
47444         Based on a patch by Eric Blake <ebb9@byu.net>.
47445
47446 2008-06-17  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/tls (License): Change to LGPLv2+.
47449         Reported by Eric Blake.
47450
47451 2008-06-17  Eric Blake  <ebb9@byu.net>
47452
47453         Simplify c-stack prerequisites.
47454         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47456         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47457         check.
47458         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47459         <sys/resource.h>.
47460
47461         Move c-stack test into testsuite.
47462         * modules/c-stack-tests: New file.
47463         * lib/c-stack.c [DEBUG]: Move test program...
47464         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47465         fail test if sigaltstack is lacking.
47466         * tests/test-c-stack.sh: New driver file.
47467
47468 2008-06-16  Eric Blake  <ebb9@byu.net>
47469
47470         Use raise module consistently.
47471         * modules/fatal-signal (Depends-on): Add raise.
47472         * modules/sigprocmask (Depends-on): Likewise.
47473         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47474         * lib/sigprocmask.c (sigprocmask): Likewise.
47475         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47476         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47477
47478         Fix compliance bug in sigpending.
47479         * lib/sigprocmask.c (sigpending): Return pending array via
47480         parameter, not return value.
47481
47482 2008-06-14  Eric Blake  <ebb9@byu.net>
47483
47484         Improve obstack-printf test code.
47485         * tests/test-obstack-printf.c (test_function): Fix comment, and
47486         simplify usage of obstack_* in macros.  Add a test for coverage.
47487         Reported by Bruno Haible.
47488
47489 2008-06-14  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47492         array size as a constant, not as a const variable.
47493         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47494         AC_USE_SYSTEM_EXTENSIONS.
47495         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47496         Test whether the obstack_printf function actually exists.
47497         * modules/obstack-printf (Depends-on): Add extensions.
47498         (Include): Remove obstack.h.
47499         * modules/obstack-printf-posix (Depends-on): Add extensions.
47500         (Include): Remove obstack.h.
47501
47502 2008-06-13  Eric Blake  <ebb9@byu.net>
47503
47504         Add obstack-printf and obstack-printf-posix modules.
47505         * modules/obstack-printf: New file.
47506         * modules/obstack-printf-posix: Likewise.
47507         * MODULES.html.sh (Misc): Mention them.
47508         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47509         Likewise.
47510         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47511         Likewise.
47512         * modules/stdio (Makefile.am): Accomodate new modules.
47513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47514         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47515         Declare.
47516         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47517         functions.
47518         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47519         (gl_REPLACE_OBSTACK_PRINTF): New macros
47520         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47521         * tests/test-obstack-printf.c: New file.
47522         * modules/obstack-printf-tests: Likewise.
47523         * modules/obstack-printf-posix-tests: Likewise.
47524
47525 2008-06-11  Bruno Haible  <bruno@clisp.org>
47526
47527         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47528         * lib/open.c: Include errno.h.
47529         (open): Fail when attempting to write to a file that has a trailing
47530         slash.
47531         * tests/test-open.c (main): Test against trailing slash bug.
47532         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47533
47534 2008-06-10  Bruno Haible  <bruno@clisp.org>
47535
47536         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47537         for $? to work inside the trap command, with various /bin/sh-s.
47538         * tests/test-vc-list-files-cvs.sh: Likewise.
47539
47540 2008-06-10  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/acl-internal.h: Don't include gettext.h here.
47543         * lib/set-mode-acl.c: Include gettext.h here.
47544         * lib/copy-acl.c: Likewise.
47545
47546 2008-06-10  Bruno Haible  <bruno@clisp.org>
47547
47548         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47549         * lib/wait-process.c (wait_subprocess): Likewise.
47550         * lib/execute.h (execute): Add termsigp argument.
47551         * lib/execute.c (execute): Likewise.
47552         * lib/csharpcomp.c (compile_csharp_using_pnet,
47553         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47554         * lib/csharpexec.c (execute_csharp_using_pnet,
47555         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47556         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47557         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47558         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47559         is_jikes_present): Update.
47560         * lib/javaexec.c (execute_java_class): Update.
47561         * lib/javaversion.c (execute_and_read_line): Update.
47562         * NEWS: Document the changes.
47563         Reported by Eric Blake.
47564
47565 2008-06-10  Eric Blake  <ebb9@byu.net>
47566
47567         Add missing include.
47568         * tests/test-strstr.c (includes): Add <signal.h>.
47569         * tests/test-strcasestr.c (includes): Likewise.
47570         * tests/test-memmem.c (includes): Likewise.
47571
47572 2008-06-10  Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/wait-process.c (wait_subprocess): Add an assertion.
47575
47576 2008-06-10  Bruno Haible  <bruno@clisp.org>
47577
47578         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47579
47580 2008-06-10  Bruno Haible  <bruno@clisp.org>
47581
47582         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47583         using alarm().
47584         * tests/test-strcasestr.c (main): Likewise.
47585         * tests/test-strstr.c (main): Likewise.
47586
47587 2008-06-09  Bruno Haible  <bruno@clisp.org>
47588
47589         Work around the Solaris 10 ACE ACLs ABI change.
47590         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47591         declare if ACL_NO_TRIVIAL is present.
47592         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47593         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47594         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47595         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47596         define if ACL_NO_TRIVIAL is present.
47597         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47598         and use the current ABI.
47599         (file_has_acl): Use same #if condition as elsewhere.
47600         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47601         in use, and use the current ABI.
47602         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47603         Reported by Jim Meyering.
47604
47605 2008-06-09  Eric Blake  <ebb9@byu.net>
47606
47607         Work around environments that (stupidly) ignore SIGALRM.
47608         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47609         before using alarm().
47610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47611         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47612         Reported by Ian Beckwith <ianb@erislabs.net>.
47613
47614         Produce autobuild blurb earlier in log.
47615         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47616
47617 2008-06-09  Jim Meyering  <meyering@redhat.com>
47618         and OndÅ™ej Vašík  <ovasik@redhat.com>
47619
47620         utimens.c: correct kernel bug work-around
47621         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47622         failure, not success, and the kernel bug we're trying to work
47623         around affects not just the utimensat call, but also the fallback
47624         futimens call.
47625         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47626         not success.
47627         [HAVE_FUTIMENS]: Use the same work-around, here.
47628
47629 2008-06-09  Jim Meyering  <meyering@redhat.com>
47630
47631         add more guards around definition of ACE_-related code
47632         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47633         ALLOW and ACE_OWNER are also defined.
47634
47635 2008-06-08  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/acl-internal.h: Add me as co-author.
47638         * lib/file-has-acl.c: Likewise.
47639         * lib/set-mode-acl.c: Likewise.
47640         * lib/copy-acl.c: Likewise.
47641
47642 2008-06-08  Bruno Haible  <bruno@clisp.org>
47643
47644         Add support for AIX ACLs.
47645         * lib/acl-internal.h (acl_nontrivial): New declaration.
47646         * lib/file-has-acl.c (acl_nontrivial): New function.
47647         (file_has_acl): Add implementation using AIX 4 ACL API.
47648         * lib/set-mode-acl.c (qset_acl): Likewise.
47649         * lib/copy-acl.c (qcopy_acl): Likewise.
47650
47651 2008-06-08  Bruno Haible  <bruno@clisp.org>
47652
47653         Add support for HP-UX ACLs.
47654         * lib/acl-internal.h (acl_nontrivial): New declaration.
47655         * lib/file-has-acl.c (acl_nontrivial): New function.
47656         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47657         * lib/set-mode-acl.c (qset_acl): Likewise.
47658         * lib/copy-acl.c (qcopy_acl): Likewise.
47659
47660 2008-06-08  Bruno Haible  <bruno@clisp.org>
47661
47662         Add support for Cygwin ACLs.
47663         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47664         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47665         the chmod_or_fchmod call.
47666         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47667
47668 2008-06-08  Bruno Haible  <bruno@clisp.org>
47669
47670         Fix bug with setuid modes in Solaris 10+ code.
47671         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47672         succeeded, when the mode contains some special bits.
47673
47674 2008-06-08  Bruno Haible  <bruno@clisp.org>
47675
47676         Add support for Solaris 7..10 ACLs.
47677         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47678         declarations.
47679         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47680         functions.
47681         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47682         * lib/set-mode-acl.c (qset_acl): Likewise.
47683         * lib/copy-acl.c (qcopy_acl): Likewise.
47684
47685 2008-06-08  Bruno Haible  <bruno@clisp.org>
47686
47687         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47688         declaration.
47689         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47690         (acl_access_nontrivial): Remove MacOS X case.
47691         (file_has_acl): Use acl_extended_nontrivial.
47692         * lib/copy-acl.c (qcopy_acl): Likewise.
47693
47694 2008-06-08  Bruno Haible  <bruno@clisp.org>
47695
47696         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47697
47698 2008-06-08  Jim Meyering  <meyering@redhat.com>
47699
47700         * modules/acl (Maintainer): Add Bruno Haible.
47701
47702 2008-06-07  Bruno Haible  <bruno@clisp.org>
47703
47704         Improve support for Tru64 ACLs.
47705         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47706         ACL on OSF/1.
47707
47708 2008-06-07  Bruno Haible  <bruno@clisp.org>
47709
47710         Add support for MacOS X ACLs.
47711         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47712         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47713         * lib/set-mode-acl.c (qset_acl): Likewise.
47714         * lib/copy-acl.c (qcopy_acl): Likewise.
47715
47716 2008-06-07  Bruno Haible  <bruno@clisp.org>
47717
47718         Fix memory leak introduced on 2008-05-22.
47719         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47720         use.
47721
47722 2008-06-07  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47725         to construct an empty ACL.
47726
47727 2008-06-07  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47730         precisely.
47731         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47732
47733 2008-06-07  Bruno Haible  <bruno@clisp.org>
47734
47735         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47736         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47737
47738 2008-06-07  Bruno Haible  <bruno@clisp.org>
47739
47740         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47741         regardless of POSIX.
47742         * doc/posix-functions/_longjmp.texi: Likewise.
47743         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47744         SystemV platform in this case.
47745
47746 2008-06-06  Eric Blake  <ebb9@byu.net>
47747
47748         Document abort() bugs.
47749         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47750
47751         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47752         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47753         sigsetjmp.
47754         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47755         siglongjmp, but only as a macro.
47756         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47757         is obsolete.
47758         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47759
47760         Tweak documentation to cover cygwin argz bugs.
47761         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47762         argz bug fix; no code change needed since no cygwin releases
47763         occurred between the last fix and the bug being tested.
47764         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47765         module and recently fixed cygwin bugs.
47766         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47767         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47768         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47769         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47770         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47771         Likewise.
47772         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47773         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47774         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47775         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47776         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47777         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47778         Likewise.
47779
47780         Avoid gcc warning on cygwin.
47781         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47782         !ACL_NO_TRIVIAL]: Avoid unused variable.
47783
47784 2008-06-05  Eric Blake  <ebb9@byu.net>
47785
47786         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47787         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47788         git-version-gen fails to come up with a version.
47789         Reported by Simon Josefsson.
47790
47791 2008-06-05  Jim Meyering  <meyering@redhat.com>
47792             Paul Eggert  <eggert@cs.ucla.edu>
47793
47794         utimens.c: work around a probable Linux kernel bug
47795         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47796         appears to be a kernel bug that causes utimensat to return 280
47797         instead of 0, indicating success.
47798
47799 2008-06-04  Bruno Haible  <bruno@clisp.org>
47800
47801         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47802         2008-06-01 commit.
47803
47804 2008-06-04  Bruno Haible  <bruno@clisp.org>
47805
47806         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47807         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47808         (file_has_acl): Use it. Save errno afterwards.
47809         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47810
47811 2008-06-03  Bruno Haible  <bruno@clisp.org>
47812
47813         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47814         draft code. Simplify #ifs.
47815         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47816         Put Solaris code after POSIX-draft code. Fix comments regarding
47817         Solaris 10, HP-UX. Mention Cygwin.
47818         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47819
47820 2008-06-03  Eric Blake  <ebb9@byu.net>
47821
47822         Provide fallback for older kernels.
47823         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47824         Provide runtime fallback if kernel lacks support.
47825         Reported by Mike Frysinger.
47826
47827 2008-06-02  Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47830         it exists.
47831
47832 2008-06-02  Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47835         * lib/copy-acl.c (qcopy_acl): Update comment.
47836
47837 2008-06-02  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47840         like ACL APIs.
47841
47842 2008-06-02  Bruno Haible  <bruno@clisp.org>
47843
47844         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47845         * tests/test-set-mode-acl.sh: Likewise.
47846         * tests/test-copy-acl.sh: Likewise.
47847         * tests/test-copy-file.sh: Likewise.
47848
47849 2008-06-02  Bruno Haible  <bruno@clisp.org>
47850
47851         * tests/test-file-has-acl.sh: Remove unused code.
47852
47853 2008-06-01  Bruno Haible  <bruno@clisp.org>
47854
47855         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47856         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47857         messages.
47858         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47859
47860 2008-06-01  Bruno Haible  <bruno@clisp.org>
47861
47862         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47863         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47864         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47865         APIs.
47866         * modules/acl-tests (configure.ac): Remove tests now contained in
47867         m4/acl.m4.
47868
47869 2008-06-02  Jim Meyering  <meyering@redhat.com>
47870
47871         announce-gen: use a better key-server host name
47872         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47873         it may be more consistently reliable.  Suggested by Werner Koch
47874         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47875
47876 2008-06-01  Bruno Haible  <bruno@clisp.org>
47877
47878         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47879         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47880
47881 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47882
47883         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47884
47885 2008-06-01  Bruno Haible  <bruno@clisp.org>
47886
47887         New ACL tests.
47888         * tests/test-file-has-acl.sh: New file.
47889         * tests/test-file-has-acl.c: New file.
47890         * tests/test-set-mode-acl.sh: New file.
47891         * tests/test-set-mode-acl.c: New file.
47892         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47893         * tests/test-copy-acl.c: New file.
47894         * modules/acl-tests: New file, based on modules/copy-file-tests.
47895         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47896         (Depends-on): Add acl-tests.
47897         (configure.ac): Remove checks.
47898         (Makefile.am): Don't create test-sameacls program here any more.
47899
47900 2008-06-01  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47903         * tests/test-sameacls.c: Include progname.h.
47904         (main): Invoke set_program_name. Portability fixes for MacOS X,
47905         Solaris, HP-UX.
47906
47907 2008-06-01  Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47910         function.
47911         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47912
47913 2008-06-01  Bruno Haible  <bruno@clisp.org>
47914
47915         * modules/rpmatch (Depends-on): Add strdup.
47916
47917 2008-06-01  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/pipe.c: Include unistd-safer.h.
47920         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47921         * modules/pipe (Depends-on): Add unistd-safer.
47922
47923 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47924
47925         * modules/autobuild (configure.ac): Call AB_INIT.
47926
47927 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47928
47929         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47930         Suggested by Bruno Haible <bruno@clisp.org>.
47931
47932 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47933
47934         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47935         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47936         <bruno@clisp.org>.
47937
47938 2008-05-29  Eric Blake  <ebb9@byu.net>
47939
47940         Prefer new POSIX 200x interfaces over futimesat.
47941         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47942         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47943         when available.
47944         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47945
47946 2008-05-28  Bruno Haible  <bruno@clisp.org>
47947
47948         * modules/stpcpy (License): Change to LGPLv2+.
47949         Requested by David Lutterkort <dlutter@redhat.com>.
47950
47951 2008-05-27  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47954         current mingw.
47955         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47956
47957 2008-05-27  Bruno Haible  <bruno@clisp.org>
47958
47959         * modules/iconv_open (Link): New section, from module 'iconv'.
47960         * modules/striconv (Link): Likewise.
47961         * modules/striconveh (Link): Likewise.
47962         * modules/xstriconv (Link): Likewise.
47963         * modules/unicodeio (Link): Likewise.
47964         * modules/propername (Link): Likewise.
47965         Reported by Jim Meyering.
47966
47967 2008-05-26  Jim Meyering  <meyering@redhat.com>
47968
47969         sha256: do not artificially restrict buffer length to be < 2^32
47970         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47971         uint32_t to size_t.
47972         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47973         to match.
47974
47975         avoid unaligned access errors, e.g., on sparc
47976         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47977         direct access through a possibly-unaligned uint64* pointer.
47978         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47979         direct access through a possibly-unaligned uint32* pointer.
47980         Prompted by this patch from Tom "spot" Callaway:
47981         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47982
47983         sha512.c: fix typo in comment
47984         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47985
47986 2008-05-25  Bruno Haible  <bruno@clisp.org>
47987
47988         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47989         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47990         (Makefile.am): Update lib_SOURCES.
47991
47992 2008-05-25  Bruno Haible  <bruno@clisp.org>
47993
47994         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47995
47996 2008-05-25  Jim Meyering  <meyering@redhat.com>
47997
47998         useless-if-before-free: freed expr may have white-space differences
47999         * build-aux/useless-if-before-free: Recognize cases in which the
48000         freed expression differs from the tested one in embedded white
48001         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48002         $1 was used, so we can't make any regexp shy.  Improved tests now
48003         detect this.
48004
48005         useless-if-before-free: accept white space in the expression.
48006         * build-aux/useless-if-before-free: For now, any white space
48007         in the expression must be identical in the free argument.
48008
48009         useless-if-before-free: efficiency tweak
48010         * build-aux/useless-if-before-free: Make the expression-matching
48011         regexp "shy".
48012         Make the *outer* regexp shy, not the expr-matching one.
48013
48014         update code-in-comment to accept cast of free arg
48015         * build-aux/useless-if-before-free: Update regexp.
48016
48017 2008-05-25  Bruno Haible  <bruno@clisp.org>
48018
48019         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48020         * modules/copy-file-tests (Files, Makefile.am): Update.
48021         * tests/test-copy-file.c (func_test_copy): Update.
48022
48023 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48024
48025         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48026
48027 2008-05-23  Bruno Haible  <bruno@clisp.org>
48028
48029         Improve support for ACLs on OSF/1.
48030         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48031         Remove fallback for unknown flavors of ACLs.
48032
48033 2008-05-22  Bruno Haible  <bruno@clisp.org>
48034
48035         Add support for ACLs on OSF/1.
48036         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48037         replacements.
48038         (acl_free_text): New macro fallback.
48039         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48040         acl_free.
48041         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48042         acl_free_text function. Require AC_C_INLINE.
48043
48044 2008-05-22  Bruno Haible  <bruno@clisp.org>
48045
48046         Make copy_acl work on MacOS X 10.5.
48047         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48048         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48049         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48050         If MODE_INSIDE_ACL, don't assume that every system has the same text
48051         representation for ACLs as FreeBSD.
48052         * lib/copy-acl.c (copy_acl): Add support for platforms with
48053         !MODE_INSIDE_ACL.
48054         * lib/file-has-acl.c (file_has_acl): Likewise.
48055         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48056         FreeBSD, MacOS X, or IRIX, respectively.
48057
48058 2008-05-22  Bruno Haible  <bruno@clisp.org>
48059
48060         * lib/acl.h: Don't include <sys/acl.h>.
48061         (GETACLCNT): Move fallback to lib/acl-internal.h.
48062         * lib/acl-internal.h: Include <sys/acl.h> here.
48063         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48064
48065 2008-05-22  Bruno Haible  <bruno@clisp.org>
48066
48067         Split off copy_acl function to separate file.
48068         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48069         * lib/acl.c (copy_acl): Moved function to separate file.
48070         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48071         * modules/acl (Files): Add lib/copy-acl.c.
48072         (Makefiles.am): Augment lib_SOURCES.
48073
48074 2008-05-22  Bruno Haible  <bruno@clisp.org>
48075
48076         * modules/copy-file-tests: New file.
48077         * tests/test-copy-file.sh: New file.
48078         * tests/test-copy-file.c: New file.
48079         * tests/test-copy-file-sameacls.c: New file.
48080
48081 2008-05-22  Eric Blake  <ebb9@byu.net>
48082
48083         Avoid gcc warning.
48084         * tests/test-memcmp.c (main): Pass NULL indirectly.
48085
48086 2008-05-21  Bruno Haible  <bruno@clisp.org>
48087
48088         Add reference doc about ACLs.
48089         * doc/acl-resources.txt: New file.
48090         * doc/acl-cygwin.txt: New file.
48091
48092 2008-05-21  Bruno Haible  <bruno@clisp.org>
48093
48094         Avoid one more warning from gcc.
48095         * lib/vasnprintf.c (IF_LINT): Update comments.
48096         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48097
48098 2008-05-21  Jim Meyering  <meyering@redhat.com>
48099
48100         avoid a warning from gcc
48101         * lib/vasnprintf.c (IF_LINT): Define.
48102         (scale10_round_decimal_long_double):
48103         Use it to avoid a "may be used uninitialized" warning.
48104         (scale10_round_decimal_double): Likewise.
48105
48106 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48107
48108         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48109         declared.
48110
48111 2008-05-20  Bruno Haible  <bruno@clisp.org>
48112
48113         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48114         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48115
48116 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48117
48118         * modules/memcmp-tests: New file.
48119         * tests/test-memcmp.c: New file.
48120
48121 2008-05-19  Bruno Haible  <bruno@clisp.org>
48122
48123         * modules/propername (Notice, configure.ac): Put quoted "..." into
48124         --keyword option.
48125         * lib/propername.h: Update comments accordingly.
48126         Reported by Eric Blake.
48127
48128 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48129
48130         * modules/getpass-gnu (Depends-on): Add fseeko.
48131
48132 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48133
48134         * modules/base64-tests: New file.
48135
48136 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48137
48138         * lib/base64.c (base64_decode_ctx): If a decode context structure
48139         was passed in use it to ignore newlines.  If a context structure
48140         was _not_ passed in, continue to treat newlines as garbage (this
48141         is the historical behavior).  Formerly base64_decode.
48142         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48143         takes a decode context structure.
48144         * lib/base64.h (base64_decode): Macro for four-argument calls.
48145         (base64_decode_alloc): Likewise.
48146         * lib/base64.c (base64_decode_ctx): If a decode context structure
48147         was passed in use it to ignore newlines.  If a context structure
48148         was _not_ passed in, continue to treat newlines as garbage (this
48149         is the historical behavior).  Formerly base64_decode.
48150         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48151         takes a decode context structure.
48152         * lib/base64.h (base64_decode): Macro for four-argument calls.
48153         (base64_decode_alloc): Likewise.
48154
48155 2008-05-19  Jim Meyering  <meyering@redhat.com>
48156
48157         avoid a warning from gcc
48158         * lib/trim.c (IF_LINT): Define.
48159         (trim2): Use it to avoid a "may be used uninitialized" warning.
48160
48161         Fix doc typo.
48162         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48163
48164 2008-05-19  Bruno Haible  <bruno@clisp.org>
48165
48166         * doc/glibc-functions/getpass.texi: Document limits of other
48167         implementations.
48168
48169 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48170             Bruno Haible <bruno@clisp.org>
48171
48172         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48173
48174 2008-05-18  Bruno Haible  <bruno@clisp.org>
48175
48176         * modules/propername: New file, from GNU gettext.
48177         * lib/propername.h: New file, from GNU gettext.
48178         * lib/propername.c: New file, from GNU gettext.
48179         * MODULES.html.sh (Internationalization functions): Add propername.
48180
48181 2008-05-16  Jim Meyering  <meyering@redhat.com>
48182             Bruno Haible  <bruno@clisp.org>
48183
48184         Avoid some warnings from "gcc -Wshadow".
48185         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48186
48187 2008-05-15  Eric Blake  <ebb9@byu.net>
48188
48189         Extend previous patch to cygwin 1.7.0.
48190         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48191         fast implementation in cygwin >= 1.7.0.
48192         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48194
48195 2008-05-15  Bruno Haible  <bruno@clisp.org>
48196
48197         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48198         implementation in glibc >= 2.9.
48199         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48201
48202 2008-05-15  Bruno Haible  <bruno@clisp.org>
48203
48204         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48205         (Unicode string functions): Add unilbrk/*.
48206         Reported by Karl Berry.
48207
48208 2008-05-15  Eric Blake  <ebb9@byu.net>
48209
48210         Fix violation of <stdbool.h> replacement in regex.
48211         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48212         * lib/regexec.c (re_search_internal): Likewise.
48213         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48214
48215 2008-05-15  Jim Meyering  <meyering@redhat.com>
48216
48217         avoid distracting test output when git or cvs is not found
48218         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48219         * tests/test-vc-list-files-git.sh: Likewise.
48220
48221 2008-05-15  Eric Blake  <ebb9@byu.net>
48222
48223         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48224         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48225         glibc version.
48226         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48227         * doc/posix-functions/strstr.texi (strstr): Likewise.
48228         * lib/str-two-way.h (MAX): Sychronize with glibc.
48229
48230 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48231
48232         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48233         opr.ctx_type.
48234         (calc_first): Initialize constraint field.
48235         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48236         Fix grammar.
48237         (duplicate_node): Merge constraint field for all node types.
48238         (calc_eclosure_iter): Look at constraint field for all node types.
48239         * lib/regex_internal.c (create_cd_newstate): Don't look at
48240         opr.ctx_type.
48241
48242 2008-05-14  Bruno Haible  <bruno@clisp.org>
48243
48244         Help GCC to do better code generation.
48245         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48246         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48247         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48248         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48249         Declare with attribute 'malloc' if supported.
48250
48251 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48252
48253         use "echo STR|wc -c" rather than unportable "expr length STR"
48254         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48255         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48256
48257 2008-05-14  Jim Meyering  <meyering@redhat.com>
48258
48259         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48260         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48261         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48262         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48263         via Collin Lasse.
48264
48265 2008-05-14  Eric Blake  <ebb9@byu.net>
48266
48267         Avoid quadratic growth in gl_LIBSOURCES.
48268         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48269         Suggested by Bruno Haible.
48270
48271         Test xmemdup0.
48272         * modules/xmemdup0-tests: New file.
48273         * tests/test-xmemdup0.c: Likewise.
48274
48275 2008-05-13  Eric Blake  <ebb9@byu.net>
48276
48277         Split xmemdup0 into its own module.
48278         * modules/xmemdup0: New file.
48279         * lib/xmemdup0.h: Likewise.
48280         * lib/xmemdup0.c: Likewise.
48281         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48282         * lib/xalloc.h (xmemdup0): Remove.
48283         * lib/xmalloc.c (xmemdup0): Likewise.
48284
48285 2008-05-13  Eric Blake  <ebb9@byu.net>
48286             Bruno Haible  <bruno@clisp.org>
48287
48288         Reduce number of forks required during autoconf.
48289         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48290         and gl_LIBSOURCES_DIR.
48291         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48292         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48293         m4_syscmd per file.
48294         <m4_foreach_w>: Move...
48295         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48296
48297 2008-05-13  Eric Blake  <ebb9@byu.net>
48298
48299         * gnulib-tool: Fix various comment typos.
48300
48301 2008-05-12  Bruno Haible  <bruno@clisp.org>
48302
48303         Tailor the linebreaking algorithm.
48304         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48305
48306 2008-05-12  Bruno Haible  <bruno@clisp.org>
48307
48308         Update to Unicode 5.0.0.
48309         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48310         LBP_JV, LBP_JT. Redistribute values.
48311         (unilbrk_table): Change size.
48312         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48313         Unicode TR#14 rev. 22.
48314         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48315         LBP_JV, LBP_JT. Redistribute values.
48316         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48317         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48318         Update.
48319         * lib/unilbrk/lbrkprop1.h: Regenerated.
48320         * lib/unilbrk/lbrkprop2.h: Regenerated.
48321         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48322         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48323         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48324         Likewise.
48325         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48326         Likewise.
48327         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48328         result.
48329         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48330         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48331         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48332         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48333         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48334         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48335
48336 2008-05-11  Bruno Haible  <bruno@clisp.org>
48337
48338         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48339
48340 2008-05-11  Bruno Haible  <bruno@clisp.org>
48341
48342         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48343         * modules/unilbrk/gen-lbrk: New file.
48344
48345 2008-05-11  Bruno Haible  <bruno@clisp.org>
48346
48347         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48348         * m4/sha512.m4 (gl_SHA512): Likewise.
48349
48350 2008-05-11  Jim Meyering  <meyering@redhat.com>
48351
48352         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48353         * modules/crypto/sha256: New file.
48354         * modules/crypto/sha512: Likewise.
48355         * lib/sha256.c: Likewise.
48356         * lib/sha256.h: Likewise.
48357         * lib/sha512.c: Likewise.
48358         * lib/sha512.h: Likewise.
48359         * lib/u64.h: Likewise.
48360         * m4/sha256.m4: Likewise.
48361         * m4/sha512.m4: Likewise.
48362         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48363
48364 2008-05-10  Bruno Haible  <bruno@clisp.org>
48365
48366         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48367         (Input/Output <stdio.h>): Add xprintf.
48368         (Signal handling <signal.h>): Add strsignal.
48369         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48370         (Core language properties): Add func.
48371         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48372         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48373         strings.
48374         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48375         (Input/output): New section.
48376         (File system functions): Add openat-die, stat-macros.
48377         (Networking functions): Add sockets.
48378         (Unicode string functions): Add unictype/*.
48379         (Support for building libraries and executables): Add gperf.
48380         (Support for building documentation): Add agpl-3.0.
48381         (Misc): Add nocrash.
48382
48383 2008-05-10  Bruno Haible  <bruno@clisp.org>
48384
48385         * modules/unictype/gen-ctype: New file.
48386
48387 2008-05-10  Jim Meyering  <meyering@redhat.com>
48388
48389         Make chdir-safer.c more efficient on a system with no symlinks.
48390         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48391         also if ELOOP is zero.  Suggested by Bruno Haible.
48392
48393         Make chdir-safer.c slightly safer.
48394         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48395         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48396
48397         Avoid compile failure on systems without ELOOP (like mingw).
48398         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48399         Reported by Bruno Haible.
48400
48401 2008-05-10  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48404         (is_utf8_encoding): Use a case-insensitive comparison.
48405         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48406         streq.
48407
48408 2008-05-10  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48411         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48412         * lib/unilbrk/ulc-common.h (iconv_string_length,
48413         iconv_string_keeping_offsets): Remove declarations.
48414         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48415         Don't include <iconv.h>, streq.h, xsize.h.
48416         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48417         conversion.
48418         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48419         <iconv.h>, streq.h, xsize.h.
48420         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48421         conversion.
48422         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48423         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48424         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48425         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48426
48427 2008-05-10  Bruno Haible  <bruno@clisp.org>
48428
48429         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48430         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48431
48432         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48433         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48434
48435         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48436         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48437
48438         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48439         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48440
48441         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48442         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48443
48444         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48445         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48446
48447         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48448         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48449
48450         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48451         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48452
48453 2008-05-10  Bruno Haible  <bruno@clisp.org>
48454
48455         Split up 'linebreak' module.
48456         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48457         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48458         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48459         modifications.
48460         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48461         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48462         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48463         lib/linebreak.c.
48464         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48465         lib/linebreak.c.
48466         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48467         lib/linebreak.c.
48468         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48469         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48470         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48471         lib/linebreak.c.
48472         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48473         lib/linebreak.c.
48474         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48475         lib/linebreak.c.
48476         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48477         lib/linebreak.c.
48478         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48479         lib/linebreak.c.
48480         * modules/unilbrk/base: New file.
48481         * modules/unilbrk/tables: New file.
48482         * modules/unilbrk/u8-possible-linebreaks: New file.
48483         * modules/unilbrk/u16-possible-linebreaks: New file.
48484         * modules/unilbrk/u32-possible-linebreaks: New file.
48485         * modules/unilbrk/ulc-common: New file.
48486         * modules/unilbrk/ulc-possible-linebreaks: New file.
48487         * modules/unilbrk/u8-width-linebreaks: New file.
48488         * modules/unilbrk/u16-width-linebreaks: New file.
48489         * modules/unilbrk/u32-width-linebreaks: New file.
48490         * modules/unilbrk/ulc-width-linebreaks: New file.
48491         * lib/linebreak.h: Remove file.
48492         * lib/linebreak.c: Remove file.
48493         * m4/linebreak.m4: Remove file.
48494         * modules/linebreak: Remove file.
48495         * NEWS: Mention the changes.
48496
48497 2008-05-09  Eric Blake  <ebb9@byu.net>
48498
48499         Add xmemdup0.
48500         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48501         implementation.
48502         * lib/xmalloc.c (xmemdup0): New C implementation.
48503
48504 2008-05-08  Bruno Haible  <bruno@clisp.org>
48505
48506         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48507
48508 2008-05-07  Eric Blake  <ebb9@byu.net>
48509
48510         Support cross-compilation of <wctype.h>.
48511         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48512         AC_CACHE_CHECK.
48513
48514 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48515
48516         * build-aux/vc-list-files: Add support for bzr.
48517
48518 2008-05-03  Jim Meyering  <meyering@redhat.com>
48519
48520         avoid failed assertion with tight malloc
48521         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48522
48523 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48524
48525         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48526         are needed from arpa/inet.h.
48527         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48528         Reported by Bruno Haible.
48529
48530 2008-05-02  Jim Meyering  <meyering@redhat.com>
48531
48532         avoid compilation error on FreeBSD 6
48533         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48534
48535 2008-05-01  Jim Meyering  <meyering@redhat.com>
48536
48537         useless-if-before-free: correct --help's exit status description
48538         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48539         for one or more matches, etc.  Reported by Bruno Haible.
48540
48541         vc-list-files: make the stand-alone gnulib test work
48542         * modules/vc-list-files-tests (configure.ac):
48543         Define and AC_SUBST abs_aux_dir.
48544         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48545         $(abs_top_srcdir) to each script and having each of them
48546         duplicate the work of setting PATH, set PATH here, using
48547         the new variable, abs_aux_dir instead.
48548         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48549         * tests/test-vc-list-files-git.sh: Likewise.
48550         Reported by Bruno Haible.
48551
48552 2008-05-01  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48555         reallocation. Rename 'done' to 'found_delimiter'.
48556
48557 2008-05-01  Jim Meyering  <meyering@redhat.com>
48558
48559         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48560         * build-aux/vc-list-files: Use `...`, not $(...).
48561
48562 2008-04-30  Jim Meyering  <meyering@redhat.com>
48563
48564         add tests for vc-list-files
48565         * modules/vc-list-files-tests: New module.
48566         * tests/test-vc-list-files-cvs.sh: New file.
48567         * tests/test-vc-list-files-git.sh: New file.
48568
48569         avoid a warning from gcc
48570         * lib/getndelim2.c (IF_LINT): Define.
48571         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48572
48573         vc-list-files: work properly with build-aux/cvsu, too
48574         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48575         to all cvs-based clauses.
48576
48577         vc-list-files: work properly in the CVS+awk case, too
48578         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48579
48580         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48581         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48582         take more than one file argument, so .  Add quotes, just in case $dir
48583         ever contains a shell meta-character.  Prompted by Soren Hansen in
48584         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48585
48586 2008-04-29  Eric Blake  <ebb9@byu.net>
48587
48588         Optimize getndelim2 to use block operations when possible.
48589         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48590         freadseek, and memchr2.
48591         * lib/getndelim2.c (getndelim2): Use them for block reads.
48592
48593 2008-04-29  Bruno Haible  <bruno@clisp.org>
48594
48595         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48596         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48597         * modules/inet_ntop (Depends-on): Add extensions.
48598         * modules/inet_pton (Depends-on): Likewise.
48599         Reported by Simon Josefsson.
48600
48601 2008-04-29  Jim Meyering  <meyering@redhat.com>
48602
48603         When the is more than one match in a block, match all of them.
48604         * build-aux/useless-if-before-free: Iterate through each block
48605         until there are no more matches.
48606
48607         Fix broken useless-if-before-free script.
48608         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48609         the expression to match cast of argument to free-like function.
48610
48611 2008-04-29  Eric Blake  <ebb9@byu.net>
48612
48613         Use new header.
48614         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48615
48616 2008-04-29  Jim Meyering  <meyering@redhat.com>
48617
48618         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48619         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48620         by gnulib to exist and to declare e.g., inet_ntop.
48621         Don't include "inet_ntop.h", now removed.
48622
48623         * m4/arpa_inet_h.m4: Remove trailing blanks.
48624
48625 2008-04-29  Eric Blake  <ebb9@byu.net>
48626
48627         Silence valgrind on safe reads beyond potential array bounds.
48628         * lib/rawmemchr.valgrind: New file.
48629         * lib/strchrnul.valgrind: Likewise.
48630         * modules/rawmemchr (Files): Distribute new file.
48631         * modules/strchrnul (Files): Likewise.
48632         Suggested by Bruno Haible.
48633
48634 2008-04-29  Bruno Haible  <bruno@clisp.org>
48635
48636         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48637         (inet_ntop, inet_pton): Change portability warning's wording.
48638         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48639         Invoke gl_CHECK_NEXT_HEADERS.
48640         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48641         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48642         set ARPA_INET_H.
48643         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48644         * modules/arpa_inet (Description): No longer only for systems that
48645         lack it.
48646         (Depends-on): Add include_next.
48647         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48648         HAVE_ARPA_INET_H.
48649
48650 2008-04-29  Jim Meyering  <meyering@redhat.com>
48651
48652         * modules/mkdir (License): Re-license as LGPLv2+.
48653
48654 2008-04-29  Bruno Haible  <bruno@clisp.org>
48655
48656         * modules/rawmemchr (Maintainer): Set to Eric.
48657         * modules/strchrnul (Maintainer): Likewise.
48658
48659 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48660
48661         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48662         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48663
48664         * modules/arpa_inet (arpa/inet.h): Use them.
48665
48666 2008-04-28  Eric Blake  <ebb9@byu.net>
48667
48668         Test getndelim2.
48669         * modules/getndelim2-tests: New file.
48670         * tests/test-getndelim2.c: Likewise.
48671         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48672         stream.
48673         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48674
48675         * MODULES.html.sh: Document new module.
48676
48677 2008-04-20  Bruno Haible  <bruno@clisp.org>
48678
48679         * lib/c-stack.c (die): Use raise.
48680         * modules/c-stack (Depends-on): Add raise.
48681
48682 2008-04-28  Bruno Haible  <bruno@clisp.org>
48683
48684         Expect rpmatch to be declared.
48685         * lib/yesno.c (rpmatch): Remove declaration.
48686
48687         Declare rpmatch.
48688         * lib/stdlib.in.h (rpmatch): New declaration.
48689         * lib/rpmatch.c: Include <stdlib.h> first.
48690         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48691         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48693         HAVE_RPMATCH.
48694         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48695         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48696         (Include): Set to <stdlib.h>.
48697         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48698         HAVE_RPMATCH.
48699         * NEWS: Document the change.
48700
48701 2008-04-28  Bruno Haible  <bruno@clisp.org>
48702
48703         Change rpmatch to use nl_langinfo when appropriate.
48704         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48705         (N_): New macro.
48706         (localized_pattern): New function/macro.
48707         (try): Remove match, nomatch arguments. Copy the pattern into safe
48708         memory before caching it.
48709         (rpmatch): Use localized_pattern. Add translator comments.
48710         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48711         Suggested by Eric Blake.
48712         * modules/rpmatch (Depends-on): Add stdbool.
48713
48714 2008-04-28  Eric Blake  <ebb9@byu.net>
48715
48716         Add rawmemchr module, matching glibc.
48717         * modules/string (Makefile.am): New indicator.
48718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48719         * lib/string.in.h (rawmemchr): Declare when appropriate.
48720         * modules/rawmemchr: New file.
48721         * m4/rawmemchr.m4: Likewise.
48722         * lib/rawmemchr.c: Likewise.
48723         * modules/rawmemchr-tests: Likewise.
48724         * tests/test-rawmemchr.c: Likewise.
48725         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48726         module.
48727         * modules/strchrnul (Depends-on): Add rawmemchr.
48728         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48729
48730         Whitespace cleanup.
48731         * tests/test-strchrnul.c: Reindent.
48732         * lib/strchrnul.c: Likewise.
48733
48734         Optimize and test strchrnul.
48735         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48736         * modules/strchrnul-tests: New file.
48737         * tests/test-strchrnul.c: Likewise.
48738
48739         Remove intprops dependency.
48740         * modules/memchr (Depends-on): Remove intprops.
48741         * modules/memrchr (Depends-on): Likewise.
48742         * modules/memchr2 (Depends-on): Likewise.
48743         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48744         * lib/memrchr.c (__memrchr): Likewise.
48745         * lib/memrchr2.c (memchr2): Likewise.
48746         Reported by Simon Josefsson.
48747
48748 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48749
48750         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48751         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48752
48753 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48754
48755         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48756
48757         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48758
48759         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48760
48761         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48762         declarations.
48763         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48764
48765         * m4/inet_pton.m4: Don't check for header files.
48766
48767         * m4/inet_ntop.m4: Don't check for header files.
48768
48769 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48770
48771         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48772         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48773         trigger for cygwin).
48774         Reported by Bruno Haible  <bruno@clisp.org>.
48775
48776 2008-04-28  Bruno Haible  <bruno@clisp.org>
48777
48778         * doc/posix-functions/strdup.texi: Mention mingw problem.
48779
48780 2008-04-27  Bruno Haible  <bruno@clisp.org>
48781
48782         * modules/stat-time-tests (Depends-on): Add sleep.
48783         * tests/test-stat-time.c (force_unlink): New function.
48784         (cleanup): Use it.
48785         (test_mtime): Remove the ctime related tests.
48786         (test_ctime): New function, containing the ctime related tests.
48787         (main): Call test_ctime, except on native Windows platforms.
48788
48789 2008-04-27  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/rpmatch.c (rpmatch): Add some comments.
48792         Reported by James Youngman <jay@gnu.org>.
48793
48794 2008-04-27  Bruno Haible  <bruno@clisp.org>
48795
48796         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48797         quiet NaNs.
48798
48799 2008-04-27  Bruno Haible  <bruno@clisp.org>
48800
48801         Make test-yesno.sh work on mingw.
48802         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48803         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48804         (main): Set stdin to binary mode.
48805         * modules/yesno-tests (Depends-on): Add binary-io.
48806
48807 2008-04-27  Bruno Haible  <bruno@clisp.org>
48808
48809         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48810         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48811         argument that lie outside the IEEE 854 domain.
48812         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48813         (gl_ISFINITE): Use it.
48814         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48815
48816 2008-04-27  Bruno Haible  <bruno@clisp.org>
48817
48818         Allow local renaming in config.h.
48819         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48820
48821 2008-04-27  Bruno Haible  <bruno@clisp.org>
48822
48823         * lib/memchr.c (__memchr): Change type of 'i'.
48824         * lib/memchr2.c (memchr2): Likewise.
48825
48826 2008-04-26  Eric Blake  <ebb9@byu.net>
48827         and Bruno Haible  <bruno@clisp.org>
48828
48829         Optimize and test memrchr.
48830         * modules/memrchr (Depends-on): Add intprops.
48831         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48832         * modules/memrchr-tests: New file.
48833         * tests/test-memrchr.c: New file.
48834
48835 2008-04-26  Bruno Haible  <bruno@clisp.org>
48836
48837         Add tentative support for DragonFly BSD.
48838         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48839         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48840         fp.
48841         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48842         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48843         * lib/fpurge.c (fpurge): Likewise.
48844         * lib/freadable.c (freaadable): Likewise.
48845         * lib/freadahead.c (freadahead): Likewise.
48846         * lib/freading.c (freading): Likewise.
48847         * lib/freadptr.c (freadptr): Likewise.
48848         * lib/freadseek.c (freadptrinc): Likewise.
48849         * lib/fseeko.c (fseeko): Likewise.
48850         * lib/fseterr.c (fseterr): Likewise.
48851         * lib/fwritable.c (fwritable): Likewise.
48852         * lib/fwriting.c (fwriting): Likewise.
48853
48854 2008-04-26  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/stdio-impl.h: New file.
48857         * lib/fbufmode.c: Include stdio-impl.h.
48858         (fbufmode): Use fp_, remove redundant #defines.
48859         * lib/fflush.c: Include stdio-impl.h.
48860         (clear_ungetc_buffer): Remove redundant #defines.
48861         * lib/fpurge.c: Include stdio-impl.h.
48862         (fpurge): Remove redundant #defines.
48863         * lib/freadable.c: Include stdio-impl.h.
48864         (freadable): Remove redundant #defines.
48865         * lib/freadahead.c: Include stdio-impl.h.
48866         (freadahead): Remove redundant #defines.
48867         * lib/freading.c: Include stdio-impl.h.
48868         (freading): Remove redundant #defines.
48869         * lib/freadptr.c: Include stdio-impl.h.
48870         (freadptr): Remove redundant #defines.
48871         * lib/freadseek.c: Include stdio-impl.h.
48872         (freadptrinc): Remove redundant #defines.
48873         * lib/fseeko.c: Include stdio-impl.h.
48874         (rpl_fseeko): Remove redundant #defines.
48875         * lib/fseterr.c: Include stdio-impl.h.
48876         (fseterr): Remove redundant #defines.
48877         * lib/fwritable.c: Include stdio-impl.h.
48878         (fwritable: Remove redundant #defines.
48879         * lib/fwriting.c: Include stdio-impl.h.
48880         (fwriting): Remove redundant #defines.
48881         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48882         * modules/fflush (Files): Likewise.
48883         * modules/fpurge (Files): Likewise.
48884         * modules/freadable (Files): Likewise.
48885         * modules/freadahead (Files): Likewise.
48886         * modules/freading (Files): Likewise.
48887         * modules/freadptr (Files): Likewise.
48888         * modules/freadseek (Files): Likewise.
48889         * modules/fseeko (Files): Likewise.
48890         * modules/fseterr (Files): Likewise.
48891         * modules/fwritable (Files): Likewise.
48892         * modules/fwriting (Files): Likewise.
48893
48894 2008-04-26  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48897         restore_seek_optimization, update_fpos_cache): New functions, extracted
48898         from rpl_fflush.
48899         (rpl_fflush): Use them.
48900         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48901         (gl_REPLACE_FFLUSH): Use it.
48902
48903 2008-04-26  Bruno Haible  <bruno@clisp.org>
48904
48905         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48906         on Solaris.
48907         * tests/test-xstrtoimax.sh: Likewise.
48908         * tests/test-xstrtoumax.sh: Likewise.
48909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48910
48911 2008-04-26  Bruno Haible  <bruno@clisp.org>
48912
48913         * modules/memchr-tests: New file.
48914         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48915
48916 2008-04-26  Eric Blake  <ebb9@byu.net>
48917             Bruno Haible  <bruno@clisp.org>
48918
48919         * lib/memchr.c: Include intprops.h.
48920         (__memchr): Optimize parallel detection of matching bytes. Rename local
48921         variables. Add explanatory comments.
48922
48923 2008-04-26  Bruno Haible  <bruno@clisp.org>
48924
48925         Fix module 'memchr', broken since 2000-10-28.
48926         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48927
48928 2008-04-26  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48931         comments.
48932
48933 2008-04-25  Eric Blake  <ebb9@byu.net>
48934
48935         Use native fstatat on cygwin 1.7.0.
48936         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48937         first.
48938
48939 2008-04-23  Eric Blake  <ebb9@byu.net>
48940
48941         Improve memchr2 performance.
48942         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48943         NUL bytes.
48944         * modules/memchr2 (Depends-on): Use intprops.h.
48945
48946 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48947
48948         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48949         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48950         <blp@cs.stanford.edu>.
48951
48952 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48953
48954         * lib/arpa_inet.in.h: New file.
48955
48956         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48957         (Makefile.am): Sed in substitute header file.
48958
48959         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48960         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48961
48962         * modules/inet_ntop (configure.ac): Use
48963         gl_ARPA_INET_MODULE_INDICATOR.
48964
48965         * modules/inet_pton (configure.ac): Use
48966         gl_ARPA_INET_MODULE_INDICATOR.
48967
48968 2008-04-22  Jim Meyering  <meyering@redhat.com>
48969
48970         * modules/verify (License): Re-license as LGPLv2+.
48971
48972 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48973
48974         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48975         parameter to void* as per POSIX standard (MinGW uses char*).
48976
48977 2008-04-21  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48980         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48981         Define to replacements if REPLACE_ISWCNTRL is 1.
48982         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48983         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48984         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48985         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48986         what it fixes.
48987         * doc/posix-functions/iswalpha.texi: Likewise.
48988         * doc/posix-functions/iswblank.texi: Likewise.
48989         * doc/posix-functions/iswcntrl.texi: Likewise.
48990         * doc/posix-functions/iswdigit.texi: Likewise.
48991         * doc/posix-functions/iswgraph.texi: Likewise.
48992         * doc/posix-functions/iswlower.texi: Likewise.
48993         * doc/posix-functions/iswprint.texi: Likewise.
48994         * doc/posix-functions/iswpunct.texi: Likewise.
48995         * doc/posix-functions/iswspace.texi: Likewise.
48996         * doc/posix-functions/iswupper.texi: Likewise.
48997         * doc/posix-functions/iswxdigit.texi: Likewise.
48998         Reported by Alain Guibert.
48999
49000 2008-04-21  Bruno Haible  <bruno@clisp.org>
49001
49002         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49003         Patch by Alain Guibert.
49004
49005 2008-04-21  Bruno Haible  <bruno@clisp.org>
49006
49007         Fix test failures on mingw.
49008         * tests/test-xstrtol.c (print_no_progname): New function.
49009         (main): Install it in error_print_progname hook.
49010         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49011         * tests/test-xstrtoimax.sh: Likewise.
49012         * tests/test-xstrtoumax.sh: Likewise.
49013
49014 2008-04-21  Bruno Haible  <bruno@clisp.org>
49015
49016         Fix test failure on mingw.
49017         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49018
49019 2008-04-21  Bruno Haible  <bruno@clisp.org>
49020
49021         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49022         Actually assign a value.
49023
49024 2008-04-20  Bruno Haible  <bruno@clisp.org>
49025
49026         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49027         take 2.
49028         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49029         'canonicalize-lgpl' module is also used.
49030         * lib/canonicalize-lgpl.c: Undo last change.
49031         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49032
49033 2008-04-20  Bruno Haible  <bruno@clisp.org>
49034
49035         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49036         config.h. Provide _mkdir based fallback for mingw.
49037         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49038         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49039         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49040         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49041         rather than defining mkdir in config.h.
49042         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49043         (gl_SYS_STAT_H_DEFAULTS): New macro.
49044         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49045         HAVE_IO_H any more.
49046         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49047         HAVE_DECL_MKDIR and HAVE_IO_H.
49048
49049 2008-04-20  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/isapipe.c: Port to native Windows platforms.
49052
49053 2008-04-20  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49056
49057 2008-04-21  Eric Blake  <ebb9@byu.net>
49058
49059         Work around preprocessors that don't handle UINTMAX_MAX.
49060         * lib/memchr2.c (memchr2): Avoid embedded #if.
49061         Reported by Alain Guibert, fix suggested by Bruno Haible.
49062
49063 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49064
49065         * doc/posix-functions/strftime.texi (strftime): Explain better
49066         Windows incompatibility.  Suggested by Micah Cowan
49067         <micah@cowan.name>.
49068
49069 2008-04-20  Bruno Haible  <bruno@clisp.org>
49070
49071         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49072         unistr/u8-mblen.
49073
49074 2008-04-20  Bruno Haible  <bruno@clisp.org>
49075
49076         Fix test failure on platforms with non-GNU iconv.
49077         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49078         (U_TO_U8): Use it, rather than u16_to_u8.
49079         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49080         units at the end of the input string.
49081         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49082
49083 2008-04-20  Bruno Haible  <bruno@clisp.org>
49084
49085         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49086         when the resulting length is 0.
49087         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49088
49089 2008-04-20  Bruno Haible  <bruno@clisp.org>
49090
49091         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49092         works.
49093         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49094
49095 2008-04-20  Bruno Haible  <bruno@clisp.org>
49096
49097         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49098         * modules/tsearch-tests (configure.ac): Test for initstate function.
49099
49100 2008-04-20  Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49103         for nlink_t if missing.
49104         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49105
49106 2008-04-19  Bruno Haible  <bruno@clisp.org>
49107
49108         Work around snprintf bug on Linux libc5.
49109         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49111         gl_SNPRINTF_SIZE1.
49112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49113         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49114         that test failed.
49115         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49116         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49117         * modules/snprintf (Files): Add m4/printf.m4.
49118         * modules/vsnprintf (Files): Likewise.
49119         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49120         * doc/posix-functions/vsnprintf.texi: Likewise.
49121
49122 2008-04-19  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49125         from 0.0058 to less than 10^-7.
49126
49127 2008-04-19  Bruno Haible  <bruno@clisp.org>
49128
49129         Fix rounding when a precision is given.
49130         * lib/vasnprintf.c (is_borderline): New function.
49131         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49132         9...9x.
49133         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49134         %e, %g.
49135         * tests/test-vasprintf-posix.c (test_function): Likewise.
49136         * tests/test-snprintf-posix.h (test_function): Likewise.
49137         * tests/test-sprintf-posix.h (test_function): Likewise.
49138         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49139         * tests/test-printf-posix.h (test_function): Likewise.
49140         * tests/test-printf-posix.output: Update.
49141         Reported by John Darrington <john@darrington.wattle.id.au> via
49142         Ben Pfaff <blp@cs.stanford.edu>.
49143
49144 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49145
49146         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49147         Suggested by Bruno Haible <bruno@clisp.org>.
49148
49149 2008-04-17  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49152         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49153         implementation.
49154         Patch by Bruce Merry <bmerry@gmail.com>.
49155
49156 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49157
49158         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49159         doesn't work under Windows.
49160
49161 2008-04-16  Bruno Haible  <bruno@clisp.org>
49162
49163         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49164         New macros.
49165         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49166         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49167         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49168         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49169         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49170         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49171         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49172         macros.
49173         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49174         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49175         Northern Sotho, Uighur.
49176
49177 2008-04-16  Bruno Haible  <bruno@clisp.org>
49178
49179         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49180         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49181         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49182         Reported by Daniel Bergström <daniel@octocode.com>.
49183
49184 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49185             Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49188         function.
49189         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49190         New functions, mostly extracted from gl_locale_name_default.
49191         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49192
49193 2008-04-16  Eric Blake  <ebb9@byu.net>
49194
49195         Adjust strtod detection to catch glibc 2.7 bug.
49196         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49197         Reported by John Gatewood Ham.
49198
49199 2008-04-16  Bruno Haible  <bruno@clisp.org>
49200
49201         Add tentative support for Linux libc5.
49202         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49203         * lib/fpurge.c (fpurge): Likewise.
49204         * lib/freadable.c (freadable): Likewise.
49205         * lib/freadahead.c (freadahead): Likewise.
49206         * lib/freading.c (freading): Likewise.
49207         * lib/freadptr.c (freadptr): Likewise.
49208         * lib/freadseek.c (freadptrinc): Likewise.
49209         * lib/fseeko.c (rpl_fseeko): Likewise.
49210         * lib/fseterr.c (fseterr): Likewise.
49211         * lib/fwritable.c (fwritable): Likewise.
49212         * lib/fwriting.c (fwriting): Likewise.
49213         Reported by Alain Guibert <alguibert+bts@free.fr>.
49214
49215 2008-04-15  Bruno Haible  <bruno@clisp.org>
49216
49217         * modules/mathl (configure.ac): Define module indicator.
49218
49219 2008-04-15  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/logl.c (logl): Remove unused variables.
49222
49223 2008-04-15  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49226         fails.
49227
49228 2008-04-15  Bruno Haible  <bruno@clisp.org>
49229
49230         * lib/trim.c (trim2): Fix argument of isspace() macro.
49231
49232 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49233
49234         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49235         to 0.
49236         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49237
49238 2008-04-14  Bruno Haible  <bruno@clisp.org>
49239
49240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49241         AC_LANG_PROGRAM argument.
49242         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49243         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49245         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49246         * m4/math_h.m4 (gl_MATH_H): Likewise.
49247         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49249         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49250         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49251         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49252         * m4/regex.m4 (gl_REGEX): Likewise.
49253         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49254         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49256         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49257         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49258         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49260         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49261
49262 2008-04-14  Jim Meyering  <meyering@redhat.com>
49263
49264         test-strtod: fix typos: s/abs/fabs/
49265         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49266
49267 2008-04-13  Bruno Haible  <bruno@clisp.org>
49268
49269         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49270         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49271         module is also used and while not building the reloc-wrapper.
49272
49273 2008-04-13  Bruno Haible  <bruno@clisp.org>
49274
49275         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49276
49277 2008-04-13  Bruno Haible  <bruno@clisp.org>
49278
49279         Fix AIX compilation failure introduced on 2008-04-02.
49280         * tests/test-frexp.c (exp): Undefine before redefining.
49281         * tests/test-frexpl.c (exp): Likewise.
49282
49283 2008-04-13  Bruno Haible  <bruno@clisp.org>
49284
49285         Work around a HP-UX stdio bug.
49286         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49287         * tests/test-ftello.c (main): Likewise.
49288         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49289         * doc/posix-functions/ftello.texi: Likewise.
49290
49291 2008-04-13  Bruno Haible  <bruno@clisp.org>
49292
49293         Make test-signbit pass on HP-UX/hppa.
49294         * tests/test-signbit.c (minus_zerol): New variable.
49295         (test_signbitl): Use it.
49296
49297 2008-04-13  Bruno Haible  <bruno@clisp.org>
49298
49299         Make truncl work on OSF/1 4.0.
49300         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49301         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49302         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49304         HAVE_DECL_TRUNCL.
49305         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49306         HAVE_DECL_TRUNCL.
49307         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49308
49309 2008-04-13  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49312
49313 2008-04-13  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49316         expression, so as to avoid HP-UX 11 cc compiler bug.
49317
49318 2008-04-13  Bruno Haible  <bruno@clisp.org>
49319
49320         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49321
49322 2008-04-13  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/git-merge-changelog.c: Remove empty declaration outside of
49325         functions.
49326
49327 2008-04-13  Bruno Haible  <bruno@clisp.org>
49328
49329         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49330
49331 2008-04-13  Bruno Haible  <bruno@clisp.org>
49332
49333         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49334         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49336         also if it exists but lacks definitions of the SHUT_* macros.
49337         * modules/sys_socket (Description): Update.
49338         Reported by Elbert Pol <e.pol@chello.nl>.
49339
49340 2008-04-13  Bruno Haible  <bruno@clisp.org>
49341
49342         * lib/localcharset.c (OS2): Don't redefine if already defined.
49343         Reported by Elbert Pol <e.pol@chello.nl>.
49344
49345 2008-04-13  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/binary-io.h [__EMX__]: Include <io.h>.
49348         Reported by Elbert Pol <e.pol@chello.nl>.
49349
49350 2008-04-12  Bruno Haible  <bruno@clisp.org>
49351
49352         * lib/fpucw.h: Enable the definitions also for x86_64.
49353         Needed for NetBSD/x86_64.
49354         Reported by Thomas Klausner <tk@giga.or.at>.
49355
49356 2008-04-12  Bruno Haible  <bruno@clisp.org>
49357
49358         * tests/test-strtod.c: Include isnand.h.
49359         (main): Use isnand instead of isnan.
49360         Reported by Jim Meyering.
49361
49362 2008-04-12  Bruno Haible  <bruno@clisp.org>
49363
49364         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49365         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49366
49367 2008-04-12  Jim Meyering  <meyering@redhat.com>
49368
49369         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49370
49371 2008-04-12  Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49374         Reported by Elbert Pol <e.pol@chello.nl>.
49375
49376 2008-04-12  Eric Blake  <ebb9@byu.net>
49377
49378         Work around Solaris 10 math.h bug.
49379         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49380         (gl_MATH_H_DEFAULTS): Set up default.
49381         * modules/math (Makefile.am): Replace new indicators.
49382         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49383         * tests/test-math.c (main): Test this.
49384         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49385         * doc/posix-headers/math.texi (math.h): Mention bug.
49386         Reported by Nelson H. F. Beebe and Jim Meyering.
49387
49388 2008-04-11  Bruno Haible  <bruno@clisp.org>
49389
49390         Adapt to future versions of Apple GCC.
49391         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49392         Reported by Peter O'Gorman <peter@pogma.com>.
49393
49394 2008-04-11  Bruno Haible  <bruno@clisp.org>
49395
49396         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49397
49398 2008-04-11  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49401
49402         * modules/getaddrinfo-tests (Makefile.am): Define
49403         test_getaddrinfo_LDADD.
49404
49405 2008-04-11  Bruno Haible  <bruno@clisp.org>
49406
49407         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49408         (init): Fix syntax error.
49409         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49410         is declared.
49411
49412 2008-04-11  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49415         * modules/glob (Depends-on): Add stdbool.
49416
49417 2008-04-11  Bruno Haible  <bruno@clisp.org>
49418
49419         * lib/trim.c: Include <string.h>.
49420
49421 2008-04-11  Eric Blake  <ebb9@byu.net>
49422
49423         Avoid compile failure on OS/2.
49424         * lib/regex_internal.h (internal_function): Disable optimization
49425         on OS/2 (__EMX__), where it caused compiler error.
49426         Reported by Elbert Pol.
49427
49428 2008-04-11  Bruno Haible  <bruno@clisp.org>
49429
49430         Flush the standard error stream before aborting. Needed on mingw.
49431         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49432         * tests/test-array_list.c (ASSERT): Likewise.
49433         * tests/test-array_oset.c (ASSERT): Likewise.
49434         * tests/test-avltree_list.c (ASSERT): Likewise.
49435         * tests/test-avltree_oset.c (ASSERT): Likewise.
49436         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49437         * tests/test-binary-io.c (ASSERT): Likewise.
49438         * tests/test-byteswap.c (ASSERT): Likewise.
49439         * tests/test-c-ctype.c (ASSERT): Likewise.
49440         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49441         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49442         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49443         * tests/test-c-strstr.c (ASSERT): Likewise.
49444         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49445         * tests/test-canonicalize.c (ASSERT): Likewise.
49446         * tests/test-carray_list.c (ASSERT): Likewise.
49447         * tests/test-ceilf1.c (ASSERT): Likewise.
49448         * tests/test-ceilf2.c (ASSERT): Likewise.
49449         * tests/test-ceill.c (ASSERT): Likewise.
49450         * tests/test-count-one-bits.c (ASSERT): Likewise.
49451         * tests/test-fbufmode.c (ASSERT): Likewise.
49452         * tests/test-fflush2.c (ASSERT): Likewise.
49453         * tests/test-floorf1.c (ASSERT): Likewise.
49454         * tests/test-floorf2.c (ASSERT): Likewise.
49455         * tests/test-floorl.c (ASSERT): Likewise.
49456         * tests/test-fopen.c (ASSERT): Likewise.
49457         * tests/test-fpending.c (ASSERT): Likewise.
49458         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49459         * tests/test-fpurge.c (ASSERT): Likewise.
49460         * tests/test-freadable.c (ASSERT): Likewise.
49461         * tests/test-freadahead.c (ASSERT): Likewise.
49462         * tests/test-freading.c (ASSERT): Likewise.
49463         * tests/test-freadptr.c (ASSERT): Likewise.
49464         * tests/test-freadptr2.c (ASSERT): Likewise.
49465         * tests/test-freadseek.c (ASSERT): Likewise.
49466         * tests/test-freopen.c (ASSERT): Likewise.
49467         * tests/test-frexp.c (ASSERT): Likewise.
49468         * tests/test-frexpl.c (ASSERT): Likewise.
49469         * tests/test-fseek.c (ASSERT): Likewise.
49470         * tests/test-fseeko.c (ASSERT): Likewise.
49471         * tests/test-fstrcmp.c (ASSERT): Likewise.
49472         * tests/test-ftell.c (ASSERT): Likewise.
49473         * tests/test-ftello.c (ASSERT): Likewise.
49474         * tests/test-func.c (ASSERT): Likewise.
49475         * tests/test-fwritable.c (ASSERT): Likewise.
49476         * tests/test-fwriting.c (ASSERT): Likewise.
49477         * tests/test-getdelim.c (ASSERT): Likewise.
49478         * tests/test-getline.c (ASSERT): Likewise.
49479         * tests/test-i-ring.c (ASSERT): Likewise.
49480         * tests/test-iconv-utf.c (ASSERT): Likewise.
49481         * tests/test-iconv.c (ASSERT): Likewise.
49482         * tests/test-isfinite.c (ASSERT): Likewise.
49483         * tests/test-isnand.c (ASSERT): Likewise.
49484         * tests/test-isnanf.c (ASSERT): Likewise.
49485         * tests/test-isnanl.h (ASSERT): Likewise.
49486         * tests/test-ldexpl.c (ASSERT): Likewise.
49487         * tests/test-linked_list.c (ASSERT): Likewise.
49488         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49489         * tests/test-localename.c (ASSERT): Likewise.
49490         * tests/test-lseek.c (ASSERT): Likewise.
49491         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49492         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49493         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49494         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49495         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49496         * tests/test-mbschr.c (ASSERT): Likewise.
49497         * tests/test-mbscspn.c (ASSERT): Likewise.
49498         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49499         * tests/test-mbspbrk.c (ASSERT): Likewise.
49500         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49501         * tests/test-mbsrchr.c (ASSERT): Likewise.
49502         * tests/test-mbsspn.c (ASSERT): Likewise.
49503         * tests/test-mbsstr1.c (ASSERT): Likewise.
49504         * tests/test-mbsstr2.c (ASSERT): Likewise.
49505         * tests/test-mbsstr3.c (ASSERT): Likewise.
49506         * tests/test-memchr2.c (ASSERT): Likewise.
49507         * tests/test-memmem.c (ASSERT): Likewise.
49508         * tests/test-open.c (ASSERT): Likewise.
49509         * tests/test-printf-frexp.c (ASSERT): Likewise.
49510         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49511         * tests/test-printf-posix.c (ASSERT): Likewise.
49512         * tests/test-quotearg.c (ASSERT): Likewise.
49513         * tests/test-rbtree_list.c (ASSERT): Likewise.
49514         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49515         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49516         * tests/test-round1.c (ASSERT): Likewise.
49517         * tests/test-roundf1.c (ASSERT): Likewise.
49518         * tests/test-roundl.c (ASSERT): Likewise.
49519         * tests/test-signbit.c (ASSERT): Likewise.
49520         * tests/test-sleep.c (ASSERT): Likewise.
49521         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49522         * tests/test-snprintf.c (ASSERT): Likewise.
49523         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49524         * tests/test-stat-time.c (ASSERT): Likewise.
49525         * tests/test-strcasestr.c (ASSERT): Likewise.
49526         * tests/test-strerror.c (ASSERT): Likewise.
49527         * tests/test-striconv.c (ASSERT): Likewise.
49528         * tests/test-striconveh.c (ASSERT): Likewise.
49529         * tests/test-striconveha.c (ASSERT): Likewise.
49530         * tests/test-strsignal.c (ASSERT): Likewise.
49531         * tests/test-strstr.c (ASSERT): Likewise.
49532         * tests/test-strtod.c (ASSERT): Likewise.
49533         * tests/test-trunc1.c (ASSERT): Likewise.
49534         * tests/test-trunc2.c (ASSERT): Likewise.
49535         * tests/test-truncf1.c (ASSERT): Likewise.
49536         * tests/test-truncf2.c (ASSERT): Likewise.
49537         * tests/test-truncl.c (ASSERT): Likewise.
49538         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49539         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49540         * tests/test-vasnprintf.c (ASSERT): Likewise.
49541         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49542         * tests/test-vasprintf.c (ASSERT): Likewise.
49543         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49544         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49545         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49546         * tests/test-vsnprintf.c (ASSERT): Likewise.
49547         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49548         * tests/test-wcwidth.c (ASSERT): Likewise.
49549         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49550         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49551         * tests/test-xvasprintf.c (ASSERT): Likewise.
49552         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49553         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49554         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49555         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49556         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49557         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49558         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49559         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49560         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49561         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49562         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49563         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49564         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49565         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49566         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49567         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49568         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49569         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49570         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49571         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49572         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49573         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49574         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49575         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49576         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49577         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49578         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49579         * tests/unictype/test-combining.c (ASSERT): Likewise.
49580         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49581         * tests/unictype/test-digit.c (ASSERT): Likewise.
49582         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49583         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49584         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49585         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49586         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49587         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49588         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49589         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49590         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49591         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49592         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49593         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49594         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49595         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49596         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49597         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49598         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49599         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49600         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49601         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49602         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49603         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49604         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49605         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49606         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49607         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49608         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49609         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49610         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49611         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49612         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49613         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49614         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49615         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49616         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49617         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49618         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49619         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49620         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49621         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49622         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49623         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49624         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49625         Reported by Eric Blake.
49626
49627 2008-04-11  Bruno Haible  <bruno@clisp.org>
49628
49629         * lib/wchar.in.h: Tweak comment.
49630
49631 2008-04-11  Bruno Haible  <bruno@clisp.org>
49632
49633         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49634         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49635         gl_COMMON.
49636         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49637
49638 2008-04-11  Bruno Haible  <bruno@clisp.org>
49639
49640         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49641
49642 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49643
49644         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49645         of attempting to use non-existing /dev/*random.  Based on patch
49646         from Adam Strzelecki <ono@java.pl> in
49647         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49648
49649 2008-04-08  Bruno Haible  <bruno@clisp.org>
49650
49651         Add tentative support for emx+gcc.
49652         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49653         * lib/fpurge.c (fpurge): Likewise.
49654         * lib/freadable.c (freadable): Likewise.
49655         * lib/freadahead.c (freadahead): Likewise.
49656         * lib/freading.c (freading): Likewise.
49657         * lib/freadptr.c (freadptr): Likewise.
49658         * lib/freadseek.c (freadptrinc): Likewise.
49659         * lib/fseeko.c (rpl_fseeko): Likewise.
49660         * lib/fseterr.c (fseterr): Likewise.
49661         * lib/fwritable.c (fwritable): Likewise.
49662         * lib/fwriting.c (fwriting): Likewise.
49663         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49664
49665 2008-04-09  Eric Blake  <ebb9@byu.net>
49666
49667         Avoid some autoconf warnings.
49668         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49669         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49670         * m4/afs.m4 (gl_AFS): Likewise.
49671         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49672         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49673         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49674         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49675         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49676         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49677         (AC_CHECK_DECLS_ONCE): Likewise.
49678         Rename file...
49679         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49680         gnulib-tool requires autoconf 2.59 or better.
49681         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49682
49683 2008-04-08  Eric Blake  <ebb9@byu.net>
49684
49685         Use 'git describe --match' if present (added in git 1.5.5).
49686         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49687         if possible.
49688
49689 2008-04-08  Bruno Haible  <bruno@clisp.org>
49690
49691         Add tentative support for OpenServer.
49692         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49693         _ptr, _cnt.
49694         * lib/fpurge.c (fpurge): Likewise.
49695         * lib/freadable.c (freadable): Likewise.
49696         * lib/freadahead.c (freadahead): Likewise.
49697         * lib/freading.c (freading): Likewise.
49698         * lib/freadptr.c (freadptr): Likewise.
49699         * lib/freadseek.c (freadptrinc): Likewise.
49700         * lib/fseeko.c (rpl_fseeko): Likewise.
49701         * lib/fseterr.c (fseterr): Likewise.
49702         * lib/fwritable.c (fwritable): Likewise.
49703         * lib/fwriting.c (fwriting): Likewise.
49704         Reported by Roger Cornelius <rac@tenzing.org> and
49705         Brian K. White <brian@aljex.com>.
49706
49707 2008-04-06  Jim Meyering  <meyering@redhat.com>
49708
49709         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49710
49711 2008-04-06  Bruno Haible  <bruno@clisp.org>
49712
49713         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49714         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49715         * tests/test-printf-posix.sh: Likewise.
49716         * tests/test-vfprintf-posix.sh: Likewise.
49717         * tests/test-vprintf-posix.sh: Likewise.
49718         * tests/test-xprintf-posix.sh: Likewise.
49719
49720 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49721
49722         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49723         hide error from 'ls', needed on OS/2.
49724         Report by Elbert Pol <elbert.pol@gmail.com>.
49725
49726 2008-04-04  Eric Blake  <ebb9@byu.net>
49727
49728         Make test-fseeko.c failures meaningful.
49729         * tests/test-fseeko.c: Print line number on failure.
49730         * tests/test-fseek.c: Likewise.
49731         Reported by Nelson H. F. Beebe.
49732
49733         Improve strtod bug detection check.
49734         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49735         required for Solaris 10.
49736         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49737
49738 2008-04-04  Bruno Haible  <bruno@clisp.org>
49739
49740         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49741         by m4/setenv.m4.
49742
49743 2008-04-03  Eric Blake  <ebb9@byu.net>
49744
49745         Ensure sane .version contents.
49746         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49747         version string.
49748         * build-aux/git-version-gen: Improve documentation.
49749
49750         Make GNU make output nicer.
49751         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49752         MAKECMDGOALS to enforce message for all command line targets.  Set
49753         srcdir for use in maint.mk.
49754
49755         Another maintainer tweak.
49756         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49757         a target that regenerates version.
49758
49759 2008-04-03  Jim Meyering  <meyering@redhat.com>
49760
49761         vc-list-files: don't cause coreutils "make po-check" failure
49762         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49763
49764 2008-04-03  Eric Blake  <ebb9@byu.net>
49765
49766         Allow VPATH usage of vc-list-files.
49767         * build-aux/vc-list-files (scriptversion): Add timestamp.
49768         (options): Add --help, --version, -C.
49769         (CVS): Support installed cvsu.
49770
49771 2008-04-02  Bruno Haible  <bruno@clisp.org>
49772
49773         Avoid some "statement with no effect" warnings from gcc.
49774         * tests/test-wctype.c (main): Explicitly ignore unused values.
49775         Reported by Jim Meyering.
49776
49777 2008-04-02  Jim Meyering  <meyering@redhat.com>
49778
49779         Avoid some warnings from "gcc -Wshadow".
49780         * tests/test-frexp.c (exp): Define to a different identifier.
49781         * tests/test-frexpl.c (exp): Likewise.
49782
49783 2008-04-03  Jim Meyering  <meyering@redhat.com>
49784
49785         bootstrap: remove dangling *.[ch] symlinks from lib
49786         * build-aux/bootstrap [dangling symlink removal]: Move find's
49787         -depth option to precede all others, to avoid a warning.
49788         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49789
49790 2008-04-02  Bruno Haible  <bruno@clisp.org>
49791
49792         Avoid some warnings from "gcc -Wshadow".
49793         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49794         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49795         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49796         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49797         Reported by Jim Meyering.
49798
49799 2008-04-01  Bruno Haible  <bruno@clisp.org>
49800
49801         Fix test to work on IRIX 6.5 with cc.
49802         * tests/test-math.c (numeric_equal): New function.
49803         (main): Use it.
49804
49805 2008-04-01  Bruno Haible  <bruno@clisp.org>
49806
49807         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49808
49809 2008-04-01  Bruno Haible  <bruno@clisp.org>
49810
49811         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49812         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49813         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49814         (Depends-on): Remove math.
49815
49816         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49817         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49818         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49819         (Depends-on): Remove math.
49820
49821         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49822         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49823         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49824         (Depends-on): Remove math.
49825         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49826         (Depends-on): Remove math.
49827
49828         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49829         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49830         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49831         (Depends-on): Remove math.
49832         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49833         (Depends-on): Remove math.
49834
49835         * tests/test-round1.c: Include nan.h.
49836         (main): Use NaNd instead of NAN.
49837         * modules/round-tests (Files): Add tests/nan.h.
49838
49839         * tests/test-trunc1.c: Include nan.h.
49840         (main): Use NaNd instead of NAN.
49841         * modules/trunc-tests (Files): Add tests/nan.h.
49842
49843         * tests/test-roundf1.c: Include nan.h.
49844         (main): Use NaNf instead of NAN.
49845         * modules/roundf-tests (Files): Add tests/nan.h.
49846
49847         * tests/test-truncf1.c: Include nan.h.
49848         (main): Use NaNf instead of NAN.
49849         * modules/truncf-tests (Files): Add tests/nan.h.
49850
49851         * tests/test-ceilf1.c: Include nan.h.
49852         (main): Use NaNf instead of NAN.
49853         * modules/ceilf-tests (Files): Add tests/nan.h.
49854
49855         * tests/test-floorf1.c: Include nan.h.
49856         (main): Use NaNf instead of NAN.
49857         * modules/floorf-tests (Files): Add tests/nan.h.
49858
49859         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49860         (main): Use NaNf instead of NAN.
49861         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49862
49863         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49864         (main): Use NaNd instead of NAN.
49865         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49866
49867         * tests/test-frexp.c: Include nan.h.
49868         (main): Use NaNd instead of NAN.
49869         * modules/frexp-tests (Files): Add tests/nan.h.
49870
49871         * lib/isnan.c: Don't include <math.h>.
49872         (FUNC): Don't use NAN macro.
49873         * modules/isnand-nolibm (Depends-on): Remove math.
49874         * modules/isnanf-nolibm (Depends-on): Remove math.
49875         * modules/isnanl (Depends-on): Remove math.
49876         * modules/isnanl-nolibm (Depends-on): Remove math.
49877
49878         * tests/nan.h: New file.
49879
49880 2008-04-01  Eric Blake  <ebb9@byu.net>
49881
49882         Fix typos.
49883         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49884         values to be the right type.
49885
49886         For now, cater to gnulib strtod inaccuracies.
49887         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49888         fractional results.  While not as nice from a QoI perspective, it
49889         is a quicker patch than correctly implementing decimal to binary
49890         rounding.
49891
49892 2008-03-31  Eric Blake  <ebb9@byu.net>
49893
49894         Guarantee a definition of NAN.
49895         * lib/math.in.h (NAN): Define if missing.
49896         * tests/test-math.c (main): Test it.
49897         * doc/posix-headers/math.texi (math.h): Document this.
49898         * lib/isnan.c (rpl_isnand): Use it.
49899         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49900         * tests/test-floorf1.c (NaN): Likewise.
49901         * tests/test-frexp.c (NaN): Likewise.
49902         * tests/test-isnand.c (NaN): Likewise.
49903         * tests/test-isnanf.c (NaN): Likewise.
49904         * tests/test-round1.c (NaN): Likewise.
49905         * tests/test-roundf1.c (NaN): Likewise.
49906         * tests/test-snprintf-posix.h (NaN): Likewise.
49907         * tests/test-sprintf-posix.h (NaN): Likewise.
49908         * tests/test-trunc1.c (NaN): Likewise.
49909         * tests/test-truncf1.c (NaN): Likewise.
49910         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49911         * tests/test-vasprintf-posix.c (NaN): Likewise.
49912         * modules/isnand-nolibm (Depends-on): Add math.
49913         * modules/isnanf-nolibm (Depends-on): Likewise.
49914         * modules/isnanl (Depends-on): Likewise.
49915         * modules/isnanl-nolibm (Depends-on): Likewise.
49916         * modules/snprintf-posix-tests (Depends-on): Likewise.
49917         * modules/sprintf-posix-tests (Depends-on): Likewise.
49918         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49919         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49920         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49921         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49922
49923 2008-03-31  Bruno Haible  <bruno@clisp.org>
49924
49925         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49926         * doc/posix-functions/strtod.texi: Likewise.
49927
49928 2008-03-31  Bruno Haible  <bruno@clisp.org>
49929
49930         * tests/test-strtod.c (main): Don't use C99 syntax.
49931
49932 2008-03-31  Bruno Haible  <bruno@clisp.org>
49933
49934         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49935         Reported by Eric Blake.
49936
49937 2008-03-31  Jim Meyering  <meyering@redhat.com>
49938
49939         Don't compare actual signbit return values.
49940         * tests/test-strtod.c (main): Rather, compare only their
49941         zero/non-zero nature.
49942
49943 2008-03-31  Eric Blake  <ebb9@byu.net>
49944
49945         More strtod documentation.
49946         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49947         failures as distinct bugs.
49948
49949 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49952         Problem reported by Erik Benada in
49953         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49954
49955 2008-03-30  Bruno Haible  <bruno@clisp.org>
49956
49957         * tests/test-strtod.c: Add comments about which assertion fails on which
49958         platform.
49959         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49960
49961 2008-03-30  Eric Blake  <ebb9@byu.net>
49962
49963         Test signbit behavior on zeros.
49964         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49965         (test_signbitd, test_signbitl): Likewise.
49966
49967         More strtod touchups.
49968         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49969         sign of negative underflow, for now.  Use .5, not .1.
49970         * doc/posix-functions/strtod.texi (strtod): Mention these
49971         limitations.
49972         Reported by Jim Meyering.
49973
49974 2008-03-30  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49977         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49978
49979 2008-03-30  Bruno Haible  <bruno@clisp.org>
49980
49981         Avoid failure when attempting to return empty iconv results on some
49982         platforms.
49983         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49984         allocation, don't report ENOMEM when the resulting string is empty.
49985
49986 2008-03-30  Bruno Haible  <bruno@clisp.org>
49987
49988         Fix buffer overrun.
49989         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49990         Don't consider the width for tmp_length. Check count against tmp_length
49991         before doing the padding. Ensure enough allocation during padding.
49992
49993 2008-03-30  Eric Blake  <ebb9@byu.net>
49994
49995         strtod touchups.
49996         * lib/strtod.c (strtod): Avoid compiler warnings.
49997         Reported by Jim Meyering.
49998
49999 2008-03-30  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50002         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50003         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50004         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50005         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50006         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50007         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50008         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50009
50010         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50011         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50012         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50013         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50014         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50015         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50016         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50017         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50018
50019         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50020         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50021         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50022         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50023         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50024         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50025         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50026         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50027
50028         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50029         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50030
50031         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50032         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50033
50034         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50035         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50036
50037         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50039         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50040
50041         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50042         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50043         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50044
50045         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50047         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50048
50049         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50051         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50052
50053         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50054         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50056         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50057         (Depends-on): Add EOVERFLOW.
50058         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50059         (Depends-on): Add EOVERFLOW.
50060         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50061         (Depends-on): Add EOVERFLOW.
50062         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50063         (Depends-on): Add EOVERFLOW.
50064         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50065         (Depends-on): Add EOVERFLOW.
50066         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50067         (Depends-on): Add EOVERFLOW.
50068         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50069         (Depends-on): Add EOVERFLOW.
50070         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50071         (Depends-on): Add EOVERFLOW.
50072
50073         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50075         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50076
50077         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50079         * modules/snprintf (Depends-on): Add EOVERFLOW.
50080
50081         * lib/poll.c (EOVERFLOW): Remove fallback.
50082         * modules/poll (Depends-on): Add EOVERFLOW.
50083
50084         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50085         * modules/getugroups (Depends-on): Add EOVERFLOW.
50086
50087         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50088         * modules/getdelim (Depends-on): Add EOVERFLOW.
50089
50090         * lib/ftell.c (EOVERFLOW): Remove fallback.
50091         * modules/ftell (Depends-on): Add EOVERFLOW.
50092
50093         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50095         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50096
50097         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50098
50099         * modules/EOVERFLOW-tests: New file.
50100         * tests/test-EOVERFLOW.c: New file.
50101
50102         * modules/EOVERFLOW: New file.
50103         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50104
50105 2008-03-30  Bruno Haible  <bruno@clisp.org>
50106
50107         Fix bug introduced on 2007-06-10.
50108         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50109         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50110
50111 2008-03-30  Bruno Haible  <bruno@clisp.org>
50112
50113         Improve freadseek's efficiency after ungetc.
50114         * lib/freadseek.c: Include freadahead.h.
50115         (freadptrinc): New function, extracted from freadseek.
50116         (freadseek): Use it in a loop. Use freadahead to determine the number
50117         of loop iterations.
50118         * modules/freadseek (Depends-on): Add freadahead.
50119         (configure.ac): Require AC_C_INLINE.
50120
50121 2008-03-30  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/freadseek.c (freadseek): Don't ignore the return value of
50124         freadptr.
50125
50126 2008-03-29  Eric Blake  <ebb9@byu.net>
50127
50128         Add hex float support.
50129         * modules/strtod (Depends-on): Add c-ctype.
50130         (Link): Mention POW_LIB.
50131         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50132         whitespace between 'e' and exponent.
50133         * tests/test-strtod.c (main): Enable hex float tests.
50134         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50135         now provides.
50136
50137         Document various strtod bugs, with some fixes.
50138         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50139         "-0x", "inf", "nan", and hex constants.
50140         * doc/posix-functions/atof.texi (atof): Likewise.
50141         * modules/stdlib (Makefile.am): Support strtod.
50142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50143         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50144         detect additional strtod bugs.
50145         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50146         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50147         bool where appropriate.  Parse 'inf' and 'nan'.
50148         * tests/test-strtod.c: New file.
50149         * modules/strtod (Depends-on): Add stdbool, stdlib.
50150         (configure.ac): Turn on module indicator.
50151         * modules/strtod-tests: New module.
50152
50153 2008-03-29  Eric Blake  <ebb9@byu.net>
50154
50155         Fix ftell on mingw.
50156         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50157         * modules/ftell-tests (Depends-on): Add binary-io.
50158         * modules/ftello-tests (Depends-on): Likewise.
50159         * tests/test-ftell.c (main): Enhance test to cover behavior after
50160         ungetc.  Enforce binary mode.
50161         * tests/test-ftello.c (main): Likewise.
50162
50163         Pass test-freadseek on cygwin.
50164         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50165         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50166         ungetc buffer.
50167
50168         * tests/test-fflush2.c (main): Fix typo.
50169
50170 2008-03-29  Bruno Haible  <bruno@clisp.org>
50171
50172         * tests/test-fflush2.c (main): Temporarily disable the contents of
50173         this test.
50174         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50175         Reported by Eric Blake.
50176
50177 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50178
50179         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50180         (GC_SHA224_DIGEST_SIZE): Add.
50181
50182         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50183         (gc_hash_digest_length): Likewise.
50184         (gc_hash_buffer): Likewise.
50185
50186 2008-03-25  Bruno Haible  <bruno@clisp.org>
50187
50188         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50189         detail which gettext release to use.
50190         Reported by Simon Josefsson.
50191
50192 2008-03-26  Jim Meyering  <meyering@redhat.com>
50193
50194         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50195         * modules/gnumakefile (clean-GNUmakefile): Also, use
50196         test ... && ... || : syntax rather than if-then ... fi.
50197
50198         gnumakefile: Don't double-quote-expand $(VPATH) value.
50199         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50200
50201 2008-03-24  Eric Blake  <ebb9@byu.net>
50202
50203         Alter GNUmakefile to install into top directory.
50204         * modules/maintainer-makefile: Split, and add dependency...
50205         * modules/gnumakefile: to this new module.
50206         * build-aux/GNUmakefile: Move...
50207         * top/GNUmakefile: ...here.
50208         * build-aux/maint.mk: Move...
50209         * top/maint.mk: ...here.
50210         * MODULES.html.sh (Support for maintaining...): Document new
50211         module.
50212
50213 2008-03-23  Bruno Haible  <bruno@clisp.org>
50214
50215         * gnulib-tool: New options --vc-files, --no-vc-files.
50216         (func_usage): Document them.
50217         (vc_files): New variable.
50218         (func_import): Consider vc_files.
50219         (func_create_testdir): Set vc_files to empty.
50220         Suggested by Jim Meyering and Karl Berry.
50221
50222 2008-03-23  Bruno Haible  <bruno@clisp.org>
50223
50224         Fix regex compilation error on HP-UX 11.
50225         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50226         * modules/regex (Files): Add m4/mbstate_t.m4.
50227         Reported by Ton Voon <ton.voon@altinity.com>.
50228
50229 2008-03-23  Bruno Haible  <bruno@clisp.org>
50230
50231         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50232
50233 2008-03-23  Eric Blake  <ebb9@byu.net>
50234             Bruno Haible  <bruno@clisp.org>
50235
50236         Install files from top/ in the destination directory.
50237         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50238         augmentation also for the files from top/.
50239         (func_import, func_create_testdir): Rewrite file names:
50240         top/filename -> filename.
50241
50242 2008-03-23  Bruno Haible  <bruno@clisp.org>
50243
50244         Tweak "gnulib --version" output.
50245         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50246
50247 2008-03-23  Bruno Haible  <bruno@clisp.org>
50248
50249         Tweak "gnulib --version" output.
50250         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50251         rather than contents of ChangeLog, when possible.
50252
50253 2008-03-21  Eric Blake  <ebb9@byu.net>
50254
50255         More --version tweaks.
50256         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50257         date of last ChangeLog entry.
50258
50259 2008-03-21  Jim Meyering  <meyering@redhat.com>
50260
50261         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50262
50263 2008-03-20  Eric Blake  <ebb9@byu.net>
50264
50265         VPATH fix.
50266         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50267
50268 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50269
50270         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50271         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50272
50273 2008-03-20  Eric Blake  <ebb9@byu.net>
50274
50275         Sync GNUmakefile with coreutils.
50276         * build-aux/GNUmakefile (have-Makefile): Rename...
50277         (_have-Makefile): ...to this, for namespace consideration.
50278         (GNUmakefile.cfg): Include, if present.
50279         (_autoreconf): Define a default.
50280         (_is-dist-target): New rule for rebuilds to pick up intra-release
50281         version.
50282         (maint-cfg.mk): Rename...
50283         (cfg.mk): ...to this.
50284
50285 2008-03-18  Jim Meyering  <meyering@redhat.com>
50286
50287         New script and module: mktempd
50288         * MODULES.html.sh (maint+release support): Add mktempd.
50289         * build-aux/mktempd: New file.
50290         * modules/mktempd: New file.
50291
50292 2008-03-15  Jim Meyering  <meyering@redhat.com>
50293
50294         Undo last change.
50295         * lib/sha1.c, lib/md5.c: 63 != ~63.
50296         Reported by Andreas Schwab.
50297
50298         sha1.c, md5.c: Hoist a redundant expression.
50299         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50300         "ctx->buflen" only once, before calling *_process_block.
50301         * lib/md5.c (md5_process_bytes): Likewise.
50302
50303 2008-03-14  Eric Blake  <ebb9@byu.net>
50304
50305         Bump copyright year in files generated by gnulib-tool.
50306         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50307         gnulib-tool, rather than hard-coding it.
50308
50309         Fix 'gnulib-tool --version' output to work with git.
50310         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50311         (startup): ...here.
50312         (func_version): Use it to invoke git-version-gen, rather than
50313         relying on CVS keyword expansion.  Modernize wording.
50314         (cvsdatestamp, last_checkin_date, version): Kill unused
50315         variables.
50316
50317 2008-03-12  Jim Meyering  <meyering@redhat.com>
50318
50319         Recognize optional cast of the argument to free.
50320         * build-aux/useless-if-before-free: Update regexps.
50321
50322         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50323
50324 2008-03-11  Bruno Haible  <bruno@clisp.org>
50325
50326         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50327         by a single package.
50328         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50329         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50330         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50331         Reported by Sam Steingold <sds@gnu.org>.
50332
50333 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50334
50335         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50336         repositories.
50337
50338 2008-03-11  Bruno Haible  <bruno@clisp.org>
50339
50340         Avoid conflicts between local macro definitions.
50341         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50342         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50343
50344 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50345             Bruno Haible  <bruno@clisp.org>
50346
50347         Make va_copy work with some version of xlc on AIX 5.1.
50348         * lib/stdarg.in.h: New file.
50349         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50350         On AIX, use a <stdarg.h> file substitute.
50351         * modules/stdarg (Files): Add lib/stdarg.in.h.
50352         (Depends-on): Add include_next.
50353         (Makefile.am): Build a stdarg.h substitute if requested.
50354         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50355
50356 2008-03-10  Bruno Haible  <bruno@clisp.org>
50357
50358         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50360         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50361
50362 2008-03-10  Bruno Haible  <bruno@clisp.org>
50363
50364         * modules/stdlib (Depends-on): Add include_next, remove
50365         absolute-header.
50366
50367 2008-03-09  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/freadahead.h (freadahead): Document more precisely.
50370         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50371         the sum of both buffer sizes.
50372         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50373         * NEWS: Document the change.
50374
50375 2008-03-09  Bruno Haible  <bruno@clisp.org>
50376
50377         Extend freadptr to return also the buffer size.
50378         * lib/freadptr.h (freadptr): Add sizep argument.
50379         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50380         (freadptr): Add sizep argument. Determine buffer size like freadahead
50381         does.
50382         * tests/test-freadptr.c: Don't include freadahead.h.
50383         (main): Adapt for new calling convention of freadptr.
50384         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50385         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50386         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50387         tests/test-freadptr2.sh.
50388         (Depends): Remove freadahead.
50389         (TESTS): Add test-freadptr2.sh.
50390         (check_PROGRAMS): Add test-freadptr2.
50391
50392 2008-03-09  Bruno Haible  <bruno@clisp.org>
50393
50394         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50395         Report and solution by Simon Josefsson.
50396
50397 2008-03-06  Bruno Haible  <bruno@clisp.org>
50398
50399         Make fflush after ungetc work on BSD platforms.
50400         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50401         * tests/test-fflush2.c: New file.
50402         * tests/test-fflush2.sh: New file.
50403         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50404         tests/test-fflush2.c.
50405         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50406         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50407
50408 2008-03-06  Eric Blake  <ebb9@byu.net>
50409
50410         Likewise for ftello.
50411         * modules/ftello (Dependencies): Add extensions.
50412         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50413
50414 2008-03-06  Bruno Haible  <bruno@clisp.org>
50415
50416         * modules/fseeko (Dependencies): Add extensions.
50417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50418         Needed on glibc systems.
50419
50420 2008-03-06  Bruno Haible  <bruno@clisp.org>
50421
50422         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50423         email address.
50424         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50425
50426 2008-03-06  Bruno Haible  <bruno@clisp.org>
50427
50428         * users.txt: Add libgnupdf.
50429
50430 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50431
50432         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50433         (Header File Substitutes, Function Substitutes,
50434         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50435         (Build robot for gnulib): Fix typo.
50436
50437 2008-03-06  Bruno Haible  <bruno@clisp.org>
50438
50439         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50440         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50441
50442 2008-03-06  Bruno Haible  <bruno@clisp.org>
50443
50444         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50445         * doc/gnulib.texi: Include it.
50446
50447 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50448
50449         * modules/func (License): Change license to unlimited; there was
50450         no LGPL parts in the module anyway.
50451
50452 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50453
50454         * modules/__func__: Renamed to modules/func.
50455         * modules/__func__-tests: Renamed to modules/func-tests.
50456         * tests/test-__func__.c: Renamed to tests/test-func.c.
50457         * m4/__func__.m4: Renamed to m4/func.m4.
50458         * doc/gnulib.texi (__func__): Section renamed to func.
50459         Suggested by Eric Blake <ebb9@byu.net>.
50460
50461 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50462
50463         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50464         about __func__.  Make example self-contained.  Suggested by Eric
50465         Blake <ebb9@byu.net>.
50466
50467         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50468         Suggested by Eric Blake <ebb9@byu.net>.
50469
50470 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50471
50472         * modules/__func__: New file.
50473         * modules/__func__-tests: New file.
50474         * tests/test-__func__.c: New file.
50475         * m4/__func__.m4: New file.
50476         * doc/gnulib.texi (__func__): Document __func__ module.
50477
50478 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50479
50480         * modules/byteswap (License): Re-license as LGPLv2+.
50481
50482 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50483
50484         * doc/Makefile: Add pdf target.
50485
50486 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50487
50488         * modules/inline (License): Use 'unlimited', since there are only
50489         *.m4 files in this module.
50490
50491 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50492             Bruno Haible  <bruno@clisp.org>
50493
50494         Add support for HP C 7.1 on OpenVMS 8.3.
50495         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50496
50497 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50498
50499         Update VMS specifics.
50500         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50501
50502 2008-03-02  Jim Meyering  <meyering@redhat.com>
50503
50504         Remove the last dependency on the "free" module.
50505         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50506         Reported by Bob Proulx.
50507
50508         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50509
50510         Remove useless "if" tests before free.  Deprecate "free" module.
50511         * doc/posix-functions/free.texi: Mention that this
50512         module is no longer useful.
50513         * modules/free (Notice): Say this module is obsolete.
50514         * modules/readutmp (Depends-on): Remove free.
50515         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50516         * lib/putenv.c (putenv): Likewise.
50517         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50518         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50519         * tests/test-c-strcasestr.c (main): Likewise.
50520         * tests/test-c-strstr.c (main): Likewise.
50521         * tests/test-mbscasestr1.c (main): Likewise.
50522         * tests/test-mbscasestr2.c (main): Likewise.
50523         * tests/test-mbsstr1.c (main): Likewise.
50524         * tests/test-mbsstr2.c (main): Likewise.
50525         * tests/test-memmem.c (main): Likewise.
50526         * tests/test-strcasestr.c (main): Likewise.
50527         * tests/test-striconv.c (main): Likewise.
50528         * tests/test-striconveh.c (main): Likewise.
50529         * tests/test-striconveha.c (main): Likewise.
50530         * tests/test-strstr.c (main): Likewise.
50531
50532         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50533
50534         bootstrap: sync from coreutils again
50535         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50536
50537 2008-03-01  Jim Meyering  <meyering@redhat.com>
50538
50539         bootstrap: sync from coreutils
50540         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50541         also when the target doesn't exist.
50542
50543 2008-03-01  Eric Blake  <ebb9@byu.net>
50544
50545         Fix bugs in last patch.
50546         * lib/memchr2.c (memchr2): Fix typo.
50547         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50548         extension.
50549         Reported by Bruce Korb.
50550
50551         New module 'memchr2'.
50552         * modules/memchr2: New file.
50553         * modules/memchr2-tests: Likewise.
50554         * lib/memchr2.h: Likewise.
50555         * lib/memchr2.c: Likewise, based on memchr.c.
50556         * tests/test-memchr2.c: New test.
50557         * MODULES.html.sh (String handling): Add memchr2.
50558
50559 2008-02-29  Bruno Haible  <bruno@clisp.org>
50560
50561         * modules/freadseek-tests: New file.
50562         * tests/test-freadseek.sh: New file.
50563         * tests/test-freadseek.c: New file.
50564
50565         New module 'freadseek'.
50566         * modules/freadseek: New file.
50567         * lib/freadseek.h: New file.
50568         * lib/freadseek.c: New file.
50569         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50570
50571 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50572
50573         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50574         wydawca.
50575
50576         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50577         program_invocation_name and program_invocation_short_name are
50578         present.
50579
50580 2008-02-28  Bruno Haible  <bruno@clisp.org>
50581
50582         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50583         * tests/test-freadptr.sh: Also test non-seekable stdin.
50584
50585 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50586
50587         * build-aux/bootstrap (source_base, m4_base)
50588         (doc_base, tests_base): New variables.
50589         (gnulib_tool_options): Do not hardcode base directories, use
50590         the above variables instead.
50591
50592 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50593
50594         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50595
50596 2008-02-28  Bruno Haible  <bruno@clisp.org>
50597
50598         * modules/freadptr-tests: New file.
50599         * tests/test-freadptr.sh: New file.
50600         * tests/test-freadptr.c: New file.
50601
50602         New module 'freadptr'.
50603         * modules/freadptr: New file.
50604         * lib/freadptr.h: New file.
50605         * lib/freadptr.c: New file.
50606         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50607
50608 2008-02-26  Karl Berry  <karl@freefriends.org>
50609
50610         Sync from Libtool:
50611         * libltdl/argz.c (argz_add, argz_count): New functions.
50612         * libltdl/argz.in.h: Declare them.
50613         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50614
50615 2008-02-22  Bruno Haible  <bruno@clisp.org>
50616
50617         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50618         is a pointer type.  Needed for HP-UX 10.
50619         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50620         * doc/posix-functions/gmtime_r.texi: Likewise.
50621         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50622
50623 2008-02-24  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/environ-tests: New file.
50626         * tests/test-environ.c: New file.
50627
50628         New module 'environ'.
50629         * modules/environ: New file.
50630         * lib/unistd.in.h (environ): New declaration.
50631         * m4/environ.m4: New file.
50632         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50633         after use.
50634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50635         HAVE_DECL_ENVIRON.
50636         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50637         HAVE_DECL_ENVIRON.
50638         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50639         wrong claim that 'environ' is missing on some systems.
50640         * modules/execute (Depends-on): Add environ.
50641         * lib/execute.c (environ): Remove fallback declaration.
50642         * modules/pipe (Depends-on): Add environ.
50643         * lib/pipe.c (environ): Remove fallback declaration.
50644         * modules/setenv (Depends-on): Add environ.
50645         * lib/setenv.c (environ): Remove fallback declaration.
50646         * modules/unsetenv (Depends-on): Add environ.
50647         * lib/unsetenv.c (environ): Remove fallback declaration.
50648         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50649         m4/environ.m4.
50650         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50651         (gl_PREREQ_UNSETENV): Likewise.
50652
50653 2008-02-24  Bruno Haible  <bruno@clisp.org>
50654
50655         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50656
50657 2008-02-20  Bob Proulx  <bob@proulx.com>
50658
50659         Enable use of older two part flavor 'git describe'.
50660         * build-aux/git-version-gen: If using the older two part flavor of
50661         git version then recreate the third part now present in the
50662         newer three part flavor of git describe.
50663
50664 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50665
50666         * lib/fts.c (fts_build): Typo correction to comment.
50667
50668 2008-02-17  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50671         generating no-op conflicts.
50672
50673 2008-02-17  Bruno Haible  <bruno@clisp.org>
50674
50675         Speed up by 10%.
50676         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50677         result_entries, rather than an index-based loop.
50678
50679 2008-02-17  Bruno Haible  <bruno@clisp.org>
50680
50681         Speed up by 25%.
50682         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50683         'hashcode_cached'.
50684         (entry_create): New function.
50685         (entry_hashcode): Use the cached hashcode if possible.
50686         (read_changelog_file, try_split_merged_entry): Use entry_create.
50687
50688 2008-02-17  Bruno Haible  <bruno@clisp.org>
50689
50690         Speed up from O(n^2) to O(n) for long ChangeLog files.
50691         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50692         (read_changelog_file): Change implementation of entries_reversed list
50693         to rbtreehash.
50694         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50695
50696 2008-02-17  Bruno Haible  <bruno@clisp.org>
50697
50698         New option --split-merged-entry.
50699         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50700         (find_paragraph_end, try_split_merged_entry): New functions.
50701         (long_options): Add option --split-merged-entry.
50702         (usage): Document option --split-merged-entry.
50703         (main): Implement option --split-merged-entry.
50704         Reported by Eric Blake.
50705
50706 2008-02-17  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/git-merge-changelog.c: Include c-strstr.h.
50709         (main): Support the "git pull --rebase" situation.
50710         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50711         Reported by Eric Blake.
50712
50713 2008-02-16  Eric Blake  <ebb9@byu.net>
50714
50715         Avoid doubling \ in common case of "c-maybe" quoting style.
50716         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50717         eliding outer quotes.
50718         * lib/quotearg.h: Document this.
50719         * tests/test-quotearg.c (result_strings, inputs, results_g)
50720         (flag_results, locale_results): Test it by adding a new string to
50721         each test group.
50722         (compare_strings): Test new string.
50723
50724 2008-02-13  Eric Blake  <ebb9@byu.net>
50725
50726         Avoid trigraph quoting in default output.
50727         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50728         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50729         unless explicitly requested.
50730         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50731
50732 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50733
50734         Don't rely on signed integer overflowing to negative value.
50735         * lib/getugroups.c (getugroups): Include <limits.h>.
50736         Instead, compare against INT_MAX, and increment only if the test passes.
50737
50738 2008-02-13  Jim Meyering  <meyering@redhat.com>
50739         and Eric Blake  <ebb9@byu.net>
50740
50741         Avoid shadowing warning and compile errors on Linux.
50742         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50743         forwarding macros on Linux.
50744         (dcgettext): Define a stub, for Linux.
50745         (results_g, main): Avoid warnings.
50746
50747 2008-02-12  Eric Blake  <ebb9@byu.net>
50748
50749         Silence warning in last patch.
50750         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50751
50752         Quotearg part 4: add tests, fix c-maybe colon quoting.
50753         * lib/quotearg.h: Improve documentation.
50754         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50755         escapes when adding outer quotes.  When quoting trigraphs, use
50756         valid C notation.  When quoting NUL, omit extra characters if next
50757         character is not digit.  Alter prototype.
50758         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50759         callers.
50760         * modules/quotearg-tests: New module.
50761         * tests/test-quotearg.c: New test.
50762
50763 2008-02-07  Eric Blake  <ebb9@byu.net>
50764
50765         Quotearg part 3: add flag to control outer quote elision.
50766         * lib/quotearg.h (c_maybe_quoting_style): New style.
50767         (enum quoting_flags): Better documentation of flags.
50768         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50769         c-maybe style.
50770         (quotearg_buffer_restyled): Handle new flag to elide outer
50771         quotes.
50772
50773         Quotearg part 2: add flag that can control NUL elision.
50774         * lib/quotearg.h (set_quoting_flags): New prototype.
50775         * lib/quotearg.c (struct quoting_options): Add flag field.
50776         (set_quoting_flags): New function.
50777         (quotearg_buffer_restyled): Add flags parameter.
50778         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50779         (quotearg_n_options): Set the flag, since length cannot be
50780         returned.
50781         (quoting_options_from_style): Default flags correctly.
50782
50783         Quotearg part 1: more wrappers, restore quotearg_char state.
50784         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50785         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50786         (quotearg_colon_mem): New wrappers.
50787         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50788         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50789         functions.
50790         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50791         (quotearg_colon_mem): New functions.
50792
50793 2008-02-11  Bruno Haible  <bruno@clisp.org>
50794
50795         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50796         library in the current directory: it does not work with parallel make.
50797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50798
50799 2008-02-11  Bruno Haible  <bruno@clisp.org>
50800
50801         * .gitattributes: New file.
50802
50803 2008-02-11  Jim Meyering  <meyering@redhat.com>
50804
50805         useless-if-before-free: Fix reversed exit values.
50806         * build-aux/useless-if-before-free: Use correct values
50807         for EXIT_MATCH and EXIT_NO_MATCH.
50808
50809         * build-aux/useless-if-before-free: Close stdout carefully.
50810
50811 2008-02-10  Bruno Haible  <bruno@clisp.org>
50812
50813         New module 'git-merge-changelog'.
50814         * modules/git-merge-changelog: New file.
50815         * lib/git-merge-changelog.c: New file.
50816
50817 2008-02-10  Jim Meyering  <meyering@redhat.com>
50818
50819         useless-if-before-free: New option: --list (-l).
50820
50821         useless-if-before-free: Don't exit immediately upon open failure.
50822         * build-aux/useless-if-before-free: Exit 2 for errors.
50823         Upon failure to open a file, don't exit immediately.
50824         Rather, just warn and continue with any remaining files.
50825
50826 2008-02-10  Bruno Haible  <bruno@clisp.org>
50827
50828         New abstract list operation 'node_set_value'.
50829         * lib/gl_list.h (gl_list_node_set_value): New function.
50830         (struct gl_list_implementation): New field node_set_value.
50831         * lib/gl_list.c (gl_list_node_set_value): New function.
50832         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50833         (gl_array_list_implementation): Update.
50834         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50835         (gl_carray_list_implementation): Update.
50836         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50837         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50838         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50839         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50841         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50842         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50843         Update.
50844         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50845         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50846         (gl_sublist_list_implementation): Update.
50847
50848 2008-02-10  Bruno Haible  <bruno@clisp.org>
50849
50850         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50851         Needed when ELEMENT is #defined to 'some_type *'.
50852
50853 2008-02-10  Jim Meyering  <meyering@redhat.com>
50854
50855         New script and module: useless-if-before-free
50856         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50857         * build-aux/useless-if-before-free: New file.
50858         * modules/useless-if-before-free: New file.
50859
50860         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50861
50862         xstrtol_error: Fix typo.
50863         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50864         s/exit_failure/exit_status/.
50865
50866 2008-02-09  Jim Meyering  <meyering@redhat.com>
50867
50868         New script and module: gitlog-to-changelog
50869         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50870         * modules/gitlog-to-changelog: New file.
50871         * build-aux/gitlog-to-changelog: New file.
50872
50873 2008-02-08  Jim Meyering  <meyering@redhat.com>
50874
50875         Avoid two "parameter unused" warnings.
50876         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50877         Mark "st" as used.
50878
50879         Use "git COMMAND", not "git-COMMAND".
50880         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50881         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50882         * build-aux/git-version-gen: Use "git status", not "git-status".
50883
50884 2008-02-07  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50887         Avoids a crash on Windows Vista.
50888         Reported by Adam Strzelecki <ono@java.pl> via
50889         Simon Josefsson <simon@josefsson.org>.
50890
50891 2008-02-06  Bruno Haible  <bruno@clisp.org>
50892
50893         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50894         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50895         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50897         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50899         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50900         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50902         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50903         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50904         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50908         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50909         left-adjust flag.
50910         * tests/test-snprintf-posix.h (test_function): Likewise.
50911         * tests/test-sprintf-posix.h (test_function): Likewise.
50912         * tests/test-vasprintf-posix.c (test_function): Likewise.
50913         * doc/posix-functions/fprintf.texi: Update.
50914         * doc/posix-functions/printf.texi: Update.
50915         * doc/posix-functions/snprintf.texi: Update.
50916         * doc/posix-functions/sprintf.texi: Update.
50917         * doc/posix-functions/vfprintf.texi: Update.
50918         * doc/posix-functions/vprintf.texi: Update.
50919         * doc/posix-functions/vsnprintf.texi: Update.
50920         * doc/posix-functions/vsprintf.texi: Update.
50921         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50922
50923 2008-02-06  Bruno Haible  <bruno@clisp.org>
50924
50925         Fix bug introduced on 2008-01-26.
50926         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50927
50928 2008-02-06  Bruno Haible  <bruno@clisp.org>
50929
50930         Fix bug introduced on 2007-06-10.
50931         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50932         !NEED_PRINTF_FLAG_ZERO.
50933
50934 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50935
50936         getloadavg: use libperfstat on AIX5
50937         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50938
50939 2008-02-03  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/diffseq.h: Add comments about required #includes.
50942         Reported by Michael Biggs <gnulib@doubleplum.net>.
50943
50944 2008-02-01  Bruno Haible  <bruno@clisp.org>
50945
50946         * users.txt: Add gnuit.
50947
50948 2008-01-31  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/md4.c (set_uint32): Mark as inline.
50951         * lib/md5.c (set_uint32): Likewise.
50952         * lib/sha1.c (set_uint32): Likewise.
50953         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50954         * m4/md5.m4 (gl_MD5): Likewise.
50955         * m4/sha1.m4 (gl_SHA1): Likewise.
50956
50957 2008-01-31  Jim Meyering  <meyering@redhat.com>
50958
50959         Use "sizeof VAR", rather than a literal "4".
50960         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50961         * lib/md4.c (md4_read_ctx): Likewise.
50962         * lib/sha1.c (sha1_read_ctx): Likewise.
50963
50964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50965
50966         * tests/test-sha1.c: New file, based on test-md5.c.
50967
50968         * modules/crypto/sha1-tests: New file.
50969
50970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50971
50972         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50973
50974 2008-01-31  Jim Meyering  <meyering@redhat.com>
50975
50976         Prefer "sizeof v" over the equivalent "4".
50977         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50978         * lib/md5.c (set_uint32): Likewise.
50979         * lib/sha1.c (set_uint32): Likewise.
50980
50981 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50982
50983         * lib/sha1.c (set_uint32): Mark function as static.
50984
50985 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50986
50987         md2: clarify comments to say that alignment is not required.
50988         * lib/md2.h: Remove warning about alignment in comment.
50989         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50990         never been required.
50991
50992 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50993
50994         md4: adapt alignment constraint fix from sha1.
50995         * lib/md4.c (set_uint32): New function, from sha1.c
50996         (md4_read_ctx): Use it.
50997         (md4_finish_ctx): Doc fix.
50998         * lib/md4.h: Doc fix.
50999
51000 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51001
51002         md5: adapt alignment constraint fix from sha1.
51003         * lib/md5.c (set_uint32): New function, from sha1.c
51004         (md5_read_ctx): Use it.
51005         (md5_finish_ctx): Doc fix.
51006         * lib/md5.h: Doc fix.
51007
51008 2008-01-30  Peter Palfrader  <weasel@debian.org>
51009
51010         sha1: remove the result buffer alignment constraint
51011         * lib/sha1.c (set_uint32): New function.
51012         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51013         constraint.
51014         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51015         * lib/sha1.h: Likewise.
51016
51017 2008-01-30  Andreas Schwab  <schwab@suse.de>
51018             Bruno Haible  <bruno@clisp.org>
51019
51020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51021         correct definition of LDBL_MIN_EXP.
51022
51023 2008-01-30  Karl Berry  <karl@gnu.org>
51024
51025         * config/srclist-update: try to preserve x bit on updates.
51026         * config/srclistvars.sh: update for karl.
51027
51028 2008-01-29  Jim Meyering  <meyering@redhat.com>
51029
51030         vasnprintf.c: Avoid warning about unused label
51031         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51032         "overflow" label definition and associated code with the
51033         same cpp condition that guards the sole use of that label.
51034
51035 2008-01-26  Bruno Haible  <bruno@clisp.org>
51036
51037         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51038         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51039         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51040         * lib/isnanl-nolibm.h (isnanl): Likewise.
51041         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51042
51043 2008-01-26  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51046         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51047
51048 2008-01-26  Bruno Haible  <bruno@clisp.org>
51049
51050         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51051         GCC >= 4.0 built-in.
51052         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51053
51054 2008-01-26  Bruno Haible  <bruno@clisp.org>
51055
51056         Rename isnan, applicable to 'double' only, to isnand.
51057         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51058         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51059         (configure.ac): Update.
51060         (Include): Replace "isnan.h" with "isnand.h".
51061         * m4/isnand.m4: Renamed from m4/isnan.m4.
51062         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51063         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51064         instead of isnan.c.
51065         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51066         instead of HAVE_ISNAN_IN_LIBC.
51067         (isnand): Renamed from isnan.
51068         * lib/isnand.c: New file.
51069         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51070         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51071         (Makefile.am): Update.
51072         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51073         Include isnand.h instead of isnan.h.
51074         (main): Test isnand instead of isnan.
51075         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51076         isnan-nolibm.
51077         * modules/frexp (Depends-on): Likewise.
51078         * modules/frexp-tests (Depends-on): Likewise.
51079         * modules/frexp-nolibm (Depends-on): Likewise.
51080         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51081         * modules/isfinite (Depends-on): Likewise.
51082         * modules/round-tests (Depends-on): Likewise.
51083         * modules/signbit (Depends-on): Likewise.
51084         * modules/signbit-tests (Depends-on): Likewise.
51085         * modules/snprintf-posix (Depends-on): Likewise.
51086         * modules/sprintf-posix (Depends-on): Likewise.
51087         * modules/trunc-tests (Depends-on): Likewise.
51088         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51089         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51090         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51091         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51092         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51093         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51094         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51095         * modules/vasnprintf-posix (Depends-on): Likewise.
51096         * modules/vasprintf-posix (Depends-on): Likewise.
51097         * modules/vfprintf-posix (Depends-on): Likewise.
51098         * modules/vsnprintf-posix (Depends-on): Likewise.
51099         * modules/vsprintf-posix (Depends-on): Likewise.
51100         * lib/frexp.c: Include isnand.h instead of isnan.h.
51101         (ISNAN): Set to isnand instead of isnan.
51102         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51103         (gl_isfinited): Use isnand instead of isnan.
51104         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51105         (gl_signbitd): Use isnand instead of isnan.
51106         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51107         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51108         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51109         (main): Use isnand instead of isnan.
51110         * tests/test-round1.c: Include isnand.h.
51111         (main): Use isnand instead of isnan.
51112         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51113         (ISNAN): Set to isnand instead of isnan.
51114         * tests/test-trunc1.c: Include isnand.h.
51115         (main): Use isnand instead of isnan.
51116         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51117         (equal): Use isnand instead of isnan.
51118         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51119         isnand-nolibm.
51120         * NEWS: Mention the change.
51121
51122 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51123             Bruno Haible  <bruno@clisp.org>
51124
51125         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51126         the GCC builtins for signbits are present and set
51127         REPLACE_SIGNBIT_USING_GCC if so.
51128         * lib/math.in.h (signbit): Define using GCC builtins if
51129         REPLACE_SIGNBIT_USING_GCC is set.
51130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51131         REPLACE_SIGNBIT_USING_GCC.
51132         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51133
51134 2008-01-25  Jim Meyering  <meyering@redhat.com>
51135
51136         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51137         * lib/poll.c: Include <config.h>, not "config.h".
51138         * tests/test-getaddrinfo.c: Likewise.
51139
51140 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51141
51142         * modules/sockets-tests: New file.
51143
51144 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51145
51146         * modules/sockets: New module, can be used to call WSA_Startup and
51147         WSA_Cleanup when needed.
51148
51149         * lib/sockets.h, lib/sockets.c: New files.
51150
51151         * m4/sockets.m4: New file.
51152
51153         * tests/test-sockets.c: New file.
51154
51155 2008-01-19  Bruno Haible  <bruno@clisp.org>
51156
51157         * doc/posix-headers: Renamed from doc/headers.
51158         * doc/posix-functions: Renamed from doc/functions.
51159         * doc/gnulib.texi: Update.
51160
51161 2008-01-19  Bruno Haible  <bruno@clisp.org>
51162
51163         * doc/glibc-functions/strcasestr.texi: Include contents of
51164         doc/functions/strcasestr.texi, fixing the list of platforms.
51165         * doc/functions/strcasestr.texi: Remove file.
51166
51167 2008-01-19  Bruno Haible  <bruno@clisp.org>
51168
51169         * doc/glibc-functions/memmem.texi: Include contents of
51170         doc/functions/memmem.texi.
51171         * doc/functions/memmem.texi: Remove file.
51172
51173 2008-01-18  Bruno Haible  <bruno@clisp.org>
51174
51175         * doc/glibc-functions/*.texi: New files.
51176         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51177         to use the new files.
51178
51179 2008-01-17  Bruno Haible  <bruno@clisp.org>
51180
51181         * tests/test-gethostname.c (main): Fix printf statement.
51182
51183 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51184
51185         * modules/gethostname-tests: New file.
51186
51187         * tests/test-gethostname.c: New file.
51188
51189 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51190
51191         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51192         used by the UNAME case.  Reported by Bruno Haible
51193         <bruno@clisp.org>.
51194
51195 2008-01-17  Eric Blake  <ebb9@byu.net>
51196
51197         Convert c-strcasestr to be more efficient.
51198         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51199         (Depends-on): Add c-strcase, remove malloca, strnlen.
51200         * tests/test-c-strcasestr.c (main): Enhance test.
51201         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51202
51203 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51204
51205         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51206         Use it in creating po/Makevars.
51207
51208 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51209
51210         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51211         Applications that requires it should initialize libgcrypt
51212         manually.
51213
51214 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51215
51216         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51217
51218 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         Fix problem with getdate on mingw32 reported by Simon Josefsson
51221         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51222         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51223         tzname", when deciding whether to declare tzname.
51224         * lib/strftime.c (tzname): Likewise.
51225
51226 2008-01-15  Bruno Haible  <bruno@clisp.org>
51227
51228         Work around a MacOS X 10.5 bug in frexpl().
51229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51230         * doc/functions/frexpl.texi: Document the bug.
51231         Reported by Elias Pipping <pipping@gentoo.org>.
51232
51233 2008-01-14  Eric Blake  <ebb9@byu.net>
51234
51235         Touch up previous patch.
51236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51237         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51238
51239         Convert strcasestr module to use Two-Way algorithm.
51240         * modules/strcasestr-simple: New module, based on the old
51241         strcasestr, but with Two-Way rather than KMP.
51242         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51243         * lib/string.in.h (rpl_strcasestr): Declare.
51244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51245         performance.
51246         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51247         * modules/string (Makefile.am): Support strcasestr.
51248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51249         * modules/strcasestr-tests (Depends-on): Check for alarm.
51250         * tests/test-strcasestr.c: Augment test.
51251         * lib/str-two-way.h: Clean up stray macro.
51252         * NEWS: Document new module.
51253         * MODULES.html.sh (string handling): Likewise.
51254         * doc/functions/strcasestr.texi: New file.
51255         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51256         here, since it is not a POSIX function.
51257
51258 2008-01-14  Colin Watson  <cjwatson@debian.org>
51259             Bruno Haible  <bruno@clisp.org>
51260
51261         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51262         works fine; if not, set REPLACE_STRSIGNAL.
51263         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51265         REPLACE_STRSIGNAL.
51266         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51267         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51268         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51269
51270 2008-01-14  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/strsignal (Include): Change to <string.h>.
51273
51274 2008-01-14  Colin Watson  <cjwatson@debian.org>
51275
51276         * modules/argp (Notice): Add a notice recommending to change
51277         XGETTEXT_OPTIONS.
51278         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51279
51280 2008-01-13  Colin Watson  <cjwatson@debian.org>
51281
51282         * modules/strsignal-tests: New file.
51283         * tests/test-strsignal.c: New file.
51284
51285         * lib/strsignal.c: New file, from glibc with modifications.
51286         * lib/siglist.h: New file, from glibc with modifications.
51287         * lib/string.in.h (strsignal): New declaration.
51288         * m4/strsignal.m4: New file.
51289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51290         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51291         * modules/strsignal: New file.
51292         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51293         HAVE_DECL_STRSIGNAL.
51294
51295 2008-01-13  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51298         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51299         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51300         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51301
51302 2008-01-13  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51305         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51306         * lib/argp.h (__attribute__): Likewise.
51307         * lib/c-stack.c (__attribute__): Likewise.
51308         * lib/error.h (__attribute__): Likewise.
51309         * lib/fts.c (__attribute__): Likewise.
51310         * lib/openat.h (__attribute__): Likewise.
51311         * lib/stdio.in.h (__attribute__): Likewise.
51312         * lib/string.in.h (__attribute__): Likewise.
51313         * lib/utimens.c (__attribute__): Likewise.
51314         * lib/vasnprintf.h (__attribute__): Likewise.
51315         * lib/xalloc.h (__attribute__): Likewise.
51316         * lib/xprintf.h (__attribute__): Likewise.
51317         * lib/xstrtol.h (__attribute__): Likewise.
51318         * lib/xvasprintf.h (__attribute__): Likewise.
51319
51320 2008-01-12  Bruno Haible  <bruno@clisp.org>
51321
51322         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51323         * doc/glibc-headers/a.out.texi: New file.
51324         * doc/glibc-headers/aliases.texi: New file.
51325         * doc/glibc-headers/alloca.texi: New file.
51326         * doc/glibc-headers/ar.texi: New file.
51327         * doc/glibc-headers/argp.texi: New file.
51328         * doc/glibc-headers/argz.texi: New file.
51329         * doc/glibc-headers/byteswap.texi: New file.
51330         * doc/glibc-headers/crypt.texi: New file.
51331         * doc/glibc-headers/endian.texi: New file.
51332         * doc/glibc-headers/envz.texi: New file.
51333         * doc/glibc-headers/err.texi: New file.
51334         * doc/glibc-headers/error.texi: New file.
51335         * doc/glibc-headers/execinfo.texi: New file.
51336         * doc/glibc-headers/fpu_control.texi: New file.
51337         * doc/glibc-headers/fstab.texi: New file.
51338         * doc/glibc-headers/fts.texi: New file.
51339         * doc/glibc-headers/getopt.texi: New file.
51340         * doc/glibc-headers/ieee754.texi: New file.
51341         * doc/glibc-headers/ifaddrs.texi: New file.
51342         * doc/glibc-headers/libintl.texi: New file.
51343         * doc/glibc-headers/mcheck.texi: New file.
51344         * doc/glibc-headers/mntent.texi: New file.
51345         * doc/glibc-headers/obstack.texi: New file.
51346         * doc/glibc-headers/paths.texi: New file.
51347         * doc/glibc-headers/printf.texi: New file.
51348         * doc/glibc-headers/pty.texi: New file.
51349         * doc/glibc-headers/resolv.texi: New file.
51350         * doc/glibc-headers/shadow.texi: New file.
51351         * doc/glibc-headers/sysexits.texi: New file.
51352         * doc/glibc-headers/ttyent.texi: New file.
51353
51354 2008-01-12  Jim Meyering  <meyering@redhat.com>
51355
51356         announce-gen: emit Gnulib's git-based version string.
51357         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51358         New option --gnulib-version=V, where V is expected to be
51359         the output of running git describe in the gnulib directory.
51360         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51361         not useful, and plan to stop publishing an xdelta file with each
51362         coreutils release.
51363
51364         * build-aux/announce-gen: Also check for lzma-compressed files.
51365
51366 2008-01-11  Bruno Haible  <bruno@clisp.org>
51367
51368         * tests/test-memmem.c (main): Increase maximum allowed time.
51369         * tests/test-strstr.c (main): Likewise.
51370
51371 2008-01-11  Bruno Haible  <bruno@clisp.org>
51372
51373         * doc/functions/memmem.texi: Add more precisions about platforms.
51374         * doc/functions/strstr.texi: Likewise.
51375
51376 2008-01-10  Eric Blake  <ebb9@byu.net>
51377
51378         * m4/strstr.m4: Delete cruft from copy-n-paste.
51379         Reported by Bruno Haible.
51380
51381 2008-01-10  Bruno Haible  <bruno@clisp.org>
51382
51383         Make c-strstr rely on strstr.
51384         * lib/c-strstr.c: Don't include str-kmp.h.
51385         (c_strstr): Define in terms of strstr.
51386         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51387         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51388
51389 2008-01-10  Bruno Haible  <bruno@clisp.org>
51390
51391         * doc/gnulib.texi (String Functions in C Locale): New section.
51392         * doc/c-ctype.texi: New file.
51393         * doc/c-strcase.texi: New file.
51394         * doc/c-strcaseeq.texi: New file.
51395         * doc/c-strcasestr.texi: New file.
51396         * doc/c-strstr.texi: New file.
51397         * doc/c-strtod.texi: New file.
51398         * doc/c-strtold.texi: New file.
51399
51400 2008-01-10  Eric Blake  <ebb9@byu.net>
51401
51402         * lib/relocatable.h: Fix a comment.
51403
51404 2008-01-10  Eric Blake  <ebb9@byu.net>
51405
51406         Share two-way algorithm.
51407         * lib/str-two-way.h: New file, merged from...
51408         * lib/memmem.c: ...here...
51409         * lib/strstr.c: ...and here.
51410         * modules/memmem (Files): Use it.
51411         * modules/strstr (Files): Likewise.
51412
51413         Avoid quadratic strstr implementations.
51414         * lib/strstr.c: New file.
51415         * m4/strstr.m4: Likewise.
51416         * modules/strstr: Likewise.
51417         * modules/strstr-tests: Likewise.
51418         * tests/test-strstr.c: Likewise.
51419         * lib/string.in.h (rpl_strstr): Declare.
51420         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51422         * modules/string (Makefile.am): Likewise.
51423         * MODULES.html.sh (string handling): Mention new module.
51424         * doc/functions/strstr.texi (strstr): Document the bug.
51425
51426 2008-01-10  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/relocatable.h (relocate): State whether result is freshly
51429         allocated or not.
51430         * lib/relocatable.c (relocate): Return a freshly allocated string
51431         instead of a pointer to a privately held string.
51432         Reported by Sylvain Beucler <beuc@gnu.org>.
51433
51434 2008-01-10  Colin Watson  <cjwatson@debian.org>
51435
51436         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51437         s/S_ISNLK/S_ISLNK/.
51438
51439 2008-01-09  Bruno Haible  <bruno@clisp.org>
51440
51441         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51442         and other files.
51443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51444         if it's only a guess.
51445         * modules/memmem: Simplify by depending on memmem-simple.
51446
51447 2008-01-09  Bruno Haible  <bruno@clisp.org>
51448
51449         Work around OpenBSD 4.0 tdelete() bug.
51450         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51451         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51452         macros and don't redefine the enum values.
51453         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51454         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51455         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51456
51457 2008-01-09  Bruno Haible  <bruno@clisp.org>
51458
51459         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51460         (main): Don't perform the tests if setlocale did not install a UTF-8
51461         locale. Needed on OpenBSD 4.0.
51462         * modules/wcwidth-tests (Depends-on): Add localcharset.
51463
51464 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51465
51466         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51467         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51468         * NEWS: announce this.
51469         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51470
51471 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51472         and Eric Blake  <ebb9@byu.net>
51473
51474         Add memmem-simple module.
51475         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51476         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51477         * modules/memmem-simple: New file.
51478         * modules/memmem (Description): Tweak.
51479         * MODULES.html.sh (string handling): Mention new module.
51480         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51481         addressed by memmem-simple.
51482         * NEWS: Document the difference.
51483
51484 2008-01-09  Eric Blake  <ebb9@byu.net>
51485
51486         Give gcc some memmem optimization hints.
51487         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51488         (strcasestr): Declare as pure.
51489         * modules/memmem (Maintainer): Claim my implementation.
51490
51491 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51492
51493         Support AIX 6.1 and higher.
51494         * build-aux/config.libpath: Likewise.
51495         * build-aux/config.rpath: Likewise.
51496
51497 2008-01-08  Jim Meyering  <meyering@redhat.com>
51498             Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51501         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51502         Reported by Peter Fales in
51503         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51504
51505 2008-01-08  Bruno Haible  <bruno@clisp.org>
51506
51507         * modules/unictype/category-of (Depends-on): Add
51508         unictype/category-none.
51509         * modules/unictype/category-and-tests (Depends-on): Add
51510         unictype/category-{L,N,Lu,Nd}.
51511         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51512         * modules/unictype/category-or-tests (Depends-on): Add
51513         unictype/category-{L,N}.
51514         * modules/unictype/category-name-tests (Depends-on): Add
51515         unictype/category-{Z,Nl}.
51516         Reported by Simon Josefsson.
51517
51518 2008-01-08  Bruno Haible  <bruno@clisp.org>
51519
51520         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51521         convention better.
51522         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51523         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51524         Reported by Peter Miller <millerp@canb.auug.org.au>.
51525
51526 2008-01-08  Eric Blake  <ebb9@byu.net>
51527
51528         Rewrite memmem to guarantee linear complexity without malloc.
51529         * lib/memmem.c (memmem): Use Two-Way rather than
51530         Knuth-Morris-Pratt, to allow O(1) space usage.
51531         (critical_factorization, two_way_short_needle)
51532         (two_way_long_needle): New functions.
51533         (knuth_morris_pratt): Delete.
51534         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51535         Add stdint.
51536         * tests/test-memmem.c (main): Add tests for periodic needle and
51537         sublinear performance.
51538         * doc/functions/memmem.texi (memmem): Document other deficiencies
51539         in cygwin and older glibc.
51540
51541 2008-01-08  Bruno Haible  <bruno@clisp.org>
51542
51543         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51544         augmentation.
51545
51546 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51547
51548         Add a configure time option: --disable-acl.
51549         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51550         AC_ARG_ENABLE(acl).
51551
51552 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51553
51554         * tests/test-localename.c: Don't include obsolete "setenv.h".
51555
51556         * modules/localename-tests (Depends-on): Need unsetenv.
51557
51558 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51559
51560         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51561
51562 2008-01-06  Colin Watson  <cjwatson@debian.org>
51563
51564         * users.txt: Add man-db.
51565
51566 2008-01-07  Bruno Haible  <bruno@clisp.org>
51567
51568         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51569         previous section name.
51570
51571 2008-01-07  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/progname.c (set_program_name): Don't strip off a leading
51574         "lt-" prefix outside a .libs directory.
51575         Suggested by Paul Eggert.
51576
51577 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51578             Bruno Haible  <bruno@clisp.org>
51579
51580         Improve memory cleanup in 'relocatable' module.
51581         * lib/relocatable.h (compute_curr_prefix): Change return type to
51582         'char *'.
51583         * lib/relocatable.c (compute_curr_prefix): Change return type to
51584         'char *'. Free curr_installdir after use.
51585         (relocate): Free curr_prefix_better after use.
51586         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51587
51588 2008-01-01  Bruno Haible  <bruno@clisp.org>
51589
51590         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51591         failure on older glibc systems.
51592         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51593
51594 2008-01-05  Eric Blake  <ebb9@byu.net>
51595
51596         Avoid quadratic system memmem.
51597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51598         Reported by Ralf Wildenhues.
51599
51600         Fix memmem test for mingw.
51601         * modules/memmem-tests (configure.ac): Check for alarm.
51602         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51603         it.
51604         * doc/functions/memmem.texi: New file.
51605         * doc/gnulib.texi (Function Substitutes): Add memmem.
51606         Reported by Bruno Haible.
51607
51608 2008-01-04  Bruno Haible  <bruno@clisp.org>
51609
51610         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51611         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51612         gl_HEADER_STRING_H_DEFAULTS.
51613
51614 2008-01-04  Eric Blake  <ebb9@byu.net>
51615
51616         Shorten duration of memmem test.
51617         * tests/test-memmem.c (main): Use alarm to declare failure if test
51618         is taking too long.
51619         Reported by Ralf Wildenhues.
51620
51621 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51622
51623         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51624         string, needed by strerror.
51625
51626 2008-01-03  Colin Watson  <cjwatson@debian.org>
51627             Bruno Haible  <bruno@clisp.org>
51628
51629         * doc/gnulib-tool.texi (Localization): New section.
51630
51631 2008-01-02  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51634         variables to 'unsigned char *' type.
51635         Reported by Paul Eggert.
51636
51637 2008-01-02  Jim Meyering  <jim@meyering.net>
51638
51639         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51640
51641 2007-12-31  Jim Meyering  <jim@meyering.net>
51642
51643         Avoid use of private FTS type name.
51644         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51645
51646 2007-12-30  Karl Berry  <karl@gnu.org>
51647
51648         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51649         work around defect in Texinfo and/or the standalone Info browser.
51650
51651 2007-12-30  Bruno Haible  <bruno@clisp.org>
51652
51653         Unify 5 copies of the KMP code.
51654         * lib/str-kmp.h: New file.
51655         * lib/c-strcasestr.c: Include str-kmp.h.
51656         (knuth_morris_pratt): Remove function.
51657         (c_strcasestr): Update.
51658         * lib/c-strstr.c: Include str-kmp.h.
51659         (knuth_morris_pratt): Remove function.
51660         (c_strcasestr): Update.
51661         * lib/mbscasestr.c: Include str-kmp.h.
51662         (knuth_morris_pratt_unibyte): Remove function.
51663         * lib/mbsstr.c: Include str-kmp.h.
51664         (knuth_morris_pratt_unibyte): Remove function.
51665         * lib/strcasestr.c: Include str-kmp.h.
51666         (knuth_morris_pratt): Remove function.
51667         (strcasestr): Update.
51668         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51669         * modules/c-strstr (Files): Likewise.
51670         * modules/mbscasestr (Files): Likewise.
51671         * modules/mbsstr (Files): Likewise.
51672         * modules/strcasestr (Files): Likewise.
51673         Suggested by Paul Eggert.
51674
51675 2007-12-30  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51678         defined.
51679
51680 2007-12-30  Bruno Haible  <bruno@clisp.org>
51681
51682         * lib/xmalloca.h: Include xalloc.h.
51683         (xnmalloca): New macro.
51684
51685 2007-12-30  Bruno Haible  <bruno@clisp.org>
51686
51687         * lib/malloca.h (nmalloca): New macro.
51688         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51689         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51690         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51691         knuth_morris_pratt_multibyte): Likewise.
51692         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51693         knuth_morris_pratt_multibyte): Likewise.
51694         * lib/memmem.c (knuth_morris_pratt): Likewise.
51695         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51696
51697 2007-12-25  Bruno Haible  <bruno@clisp.org>
51698
51699         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51700         * lib/glob.c: Don't include openat.h.
51701         (link_exists2_p): Add back the code that deals with the
51702         !GLOB_ALTDIRFUNC case.
51703         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51704         let it do the filename concatenation.
51705         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51706         * modules/glob (Depends-on): Remove openat.
51707
51708 2007-12-31  Bruno Haible  <bruno@clisp.org>
51709
51710         * modules/dirfd (License): Change to LGPLv2+.
51711         Approved by Jim Meyering.
51712
51713 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51714
51715         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51716         when multiplying M by sizeof (size_t).
51717
51718 2007-12-10  Martin Lambers  <marlam@marlam.de>
51719
51720         Override getpagesize on mingw.
51721         * lib/getpagesize.c: New file.
51722         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51723         * modules/getpagesize (Files): Add lib/getpagesize.c.
51724         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51726         REPLACE_GETPAGESIZE.
51727         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51728
51729 2007-12-25  Bruno Haible  <bruno@clisp.org>
51730
51731         * modules/localcharset (Notice): New field.
51732         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51733         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51734
51735 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51736             Bruno Haible  <bruno@clisp.org>
51737
51738         Avoid using the syntax symbol() in formatted documentation.
51739         * MODULES.html.sh (func_module): When replacing symbol() with a
51740         hyperlink, remove the parentheses. Show an error if some remain.
51741         Recognize and render the '...' syntax.
51742         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51743         Rework. Add paragraph about GCC's inlining.
51744         * doc/alloca.texi: Likewise.
51745         * doc/error.texi: Remove parentheses from symbol reference.
51746         * doc/gnulib-intro.texi: Likewise.
51747         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51748         * modules/fnmatch (Description): Reword to say "the ... function".
51749         * modules/full-read (Description): Likewise.
51750         * modules/full-write (Description): Likewise.
51751         * modules/safe-read (Description): Likewise.
51752         * modules/safe-write (Description): Likewise.
51753         * modules/strchrnul (Description): Likewise.
51754         * modules/trim (Description): Likewise.
51755         * modules/error (Description): Remove parentheses from symbol
51756         references.
51757         * modules/verror (Description): Likewise.
51758         Reported by Karl Berry.
51759
51760 2007-12-25  Bruno Haible  <bruno@clisp.org>
51761
51762         Fixup after 2007-10-16 commit.
51763         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51764
51765 2007-12-24  Bruno Haible  <bruno@clisp.org>
51766
51767         Make --enable-relocatable work with DESTDIR.
51768         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51769         to compute installdir from destprog.
51770         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51771         also set the RELOC_DESTDIR variable.
51772         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51773
51774 2007-12-24  Bruno Haible  <bruno@clisp.org>
51775
51776         Fix link error due to xalloc_die().
51777         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51778         of xreadlink.
51779         * lib/relocwrapper.c: Update comments.
51780         * build-aux/install-reloc: Remove xreadlink.c from file list.
51781         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51782         xreadlink.c.
51783         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51784
51785 2007-12-24  Bruno Haible  <bruno@clisp.org>
51786
51787         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51788         * lib/setenv.h: Remove file.
51789         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51790         lib/setenv.h.
51791         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51792         (Depends-on): Add stdlib.
51793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51794         gl_FUNC_UNSETENV.
51795         (Include): Replace setenv.h with <stdlib.h>.
51796         * modules/unsetenv: New file.
51797         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51798         * lib/unsetenv.c: Include <stdlib.h> first.
51799         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51800         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51801         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51802         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51803         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51804         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51806         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51807         * doc/functions/unsetenv.texi: Update.
51808         * modules/xsetenv (Depends-on): Add unsetenv.
51809         * modules/getdate (Depends-on): Likewise.
51810         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51811         * lib/xsetenv.c: Don't include setenv.h.
51812         * lib/getdate.y: Likewise.
51813         * lib/relocwrapper.c: Likewise.
51814         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51815         (Depends-on): Add stdlib.
51816         * NEWS: Mention the changes.
51817         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51818
51819 2007-12-23  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51822         indentation.
51823
51824 2007-12-23  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/c-strcasestr.c: Add more comments.
51827         * lib/c-strstr.c: Likewise.
51828         * lib/mbscasestr.c: Likewise.
51829         * lib/mbsstr.c: Likewise.
51830         * lib/strcasestr.c: Likewise.
51831         * lib/memmem.c: Likewise.
51832
51833 2007-12-23  Bruno Haible  <bruno@clisp.org>
51834
51835         * tests/test-memmem.c: Include <string.h> first.
51836
51837 2007-12-22  Bruno Haible  <bruno@clisp.org>
51838
51839         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51840         the contents of $testsbase.
51841         Reported by Ralf Wildenhues.
51842
51843 2007-12-22  Bruno Haible  <bruno@clisp.org>
51844
51845         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51846         two variables local_ldadd_before, local_ldadd_last.
51847
51848 2007-12-20  Eric Blake  <ebb9@byu.net>
51849
51850         Work around circular library issue when cross-compiling.
51851         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51852         that progname.o does not need to pull in rpl_memcmp.
51853
51854 2007-12-19  Eric Blake  <ebb9@byu.net>
51855
51856         Fix memmem to avoid O(n^2) worst-case complexity.
51857         * lib/memmem.c (knuth_morris_pratt): New function.
51858         (memmem): Use it if first few naive iterations fail.
51859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51860         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51861         * modules/memchr (License): Likewise.
51862         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51863         malloca.
51864         * tests/test-memmem.c: Rewrite, borrowing ideas from
51865         test-mbsstr1.c; the old version wouldn't even compile!
51866         * modules/memmem-tests: New file.
51867         * lib/string.in.h (rpl_memmem): Add declaration.
51868         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51870         REPLACE_MEMMEM.
51871
51872 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51875         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51876         before any system include files, and undef after them all.  This
51877         should fix a problem on VMS reported by John E. Malmberg in
51878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51879
51880 2007-12-17  Eric Blake  <ebb9@byu.net>
51881
51882         Revert addition of verify, for BSD/OS.
51883         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51884         can't handle large files, for the sake of obsolete platforms.
51885         * modules/fseeko (Depends-on): Remove verify.
51886         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51887         * doc/functions/ftello.texi (ftello): Likewise.
51888         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51889         Reported by Larry Jones.
51890
51891 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51892
51893         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51894         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51895
51896 2007-12-17  Jim Meyering  <meyering@redhat.com>
51897
51898         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51899         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51900         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51901         * modules/getcwd (Depends-on): Add openat.
51902         Reported by Petr Salinger.
51903
51904 2007-12-17  Bruno Haible  <bruno@clisp.org>
51905
51906         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51907         avoid a segmentation fault of the configure test on x86_64 systems.
51908
51909 2007-12-15  Jim Meyering  <meyering@redhat.com>
51910
51911         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51912
51913 2007-12-13  Eric Blake  <ebb9@byu.net>
51914
51915         Another fseek test.
51916         * tests/test-fseek.c (main): Also test ungetc handling.
51917         * tests/test-fseeko.c (main): Likewise.
51918         * modules/fseeko (Depends-on): Add verify.
51919         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51920         large.
51921         Reported by Larry Jones.
51922
51923         Fix fseeko on mingw.
51924         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51925         seek.
51926
51927         Beef up fseek tests.
51928         * tests/test-fseek.c (main): Also test eof handling.
51929         * tests/test-fseeko.c (main): Likewise.
51930         Reported by Larry Jones.
51931
51932 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51933
51934         Fix fseeko on BSD-based platforms.
51935         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51936         successful seek.
51937
51938 2007-12-12  Eric Blake  <ebb9@byu.net>
51939
51940         Allow circular dependency of separate libtests.a
51941         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51942         when use_libtests.
51943
51944 2007-12-11  Eric Blake  <ebb9@byu.net>
51945
51946         Fix bug with -0.0L in previous patch.
51947         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51948         * tests/test-isnan.c (main): Also test on zeroes.
51949         * tests/test-isnanf.c (main): Likewise.
51950         * tests/test-isnanl.h (main): Likewise.
51951
51952         Detect pseudo-denormals on x86 even when cross-compiling.
51953         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51954         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51955         invalid bit patterns that happen to satisfy ==.
51956
51957         Avoid link failures with separate libtests.a.
51958         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51959         last, to satisfy circular dependencies.
51960
51961 2007-12-11  Eric Blake  <ebb9@byu.net>
51962         and Bruno Haible  <bruno@clisp.org>
51963
51964         Fix OpenBSD 4.0 <float.h> handling of long double.
51965         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51966         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51967         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51968
51969 2007-12-11  Jim Meyering  <meyering@redhat.com>
51970
51971         * users.txt: Add libvirt.
51972
51973         Support versions of autoconf prior to 2.59c.
51974         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51975         if it is not already defined.
51976
51977 2007-12-09  Bruno Haible  <bruno@clisp.org>
51978
51979         Let 'gnulib-tool --import' collect sources needed for the tests in
51980         tests/ rather than in lib/.
51981         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51982         argument. If true, add rules to generate libtests.a, and put libtests.a
51983         into $(LDADD). Consider source files in subdirectories and set
51984         uses_subdirs.
51985         (func_emit_initmacro_start, func_emit_initmacro_end,
51986         func_emit_initmacro_done): Pass all arguments explicitly.
51987         (func_import): Determine two module lists main_modules,
51988         testsrelated_modules. Determine use_libtests. Determine two variables
51989         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51990         instead of just sed_transform_lib_file. Determine two variables
51991         main_files and testsrelated_files. Compute 'files' as the union of
51992         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51993         func_add_or_update. In the generated gnulib-comp.m4, collect the
51994         object files for tests/ in different variables than those for lib/.
51995         Substitute LIBTESTS_LIBDEPS.
51996         (func_create_testdir): Combine the uses_subdirs results from
51997         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51998
51999 2007-12-09  Bruno Haible  <bruno@clisp.org>
52000
52001         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52002         the build-aux directory.
52003
52004 2007-12-09  Bruno Haible  <bruno@clisp.org>
52005
52006         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52007         introduced on 2006-09-09.
52008
52009 2007-12-07  Jim Meyering  <meyering@redhat.com>
52010
52011         Let these macros work also with autoconf-2.59.
52012         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52013         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52014         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52015
52016 2007-12-06  Jim Meyering  <meyering@redhat.com>
52017
52018         Avoid a configure-time syntax error in gl_FUNC_ACL.
52019         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52020         function in each branch, before testing the cache variable.
52021
52022 2007-12-04  Eric Blake  <ebb9@byu.net>
52023
52024         Make scripts executable.
52025         * build-aux/config.guess: Add execute permissions.
52026         * build-aux/config.sub: Likewise.
52027         * build-aux/gendocs.sh: Likewise.
52028
52029         Fix frexp on mingw.
52030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52031         cross-compiling.
52032         * doc/functions/frexp.texi (frexp): Document the bug.
52033
52034         Make cygwin fseeko check more reliable.
52035         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52036         version numbers, rather than unrelated feature check.
52037         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52038         * doc/functions/ftello.texi (ftello): Likewise.
52039         Reported by Bruno Haible.
52040
52041         * m4/strerror.m4: Bump version number.
52042
52043 2007-12-03  Bruno Haible  <bruno@clisp.org>
52044
52045         * doc/functions/mprotect.texi: Mention the mingw problem.
52046
52047 2007-12-03  Eric Blake  <ebb9@byu.net>
52048
52049         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52050         REPLACE_STRERROR is initialized before this macro.
52051
52052 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52055         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52056         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52057         put -lsec in even for programs other than 'ls'.  This fixes a problem
52058         for gettext reported by Bruno Haible in
52059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52060         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52061         Add support for Solaris 10.  This isn't efficient, but should get the
52062         job done for now.
52063
52064 2007-12-03  James Youngman  <jay@gnu.org>
52065
52066         * doc/regexprops-generic.texi: change "an close-group" to "a
52067         close-group" and "illegal" to "not allowed".
52068
52069 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52070
52071         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52072         pr_byname.h. Needed for the rare case when the maintainer has done
52073         "make maintainer-clean" in the source directory and then attempts a
52074         build outside the source directory.
52075         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52076         scripts_byname.h.
52077
52078 2007-12-02  Martin Lambers <marlam@marlam.de>
52079             Bruno Haible  <bruno@clisp.org>
52080
52081         * lib/getpagesize.h: Remove file.
52082         * lib/unistd.in.h: Include declaration of getpagesize here.
52083         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52084         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52085         HAVE_SYS_PARAM_H.
52086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52087         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52088         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52089         (Depends-on): Add unistd.
52090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52091         (Include): Use <unistd.h> instead of getpagesize.h.
52092         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52093         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52094         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52095         gl_GETPAGESIZE invocation, already handled by module dependency.
52096         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52097
52098 2007-12-02  Bruno Haible  <bruno@clisp.org>
52099
52100         * modules/strings-tests: New file.
52101         * tests/test-strings.c: New file.
52102
52103         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52104         * lib/strings.in.h: New file.
52105         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52106         * m4/strings_h.m4: New file.
52107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52108         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52109         * modules/strings: New file.
52110         * modules/string (Makefile.am): Update.
52111         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52112         Reported by Karl Berry.
52113
52114 2007-12-01  Eric Blake  <ebb9@byu.net>
52115
52116         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52117         accomodate fix in cygwin 1.5.25.
52118
52119 2007-12-01  Jim Meyering  <meyering@redhat.com>
52120
52121         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52122         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52123         that would inhibit utf8-optimization of a regexp containing line-
52124         or buffer-anchors, e.g., `^', `$'.
52125
52126 2007-11-30  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52129         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52130         glthread_recursive_lock_init.
52131         * lib/lock.c (glthread_recursive_lock_init)
52132         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52133         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52134
52135 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         New function qset_acl, like set_acl but with syscall semantics.
52138         * lib/acl.h (qset_acl): New decl.
52139         * lib/acl.c (qset_acl): New function.
52140         (set_acl): Use new function.  Use more-consistent diagnostics.
52141
52142 2007-11-28  Jim Meyering  <meyering@redhat.com>
52143
52144         * modules/physmem (License): Change from GPL to LGPLv2+.
52145
52146 2007-11-26  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52149         'long double' type has excess precision.
52150         Reported by Jim Meyering in
52151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52152
52153 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52154
52155         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52156         Sync from <http://gnu.org/licenses>.
52157         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52158         with license text from same location.
52159         * doc/maintain.texi, doc/standards.texi:  Sync from
52160         <http://savannah.gnu.org/projects/gnustandards>.
52161
52162 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52163         and Jim Meyering  <meyering@redhat.com>
52164
52165         Adjust getdate' grammar to accept a slightly more regular language.
52166         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52167         Before, the former was rejected.
52168         * lib/getdate.y (digits_to_date_time): New function, factored
52169         out of ...
52170         (number): ...here.  Just call digits_to_date_time.
52171         (hybrid): New non-terminal to handle an <unsigned number,
52172         signed relative offset> sequence consistently.
52173
52174 2007-11-18  Jim Meyering  <meyering@redhat.com>
52175
52176         Pull my changes from coreutils:
52177         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52178         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52179         use of $gnulib_tool_option_extras, so that it's separated from the
52180         preceding argument.
52181
52182         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52183         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52184         parent destination directories before copying a file into place.
52185
52186 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52187
52188         bootstrap: work also with 4-argument variant of AC_INIT
52189         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52190
52191 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         Port test-getaddrinfo to Solaris.
52194         Problem reported by Bruno Haible in
52195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52196         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52197         explanation of setting 'hints'.
52198         Don't reject an implementation merely because it returns EAI_SERVICE.
52199         (EAI_SERVICE): Define to 0 if not defined.
52200
52201 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         The license of gnu-make and posix-shell is now "GPLed build tool".
52204         * modules/gnu-make (License): Likewise.
52205         * modules/posix-shell (License): Likewise.
52206
52207         New module posix-shell, for determining a POSIX shell
52208         or perhaps something that is close enough to a POSIX shell.
52209         * m4/posix-shell.m4: New file.
52210         * modules/posix-shell: New file.
52211
52212         * MODULES.html.sh: Mention new module.
52213
52214         New module gnu-make, for determining whether we're using GNU Make.
52215         * m4/gnu-make.m4: New file.
52216         * modules/gnu-make: New file.
52217         * MODULES.html.sh: Mention new module.
52218
52219 2007-11-14  Jim Meyering  <meyering@redhat.com>
52220
52221         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52222         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52223         use this macro to create a function _definition_.
52224         Remove useless "#undef ARGMATCH_DIE".
52225
52226 2007-11-14  Bruno Haible  <bruno@clisp.org>
52227
52228         * lib/config.charset: Update for OpenBSD 4.1.
52229         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52230
52231 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         Document 64-bit #if problems in stdint.texi.
52234         * doc/headers/stdint.texi (stdint.h): Mention problems with
52235         64-bit-#if, and how to work around them.
52236
52237         Don't insist on 'long long int' support in the preprocessor.  It
52238         breaks too many things.  For example, PRIdMAX still uses a 'long
52239         long int' format with the latest Sun compiler, even though
52240         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52241         preprocessor problem.  This causes the latest coreutils to dump
52242         core on Solaris 10 sparc with the Sun C compiler.
52243         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52244         the troublesome expressions at configure-time, not at #if-time.
52245         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52246         preprocessor.
52247         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52248         compile-time C checks, done at 'configure'-time.
52249         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52250         * modules/inttypes (Makefile): Substitute the new symbols that
52251         gl_INTTYPES_H now generates.
52252         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52253
52254 2007-11-12  Bruno Haible  <bruno@clisp.org>
52255
52256         Tests for Unicode character classification functions.
52257
52258         * modules/unictype/bidicategory-byname-tests: New file.
52259         * modules/unictype/bidicategory-name-tests: New file.
52260         * modules/unictype/bidicategory-of-tests: New file.
52261         * modules/unictype/bidicategory-test-tests: New file.
52262         * modules/unictype/block-list-tests: New file.
52263         * modules/unictype/block-of-tests: New file.
52264         * modules/unictype/block-test-tests: New file.
52265         * modules/unictype/category-C-tests: New file.
52266         * modules/unictype/category-Cc-tests: New file.
52267         * modules/unictype/category-Cf-tests: New file.
52268         * modules/unictype/category-Cn-tests: New file.
52269         * modules/unictype/category-Co-tests: New file.
52270         * modules/unictype/category-Cs-tests: New file.
52271         * modules/unictype/category-L-tests: New file.
52272         * modules/unictype/category-Ll-tests: New file.
52273         * modules/unictype/category-Lm-tests: New file.
52274         * modules/unictype/category-Lo-tests: New file.
52275         * modules/unictype/category-Lt-tests: New file.
52276         * modules/unictype/category-Lu-tests: New file.
52277         * modules/unictype/category-M-tests: New file.
52278         * modules/unictype/category-Mc-tests: New file.
52279         * modules/unictype/category-Me-tests: New file.
52280         * modules/unictype/category-Mn-tests: New file.
52281         * modules/unictype/category-N-tests: New file.
52282         * modules/unictype/category-Nd-tests: New file.
52283         * modules/unictype/category-Nl-tests: New file.
52284         * modules/unictype/category-No-tests: New file.
52285         * modules/unictype/category-P-tests: New file.
52286         * modules/unictype/category-Pc-tests: New file.
52287         * modules/unictype/category-Pd-tests: New file.
52288         * modules/unictype/category-Pe-tests: New file.
52289         * modules/unictype/category-Pf-tests: New file.
52290         * modules/unictype/category-Pi-tests: New file.
52291         * modules/unictype/category-Po-tests: New file.
52292         * modules/unictype/category-Ps-tests: New file.
52293         * modules/unictype/category-S-tests: New file.
52294         * modules/unictype/category-Sc-tests: New file.
52295         * modules/unictype/category-Sk-tests: New file.
52296         * modules/unictype/category-Sm-tests: New file.
52297         * modules/unictype/category-So-tests: New file.
52298         * modules/unictype/category-Z-tests: New file.
52299         * modules/unictype/category-Zl-tests: New file.
52300         * modules/unictype/category-Zp-tests: New file.
52301         * modules/unictype/category-Zs-tests: New file.
52302         * modules/unictype/category-and-not-tests: New file.
52303         * modules/unictype/category-and-tests: New file.
52304         * modules/unictype/category-byname-tests: New file.
52305         * modules/unictype/category-name-tests: New file.
52306         * modules/unictype/category-none-tests: New file.
52307         * modules/unictype/category-of-tests: New file.
52308         * modules/unictype/category-or-tests: New file.
52309         * modules/unictype/category-test-withtable-tests: New file.
52310         * modules/unictype/combining-class-tests: New file.
52311         * modules/unictype/ctype-alnum-tests: New file.
52312         * modules/unictype/ctype-alpha-tests: New file.
52313         * modules/unictype/ctype-blank-tests: New file.
52314         * modules/unictype/ctype-cntrl-tests: New file.
52315         * modules/unictype/ctype-digit-tests: New file.
52316         * modules/unictype/ctype-graph-tests: New file.
52317         * modules/unictype/ctype-lower-tests: New file.
52318         * modules/unictype/ctype-print-tests: New file.
52319         * modules/unictype/ctype-punct-tests: New file.
52320         * modules/unictype/ctype-space-tests: New file.
52321         * modules/unictype/ctype-upper-tests: New file.
52322         * modules/unictype/ctype-xdigit-tests: New file.
52323         * modules/unictype/decimal-digit-tests: New file.
52324         * modules/unictype/digit-tests: New file.
52325         * modules/unictype/mirror-tests: New file.
52326         * modules/unictype/numeric-tests: New file.
52327         * modules/unictype/property-alphabetic-tests: New file.
52328         * modules/unictype/property-ascii-hex-digit-tests: New file.
52329         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52330         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52331         * modules/unictype/property-bidi-block-separator-tests: New file.
52332         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52333         * modules/unictype/property-bidi-common-separator-tests: New file.
52334         * modules/unictype/property-bidi-control-tests: New file.
52335         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52336         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52337         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52338         * modules/unictype/property-bidi-european-digit-tests: New file.
52339         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52340         * modules/unictype/property-bidi-left-to-right-tests: New file.
52341         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52342         * modules/unictype/property-bidi-other-neutral-tests: New file.
52343         * modules/unictype/property-bidi-pdf-tests: New file.
52344         * modules/unictype/property-bidi-segment-separator-tests: New file.
52345         * modules/unictype/property-bidi-whitespace-tests: New file.
52346         * modules/unictype/property-byname-tests: New file.
52347         * modules/unictype/property-combining-tests: New file.
52348         * modules/unictype/property-composite-tests: New file.
52349         * modules/unictype/property-currency-symbol-tests: New file.
52350         * modules/unictype/property-dash-tests: New file.
52351         * modules/unictype/property-decimal-digit-tests: New file.
52352         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52353         * modules/unictype/property-deprecated-tests: New file.
52354         * modules/unictype/property-diacritic-tests: New file.
52355         * modules/unictype/property-extender-tests: New file.
52356         * modules/unictype/property-format-control-tests: New file.
52357         * modules/unictype/property-grapheme-base-tests: New file.
52358         * modules/unictype/property-grapheme-extend-tests: New file.
52359         * modules/unictype/property-grapheme-link-tests: New file.
52360         * modules/unictype/property-hex-digit-tests: New file.
52361         * modules/unictype/property-hyphen-tests: New file.
52362         * modules/unictype/property-id-continue-tests: New file.
52363         * modules/unictype/property-id-start-tests: New file.
52364         * modules/unictype/property-ideographic-tests: New file.
52365         * modules/unictype/property-ids-binary-operator-tests: New file.
52366         * modules/unictype/property-ids-trinary-operator-tests: New file.
52367         * modules/unictype/property-ignorable-control-tests: New file.
52368         * modules/unictype/property-iso-control-tests: New file.
52369         * modules/unictype/property-join-control-tests: New file.
52370         * modules/unictype/property-left-of-pair-tests: New file.
52371         * modules/unictype/property-line-separator-tests: New file.
52372         * modules/unictype/property-logical-order-exception-tests: New file.
52373         * modules/unictype/property-lowercase-tests: New file.
52374         * modules/unictype/property-math-tests: New file.
52375         * modules/unictype/property-non-break-tests: New file.
52376         * modules/unictype/property-not-a-character-tests: New file.
52377         * modules/unictype/property-numeric-tests: New file.
52378         * modules/unictype/property-other-alphabetic-tests: New file.
52379         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52380         * modules/unictype/property-other-grapheme-extend-tests: New file.
52381         * modules/unictype/property-other-id-continue-tests: New file.
52382         * modules/unictype/property-other-id-start-tests: New file.
52383         * modules/unictype/property-other-lowercase-tests: New file.
52384         * modules/unictype/property-other-math-tests: New file.
52385         * modules/unictype/property-other-uppercase-tests: New file.
52386         * modules/unictype/property-paired-punctuation-tests: New file.
52387         * modules/unictype/property-paragraph-separator-tests: New file.
52388         * modules/unictype/property-pattern-syntax-tests: New file.
52389         * modules/unictype/property-pattern-white-space-tests: New file.
52390         * modules/unictype/property-private-use-tests: New file.
52391         * modules/unictype/property-punctuation-tests: New file.
52392         * modules/unictype/property-quotation-mark-tests: New file.
52393         * modules/unictype/property-radical-tests: New file.
52394         * modules/unictype/property-sentence-terminal-tests: New file.
52395         * modules/unictype/property-soft-dotted-tests: New file.
52396         * modules/unictype/property-space-tests: New file.
52397         * modules/unictype/property-terminal-punctuation-tests: New file.
52398         * modules/unictype/property-test-tests: New file.
52399         * modules/unictype/property-titlecase-tests: New file.
52400         * modules/unictype/property-unassigned-code-value-tests: New file.
52401         * modules/unictype/property-unified-ideograph-tests: New file.
52402         * modules/unictype/property-uppercase-tests: New file.
52403         * modules/unictype/property-variation-selector-tests: New file.
52404         * modules/unictype/property-white-space-tests: New file.
52405         * modules/unictype/property-xid-continue-tests: New file.
52406         * modules/unictype/property-xid-start-tests: New file.
52407         * modules/unictype/property-zero-width-tests: New file.
52408         * modules/unictype/scripts-tests: New file.
52409         * modules/unictype/syntax-c-ident-tests: New file.
52410         * modules/unictype/syntax-c-whitespace-tests: New file.
52411         * modules/unictype/syntax-java-ident-tests: New file.
52412         * modules/unictype/syntax-java-whitespace-tests: New file.
52413         * tests/unictype/test-bidi_byname.c: New file.
52414         * tests/unictype/test-bidi_name.c: New file.
52415         * tests/unictype/test-bidi_of.c: New file.
52416         * tests/unictype/test-bidi_test.c: New file.
52417         * tests/unictype/test-block_list.c: New file.
52418         * tests/unictype/test-block_of.c: New file.
52419         * tests/unictype/test-block_test.c: New file.
52420         * tests/unictype/test-categ_and.c: New file.
52421         * tests/unictype/test-categ_and_not.c: New file.
52422         * tests/unictype/test-categ_byname.c: New file.
52423         * tests/unictype/test-categ_name.c: New file.
52424         * tests/unictype/test-categ_none.c: New file.
52425         * tests/unictype/test-categ_of.c: New file.
52426         * tests/unictype/test-categ_or.c: New file.
52427         * tests/unictype/test-categ_test_withtable.c: New file.
52428         * tests/unictype/test-combining.c: New file.
52429         * tests/unictype/test-decdigit.c: New file.
52430         * tests/unictype/test-digit.c: New file.
52431         * tests/unictype/test-mirror.c: New file.
52432         * tests/unictype/test-numeric.c: New file.
52433         * tests/unictype/test-pr_byname.c: New file.
52434         * tests/unictype/test-pr_test.c: New file.
52435         * tests/unictype/test-predicate-part1.h: New file.
52436         * tests/unictype/test-predicate-part2.h: New file.
52437         * tests/unictype/test-scripts.c: New file.
52438         * tests/unictype/test-sy_c_ident.c: New file.
52439         * tests/unictype/test-sy_java_ident.c: New file.
52440
52441         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52442         for Unicode 5.0.0.
52443         * tests/unictype/test-categ_Cc.c: Likewise.
52444         * tests/unictype/test-categ_Cf.c: Likewise.
52445         * tests/unictype/test-categ_Cn.c: Likewise.
52446         * tests/unictype/test-categ_Co.c: Likewise.
52447         * tests/unictype/test-categ_Cs.c: Likewise.
52448         * tests/unictype/test-categ_L.c: Likewise.
52449         * tests/unictype/test-categ_Ll.c: Likewise.
52450         * tests/unictype/test-categ_Lm.c: Likewise.
52451         * tests/unictype/test-categ_Lo.c: Likewise.
52452         * tests/unictype/test-categ_Lt.c: Likewise.
52453         * tests/unictype/test-categ_Lu.c: Likewise.
52454         * tests/unictype/test-categ_M.c: Likewise.
52455         * tests/unictype/test-categ_Mc.c: Likewise.
52456         * tests/unictype/test-categ_Me.c: Likewise.
52457         * tests/unictype/test-categ_Mn.c: Likewise.
52458         * tests/unictype/test-categ_N.c: Likewise.
52459         * tests/unictype/test-categ_Nd.c: Likewise.
52460         * tests/unictype/test-categ_Nl.c: Likewise.
52461         * tests/unictype/test-categ_No.c: Likewise.
52462         * tests/unictype/test-categ_P.c: Likewise.
52463         * tests/unictype/test-categ_Pc.c: Likewise.
52464         * tests/unictype/test-categ_Pd.c: Likewise.
52465         * tests/unictype/test-categ_Pe.c: Likewise.
52466         * tests/unictype/test-categ_Pf.c: Likewise.
52467         * tests/unictype/test-categ_Pi.c: Likewise.
52468         * tests/unictype/test-categ_Po.c: Likewise.
52469         * tests/unictype/test-categ_Ps.c: Likewise.
52470         * tests/unictype/test-categ_S.c: Likewise.
52471         * tests/unictype/test-categ_Sc.c: Likewise.
52472         * tests/unictype/test-categ_Sk.c: Likewise.
52473         * tests/unictype/test-categ_Sm.c: Likewise.
52474         * tests/unictype/test-categ_So.c: Likewise.
52475         * tests/unictype/test-categ_Z.c: Likewise.
52476         * tests/unictype/test-categ_Zl.c: Likewise.
52477         * tests/unictype/test-categ_Zp.c: Likewise.
52478         * tests/unictype/test-categ_Zs.c: Likewise.
52479         * tests/unictype/test-ctype_alnum.c: Likewise.
52480         * tests/unictype/test-ctype_alpha.c: Likewise.
52481         * tests/unictype/test-ctype_blank.c: Likewise.
52482         * tests/unictype/test-ctype_cntrl.c: Likewise.
52483         * tests/unictype/test-ctype_digit.c: Likewise.
52484         * tests/unictype/test-ctype_graph.c: Likewise.
52485         * tests/unictype/test-ctype_lower.c: Likewise.
52486         * tests/unictype/test-ctype_print.c: Likewise.
52487         * tests/unictype/test-ctype_punct.c: Likewise.
52488         * tests/unictype/test-ctype_space.c: Likewise.
52489         * tests/unictype/test-ctype_upper.c: Likewise.
52490         * tests/unictype/test-ctype_xdigit.c: Likewise.
52491         * tests/unictype/test-decdigit.h: Likewise.
52492         * tests/unictype/test-digit.h: Likewise.
52493         * tests/unictype/test-numeric.h: Likewise.
52494         * tests/unictype/test-pr_alphabetic.c: Likewise.
52495         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52496         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52497         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52498         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52499         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52500         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52501         * tests/unictype/test-pr_bidi_control.c: Likewise.
52502         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52503         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52504         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52505         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52506         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52507         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52508         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52509         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52510         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52511         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52512         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52513         * tests/unictype/test-pr_combining.c: Likewise.
52514         * tests/unictype/test-pr_composite.c: Likewise.
52515         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52516         * tests/unictype/test-pr_dash.c: Likewise.
52517         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52518         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52519         * tests/unictype/test-pr_deprecated.c: Likewise.
52520         * tests/unictype/test-pr_diacritic.c: Likewise.
52521         * tests/unictype/test-pr_extender.c: Likewise.
52522         * tests/unictype/test-pr_format_control.c: Likewise.
52523         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52524         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52525         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52526         * tests/unictype/test-pr_hex_digit.c: Likewise.
52527         * tests/unictype/test-pr_hyphen.c: Likewise.
52528         * tests/unictype/test-pr_id_continue.c: Likewise.
52529         * tests/unictype/test-pr_id_start.c: Likewise.
52530         * tests/unictype/test-pr_ideographic.c: Likewise.
52531         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52532         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52533         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52534         * tests/unictype/test-pr_iso_control.c: Likewise.
52535         * tests/unictype/test-pr_join_control.c: Likewise.
52536         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52537         * tests/unictype/test-pr_line_separator.c: Likewise.
52538         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52539         * tests/unictype/test-pr_lowercase.c: Likewise.
52540         * tests/unictype/test-pr_math.c: Likewise.
52541         * tests/unictype/test-pr_non_break.c: Likewise.
52542         * tests/unictype/test-pr_not_a_character.c: Likewise.
52543         * tests/unictype/test-pr_numeric.c: Likewise.
52544         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52545         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52546         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52547         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52548         * tests/unictype/test-pr_other_id_start.c: Likewise.
52549         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52550         * tests/unictype/test-pr_other_math.c: Likewise.
52551         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52552         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52553         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52554         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52555         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52556         * tests/unictype/test-pr_private_use.c: Likewise.
52557         * tests/unictype/test-pr_punctuation.c: Likewise.
52558         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52559         * tests/unictype/test-pr_radical.c: Likewise.
52560         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52561         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52562         * tests/unictype/test-pr_space.c: Likewise.
52563         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52564         * tests/unictype/test-pr_titlecase.c: Likewise.
52565         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52566         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52567         * tests/unictype/test-pr_uppercase.c: Likewise.
52568         * tests/unictype/test-pr_variation_selector.c: Likewise.
52569         * tests/unictype/test-pr_white_space.c: Likewise.
52570         * tests/unictype/test-pr_xid_continue.c: Likewise.
52571         * tests/unictype/test-pr_xid_start.c: Likewise.
52572         * tests/unictype/test-pr_zero_width.c: Likewise.
52573         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52574         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52575
52576 2007-11-12  Bruno Haible  <bruno@clisp.org>
52577
52578         Unicode character classification functions.
52579         * lib/unictype.h: New file.
52580         * modules/unictype/base: New file.
52581         * modules/unictype/category-L: New file.
52582         * modules/unictype/category-Lu: New file.
52583         * modules/unictype/category-Ll: New file.
52584         * modules/unictype/category-Lt: New file.
52585         * modules/unictype/category-Lm: New file.
52586         * modules/unictype/category-Lo: New file.
52587         * modules/unictype/category-M: New file.
52588         * modules/unictype/category-Mn: New file.
52589         * modules/unictype/category-Mc: New file.
52590         * modules/unictype/category-Me: New file.
52591         * modules/unictype/category-N: New file.
52592         * modules/unictype/category-Nd: New file.
52593         * modules/unictype/category-Nl: New file.
52594         * modules/unictype/category-No: New file.
52595         * modules/unictype/category-P: New file.
52596         * modules/unictype/category-Pc: New file.
52597         * modules/unictype/category-Pd: New file.
52598         * modules/unictype/category-Ps: New file.
52599         * modules/unictype/category-Pe: New file.
52600         * modules/unictype/category-Pi: New file.
52601         * modules/unictype/category-Pf: New file.
52602         * modules/unictype/category-Po: New file.
52603         * modules/unictype/category-S: New file.
52604         * modules/unictype/category-Sm: New file.
52605         * modules/unictype/category-Sc: New file.
52606         * modules/unictype/category-Sk: New file.
52607         * modules/unictype/category-So: New file.
52608         * modules/unictype/category-Z: New file.
52609         * modules/unictype/category-Zs: New file.
52610         * modules/unictype/category-Zl: New file.
52611         * modules/unictype/category-Zp: New file.
52612         * modules/unictype/category-C: New file.
52613         * modules/unictype/category-Cc: New file.
52614         * modules/unictype/category-Cf: New file.
52615         * modules/unictype/category-Cs: New file.
52616         * modules/unictype/category-Co: New file.
52617         * modules/unictype/category-Cn: New file.
52618         * modules/unictype/category-or: New file.
52619         * modules/unictype/category-of: New file.
52620         * modules/unictype/category-test: New file.
52621         * modules/unictype/category-test-withtable: New file.
52622         * modules/unictype/category-byname: New file.
52623         * modules/unictype/category-none: New file.
52624         * modules/unictype/category-and: New file.
52625         * modules/unictype/category-and-not: New file.
52626         * modules/unictype/category-name: New file.
52627         * modules/unictype/combining-class: New file.
52628         * modules/unictype/category-all: New file.
52629         * modules/unictype/bidicategory-all: New file.
52630         * modules/unictype/bidicategory-byname: New file.
52631         * modules/unictype/bidicategory-name: New file.
52632         * modules/unictype/bidicategory-of: New file.
52633         * modules/unictype/bidicategory-test: New file.
52634         * modules/unictype/decimal-digit: New file.
52635         * modules/unictype/digit: New file.
52636         * modules/unictype/numeric: New file.
52637         * modules/unictype/mirror: New file.
52638         * modules/unictype/property-white-space: New file.
52639         * modules/unictype/property-alphabetic: New file.
52640         * modules/unictype/property-other-alphabetic: New file.
52641         * modules/unictype/property-not-a-character: New file.
52642         * modules/unictype/property-default-ignorable-code-point: New file.
52643         * modules/unictype/property-other-default-ignorable-code-point: New
52644         file.
52645         * modules/unictype/property-deprecated: New file.
52646         * modules/unictype/property-logical-order-exception: New file.
52647         * modules/unictype/property-variation-selector: New file.
52648         * modules/unictype/property-private-use: New file.
52649         * modules/unictype/property-unassigned-code-value: New file.
52650         * modules/unictype/property-uppercase: New file.
52651         * modules/unictype/property-other-uppercase: New file.
52652         * modules/unictype/property-lowercase: New file.
52653         * modules/unictype/property-other-lowercase: New file.
52654         * modules/unictype/property-titlecase: New file.
52655         * modules/unictype/property-soft-dotted: New file.
52656         * modules/unictype/property-id-start: New file.
52657         * modules/unictype/property-other-id-start: New file.
52658         * modules/unictype/property-id-continue: New file.
52659         * modules/unictype/property-other-id-continue: New file.
52660         * modules/unictype/property-xid-start: New file.
52661         * modules/unictype/property-xid-continue: New file.
52662         * modules/unictype/property-pattern-white-space: New file.
52663         * modules/unictype/property-pattern-syntax: New file.
52664         * modules/unictype/property-join-control: New file.
52665         * modules/unictype/property-grapheme-base: New file.
52666         * modules/unictype/property-grapheme-extend: New file.
52667         * modules/unictype/property-other-grapheme-extend: New file.
52668         * modules/unictype/property-grapheme-link: New file.
52669         * modules/unictype/property-bidi-control: New file.
52670         * modules/unictype/property-bidi-left-to-right: New file.
52671         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52672         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52673         * modules/unictype/property-bidi-european-digit: New file.
52674         * modules/unictype/property-bidi-eur-num-separator: New file.
52675         * modules/unictype/property-bidi-eur-num-terminator: New file.
52676         * modules/unictype/property-bidi-arabic-digit: New file.
52677         * modules/unictype/property-bidi-common-separator: New file.
52678         * modules/unictype/property-bidi-block-separator: New file.
52679         * modules/unictype/property-bidi-segment-separator: New file.
52680         * modules/unictype/property-bidi-whitespace: New file.
52681         * modules/unictype/property-bidi-non-spacing-mark: New file.
52682         * modules/unictype/property-bidi-boundary-neutral: New file.
52683         * modules/unictype/property-bidi-pdf: New file.
52684         * modules/unictype/property-bidi-embedding-or-override: New file.
52685         * modules/unictype/property-bidi-other-neutral: New file.
52686         * modules/unictype/property-hex-digit: New file.
52687         * modules/unictype/property-ascii-hex-digit: New file.
52688         * modules/unictype/property-ideographic: New file.
52689         * modules/unictype/property-unified-ideograph: New file.
52690         * modules/unictype/property-radical: New file.
52691         * modules/unictype/property-ids-binary-operator: New file.
52692         * modules/unictype/property-ids-trinary-operator: New file.
52693         * modules/unictype/property-zero-width: New file.
52694         * modules/unictype/property-space: New file.
52695         * modules/unictype/property-non-break: New file.
52696         * modules/unictype/property-iso-control: New file.
52697         * modules/unictype/property-format-control: New file.
52698         * modules/unictype/property-dash: New file.
52699         * modules/unictype/property-hyphen: New file.
52700         * modules/unictype/property-punctuation: New file.
52701         * modules/unictype/property-line-separator: New file.
52702         * modules/unictype/property-paragraph-separator: New file.
52703         * modules/unictype/property-quotation-mark: New file.
52704         * modules/unictype/property-sentence-terminal: New file.
52705         * modules/unictype/property-terminal-punctuation: New file.
52706         * modules/unictype/property-currency-symbol: New file.
52707         * modules/unictype/property-math: New file.
52708         * modules/unictype/property-other-math: New file.
52709         * modules/unictype/property-paired-punctuation: New file.
52710         * modules/unictype/property-left-of-pair: New file.
52711         * modules/unictype/property-combining: New file.
52712         * modules/unictype/property-composite: New file.
52713         * modules/unictype/property-decimal-digit: New file.
52714         * modules/unictype/property-numeric: New file.
52715         * modules/unictype/property-diacritic: New file.
52716         * modules/unictype/property-extender: New file.
52717         * modules/unictype/property-ignorable-control: New file.
52718         * modules/unictype/property-test: New file.
52719         * modules/unictype/property-byname: New file.
52720         * modules/unictype/property-all: New file.
52721         * modules/unictype/scripts: New file.
52722         * modules/unictype/scripts-all: New file.
52723         * modules/unictype/block-of: New file.
52724         * modules/unictype/block-test: New file.
52725         * modules/unictype/block-list: New file.
52726         * modules/unictype/block-all: New file.
52727         * modules/unictype/syntax-c-whitespace: New file.
52728         * modules/unictype/syntax-java-whitespace: New file.
52729         * modules/unictype/syntax-c-ident: New file.
52730         * modules/unictype/syntax-java-ident: New file.
52731         * modules/unictype/ctype-alnum: New file.
52732         * modules/unictype/ctype-alpha: New file.
52733         * modules/unictype/ctype-cntrl: New file.
52734         * modules/unictype/ctype-digit: New file.
52735         * modules/unictype/ctype-graph: New file.
52736         * modules/unictype/ctype-lower: New file.
52737         * modules/unictype/ctype-print: New file.
52738         * modules/unictype/ctype-punct: New file.
52739         * modules/unictype/ctype-space: New file.
52740         * modules/unictype/ctype-upper: New file.
52741         * modules/unictype/ctype-xdigit: New file.
52742         * modules/unictype/ctype-blank: New file.
52743         * lib/unictype/bidi_byname.c: New file.
52744         * lib/unictype/bidi_name.c: New file.
52745         * lib/unictype/bidi_of.c: New file.
52746         * lib/unictype/bidi_test.c: New file.
52747         * lib/unictype/bitmap.h: New file.
52748         * lib/unictype/block_test.c: New file.
52749         * lib/unictype/blocks.c: New file.
52750         * lib/unictype/categ_C.c: New file.
52751         * lib/unictype/categ_Cc.c: New file.
52752         * lib/unictype/categ_Cf.c: New file.
52753         * lib/unictype/categ_Cn.c: New file.
52754         * lib/unictype/categ_Co.c: New file.
52755         * lib/unictype/categ_Cs.c: New file.
52756         * lib/unictype/categ_L.c: New file.
52757         * lib/unictype/categ_Ll.c: New file.
52758         * lib/unictype/categ_Lm.c: New file.
52759         * lib/unictype/categ_Lo.c: New file.
52760         * lib/unictype/categ_Lt.c: New file.
52761         * lib/unictype/categ_Lu.c: New file.
52762         * lib/unictype/categ_M.c: New file.
52763         * lib/unictype/categ_Mc.c: New file.
52764         * lib/unictype/categ_Me.c: New file.
52765         * lib/unictype/categ_Mn.c: New file.
52766         * lib/unictype/categ_N.c: New file.
52767         * lib/unictype/categ_Nd.c: New file.
52768         * lib/unictype/categ_Nl.c: New file.
52769         * lib/unictype/categ_No.c: New file.
52770         * lib/unictype/categ_P.c: New file.
52771         * lib/unictype/categ_Pc.c: New file.
52772         * lib/unictype/categ_Pd.c: New file.
52773         * lib/unictype/categ_Pe.c: New file.
52774         * lib/unictype/categ_Pf.c: New file.
52775         * lib/unictype/categ_Pi.c: New file.
52776         * lib/unictype/categ_Po.c: New file.
52777         * lib/unictype/categ_Ps.c: New file.
52778         * lib/unictype/categ_S.c: New file.
52779         * lib/unictype/categ_Sc.c: New file.
52780         * lib/unictype/categ_Sk.c: New file.
52781         * lib/unictype/categ_Sm.c: New file.
52782         * lib/unictype/categ_So.c: New file.
52783         * lib/unictype/categ_Z.c: New file.
52784         * lib/unictype/categ_Zl.c: New file.
52785         * lib/unictype/categ_Zp.c: New file.
52786         * lib/unictype/categ_Zs.c: New file.
52787         * lib/unictype/categ_and.c: New file.
52788         * lib/unictype/categ_and_not.c: New file.
52789         * lib/unictype/categ_byname.c: New file.
52790         * lib/unictype/categ_name.c: New file.
52791         * lib/unictype/categ_none.c: New file.
52792         * lib/unictype/categ_of.c: New file.
52793         * lib/unictype/categ_or.c: New file.
52794         * lib/unictype/categ_test.c: New file.
52795         * lib/unictype/combining.c: New file.
52796         * lib/unictype/ctype_alnum.c: New file.
52797         * lib/unictype/ctype_alpha.c: New file.
52798         * lib/unictype/ctype_blank.c: New file.
52799         * lib/unictype/ctype_cntrl.c: New file.
52800         * lib/unictype/ctype_digit.c: New file.
52801         * lib/unictype/ctype_graph.c: New file.
52802         * lib/unictype/ctype_lower.c: New file.
52803         * lib/unictype/ctype_print.c: New file.
52804         * lib/unictype/ctype_punct.c: New file.
52805         * lib/unictype/ctype_space.c: New file.
52806         * lib/unictype/ctype_upper.c: New file.
52807         * lib/unictype/ctype_xdigit.c: New file.
52808         * lib/unictype/decdigit.c: New file.
52809         * lib/unictype/digit.c: New file.
52810         * lib/unictype/identsyntaxmap.h: New file.
52811         * lib/unictype/mirror.c: New file.
52812         * lib/unictype/numeric.c: New file.
52813         * lib/unictype/pr_alphabetic.c: New file.
52814         * lib/unictype/pr_ascii_hex_digit.c: New file.
52815         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52816         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52817         * lib/unictype/pr_bidi_block_separator.c: New file.
52818         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52819         * lib/unictype/pr_bidi_common_separator.c: New file.
52820         * lib/unictype/pr_bidi_control.c: New file.
52821         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52822         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52823         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52824         * lib/unictype/pr_bidi_european_digit.c: New file.
52825         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52826         * lib/unictype/pr_bidi_left_to_right.c: New file.
52827         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52828         * lib/unictype/pr_bidi_other_neutral.c: New file.
52829         * lib/unictype/pr_bidi_pdf.c: New file.
52830         * lib/unictype/pr_bidi_segment_separator.c: New file.
52831         * lib/unictype/pr_bidi_whitespace.c: New file.
52832         * lib/unictype/pr_byname.c: New file.
52833         * lib/unictype/pr_byname.gperf: New file.
52834         * lib/unictype/pr_combining.c: New file.
52835         * lib/unictype/pr_composite.c: New file.
52836         * lib/unictype/pr_currency_symbol.c: New file.
52837         * lib/unictype/pr_dash.c: New file.
52838         * lib/unictype/pr_decimal_digit.c: New file.
52839         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52840         * lib/unictype/pr_deprecated.c: New file.
52841         * lib/unictype/pr_diacritic.c: New file.
52842         * lib/unictype/pr_extender.c: New file.
52843         * lib/unictype/pr_format_control.c: New file.
52844         * lib/unictype/pr_grapheme_base.c: New file.
52845         * lib/unictype/pr_grapheme_extend.c: New file.
52846         * lib/unictype/pr_grapheme_link.c: New file.
52847         * lib/unictype/pr_hex_digit.c: New file.
52848         * lib/unictype/pr_hyphen.c: New file.
52849         * lib/unictype/pr_id_continue.c: New file.
52850         * lib/unictype/pr_id_start.c: New file.
52851         * lib/unictype/pr_ideographic.c: New file.
52852         * lib/unictype/pr_ids_binary_operator.c: New file.
52853         * lib/unictype/pr_ids_trinary_operator.c: New file.
52854         * lib/unictype/pr_ignorable_control.c: New file.
52855         * lib/unictype/pr_iso_control.c: New file.
52856         * lib/unictype/pr_join_control.c: New file.
52857         * lib/unictype/pr_left_of_pair.c: New file.
52858         * lib/unictype/pr_line_separator.c: New file.
52859         * lib/unictype/pr_logical_order_exception.c: New file.
52860         * lib/unictype/pr_lowercase.c: New file.
52861         * lib/unictype/pr_math.c: New file.
52862         * lib/unictype/pr_non_break.c: New file.
52863         * lib/unictype/pr_not_a_character.c: New file.
52864         * lib/unictype/pr_numeric.c: New file.
52865         * lib/unictype/pr_other_alphabetic.c: New file.
52866         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52867         * lib/unictype/pr_other_grapheme_extend.c: New file.
52868         * lib/unictype/pr_other_id_continue.c: New file.
52869         * lib/unictype/pr_other_id_start.c: New file.
52870         * lib/unictype/pr_other_lowercase.c: New file.
52871         * lib/unictype/pr_other_math.c: New file.
52872         * lib/unictype/pr_other_uppercase.c: New file.
52873         * lib/unictype/pr_paired_punctuation.c: New file.
52874         * lib/unictype/pr_paragraph_separator.c: New file.
52875         * lib/unictype/pr_pattern_syntax.c: New file.
52876         * lib/unictype/pr_pattern_white_space.c: New file.
52877         * lib/unictype/pr_private_use.c: New file.
52878         * lib/unictype/pr_punctuation.c: New file.
52879         * lib/unictype/pr_quotation_mark.c: New file.
52880         * lib/unictype/pr_radical.c: New file.
52881         * lib/unictype/pr_sentence_terminal.c: New file.
52882         * lib/unictype/pr_soft_dotted.c: New file.
52883         * lib/unictype/pr_space.c: New file.
52884         * lib/unictype/pr_terminal_punctuation.c: New file.
52885         * lib/unictype/pr_test.c: New file.
52886         * lib/unictype/pr_titlecase.c: New file.
52887         * lib/unictype/pr_unassigned_code_value.c: New file.
52888         * lib/unictype/pr_unified_ideograph.c: New file.
52889         * lib/unictype/pr_uppercase.c: New file.
52890         * lib/unictype/pr_variation_selector.c: New file.
52891         * lib/unictype/pr_white_space.c: New file.
52892         * lib/unictype/pr_xid_continue.c: New file.
52893         * lib/unictype/pr_xid_start.c: New file.
52894         * lib/unictype/pr_zero_width.c: New file.
52895         * lib/unictype/scripts.c: New file.
52896         * lib/unictype/sy_c_ident.c: New file.
52897         * lib/unictype/sy_c_whitespace.c: New file.
52898         * lib/unictype/sy_java_ident.c: New file.
52899         * lib/unictype/sy_java_whitespace.c: New file.
52900
52901         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52902         Unicode 5.0.0.
52903         * lib/unictype/blocks.h: Likewise.
52904         * lib/unictype/categ_C.h: Likewise.
52905         * lib/unictype/categ_Cc.h: Likewise.
52906         * lib/unictype/categ_Cf.h: Likewise.
52907         * lib/unictype/categ_Cn.h: Likewise.
52908         * lib/unictype/categ_Co.h: Likewise.
52909         * lib/unictype/categ_Cs.h: Likewise.
52910         * lib/unictype/categ_L.h: Likewise.
52911         * lib/unictype/categ_Ll.h: Likewise.
52912         * lib/unictype/categ_Lm.h: Likewise.
52913         * lib/unictype/categ_Lo.h: Likewise.
52914         * lib/unictype/categ_Lt.h: Likewise.
52915         * lib/unictype/categ_Lu.h: Likewise.
52916         * lib/unictype/categ_M.h: Likewise.
52917         * lib/unictype/categ_Mc.h: Likewise.
52918         * lib/unictype/categ_Me.h: Likewise.
52919         * lib/unictype/categ_Mn.h: Likewise.
52920         * lib/unictype/categ_N.h: Likewise.
52921         * lib/unictype/categ_Nd.h: Likewise.
52922         * lib/unictype/categ_Nl.h: Likewise.
52923         * lib/unictype/categ_No.h: Likewise.
52924         * lib/unictype/categ_P.h: Likewise.
52925         * lib/unictype/categ_Pc.h: Likewise.
52926         * lib/unictype/categ_Pd.h: Likewise.
52927         * lib/unictype/categ_Pe.h: Likewise.
52928         * lib/unictype/categ_Pf.h: Likewise.
52929         * lib/unictype/categ_Pi.h: Likewise.
52930         * lib/unictype/categ_Po.h: Likewise.
52931         * lib/unictype/categ_Ps.h: Likewise.
52932         * lib/unictype/categ_S.h: Likewise.
52933         * lib/unictype/categ_Sc.h: Likewise.
52934         * lib/unictype/categ_Sk.h: Likewise.
52935         * lib/unictype/categ_Sm.h: Likewise.
52936         * lib/unictype/categ_So.h: Likewise.
52937         * lib/unictype/categ_Z.h: Likewise.
52938         * lib/unictype/categ_Zl.h: Likewise.
52939         * lib/unictype/categ_Zp.h: Likewise.
52940         * lib/unictype/categ_Zs.h: Likewise.
52941         * lib/unictype/categ_of.h: Likewise.
52942         * lib/unictype/combining.h: Likewise.
52943         * lib/unictype/ctype_alnum.h: Likewise.
52944         * lib/unictype/ctype_alpha.h: Likewise.
52945         * lib/unictype/ctype_blank.h: Likewise.
52946         * lib/unictype/ctype_cntrl.h: Likewise.
52947         * lib/unictype/ctype_digit.h: Likewise.
52948         * lib/unictype/ctype_graph.h: Likewise.
52949         * lib/unictype/ctype_lower.h: Likewise.
52950         * lib/unictype/ctype_print.h: Likewise.
52951         * lib/unictype/ctype_punct.h: Likewise.
52952         * lib/unictype/ctype_space.h: Likewise.
52953         * lib/unictype/ctype_upper.h: Likewise.
52954         * lib/unictype/ctype_xdigit.h: Likewise.
52955         * lib/unictype/decdigit.h: Likewise.
52956         * lib/unictype/digit.h: Likewise.
52957         * lib/unictype/mirror.h: Likewise.
52958         * lib/unictype/numeric.h: Likewise.
52959         * lib/unictype/pr_alphabetic.h: Likewise.
52960         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52961         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52962         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52963         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52964         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52965         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52966         * lib/unictype/pr_bidi_control.h: Likewise.
52967         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52968         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52969         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52970         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52971         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52972         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52973         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52974         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52975         * lib/unictype/pr_bidi_pdf.h: Likewise.
52976         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52977         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52978         * lib/unictype/pr_combining.h: Likewise.
52979         * lib/unictype/pr_composite.h: Likewise.
52980         * lib/unictype/pr_currency_symbol.h: Likewise.
52981         * lib/unictype/pr_dash.h: Likewise.
52982         * lib/unictype/pr_decimal_digit.h: Likewise.
52983         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52984         * lib/unictype/pr_deprecated.h: Likewise.
52985         * lib/unictype/pr_diacritic.h: Likewise.
52986         * lib/unictype/pr_extender.h: Likewise.
52987         * lib/unictype/pr_format_control.h: Likewise.
52988         * lib/unictype/pr_grapheme_base.h: Likewise.
52989         * lib/unictype/pr_grapheme_extend.h: Likewise.
52990         * lib/unictype/pr_grapheme_link.h: Likewise.
52991         * lib/unictype/pr_hex_digit.h: Likewise.
52992         * lib/unictype/pr_hyphen.h: Likewise.
52993         * lib/unictype/pr_id_continue.h: Likewise.
52994         * lib/unictype/pr_id_start.h: Likewise.
52995         * lib/unictype/pr_ideographic.h: Likewise.
52996         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52997         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52998         * lib/unictype/pr_ignorable_control.h: Likewise.
52999         * lib/unictype/pr_iso_control.h: Likewise.
53000         * lib/unictype/pr_join_control.h: Likewise.
53001         * lib/unictype/pr_left_of_pair.h: Likewise.
53002         * lib/unictype/pr_line_separator.h: Likewise.
53003         * lib/unictype/pr_logical_order_exception.h: Likewise.
53004         * lib/unictype/pr_lowercase.h: Likewise.
53005         * lib/unictype/pr_math.h: Likewise.
53006         * lib/unictype/pr_non_break.h: Likewise.
53007         * lib/unictype/pr_not_a_character.h: Likewise.
53008         * lib/unictype/pr_numeric.h: Likewise.
53009         * lib/unictype/pr_other_alphabetic.h: Likewise.
53010         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53011         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53012         * lib/unictype/pr_other_id_continue.h: Likewise.
53013         * lib/unictype/pr_other_id_start.h: Likewise.
53014         * lib/unictype/pr_other_lowercase.h: Likewise.
53015         * lib/unictype/pr_other_math.h: Likewise.
53016         * lib/unictype/pr_other_uppercase.h: Likewise.
53017         * lib/unictype/pr_paired_punctuation.h: Likewise.
53018         * lib/unictype/pr_paragraph_separator.h: Likewise.
53019         * lib/unictype/pr_pattern_syntax.h: Likewise.
53020         * lib/unictype/pr_pattern_white_space.h: Likewise.
53021         * lib/unictype/pr_private_use.h: Likewise.
53022         * lib/unictype/pr_punctuation.h: Likewise.
53023         * lib/unictype/pr_quotation_mark.h: Likewise.
53024         * lib/unictype/pr_radical.h: Likewise.
53025         * lib/unictype/pr_sentence_terminal.h: Likewise.
53026         * lib/unictype/pr_soft_dotted.h: Likewise.
53027         * lib/unictype/pr_space.h: Likewise.
53028         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53029         * lib/unictype/pr_titlecase.h: Likewise.
53030         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53031         * lib/unictype/pr_unified_ideograph.h: Likewise.
53032         * lib/unictype/pr_uppercase.h: Likewise.
53033         * lib/unictype/pr_variation_selector.h: Likewise.
53034         * lib/unictype/pr_white_space.h: Likewise.
53035         * lib/unictype/pr_xid_continue.h: Likewise.
53036         * lib/unictype/pr_xid_start.h: Likewise.
53037         * lib/unictype/pr_zero_width.h: Likewise.
53038         * lib/unictype/scripts.h: Likewise.
53039         * lib/unictype/scripts_byname.gperf: Likewise.
53040         * lib/unictype/sy_c_ident.h: Likewise.
53041         * lib/unictype/sy_c_whitespace.h: Likewise.
53042         * lib/unictype/sy_java_ident.h: Likewise.
53043         * lib/unictype/sy_java_whitespace.h: Likewise.
53044
53045         * lib/unictype/Makefile: New file.
53046         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53047         glibc.
53048         * lib/unictype/3level.h: New file, copied from glibc.
53049         * lib/unictype/3levelbit.h: New file.
53050
53051 2007-11-11  Bruno Haible  <bruno@clisp.org>
53052
53053         * modules/gperf: New file.
53054         * modules/iconv_open (Depends-on): Add it.
53055         (Makefile.am): Remove the GPERF definition.
53056
53057 2007-11-11  Bruno Haible  <bruno@clisp.org>
53058
53059         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53060         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53061
53062 2007-11-11  Bruno Haible  <bruno@clisp.org>
53063
53064         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53065         (usage): Remove function.
53066
53067 2007-11-11  Bruno Haible  <bruno@clisp.org>
53068
53069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53070         gl_FUNC_CEILF_LIBS.
53071         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53072         gl_FUNC_CEIL_LIBS.
53073         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53074         gl_FUNC_CEILL_LIBS.
53075         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53076         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53077         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53078
53079 2007-11-11  Bruno Haible  <bruno@clisp.org>
53080
53081         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53082         roundf were declared but do not exist on functions.
53083         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53084         roundl were declared but do not exist on functions.
53085         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53086         HAVE_FLOORL_AND_CEILL, respectively.
53087         Needed for Sun C on Solaris 10.
53088
53089 2007-11-11  Bruno Haible  <bruno@clisp.org>
53090
53091         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53092         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53093         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53094         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53095         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53096         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53097         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53098         HAVE_DECL_ROUNDF.
53099         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53100         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53102         of HAVE_DECL_ROUND*.
53103         * modules/math (Makefile.am): Update.
53104
53105 2007-11-10  Bruno Haible  <bruno@clisp.org>
53106
53107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53108         ptrdiff_t as m4/intl.m4.
53109
53110 2007-11-10  Jim Meyering  <meyering@redhat.com>
53111
53112         Avoid link failure for the argmatch test.
53113         * tests/test-argmatch.c (usage): Define function to avoid a link
53114         failure: argmatch_die requires a usage function.
53115
53116 2007-11-09  Bruno Haible  <bruno@clisp.org>
53117
53118         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53119         * doc/functions/vsnprintf.texi: Likewise.
53120         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53121         with a size argument < 2.
53122
53123 2007-11-09  Bruno Haible  <bruno@clisp.org>
53124
53125         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53126         buffer. Fixes an inefficiency introduced on 2007-11-03.
53127
53128 2007-11-09  Bruno Haible  <bruno@clisp.org>
53129
53130         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53131         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53132
53133 2007-11-08  Jim Meyering  <meyering@redhat.com>
53134
53135         Change cache variable name prefix "jm_" to "gl_" everywhere.
53136         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53137         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53138         * m4/uptime.m4: s/gl_/jm_/
53139
53140 2007-11-07  Bruno Haible  <bruno@clisp.org>
53141
53142         Update to GNU gettext 0.17.
53143         * m4/intl.m4: Update to GNU gettext 0.17.
53144         * m4/po.m4: Likewise.
53145         * modules/gettext (Files): Remove m4/ulonglong.m4.
53146         (configure.ac): Require gettext infrastructure from version 0.17.
53147
53148 2007-11-06  Bruno Haible  <bruno@clisp.org>
53149
53150         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53151         symbolic values are not defined in a public header.
53152         * lib/freadable.c (freadable) [QNX]: Likewise.
53153         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53154         * lib/freading.c (freading) [QNX]: Likewise.
53155         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53156         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53157         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53158         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53159         Reported by Alain Magloire.
53160
53161         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53162
53163 2007-11-05  Bruno Haible  <bruno@clisp.org>
53164
53165         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53166         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53167         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53168         Reported by Eric Blake.
53169
53170 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53171             Bruno Haible  <bruno@clisp.org>
53172
53173         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53174         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53175         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53176         (malloc): Undefine also before including <stdlib.h>.
53177         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53178         Needed on OSF/1 4.0.
53179
53180 2007-11-05  Jim Meyering  <meyering@redhat.com>
53181
53182         git-version-gen: sync from coreutils.
53183         * build-aux/git-version-gen: Add comments.
53184         Change the first '-' to '.' in the snapshot version string,
53185         e.g., 6.9-377-08144 -> 6.9.377-08144
53186         Remove first parameter.
53187         Don't declare a version "-dirty" merely because a time
53188         stamp has changed.
53189
53190 2007-11-04  Bruno Haible  <bruno@clisp.org>
53191
53192         * lib/lock.h: Protect all macro definitions containing an 'if'
53193         statement through a "do { ... } while (0)".
53194         * lib/tls.h: Likewise.
53195
53196 2007-11-04  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53199
53200 2007-11-04  Bruno Haible  <bruno@clisp.org>
53201
53202         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53203         * modules/fprintf-posix (Depends-on): Add nocrash.
53204         * modules/snprintf-posix (Depends-on): Likewise.
53205         * modules/sprintf-posix (Depends-on): Likewise.
53206         * modules/vasnprintf-posix (Depends-on): Likewise.
53207         * modules/vasprintf-posix (Depends-on): Likewise.
53208         * modules/vfprintf-posix (Depends-on): Likewise.
53209         * modules/vsnprintf-posix (Depends-on): Likewise.
53210         * modules/vsprintf-posix (Depends-on): Likewise.
53211         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53212         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53213         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53214         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53215         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53216         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53217         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53218
53219 2007-11-04  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/nocrash: New file.
53222         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53223         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53224
53225 2007-11-04  Bruno Haible  <bruno@clisp.org>
53226
53227         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53228         precision handling.
53229         * tests/test-vasprintf-posix.c (test_function): Likewise.
53230         * tests/test-snprintf-posix.h (test_function): Likewise.
53231         * tests/test-sprintf-posix.h (test_function): Likewise.
53232
53233         Fix *printf behaviour for large precisions on mingw and BeOS.
53234         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53235         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53237         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53239         gl_PRINTF_PRECISION and test its result. Invoke
53240         gl_PREREQ_VASNPRINTF_PRECISION.
53241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53245         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53247         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53248         * doc/functions/fprintf.texi: Update.
53249         * doc/functions/printf.texi: Update.
53250         * doc/functions/snprintf.texi: Update.
53251         * doc/functions/sprintf.texi: Update.
53252         * doc/functions/vfprintf.texi: Update.
53253         * doc/functions/vprintf.texi: Update.
53254         * doc/functions/vsnprintf.texi: Update.
53255         * doc/functions/vsprintf.texi: Update.
53256
53257 2007-11-04  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53260
53261 2007-11-04  Bruno Haible  <bruno@clisp.org>
53262
53263         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53264         Reported by Sylvain Beucler <beuc@gnu.org>.
53265
53266 2007-11-03  Bruno Haible  <bruno@clisp.org>
53267
53268         * tests/test-fprintf-posix2.sh: New file.
53269         * tests/test-fprintf-posix2.c: New file.
53270         * modules/fprintf-posix-tests (Files): Add them.
53271         (TESTS): Add test-fprintf-posix2.sh.
53272         (configure.ac): Check for getrlimit and setrlimit.
53273         (check_PROGRAMS): Add test-fprintf-posix2.
53274
53275         * tests/test-printf-posix2.sh: New file.
53276         * tests/test-printf-posix2.c: New file.
53277         * modules/printf-posix-tests (Files): Add them.
53278         (TESTS): Add test-printf-posix2.sh.
53279         (configure.ac): Check for getrlimit and setrlimit.
53280         (check_PROGRAMS): Add test-printf-posix2.
53281
53282         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53283         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53284         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53285         (decode_double): New function, copied from decode_long_double.
53286         (scale10_round_decimal_decoded): New function, extracted from
53287         scale10_round_decimal_long_double.
53288         (scale10_round_decimal_long_double): Use it.
53289         (scale10_round_decimal_double): New function.
53290         (floorlog10): New function.
53291         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53293         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53295         gl_PRINTF_ENOMEM and test its result. Invoke
53296         gl_PREREQ_VASNPRINTF_ENOMEM.
53297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53304         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53305         * modules/snprintf-posix (Depends-on): Likewise.
53306         * modules/sprintf-posix (Depends-on): Likewise.
53307         * modules/vasnprintf-posix (Depends-on): Likewise.
53308         * modules/vasprintf-posix (Depends-on): Likewise.
53309         * modules/vfprintf-posix (Depends-on): Likewise.
53310         * modules/vsnprintf-posix (Depends-on): Likewise.
53311         * modules/vsprintf-posix (Depends-on): Likewise.
53312         * doc/functions/fprintf.texi: Update.
53313         * doc/functions/printf.texi: Update.
53314         * doc/functions/snprintf.texi: Update.
53315         * doc/functions/sprintf.texi: Update.
53316         * doc/functions/vfprintf.texi: Update.
53317         * doc/functions/vprintf.texi: Update.
53318         * doc/functions/vsnprintf.texi: Update.
53319         * doc/functions/vsprintf.texi: Update.
53320
53321 2007-11-03  Bruno Haible  <bruno@clisp.org>
53322
53323         * modules/frexp-nolibm-tests: New file.
53324
53325         * modules/frexp-nolibm: New file.
53326         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53327
53328 2007-11-03  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53331         value is C99 compliant.
53332         Needed for OSF/1 5.1.
53333
53334 2007-11-03  Bruno Haible  <bruno@clisp.org>
53335
53336         Fix out-of-memory handling of vasnprintf.
53337         * lib/printf-parse.c: Include <errno.h>.
53338         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53339         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53340         is already set.
53341
53342 2007-11-02  Eric Blake  <ebb9@byu.net>
53343
53344         Fix tests on cygwin.
53345         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53346
53347 2007-11-01  Bruno Haible  <bruno@clisp.org>
53348
53349         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53350         warning.
53351         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53352         needed for POSIX compatibility.
53353
53354 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53357         for compatibility with GNU.
53358
53359 2007-11-01  Bruno Haible  <bruno@clisp.org>
53360
53361         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53362         (putenv): Renamed from rpl_putenv. Change argument type from
53363         'const char *' to 'char *'.
53364         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53365         of defining putenv in config.h, just set REPLACE_PUTENV.
53366         * modules/putenv (Depends-on): Add stdlib.
53367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53368         (Include): Use <stdlib.h>.
53369         * lib/stdlib.in.h (putenv): New declaration.
53370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53371         REPLACE_PUTENV.
53372         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53373         REPLACE_PUTENV.
53374         Needed for MacOS X 10.5.0.
53375         Reported by Peter O'Gorman <peter@pogma.com>.
53376
53377 2007-11-01  Jim Meyering  <meyering@redhat.com>
53378
53379         Treat an empty date string exactly like "0".
53380         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53381         if the remaining date string (to be parsed) is empty, use "0".
53382         Reported by Mischa Molhoek and discussed in this thread:
53383         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53384
53385 2007-10-31  Bruno Haible  <bruno@clisp.org>
53386
53387         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53388         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53389         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53390         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53391         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53392         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53393
53394 2007-10-31  Bruno Haible  <bruno@clisp.org>
53395
53396         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53397         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53398         (AC_TYPE_LONG_LONG_INT): Use it.
53399         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53400         it as well.
53401         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53402         to m4/longlong.m4.
53403         * modules/stdint (Files): Remove m4/ulonglong.m4.
53404         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53405         m4/ulonglong.m4.
53406         * modules/strtoumax (Files): Likewise.
53407
53408 2007-10-30  Bruno Haible  <bruno@clisp.org>
53409
53410         * modules/xvasprintf-posix: New file.
53411         Suggested by Eric Blake.
53412
53413 2007-10-30  Bruno Haible  <bruno@clisp.org>
53414
53415         * modules/xprintf-posix-tests: New file.
53416         * tests/test-xprintf-posix.sh: New file.
53417         * tests/test-xprintf-posix.c: New file.
53418         * tests/test-xfprintf-posix.c: New file.
53419
53420         * modules/xprintf-posix: New file.
53421
53422 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53423
53424         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53425         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53426         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53427
53428 2007-10-29  Bruno Haible  <bruno@clisp.org>
53429
53430         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53431         contain the special marker '_cv_'.
53432         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53433         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53434         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53435         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53436         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53437         Reported by Ralf Wildenhues.
53438
53439 2007-10-29  Bruno Haible  <bruno@clisp.org>
53440
53441         * gnulib-tool (func_import): When --lgpl is not specified, set
53442         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53443         GPLv3.
53444         Reported by Simon Josefsson.
53445
53446 2007-10-28  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53449         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53450         HAVE_DECL_ISFINITE.
53451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53452         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53453         HAVE_DECL_ISFINITE.
53454
53455 2007-10-28  Bruno Haible  <bruno@clisp.org>
53456
53457         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53458         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53459
53460 2007-10-28  Bruno Haible  <bruno@clisp.org>
53461
53462         Fix link errors with Sun C 5.0 on Solaris 10.
53463         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53464         function is declared but not present in the compiler's libm.
53465         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53466         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53467         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53468         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53469         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53470         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53471         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53473         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53474         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53475         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53476         HAVE_DECL_FLOORL.
53477
53478 2007-10-28  Bruno Haible  <bruno@clisp.org>
53479
53480         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53481         gl_FUNC_FLOORL. Cache the result.
53482         (gl_FUNC_FLOORL): Use it.
53483         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53484         gl_FUNC_CEILL. Cache the result.
53485         (gl_FUNC_CEILL): Use it.
53486
53487         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53488         gl_FUNC_FLOOR. Cache the result.
53489         (gl_FUNC_FLOOR): Use it.
53490         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53491         gl_FUNC_CEIL. Cache the result.
53492         (gl_FUNC_CEIL): Use it.
53493
53494         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53495         gl_FUNC_FLOORF. Cache the result.
53496         (gl_FUNC_FLOORF): Use it.
53497         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53498         gl_FUNC_CEILF. Cache the result.
53499         (gl_FUNC_CEILF): Use it.
53500
53501 2007-10-28  Bruno Haible  <bruno@clisp.org>
53502
53503         * gnulib-tool: Allow specifying the LGPL version number through
53504         --lgpl=2 or --lgpl=3.
53505         (func_usage): Document --lgpl with argument.
53506         Handle --lgpl=... arguments.
53507         (func_import): Recognize also gl_LGPL calls with an argument. When
53508         --lgpl=2 is used and the module's license is just LGPL, report an
53509         error. Set sed_transform_lib_file according to the lgpl variable. In
53510         the generated files, use --lgpl or gl_LGPL invocations with argument,
53511         if necessary.
53512         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53513         an LGPv2+ license.
53514         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53515         gl_LGPL macro.
53516
53517 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53518             Bruno Haible  <bruno@clisp.org>
53519
53520         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53521         (u16_uctomb_aux): Likewise.
53522         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53523         !HAVE_INLINE.
53524         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53525
53526 2007-10-28  Bruno Haible  <bruno@clisp.org>
53527
53528         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53529         Invoke AM_GETTEXT_OPTION if it exists.
53530         * modules/vasprintf: Likewise.
53531         * modules/verror: Likewise.
53532         * modules/xprintf: Likewise.
53533         * modules/xvasprintf: Likewise.
53534
53535 2007-10-27  Ben Pfaff  <blp@gnu.org>
53536
53537         * lib/math.in.h: Define isfinite macro and prototypes for
53538         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53539         implementations.
53540         * m4/math_h.m4: New substitutions for isfinite module.
53541         * lib/isfinite.c: New file.
53542         * m4/isfinite.m4: New file.
53543         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53544         * modules/isfinite: New file.
53545         * modules/isfinite-tests: New file.
53546         * tests/tests-isfinite.c: New file.
53547         * doc/functions/isfinite.texi: Mention isfinite module.
53548         * MODULES.html.sh: Mention new module.
53549
53550 2007-10-27  Ben Pfaff  <blp@gnu.org>
53551
53552         Ralf Wildenhues reported that Tru64 4.0D declares the round
53553         functions but does not have definitions.
53554         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53555         cannot be found in any library, set the output variable to
53556         "missing" instead of "".
53557         * m4/round.m4: Also use our substitute if we cannot find round in
53558         any library, even if it is declared.
53559         * m4/roundf.m4: Likewise for roundf.
53560         * m4/roundl.m4: Likewise for roundl.
53561         * lib/math.in.h: Undefine roundf, round, roundl before defining
53562         their replacements, to allow for hypothetical systems where these
53563         may be defined as macros but not available in libraries.
53564
53565 2007-10-27  Bruno Haible  <bruno@clisp.org>
53566
53567         * doc/gnulib.texi: Invoke @firstparagraphindent.
53568         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53569         changes in gnulib.
53570         (Source changes): New section.
53571
53572 2007-10-26  Bruno Haible  <bruno@clisp.org>
53573
53574         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53575         borrowed from autoconf.
53576
53577 2007-10-26  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53580         strerror returned the empty string. Needed on HP-UX 11.00.
53581
53582 2007-10-24  Micah Cowan  <micah@cowan.name>
53583
53584         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53585         * build-aux/bootstrap: Remove support for now-unnecessary option,
53586         --cvs-user, and envvars CVS_USER, CVS_RSH.
53587
53588 2007-10-24  Jim Meyering  <meyering@redhat.com>
53589
53590         Avoid diagnostics from sha1sum when there is no cached checksum.
53591         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53592         if the po.s1 file hasn't been created yet.
53593
53594         * build-aux/bootstrap: Sync from coreutils:
53595         2007-10-24  Jim Meyering  <meyering@redhat.com>
53596         Get gnulib from the git repository, not from an obsolete cvs one.
53597         * build-aux/bootstrap: Suggestion from Micah Cowan.
53598         2007-10-04  Jim Meyering  <jim@meyering.net>
53599         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53600         (update_po_files): Work also when there are no .po files in po/.
53601
53602 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * README: Append ".git" to git and cg examples.
53605         Problem reported by Benoit Sigoure.
53606
53607 2007-10-23  Micah Cowan  <micah@cowan.name>
53608
53609         * users.txt: Add wget.
53610
53611 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53612
53613         Fix linking of some unistdio tests on FreeBSD.
53614         * modules/unistdio/u16-vsnprintf-tests
53615         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53616         * modules/unistdio/u16-vsprintf-tests
53617         (test_u16_vsnprintf1_LDADD): Likewise.
53618         * modules/unistdio/u32-vsnprintf-tests
53619         (test_u32_vsnprintf1_LDADD): Likewise.
53620         * modules/unistdio/u32-vsprintf-tests
53621         (test_u32_vsprintf1_LDADD): Likewise.
53622         * modules/unistdio/u8-vsnprintf-tests
53623         (test_u8_vsnprintf1_LDADD): Likewise.
53624         * modules/unistdio/u8-vsprintf-tests
53625         (test_u8_vsprintf1_LDADD): Likewise.
53626         * modules/unistdio/ulc-vsnprintf-tests
53627         (test_ulc_vsnprintf1_LDADD): Likewise.
53628         * modules/unistdio/ulc-vsprintf-tests
53629         (test_ulc_vsprintf1_LDADD): Likewise.
53630
53631         Fix linking of some uniconv tests on FreeBSD.
53632         * modules/uniconv/u16-conv-from-enc-tests
53633         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53634         * modules/uniconv/u16-conv-to-enc-tests
53635         (test_u16_conv_to_enc_LDADD): Likewise.
53636         * modules/uniconv/u16-strconv-from-enc-tests
53637         (test_u16_strconv_from_enc_LDADD): Likewise.
53638         * modules/uniconv/u16-strconv-to-enc-tests
53639         (test_u16_strconv_to_enc_LDADD): Likewise.
53640         * modules/uniconv/u32-conv-from-enc-tests
53641         (test_u32_conv_from_enc_LDADD): Likewise.
53642         * modules/uniconv/u32-conv-to-enc-tests
53643         (test_u32_conv_to_enc_LDADD): Likewise.
53644         * modules/uniconv/u32-strconv-from-enc-tests
53645         (test_u32_strconv_from_enc_LDADD): Likewise.
53646         * modules/uniconv/u32-strconv-to-enc-tests
53647         (test_u32_strconv_to_enc_LDADD): Likewise.
53648         * modules/uniconv/u8-conv-from-enc-tests
53649         (test_u8_conv_from_enc_LDADD): Likewise.
53650         * modules/uniconv/u8-conv-to-enc-tests
53651         (test_u8_conv_to_enc_LDADD): Likewise.
53652         * modules/uniconv/u8-strconv-from-enc-tests
53653         (test_u8_strconv_from_enc_LDADD): Likewise.
53654         * modules/uniconv/u8-strconv-to-enc-tests
53655         (test_u8_strconv_to_enc_LDADD): Likewise.
53656
53657 2007-10-22  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53660         size.
53661
53662 2007-10-22  Eric Blake  <ebb9@byu.net>
53663
53664         Tweak x*printf documentation.
53665         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53666         variable name and comments.
53667         Suggested by Bruno Haible.
53668
53669 2007-10-22  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/acl.c (copy_acl): Fix file name in comment.
53672
53673 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53674
53675         Fix Tru64 problem with stdbool.h.
53676         * lib/stdbool.in.h (false, true):
53677         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53678         Don't declare as an enum in this situation; it runs afoul of Tru64.
53679         Problem reported by Steven M. Schweda in
53680         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53681
53682 2007-10-22  Eric Blake  <ebb9@byu.net>
53683
53684         Also wrap vf?printf.
53685         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53686         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53687         (xvprintf, xvfprintf): New functions.
53688
53689 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53690
53691         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53692         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53693
53694         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53695         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53696
53697 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53698
53699         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53700         by Bruno Haible.
53701
53702 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53703
53704         * lib/getloadavg.c
53705         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53706         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53707
53708         * tests/test-i-ring.c: Work for C89.
53709
53710 2007-10-22  Bruno Haible  <bruno@clisp.org>
53711
53712         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53713         -1u, in preprocessor expression, so that we don't test for the bug
53714         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53716
53717 2007-10-22  Eric Blake  <ebb9@byu.net>
53718
53719         * tests/test-yesno.sh: Silence stderr during test.
53720
53721 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53722
53723         * modules/crypto/gc-camellia: New file.
53724
53725         * m4/gc-camellia.m4: New file.
53726
53727         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53728
53729         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53730
53731 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53732
53733         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53734         --help to stdout.  Reported by sms@antinode.org (Steven
53735         M. Schweda).
53736
53737 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53738
53739         * users.txt: Fix link to libksba.
53740
53741 2007-10-21  Ben Pfaff  <blp@gnu.org>
53742
53743         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53744         round.c roundf implementation that depends on floorf and ceilf to
53745         be tested unconditionally.
53746
53747 2007-10-21  Ben Pfaff  <blp@gnu.org>
53748
53749         * m4/check-libm-func.m4: Removed.
53750         * m4/check-math-lib.m4: New file.
53751         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53752         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53753         definition and lack of AC_LIBOBJ([roundf]).
53754         * m4/roundl.m4: Ditto, and similarly for roundl.
53755         * modules/round: Reference new m4 file.
53756         * modules/roundf: Ditto.
53757         * modules/roundl: Ditto.
53758         * tests/test-round2.c (main): Use ROUND instead of round.
53759         Bug report from Bruno Haible.
53760
53761 2007-10-21  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53764         context.
53765
53766 2007-10-21  Bruno Haible  <bruno@clisp.org>
53767
53768         * tests/test-wcwidth.c (main): Allow negative result for some control
53769         characters.
53770
53771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53772         Needed on OSF/1 5.1.
53773
53774 2007-10-21  Bruno Haible  <bruno@clisp.org>
53775
53776         * tests/test-floorf1.c: Include isnanf.h.
53777         (main): Use isnanf() instead of isnan().
53778         * tests/test-ceilf1.c: Include isnanf.h.
53779         (main): Use isnanf() instead of isnan().
53780         * tests/test-truncf1.c: Include isnanf.h.
53781         (main): Use isnanf() instead of isnan().
53782         * tests/test-roundf1.c: Include isnanf.h.
53783         (main): Use isnanf() instead of isnan().
53784
53785 2007-10-21  Eric Blake  <ebb9@byu.net>
53786
53787         * users.txt: Update URL for m4.
53788
53789 2007-10-21  Bruno Haible  <bruno@clisp.org>
53790
53791         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53792
53793 2007-10-21  Bruno Haible  <bruno@clisp.org>
53794
53795         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53796         Git's management files if the CVS files are not present.
53797
53798 2007-10-20  Bruno Haible  <bruno@clisp.org>
53799
53800         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53801         gcc-3.4.x.
53802
53803 2007-10-20  Ben Pfaff  <blp@gnu.org>
53804
53805         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53806         implementations.
53807         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53808         * lib/round.c: New file.
53809         * lib/roundf.c: New file.
53810         * lib/roundl.c: New file.
53811         * m4/round.m4: New file.
53812         * m4/roundf.m4: New file.
53813         * m4/roundl.m4: New file.
53814         * m4/check-libm-func-m4: New file.
53815         * modules/math: Replace round, roundf, roundl related @VARS@ in
53816         math.in.h.
53817         * modules/round: New file.
53818         * modules/round-tests: New file.
53819         * modules/roundf: New file.
53820         * modules/roundf-tests: New file.
53821         * modules/roundl: New file.
53822         * modules/roundl-tests: New file.
53823         * tests/test-round1.c: New file.
53824         * tests/test-round2.c: New file.
53825         * tests/test-roundf1.c: New file.
53826         * tests/test-roundf2.c: New file.
53827         * tests/test-roundl.c: New file.
53828         * doc/functions/round.texi: Mention round module.
53829         * doc/functions/roundf.texi: Mention roundf module.
53830         * doc/functions/roundl.texi: Mention roundl module.
53831         * MODULES.html.sh: Mention new modules.
53832         Thanks to Bruno Haible for suggestions.
53833
53834 2007-10-20  Jim Meyering  <meyering@redhat.com>
53835
53836         * lib/xprintf.c: Include <config.h> unconditionally.
53837
53838         Change xprintf's license to GPL.
53839         * modules/xprintf (License): s/LGPL/GPL/, since this module
53840         depends on modules (exit and exitfail) which are GPL.
53841         Suggestion from Bruno Haible.
53842
53843         xprintf fixes.
53844         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53845         Use a clearer diagnostic.
53846         Patch from Bruno Haible.
53847
53848 2007-10-20  Bruno Haible  <bruno@clisp.org>
53849
53850         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53851         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53853
53854 2007-10-20  Bruno Haible  <bruno@clisp.org>
53855
53856         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53857         precision in the comparison result > x - 1 or similar.
53858         * tests/test-ceilf2.c (correct_result_p): Likewise.
53859         * tests/test-truncf2.c (correct_result_p): Likewise.
53860         * tests/test-trunc2.c (correct_result_p): Likewise.
53861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53862
53863 2007-10-20  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/ceil: New file.
53866         * m4/ceil.m4: New file.
53867         * doc/functions/ceil.texi: Mention the 'ceil' module.
53868
53869 2007-10-20  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/floor: New file.
53872         * m4/floor.m4: New file.
53873         * doc/functions/floor.texi: Mention the 'floor' module.
53874
53875 2007-10-20  Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53878         of %a.
53879         * modules/floorf-tests (Depends-on): Likewise.
53880         * modules/truncf-tests (Depends-on): Likewise.
53881         * modules/trunc-tests (Depends-on): Likewise.
53882         Reported by Ben Pfaff.
53883
53884 2007-10-19  Jim Meyering  <meyering@redhat.com>
53885
53886         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53887         Don't bother testing specific errno values.  Just test ferror.
53888
53889         New module: xprintf
53890         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53891
53892 2007-10-19  Bruno Haible  <bruno@clisp.org>
53893
53894         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53895         syntax.
53896         * modules/javaexec (Makefile.am): Likewise.
53897         * modules/relocatable-prog (Makefile.am): Likewise.
53898         Suggested by Jim Meyering.
53899
53900 2007-10-18  Bruno Haible  <bruno@clisp.org>
53901
53902         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53903         Reported by Jim Meyering.
53904
53905 2007-10-18  Eric Blake  <ebb9@byu.net>
53906
53907         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53908
53909 2007-10-18  Bruno Haible  <bruno@clisp.org>
53910
53911         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53912         the format string into writable memory. Needed in Fortify conditions.
53913
53914 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53915             Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53918         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53919         * modules/trim (Depends-on): Add mbchar.
53920         (configure.ac): Add gl_FUNC_MBRTOWC.
53921         (Makefile.am): Augment lib_SOURCES.
53922
53923 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         Modify glob.c to use fstatat and dirfd, to simplify it.
53926         Suggested by Eric Blake.
53927         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53928         Don't include <stdbool.h>; not used.
53929         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53930         (link_exists_p): Simplify implementation, since we can now assume
53931         dirfd and fstatat.
53932         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53933
53934 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53935
53936         * gnulib-tool (func_get_dependencies): Fix sed script to
53937         match only tests.
53938
53939 2007-10-17  Bruno Haible  <bruno@clisp.org>
53940
53941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53942         allow locale names without encoding suffix.
53943         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53944         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53945
53946 2007-10-16  Bruno Haible  <bruno@clisp.org>
53947
53948         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53949         * lib/getgroups.c (getgroups): Likewise.
53950         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53951
53952 2007-10-16  Bruno Haible  <bruno@clisp.org>
53953
53954         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53955         * modules/malloc-posix (License): Likewise.
53956         * modules/realloc-posix (License): Likewise.
53957         * modules/calloc-posix (License): Likewise.
53958         * modules/intprops (License): Change from GPL to LGPL, with
53959         Paul Eggert's approval.
53960
53961 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         Merge glibc changes into lib/glob.c.
53964
53965         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53966         2007-10-15 04:59:03 UTC.  Here are the changes:
53967
53968         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53969
53970         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53971
53972         * lib/glob.c: Add some branch prediction throughout.
53973
53974         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53975
53976         [BZ #5103]
53977         * lib/glob.c (glob): Recognize patterns starting \/.
53978
53979         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53980
53981         [BZ #3996]
53982         * lib/glob.c (attribute_hidden): Define if not defined.
53983         (glob): Unescape dirname, filename or username when needed and not
53984         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53985         is NULL.  Handle unescaped [ in pattern without closing ].
53986         Don't pass GLOB_CHECK down to recursive glob for directories.
53987         (__glob_pattern_type): New function.
53988         (__glob_pattern_p): Implement using __glob_pattern_type.
53989         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53990         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53991         Remove unreachable code.
53992
53993         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53994
53995         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53996         explain why there are no leaks.
53997
53998         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53999
54000         [BZ #3253]
54001         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54002         time, rather allocate increasingly bigger arrays of pointers, if
54003         possible with alloca, if too large with malloc.
54004
54005 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54008         Problem reported by H.Merijn Brand in
54009         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54011         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54012
54013 2007-10-15  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54016         with explicit rpl_ prefix.
54017         * lib/fopen.c (fopen): Likewise.
54018         * lib/freopen.c (freopen): Likewise.
54019         * lib/iconv.c (iconv): Likewise.
54020         * lib/iconv_close.c (iconv_close): Likewise.
54021
54022 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54023
54024         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54025
54026 2007-10-15  Bruno Haible  <bruno@clisp.org>
54027
54028         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54029         <stddef.h> instead of <stdlib.h> since we only need NULL.
54030         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54031
54032 2007-10-15  Bruno Haible  <bruno@clisp.org>
54033
54034         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54035         Replace paragraph talking about LIBOBJS.
54036         Reported by Colin Watson <cjwatson@debian.org>.
54037
54038 2007-10-15  Bruno Haible  <bruno@clisp.org>
54039
54040         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54041         <stdlib.h> before using NULL.
54042
54043 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54044
54045         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54046         Reported by Albert Chin <china@thewrittenword.com>.
54047
54048 2007-10-14  Bruno Haible  <bruno@clisp.org>
54049
54050         * modules/iconv_open-utf-tests: New file.
54051         * tests/test-iconv-utf.c: New file.
54052
54053         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54054         * modules/iconv_open-utf: New file.
54055         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54056         (iconv, iconv_close): New declarations.
54057         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54058         be defined.
54059         (iconv_open): Add special handling of conversion between UTF-8 and
54060         UTF-{16,32}{BE,LE}.
54061         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54062         * lib/iconv_close.c: New file.
54063         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54064         gl_FUNC_ICONV_OPEN.
54065         (gl_FUNC_ICONV_OPEN): Use it.
54066         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54067         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54068         and REPLACE_ICONV_UTF.
54069         * modules/iconv_open (Depends-on): Add c-strcase.
54070         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54071         ICONV_CONST.
54072         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54073
54074 2007-10-13  Albert Chin  <china@thewrittenword.com>
54075             Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54078         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54079
54080 2007-10-13  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54083         defined, use the ISO C99 inline semantics.
54084         * lib/argp.h (ARGP_EI): Likewise.
54085
54086 2007-10-13  Bruno Haible  <bruno@clisp.org>
54087
54088         Handle 'inline' change in gcc 4.3.0.
54089         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54090         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54091         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54092         argp_fmtstream_point): Disable 'extern' declaration if the function
54093         definition is going to be provided inline.
54094         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54095         semantics, not the ISO C99 inline semantics.
54096         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54097         'extern' declaration if the function definition is going to be provided
54098         inline.
54099         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54100         the GNU C inline semantics, not the ISO C99 inline semantics. With
54101         GCC 4.2, avoid a warning.
54102
54103 2007-10-13  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/freading.h (freading): Enable the use of __freading for
54106         glibc >= 2.7.
54107         * lib/freading.c (freading): Likewise.
54108
54109 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54110
54111         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54112         "warning: C99 inline functions are not supported; using GNU89".
54113
54114 2007-10-12  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54117         of 2.
54118         * tests/test-ceilf2.c: New file.
54119         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54120
54121         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54122         * modules/ceilf-tests: Update.
54123
54124 2007-10-12  Bruno Haible  <bruno@clisp.org>
54125
54126         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54127         of 2.
54128         * tests/test-floorf2.c: New file.
54129         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54130
54131         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54132         * modules/floorf-tests: Update.
54133
54134 2007-10-12  Bruno Haible  <bruno@clisp.org>
54135
54136         * tests/test-trunc2.c: New file.
54137         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54138
54139         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54140         * modules/trunc-tests: Update.
54141
54142 2007-10-12  Bruno Haible  <bruno@clisp.org>
54143
54144         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54145         of 2.
54146         * tests/test-truncf2.c: New file.
54147         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54148
54149         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54150         * modules/truncf-tests: Update.
54151
54152 2007-10-11  Eric Blake  <ebb9@byu.net>
54153
54154         Don't claim strerror is broken on Interix.
54155         * doc/functions/strerror.texi (strerror): Known broken systems are
54156         now Solaris 8, and not Interix.
54157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54158         Interix on cross-compile.
54159         Reported by Martin Koeppe in
54160         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54161
54162 2007-10-11  Bruno Haible  <bruno@clisp.org>
54163
54164         * modules/i-ring-tests: New file.
54165         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54166         instead of assert.
54167
54168 2007-10-11  Bruno Haible  <bruno@clisp.org>
54169
54170         * modules/filenamecat-tests: New file.
54171         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54172         * lib/filenamecat.c: Remove test code.
54173
54174 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54177
54178         * lib/strerror.c: Include <string.h> always, to test interface,
54179         and to remove the need for the dummy.
54180         Include intprops.h to compute width instead of doing it ourselves
54181         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54182         (strerror): Define it to return NULL if there's no system strerror.
54183         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54184         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54185         ancient pre-strerror Unix systems well any more.  Saying "unknown
54186         system error" is enough.
54187         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54188         simpler strerror.c implementation.
54189         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54190         Simplify the tests to reflect the simpler strerror implementation.
54191         * modules/strerror (Depends-on): Add intprops.
54192
54193 2007-10-09  Eric Blake  <ebb9@byu.net>
54194
54195         Silence test-fpending.
54196         * modules/fpending-tests (Files): Add wrapper script.
54197         * tests/test-fpending.sh: New file.
54198
54199 2007-10-09  Bruno Haible  <bruno@clisp.org>
54200
54201         * MODULES.html.sh (func_module): Don't create a hyperlink for
54202         function names like 'printf_frexp'.
54203         (Misc): Add crc, memxor.
54204         (Characteristics of floating types): New section.
54205         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54206         isnanf-nolibm, signbit, trunc, truncf, truncl.
54207         (Enhancements for ISO C 99 functions): New subsection Input/output.
54208         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54209         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54210         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54211         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54212         (Enhancements for POSIX:2001 functions): Add chdir-long.
54213         (File system functions): Add areadlink, chdir-safer, read-file.
54214         Remove cycle-check.
54215         (File system as inode set): New section.
54216         (Date and time): Add gethrxtime.
54217         (Multithreading): Add openmp.
54218         (Internationalization functions): Add localename.
54219         (Unicode string functions): Add unistr/u*-mbsnlen.
54220         (Support for maintaining and releasing projects): Add git-version-gen.
54221         (Lone files): Remove directories.
54222
54223 2007-10-08  Ben Pfaff  <blp@gnu.org>
54224
54225         * lib/xmalloca.h: Fix typo in comment.
54226
54227 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54228
54229         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54230         when avoiding problems with integer overflow.  Use a portable test
54231         instead.
54232
54233 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54234
54235         * modules/dummy (License): Change to LGPLv2+.
54236         * modules/float (License): Likewise
54237         * modules/realloc (License): Likewise
54238         * modules/stdlib (License): Likewise
54239
54240 2007-10-07  Bruno Haible  <bruno@clisp.org>
54241
54242         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54243         * floor.c (TWO_MANT_DIG): Likewise.
54244         * ceil.c (TWO_MANT_DIG): Likewise.
54245         Reported by Ben Pfaff.
54246
54247 2007-10-07  Bruno Haible  <bruno@clisp.org>
54248
54249         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54250         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54251         * lib/frexp.c (FUNC): Likewise.
54252         * lib/printf-frexp.h (printf_frexp): Likewise.
54253         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54254         * lib/printf-frexp.c (FUNC): Likewise.
54255         Suggested by Jim Meyering.
54256
54257 2007-10-07  Jim Meyering  <meyering@redhat.com>
54258
54259         Make xnanosleep's integer overflow test more robust.
54260         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54261         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54262
54263 2007-10-07  Bruno Haible  <bruno@clisp.org>
54264
54265         * NEWS: Mention the license change.
54266
54267         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54268         abbreviations in the modules files.
54269
54270         Change copyright notice from GPLv2+ to GPLv3+.
54271         * README: Change copyright notice.
54272         * MODULES.html.sh: Likewise.
54273         * build-aux/bootstrap.conf: Likewise.
54274         * build-aux/config.libpath: Likewise.
54275         * build-aux/csharpcomp.sh.in: Likewise.
54276         * build-aux/csharpexec.sh.in: Likewise.
54277         * build-aux/install-reloc: Likewise.
54278         * build-aux/javacomp.sh.in: Likewise.
54279         * build-aux/javaexec.sh.in: Likewise.
54280         * build-aux/ldd.sh.in: Likewise.
54281         * build-aux/reloc-ldflags: Likewise.
54282         * build-aux/relocatable.sh.in: Likewise.
54283         * build-aux/x-to-1.in: Likewise.
54284         * check-module: Likewise.
54285         * config/srclistvars.sh: Likewise.
54286         * gnulib-tool: Likewise.
54287         * lib/acl-internal.h: Likewise.
54288         * lib/acl.c: Likewise.
54289         * lib/acl.h: Likewise.
54290         * lib/acl_entries.c: Likewise.
54291         * lib/areadlink-with-size.c: Likewise.
54292         * lib/areadlink.c: Likewise.
54293         * lib/areadlink.h: Likewise.
54294         * lib/argmatch.c: Likewise.
54295         * lib/argmatch.h: Likewise.
54296         * lib/argp-ba.c: Likewise.
54297         * lib/argp-eexst.c: Likewise.
54298         * lib/argp-fmtstream.c: Likewise.
54299         * lib/argp-fmtstream.h: Likewise.
54300         * lib/argp-fs-xinl.c: Likewise.
54301         * lib/argp-help.c: Likewise.
54302         * lib/argp-namefrob.h: Likewise.
54303         * lib/argp-parse.c: Likewise.
54304         * lib/argp-pin.c: Likewise.
54305         * lib/argp-pv.c: Likewise.
54306         * lib/argp-pvh.c: Likewise.
54307         * lib/argp-xinl.c: Likewise.
54308         * lib/argp.h: Likewise.
54309         * lib/at-func.c: Likewise.
54310         * lib/atanl.c: Likewise.
54311         * lib/backupfile.c: Likewise.
54312         * lib/backupfile.h: Likewise.
54313         * lib/basename.c: Likewise.
54314         * lib/binary-io.h: Likewise.
54315         * lib/byteswap.in.h: Likewise.
54316         * lib/c-stack.c: Likewise.
54317         * lib/c-stack.h: Likewise.
54318         * lib/c-strcasestr.c: Likewise.
54319         * lib/c-strcasestr.h: Likewise.
54320         * lib/c-strstr.c: Likewise.
54321         * lib/c-strstr.h: Likewise.
54322         * lib/c-strtod.c: Likewise.
54323         * lib/calloc.c: Likewise.
54324         * lib/canon-host.c: Likewise.
54325         * lib/canon-host.h: Likewise.
54326         * lib/canonicalize-lgpl.c: Likewise.
54327         * lib/canonicalize.c: Likewise.
54328         * lib/canonicalize.h: Likewise.
54329         * lib/ceil.c: Likewise.
54330         * lib/ceilf.c: Likewise.
54331         * lib/ceill.c: Likewise.
54332         * lib/chdir-long.c: Likewise.
54333         * lib/chdir-long.h: Likewise.
54334         * lib/chdir-safer.c: Likewise.
54335         * lib/chdir-safer.h: Likewise.
54336         * lib/chown.c: Likewise.
54337         * lib/classpath.c: Likewise.
54338         * lib/classpath.h: Likewise.
54339         * lib/clean-temp.c: Likewise.
54340         * lib/clean-temp.h: Likewise.
54341         * lib/cloexec.c: Likewise.
54342         * lib/close-stream.c: Likewise.
54343         * lib/closein.c: Likewise.
54344         * lib/closein.h: Likewise.
54345         * lib/closeout.c: Likewise.
54346         * lib/closeout.h: Likewise.
54347         * lib/concat-filename.c: Likewise.
54348         * lib/copy-file.c: Likewise.
54349         * lib/copy-file.h: Likewise.
54350         * lib/count-one-bits.h: Likewise.
54351         * lib/crc.c: Likewise.
54352         * lib/crc.h: Likewise.
54353         * lib/creat-safer.c: Likewise.
54354         * lib/csharpcomp.c: Likewise.
54355         * lib/csharpcomp.h: Likewise.
54356         * lib/csharpexec.c: Likewise.
54357         * lib/csharpexec.h: Likewise.
54358         * lib/cycle-check.c: Likewise.
54359         * lib/cycle-check.h: Likewise.
54360         * lib/diacrit.c: Likewise.
54361         * lib/diacrit.h: Likewise.
54362         * lib/diffseq.h: Likewise.
54363         * lib/dirchownmod.c: Likewise.
54364         * lib/dirent.in.h: Likewise.
54365         * lib/dirfd.c: Likewise.
54366         * lib/dirfd.h: Likewise.
54367         * lib/dirname.c: Likewise.
54368         * lib/dirname.h: Likewise.
54369         * lib/dummy.c: Likewise.
54370         * lib/dup-safer.c: Likewise.
54371         * lib/dup2.c: Likewise.
54372         * lib/eealloc.h: Likewise.
54373         * lib/error.c: Likewise.
54374         * lib/error.h: Likewise.
54375         * lib/euidaccess.c: Likewise.
54376         * lib/exclude.c: Likewise.
54377         * lib/exclude.h: Likewise.
54378         * lib/execute.c: Likewise.
54379         * lib/execute.h: Likewise.
54380         * lib/exitfail.c: Likewise.
54381         * lib/exitfail.h: Likewise.
54382         * lib/expl.c: Likewise.
54383         * lib/fatal-signal.c: Likewise.
54384         * lib/fatal-signal.h: Likewise.
54385         * lib/fbufmode.c: Likewise.
54386         * lib/fbufmode.h: Likewise.
54387         * lib/fchdir.c: Likewise.
54388         * lib/fchmodat.c: Likewise.
54389         * lib/fchownat.c: Likewise.
54390         * lib/fcntl--.h: Likewise.
54391         * lib/fcntl-safer.h: Likewise.
54392         * lib/fcntl.in.h: Likewise.
54393         * lib/fd-safer.c: Likewise.
54394         * lib/fflush.c: Likewise.
54395         * lib/file-has-acl.c: Likewise.
54396         * lib/file-set.c: Likewise.
54397         * lib/file-type.c: Likewise.
54398         * lib/file-type.h: Likewise.
54399         * lib/fileblocks.c: Likewise.
54400         * lib/filemode.c: Likewise.
54401         * lib/filemode.h: Likewise.
54402         * lib/filename.h: Likewise.
54403         * lib/filenamecat.c: Likewise.
54404         * lib/filenamecat.h: Likewise.
54405         * lib/findprog.c: Likewise.
54406         * lib/findprog.h: Likewise.
54407         * lib/float.in.h: Likewise.
54408         * lib/floor.c: Likewise.
54409         * lib/floorf.c: Likewise.
54410         * lib/floorl.c: Likewise.
54411         * lib/fopen-safer.c: Likewise.
54412         * lib/fopen.c: Likewise.
54413         * lib/fpending.c: Likewise.
54414         * lib/fpending.h: Likewise.
54415         * lib/fprintf.c: Likewise.
54416         * lib/fprintftime.h: Likewise.
54417         * lib/fpucw.h: Likewise.
54418         * lib/fpurge.c: Likewise.
54419         * lib/fpurge.h: Likewise.
54420         * lib/freadable.c: Likewise.
54421         * lib/freadable.h: Likewise.
54422         * lib/freadahead.c: Likewise.
54423         * lib/freadahead.h: Likewise.
54424         * lib/freading.c: Likewise.
54425         * lib/freading.h: Likewise.
54426         * lib/free.c: Likewise.
54427         * lib/freopen.c: Likewise.
54428         * lib/frexp.c: Likewise.
54429         * lib/frexpl.c: Likewise.
54430         * lib/fseek.c: Likewise.
54431         * lib/fseterr.c: Likewise.
54432         * lib/fseterr.h: Likewise.
54433         * lib/fstatat.c: Likewise.
54434         * lib/fstrcmp.c: Likewise.
54435         * lib/fstrcmp.h: Likewise.
54436         * lib/fsusage.c: Likewise.
54437         * lib/fsusage.h: Likewise.
54438         * lib/ftell.c: Likewise.
54439         * lib/ftello.c: Likewise.
54440         * lib/fts-cycle.c: Likewise.
54441         * lib/fts.c: Likewise.
54442         * lib/fts_.h: Likewise.
54443         * lib/full-read.c: Likewise.
54444         * lib/full-read.h: Likewise.
54445         * lib/full-write.c: Likewise.
54446         * lib/full-write.h: Likewise.
54447         * lib/fwritable.c: Likewise.
54448         * lib/fwritable.h: Likewise.
54449         * lib/fwriteerror.c: Likewise.
54450         * lib/fwriteerror.h: Likewise.
54451         * lib/fwriting.c: Likewise.
54452         * lib/fwriting.h: Likewise.
54453         * lib/gcd.c: Likewise.
54454         * lib/gcd.h: Likewise.
54455         * lib/getcwd.c: Likewise.
54456         * lib/getdate.h: Likewise.
54457         * lib/getdate.y: Likewise.
54458         * lib/getdomainname.c: Likewise.
54459         * lib/getdomainname.h: Likewise.
54460         * lib/getgroups.c: Likewise.
54461         * lib/gethostname.c: Likewise.
54462         * lib/gethrxtime.c: Likewise.
54463         * lib/gethrxtime.h: Likewise.
54464         * lib/getloadavg.c: Likewise.
54465         * lib/getndelim2.c: Likewise.
54466         * lib/getndelim2.h: Likewise.
54467         * lib/getnline.c: Likewise.
54468         * lib/getnline.h: Likewise.
54469         * lib/getopt.c: Likewise.
54470         * lib/getopt.in.h: Likewise.
54471         * lib/getopt1.c: Likewise.
54472         * lib/getopt_int.h: Likewise.
54473         * lib/getpagesize.h: Likewise.
54474         * lib/getsubopt.c: Likewise.
54475         * lib/gettime.c: Likewise.
54476         * lib/getugroups.c: Likewise.
54477         * lib/getugroups.h: Likewise.
54478         * lib/getusershell.c: Likewise.
54479         * lib/gl_anyavltree_list1.h: Likewise.
54480         * lib/gl_anyavltree_list2.h: Likewise.
54481         * lib/gl_anyhash_list1.h: Likewise.
54482         * lib/gl_anyhash_list2.h: Likewise.
54483         * lib/gl_anylinked_list1.h: Likewise.
54484         * lib/gl_anylinked_list2.h: Likewise.
54485         * lib/gl_anyrbtree_list1.h: Likewise.
54486         * lib/gl_anyrbtree_list2.h: Likewise.
54487         * lib/gl_anytree_list1.h: Likewise.
54488         * lib/gl_anytree_list2.h: Likewise.
54489         * lib/gl_anytree_oset.h: Likewise.
54490         * lib/gl_anytreehash_list1.h: Likewise.
54491         * lib/gl_anytreehash_list2.h: Likewise.
54492         * lib/gl_array_list.c: Likewise.
54493         * lib/gl_array_list.h: Likewise.
54494         * lib/gl_array_oset.c: Likewise.
54495         * lib/gl_array_oset.h: Likewise.
54496         * lib/gl_avltree_list.c: Likewise.
54497         * lib/gl_avltree_list.h: Likewise.
54498         * lib/gl_avltree_oset.c: Likewise.
54499         * lib/gl_avltree_oset.h: Likewise.
54500         * lib/gl_avltreehash_list.c: Likewise.
54501         * lib/gl_avltreehash_list.h: Likewise.
54502         * lib/gl_carray_list.c: Likewise.
54503         * lib/gl_carray_list.h: Likewise.
54504         * lib/gl_linked_list.c: Likewise.
54505         * lib/gl_linked_list.h: Likewise.
54506         * lib/gl_linkedhash_list.c: Likewise.
54507         * lib/gl_linkedhash_list.h: Likewise.
54508         * lib/gl_list.c: Likewise.
54509         * lib/gl_list.h: Likewise.
54510         * lib/gl_oset.c: Likewise.
54511         * lib/gl_oset.h: Likewise.
54512         * lib/gl_rbtree_list.c: Likewise.
54513         * lib/gl_rbtree_list.h: Likewise.
54514         * lib/gl_rbtree_oset.c: Likewise.
54515         * lib/gl_rbtree_oset.h: Likewise.
54516         * lib/gl_rbtreehash_list.c: Likewise.
54517         * lib/gl_rbtreehash_list.h: Likewise.
54518         * lib/gl_sublist.c: Likewise.
54519         * lib/gl_sublist.h: Likewise.
54520         * lib/group-member.c: Likewise.
54521         * lib/group-member.h: Likewise.
54522         * lib/hard-locale.c: Likewise.
54523         * lib/hard-locale.h: Likewise.
54524         * lib/hash-pjw.c: Likewise.
54525         * lib/hash-pjw.h: Likewise.
54526         * lib/hash-triple.c: Likewise.
54527         * lib/hash.c: Likewise.
54528         * lib/hash.h: Likewise.
54529         * lib/human.c: Likewise.
54530         * lib/human.h: Likewise.
54531         * lib/i-ring.c: Likewise.
54532         * lib/i-ring.h: Likewise.
54533         * lib/idcache.c: Likewise.
54534         * lib/imaxabs.c: Likewise.
54535         * lib/imaxdiv.c: Likewise.
54536         * lib/inet_pton.c: Likewise.
54537         * lib/inet_pton.h: Likewise.
54538         * lib/intprops.h: Likewise.
54539         * lib/inttostr.c: Likewise.
54540         * lib/inttostr.h: Likewise.
54541         * lib/inttypes.in.h: Likewise.
54542         * lib/isapipe.c: Likewise.
54543         * lib/isdir.c: Likewise.
54544         * lib/isnan.c: Likewise.
54545         * lib/isnan.h: Likewise.
54546         * lib/isnanf.c: Likewise.
54547         * lib/isnanf.h: Likewise.
54548         * lib/isnanl-nolibm.h: Likewise.
54549         * lib/isnanl.c: Likewise.
54550         * lib/isnanl.h: Likewise.
54551         * lib/javacomp.c: Likewise.
54552         * lib/javacomp.h: Likewise.
54553         * lib/javaexec.c: Likewise.
54554         * lib/javaexec.h: Likewise.
54555         * lib/javaversion.c: Likewise.
54556         * lib/javaversion.h: Likewise.
54557         * lib/javaversion.java: Likewise.
54558         * lib/lbrkprop.h: Likewise.
54559         * lib/lchmod.h: Likewise.
54560         * lib/lchown.c: Likewise.
54561         * lib/ldexpl.c: Likewise.
54562         * lib/linebreak.c: Likewise.
54563         * lib/linebreak.h: Likewise.
54564         * lib/linebuffer.c: Likewise.
54565         * lib/linebuffer.h: Likewise.
54566         * lib/locale.in.h: Likewise.
54567         * lib/logl.c: Likewise.
54568         * lib/long-options.c: Likewise.
54569         * lib/long-options.h: Likewise.
54570         * lib/lstat.c: Likewise.
54571         * lib/lstat.h: Likewise.
54572         * lib/math.in.h: Likewise.
54573         * lib/mbchar.c: Likewise.
54574         * lib/mbchar.h: Likewise.
54575         * lib/mbfile.h: Likewise.
54576         * lib/mbiter.h: Likewise.
54577         * lib/mbscasecmp.c: Likewise.
54578         * lib/mbscasestr.c: Likewise.
54579         * lib/mbschr.c: Likewise.
54580         * lib/mbscspn.c: Likewise.
54581         * lib/mbslen.c: Likewise.
54582         * lib/mbsncasecmp.c: Likewise.
54583         * lib/mbsnlen.c: Likewise.
54584         * lib/mbspbrk.c: Likewise.
54585         * lib/mbspcasecmp.c: Likewise.
54586         * lib/mbsrchr.c: Likewise.
54587         * lib/mbssep.c: Likewise.
54588         * lib/mbsspn.c: Likewise.
54589         * lib/mbsstr.c: Likewise.
54590         * lib/mbstok_r.c: Likewise.
54591         * lib/mbswidth.c: Likewise.
54592         * lib/mbswidth.h: Likewise.
54593         * lib/mbuiter.h: Likewise.
54594         * lib/memcasecmp.c: Likewise.
54595         * lib/memcasecmp.h: Likewise.
54596         * lib/memchr.c: Likewise.
54597         * lib/memcmp.c: Likewise.
54598         * lib/memcoll.c: Likewise.
54599         * lib/memcoll.h: Likewise.
54600         * lib/memcpy.c: Likewise.
54601         * lib/memrchr.c: Likewise.
54602         * lib/mkancesdirs.c: Likewise.
54603         * lib/mkdir-p.c: Likewise.
54604         * lib/mkdir-p.h: Likewise.
54605         * lib/mkdir.c: Likewise.
54606         * lib/mkdirat.c: Likewise.
54607         * lib/mkdtemp.c: Likewise.
54608         * lib/mkstemp-safer.c: Likewise.
54609         * lib/mkstemp.c: Likewise.
54610         * lib/modechange.c: Likewise.
54611         * lib/modechange.h: Likewise.
54612         * lib/mountlist.c: Likewise.
54613         * lib/mountlist.h: Likewise.
54614         * lib/mpsort.c: Likewise.
54615         * lib/nanosleep.c: Likewise.
54616         * lib/obstack.c: Likewise.
54617         * lib/obstack.h: Likewise.
54618         * lib/open-safer.c: Likewise.
54619         * lib/open.c: Likewise.
54620         * lib/openat-die.c: Likewise.
54621         * lib/openat-priv.h: Likewise.
54622         * lib/openat-proc.c: Likewise.
54623         * lib/openat.c: Likewise.
54624         * lib/openat.h: Likewise.
54625         * lib/pagealign_alloc.c: Likewise.
54626         * lib/pagealign_alloc.h: Likewise.
54627         * lib/physmem.c: Likewise.
54628         * lib/physmem.h: Likewise.
54629         * lib/pipe-safer.c: Likewise.
54630         * lib/pipe.c: Likewise.
54631         * lib/pipe.h: Likewise.
54632         * lib/posixtm.c: Likewise.
54633         * lib/posixtm.h: Likewise.
54634         * lib/posixver.c: Likewise.
54635         * lib/printf-frexp.c: Likewise.
54636         * lib/printf-frexp.h: Likewise.
54637         * lib/printf-frexpl.c: Likewise.
54638         * lib/printf-frexpl.h: Likewise.
54639         * lib/printf.c: Likewise.
54640         * lib/progname.c: Likewise.
54641         * lib/progname.h: Likewise.
54642         * lib/progreloc.c: Likewise.
54643         * lib/putenv.c: Likewise.
54644         * lib/quote.c: Likewise.
54645         * lib/quote.h: Likewise.
54646         * lib/quotearg.c: Likewise.
54647         * lib/quotearg.h: Likewise.
54648         * lib/raise.c: Likewise.
54649         * lib/readline.c: Likewise.
54650         * lib/readline.h: Likewise.
54651         * lib/readlink.c: Likewise.
54652         * lib/readtokens.c: Likewise.
54653         * lib/readtokens.h: Likewise.
54654         * lib/readtokens0.c: Likewise.
54655         * lib/readtokens0.h: Likewise.
54656         * lib/readutmp.c: Likewise.
54657         * lib/readutmp.h: Likewise.
54658         * lib/realloc.c: Likewise.
54659         * lib/relocwrapper.c: Likewise.
54660         * lib/rename-dest-slash.c: Likewise.
54661         * lib/rename.c: Likewise.
54662         * lib/rmdir.c: Likewise.
54663         * lib/rpmatch.c: Likewise.
54664         * lib/safe-read.c: Likewise.
54665         * lib/safe-read.h: Likewise.
54666         * lib/safe-write.c: Likewise.
54667         * lib/safe-write.h: Likewise.
54668         * lib/same-inode.h: Likewise.
54669         * lib/same.c: Likewise.
54670         * lib/same.h: Likewise.
54671         * lib/save-cwd.c: Likewise.
54672         * lib/save-cwd.h: Likewise.
54673         * lib/savedir.c: Likewise.
54674         * lib/savedir.h: Likewise.
54675         * lib/savewd.c: Likewise.
54676         * lib/savewd.h: Likewise.
54677         * lib/search.in.h: Likewise.
54678         * lib/setenv.c: Likewise.
54679         * lib/setenv.h: Likewise.
54680         * lib/settime.c: Likewise.
54681         * lib/sh-quote.c: Likewise.
54682         * lib/sh-quote.h: Likewise.
54683         * lib/sig2str.c: Likewise.
54684         * lib/sig2str.h: Likewise.
54685         * lib/signal.in.h: Likewise.
54686         * lib/signbitd.c: Likewise.
54687         * lib/signbitf.c: Likewise.
54688         * lib/signbitl.c: Likewise.
54689         * lib/sigprocmask.c: Likewise.
54690         * lib/sincosl.c: Likewise.
54691         * lib/sleep.c: Likewise.
54692         * lib/sprintf.c: Likewise.
54693         * lib/sqrtl.c: Likewise.
54694         * lib/stat-time.h: Likewise.
54695         * lib/stdio--.h: Likewise.
54696         * lib/stdio-safer.h: Likewise.
54697         * lib/stdlib--.h: Likewise.
54698         * lib/stdlib-safer.h: Likewise.
54699         * lib/stdlib.in.h: Likewise.
54700         * lib/stpcpy.c: Likewise.
54701         * lib/stpncpy.c: Likewise.
54702         * lib/strchrnul.c: Likewise.
54703         * lib/strcspn.c: Likewise.
54704         * lib/strerror.c: Likewise.
54705         * lib/strftime.c: Likewise.
54706         * lib/strftime.h: Likewise.
54707         * lib/striconveh.c: Likewise.
54708         * lib/striconveh.h: Likewise.
54709         * lib/striconveha.c: Likewise.
54710         * lib/striconveha.h: Likewise.
54711         * lib/stripslash.c: Likewise.
54712         * lib/strnlen1.c: Likewise.
54713         * lib/strnlen1.h: Likewise.
54714         * lib/strtod.c: Likewise.
54715         * lib/strtoimax.c: Likewise.
54716         * lib/strtok_r.c: Likewise.
54717         * lib/strtol.c: Likewise.
54718         * lib/strtoll.c: Likewise.
54719         * lib/strtoul.c: Likewise.
54720         * lib/strtoull.c: Likewise.
54721         * lib/sysexits.in.h: Likewise.
54722         * lib/tempname.c: Likewise.
54723         * lib/tempname.h: Likewise.
54724         * lib/timespec.h: Likewise.
54725         * lib/tls.c: Likewise.
54726         * lib/tls.h: Likewise.
54727         * lib/tmpdir.c: Likewise.
54728         * lib/tmpdir.h: Likewise.
54729         * lib/tmpfile-safer.c: Likewise.
54730         * lib/tmpfile.c: Likewise.
54731         * lib/trigl.c: Likewise.
54732         * lib/trigl.h: Likewise.
54733         * lib/trim.c: Likewise.
54734         * lib/trim.h: Likewise.
54735         * lib/trunc.c: Likewise.
54736         * lib/truncf.c: Likewise.
54737         * lib/truncl.c: Likewise.
54738         * lib/tsearch.c: Likewise.
54739         * lib/unicodeio.c: Likewise.
54740         * lib/unicodeio.h: Likewise.
54741         * lib/unistd--.h: Likewise.
54742         * lib/unistd-safer.h: Likewise.
54743         * lib/unistdio/ulc-fprintf.c: Likewise.
54744         * lib/unistdio/ulc-vfprintf.c: Likewise.
54745         * lib/unlinkdir.c: Likewise.
54746         * lib/unlinkdir.h: Likewise.
54747         * lib/unlocked-io.h: Likewise.
54748         * lib/unsetenv.c: Likewise.
54749         * lib/userspec.c: Likewise.
54750         * lib/utime.c: Likewise.
54751         * lib/utimecmp.c: Likewise.
54752         * lib/utimecmp.h: Likewise.
54753         * lib/utimens.c: Likewise.
54754         * lib/verify.h: Likewise.
54755         * lib/verror.c: Likewise.
54756         * lib/verror.h: Likewise.
54757         * lib/version-etc-fsf.c: Likewise.
54758         * lib/version-etc.c: Likewise.
54759         * lib/version-etc.h: Likewise.
54760         * lib/vfprintf.c: Likewise.
54761         * lib/vprintf.c: Likewise.
54762         * lib/vsprintf.c: Likewise.
54763         * lib/w32spawn.h: Likewise.
54764         * lib/wait-process.c: Likewise.
54765         * lib/wait-process.h: Likewise.
54766         * lib/wcwidth.c: Likewise.
54767         * lib/write-any-file.c: Likewise.
54768         * lib/xalloc-die.c: Likewise.
54769         * lib/xalloc.h: Likewise.
54770         * lib/xasprintf.c: Likewise.
54771         * lib/xgetcwd.c: Likewise.
54772         * lib/xgetcwd.h: Likewise.
54773         * lib/xgetdomainname.c: Likewise.
54774         * lib/xgetdomainname.h: Likewise.
54775         * lib/xgethostname.c: Likewise.
54776         * lib/xmalloc.c: Likewise.
54777         * lib/xmalloca.c: Likewise.
54778         * lib/xmalloca.h: Likewise.
54779         * lib/xmemcoll.c: Likewise.
54780         * lib/xnanosleep.c: Likewise.
54781         * lib/xreadlink.c: Likewise.
54782         * lib/xreadlink.h: Likewise.
54783         * lib/xsetenv.c: Likewise.
54784         * lib/xsetenv.h: Likewise.
54785         * lib/xstriconv.c: Likewise.
54786         * lib/xstriconv.h: Likewise.
54787         * lib/xstrndup.c: Likewise.
54788         * lib/xstrndup.h: Likewise.
54789         * lib/xstrtod.c: Likewise.
54790         * lib/xstrtod.h: Likewise.
54791         * lib/xstrtol-error.c: Likewise.
54792         * lib/xstrtol.c: Likewise.
54793         * lib/xstrtol.h: Likewise.
54794         * lib/xtime.h: Likewise.
54795         * lib/xvasprintf.c: Likewise.
54796         * lib/xvasprintf.h: Likewise.
54797         * lib/yesno.c: Likewise.
54798         * lib/yesno.h: Likewise.
54799         * posix-modules: Likewise.
54800         * tests/test-alloca-opt.c: Likewise.
54801         * tests/test-arcfour.c: Likewise.
54802         * tests/test-arctwo.c: Likewise.
54803         * tests/test-argmatch.c: Likewise.
54804         * tests/test-argp-2.sh: Likewise.
54805         * tests/test-argp.c: Likewise.
54806         * tests/test-arpa_inet.c: Likewise.
54807         * tests/test-array_list.c: Likewise.
54808         * tests/test-array_oset.c: Likewise.
54809         * tests/test-atexit.c: Likewise.
54810         * tests/test-avltree_list.c: Likewise.
54811         * tests/test-avltree_oset.c: Likewise.
54812         * tests/test-avltreehash_list.c: Likewise.
54813         * tests/test-base64.c: Likewise.
54814         * tests/test-binary-io.c: Likewise.
54815         * tests/test-byteswap.c: Likewise.
54816         * tests/test-c-ctype.c: Likewise.
54817         * tests/test-c-strcasecmp.c: Likewise.
54818         * tests/test-c-strcasestr.c: Likewise.
54819         * tests/test-c-strncasecmp.c: Likewise.
54820         * tests/test-c-strstr.c: Likewise.
54821         * tests/test-canonicalize-lgpl.c: Likewise.
54822         * tests/test-canonicalize.c: Likewise.
54823         * tests/test-carray_list.c: Likewise.
54824         * tests/test-ceilf.c: Likewise.
54825         * tests/test-ceill.c: Likewise.
54826         * tests/test-count-one-bits.c: Likewise.
54827         * tests/test-crc.c: Likewise.
54828         * tests/test-dirname.c: Likewise.
54829         * tests/test-fbufmode.c: Likewise.
54830         * tests/test-fcntl.c: Likewise.
54831         * tests/test-fflush.c: Likewise.
54832         * tests/test-floorf.c: Likewise.
54833         * tests/test-floorl.c: Likewise.
54834         * tests/test-fopen.c: Likewise.
54835         * tests/test-fprintf-posix.c: Likewise.
54836         * tests/test-fprintf-posix.h: Likewise.
54837         * tests/test-fpurge.c: Likewise.
54838         * tests/test-freadable.c: Likewise.
54839         * tests/test-freadahead.c: Likewise.
54840         * tests/test-freading.c: Likewise.
54841         * tests/test-freopen.c: Likewise.
54842         * tests/test-frexp.c: Likewise.
54843         * tests/test-frexpl.c: Likewise.
54844         * tests/test-fseek.c: Likewise.
54845         * tests/test-fseeko.c: Likewise.
54846         * tests/test-fseterr.c: Likewise.
54847         * tests/test-fstrcmp.c: Likewise.
54848         * tests/test-ftell.c: Likewise.
54849         * tests/test-ftello.c: Likewise.
54850         * tests/test-fwritable.c: Likewise.
54851         * tests/test-fwriting.c: Likewise.
54852         * tests/test-getaddrinfo.c: Likewise.
54853         * tests/test-getpass.c: Likewise.
54854         * tests/test-gettimeofday.c: Likewise.
54855         * tests/test-hmac-md5.c: Likewise.
54856         * tests/test-hmac-sha1.c: Likewise.
54857         * tests/test-iconv.c: Likewise.
54858         * tests/test-iconvme.c: Likewise.
54859         * tests/test-inttypes.c: Likewise.
54860         * tests/test-isnan.c: Likewise.
54861         * tests/test-isnanf.c: Likewise.
54862         * tests/test-isnanl-nolibm.c: Likewise.
54863         * tests/test-isnanl.c: Likewise.
54864         * tests/test-isnanl.h: Likewise.
54865         * tests/test-ldexpl.c: Likewise.
54866         * tests/test-linked_list.c: Likewise.
54867         * tests/test-linkedhash_list.c: Likewise.
54868         * tests/test-locale.c: Likewise.
54869         * tests/test-localename.c: Likewise.
54870         * tests/test-lock.c: Likewise.
54871         * tests/test-lseek.c: Likewise.
54872         * tests/test-malloca.c: Likewise.
54873         * tests/test-math.c: Likewise.
54874         * tests/test-mbscasecmp.c: Likewise.
54875         * tests/test-mbscasestr1.c: Likewise.
54876         * tests/test-mbscasestr2.c: Likewise.
54877         * tests/test-mbscasestr3.c: Likewise.
54878         * tests/test-mbscasestr4.c: Likewise.
54879         * tests/test-mbschr.c: Likewise.
54880         * tests/test-mbscspn.c: Likewise.
54881         * tests/test-mbsncasecmp.c: Likewise.
54882         * tests/test-mbspbrk.c: Likewise.
54883         * tests/test-mbspcasecmp.c: Likewise.
54884         * tests/test-mbsrchr.c: Likewise.
54885         * tests/test-mbsspn.c: Likewise.
54886         * tests/test-mbsstr1.c: Likewise.
54887         * tests/test-mbsstr2.c: Likewise.
54888         * tests/test-mbsstr3.c: Likewise.
54889         * tests/test-md5.c: Likewise.
54890         * tests/test-memmem.c: Likewise.
54891         * tests/test-netinet_in.c: Likewise.
54892         * tests/test-open.c: Likewise.
54893         * tests/test-printf-frexp.c: Likewise.
54894         * tests/test-printf-frexpl.c: Likewise.
54895         * tests/test-printf-posix.c: Likewise.
54896         * tests/test-printf-posix.h: Likewise.
54897         * tests/test-rbtree_list.c: Likewise.
54898         * tests/test-rbtree_oset.c: Likewise.
54899         * tests/test-rbtreehash_list.c: Likewise.
54900         * tests/test-read-file.c: Likewise.
54901         * tests/test-rijndael.c: Likewise.
54902         * tests/test-search.c: Likewise.
54903         * tests/test-signbit.c: Likewise.
54904         * tests/test-sleep.c: Likewise.
54905         * tests/test-snprintf-posix.c: Likewise.
54906         * tests/test-snprintf-posix.h: Likewise.
54907         * tests/test-snprintf.c: Likewise.
54908         * tests/test-sprintf-posix.c: Likewise.
54909         * tests/test-sprintf-posix.h: Likewise.
54910         * tests/test-stat-time.c: Likewise.
54911         * tests/test-stdbool.c: Likewise.
54912         * tests/test-stdint.c: Likewise.
54913         * tests/test-stdio.c: Likewise.
54914         * tests/test-stdlib.c: Likewise.
54915         * tests/test-stpncpy.c: Likewise.
54916         * tests/test-strcasestr.c: Likewise.
54917         * tests/test-striconv.c: Likewise.
54918         * tests/test-striconveh.c: Likewise.
54919         * tests/test-striconveha.c: Likewise.
54920         * tests/test-string.c: Likewise.
54921         * tests/test-sys_select.c: Likewise.
54922         * tests/test-sys_socket.c: Likewise.
54923         * tests/test-sys_stat.c: Likewise.
54924         * tests/test-sys_time.c: Likewise.
54925         * tests/test-sysexits.c: Likewise.
54926         * tests/test-time.c: Likewise.
54927         * tests/test-tls.c: Likewise.
54928         * tests/test-trunc.c: Likewise.
54929         * tests/test-truncf.c: Likewise.
54930         * tests/test-truncl.c: Likewise.
54931         * tests/test-unistd.c: Likewise.
54932         * tests/test-vasnprintf-posix.c: Likewise.
54933         * tests/test-vasnprintf-posix2.c: Likewise.
54934         * tests/test-vasnprintf.c: Likewise.
54935         * tests/test-vasprintf-posix.c: Likewise.
54936         * tests/test-vasprintf.c: Likewise.
54937         * tests/test-verify.c: Likewise.
54938         * tests/test-vfprintf-posix.c: Likewise.
54939         * tests/test-vprintf-posix.c: Likewise.
54940         * tests/test-vsnprintf-posix.c: Likewise.
54941         * tests/test-vsnprintf.c: Likewise.
54942         * tests/test-vsprintf-posix.c: Likewise.
54943         * tests/test-wchar.c: Likewise.
54944         * tests/test-wctype.c: Likewise.
54945         * tests/test-wcwidth.c: Likewise.
54946         * tests/test-xstrtol.c: Likewise.
54947         * tests/test-xvasprintf.c: Likewise.
54948         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54949         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54950         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54951         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54952         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54953         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54954         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54955         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54956         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54957         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54958         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54959         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54960         * tests/uniname/test-uninames.c: Likewise.
54961         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54962         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54963         * tests/unistdio/test-u16-printf1.h: Likewise.
54964         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54965         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54966         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54967         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54968         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54969         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54970         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54971         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54972         * tests/unistdio/test-u32-printf1.h: Likewise.
54973         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54974         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54975         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54976         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54977         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54978         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54979         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54980         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54981         * tests/unistdio/test-u8-printf1.h: Likewise.
54982         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54983         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54984         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54985         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54986         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54987         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54988         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54989         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54990         * tests/unistdio/test-ulc-printf1.h: Likewise.
54991         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54992         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54993         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54994         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54995         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54996         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54997         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54998         * tests/uniwidth/test-u16-width.c: Likewise.
54999         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55000         * tests/uniwidth/test-u32-width.c: Likewise.
55001         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55002         * tests/uniwidth/test-u8-width.c: Likewise.
55003         * tests/uniwidth/test-uc_width.c: Likewise.
55004         * config/srclist-update: Likewise.
55005         (fixlicense): Update to GPLv3+.
55006
55007         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55008         * tests/test-tsearch.c: Change copyright notice.
55009
55010         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55011         * lib/c-strcaseeq.h: Change copyright notice.
55012         * lib/streq.h: Likewise.
55013         * lib/uniconv.h: Likewise.
55014         * lib/uniconv/u-conv-from-enc.h: Likewise.
55015         * lib/uniconv/u-conv-to-enc.h: Likewise.
55016         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55017         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55018         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55019         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55020         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55021         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55022         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55023         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55024         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55025         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55026         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55027         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55028         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55029         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55030         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55031         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55032         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55033         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55034         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55035         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55036         * lib/uniname.h: Likewise.
55037         * lib/uniname/uniname.c: Likewise.
55038         * lib/unistdio.h: Likewise.
55039         * lib/unistdio/u-asnprintf.h: Likewise.
55040         * lib/unistdio/u-asprintf.h: Likewise.
55041         * lib/unistdio/u-printf-args.c: Likewise.
55042         * lib/unistdio/u-printf-args.h: Likewise.
55043         * lib/unistdio/u-printf-parse.h: Likewise.
55044         * lib/unistdio/u-snprintf.h: Likewise.
55045         * lib/unistdio/u-sprintf.h: Likewise.
55046         * lib/unistdio/u-vasprintf.h: Likewise.
55047         * lib/unistdio/u-vsnprintf.h: Likewise.
55048         * lib/unistdio/u-vsprintf.h: Likewise.
55049         * lib/unistdio/u16-asnprintf.c: Likewise.
55050         * lib/unistdio/u16-asprintf.c: Likewise.
55051         * lib/unistdio/u16-printf-parse.c: Likewise.
55052         * lib/unistdio/u16-snprintf.c: Likewise.
55053         * lib/unistdio/u16-sprintf.c: Likewise.
55054         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55055         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55056         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55057         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55058         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55059         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55060         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55061         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55062         * lib/unistdio/u16-vasnprintf.c: Likewise.
55063         * lib/unistdio/u16-vasprintf.c: Likewise.
55064         * lib/unistdio/u16-vsnprintf.c: Likewise.
55065         * lib/unistdio/u16-vsprintf.c: Likewise.
55066         * lib/unistdio/u32-asnprintf.c: Likewise.
55067         * lib/unistdio/u32-asprintf.c: Likewise.
55068         * lib/unistdio/u32-printf-parse.c: Likewise.
55069         * lib/unistdio/u32-snprintf.c: Likewise.
55070         * lib/unistdio/u32-sprintf.c: Likewise.
55071         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55072         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55073         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55074         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55075         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55076         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55077         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55078         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55079         * lib/unistdio/u32-vasnprintf.c: Likewise.
55080         * lib/unistdio/u32-vasprintf.c: Likewise.
55081         * lib/unistdio/u32-vsnprintf.c: Likewise.
55082         * lib/unistdio/u32-vsprintf.c: Likewise.
55083         * lib/unistdio/u8-asnprintf.c: Likewise.
55084         * lib/unistdio/u8-asprintf.c: Likewise.
55085         * lib/unistdio/u8-printf-parse.c: Likewise.
55086         * lib/unistdio/u8-snprintf.c: Likewise.
55087         * lib/unistdio/u8-sprintf.c: Likewise.
55088         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55089         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55090         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55091         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55092         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55093         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55094         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55095         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55096         * lib/unistdio/u8-vasnprintf.c: Likewise.
55097         * lib/unistdio/u8-vasprintf.c: Likewise.
55098         * lib/unistdio/u8-vsnprintf.c: Likewise.
55099         * lib/unistdio/u8-vsprintf.c: Likewise.
55100         * lib/unistdio/ulc-asnprintf.c: Likewise.
55101         * lib/unistdio/ulc-asprintf.c: Likewise.
55102         * lib/unistdio/ulc-printf-parse.c: Likewise.
55103         * lib/unistdio/ulc-snprintf.c: Likewise.
55104         * lib/unistdio/ulc-sprintf.c: Likewise.
55105         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55106         * lib/unistdio/ulc-vasprintf.c: Likewise.
55107         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55108         * lib/unistdio/ulc-vsprintf.c: Likewise.
55109         * lib/unistr.h: Likewise.
55110         * lib/unistr/u-cpy-alloc.h: Likewise.
55111         * lib/unistr/u-cpy.h: Likewise.
55112         * lib/unistr/u-endswith.h: Likewise.
55113         * lib/unistr/u-move.h: Likewise.
55114         * lib/unistr/u-set.h: Likewise.
55115         * lib/unistr/u-startswith.h: Likewise.
55116         * lib/unistr/u-stpcpy.h: Likewise.
55117         * lib/unistr/u-stpncpy.h: Likewise.
55118         * lib/unistr/u-strcat.h: Likewise.
55119         * lib/unistr/u-strcpy.h: Likewise.
55120         * lib/unistr/u-strcspn.h: Likewise.
55121         * lib/unistr/u-strdup.h: Likewise.
55122         * lib/unistr/u-strlen.h: Likewise.
55123         * lib/unistr/u-strncat.h: Likewise.
55124         * lib/unistr/u-strncpy.h: Likewise.
55125         * lib/unistr/u-strnlen.h: Likewise.
55126         * lib/unistr/u-strpbrk.h: Likewise.
55127         * lib/unistr/u-strspn.h: Likewise.
55128         * lib/unistr/u-strstr.h: Likewise.
55129         * lib/unistr/u-strtok.h: Likewise.
55130         * lib/unistr/u16-check.c: Likewise.
55131         * lib/unistr/u16-chr.c: Likewise.
55132         * lib/unistr/u16-cmp.c: Likewise.
55133         * lib/unistr/u16-cpy-alloc.c: Likewise.
55134         * lib/unistr/u16-cpy.c: Likewise.
55135         * lib/unistr/u16-endswith.c: Likewise.
55136         * lib/unistr/u16-mblen.c: Likewise.
55137         * lib/unistr/u16-mbsnlen.c: Likewise.
55138         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55139         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55140         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55141         * lib/unistr/u16-mbtouc.c: Likewise.
55142         * lib/unistr/u16-mbtoucr.c: Likewise.
55143         * lib/unistr/u16-move.c: Likewise.
55144         * lib/unistr/u16-next.c: Likewise.
55145         * lib/unistr/u16-prev.c: Likewise.
55146         * lib/unistr/u16-set.c: Likewise.
55147         * lib/unistr/u16-startswith.c: Likewise.
55148         * lib/unistr/u16-stpcpy.c: Likewise.
55149         * lib/unistr/u16-stpncpy.c: Likewise.
55150         * lib/unistr/u16-strcat.c: Likewise.
55151         * lib/unistr/u16-strchr.c: Likewise.
55152         * lib/unistr/u16-strcmp.c: Likewise.
55153         * lib/unistr/u16-strcpy.c: Likewise.
55154         * lib/unistr/u16-strcspn.c: Likewise.
55155         * lib/unistr/u16-strdup.c: Likewise.
55156         * lib/unistr/u16-strlen.c: Likewise.
55157         * lib/unistr/u16-strmblen.c: Likewise.
55158         * lib/unistr/u16-strmbtouc.c: Likewise.
55159         * lib/unistr/u16-strncat.c: Likewise.
55160         * lib/unistr/u16-strncmp.c: Likewise.
55161         * lib/unistr/u16-strncpy.c: Likewise.
55162         * lib/unistr/u16-strnlen.c: Likewise.
55163         * lib/unistr/u16-strpbrk.c: Likewise.
55164         * lib/unistr/u16-strrchr.c: Likewise.
55165         * lib/unistr/u16-strspn.c: Likewise.
55166         * lib/unistr/u16-strstr.c: Likewise.
55167         * lib/unistr/u16-strtok.c: Likewise.
55168         * lib/unistr/u16-to-u32.c: Likewise.
55169         * lib/unistr/u16-to-u8.c: Likewise.
55170         * lib/unistr/u16-uctomb-aux.c: Likewise.
55171         * lib/unistr/u16-uctomb.c: Likewise.
55172         * lib/unistr/u32-check.c: Likewise.
55173         * lib/unistr/u32-chr.c: Likewise.
55174         * lib/unistr/u32-cmp.c: Likewise.
55175         * lib/unistr/u32-cpy-alloc.c: Likewise.
55176         * lib/unistr/u32-cpy.c: Likewise.
55177         * lib/unistr/u32-endswith.c: Likewise.
55178         * lib/unistr/u32-mblen.c: Likewise.
55179         * lib/unistr/u32-mbsnlen.c: Likewise.
55180         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55181         * lib/unistr/u32-mbtouc.c: Likewise.
55182         * lib/unistr/u32-mbtoucr.c: Likewise.
55183         * lib/unistr/u32-move.c: Likewise.
55184         * lib/unistr/u32-next.c: Likewise.
55185         * lib/unistr/u32-prev.c: Likewise.
55186         * lib/unistr/u32-set.c: Likewise.
55187         * lib/unistr/u32-startswith.c: Likewise.
55188         * lib/unistr/u32-stpcpy.c: Likewise.
55189         * lib/unistr/u32-stpncpy.c: Likewise.
55190         * lib/unistr/u32-strcat.c: Likewise.
55191         * lib/unistr/u32-strchr.c: Likewise.
55192         * lib/unistr/u32-strcmp.c: Likewise.
55193         * lib/unistr/u32-strcpy.c: Likewise.
55194         * lib/unistr/u32-strcspn.c: Likewise.
55195         * lib/unistr/u32-strdup.c: Likewise.
55196         * lib/unistr/u32-strlen.c: Likewise.
55197         * lib/unistr/u32-strmblen.c: Likewise.
55198         * lib/unistr/u32-strmbtouc.c: Likewise.
55199         * lib/unistr/u32-strncat.c: Likewise.
55200         * lib/unistr/u32-strncmp.c: Likewise.
55201         * lib/unistr/u32-strncpy.c: Likewise.
55202         * lib/unistr/u32-strnlen.c: Likewise.
55203         * lib/unistr/u32-strpbrk.c: Likewise.
55204         * lib/unistr/u32-strrchr.c: Likewise.
55205         * lib/unistr/u32-strspn.c: Likewise.
55206         * lib/unistr/u32-strstr.c: Likewise.
55207         * lib/unistr/u32-strtok.c: Likewise.
55208         * lib/unistr/u32-to-u16.c: Likewise.
55209         * lib/unistr/u32-to-u8.c: Likewise.
55210         * lib/unistr/u32-uctomb.c: Likewise.
55211         * lib/unistr/u8-check.c: Likewise.
55212         * lib/unistr/u8-chr.c: Likewise.
55213         * lib/unistr/u8-cmp.c: Likewise.
55214         * lib/unistr/u8-cpy-alloc.c: Likewise.
55215         * lib/unistr/u8-cpy.c: Likewise.
55216         * lib/unistr/u8-endswith.c: Likewise.
55217         * lib/unistr/u8-mblen.c: Likewise.
55218         * lib/unistr/u8-mbsnlen.c: Likewise.
55219         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55220         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55221         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55222         * lib/unistr/u8-mbtouc.c: Likewise.
55223         * lib/unistr/u8-mbtoucr.c: Likewise.
55224         * lib/unistr/u8-move.c: Likewise.
55225         * lib/unistr/u8-next.c: Likewise.
55226         * lib/unistr/u8-prev.c: Likewise.
55227         * lib/unistr/u8-set.c: Likewise.
55228         * lib/unistr/u8-startswith.c: Likewise.
55229         * lib/unistr/u8-stpcpy.c: Likewise.
55230         * lib/unistr/u8-stpncpy.c: Likewise.
55231         * lib/unistr/u8-strcat.c: Likewise.
55232         * lib/unistr/u8-strchr.c: Likewise.
55233         * lib/unistr/u8-strcmp.c: Likewise.
55234         * lib/unistr/u8-strcpy.c: Likewise.
55235         * lib/unistr/u8-strcspn.c: Likewise.
55236         * lib/unistr/u8-strdup.c: Likewise.
55237         * lib/unistr/u8-strlen.c: Likewise.
55238         * lib/unistr/u8-strmblen.c: Likewise.
55239         * lib/unistr/u8-strmbtouc.c: Likewise.
55240         * lib/unistr/u8-strncat.c: Likewise.
55241         * lib/unistr/u8-strncmp.c: Likewise.
55242         * lib/unistr/u8-strncpy.c: Likewise.
55243         * lib/unistr/u8-strnlen.c: Likewise.
55244         * lib/unistr/u8-strpbrk.c: Likewise.
55245         * lib/unistr/u8-strrchr.c: Likewise.
55246         * lib/unistr/u8-strspn.c: Likewise.
55247         * lib/unistr/u8-strstr.c: Likewise.
55248         * lib/unistr/u8-strtok.c: Likewise.
55249         * lib/unistr/u8-to-u16.c: Likewise.
55250         * lib/unistr/u8-to-u32.c: Likewise.
55251         * lib/unistr/u8-uctomb-aux.c: Likewise.
55252         * lib/unistr/u8-uctomb.c: Likewise.
55253         * lib/unitypes.h: Likewise.
55254         * lib/uniwidth.h: Likewise.
55255         * lib/uniwidth/cjk.h: Likewise.
55256         * lib/uniwidth/u16-strwidth.c: Likewise.
55257         * lib/uniwidth/u16-width.c: Likewise.
55258         * lib/uniwidth/u32-strwidth.c: Likewise.
55259         * lib/uniwidth/u32-width.c: Likewise.
55260         * lib/uniwidth/u8-strwidth.c: Likewise.
55261         * lib/uniwidth/u8-width.c: Likewise.
55262         * lib/uniwidth/width.c: Likewise.
55263
55264 2007-10-07  Bruno Haible  <bruno@clisp.org>
55265
55266         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55267         The file is still under LGPL (see modules/inttypes).
55268
55269 2007-10-06  Bruno Haible  <bruno@clisp.org>
55270
55271         * modules/trunc (Dependencies): Add 'extensions'.
55272         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55273         Reported by Ben Pfaff <blp@gnu.org>.
55274
55275 2007-10-06  Bruno Haible  <bruno@clisp.org>
55276
55277         * modules/freopen-tests: New file.
55278         * tests/test-freopen.c: New file.
55279
55280         * modules/fopen-tests: New file.
55281         * tests/test-fopen.c: New file.
55282
55283         * modules/fopen: New file.
55284         * lib/fopen.c: New file.
55285         * m4/fopen.m4: New file.
55286         * modules/freopen: New file.
55287         * lib/freopen.c: New file.
55288         * m4/freopen.m4: New file.
55289         * lib/stdio.in.h (fopen, freopen): New declarations.
55290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55291         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55292         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55293         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55294         * doc/functions/fopen.texi: Mention the 'fopen' module.
55295         * doc/functions/freopen.texi: Mention the 'freopen' module.
55296
55297 2007-10-06  Bruno Haible  <bruno@clisp.org>
55298
55299         * modules/open-tests: New file.
55300         * tests/test-open.c: New file.
55301
55302         * modules/open: New file.
55303         * lib/open.c: New file.
55304         * m4/open.m4: New file.
55305         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55306         lib/open.c does.
55307         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55308         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55309         macros.
55310         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55311         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55312         REPLACE_OPEN.
55313         * doc/functions/open.texi: Mention the 'open' module.
55314
55315 2007-10-04  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/ceill-tests: New file.
55318         * tests/test-ceill.c: New file.
55319
55320         * modules/ceill: New file.
55321         * lib/ceill.c: Replace entire file.
55322         * m4/ceill.m4: New file.
55323         * lib/math.in.h (ceill): Replace declaration.
55324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55325         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55326         * doc/functions/ceill.texi: Mention the 'ceill' module.
55327         * modules/mathl (Files): Remove lib/ceill.c.
55328         (Depends-on): Add ceill.
55329
55330 2007-10-04  Bruno Haible  <bruno@clisp.org>
55331
55332         * modules/ceilf-tests: New file.
55333         * tests/test-ceilf.c: New file.
55334
55335         * modules/ceilf: New file.
55336         * lib/ceil.c: New file.
55337         * lib/ceilf.c: New file.
55338         * m4/ceilf.m4: New file.
55339         * lib/math.in.h (ceilf): New declaration.
55340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55341         HAVE_DECL_CEILF.
55342         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55343         HAVE_DECL_CEILF.
55344         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55345
55346 2007-10-04  Bruno Haible  <bruno@clisp.org>
55347
55348         * modules/floorl-tests: New file.
55349         * tests/test-floorl.c: New file.
55350
55351         * modules/floorl: New file.
55352         * lib/floorl.c: Replace entire file.
55353         * m4/floorl.m4: New file.
55354         * lib/math.in.h (floorl): Replace declaration.
55355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55356         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55357         * doc/functions/floorl.texi: Mention the 'floorl' module.
55358         * modules/mathl (Files): Remove lib/floorl.c.
55359         (Depends-on): Add floorl.
55360
55361 2007-10-04  Bruno Haible  <bruno@clisp.org>
55362
55363         * modules/floorf-tests: New file.
55364         * tests/test-floorf.c: New file.
55365
55366         * modules/floorf: New file.
55367         * lib/floor.c: New file.
55368         * lib/floorf.c: New file.
55369         * m4/floorf.m4: New file.
55370         * lib/math.in.h (floorf): New declaration.
55371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55372         HAVE_DECL_FLOORF.
55373         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55374         HAVE_DECL_FLOORF.
55375         * doc/functions/floorf.texi: Mention the 'floorf' module.
55376
55377 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55378             Bruno Haible  <bruno@clisp.org>
55379
55380         Advertise for the Git server instead of the CVS server.
55381         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55382         repository instead of the CVS one.
55383         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55384         about all VCS systems generically.
55385         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55386
55387 2007-10-04  Bruno Haible  <bruno@clisp.org>
55388
55389         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55390         means.
55391         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55392
55393 2007-10-04  Bruno Haible  <bruno@clisp.org>
55394
55395         * modules/truncl-tests: New file.
55396         * tests/test-truncl.c: New file.
55397
55398         * modules/truncl: New file.
55399         * lib/truncl.c: New file.
55400         * m4/truncl.m4: New file.
55401         * lib/math.in.h (truncl): New declaration.
55402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55403         HAVE_DECL_TRUNCL.
55404         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55405         HAVE_DECL_TRUNCL.
55406         * doc/functions/truncl.texi: Mention the 'truncl' module.
55407
55408 2007-10-04  Bruno Haible  <bruno@clisp.org>
55409
55410         * modules/truncf-tests: New file.
55411         * tests/test-truncf.c: New file.
55412
55413         * modules/truncf: New file.
55414         * lib/trunc.c: Make paramerizable through USE_* macros.
55415         * lib/truncf.c: New file.
55416         * m4/truncf.m4: New file.
55417         * lib/math.in.h (truncf): New declaration.
55418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55419         HAVE_DECL_TRUNCF.
55420         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55421         HAVE_DECL_TRUNCF.
55422         * doc/functions/truncf.texi: Mention the 'truncf' module.
55423
55424 2007-10-03  Bruno Haible  <bruno@clisp.org>
55425
55426         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55427         augmentation also for tests modules.
55428         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55429         * modules/atexit-tests (Makefile.am): Likewise.
55430         * modules/binary-io-tests (Makefile.am): Likewise.
55431         * modules/c-strcase-tests (Makefile.am): Likewise.
55432         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55433         * modules/canonicalize-tests (Makefile.am): Likewise.
55434         * modules/closein-tests (Makefile.am): Likewise.
55435         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55436         * modules/freadahead-tests (Makefile.am): Likewise.
55437         * modules/fseek-tests (Makefile.am): Likewise.
55438         * modules/fseeko-tests (Makefile.am): Likewise.
55439         * modules/ftell-tests (Makefile.am): Likewise.
55440         * modules/ftello-tests (Makefile.am): Likewise.
55441         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55442         * modules/isnanl-tests (Makefile.am): Likewise.
55443         * modules/lseek-tests (Makefile.am): Likewise.
55444         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55445         * modules/mbscasestr-tests (Makefile.am): Likewise.
55446         * modules/mbschr-tests (Makefile.am): Likewise.
55447         * modules/mbscspn-tests (Makefile.am): Likewise.
55448         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55449         * modules/mbspbrk-tests (Makefile.am): Likewise.
55450         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55451         * modules/mbsrchr-tests (Makefile.am): Likewise.
55452         * modules/mbsspn-tests (Makefile.am): Likewise.
55453         * modules/mbsstr-tests (Makefile.am): Likewise.
55454         * modules/printf-posix-tests (Makefile.am): Likewise.
55455         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55456         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55457         * modules/tsearch-tests (Makefile.am): Likewise.
55458         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55459         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55460         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55461         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55462         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55463         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55464         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55465         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55466         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55467         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55468         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55469         * modules/xstrtol-tests (Makefile.am): Likewise.
55470         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55471         * modules/yesno-tests (Makefile.am): Likewise.
55472
55473 2007-10-03  Bruno Haible  <bruno@clisp.org>
55474
55475         * modules/trunc-tests: New file.
55476         * tests/test-trunc.c: New file.
55477
55478         * modules/trunc: New file.
55479         * lib/trunc.c: New file.
55480         * m4/trunc.m4: New file.
55481         * lib/math.in.h (trunc): New declaration.
55482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55483         HAVE_DECL_TRUNC.
55484         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55485         HAVE_DECL_TRUNC.
55486         * doc/functions/trunc.texi: Mention the 'trunc' module.
55487
55488 2007-10-03  Bruno Haible  <bruno@clisp.org>
55489
55490         * tests/test-fpending.c: New file, mostly copied
55491         from coreutils/lib/t-fpending.c.
55492         * modules/fpending-tests: New file.
55493
55494 2007-10-03  Bruno Haible  <bruno@clisp.org>
55495
55496         Port the stdio extensions to QNX (untested).
55497         * lib/fseterr.c (fseterr): Add support for QNX.
55498         * lib/fbufmode.c (fbufmode): Likewise.
55499         * lib/freadable.c (freadable): Likewise.
55500         * lib/fwritable.c (fwritable): Likewise.
55501         * lib/freading.c (freading): Likewise.
55502         * lib/fwriting.c (fwriting): Likewise.
55503         * lib/freadahead.c (freadahed): Likewise.
55504         * lib/fpurge.c (fpurge): Likewise.
55505         * lib/fseeko.c (rpl_fseeko): Likewise.
55506
55507 2007-10-03  Bruno Haible  <bruno@clisp.org>
55508             Jim Meyering  <jim@meyering.net>
55509             Eric Blake  <ebb9@byu.net>
55510
55511         * doc/relocatable.texi: Use @command instead of @program.
55512
55513 2007-10-02  Jim Meyering  <jim@meyering.net>
55514
55515         Perform one more "_.h" -> ".in.h" substitution.
55516         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55517         instead of unistd_.h here, too.
55518
55519 2007-10-01  Bruno Haible  <bruno@clisp.org>
55520
55521         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55522         Needed for the alloca-opt module.
55523
55524 2007-09-30  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55527         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55528         alloca_.h.
55529         * lib/argz.in.h: Renamed from lib/argz_.h.
55530         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55531         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55532         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55533         byteswap_.h.
55534         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55535         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55536         dirent_.h.
55537         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55538         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55539         fcntl_.h.
55540         * lib/float.in.h: Renamed from lib/float_.h.
55541         * modules/float (Files, Makefile.am): Use float.in.h instead of
55542         float_.h.
55543         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55544         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55545         fnmatch_.h.
55546         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55547         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55548         getopt_.h.
55549         * lib/glob.in.h: Renamed from lib/glob_.h.
55550         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55551         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55552         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55553         iconv_.h.
55554         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55555         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55556         inttypes_.h.
55557         * lib/locale.in.h: Renamed from lib/locale_.h.
55558         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55559         locale_.h.
55560         * lib/math.in.h: Renamed from lib/math_.h.
55561         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55562         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55563         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55564         of netinet_in_.h. Add dependency.
55565         * lib/poll.in.h: Renamed from lib/poll_.h.
55566         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55567         * lib/search.in.h: Renamed from lib/search_.h.
55568         * modules/search (Files, Makefile.am): Use search.in.h instead of
55569         search_.h.
55570         * lib/signal.in.h: Renamed from lib/signal_.h.
55571         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55572         _signal.h.
55573         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55574         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55575         stdbool_.h.
55576         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55577         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55578         stdint_.h.
55579         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55580         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55581         stdio_.h.
55582         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55583         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55584         stdlib_.h.
55585         * lib/string.in.h: Renamed from lib/string_.h.
55586         * modules/string (Files, Makefile.am): Use string.in.h instead of
55587         string_.h.
55588         * doc/gnulib-tool.texi (Initial import): Update.
55589         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55590         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55591         of sys_select_.h. Add dependency.
55592         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55593         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55594         of sys_socket_.h.
55595         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55596         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55597         sys_stat_.h.
55598         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55599         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55600         sys_time_.h.
55601         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55602         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55603         sysexits_.h.
55604         * lib/time.in.h: Renamed from lib/time_.h.
55605         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55606         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55607         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55608         unistd_.h.
55609         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55610         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55611         wchar_.h.
55612         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55613         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55614         wctype_.h.
55615         * build-aux/bootstrap (slurp): Update.
55616         * lib/.cppi-disable: Update.
55617
55618 2007-09-30  Bruno Haible  <bruno@clisp.org>
55619
55620         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55621         Needed on BeOS.
55622
55623 2007-09-30  Bruno Haible  <bruno@clisp.org>
55624
55625         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55626
55627 2007-09-29  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55630
55631 2007-09-29  Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55634         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55635         * build-aux/install-reloc: Compile also areadlink.c.
55636         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55637
55638 2007-09-29  Bruno Haible  <bruno@clisp.org>
55639
55640         * gnulib-tool (func_emit_initmacro_done): Indentation.
55641
55642 2007-09-29  Bruno Haible  <bruno@clisp.org>
55643
55644         * README: Add CVS checkout update instructions.
55645         Info from Bob Proulx <bob@proulx.com>.
55646
55647 2007-09-28  Eric Blake  <ebb9@byu.net>
55648
55649         Provide move-if-change.
55650         * build-aux/move-if-change: New file, based on best practice
55651         rather than any canonical upstream location.
55652
55653 2007-09-28  Jim Meyering  <jim@meyering.net>
55654
55655         Fix canonicalize loop-detection corner case.
55656         Do not attempt to stat the symlink values stored via seen_triple.
55657         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55658         on linux-2.6.18, (but not 2.6.22).
55659         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55660         triple_compare.  The former compares dev,ino,filename, while the latter
55661         would actually stat dirname(filename) when dev and ino were equal.
55662         * lib/hash-triple.c: Install <string.h>.
55663         (STREQ): Define.
55664         (triple_compare_ino_str): New function.
55665         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55666
55667 2007-09-28  Eric Blake  <ebb9@byu.net>
55668
55669         Enforce that AC_REPLACE_FUNCS files exist.
55670         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55671         override check for typos.
55672
55673         Fix test-closein on Solaris 10.
55674         * tests/test-closein.c (main): Don't assume stdin can be inherited
55675         closed on all systems.
55676         * tests/test-closein.sh: Likewise.
55677         Reported by Piotr Tarnowski.
55678
55679 2007-09-28  Jim Meyering  <jim@meyering.net>
55680
55681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55682
55683 2007-09-27  Jim Meyering  <jim@meyering.net>
55684
55685         canonicalize: Avoid a false-positive cycle failure.
55686         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55687         Sort.  Remove cycle-check.
55688         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55689         not cycle-check.h.
55690         (seen_triple): New function.
55691         (canonicalize_filename_mode): Use it instead of cycle-check.
55692         * tests/test-canonicalize.c: Add a test for this bug.
55693         * tests/test-canonicalize.sh: Set up and run the test.
55694
55695         New module, file-set, from coreutils.
55696         * modules/file-set: Define it.
55697         * lib/file-set.c, lib/file-set.h: Implement.
55698
55699         New module, hash-triple, from coreutils.
55700         * modules/hash-triple: Define it.
55701         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55702
55703 2007-09-25  Eric Blake  <ebb9@byu.net>
55704
55705         Fix strerror on Interix.
55706         * lib/string_.h (strerror): Declare replacement.
55707         * doc/functions/strerror.texi (strerror): Document the Interix
55708         shortcoming.
55709         * modules/string (Makefile.am): Support new hooks.
55710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55711         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55712         gl_FUNC_STRERROR_SEPARATE.
55713         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55714         * lib/strerror.c (rpl_strerror): Provide replacement.
55715         * modules/strerror (Depends-on): Add string.
55716         (configure.ac): Detect use of module.
55717         * tests/test-strerror.c: New file.
55718         * modules/strerror-tests: New test module.
55719         * modules/argp (Depends-on): Add strerror.
55720         * modules/error (Depends-on): Likewise.
55721         Reported by Martin Koeppe.
55722
55723 2007-09-24  Bruno Haible  <bruno@clisp.org>
55724
55725         * README: Update git instructions.
55726
55727 2007-09-24  Eric Blake  <ebb9@byu.net>
55728
55729         Revert fpending breakage from 2007-09-08.
55730         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55731         __fpending.c.
55732
55733 2007-09-24  Jim Meyering  <jim@meyering.net>
55734
55735         filenamecat.c: Add a test.
55736         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55737         showing how the function works when DIR is the empty string.
55738
55739 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55740
55741         * tests/test-canonicalize.sh: Turn on executable bit.
55742
55743 2007-09-19  Eric Blake  <ebb9@byu.net>
55744
55745         * README: Update CVS instructions.
55746
55747 2007-09-18  Bruno Haible  <bruno@clisp.org>
55748
55749         * modules/areadlink: New file.
55750         * lib/areadlink.h (areadlink): New declaration.
55751         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55752
55753 2007-09-17  Jim Meyering  <jim@meyering.net>
55754
55755         * lib/savewd.c (ESTALE) [!defined]: Define.
55756         Reported to be required on Interix by Martin Koeppe.
55757
55758 2007-09-17  Bruno Haible  <bruno@clisp.org>
55759
55760         * gnulib-tool (func_version): Use $version.
55761
55762 2007-09-16  Bruno Haible  <bruno@clisp.org>
55763
55764         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55765         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55766         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55767         Reported by Greg Schafer <gschafer@zip.com.au>.
55768
55769 2007-09-15  Bruno Haible  <bruno@clisp.org>
55770
55771         * gnulib-tool (sed): Try a little harder to make bash understand the
55772         alias.
55773         Reported by Bruce Korb <bruce.korb@gmail.com>.
55774
55775 2007-09-13  Eric Blake  <ebb9@byu.net>
55776
55777         * ChangeLog: Remove conflict markers.
55778
55779 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55780
55781         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55782         Reported by Bruno Haible <bruno@clisp.org>.
55783
55784 2007-09-12  Bruno Haible  <bruno@clisp.org>
55785
55786         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55787         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55788         is not defined.
55789
55790 2007-09-12  Eric Blake  <ebb9@byu.net>
55791
55792         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55793         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55794         Autoconf definition.
55795         * modules/euidaccess (Depends-on): Add extensions, for
55796         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55797         * modules/fnmatch (Depends-on): Likewise.
55798         * modules/getaddrinfo (Depends-on): Likewise.
55799         * modules/getdelim (Depends-on): Likewise.
55800         * modules/getline (Depends-on): Likewise.
55801         * modules/getsubopt (Depends-on): Likewise.
55802         * modules/gettext (Depends-on): Likewise.
55803         * modules/group-member (Depends-on): Likewise.
55804         * modules/mbchar (Depends-on): Likewise.
55805         * modules/memmem (Depends-on): Likewise.
55806         * modules/mempcpy (Depends-on): Likewise.
55807         * modules/memrchr (Depends-on): Likewise.
55808         * modules/pagealign_alloc (Depends-on): Likewise.
55809         * modules/readutmp (Depends-on): Likewise.
55810         * modules/stpcpy (Depends-on): Likewise.
55811         * modules/stpncpy (Depends-on): Likewise.
55812         * modules/strchrnul (Depends-on): Likewise.
55813         * modules/strndup (Depends-on): Likewise.
55814         * modules/strsep (Depends-on): Likewise.
55815         * modules/strverscmp (Depends-on): Likewise.
55816         * modules/vasprintf (Depends-on): Likewise.
55817         * modules/wcwidth (Depends-on): Likewise.
55818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55819         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55820         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55821         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55822         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55823         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55824         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55825         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55826         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55827         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55828         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55829         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55830         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55831         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55832         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55833         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55834         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55835         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55837         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55838         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55839         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55840         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55842         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55844         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55845         so that lock.m4 can be used in gettext without extensions module.
55846
55847 2007-09-11  Bruno Haible  <bruno@clisp.org>
55848
55849         * m4/isc-posix.m4: Remove file.
55850         Suggested by Eric Blake.
55851
55852 2007-09-11  Eric Blake  <ebb9@byu.net>
55853
55854         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55855
55856 2007-09-10  Bruno Haible  <bruno@clisp.org>
55857
55858         * posix-modules: Fix typo in error message.
55859         Reported by Matt <mkraai@beckman.com>.
55860
55861 2007-09-09  Bruno Haible  <bruno@clisp.org>
55862
55863         * doc/functions/getdelim.texi: Update list of platforms lacking the
55864         function.
55865         * doc/functions/getline.texi: Likewise.
55866
55867 2007-09-09  Jim Meyering  <jim@meyering.net>
55868
55869         * lib/hash.c (hash_initialize): Detect calloc failure.
55870         Reported by Bruno Haible.
55871
55872 2007-09-09  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55875         malloc or realloc fails.
55876
55877 2007-09-09  Bruno Haible  <bruno@clisp.org>
55878
55879         * modules/getcwd (Depends-on): Add malloc-posix.
55880         * modules/glob (Depends-on): Likewise.
55881         * modules/putenv (Depends-on): Likewise.
55882         * modules/strdup (Depends-on): Likewise.
55883         * modules/getdelim (Depends-on): Add realloc-posix.
55884         * modules/read-file (Depends-on): Likewise.
55885
55886 2007-09-09  Bruno Haible  <bruno@clisp.org>
55887
55888         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55889         (gl_FUNC_MALLOC_POSIX): Require it.
55890         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55891         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55892         * modules/realloc (Files): Add m4/malloc.m4.
55893         * modules/calloc (Files): Likewise.
55894
55895 2007-09-09  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/malloc-posix: New file.
55898         * modules/malloc (Depends-on): Add malloc-posix.
55899         * lib/malloc.c: Include errno.h.
55900         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55901         and a POSIX-compatible malloc into a single function. Set ENOMEM
55902         when returning NULL.
55903         * m4/malloc.m4: New file.
55904         * doc/functions/malloc.texi: Mention the malloc-posix module.
55905         * lib/stdlib_.h (malloc): New declaration.
55906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55907         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55908         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55909         and HAVE_MALLOC_POSIX.
55910
55911 2007-09-09  Bruno Haible  <bruno@clisp.org>
55912
55913         * modules/realloc-posix: New file.
55914         * modules/realloc (Depends-on): Add realloc-posix.
55915         * lib/realloc.c: Include errno.h.
55916         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55917         and a POSIX-compatible realloc into a single function. Set ENOMEM
55918         when returning NULL.
55919         * m4/realloc.m4: New file.
55920         * doc/functions/realloc.texi: Mention the realloc-posix module.
55921         * lib/stdlib_.h (realloc): New declaration.
55922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55923         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55924         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55925         and HAVE_REALLOC_POSIX.
55926
55927 2007-09-09  Bruno Haible  <bruno@clisp.org>
55928
55929         * modules/calloc-posix: New file.
55930         * modules/calloc (Depends-on): Add calloc-posix.
55931         * lib/calloc.c: Include errno.h.
55932         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55933         and a POSIX-compatible calloc into a single function. Set ENOMEM
55934         when returning NULL.
55935         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55936         * doc/functions/calloc.texi: Mention the calloc-posix module.
55937         * lib/stdlib_.h (calloc): New declaration.
55938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55939         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55940         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55941         and HAVE_CALLOC_POSIX.
55942
55943 2007-09-09  Bruno Haible  <bruno@clisp.org>
55944
55945         Allow for modules to show an arbitrary notice.
55946         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55947         * gnulib-tool: New option --extract-notice.
55948         (func_usage): Document it.
55949         (sed_extract_prog): Update.
55950         (func_get_notice): New function.
55951         (func_modules_notice): New function.
55952         (func_import, func_create_testdir): Invoke it.
55953         Suggested by Jim Meyering.
55954
55955 2007-09-09  Bruno Haible  <bruno@clisp.org>
55956
55957         * gnulib-tool: New options --verbose, --quiet.
55958         (func_usage): Document them.
55959         (verbose): New variable.
55960         (func_execute_command): New function.
55961         (func_import): Don't show the module list and the file list if
55962         $verbose < 0.
55963         (func_create_testdir): Likewise. Use func_execute_command.
55964         (func_create_megatestdir): Use func_execute_command.
55965
55966 2007-09-08  Bruno Haible  <bruno@clisp.org>
55967
55968         * gnulib-tool (func_import): Prefer rsync over wget when available,
55969         for fetching the PO files.
55970
55971 2007-09-08  Bruno Haible  <bruno@clisp.org>
55972
55973         * posix-modules: New file. Portions copied from gnulib-tool.
55974         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55975
55976 2007-09-08  Jim Meyering  <jim@meyering.net>
55977
55978         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55979         * lib/fpending.h: Rename from __fpending.h.
55980         * lib/fpending.c: Rename from __fpending.c.
55981         Include "fpending.h", not "__fpending.h".
55982         * lib/__fpending.h, lib/__fpending.c: Remove files.
55983         * modules/fpending (Files): Reflect new file names.
55984         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55985
55986 2007-09-08  Bruno Haible  <bruno@clisp.org>
55987
55988         * m4/inttypes-h.m4: Remove stub file.
55989
55990 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55991
55992         * doc/headers/stdint.texi: Discuss #include_next issue.
55993
55994 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55995
55996         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55997
55998 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55999
56000         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56001         in variable name.
56002
56003 2007-09-03  Jim Meyering  <jim@meyering.net>
56004
56005         New module: git-version-gen.
56006         * modules/git-version-gen: New file.
56007
56008         Import changes from coreutils for bootstrap script.
56009
56010         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56011
56012         bootstrap: uses rsync to download the .po files
56013         * build-aux/bootstrap (po_download_command_format): New global.
56014         (download_po_files): Use rsync.
56015         (update_po_files): Don't remove .po files after download,
56016         so future rsync runs can take advantage of the copies.
56017
56018         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56019
56020         Solve the unnecessary-.po-file-regeneration problem once and for all.
56021         * build-aux/bootstrap (download_po_files): New function, renamed from
56022         get_translations.  Now, downloads, but doesn't update LINGUAS.
56023         (update_po_files): New function.
56024
56025         bootstrap: Ignore more.
56026         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56027         uniwidth to e.g., lib/.gitignore.
56028         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56029
56030         * build-aux/bootstrap: New setting: vc_ignore.
56031         (insert_sorted_if_absent): Create $file if absent.
56032         Adapt to new, possibly empty, list: $vc_ignore.
56033
56034         bootstrap: generate more ignorable names
56035         * build-aux/bootstrap (slurp): When generating ignorable names,
56036         also map .sin to .sed, .gperf to .c, and .y to .c.
56037
56038 2007-09-03  Jim Meyering  <jim@meyering.net>
56039
56040         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56041         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56042
56043 2007-09-02  Bruno Haible  <bruno@clisp.org>
56044
56045         Fix mis-recognition of 'mcs' on QNX 6.
56046         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56047         output contains the string "Mono".
56048         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56049         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56050
56051 2007-09-01  Bruno Haible  <bruno@clisp.org>
56052
56053         Fix collision between uniwidth/* and linebreak modules.
56054         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56055         u32_width): Remove declarations.
56056         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56057         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56058         streq3, streq2, streq1, streq0): Remove functions.
56059         (STREQ): Remove macro.
56060         (is_cjk_encoding): Remove function.
56061         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56062         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56063         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56064         * NEWS: Document the change.
56065
56066 2007-09-01  Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/streq.h: Add double-inclusion guard.
56069
56070 2007-09-01  Karl Berry  <karl@gnu.org>
56071
56072         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56073
56074 2007-08-28  Jim Meyering  <jim@meyering.net>
56075
56076         Rename mreadlink_with_size to areadlink_with_size.
56077         * NEWS: Document the change.
56078         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56079         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56080         * lib/mreadlink.h: Rename this to...
56081         * lib/areadlink.h: ...this.
56082         * modules/mreadlink-with-size: Rename this to...
56083         * modules/areadlink-with-size: ...this.
56084         * lib/canonicalize.c: Reflect the renaming.
56085         * modules/canonicalize: Likewise.
56086
56087 2007-08-26  Bruno Haible  <bruno@clisp.org>
56088
56089         * gnulib-tool (func_import): When deciding which files to remove,
56090         consider also dangling symbolic links.
56091         Reported by Eric Blake.
56092
56093 2007-08-26  Bruno Haible  <bruno@clisp.org>
56094
56095         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56096
56097 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56098
56099         * lib/readline.c: Don't include getline.h, the prototype is now
56100         found in stdio.h.
56101
56102 2007-08-23  Jim Meyering  <jim@meyering.net>
56103
56104         Getdelim touchup.
56105         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56106         around the funlockfile call, since funlockfile never sets errno.
56107         Don't set errno upon failed realloc.
56108
56109 2007-08-22  Eric Blake  <ebb9@byu.net>
56110
56111         Getline touchups.
56112         * lib/getdelim.c (getdelim): Revert regression that required *n to
56113         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56115         getdelim, rather than whether implementation is missing.
56116         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56117         * lib/stdio_.h (getline): Also declare if replacement is
56118         required.
56119         * doc/functions/getdelim.texi: New file.
56120         * doc/functions/getline.texi: Likewise.
56121         * doc/gnulib.texi (Function Substitutes): Add new files.
56122         Reported by Bruno Haible.
56123
56124 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56125
56126         * users.txt: Add Guile.
56127
56128 2007-08-22  Eric Blake  <ebb9@byu.net>
56129
56130         * tests/test-getdelim.c (main): Use remove, not unlink.
56131         * tests/test-getline.c (main): Likewise.
56132
56133         Move getline and getdelim into stdio.h, per POSIX 200x.
56134         * modules/getline (Files): Remove getline.h.
56135         (Depends-on): Add stdio.
56136         (configure.ac): Add module indicator.
56137         * modules/getdelim (Files): Remove getdelim.h.
56138         (Depends-on): Add stdio.
56139         (configure.ac): Add module indicator.
56140         * modules/stdio (Makefile.am): Work with new indicators.
56141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56142         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56143         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56144         * lib/getdelim.h: Delete.
56145         * lib/getline.h: Delete.
56146         * lib/stdio_.h (getdelim, getline): Declare.
56147         * modules/getdelim-tests: New module.
56148         * modules/getline-tests: Likewise.
56149         * tests/test-getdelim.c: New file.
56150         * tests/test-getline.c: Likewise.
56151         * NEWS: Document the change.
56152         * lib/getline.c: Update choice of header.
56153         * lib/csharpcomp.c: Likewise.
56154         * lib/getpass.c: Likewise.
56155         * lib/javacomp.c: Likewise.
56156         * lib/javaversion.c: Likewise.
56157         * lib/yesno.c: Likewise.
56158         * lib/getdelim.c: Likewise.
56159         (getdelim): Set errno on failure, and avoid memory leak.
56160
56161 2007-08-19  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/closein (Depends-on): Add freadahead.
56164         * lib/closein.c: Include freadahead.h.
56165         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56166         is zero.
56167
56168 2007-08-19  Bruno Haible  <bruno@clisp.org>
56169
56170         * modules/freadahead-tests: New file.
56171         * tests/test-freadahead.sh: New file.
56172         * tests/test-freadahead.c: New file.
56173
56174         * modules/freadahead: New file.
56175         * lib/freadahead.h: New file.
56176         * lib/freadahead.c: New file.
56177         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56178         fbufmode, fpurge, freadable, fwritable.
56179
56180 2007-08-19  Eric Blake  <ebb9@byu.net>
56181
56182         Test yesno in combination with closein.
56183         * lib/yesno.c (yesno): Document use of stdin.
56184         * modules/yesno-tests (Files): New module.
56185         * tests/test-yesno.c (main): New file.
56186         * tests/test-yesno.sh: Likewise.
56187
56188 2007-08-19  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56191         * lib/fseeko.c (rpl_fseeko): Likewise.
56192         * lib/fseterr.c (fseterr): Likewise.
56193
56194 2007-08-19  Bruno Haible  <bruno@clisp.org>
56195
56196         * tests/test-lseek.c (main): Disable a test for BeOS.
56197         * doc/functions/lseek.texi: Document the BeOS bug.
56198
56199 2007-08-19  Bruno Haible  <bruno@clisp.org>
56200             Eric Blake  <ebb9@byu.net>
56201
56202         * lib/lseek.c: Include <sys/stat.h>.
56203         (rpl_lseek): Add workaround code also for Unix platforms.
56204         Needed for BeOS.
56205         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56206         * doc/functions/lseek.texi: Document BeOS definiency.
56207
56208 2007-08-18  Bruno Haible  <bruno@clisp.org>
56209
56210         * modules/fstrcmp-tests: New file.
56211         * tests/test-fstrcmp.c: New file.
56212
56213 2007-08-18  Bruno Haible  <bruno@clisp.org>
56214
56215         * modules/fstrcmp: New file, from GNU gettext with modifications.
56216         * lib/fstrcmp.h: New file, from GNU gettext.
56217         * lib/fstrcmp.c: New file, from GNU gettext.
56218         * MODULES.html.sh (String handling): Add fstrcmp.
56219
56220 2007-08-18  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56223         'bool'.
56224         (diag, compareseq): Remove const from the ctxt argument.
56225         (USE_HEURISTIC): Undefine at the end.
56226
56227 2007-08-18  Jim Meyering  <jim@meyering.net>
56228
56229         New file: lib/idcache.h
56230         * NEWS: Mention the addition.
56231         * modules/idcache (Files): Add lib/idcache.h
56232         * lib/idcache.c: Include "idcache.h".
56233         Don't include <sys/types.h>.
56234         Add a FIXME comment.
56235         Move file-scoped "static" declarations to the top.
56236         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56237
56238 2007-08-17  Bruno Haible  <bruno@clisp.org>
56239         and Paul Eggert  <eggert@cs.ucla.edu>
56240
56241         * MODULES.html.sh: Add diffseq.
56242         * modules/diffseq: New file.
56243         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56244         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56245
56246 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         Import changes from coreutils for bootstrap script.
56249
56250         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * build-aux/bootstrap (slurp): Work even in environments where
56253         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56254         current code does not slurp files whose names start with ".", and
56255         this looks like it might be a troublesome area.
56256
56257         2007-07-11  Jim Meyering  <jim@meyering.net>
56258
56259         If there's a GPL vN copyright comment, require that N == 3.
56260
56261         2007-07-08  Jim Meyering  <jim@meyering.net>
56262
56263         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56264         * build-aux/bootstrap (mam_template): Move definition out of loop.
56265
56266         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56267
56268         * build-aux/bootstrap (symlink_to_dir): Rename function from
56269         symlink_to_gnulib.  Add a directory parameter.  Update all
56270         callers.
56271         (cp_mark_as_generated): Also check for -- and link to -- files in
56272         gl/.
56273
56274         2007-07-08  Jim Meyering  <jim@meyering.net>
56275
56276         Adapt to deeper hierarchy in gnulib.
56277         * build-aux/bootstrap (symlink_to_dir): If the destination
56278         directory doesn't exist, create it. This is required at least for
56279         "lib/uniwidth/cjk.h".
56280
56281         2007-05-15  Jim Meyering  <jim@meyering.net>
56282
56283         * build-aux/bootstrap: Now that generated Makefile.am files
56284         are no longer under version control, they must be created at
56285         bootstrap time.
56286
56287 2007-08-14  Ben Pfaff  <blp@gnu.org>
56288
56289         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56290
56291 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56292
56293         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56294         given the changes below.
56295         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56296         even on hosts that have padding bits beyond the supported 64.
56297
56298 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56299
56300         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56301         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56302         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56303         depends on it.
56304         (xstrtol_error): Remove.
56305         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56306         but with a different signature.
56307         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56308         * lib/xstrtol-error.c: Include exitfail.h.
56309         (xstrtol_fatal): New function, with a different signature from the
56310         old xstrtol_error, so that the caller need not worry about passing
56311         in an exit status, or about storage management of the option argument.
56312         (xstrtol_error): Now a static function.  Redo signature to
56313         implement xstrtol_fatal.  Output the correct number of hyphens in
56314         front of the option so that the caller need not worry about
56315         storage management.
56316         (N_): New macro.
56317         (_): Remove; not used now.
56318         * modules/xstrtol: Depend on getopt.
56319         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56320         of old STRTOL_FATAL_ERROR macro.
56321         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56322         of test program.
56323         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56324         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56325
56326 2007-08-08  Eric Blake  <ebb9@byu.net>
56327
56328         * lib/xstrtol-error.c: Add missing include.
56329
56330         Move xstrtol messages into gnulib domain, when --pobase is used.
56331         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56332         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56333         * modules/xstrtol (Files): Distribute new file.
56334         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56335         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56336         * tests/test-xstrtol.c: ...into new file.
56337         * tests/test-xstrtoul.c: Also test xstrtoul.
56338         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56339         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56340         * tests/test-xstrtol.sh: Drive the tests.
56341         * tests/test-xstrtoimax.sh: Likewise.
56342         * tests/test-xstrtoumax.sh: Likewise.
56343         * modules/xstrtol-tests: New module.
56344         * modules/xstrtoimax-tests: Likewise.
56345         * modules/xstrtoumax-tests: Likewise.
56346
56347 2007-08-08  Jim Meyering  <jim@meyering.net>
56348
56349         New function: mfile_name_concat.
56350         * lib/filenamecat.c (mfile_name_concat): New function, just like
56351         file_name_concat, but return NULL upon failure rather than exiting
56352         with a diagnostic.
56353         * lib/filenamecat.h: Declare it.
56354
56355 2007-08-07  Bruno Haible  <bruno@clisp.org>
56356
56357         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56358         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56359         warning from gcc.
56360         Reported by Eric Blake.
56361
56362 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56363
56364         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56365         * modules/crypto/arcfour (License): Likewise.
56366         * modules/crypto/des-tests (License): Likewise.
56367         * modules/crypto/gc-arctwo-tests (License): Likewise.
56368         * modules/crypto/gc-des-tests (License): Likewise.
56369         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56370         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56371         * modules/crypto/gc-md2-tests (License): Likewise.
56372         * modules/crypto/gc-md4-tests (License): Likewise.
56373         * modules/crypto/gc-md5-tests (License): Likewise.
56374         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56375         * modules/crypto/gc-rijndael-tests (License): Likewise.
56376         * modules/crypto/gc-sha1-tests (License): Likewise.
56377         * modules/crypto/gc-tests (License): Likewise.
56378         * modules/crypto/hmac-md5 (License): Likewise.
56379         * modules/crypto/hmac-sha1 (License): Likewise.
56380         * modules/crypto/md2-tests (License): Likewise.
56381         * modules/crypto/md4-tests (License): Likewise.
56382         * modules/crypto/md5 (License): Likewise.
56383         * modules/crypto/rijndael (License): Likewise.
56384         * modules/crypto/sha1 (License): Likewise.
56385         * modules/memxor (License): Likewise.
56386
56387 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56388         and Bruno Haible  <bruno@clisp.org>
56389
56390         * NEWS: Describe interface changes to human, xstrtol.
56391         * lib/human.h: Include <xstrtol.h>.
56392         (human_options): Return enum strtol_error, not int.  Remove
56393         bool arg; take int * instead.
56394         * lib/human.c: Don't include "gettext.h".
56395         (_): Remove; no longer used.
56396         Don't include <xstrtol.h>, since human.h does it.
56397         (human_options): Adjust to abovementioned interface changes.
56398         Do not report error to stderr; that's now the caller's
56399         responsibility.
56400         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56401         interface change.
56402         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56403         Str, Argument_type_string.  All uses changed.  Put " argument"
56404         in diagnostics to make them clearer.  Change wording of suffix
56405         message for clarity.
56406         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56407         Argument_type_string.
56408         (STRTOL_FATAL_WARN): Remove; no longer used.
56409         * modules/human (Depends-on): Remove gettext-h.
56410
56411 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56412
56413         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56414
56415 2007-07-31  Bruno Haible  <bruno@clisp.org>
56416
56417         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56418         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56419         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56420
56421 2007-07-31  Bruno Haible  <bruno@clisp.org>
56422
56423         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56424         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56425
56426 2007-07-30  Bruno Haible  <bruno@clisp.org>
56427
56428         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56429         * modules/c-ctype (License): Likewise.
56430         * modules/c-strcase (License): Likewise.
56431         * modules/check-version (License): Likewise.
56432         * modules/iconv (License): Likewise.
56433         * modules/iconv_open (License): Likewise.
56434         * modules/read-file (License): Likewise.
56435         * modules/striconv (License): Likewise.
56436         * modules/strverscmp (License): Likewise.
56437         * modules/vasprintf (License): Likewise.
56438         * modules/crypto/des (License): Likewise.
56439         * modules/crypto/gc (License): Likewise.
56440         * modules/crypto/gc-arcfour (License): Likewise.
56441         * modules/crypto/gc-arctwo (License): Likewise.
56442         * modules/crypto/gc-des (License): Likewise.
56443         * modules/crypto/gc-hmac-md5 (License): Likewise.
56444         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56445         * modules/crypto/gc-md2 (License): Likewise.
56446         * modules/crypto/gc-md4 (License): Likewise.
56447         * modules/crypto/gc-md5 (License): Likewise.
56448         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56449         * modules/crypto/gc-random (License): Likewise.
56450         * modules/crypto/gc-rijndael (License): Likewise.
56451         * modules/crypto/gc-sha1 (License): Likewise.
56452         * modules/crypto/md2 (License): Likewise.
56453         * modules/crypto/md4 (License): Likewise.
56454
56455 2007-07-30  Jim Meyering  <jim@meyering.net>
56456
56457         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56458         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56459         it has valid stat data.  This bug would cause du not to count the
56460         sizes of inaccessible directories.
56461         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56462         in <http://bugzilla.redhat.com/250077>.
56463
56464 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56465             Bruno Haible  <bruno@clisp.org>
56466
56467         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56468         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56469         #include_next, gives a diagnostic about it, but reports no error in
56470         the exit code.
56471         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56472
56473 2007-07-24  Ben Pfaff  <blp@gnu.org>
56474
56475         Improve name: "count-one-bits" is better than "popcount".
56476         * MODULES.html.sh: Update name.
56477         * lib/popcount.h: Renamed lib/count-one-bits.h.
56478         (popcount): Renamed count_one_bits.
56479         (popcountl): Renamed count_one_bits_l.
56480         (popcountll): Renamed count_one_bits_ll.
56481         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56482         * modules/popcount: Renamed module/count-one-bits.
56483         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56484         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56485
56486 2007-07-23  Ben Pfaff  <blp@gnu.org>
56487
56488         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56489         better code generation, and add U to large constants to avoid
56490         warnings, in non-GCC case.
56491         Suggested by Bruno Haible.
56492
56493 2007-07-23  Ben Pfaff  <blp@gnu.org>
56494
56495         * lib/popcount.h: Use verify_true instead of if...abort.
56496         * modules/popcount: Depend on verify module.
56497         Suggested by Jim Meyering.
56498
56499 2007-07-23  Bruno Haible  <bruno@clisp.org>
56500
56501         * gnulib-tool (func_import): Create a .cvsignore file also when the
56502         directory is not yet in CVS but the toplevel directory is. When
56503         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56504         Reported by Karl Berry.
56505
56506 2007-07-22  Ben Pfaff  <blp@gnu.org>
56507
56508         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56509         case.
56510         Suggested by Eric Blake.
56511
56512 2007-07-22  Ben Pfaff  <blp@gnu.org>
56513
56514         New module: popcount.
56515         * MODULES.html.sh: Add popcount.
56516         * modules/popcount: New file.
56517         * modules/popcount-tests: New file.
56518         * tests/test-popcount.c: New file.
56519         * lib/popcount.h: New file.
56520         * m4/popcount.m4: New file.
56521
56522 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         * build-aux/announce-gen: Update to GPLv3.
56525
56526         * build-aux/config.guess: Update from config.
56527
56528 2007-07-21  Bruno Haible  <bruno@clisp.org>
56529
56530         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56531         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56532
56533 2007-07-20  Jim Meyering  <jim@meyering.net>
56534
56535         * check-module: Diagnose a self-dependency.
56536
56537 2007-07-19  Bruno Haible  <bruno@clisp.org>
56538
56539         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56540         empty.
56541         Reported by Eric Blake.
56542
56543 2007-07-18  Bruno Haible  <bruno@clisp.org>
56544
56545         * gnulib-tool: New options --po-base, --po-domain.
56546         (func_usage): Document them.
56547         (pobase, po_domain): New variables.
56548         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56549         DEFAULT_TEXT_DOMAIN.
56550         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56551         (func_import): Consider pobase and po_domain. Create a po/ directory.
56552         (func_create_testdir): Set pobase and po_domain to empty.
56553         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56554         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56555
56556 2007-07-18  Bruno Haible  <bruno@clisp.org>
56557
56558         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56559         EXTRA_DIST augmentation for files in build-aux/.
56560
56561 2007-07-16  Bruno Haible  <bruno@clisp.org>
56562
56563         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56564         * modules/getdelim (License): Likewise.
56565
56566 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56567
56568         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56569         * modules/d-type (License): Likewise.
56570         * modules/extensions (License): Likewise.
56571         * modules/fnmatch (License): Likewise.
56572         * modules/fseeko (License): Likewise.
56573         * modules/getaddrinfo (License): Likewise.
56574         * modules/getline (License): Likewise.
56575         * modules/getlogin_r (License): Likewise.
56576         * modules/getpass (License): Likewise.
56577         * modules/gettimeofday (License): Likewise.
56578         * modules/glob (License): Likewise.
56579         * modules/inet_ntop (License): Likewise.
56580         * modules/malloc (License): Likewise.
56581         * modules/malloca (License): Likewise.
56582         * modules/memmem (License): Likewise.
56583         * modules/mempcpy (License): Likewise.
56584         * modules/memset (License): Likewise.
56585         * modules/minmax (License): Likewise.
56586         * modules/mktime (License): Likewise.
56587         * modules/netinet_in (License): Likewise.
56588         * modules/pathmax (License): Likewise.
56589         * modules/poll (License): Likewise.
56590         * modules/regex (License): Likewise.
56591         * modules/snprintf (License): Likewise.
56592         * modules/stdbool (License): Likewise.
56593         * modules/stdint (License): Likewise.
56594         * modules/stdio (License): Likewise.
56595         * modules/strcase (License): Likewise.
56596         * modules/strcasestr (License): Likewise.
56597         * modules/strdup (License): Likewise.
56598         * modules/string (License): Likewise.
56599         * modules/strndup (License): Likewise.
56600         * modules/strnlen (License): Likewise.
56601         * modules/strpbrk (License): Likewise.
56602         * modules/strptime (License): Likewise.
56603         * modules/strsep (License): Likewise.
56604         * modules/sys_select (License): Likewise.
56605         * modules/sys_socket (License): Likewise.
56606         * modules/sys_stat (License): Likewise.
56607         * modules/sys_time (License): Likewise.
56608         * modules/time (License): Likewise.
56609         * modules/time_r (License): Likewise.
56610         * modules/timegm (License): Likewise.
56611         * modules/unistd (License): Likewise.
56612         * modules/vsnprintf (License): Likewise.
56613         * modules/wctype (License): Likewise.
56614
56615 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56616
56617         * modules/argz (License): LGPLv2+.
56618
56619 2007-07-15  Karl Berry  <karl@gnu.org>
56620
56621         * doc/gnulib.texi: revise node structure per new fdl.texi.
56622
56623 2007-07-14  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56626         the output file.
56627         * lib/uniname/uninames.h: Regenerated.
56628
56629 2007-07-14  Karl Berry  <karl@gnu.org>
56630
56631         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56632         omitting sectioning and index commands.
56633
56634 2007-07-13  Bruno Haible  <bruno@clisp.org>
56635
56636         New gnulib-tool option --more-symlinks.
56637         * gnulib-tool (func_usage): Document --more-symlinks.
56638         (do_copyrights): New variable.
56639         Recognize option --more-symlinks.
56640         (func_import): Don't add a copyright notice transform to
56641         sed_transform_lib_file if do_copyrights is empty.
56642
56643 2007-07-13  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/vasnprintf.c (decimal_point_char): Define also if
56646         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56647         && !NEED_PRINTF_DIRECTIVE_A.
56648         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56649         Gary V. Vaughan <gary@gnu.org>.
56650
56651 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56652
56653         * lib/inttypes_.h: Undo previous change, since it was fixed
56654         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56655
56656 2007-07-13  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56659         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56660
56661 2007-07-13  Jim Meyering  <jim@meyering.net>
56662
56663         df: Don't fail for Tru64's "file-on-file mount".
56664         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56665         so we fall through and use statfs instead.  Details here:
56666         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56667         Reported by Albert Chin.
56668
56669 2007-07-13  Bruno Haible  <bruno@clisp.org>
56670
56671         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56672         * modules/configmake (License): Likewise.
56673         * modules/gettext (License): Likewise.
56674         * modules/gettext-h (License): Likewise.
56675         * modules/include_next (License): Likewise.
56676         * modules/link-warning (License): Likewise.
56677         * modules/localcharset (License): Likewise.
56678         * modules/localename (License): Likewise.
56679         * modules/lock (License): Likewise.
56680         * modules/relocatable-lib-lgpl (License): Likewise.
56681         * modules/size_max (License): Likewise.
56682         * modules/vasnprintf (License): Likewise.
56683         * modules/wchar (License): Likewise.
56684         * modules/xsize (License): Likewise.
56685
56686 2007-07-13  Bruno Haible  <bruno@clisp.org>
56687
56688         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56689         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56690
56691 2007-07-12  Bruno Haible  <bruno@clisp.org>
56692
56693         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56694         in the modules files.
56695
56696 2007-07-11  Karl Berry  <karl@gnu.org>
56697
56698         * MODULES.html.sh (func_module): use
56699          sed -e '\|^'"${includefile}"'$|d'
56700          instead of /.../d, to avoid errors on $includefile's containing /.
56701
56702 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56703
56704         * gnulib-tool (func_import): Avoid duplication of --avoid
56705         statements
56706         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56707         names to `_' in variable names.
56708
56709 2007-07-10  Eric Blake  <ebb9@byu.net>
56710
56711         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56712         * NEWS: Document this change.
56713
56714 2007-07-08  Bruno Haible  <bruno@clisp.org>
56715
56716         Update to Unicode 5.0.
56717         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56718         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56719         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56720         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56721         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56722         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56723         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56724         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56725         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56726         U+10A3F, U+1D242..U+1D244.
56727         (nonspacing_table_ind): Update.
56728         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56729         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56730
56731 2007-07-08  Bruno Haible  <bruno@clisp.org>
56732
56733         Update to Unicode 5.0.
56734         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56735         code transform. Extend the name index field of unicode_name_to_code and
56736         unicode_code_to_name from 16 to 24 bits.
56737         * lib/uniname/uniname.c (unicode_character_name,
56738         unicode_name_character): Add the range 0x12xxx to the code transform.
56739         * lib/uniname/uninames.h: Regenerated.
56740         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56741
56742 2007-07-07  Bruno Haible  <bruno@clisp.org>
56743
56744         * modules/wcwidth-tests: New file.
56745         * tests/test-wcwidth.c: New file.
56746
56747         Work around MacOS X wcwidth() bug.
56748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56749         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56750         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56751         original wcwidth in non-UTF-8 locales.
56752         * modules/wcwidth (Depends-on): Add localcharset, streq,
56753         uniwidth/width.
56754         * doc/functions/wcwidth.texi: Update.
56755
56756 2007-07-07  Bruno Haible  <bruno@clisp.org>
56757
56758         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56759         (wcwidth): New declaration.
56760         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56761         macros.
56762         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56763         here. Prepare for creating <wchar.h> unconditionally.
56764         * modules/wchar (Depends-on): Add link-warning.
56765         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56766         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56767         * lib/wcwidth.h: Remove file.
56768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56769         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56770         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56771         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56772         (Include): Replace wcwidth.h with <wchar.h>.
56773         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56774         * lib/mbchar.h: Don't include wcwidth.h.
56775         * lib/mbswidth.c: Likewise.
56776         * NEWS: Mention the change.
56777
56778 2007-07-07  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56781         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56782         definition with an external declaration.
56783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56784         defined as a function. Remove AC_C_INLINE requirement.
56785         * modules/wcwidth (Files): Add lib/wcwidth.c.
56786         (Makefile.am): Remove redundant statement.
56787
56788 2007-07-07  Bruno Haible  <bruno@clisp.org>
56789
56790         * MODULES.html.sh (Unicode string functions): Add the new modules.
56791
56792         * tests/uniwidth/test-u32-strwidth.c: New file.
56793         * modules/uniwidth/u32-strwidth-tests: New file.
56794
56795         * lib/uniwidth/u32-strwidth.c: New file.
56796         * modules/uniwidth/u32-strwidth: New file.
56797
56798         * tests/uniwidth/test-u16-strwidth.c: New file.
56799         * modules/uniwidth/u16-strwidth-tests: New file.
56800
56801         * lib/uniwidth/u16-strwidth.c: New file.
56802         * modules/uniwidth/u16-strwidth: New file.
56803
56804         * tests/uniwidth/test-u8-strwidth.c: New file.
56805         * modules/uniwidth/u8-strwidth-tests: New file.
56806
56807         * lib/uniwidth/u8-strwidth.c: New file.
56808         * modules/uniwidth/u8-strwidth: New file.
56809
56810         * tests/uniwidth/test-u32-width.c: New file.
56811         * modules/uniwidth/u32-width-tests: New file.
56812
56813         * lib/uniwidth/u32-width.c: New file.
56814         * modules/uniwidth/u32-width: New file.
56815
56816         * tests/uniwidth/test-u16-width.c: New file.
56817         * modules/uniwidth/u16-width-tests: New file.
56818
56819         * lib/uniwidth/u16-width.c: New file.
56820         * modules/uniwidth/u16-width: New file.
56821
56822         * tests/uniwidth/test-u8-width.c: New file.
56823         * modules/uniwidth/u8-width-tests: New file.
56824
56825         * lib/uniwidth/u8-width.c: New file.
56826         * modules/uniwidth/u8-width: New file.
56827
56828         * tests/uniwidth/test-uc_width.c: New file.
56829         * modules/uniwidth/width-tests: New file.
56830
56831         * lib/uniwidth/width.c: New file, from GNU libiconv.
56832         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56833         * modules/uniwidth/width: New file.
56834
56835         * lib/uniwidth.h: New file, from GNU libiconv.
56836         * modules/uniwidth/base: New file.
56837
56838 2007-07-07  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/uniname.h: New file, from GNU gettext.
56841         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56842         * lib/uniname/uninames.h: New file, from GNU gettext.
56843         * lib/uniname/uniname.c: New file, from GNU gettext.
56844         * tests/uniname/test-uninames.sh: New file.
56845         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56846         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56847         * modules/uniname/base: New file.
56848         * modules/uniname/uniname: New file.
56849         * modules/uniname/uniname-tests: New file.
56850         * MODULES.html.sh (Unicode string functions): Add the new modules.
56851
56852 2007-07-06  Bruno Haible  <bruno@clisp.org>
56853
56854         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56855
56856 2007-07-06  Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56859         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56860         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56861         include <sys/time.h>.
56862         Reported by Eric Blake.
56863
56864 2007-07-06  Eric Blake  <ebb9@byu.net>
56865
56866         Fix testing canonicalize on cygwin.
56867         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56868         Revert patch from 2007-06-19.
56869         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56870         canonicalize module is also in use.
56871         * tests/test-canonicalize.c: New file.
56872         * tests/test-canonicalize.sh: Likewise.
56873         * modules/canonicalize-tests: Likewise.
56874
56875 2007-07-06  Jim Meyering  <jim@meyering.net>
56876
56877         * lib/getugroups.c (getugroups): Detect getgrent failure.
56878         Adjust comment to reflect reality: this function may return -1.
56879
56880 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56881
56882         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56883         the new TP address.
56884         (usage): Fix typo
56885         (gnulib_mk): New variable.
56886
56887 2007-07-05  Jim Meyering  <jim@meyering.net>
56888
56889         Don't let endgrent clobber errno, no matter how improbable.
56890         * lib/getugroups.c (getugroups): Save and restore errno around
56891         endgrent call.
56892
56893         Close the group DB even when failing with 2^31 or more members.
56894         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56895
56896 2007-07-04  Jim Meyering  <jim@meyering.net>
56897
56898         * lib/getugroups.h: New file.
56899         * lib/getugroups.c: Include "getugroups.h".
56900         Remove uses of "register" keyword.
56901         Move local variable, "cp", down into scope where used.
56902         Give "username" parameter the "const" attribute.
56903         * modules/getugroups (Files): Add lib/getugroups.h
56904
56905 2007-07-04  Karl Berry  <karl@gnu.org>
56906
56907         * MODULES.html.sh (func_all_modules): Complete rename of
56908         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56909
56910 2007-07-02  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56913         mode, when inttypes.h comes from gnulib.
56914         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56915
56916 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56917
56918         * NEWS: Mention lgpl module name change.
56919
56920         * modules/lgpl-2.1: Renamed from lgpl.
56921
56922         * NEWS: Mention gpl module name change.
56923
56924         * modules/gpl-3.0: New file, based on gpl-2.0.
56925
56926         * modules/gpl-2.0: Renamed from gpl.
56927
56928         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56929         doc/gpl-2.0.texi.
56930
56931 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56934         #define __STDC_LIMIT_MACROS temporarily while including
56935         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56936         Problem reported by Joel E. Denny in
56937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56938
56939 2007-07-01  Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/unistdio.h: New file.
56942         * lib/unistdio/u-asnprintf.h: New file.
56943         * lib/unistdio/u-asprintf.h: New file.
56944         * lib/unistdio/u-printf-args.c: New file.
56945         * lib/unistdio/u-printf-args.h: New file.
56946         * lib/unistdio/u-printf-parse.h: New file.
56947         * lib/unistdio/u-snprintf.h: New file.
56948         * lib/unistdio/u-sprintf.h: New file.
56949         * lib/unistdio/u-vasprintf.h: New file.
56950         * lib/unistdio/u-vsnprintf.h: New file.
56951         * lib/unistdio/u-vsprintf.h: New file.
56952         * lib/unistdio/ulc-asnprintf.c: New file.
56953         * lib/unistdio/ulc-asprintf.c: New file.
56954         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56955         * lib/unistdio/ulc-printf-parse.c: New file.
56956         * lib/unistdio/ulc-snprintf.c: New file.
56957         * lib/unistdio/ulc-sprintf.c: New file.
56958         * lib/unistdio/ulc-vasnprintf.c: New file.
56959         * lib/unistdio/ulc-vasprintf.c: New file.
56960         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56961         * lib/unistdio/ulc-vsnprintf.c: New file.
56962         * lib/unistdio/ulc-vsprintf.c: New file.
56963         * lib/unistdio/u8-asnprintf.c: New file.
56964         * lib/unistdio/u8-asprintf.c: New file.
56965         * lib/unistdio/u8-printf-parse.c: New file.
56966         * lib/unistdio/u8-snprintf.c: New file.
56967         * lib/unistdio/u8-sprintf.c: New file.
56968         * lib/unistdio/u8-vasnprintf.c: New file.
56969         * lib/unistdio/u8-vasprintf.c: New file.
56970         * lib/unistdio/u8-vsnprintf.c: New file.
56971         * lib/unistdio/u8-vsprintf.c: New file.
56972         * lib/unistdio/u8-u8-asnprintf.c: New file.
56973         * lib/unistdio/u8-u8-asprintf.c: New file.
56974         * lib/unistdio/u8-u8-snprintf.c: New file.
56975         * lib/unistdio/u8-u8-sprintf.c: New file.
56976         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56977         * lib/unistdio/u8-u8-vasprintf.c: New file.
56978         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56979         * lib/unistdio/u8-u8-vsprintf.c: New file.
56980         * lib/unistdio/u16-asnprintf.c: New file.
56981         * lib/unistdio/u16-asprintf.c: New file.
56982         * lib/unistdio/u16-printf-parse.c: New file.
56983         * lib/unistdio/u16-snprintf.c: New file.
56984         * lib/unistdio/u16-sprintf.c: New file.
56985         * lib/unistdio/u16-vasnprintf.c: New file.
56986         * lib/unistdio/u16-vasprintf.c: New file.
56987         * lib/unistdio/u16-vsnprintf.c: New file.
56988         * lib/unistdio/u16-vsprintf.c: New file.
56989         * lib/unistdio/u16-u16-asnprintf.c: New file.
56990         * lib/unistdio/u16-u16-asprintf.c: New file.
56991         * lib/unistdio/u16-u16-snprintf.c: New file.
56992         * lib/unistdio/u16-u16-sprintf.c: New file.
56993         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56994         * lib/unistdio/u16-u16-vasprintf.c: New file.
56995         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56996         * lib/unistdio/u16-u16-vsprintf.c: New file.
56997         * lib/unistdio/u32-asnprintf.c: New file.
56998         * lib/unistdio/u32-asprintf.c: New file.
56999         * lib/unistdio/u32-printf-parse.c: New file.
57000         * lib/unistdio/u32-snprintf.c: New file.
57001         * lib/unistdio/u32-sprintf.c: New file.
57002         * lib/unistdio/u32-vasnprintf.c: New file.
57003         * lib/unistdio/u32-vasprintf.c: New file.
57004         * lib/unistdio/u32-vsnprintf.c: New file.
57005         * lib/unistdio/u32-vsprintf.c: New file.
57006         * lib/unistdio/u32-u32-asnprintf.c: New file.
57007         * lib/unistdio/u32-u32-asprintf.c: New file.
57008         * lib/unistdio/u32-u32-snprintf.c: New file.
57009         * lib/unistdio/u32-u32-sprintf.c: New file.
57010         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57011         * lib/unistdio/u32-u32-vasprintf.c: New file.
57012         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57013         * lib/unistdio/u32-u32-vsprintf.c: New file.
57014         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57015         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57016         * tests/unistdio/test-ulc-printf1.h: New file.
57017         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57018         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57019         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57020         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57021         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57022         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57023         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57024         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57025         * tests/unistdio/test-u8-asnprintf1.c: New file.
57026         * tests/unistdio/test-u8-asnprintf1.h: New file.
57027         * tests/unistdio/test-u8-printf1.h: New file.
57028         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57029         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57030         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57031         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57032         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57033         * tests/unistdio/test-u8-vasprintf1.c: New file.
57034         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57035         * tests/unistdio/test-u8-vsprintf1.c: New file.
57036         * tests/unistdio/test-u16-asnprintf1.c: New file.
57037         * tests/unistdio/test-u16-asnprintf1.h: New file.
57038         * tests/unistdio/test-u16-printf1.h: New file.
57039         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57040         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57041         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57042         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57043         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57044         * tests/unistdio/test-u16-vasprintf1.c: New file.
57045         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57046         * tests/unistdio/test-u16-vsprintf1.c: New file.
57047         * tests/unistdio/test-u32-asnprintf1.c: New file.
57048         * tests/unistdio/test-u32-asnprintf1.h: New file.
57049         * tests/unistdio/test-u32-printf1.h: New file.
57050         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57051         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57052         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57053         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57054         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57055         * tests/unistdio/test-u32-vasprintf1.c: New file.
57056         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57057         * tests/unistdio/test-u32-vsprintf1.c: New file.
57058         * modules/unistdio/base: New file.
57059         * modules/unistdio/u-printf-args: New file.
57060         * modules/unistdio/ulc-asnprintf: New file.
57061         * modules/unistdio/ulc-asprintf: New file.
57062         * modules/unistdio/ulc-fprintf: New file.
57063         * modules/unistdio/ulc-printf-parse: New file.
57064         * modules/unistdio/ulc-snprintf: New file.
57065         * modules/unistdio/ulc-sprintf: New file.
57066         * modules/unistdio/ulc-vasnprintf: New file.
57067         * modules/unistdio/ulc-vasprintf: New file.
57068         * modules/unistdio/ulc-vfprintf: New file.
57069         * modules/unistdio/ulc-vsnprintf: New file.
57070         * modules/unistdio/ulc-vsprintf: New file.
57071         * modules/unistdio/u8-asnprintf: New file.
57072         * modules/unistdio/u8-asprintf: New file.
57073         * modules/unistdio/u8-printf-parse: New file.
57074         * modules/unistdio/u8-snprintf: New file.
57075         * modules/unistdio/u8-sprintf: New file.
57076         * modules/unistdio/u8-vasnprintf: New file.
57077         * modules/unistdio/u8-vasprintf: New file.
57078         * modules/unistdio/u8-vsnprintf: New file.
57079         * modules/unistdio/u8-vsprintf: New file.
57080         * modules/unistdio/u8-u8-asnprintf: New file.
57081         * modules/unistdio/u8-u8-asprintf: New file.
57082         * modules/unistdio/u8-u8-snprintf: New file.
57083         * modules/unistdio/u8-u8-sprintf: New file.
57084         * modules/unistdio/u8-u8-vasnprintf: New file.
57085         * modules/unistdio/u8-u8-vasprintf: New file.
57086         * modules/unistdio/u8-u8-vsnprintf: New file.
57087         * modules/unistdio/u8-u8-vsprintf: New file.
57088         * modules/unistdio/u16-asnprintf: New file.
57089         * modules/unistdio/u16-asprintf: New file.
57090         * modules/unistdio/u16-printf-parse: New file.
57091         * modules/unistdio/u16-snprintf: New file.
57092         * modules/unistdio/u16-sprintf: New file.
57093         * modules/unistdio/u16-vasnprintf: New file.
57094         * modules/unistdio/u16-vasprintf: New file.
57095         * modules/unistdio/u16-vsnprintf: New file.
57096         * modules/unistdio/u16-vsprintf: New file.
57097         * modules/unistdio/u16-u16-asnprintf: New file.
57098         * modules/unistdio/u16-u16-asprintf: New file.
57099         * modules/unistdio/u16-u16-snprintf: New file.
57100         * modules/unistdio/u16-u16-sprintf: New file.
57101         * modules/unistdio/u16-u16-vasnprintf: New file.
57102         * modules/unistdio/u16-u16-vasprintf: New file.
57103         * modules/unistdio/u16-u16-vsnprintf: New file.
57104         * modules/unistdio/u16-u16-vsprintf: New file.
57105         * modules/unistdio/u32-asnprintf: New file.
57106         * modules/unistdio/u32-asprintf: New file.
57107         * modules/unistdio/u32-printf-parse: New file.
57108         * modules/unistdio/u32-snprintf: New file.
57109         * modules/unistdio/u32-sprintf: New file.
57110         * modules/unistdio/u32-vasnprintf: New file.
57111         * modules/unistdio/u32-vasprintf: New file.
57112         * modules/unistdio/u32-vsnprintf: New file.
57113         * modules/unistdio/u32-vsprintf: New file.
57114         * modules/unistdio/u32-u32-asnprintf: New file.
57115         * modules/unistdio/u32-u32-asprintf: New file.
57116         * modules/unistdio/u32-u32-snprintf: New file.
57117         * modules/unistdio/u32-u32-sprintf: New file.
57118         * modules/unistdio/u32-u32-vasnprintf: New file.
57119         * modules/unistdio/u32-u32-vasprintf: New file.
57120         * modules/unistdio/u32-u32-vsnprintf: New file.
57121         * modules/unistdio/u32-u32-vsprintf: New file.
57122         * modules/unistdio/ulc-asnprintf-tests: New file.
57123         * modules/unistdio/ulc-vasnprintf-tests: New file.
57124         * modules/unistdio/ulc-vasprintf-tests: New file.
57125         * modules/unistdio/ulc-vsnprintf-tests: New file.
57126         * modules/unistdio/ulc-vsprintf-tests: New file.
57127         * modules/unistdio/u8-asnprintf-tests: New file.
57128         * modules/unistdio/u8-vasnprintf-tests: New file.
57129         * modules/unistdio/u8-vasprintf-tests: New file.
57130         * modules/unistdio/u8-vsnprintf-tests: New file.
57131         * modules/unistdio/u8-vsprintf-tests: New file.
57132         * modules/unistdio/u16-asnprintf-tests: New file.
57133         * modules/unistdio/u16-vasnprintf-tests: New file.
57134         * modules/unistdio/u16-vasprintf-tests: New file.
57135         * modules/unistdio/u16-vsnprintf-tests: New file.
57136         * modules/unistdio/u16-vsprintf-tests: New file.
57137         * modules/unistdio/u32-asnprintf-tests: New file.
57138         * modules/unistdio/u32-vasnprintf-tests: New file.
57139         * modules/unistdio/u32-vasprintf-tests: New file.
57140         * modules/unistdio/u32-vsnprintf-tests: New file.
57141         * modules/unistdio/u32-vsprintf-tests: New file.
57142         * MODULES.html.sh (Unicode string functions): Add the new modules.
57143
57144 2007-07-01  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/sprintf.c (sprintf): Limit the available length estimation,
57147         to avoid address wraparound.
57148         * lib/vsprintf.c (vsprintf): Likewise.
57149         * modules/sprintf-posix (Dependencies): Add stdint.
57150         * modules/vsprintf-posix (Dependencies): Likewise.
57151
57152 2007-07-01  Bruno Haible  <bruno@clisp.org>
57153
57154         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57155         Windows PATH as well. Conservative double-quoting. Comments.
57156
57157 2007-07-01  Bruno Haible  <bruno@clisp.org>
57158             Eric Blake  <ebb9@byu.net>
57159             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57160
57161         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57162         empty components in $PATH, denoting '.'.
57163
57164 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57165
57166         * gnulib-tool: Fix indentation.
57167         (func_create_megatestdir): Likewise.
57168         Report by Bruno Haible.
57169
57170 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57171
57172         Sync from Automake.
57173         * build-aux/gnupload: Fix shell portability issues with for loops.
57174         Report by Karl Berry.
57175
57176 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57177
57178         * build-aux/maint.mk (POURL): Use translationproject.org.
57179
57180 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57181             Bruno Haible  <bruno@clisp.org>
57182
57183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57184         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57185         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57186         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57187         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57188
57189 2007-06-27  Bruno Haible  <bruno@clisp.org>
57190
57191         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57192         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57193
57194 2007-06-26  Karl Berry  <karl@gnu.org>
57195
57196         * MODULES.html.sh: remove xreadlink-with-size.
57197
57198 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57199
57200         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57201         method that I hope also handles the double-include problem noted
57202         by Bruno Haible in
57203         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57204
57205 2007-06-23  Bruno Haible  <bruno@clisp.org>
57206
57207         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57208         Don't let the 'mostlyclean' target fail if the last subdirectory could
57209         not be removed.
57210         Reported by Karl Berry.
57211
57212 2007-06-23  Bruno Haible  <bruno@clisp.org>
57213
57214         * gnulib-tool (echo): Add a speedier workaround for ksh.
57215         * tests/test-echo.sh: Likewise.
57216
57217 2007-06-23  Bruno Haible  <bruno@clisp.org>
57218
57219         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57220         * tests/test-echo.sh: Likewise.
57221
57222 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57223
57224         * gnulib-tool (IFS): Initialize early, so we don't set it to
57225         empty later.
57226         (self_abspathname): Rewrite algorithm to set it, reindent.
57227         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57228         (func_create_megatestdir): Merge some sed scripts.
57229
57230 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57231
57232         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57233         exposed by Sun Studio 11 cc on Solaris 8.
57234
57235 2007-06-22  Bruno Haible  <bruno@clisp.org>
57236
57237         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57238         backslashes.
57239         * tests/test-echo.sh: New file.
57240
57241 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57242
57243         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57244         simplify `sed_replace_build_aux' scripts, they are portable but
57245         echoing them with `echo' is not.
57246         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57247
57248 2007-06-21  Karl Berry  <karl@gnu.org>
57249
57250         * config/srclist.txt: guess we can't handle the licenses via
57251         srclist at the moment.
57252
57253 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * MODULES.html.sh: Add include_next.
57256         * modules/include_next: New file.
57257
57258 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57259
57260         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57261         INCLUDE_NEXT.
57262         (gl_CHECK_NEXT_HEADERS): New macro.
57263         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57264         the obsolescent gl_ABSOLUTE_HEADER.
57265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57266         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57267         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57268         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57269         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57270         * m4/math_h.m4 (gl_MATH_H): Likewise.
57271         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57272         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57273         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57274         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57275         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57276         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57277         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57278         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57281         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57282         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57283         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57284         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57285         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57286         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57287         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57288         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57289         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57290         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57291         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57292         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57293         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57294         * lib/float_.h: Likewise.
57295         * lib/inttypes_.h: Likewise.
57296         * lib/math_.h: Likewise.
57297         * lib/search_.h: Likewise.
57298         * lib/signal_.h: Likewise.
57299         * lib/stdint_.h: Likewise.
57300         * lib/stdio_.h: Likewise.
57301         * lib/stdlib_.h: Likewise.
57302         * lib/string_.h: Likewise.
57303         * lib/sys_stat_.h: Likewise.
57304         * lib/sys_time_.h: Likewise.
57305         * lib/time_.h: Likewise.
57306         * lib/unistd_.h: Likewise.
57307         * lib/wchar_.h: Likewise.
57308         * lib/wctype_.h: Likewise.
57309         * lib/dirent_.h: Likewise.
57310         * lib/iconv_.h: Likewise.
57311         * lib/locale_.h: Likewise.
57312         * lib/netinet_in_.h: Likewise.
57313         * lib/sys_select_.h: Likewise.
57314         * lib/sys_socket_.h: Likewise.
57315         * lib/sysexits_.h: Likewise.
57316         * modules/fcntl (Depends-on): Depend on include_next, not
57317         absolute_header.
57318         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57319         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57320         * modules/fchdir: Likewise.
57321         * modules/float: Likewise.
57322         * modules/iconv_open: Likewise.
57323         * modules/inttypes: Likewise.
57324         * modules/locale: Likewise.
57325         * modules/math: Likewise.
57326         * modules/netinet_in: Likewise.
57327         * modules/search: Likewise.
57328         * modules/signal: Likewise.
57329         * modules/stdint: Likewise.
57330         * modules/stdio: Likewise.
57331         * modules/stdlib: Likewise.
57332         * modules/string: Likewise.
57333         * modules/sys_select: Likewise.
57334         * modules/sys_socket: Likewise.
57335         * modules/sys_stat: Likewise.
57336         * modules/sys_time: Likewise.
57337         * modules/sysexits: Likewise.
57338         * modules/time: Likewise.
57339         * modules/unistd: Likewise.
57340         * modules/wchar: Likewise.
57341         * modules/wctype: Likewise.
57342         * modules/sys_stat: Change maintainer to "all".
57343         * modules/unistd: Likewise.
57344
57345 2007-06-20  Karl Berry  <karl@gnu.org>
57346
57347         * config/srclist.txt: track www changes in license files.
57348
57349 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57350
57351         * build-aux/bootstrap: Remove stray dot.
57352         Make sure build_aux settings are honored when linking
57353         gnulib_extra_files.
57354
57355 2007-06-19  Eric Blake  <ebb9@byu.net>
57356
57357         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57358         Allow compilation on cygwin.
57359
57360 2007-06-19  Jim Meyering  <jim@meyering.net>
57361
57362         xreadlink-with-size: Remove module.  No longer used.
57363         Ex-callers now use xreadlink or mreadlink-with-size.
57364         * modules/xreadlink-with-size: Remove module.
57365         * lib/xreadlink-with-size.c: Remove file.
57366         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57367         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57368         just before the function definition *is* accurate.
57369
57370         Eliminate one way canonicalize_filename_mode could exit.
57371         * lib/canonicalize.c (canonicalize_filename_mode):
57372         Use mreadlink_with_size, not xreadlink_with_size.
57373
57374 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57375
57376         Detect porting problems to FreeBSD/arm, which has time_t wider than
57377         long int.  Original problem reported for GNU diff by Xin Li in
57378         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57379         * modules/getdate (Depends-on): Add intprops, verify.
57380         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57381         is an integer type no wider than long int.
57382
57383 2007-06-18  Jim Meyering  <jim@meyering.net>
57384
57385         New module: mreadlink-with-size.
57386         * MODULES.html.sh: Add mreadlink-with-size.
57387         * modules/mreadlink-with-size: New module
57388         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57389         not xreadlink-with-size.
57390         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57391
57392 2007-06-16  Bruno Haible  <bruno@clisp.org>
57393
57394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57395         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57396         Reported by Gary V. Vaughan <gary@gnu.org>.
57397
57398 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57399
57400         Revamp lchown so that it lives in unistd.h where it belongs.
57401         * lib/lchown.h: Remove.
57402         * lib/dirchownmod.c: Don't include lib/lchown.h.
57403         * lib/fchownat.c: Likewise.
57404         * lib/openat.c: Likewise.
57405         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57406         does not follow symlinks.
57407         (EOPNOTSUPP): Define if not defined.
57408         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57409         is defined to 0.
57410         (lchown): New decl.
57411         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57412         Do not check for lchown decl.
57413         Set REPLACE_LCHOWN.
57414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57415         REPLACE_LCHOWN.
57416         * modules/chown: Make it clear it follows symlinks.
57417         * modules/lchown: Make it clear it doesn't follow symlinks.
57418         (Files): Remove lib/lchown.h
57419         (Depends-on): Add unistd.
57420         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57421         (Include): Include <unistd.h>, not "lchown.h".
57422         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57423         REPLACE_LCHOWN.
57424
57425 2007-06-15  Jim Meyering  <jim@meyering.net>
57426
57427         Change license (GPL to LGPL) of fsusage and dependents.
57428         * modules/fsusage (License): Change to LGPL.
57429         * modules/full-read (License): Likewise.
57430         * modules/full-write (License): Likewise.
57431         * modules/safe-read (License): Likewise.
57432         * modules/safe-write (License): Likewise.
57433
57434 2007-06-14  Ben Pfaff  <blp@gnu.org>
57435
57436         Missing part of allocsa -> malloca transition.
57437         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57438         gl_MALLOCA.
57439
57440 2007-06-12  Bruno Haible  <bruno@clisp.org>
57441
57442         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57443         to ia64, x86_64, i386.
57444         Reported by Eric Blake.
57445
57446 2007-06-12  Bruno Haible  <bruno@clisp.org>
57447
57448         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57449         cross-compiling to x86_64.
57450
57451 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57454         glitch reported by Ralf Wildenhues in
57455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57456
57457         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57458         Vin Shelton.
57459
57460 2007-06-11  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57463         replacement string.
57464         Reported by Eric Blake.
57465
57466 2007-06-10  Bruno Haible  <bruno@clisp.org>
57467
57468         Prepare vasnprintf code for use with Unicode strings.
57469         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57470         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57471         TYPE_U32_STRING.
57472         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57473         a_u32_string variants.
57474         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57475         * lib/printf-args.c: Don't include config.h and the specification
57476         header if PRINTF_FETCHARGS is already defined.
57477         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57478         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57479         TYPE_U16_STRING, TYPE_U32_STRING.
57480         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57481         u16_directive, u16_directives, u32_directive, u32_directives): New
57482         types.
57483         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57484         New declarations.
57485         * lib/printf-parse.c: Don't include config.h and the specification
57486         header if PRINTF_PARSE is already defined. Eliminate the set of
57487         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57488         them now. Include c-ctype.h.
57489         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57490         directive and CHAR_T_ONLY_ASCII.
57491         * lib/vasnprintf.c: Don't include config.h and the specification header
57492         if VASNPRINTF is already defined.
57493         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57494         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57495         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57496         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57497         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57498         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57499         code accordingly.
57500         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57501         pad_ourselves also in this case, with the 'c' and 's' directives, and
57502         with a different notion of "width".
57503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57504
57505 2007-06-10  Bruno Haible  <bruno@clisp.org>
57506
57507         * modules/unistr/u32-mbsnlen: New file.
57508         * lib/unistr/u32-mbsnlen.c: New file.
57509
57510         * modules/unistr/u16-mbsnlen: New file.
57511         * lib/unistr/u16-mbsnlen.c: New file.
57512
57513         * modules/unistr/u8-mbsnlen: New file.
57514         * lib/unistr/u8-mbsnlen.c: New file.
57515
57516         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57517         declarations.
57518
57519 2007-06-10  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/string_.h (mbsnlen): New declaration.
57522         * lib/mbsnlen.c: New file.
57523         * m4/mbsnlen.m4: New file.
57524         * modules/mbsnlen: New file.
57525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57526         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57527         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57528
57529 2007-06-10  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57532
57533 2007-06-10  Bruno Haible  <bruno@clisp.org>
57534
57535         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57536         * lib/mbuiter.h: Likewise.
57537
57538 2007-06-10  Bruno Haible  <bruno@clisp.org>
57539
57540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57541         declaration.
57542
57543 2007-06-10  Karl Berry  <karl@gnu.org>
57544
57545         * config/srclist.txt: remove gettext entries, Bruno prefers
57546         to update individually.
57547
57548 2007-06-10  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57551         'maxlen'. Ensure only length + width bytes are allocated, not
57552         length + 1 + width.
57553
57554 2007-06-09  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57557         (CHAR_T): Remove macro.
57558         (VASNPRINTF): Update.
57559
57560 2007-06-09  Bruno Haible  <bruno@clisp.org>
57561
57562         * MODULES.html.sh (Unicode string functions): Add the new modules.
57563
57564         * modules/uniconv/u32-conv-to-enc: New file.
57565         * lib/uniconv/u32-conv-to-enc.c: New file.
57566         * modules/uniconv/u32-conv-to-enc-tests: New file.
57567         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57568
57569         * modules/uniconv/u16-conv-to-enc: New file.
57570         * lib/uniconv/u16-conv-to-enc.c: New file.
57571         * lib/uniconv/u-conv-to-enc.h: New file.
57572         * modules/uniconv/u16-conv-to-enc-tests: New file.
57573         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57574
57575         * modules/uniconv/u8-conv-to-enc: New file.
57576         * lib/uniconv/u8-conv-to-enc.c: New file.
57577         * modules/uniconv/u8-conv-to-enc-tests: New file.
57578         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57579
57580         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57581         u32_conv_to_encoding): New declarations.
57582
57583 2007-06-09  Bruno Haible  <bruno@clisp.org>
57584
57585         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57586
57587 2007-06-09  Bruno Haible  <bruno@clisp.org>
57588
57589         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57590         * modules/malloca: Renamed from modules/allocsa, updated.
57591         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57592         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57593         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57594         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57595         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57596         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57597         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57598         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57599         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57600         * modules/c-strcasestr (Depends-on): Update.
57601         * lib/c-strcasestr.c: Update.
57602         * modules/c-strstr (Depends-on): Update.
57603         * lib/c-strstr.c: Update.
57604         * modules/canonicalize-lgpl (Depends-on): Update.
57605         * lib/canonicalize-lgpl.c: Update.
57606         * modules/clean-temp (Depends-on): Update.
57607         * lib/clean-temp.c: Update.
57608         * modules/csharpcomp (Depends-on): Update.
57609         * lib/csharpcomp.c: Update.
57610         * modules/csharpexec (Depends-on): Update.
57611         * lib/csharpexec.c: Update.
57612         * modules/javacomp (Depends-on): Update.
57613         * lib/javacomp.c: Update.
57614         * modules/javaexec (Depends-on): Update.
57615         * lib/javaexec.c: Update.
57616         * modules/mbscasestr (Depends-on): Update.
57617         * lib/mbscasestr.c: Update.
57618         * modules/mbsstr (Depends-on): Update.
57619         * lib/mbsstr.c: Update.
57620         * modules/setenv (Depends-on): Update.
57621         * lib/setenv.c: Update.
57622         * modules/strcasestr (Depends-on): Update.
57623         * lib/strcasestr.c: Update.
57624         * modules/striconveha (Depends-on): Update.
57625         * lib/striconveha.c: Update.
57626         * modules/relocatable-prog-wrapper (Files): Update.
57627         * lib/relocwrapper.c: Update.
57628         * build-aux/install-reloc: Update.
57629         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57630
57631 2007-06-08  Bruno Haible  <bruno@clisp.org>
57632
57633         Port to uClibc.
57634         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57635         * lib/fpurge.c (fpurge): Likewise.
57636         * lib/freading.c (freading): Likewise.
57637         * lib/fseeko.c (rpl_fseeko): Likewise.
57638         * lib/fseterr.c (fseterr): Likewise.
57639         * lib/fwriting.c (fwriting): Likewise.
57640         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57641
57642 2007-06-08  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57645         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57646         * modules/gettext (Files): Add m4/intlmacosx.m4.
57647
57648 2007-06-07  Bruno Haible  <bruno@clisp.org>
57649
57650         * modules/localename-tests: New file.
57651         * tests/test-localename.c: New file.
57652
57653         New module 'localename'.
57654         * lib/localename.h: New file.
57655         * lib/localename.c: New file, from GNU gettext.
57656         * m4/localename.m4: New file.
57657         * modules/localename: New file.
57658
57659 2007-06-07  Bruno Haible  <bruno@clisp.org>
57660
57661         Work around the lack of <wchar.h> on some builds of uClibc.
57662         * doc/headers/wchar.texi: Update.
57663         * lib/wchar_.h: Include <wchar.h> only if it exists.
57664         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57665         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57666         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57667         doesn't exist.
57668         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57669         * modules/mbfile (Depends-on): Add wchar.
57670         * modules/mbiter (Depends-on): Likewise.
57671         * modules/mbuiter (Depends-on): Likewise.
57672         Reported by Simon Josefsson.
57673
57674 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57675
57676         Work around problem reported by Steven M. Schweda in
57677         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57678         Tru64 5.1B with the Compaq compiler environment installed declares
57679         an 'isblank' function but does not define it in the C library.
57680         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57681         * lib/regex_internal.h (isblank): Likewise.
57682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57683         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57684
57685 2007-06-05  Bruno Haible  <bruno@clisp.org>
57686
57687         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57688         ia64.
57689         * modules/printf-safe: New file.
57690         * modules/fprintf-posix (Depends-on): Add printf-safe.
57691         * modules/printf-posix (Depends-on): Likewise.
57692         * modules/snprintf-posix (Depends-on): Likewise.
57693         * modules/sprintf-posix (Depends-on): Likewise.
57694         * modules/vasnprintf-posix (Depends-on): Likewise.
57695         * modules/vasprintf-posix (Depends-on): Likewise.
57696         * modules/vfprintf-posix (Depends-on): Likewise.
57697         * modules/vprintf-posix (Depends-on): Likewise.
57698         * modules/vsnprintf-posix (Depends-on): Likewise.
57699         * modules/vsprintf-posix (Depends-on): Likewise.
57700         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57701         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57702         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57703         "no" on i386, x86_64, ia64.
57704         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57705         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57706         on i386, x86_64, ia64.
57707         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57708         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57709         on i386, x86_64, ia64.
57710         * tests/test-vasnprintf-posix.c: Include float.h.
57711         (LDBL80_WORDS): New macro.
57712         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57713         on i386, x86_64, ia64.
57714         * tests/test-vasprintf-posix.c: Include float.h.
57715         (LDBL80_WORDS): New macro.
57716         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57717         on i386, x86_64, ia64.
57718         * tests/test-snprintf-posix.c: Include float.h.
57719         * tests/test-sprintf-posix.c: Likewise.
57720         * tests/test-vsnprintf-posix.c: Likewise.
57721         * tests/test-vsprintf-posix.c: Likewise.
57722
57723 2007-06-05  Bruno Haible  <bruno@clisp.org>
57724
57725         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57726         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57727         non-IEEE numbers on i386, x86_64, ia64.
57728         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57729         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57730         * tests/test-isnanl.h: Include float.h.
57731         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57732
57733 2007-06-05  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57736         also the %a / %A. Handle the %a / %A code before this extra handling.
57737
57738 2007-06-05  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57741         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57742
57743 2007-06-05  Bruno Haible  <bruno@clisp.org>
57744
57745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57746         typo in variable name.
57747
57748 2007-06-05  Eric Blake  <ebb9@byu.net>
57749
57750         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57751         Reported by Simon Josefsson.
57752
57753 2007-06-04  Bruno Haible  <bruno@clisp.org>
57754
57755         Avoid test failures on some PowerPC platforms.
57756         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57757         Define differently for PowerPC.
57758         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57759         Reported by Gary V. Vaughan <gary@gnu.org>.
57760
57761 2007-06-02  Bruno Haible  <bruno@clisp.org>
57762
57763         Fix test-stdint failure on FreeBSD/ia64.
57764         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57765         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57766         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57767         * doc/headers/stdint.texi: Update.
57768
57769 2007-06-01  Bruno Haible  <bruno@clisp.org>
57770
57771         * tests/test-binary-io.c (main): Pass a third argument to open().
57772         Reported by Gary V. Vaughan <gary@gnu.org>.
57773
57774 2007-06-01  Bruno Haible  <bruno@clisp.org>
57775
57776         * doc/functions/frexpl.texi: Update for mingw.
57777
57778 2007-06-01  Bruno Haible  <bruno@clisp.org>
57779
57780         * tests/test-lseek.c (main): Disable test of errno for invalid third
57781         argument.
57782         * doc/functions/lseek.texi: Update.
57783         Reported by Gary V. Vaughan <gary@gnu.org>.
57784
57785 2007-05-28  Bruno Haible  <bruno@clisp.org>
57786
57787         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57788
57789 2007-05-31  Eric Blake  <ebb9@byu.net>
57790
57791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57792         cross compiling.
57793
57794 2007-05-30  Eric Blake  <ebb9@byu.net>
57795         and Bruno Haible  <bruno@clisp.org>
57796
57797         Work around mingw test failures exposed by m4-1.4.9b.
57798         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57799         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57800         moment.
57801
57802 2007-05-30  Bruno Haible  <bruno@clisp.org>
57803
57804         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57805         assuming that they are closed. Needed on HP-UX 11.
57806
57807 2007-05-29  Bruno Haible  <bruno@clisp.org>
57808
57809         Fix a problem with #include_next.
57810         * lib/dirent_.h: Split the double-inclusion guard.
57811         * lib/fcntl_.h: Likewise.
57812         * lib/float_.h: Likewise.
57813         * lib/iconv_.h: Likewise.
57814         * lib/inttypes_.h: Likewise.
57815         * lib/locale_.h: Likewise.
57816         * lib/math_.h: Likewise.
57817         * lib/netinet_in_.h: Likewise.
57818         * lib/search_.h: Likewise.
57819         * lib/signal_.h: Likewise.
57820         * lib/stdint_.h: Likewise.
57821         * lib/stdio_.h: Likewise.
57822         * lib/stdlib_.h: Likewise.
57823         * lib/string_.h: Likewise.
57824         * lib/sys_select_.h: Likewise.
57825         * lib/sys_socket_.h: Likewise.
57826         * lib/sys_stat_.h: Likewise.
57827         * lib/sys_time_.h: Likewise.
57828         * lib/sysexits_.h: Likewise.
57829         * lib/time_.h: Likewise.
57830         * lib/unistd_.h: Likewise.
57831         * lib/wchar_.h: Likewise.
57832         * lib/wctype_.h: Likewise.
57833
57834 2007-05-29  Bruno Haible  <bruno@clisp.org>
57835
57836         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57837         for the moment.
57838
57839 2007-05-29  Bruno Haible  <bruno@clisp.org>
57840
57841         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57842         invocation.
57843         Reported by Eric Blake.
57844
57845 2007-05-29  Bruno Haible  <bruno@clisp.org>
57846
57847         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57848         compiling case.
57849
57850 2007-05-29  Eric Blake  <ebb9@byu.net>
57851             Bruno Haible  <bruno@clisp.org>
57852
57853         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57854         cross compiles.
57855
57856 2007-05-28  Eric Blake  <ebb9@byu.net>
57857
57858         * modules/closein-tests (test_closein_LDADD): Support test on
57859         cygwin with libtool.
57860
57861 2007-05-28  Bruno Haible  <bruno@clisp.org>
57862
57863         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57864         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57865         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57866         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57867         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57868         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57869         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57870         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57871         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57872
57873 2007-05-28  Eric Blake  <ebb9@byu.net>
57874
57875         Unconditionally include <config.h> in unit tests.
57876         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57877         * tests/test-allocsa.c, tests/test-arcfour.c,
57878         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57879         tests/test-array_list.c, tests/test-array_oset.c,
57880         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57881         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57882         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57883         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57884         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57885         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57886         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57887         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57888         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57889         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57890         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57891         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57892         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57893         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57894         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57895         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57896         test-md5.c, test-memmem.c, test-printf-posix.c,
57897         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57898         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57899         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57900         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57901         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57902         test-vasnprintf-posix2.c, test-vasnprintf.c,
57903         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57904         test-vfprintf-posix.c, test-vprintf-posix.c,
57905         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57906         test-xvasprintf.c: Likewise.
57907
57908 2007-05-28  Bruno Haible  <bruno@clisp.org>
57909
57910         * gnulib-tool (func_import): Remember the --with-tests command-line
57911         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57912         Reported by Eric Blake.
57913
57914 2007-05-28  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/ftell-tests: New file.
57917         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57918         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57919
57920         * lib/ftell.c: New file.
57921         * modules/ftell: New file.
57922         * m4/ftell.m4: New file.
57923         * doc/functions/ftell.texi: Update.
57924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57925         REPLACE_FTELL.
57926         * lib/stdio_.h (rpl_ftell): New declaration.
57927         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57928         REPLACE_FTELL.
57929
57930 2007-05-28  Eric Blake  <ebb9@byu.net>
57931
57932         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57933
57934 2007-05-28  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/fseek-tests: New file.
57937         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57938         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57939
57940         * lib/fseek.c: New file.
57941         * modules/fseek: New file.
57942         * m4/fseek.m4: New file.
57943         * doc/functions/fseek.texi: Update.
57944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57945         REPLACE_FSEEK.
57946         * lib/stdio_.h (rpl_fseek): New declaration.
57947         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57948         REPLACE_FSEEK.
57949
57950 2007-05-28  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/stdio_.h (fflush): More comments.
57953
57954 2007-05-28  Bruno Haible  <bruno@clisp.org>
57955
57956         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57957         runtime test.
57958
57959 2007-05-28  Eric Blake  <ebb9@byu.net>
57960
57961         Improve lseek module.
57962         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57963         * lib/unistd_.h (lseek): Scale back link warning message.
57964         * tests/test-lseek.c: Beef up test.
57965         * tests/test-lseek.sh: Exercise more facets of lseek.
57966         Reported by Bruno Haible.
57967
57968 2007-05-28  Bruno Haible  <bruno@clisp.org>
57969
57970         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57971         to define.
57972
57973 2007-05-27  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57976
57977 2007-05-27  Bruno Haible  <bruno@clisp.org>
57978
57979         * modules/openmp: New file.
57980         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57981         Noah Misch.
57982
57983 2007-05-26  Bruno Haible  <bruno@clisp.org>
57984
57985         * modules/chdir-long (Depends-on): Add fchdir.
57986         * modules/chdir-safer (Depends-on): Likewise.
57987         * modules/fts (Depends-on): Likewise.
57988         * modules/fts-lgpl (Depends-on): Likewise.
57989         * modules/openat (Depends-on): Likewise.
57990         * modules/savewd (Depends-on): Likewise.
57991
57992 2007-05-24  Eric Blake  <ebb9@byu.net>
57993
57994         Fix lseek on mingw.
57995         * modules/lseek: New module.
57996         * m4/lseek.m4: New file.
57997         * lib/lseek.c: New file.
57998         * modules/lseek-tests: New file.
57999         * tests/test-lseek.c: New file.
58000         * tests/test-lseek.sh: New file.
58001         * MODULES.html.sh: Document lseek module.
58002         * modules/fflush (Depends-on): Add lseek, fseeko.
58003         * modules/fseeko (Depends-on): Likewise.
58004         * modules/ftello (Depends-on): Likewise.
58005         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58006         broken.
58007         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58008         broken.
58009         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58010         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58011         * lib/ftello.c (rpl_ftello): Likewise.
58012         * tests/test-fseeko.c (main): Test this.
58013         * tests/test-fseeko.sh: Likewise.
58014         * tests/test-ftello.c (main): Likewise.
58015         * tests/test-ftello.sh: Likewise.
58016         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58017         implies replacing fseek.
58018         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58019         HAVE_FTELLO.
58020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58021         * modules/unistd (Makefile.am): Likewise.
58022         * lib/unistd_.h (lseek): Declare a replacement.
58023         * doc/functions/lseek.texi (lseek): Document this fix.
58024         * doc/functions/fseek.texi (fseek): Likewise.
58025         * doc/functions/ftell.texi (ftell): Likewise.
58026
58027 2007-05-24  Bruno Haible  <bruno@clisp.org>
58028
58029         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58030         in the printed representation of a NaN.
58031         * tests/test-vasprintf-posix.c (test_function): Likewise.
58032         * tests/test-snprintf-posix.h (test_function): Likewise.
58033         * tests/test-sprintf-posix.h (test_function): Likewise.
58034         Reported by Eric Blake.
58035
58036 2007-05-23  Eric Blake  <ebb9@byu.net>
58037
58038         Fix fseeko/ftello on cygwin 1.5.24.
58039         * doc/functions/fseeko.texi (fseeko): Document the fix.
58040         * doc/functions/ftello.texi (ftello): Document the fix.
58041         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58042         * doc/functions/stdout.text (stdout): New file.
58043         * doc/functions/stderr.text (stderr): New file.
58044         * doc/gnulib.texi (Function Substitutes): Use new files.
58045         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58046         prior to 1.7.0.
58047         * tests/test-ftello.c (main): Likewise for ftello.
58048         * tests/test-fseeko.sh: New file.
58049         * tests/test-ftello.sh: New file.
58050         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58051         with seekable stdin.
58052         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58054         (gl_REPLACE_FSEEKO): New macro.
58055         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58056         * modules/fseeko (Files): Distribute fseeko.c.
58057         * modules/ftello (Files): Distribute ftello.c.
58058         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58059         mode.
58060         * lib/ftello.c (rpl_ftello): New file.
58061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58062         fseeko, ftello.
58063         (gl_STDIN_LARGE_OFFSET): New macro.
58064         * modules/stdio (Makefile.am): Perform the replacement.
58065         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58066
58067 2007-05-23  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58070         GNULIB_POSIXCHECK is defined.
58071
58072 2007-05-21  Bruno Haible  <bruno@clisp.org>
58073
58074         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58075         Check also the output for NaN arguments. When cross-compiling, guess
58076         no on IRIX.
58077         * lib/vasnprintf.c: Update comments.
58078         * tests/test-vasnprintf-posix.c (strisnan): New function.
58079         (test_function): Use it.
58080         * tests/test-vasprintf-posix.c (strisnan): New function.
58081         (test_function): Use it.
58082         * tests/test-snprintf-posix.h (strisnan): New function.
58083         (test_function): Use it.
58084         * tests/test-sprintf-posix.h (strisnan): New function.
58085         (test_function): Use it.
58086         Reported by Eric Blake.
58087
58088 2007-05-20  Bruno Haible  <bruno@clisp.org>
58089
58090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58091         numbers that fails on BeOS.
58092         * doc/functions/frexpl.texi: Update.
58093
58094 2007-05-20  Jim Meyering  <jim@meyering.net>
58095
58096         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58097         forced upon us by glibc-2.6.
58098
58099 2007-05-20  Bruno Haible  <bruno@clisp.org>
58100
58101         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58102         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58103         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58104         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58105         NEED_PRINTF_INFINITE.
58106         (is_infinitel): New function.
58107         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58109         gl_PREREQ_VASNPRINTF_INFINITE.
58110         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58111         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58112         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58113         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58114         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58115         gl_PREREQ_VASNPRINTF_INFINITE.
58116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58120         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58123         * doc/functions/fprintf.texi: Update.
58124         * doc/functions/printf.texi: Update.
58125         * doc/functions/snprintf.texi: Update.
58126         * doc/functions/sprintf.texi: Update.
58127         * doc/functions/vfprintf.texi: Update.
58128         * doc/functions/vprintf.texi: Update.
58129         * doc/functions/vsnprintf.texi: Update.
58130         * doc/functions/vsprintf.texi: Update.
58131
58132 2007-05-20  Bruno Haible  <bruno@clisp.org>
58133
58134         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58135         was not found in libc.
58136         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58137
58138 2007-05-20  Bruno Haible  <bruno@clisp.org>
58139
58140         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58141         printed as "-nan" instead of "nan".
58142         * tests/test-vasprintf-posix.c (test_function): Likewise.
58143         * tests/test-snprintf-posix.h (test_function): Likewise.
58144         * tests/test-sprintf-posix.h (test_function): Likewise.
58145         Needed for HP-UX 11.
58146
58147 2007-05-20  Jim Meyering  <jim@meyering.net>
58148
58149         Fix buggy test for the fchownat-deref bug.
58150         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58151         symlink required for the run-test.  Without it, this test would
58152         always declare that fchownat doesn't work, and client code would
58153         unnecessarily use the replacement function with fixed libc.
58154         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58155         Reported by Greg Schafer.
58156
58157 2007-05-19  Bruno Haible  <bruno@clisp.org>
58158
58159         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58160         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58161         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58162         Needed for IRIX 6.5 and Solaris 2.5.1.
58163
58164 2007-05-19  Bruno Haible  <bruno@clisp.org>
58165
58166         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58167         (test_function): Skip tests involving -0.0 on platforms where
58168         -0.0 = 0.0.
58169         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58170         (test_function): Skip tests involving -0.0 on platforms where
58171         -0.0 = 0.0.
58172         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58173         (test_function): Skip tests involving -0.0 on platforms where
58174         -0.0 = 0.0.
58175         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58176         (test_function): Skip tests involving -0.0 on platforms where
58177         -0.0 = 0.0.
58178         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58179         tests.
58180         * tests/test-printf-posix.h (test_function): Likewise.
58181         * tests/test-printf-posix.output: Remove all -0.0 related results.
58182         Needed for IRIX 6.5.
58183
58184 2007-05-19  Bruno Haible  <bruno@clisp.org>
58185
58186         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58187         printed as "nan0x7fffffff" instead of "nan".
58188         * tests/test-vasprintf-posix.c (test_function): Likewise.
58189         * tests/test-snprintf-posix.h (test_function): Likewise.
58190         * tests/test-sprintf-posix.h (test_function): Likewise.
58191         * tests/test-fprintf-posix.h (NaN): Remove macro.
58192         (test_function): Remove all NaN related tests.
58193         * tests/test-printf-posix.h (NaN): Remove macro.
58194         (test_function): Remove all NaN related tests.
58195         * tests/test-printf-posix.output: Remove all NaN related results.
58196         Needed for IRIX 6.5.
58197
58198 2007-05-19  Bruno Haible  <bruno@clisp.org>
58199
58200         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58201         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58202
58203 2007-05-19  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/float_.h: New file.
58206         * m4/float_h.m4: New file.
58207         * modules/float: New file.
58208         * modules/isnanl (Dependencies): Add float.
58209         * modules/isnanl-nolibm (Dependencies): Likewise.
58210         * modules/mathl (Dependencies): Likewise.
58211         * modules/printf-frexpl (Dependencies): Likewise.
58212         * modules/signbit (Dependencies): Likewise.
58213         * modules/vasnprintf (Dependencies): Likewise.
58214         * doc/headers/float.texi: Update.
58215
58216 2007-05-19  Jim Meyering  <jim@meyering.net>
58217
58218         * lib/utimens.c (gl_futimens): Rename from futimens,
58219         now that glibc-2.6 declares futimens.
58220         * lib/utimens.h: Likewise.
58221
58222 2007-05-19  Bruno Haible  <bruno@clisp.org>
58223
58224         Avoid test failures on mingw.
58225         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58226         * tests/test-printf-posix.sh: Likewise.
58227         * tests/test-vfprintf-posix.sh: Likewise.
58228         * tests/test-vprintf-posix.sh: Likewise.
58229
58230 2007-05-19  Bruno Haible  <bruno@clisp.org>
58231
58232         Fix *printf result for NaN, Inf, -0.0 on mingw.
58233         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58234         * lib/vasnprintf.c: Include math.h and isnan.h.
58235         (is_infinite_or_zero): New function.
58236         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58237         values in the %f, %F, %e, %E, %g, %G directives.
58238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58239         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58240         gl_PRINTF_INFINITE and test its result. Invoke
58241         gl_PREREQ_VASNPRINTF_INFINITE.
58242         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58249         * doc/functions/fprintf.texi: Update.
58250         * doc/functions/printf.texi: Update.
58251         * doc/functions/snprintf.texi: Update.
58252         * doc/functions/sprintf.texi: Update.
58253         * doc/functions/vfprintf.texi: Update.
58254         * doc/functions/vprintf.texi: Update.
58255         * doc/functions/vsnprintf.texi: Update.
58256         * doc/functions/vsprintf.texi: Update.
58257
58258 2007-05-19  Bruno Haible  <bruno@clisp.org>
58259
58260         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58261         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58262         Instead of multiplying with 10^k, set extra_zeroes to k.
58263         (scale10_round_long_double): Remove function.
58264
58265 2007-05-18  Bruno Haible  <bruno@clisp.org>
58266
58267         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58268         introduced on 2007-05-06.
58269
58270 2007-05-18  Bruno Haible  <bruno@clisp.org>
58271
58272         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58273         %g directives.
58274         * tests/test-vasprintf-posix.c (test_function): Likewise.
58275         * tests/test-snprintf-posix.h (test_function): Likewise.
58276         * tests/test-sprintf-posix.h (test_function): Likewise.
58277
58278 2007-05-18  Bruno Haible  <bruno@clisp.org>
58279
58280         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58281         (strmatch): New function.
58282         (test_function): Test the %f directive on numbers of various exponents.
58283         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58284         (strmatch): New function.
58285         (test_function): Test the %f directive on numbers of various exponents.
58286         * tests/test-snprintf-posix.h (strmatch): New function.
58287         (test_function): Test the %f directive on numbers of various exponents.
58288         * tests/test-sprintf-posix.h (strmatch): New function.
58289         (test_function): Test the %f directive on numbers of various exponents.
58290         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58291         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58292         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58293         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58294
58295 2007-05-18  Bruno Haible  <bruno@clisp.org>
58296
58297         Add support for 'long double' number output.
58298         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58299         * lib/vasnprintf.c: Include math.h and float+.h.
58300         (mp_limb_t): New type.
58301         (GMP_LIMB_BITS): New macro.
58302         (mp_twolimb_t): New type.
58303         (GMP_TWOLIMB_BITS): New macro.
58304         (mpn_t): New type.
58305         (multiply, divide, convert_to_decimal, decode_long_double,
58306         scale10_round_long_double, scale10_round_decimal_long_double,
58307         floorlog10l): New functions.
58308         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58309         for the %f, %F, %e, %E, %g, %G directives.
58310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58312         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58313         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58321         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58322         * modules/snprintf-posix (Depends-on): Likewise.
58323         * modules/sprintf-posix (Depends-on): Likewise.
58324         * modules/vasnprintf-posix (Depends-on): Likewise.
58325         * modules/vasprintf-posix (Depends-on): Likewise.
58326         * modules/vfprintf-posix (Depends-on): Likewise.
58327         * modules/vsnprintf-posix (Depends-on): Likewise.
58328         * modules/vsprintf-posix (Depends-on): Likewise.
58329         * modules/vasnprintf (Files): Add lib/float+.h.
58330         * doc/functions/fprintf.texi: Update.
58331         * doc/functions/printf.texi: Update.
58332         * doc/functions/snprintf.texi: Update.
58333         * doc/functions/sprintf.texi: Update.
58334         * doc/functions/vfprintf.texi: Update.
58335         * doc/functions/vprintf.texi: Update.
58336         * doc/functions/vsnprintf.texi: Update.
58337         * doc/functions/vsprintf.texi: Update.
58338
58339 2007-05-18  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58342
58343 2007-05-18  Bruno Haible  <bruno@clisp.org>
58344
58345         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58346         for printing 64-bit integers. Needed for mingw.
58347
58348 2007-05-18  Bruno Haible  <bruno@clisp.org>
58349
58350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58351         gl_FUNC_FREXPL_WORKS.
58352         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58353
58354 2007-05-18  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/frexpl-nolibm-tests: New file.
58357
58358         * modules/frexpl-nolibm: New file.
58359         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58360
58361 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58364         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58365         GCC 4.2, which otherwise issues a lot of warnings.
58366         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58367         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58368         Likewise.
58369         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58370         * modules/iconv_open (iconv.h): Likewise.
58371         * modules/locale (locale.h): Likewise.
58372         * modules/netinet_in (netinet/in.h): Likewise.
58373         * modules/sys_select (sys_select.h): Likewise.
58374         * modules/sys_socket (sys/socket.h): Likewise.
58375         * modules/sys_stat (sys/stat.h): Likewise.
58376         * modules/sysexits (sysexits.h): Likewise.
58377         * modules/unistd (unistd.h): Likewise.
58378
58379 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58380
58381         * modules/closein-tests (Makefile.am): Distribute
58382         `test-closein.sh'.
58383
58384 2007-05-17  Bruno Haible  <bruno@clisp.org>
58385
58386         * tests/test-printf-posix.output: Renamed from
58387         tests/test-fprintf-posix.out.
58388         * modules/fprintf-posix-tests: Update.
58389         * modules/printf-posix-tests: Update.
58390         * modules/vfprintf-posix-tests: Update.
58391         * modules/vprintf-posix-tests: Update.
58392         * tests/test-fprintf-posix.sh: Update.
58393         * tests/test-printf-posix.sh: Update.
58394         * tests/test-vfprintf-posix.sh: Update.
58395         * tests/test-vprintf-posix.sh: Update.
58396         Reported by Ralf Wildenhues.
58397
58398 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58399
58400         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58401         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58402         GCC 4.2, which otherwise issues a lot of warnings.
58403         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58404         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58405         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58406         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58407         it should no longer be needed.
58408         * lib/string_.h: Likewise.
58409         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58410         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58411         * modules/inttypes (inttypes.h): Likewise.
58412         * modules/math (math.h): Likewise.
58413         * modules/search (search.h): Likewise.
58414         * modules/signal (signal.h): Likewise.
58415         * modules/stdint (stdint.h): Likewise.
58416         * modules/stdio (stdio.h): Likewise.
58417         * modules/stdlib (stdlib.h): Likewise.
58418         * modules/string (string.h): Likewise.
58419         * modules/sys_time (sys/time.h): Likewise.
58420         * modules/time (time.h): Likewise.
58421         * modules/wchar (wchar.h): Likewise.
58422         * modules/wctype (wtype.h): Likewise.
58423
58424 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58425
58426         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58427
58428 2007-05-13  Bruno Haible  <bruno@clisp.org>
58429
58430         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58431         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58432         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58433         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58434         (gl_PREREQ_STRTOK_R): Don't require it here.
58435
58436 2007-05-13  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58439         when used in C++ mode.
58440
58441 2007-05-12  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/linebuffer.h: Tweak doc.
58444         * lib/linebuffer.c: Likewise.
58445
58446 2007-05-12  James Youngman  <jay@gnu.org>
58447
58448         * lib/linebuffer.c (readlinebuffer_delim): New function,
58449         like readlinebuffer, but use a caller-specified delimiter.
58450         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58451         as the delimiter.
58452         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58453
58454 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58455
58456         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58457         * modules/openat (Files): Remove openat-die.c.
58458         (Depends-on): Add openat-die.
58459         * modules/openat-die: New module.
58460
58461 2007-05-06  Bruno Haible  <bruno@clisp.org>
58462
58463         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58464         Update with info about Cygwin.
58465         * doc/functions/fprintf.texi: Update.
58466         * doc/functions/printf.texi: Update.
58467         * doc/functions/snprintf.texi: Update.
58468         * doc/functions/sprintf.texi: Update.
58469         * doc/functions/vfprintf.texi: Update.
58470         * doc/functions/vprintf.texi: Update.
58471         * doc/functions/vsnprintf.texi: Update.
58472         * doc/functions/vsprintf.texi: Update.
58473         Reported by Eric Blake.
58474
58475 2007-05-06  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58478         padding ourselves for the floating-point directives.
58479         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58482         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58483         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58490         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58491         * tests/test-snprintf-posix.h (test_function): Also check the width
58492         and some flags in the %f directive.
58493         * tests/test-sprintf-posix.h (test_function): Likewise.
58494         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58495         * tests/test-vasprintf-posix.c (test_function): Likewise.
58496         * doc/functions/fprintf.texi: Update.
58497         * doc/functions/printf.texi: Update.
58498         * doc/functions/snprintf.texi: Update.
58499         * doc/functions/sprintf.texi: Update.
58500         * doc/functions/vfprintf.texi: Update.
58501         * doc/functions/vprintf.texi: Update.
58502         * doc/functions/vsnprintf.texi: Update.
58503         * doc/functions/vsprintf.texi: Update.
58504
58505 2007-05-06  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58508         pass the ' flag character to sprintf or snprintf.
58509         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58512         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58513         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58515         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58518         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58520         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58521         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58522         flag.
58523         * tests/test-sprintf-posix.h (test_function): Likewise.
58524         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58525         * tests/test-vasprintf-posix.c (test_function): Likewise.
58526         * doc/functions/fprintf.texi: Update.
58527         * doc/functions/printf.texi: Update.
58528         * doc/functions/snprintf.texi: Update.
58529         * doc/functions/sprintf.texi: Update.
58530         * doc/functions/vfprintf.texi: Update.
58531         * doc/functions/vprintf.texi: Update.
58532         * doc/functions/vsnprintf.texi: Update.
58533         * doc/functions/vsprintf.texi: Update.
58534
58535 2007-05-01  Bruno Haible  <bruno@clisp.org>
58536
58537         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58538
58539 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58542         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58543
58544 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58545
58546         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58547         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58549
58550 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58551
58552         * lib/argp-help.c (struct hol_entry): New member `ord'.
58553         (HOL_ENTRY_PTRCMP): Use ord for comparison
58554         (hol_sort): Initialize ord.
58555
58556 2007-05-01  Bruno Haible  <bruno@clisp.org>
58557
58558         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58559         Reported by Eric Blake.
58560         * doc/gnulib.texi (Function Substitutes): Update.
58561
58562 2007-05-01  Bruno Haible  <bruno@clisp.org>
58563
58564         * doc/functions.texi: Remove file, now redundant through
58565         doc/functions/*.texi.
58566
58567 2007-05-01  Bruno Haible  <bruno@clisp.org>
58568
58569         * modules/argp (Depends-on): Add sleep.
58570
58571 2007-05-01  Bruno Haible  <bruno@clisp.org>
58572
58573         * modules/sleep-tests: New file.
58574         * tests/test-sleep.c: New file.
58575
58576         * modules/sleep: New file.
58577         * lib/sleep.c: New file.
58578         * m4/sleep.m4: New file.
58579         * lib/unistd_.h (sleep): New declaration.
58580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58581         HAVE_SLEEP.
58582         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58583         * doc/functions/sleep.texi: Document the sleep module.
58584
58585 2007-05-01  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/sigprocmask.h: Remove file.
58588         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58589         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58590         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58591         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58592         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58593         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58594         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58595         HAVE_SIGSET_T as a shell variable.
58596         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58597         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58598         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58599         (Depends-on): Add signal. Remove verify.
58600         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58601         (Include): Mention <signal.h> instead of sigprocmask.h.
58602         * NEWS: Mention the change.
58603         * lib/fatal-signal.c: Don't include sigprocmask.h.
58604
58605 2007-05-01  Bruno Haible  <bruno@clisp.org>
58606
58607         * modules/signal: New file.
58608         * lib/signal_.h: New file.
58609         * m4/signal_h.m4: New file.
58610
58611 2007-05-01  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58614         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58615         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58616         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58617
58618 2007-05-01  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58621         configure time.
58622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58623         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58624         * modules/sys_stat (Makefile.am): Substitute their values into
58625         sys/stat.h.
58626
58627 2007-05-01  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58630         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58631         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58632
58633 2007-05-01  Bruno Haible  <bruno@clisp.org>
58634
58635         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58636         'assert' module here.
58637
58638 2007-05-01  Bruno Haible  <bruno@clisp.org>
58639
58640         * doc/functions/*.texi: New files.
58641         * doc/functions/google-ranking.txt: New file.
58642         * doc/gnulib.texi (Function Substitutes): New chapter.
58643         (ctime, inet_ntoa): Remove sections.
58644         * doc/ctime.texi: Remove file.
58645         * doc/inet_ntoa.texi: Remove file.
58646         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58647         dependencies.
58648         (%.info): New rule, specifying a --reference-limit.
58649
58650 2007-05-01  Bruno Haible  <bruno@clisp.org>
58651
58652         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58653
58654 2007-05-01  Bruno Haible  <bruno@clisp.org>
58655
58656         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58657         the portability of 'mkdir' to mingw systems.
58658
58659 2007-05-01  Bruno Haible  <bruno@clisp.org>
58660
58661         * doc/headers/google-ranking.txt: New file.
58662
58663 2007-04-30  Eric Blake  <ebb9@byu.net>
58664
58665         Prefer fseeko to fseek.
58666         * modules/getpass (Depends-on): Add fseeko.
58667         * lib/getpass.c (getpass): Use fseeko, not fseek.
58668
58669 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58670
58671         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58672         assumes the sorting is stable, while most qsort implementations
58673         are not.  Use argument addresses to ensure they never compare as
58674         equal.
58675
58676         * tests/test-argp-2.sh (usage-indent test): Fix output
58677         (func_compare): Restore diff options
58678         * tests/test-argp.c: Restore #include "progname.h"
58679
58680 2007-04-29  Bruno Haible  <bruno@clisp.org>
58681
58682         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58684         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58685         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58686         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58687         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58688         (TESTS, check_PROGRAMS): Add test-snprintf.
58689         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58690         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58691         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58692         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58693         assertions that fail on HP-UX, OSF/1, or IRIX.
58694         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58695
58696 2007-04-29  Bruno Haible  <bruno@clisp.org>
58697
58698         * MODULES.html.sh (posix_functions): Remove 'contents'.
58699
58700 2007-04-29  Karl Berry  <karl@gnu.org>
58701
58702         * config/srclist.txt (gendocs_template_min): new entry.
58703
58704 2007-04-29  Bruno Haible  <bruno@clisp.org>
58705
58706         Work around fpurge bug on BSD systems.
58707         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58709         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58710         fpurge to rpl_fpurge if the system already has this function.
58711         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58712         the case where the system already has this function. Correct invariants
58713         on BSD systems.
58714         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58715         BSD systems.
58716
58717 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58718
58719         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58720         proposed by Sven Verdoolaege.
58721
58722         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58723         options.
58724         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58725         (usage and help tests): Update
58726
58727 2007-04-29  Bruno Haible  <bruno@clisp.org>
58728
58729         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58730         Print more information in case of failure. Disable a test on BeOS.
58731
58732 2007-04-29  Bruno Haible  <bruno@clisp.org>
58733
58734         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58735         This helps debugging on systems on which no gdb is available.
58736
58737 2007-04-29  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/freading.h: Improve comments.
58740         * lib/fwriting.h: Likewise.
58741         * tests/test-freading.c (main): Don't check freading immediately after
58742         repositioning. Needed for glibc.
58743
58744 2007-04-29  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/freading.c (freading): Trivial simplification.
58747
58748 2007-04-28  Bruno Haible  <bruno@clisp.org>
58749
58750         * tests/test-fwriting.c (main): Also test the interaction between
58751         fflush and fwriting.
58752         * modules/fwriting-tests (Depends-on): Add fflush.
58753
58754         * tests/test-freading.c (main): Also test the interaction between
58755         fflush and freading.
58756         * modules/freading-tests (Depends-on): Add fflush.
58757
58758 2007-04-28  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58761         fseeko and ftello.
58762         Suggested by Eric Blake.
58763
58764 2007-04-28  Jim Meyering  <jim@meyering.net>
58765
58766         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58767         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58768         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58769
58770 2007-04-27  Eric Blake  <ebb9@byu.net>
58771
58772         * doc/headers/assert.texi (assert.h): Document assert module use.
58773
58774 2007-04-27  Bruno Haible  <bruno@clisp.org>
58775
58776         * doc/headers/*.texi: New files.
58777         * doc/gnulib.texi (Header File Substitutes): New chapter.
58778         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58779         dependencies.
58780         (standards.info ,standards.html, standards.dvi): Update dependencies.
58781         (mostlyclean, clean): New targets.
58782
58783 2007-04-27  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58786         * modules/sysexits (Files, Makefile.am): Update.
58787
58788         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58789         * modules/sys_socket (Files, Makefile.am): Update.
58790
58791         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58792         * modules/sys_stat (Files, Makefile.am): Update.
58793
58794 2007-04-27  Eric Blake  <ebb9@byu.net>
58795
58796         * lib/freading.h: Improve comments.
58797         * lib/fwriting.h: Likewise.
58798         * lib/fflush.c: Likewise.
58799
58800         Fix closein for mingw.
58801         * modules/closein-tests: Add tests for closein.
58802         * tests/test-closein.c: New file.
58803         * tests/test-closein.sh: Likewise.
58804         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58805         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58806
58807 2007-04-27  Bruno Haible  <bruno@clisp.org>
58808
58809         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58810         version is < 6.
58811         * lib/math_.h [__DECC]: Likewise.
58812         * lib/stdio_.h [__DECC]: Likewise.
58813         * lib/stdlib_.h [__DECC]: Likewise.
58814         * lib/string_.h [__DECC]: Likewise.
58815         * lib/time_.h [__DECC]: Likewise.
58816         * lib/wchar_.h [__DECC]: Likewise.
58817         * lib/wctype_.h [__DECC]: Likewise.
58818
58819 2007-04-27  Bruno Haible  <bruno@clisp.org>
58820
58821         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58822
58823 2007-04-27  Bruno Haible  <bruno@clisp.org>
58824
58825         * lib/fflush.c: Add comments.
58826         * modules/fpurge-tests (Depends-on): Add fflush.
58827         * modules/freadable-tests (Depends-on): Likewise.
58828         * modules/fwritable-tests (Depends-on): Likewise.
58829
58830 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58831
58832         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58833         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58834         Report by Bruno Haible <bruno@clisp.org>.
58835
58836 2007-04-26  Eric Blake  <ebb9@byu.net>
58837
58838         Fix fflush on mingw.
58839         * modules/fflush (Depends-on): Add freading.
58840         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58841         but unread data.
58842
58843 2007-04-26  Eric Blake  <ebb9@byu.net>
58844         and Bruno Haible  <bruno@clisp.org>
58845
58846         Implement freading and fwriting.
58847         * lib/freading.c: New file.
58848         * lib/freading.h: Likewise.
58849         * m4/freading.m4: Likewise.
58850         * modules/freading: Likewise.
58851         * modules/freading-tests: Likewise.
58852         * tests/test-freading.c: Likewise.
58853         * lib/fwriting.c: New file.
58854         * lib/fwriting.h: Likewise.
58855         * m4/fwriting.m4: Likewise.
58856         * modules/fwriting: Likewise.
58857         * modules/fwriting-tests: Likewise.
58858         * tests/test-fwriting.c: Likewise.
58859         * MODULES.html.sh (File stream based Input/Output): Mention them.
58860
58861 2007-04-26  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58864         'long' when we assume it.
58865         Suggested by Eric Blake.
58866
58867 2007-04-26  Bruno Haible  <bruno@clisp.org>
58868
58869         Ensure fseeko, ftello are declared on glibc systems.
58870         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58871         * modules/fseeko (configure.ac-early): Likewise.
58872         * modules/ftello (configure.ac-early): Likewise.
58873         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58874         AC_FUNC_FSEEKO for this.
58875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58876         (gl_CHECK_FSEEKO): Remove macro.
58877
58878 2007-04-26  Bruno Haible  <bruno@clisp.org>
58879
58880         * tests/test-fflush.c (main): Also check the ftell result after
58881         fflush and fseek/fseeko.
58882         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58883         file descriptor position cache in the stream.
58884         * lib/fseeko.c (rpl_fseeko): Likewise.
58885
58886 2007-04-26  Bruno Haible  <bruno@clisp.org>
58887
58888         * modules/fflush-tests (Depends-on): Add fseeko.
58889
58890 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58891             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58892
58893         * lib/argz_.h: ensure error_t definition is obtained in same
58894         mechanism system argz.h would have.
58895         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58896         argz facilities are known bad.  Err on the side of caution if
58897         cross-compiling.
58898
58899 2007-04-25  Eric Blake  <ebb9@byu.net>
58900
58901         * lib/fpurge.c (includes): Use stdlib.h for free.
58902         * tests/test-fflush.c (main): Also test fflush-fseeko.
58903
58904 2007-04-25  Bruno Haible  <bruno@clisp.org>
58905
58906         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58907         * lib/fseeko.c: New file.
58908         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58909         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58910         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58911         gl_FUNC_FSEEKO.
58912         (gl_FUNC_FSEEKO): Invoke it.
58913         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58914         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58915         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58916
58917 2007-04-25  Bruno Haible  <bruno@clisp.org>
58918
58919         * modules/fflush (Depends-on): Add ftello.
58920
58921 2007-04-25  Bruno Haible  <bruno@clisp.org>
58922
58923         * modules/ftello-tests: New file.
58924         * tests/test-ftello.c: New file.
58925
58926         * modules/ftello: New file.
58927         * m4/ftello.m4: New file.
58928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58929         HAVE_FTELLO.
58930         * lib/stdio_.h (ftello): New declaration.
58931         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58932         HAVE_FTELLO.
58933
58934 2007-04-25  Bruno Haible  <bruno@clisp.org>
58935
58936         * modules/fseeko-tests: New file.
58937         * tests/test-fseeko.c: New file.
58938
58939         * modules/fseeko: New file.
58940         * m4/fseeko.m4: New file.
58941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58942         HAVE_FSEEKO.
58943         * lib/stdio_.h (fseeko): New declaration.
58944         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58945         HAVE_FSEEKO.
58946
58947 2007-04-25  Bruno Haible  <bruno@clisp.org>
58948
58949         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58950
58951 2007-04-25  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58954         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58955         * tests/test-unistd.c: Likewise.
58956         * tests/test-fcntl.c: Likewise.
58957
58958 2007-04-23  Eric Blake  <ebb9@byu.net>
58959
58960         * lib/fflush.c: Fix missing include.
58961         Reported by Bruno Haible.
58962
58963 2007-04-23  Bruno Haible  <bruno@clisp.org>
58964
58965         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58966         Reported by Eric Blake.
58967
58968 2007-04-23  Bruno Haible  <bruno@clisp.org>
58969
58970         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58971
58972 2007-04-23  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58975
58976 2007-04-23  Bruno Haible  <bruno@clisp.org>
58977
58978         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58979         Needed on HP-UX 11.
58980
58981 2007-04-16  Eric Blake  <ebb9@byu.net>
58982
58983         Make fflush rely on fpurge.
58984         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58985         open coding all variants.
58986         * modules/fflush (Depends-on): Add fpurge and unistd.
58987         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58988         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58989
58990         Fix --with-tests compilation on cygwin.
58991         * modules/argmatch-tests (Makefile.am): List gnulib library first
58992         in LDADD.
58993         * modules/argp-tests (Makefile.am): Likewise.
58994         * modules/array-list-tests (Makefile.am): Likewise.
58995         * modules/array-oset-tests (Makefile.am): Likewise.
58996         * modules/avltree-list-tests (Makefile.am): Likewise.
58997         * modules/avltree-oset-tests (Makefile.am): Likewise.
58998         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58999         * modules/carray-list-tests (Makefile.am): Likewise.
59000         * modules/dirname-tests (Makefile.am): Likewise.
59001         * modules/frexp-tests (Makefile.am): Likewise.
59002         * modules/isnanl-tests (Makefile.am): Likewise.
59003         * modules/linked-list-tests (Makefile.am): Likewise.
59004         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59005         * modules/lock-tests (Makefile.am): Likewise.
59006         * modules/rbtree-list-tests (Makefile.am): Likewise.
59007         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59008         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59009         * modules/tls-tests (Makefile.am): Likewise.
59010         * modules/tsearch-tests (Makefile.am): Likewise.
59011         * modules/xvasprintf-tests (Makefile.am): Likewise.
59012
59013         Fix fpurge for cygwin.
59014         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59015         value.
59016         * modules/fpurge-tests (Depends-on): Clean up trash.
59017
59018 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59019
59020         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59021
59022         * m4/autobuild.m4: Re-indent.
59023
59024 2007-04-13  Bruno Haible  <bruno@clisp.org>
59025
59026         * modules/fpurge-tests: New file.
59027         * tests/test-fpurge.c: New file.
59028
59029         * modules/fpurge: New file.
59030         * lib/fpurge.h: New file.
59031         * lib/fpurge.c: New file.
59032         * m4/fpurge.m4: New file.
59033
59034 2007-04-13  Bruno Haible  <bruno@clisp.org>
59035
59036         * modules/fbufmode-tests: New file.
59037         * tests/test-fbufmode.c: New file.
59038
59039         * modules/fbufmode: New file.
59040         * lib/fbufmode.h: New file.
59041         * lib/fbufmode.c: New file.
59042         * m4/fbufmode.m4: New file.
59043
59044 2007-04-13  Bruno Haible  <bruno@clisp.org>
59045
59046         * modules/fwritable-tests: New file.
59047         * tests/test-fwritable.c: New file.
59048
59049         * modules/fwritable: New file.
59050         * lib/fwritable.h: New file.
59051         * lib/fwritable.c: New file.
59052         * m4/fwritable.m4: New file.
59053
59054 2007-04-13  Bruno Haible  <bruno@clisp.org>
59055
59056         * modules/freadable-tests: New file.
59057         * tests/test-freadable.c: New file.
59058
59059         * modules/freadable: New file.
59060         * lib/freadable.h: New file.
59061         * lib/freadable.c: New file.
59062         * m4/freadable.m4: New file.
59063
59064 2007-04-13  Bruno Haible  <bruno@clisp.org>
59065
59066         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59067         MOSTLYCLEANFILES.
59068
59069 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59072         gzip bootstrap.conf to avoid dragging in i18n machinery.
59073         (gnulib_tool_option): Use it.
59074
59075 2007-04-13  Bruno Haible  <bruno@clisp.org>
59076
59077         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59078         %F directives.
59079         * tests/test-vasprintf-posix.c (test_function): Likewise.
59080         * tests/test-snprintf-posix.h (test_function): Likewise.
59081         * tests/test-sprintf-posix.h (test_function): Likewise.
59082         * tests/test-fprintf-posix.h (test_function): Likewise.
59083         * tests/test-printf-posix.h (test_function): Likewise.
59084         * tests/test-fprintf-posix.out: Likewise.
59085
59086 2007-04-13  Bruno Haible  <bruno@clisp.org>
59087
59088         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59089         * modules/tls-tests (configure.ac): Likewise.
59090         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59091
59092 2007-04-13  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/tls.c (glthread_tls_get): Fix return type.
59095         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59096
59097 2007-04-12  Eric Blake  <ebb9@byu.net>
59098
59099         * modules/gettime (Depends-on): Remove gettime.
59100         Reported by Dmitry V. Levin.
59101
59102 2007-04-12  Bruno Haible  <bruno@clisp.org>
59103
59104         * modules/fflush (Include): Mention <stdio.h>.
59105         * modules/strtoimax (Include): Mention <inttypes.h>.
59106         * modules/strtoumax (Include): Likewise.
59107
59108 2007-04-12  Eric Blake  <ebb9@byu.net>
59109
59110         * .cvsignore: New file.
59111         * .gitignore: Likewise.
59112
59113 2007-04-12  Bruno Haible  <bruno@clisp.org>
59114
59115         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59116         not before, since $(LDADD) often contains libgnu.a.
59117         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59118         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59119         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59120         Needed on Cygwin.
59121
59122 2007-04-12  Eric Blake  <ebb9@byu.net>
59123
59124         Work around glibc's failure to flush stdin on fclose.
59125         * lib/closein.c (close_stdin): Flush stdin before closing.
59126
59127         Work around glibc's failure to reset seekable stdin on exit.
59128         * modules/closein: New module.
59129         * lib/closein.c: New file.
59130         * lib/closein.h: Likewise.
59131         * m4/closein.m4: Likewise.
59132         * MODULES.html.sh (File stream based Input/Output): Document it.
59133
59134 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59135
59136         * gnulib-tool: Rename generated 'autobuild' script to
59137         'do-autobuild' in --create-megatestdir output.
59138
59139         * doc/gnulib.texi (Build robot for gnulib): Fix.
59140
59141 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59142
59143         * modules/sysexits (Depends-on): Add absolute-header.
59144
59145 2007-04-12  Eric Blake  <ebb9@byu.net>
59146
59147         No need to preserve errno on success.
59148         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59149         Reported by Bruno Haible.
59150
59151 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59152
59153         * MODULES.html.sh (Support for maintaining and releasing
59154         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59155
59156 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59157
59158         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59159
59160 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59161
59162         * modules/autobuild: New module.
59163
59164         * m4/autobuild.m4: New file.
59165
59166 2007-04-11  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59169         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59185         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59186         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59187         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59188         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59189         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59191         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59192         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59194         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59195         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59196         Reported by Eric Blake.
59197
59198 2007-04-11  Bruno Haible  <bruno@clisp.org>
59199
59200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59201
59202 2007-04-10  Bruno Haible  <bruno@clisp.org>
59203
59204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59205         for NaN and Infinity. Needed on FreeBSD 6.1.
59206         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59207         regarding results for "%010a" of Infinity and NaN.
59208         * tests/test-vasprintf-posix.c (test_function): Likewise.
59209         * tests/test-snprintf-posix.h (test_function): Likewise.
59210         * tests/test-sprintf-posix.h (test_function): Likewise.
59211         * tests/test-fprintf-posix.h (test_function): Likewise.
59212         * tests/test-printf-posix.h (test_function): Likewise.
59213         * tests/test-fprintf-posix.out: Likewise.
59214
59215 2007-04-10  Bruno Haible  <bruno@clisp.org>
59216
59217         * modules/locale-tests: New file.
59218         * tests/test-locale.c: New file.
59219
59220         * modules/locale: New file.
59221         * lib/locale_.h: New file.
59222         * m4/locale_h.m4: New file.
59223
59224 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59225             Bruno Haible  <bruno@clisp.org>
59226
59227         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59228         be determined, test for availability of the copysignf, copysign,
59229         copysignl functions.
59230         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59231         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59232         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59233
59234 2007-04-09  Eric Blake  <ebb9@byu.net>
59235
59236         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59237         * modules/stdio (Makefile.am): Support fflush.
59238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59239         * modules/fflush: New file.
59240         * lib/fflush.c: Likewise.
59241         * m4/fflush.m4: Likewise.
59242         * modules/fflush-tests: New test.
59243         * tests/test-fflush.c: Likewise.
59244         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59245
59246 2007-04-06  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59249         (VASNPRINTF): Use signbit for faster determination whether to print a
59250         minus sign.
59251         * modules/vasnprintf (Files): Remove lib/float+.h.
59252         * modules/fprintf-posix (Depends-on): Add signbit.
59253         * modules/snprintf-posix (Depends-on): Likewise.
59254         * modules/sprintf-posix (Depends-on): Likewise.
59255         * modules/vasnprintf-posix (Depends-on): Likewise.
59256         * modules/vasprintf-posix (Depends-on): Likewise.
59257         * modules/vfprintf-posix (Depends-on): Likewise.
59258         * modules/vsnprintf-posix (Depends-on): Likewise.
59259         * modules/vsprintf-posix (Depends-on): Likewise.
59260
59261 2007-04-06  Bruno Haible  <bruno@clisp.org>
59262
59263         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59264         * tests/test-frexpl.c (main): Likewise.
59265         * tests/test-ldexpl.c (main): Likewise.
59266         * modules/frexp-tests (Depends-on): Add signbit.
59267         * modules/frexpl-tests (Depdends-on): Likewise.
59268         * modules/ldexpl-tests (Depdends-on): Likewise.
59269
59270 2007-04-06  Bruno Haible  <bruno@clisp.org>
59271
59272         * modules/signbit-tests: New file.
59273         * tests/test-signbit.c: New file.
59274
59275         * modules/signbit: New file.
59276         * lib/signbitf.c: New file.
59277         * lib/signbitd.c: New file.
59278         * lib/signbitl.c: New file.
59279         * m4/signbit.m4: New file.
59280         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59281         (signbit): New macro.
59282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59283         REPLACE_SIGNBIT.
59284         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59285         REPLACE_FREXPL into math.h.
59286
59287 2007-04-06  Bruno Haible  <bruno@clisp.org>
59288
59289         * modules/isnanf-nolibm-tests: New file.
59290         * tests/test-isnanf.c: New file.
59291
59292         * modules/isnanf-nolibm: New file.
59293         * lib/isnanf.h: New file.
59294         * lib/isnanf.c: New file.
59295         * lib/isnan.c: Consider the USE_FLOAT macro.
59296         * m4/isnanf.m4: New file.
59297
59298 2007-04-06  Bruno Haible  <bruno@clisp.org>
59299
59300         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59301         (Link): New section.
59302
59303         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59304
59305 2007-04-06  Bruno Haible  <bruno@clisp.org>
59306
59307         Assume the 'long double' type.
59308         * m4/longdouble.m4: Remove file.
59309         * config/srclist.txt: Don't mention longdouble.m4.
59310         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59311         * lib/float+.h: Likewise.
59312         * lib/frexp.c: Likewise.
59313         * lib/printf-args.h: Likewise.
59314         * lib/printf-args.c: Likewise.
59315         * lib/printf-frexp.c: Likewise.
59316         * lib/printf-parse.c: Likewise.
59317         * lib/vasnprintf.c: Likewise.
59318         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59319         * m4/intl.m4: Likewise.
59320         * m4/isnanl.m4: Likewise.
59321         * m4/printf.m4: Likewise.
59322         * m4/printf-frexpl.m4: Likewise.
59323         * m4/vasnprintf.m4: Likewise.
59324         * modules/allocsa (Files): Remove m4/longdouble.m4.
59325         * modules/gettext (Files): Likewise.
59326         * modules/relocatable-prog-wrapper (Files): Likewise.
59327         * modules/vasnprintf (Files): Likewise.
59328         * modules/isnanl (Files): Likewise.
59329         (Include): Simplify.
59330         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59331         (Include): Simplify.
59332         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59333         (Include): Simplify.
59334         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59335         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59336         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59337         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59338         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59339         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59340         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59341         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59342         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59343         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59344         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59345         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59346         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59347         * tests/test-isnanl.c: Likewise.
59348         * tests/test-snprintf-posix.h: Likewise.
59349         * tests/test-sprintf-posix.h: Likewise.
59350         * tests/test-vasnprintf-posix.c: Likewise.
59351         * tests/test-vasnprintf-posix2.c: Likewise.
59352         * tests/test-vasprintf-posix.c: Likewise.
59353
59354 2007-04-06  Bruno Haible  <bruno@clisp.org>
59355
59356         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59357         * lib/math_.h [__DECC]: Include the overridden include file through
59358         #include_next, outside the double-inclusion guard.
59359         * lib/stdio_.h [__DECC]: Likewise.
59360         * lib/stdlib_.h [__DECC]: Likewise.
59361         * lib/string_.h [__DECC]: Likewise.
59362         * lib/time_.h [__DECC]: Likewise.
59363         * lib/wchar_.h [__DECC]: Likewise.
59364         * lib/wctype_.h [__DECC]: Likewise.
59365         * lib/inttypes_.h [__DECC]: Likewise.
59366         Reported by Albert Chin <china@thewrittenword.com> in
59367         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59368
59369 2007-04-04  Eric Blake  <ebb9@byu.net>
59370
59371         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59372         1.5.x.
59373
59374 2007-04-04  Bruno Haible  <bruno@clisp.org>
59375
59376         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59377         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59378
59379 2007-04-04  Bruno Haible  <bruno@clisp.org>
59380
59381         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59382         results for "%010a" of Infinity and NaN.
59383         * tests/test-vasprintf-posix.c (test_function): Likewise.
59384         * tests/test-snprintf-posix.h (test_function): Likewise.
59385         * tests/test-sprintf-posix.h (test_function): Likewise.
59386         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59387         * tests/test-printf-posix.h (test_function): Likewise.
59388         * tests/test-fprintf-posix.out: Update.
59389         Needed for FreeBSD 6.1.
59390
59391 2007-04-04  Bruno Haible  <bruno@clisp.org>
59392
59393         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59394         directly used by the gnulib modules nor by gnulib-tool.
59395
59396 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         * DEPENDENCIES: Give overall description of version dependency
59399         desirability.  Use more-typical names for apps.
59400         Add shell, coreutils, diffutils, grep, tar, gzip.
59401
59402 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59403
59404         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59405
59406 2007-04-04  Karl Berry  <karl@gnu.org>
59407
59408         * MODULES.html.sh (func_module): missing '.
59409
59410 2007-04-03  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/argmatch-tests (Makefile.am): New variable
59413         test_argmatch_LDADD.
59414         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59415         * modules/array-list-tests (Makefile.am): New variable
59416         test_array_list_LDADD.
59417         * modules/array-oset-tests (Makefile.am): New variable
59418         test_array_oset_LDADD.
59419         * modules/avltree-list-tests (Makefile.am): New variable
59420         test_avltree_list_LDADD.
59421         * modules/avltree-oset-tests (Makefile.am): New variable
59422         test_avltree_oset_LDADD.
59423         * modules/avltreehash-list-tests (Makefile.am): New variable
59424         test_avltreehash_list_LDADD.
59425         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59426         test_canonicalize_lgpl_LDADD.
59427         * modules/carray-list-tests (Makefile.am): New variable
59428         test_carray_list_LDADD.
59429         * modules/dirname-tests (Makefile.am): New variable
59430         test_dirname_LDADD.
59431         * modules/linked-list-tests (Makefile.am): New variable
59432         test_linked_list_LDADD.
59433         * modules/linkedhash-list-tests (Makefile.am): New variable
59434         test_linkedhash_list_LDADD.
59435         * modules/rbtree-list-tests (Makefile.am): New variable
59436         test_rbtree_list_LDADD.
59437         * modules/rbtree-oset-tests (Makefile.am): New variable
59438         test_rbtree_oset_LDADD.
59439         * modules/rbtreehash-list-tests (Makefile.am): New variable
59440         test_rbtreehash_list_LDADD.
59441         * modules/xvasprintf-tests (Makefile.am): New variable
59442         test_xvasprintf_LDADD.
59443         Reported by Eric Blake.
59444
59445 2007-04-03  Eric Blake  <ebb9@byu.net>
59446
59447         * DEPENDENCIES: Weaken m4 requirements.
59448
59449 2007-04-03  Bruno Haible  <bruno@clisp.org>
59450
59451         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59452         * modules/isnanl-tests (configure.ac): Likewise.
59453
59454 2007-04-03  Ben Pfaff  <blp@gnu.org>
59455
59456         * modules/iconv_open: Add $(srcdir)/ to source directory
59457         references in Makefile fragments that call gperf, to fix VPATH
59458         builds.
59459
59460 2007-04-03  Bruno Haible  <bruno@clisp.org>
59461
59462         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59463         * lib/ldexpl.c: Undo last change.
59464
59465 2007-04-03  Bruno Haible  <bruno@clisp.org>
59466
59467         * modules/printf-frexpl (Depends-on): Undo last change.
59468         (Files): Add m4/ldexpl.m4.
59469
59470 2007-04-03  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59473         * modules/isnanl (Link): New section.
59474
59475         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59476         * modules/frexp (Link): New section.
59477
59478         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59479         * modules/frexpl (Link): New section.
59480
59481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59482         * modules/ldexpl (Link): New section.
59483
59484 2007-04-03  Bruno Haible  <bruno@clisp.org>
59485
59486         * modules/TEMPLATE-EXTENDED: New file.
59487         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59488
59489 2007-04-03  Bruno Haible  <bruno@clisp.org>
59490
59491         * DEPENDENCIES: New file.
59492         Suggested by Simon Josefsson.
59493
59494 2007-04-03  Bruno Haible  <bruno@clisp.org>
59495
59496         * doc/gnulib.texi: Escape @.
59497
59498 2007-04-03  James Youngman  <jay@gnu.org>
59499         and Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59502         birthtime on all systems that have birthtime, not just those which
59503         use st_birthtimensec rather than st_birthtim.  Putting zero in
59504         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59505         that the birth time is not available for files on an NFS mount.
59506
59507 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59508
59509         * modules/memxor: Move back from crypto/, suggested by Bruno.
59510         * modules/crypto/hmac-sha1: Fix memxor dependency.
59511
59512         * modules/crypto/gc: Moved from ../.
59513
59514 2007-04-02  Eric Blake  <ebb9@byu.net>
59515
59516         * lib/ldexpl.c (includes): Avoid libm.
59517
59518         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59519
59520 2007-04-02  Bruno Haible  <bruno@clisp.org>
59521
59522         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59523         on IRIX.
59524
59525 2007-04-02  Bruno Haible  <bruno@clisp.org>
59526
59527         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59528         x86 or x86_64 platforms running MacOS X.
59529         Reported by Ryan Schmidt <@ryandesign.com>.
59530
59531 2007-04-02  Bruno Haible  <bruno@clisp.org>
59532
59533         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59534         i386.
59535
59536 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59537
59538         * modules/crypto/arcfour: Moved from ../.
59539         * modules/crypto/arcfour-tests: Moved from ../.
59540         * modules/crypto/arctwo: Moved from ../.
59541         * modules/crypto/arctwo-tests: Moved from ../.
59542         * modules/crypto/des: Moved from ../.
59543         * modules/crypto/des-tests: Moved from ../.
59544         * modules/crypto/gc-arcfour: Moved from ../.
59545         * modules/crypto/gc-arcfour-tests: Moved from ../.
59546         * modules/crypto/gc-arctwo: Moved from ../.
59547         * modules/crypto/gc-arctwo-tests: Moved from ../.
59548         * modules/crypto/gc-des: Moved from ../.
59549         * modules/crypto/gc-des-tests: Moved from ../.
59550         * modules/crypto/gc-hmac-md5: Moved from ../.
59551         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59552         * modules/crypto/gc-hmac-sha1: Moved from ../.
59553         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59554         * modules/crypto/gc-md2: Moved from ../.
59555         * modules/crypto/gc-md2-tests: Moved from ../.
59556         * modules/crypto/gc-md4: Moved from ../.
59557         * modules/crypto/gc-md4-tests: Moved from ../.
59558         * modules/crypto/gc-md5: Moved from ../.
59559         * modules/crypto/gc-md5-tests: Moved from ../.
59560         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59561         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59562         * modules/crypto/gc-random: Moved from ../.
59563         * modules/crypto/gc-rijndael: Moved from ../.
59564         * modules/crypto/gc-rijndael-tests: Moved from ../.
59565         * modules/crypto/gc-sha1: Moved from ../.
59566         * modules/crypto/gc-sha1-tests: Moved from ../.
59567         * modules/crypto/gc-tests: Moved from ../.
59568         * modules/crypto/hmac-md5: Moved from ../.
59569         * modules/crypto/hmac-md5-tests: Moved from ../.
59570         * modules/crypto/hmac-sha1: Moved from ../.
59571         * modules/crypto/hmac-sha1-tests: Moved from ../.
59572         * modules/crypto/md2: Moved from ../.
59573         * modules/crypto/md2-tests: Moved from ../.
59574         * modules/crypto/md4: Moved from ../.
59575         * modules/crypto/md4-tests: Moved from ../.
59576         * modules/crypto/md5: Moved from ../.
59577         * modules/crypto/md5-tests: Moved from ../.
59578         * modules/crypto/memxor: Moved from ../.
59579         * modules/crypto/rijndael: Moved from ../.
59580         * modules/crypto/rijndael-tests: Moved from ../.
59581         * modules/crypto/sha1: Moved from ../.
59582
59583 2007-03-30  James Youngman  <jay@gnu.org>
59584
59585         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59586         rename() to change the ctime of a file (because ctime is unaffected
59587         by rename on jfs2 on AIX 5.1).
59588         (main): Start by doing cleanup, in case a previous run failed leaving
59589         test files behind.
59590
59591 2007-03-31  Bruno Haible  <bruno@clisp.org>
59592
59593         Support old proprietary implementations of iconv.
59594         * modules/iconv_open: New file.
59595         * lib/iconv_.h: New file.
59596         * m4/iconv_h.m4: New file.
59597         * lib/iconv_open.c: New file.
59598         * lib/iconv_open-aix.gperf: New file.
59599         * lib/iconv_open-hpux.gperf: New file.
59600         * lib/iconv_open-irix.gperf: New file.
59601         * lib/iconv_open-osf.gperf: New file.
59602         * m4/iconv_open.m4: New file.
59603         * modules/linebreak (Depends-on): Add iconv_open.
59604         * modules/striconv (Depends-on): Likewise.
59605         * modules/striconveh (Depends-on): Likewise.
59606         * modules/unicodeio (Depends-on): Likewise.
59607         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59608         (iconv_t)(-1).
59609         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59610         conversion if cd is (iconv_t)(-1).
59611         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59612         is not possible.
59613
59614 2007-03-31  Bruno Haible  <bruno@clisp.org>
59615
59616         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59617         work on Solaris either. Protect also second use of "autodetect_jp".
59618
59619 2007-03-31  Bruno Haible  <bruno@clisp.org>
59620
59621         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59622         the function is not present.
59623
59624 2007-03-31  Bruno Haible  <bruno@clisp.org>
59625
59626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59627         the function is not present.
59628
59629 2007-03-31  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59632         a bug in HP-UX iconv_open().
59633
59634 2007-03-31  Bruno Haible  <bruno@clisp.org>
59635
59636         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59637         (Mathematics <math.h>): New section, add fpieee.
59638         (Input/output <stdio.h>): Add fseterr.
59639         (Mathematics <math.h>): New section, add printf-frexp.
59640         (Container data structures): Add sublist.
59641         (Core language properties): Add fpucw, inline.
59642         (Functions for greatest-width integer types <inttypes.h>): Add
59643         imaxabs, imaxdiv, inttypes.
59644         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59645         isnanl-nolibm, ldexp.
59646         (Mathematics <math.h>): New section, add printf-frexpl.
59647         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59648         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59649         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59650         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59651         (Unicode string functions): Add unistr/u*-mbtoucr.
59652         (Java): Add javacomp-script, javaexec-script.
59653         (C#): Add csharpcomp-script, csharpexec-script.
59654         (Support for building libraries and executables): Add havelib,
59655         relocatable-*.
59656         (Support for maintaining and releasing projects): Renamed from
59657         'Support for maintaining and release projects'. Add announce-gen.
59658
59659 2007-03-31  Bruno Haible  <bruno@clisp.org>
59660
59661         * README: Talk primarily about git.
59662         (git and CVS): Renamed from CVS.
59663         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59664         gnulib is available through git.
59665         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59666
59667 2007-03-30  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59670         * lib/poll_.h: Likewise.
59671         * lib/stat_.h: Likewise.
59672         * lib/sys_time_.h: Likewise.
59673         * lib/sysexit_.h: Likewise.
59674         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59675         * lib/stdbool_.h: Likewise.
59676         * lib/byteswap_.h: Add double-inclusion guard.
59677
59678 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59679
59680         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59681
59682 2007-03-30  Karl Berry  <karl@gnu.org>
59683
59684         * config/srclist-update: double space after USA in the license
59685         substitution, since that's how it's usually (?) written.
59686
59687 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59688
59689         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59690         reported by Bruno Haible.
59691
59692 2007-03-29  Bruno Haible  <bruno@clisp.org>
59693
59694         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59695         a bug in AIX iconv().
59696
59697 2007-03-29  Bruno Haible  <bruno@clisp.org>
59698
59699         * modules/ldexpl-tests: New file.
59700         * tests/test-ldexpl.c: New file.
59701
59702 2007-03-29  Bruno Haible  <bruno@clisp.org>
59703
59704         * lib/ldexpl.c: Include fpucw.h.
59705         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59706         multiplication.
59707         * modules/ldexpl (Depends-on): Add fpucw.
59708
59709 2007-03-29  Bruno Haible  <bruno@clisp.org>
59710
59711         * modules/ldexpl: New file.
59712         * m4/ldexpl.m4: New file.
59713         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59714         set.
59715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59716         REPLACE_LDEXPL.
59717         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59718         REPLACE_LDEXPL.
59719         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59720         gl_FUNC_LDEXPL_WORKS.
59721         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59722         * modules/mathl (Files): Remove lib/ldexpl.c.
59723         (Depends-on): Add ldexpl.
59724
59725 2007-03-29  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59728
59729 2007-03-29  Bruno Haible  <bruno@clisp.org>
59730
59731         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59732         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59733         and possibly also HP-UX.
59734         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59735         work on AIX, IRIX, HP-UX, OSF/1.
59736         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59737         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59738         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59739         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59740         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59741         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59742
59743 2007-03-29  Bruno Haible  <bruno@clisp.org>
59744
59745         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59746
59747 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59750         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59751
59752 2007-03-29  Eric Blake  <ebb9@byu.net>
59753
59754         * lib/acl-internal.h: Remove redundant include.
59755         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59756         Cygwin when a file is locked.
59757
59758 2007-03-29  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59761         file.
59762         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59763
59764 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59765
59766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59767         try to remove a parent directory if the child couldn't be removed
59768         (except for the first rmdir, which could fail because the child
59769         doesn't exist).  Problem reported by Jeff Blaine in
59770         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59771
59772 2007-03-28  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/striconveh.c (utf8conv_carefully): New function.
59775         (mem_cd_iconveh_internal): Invoke it.
59776
59777 2007-03-28  Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59780         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59781         input.
59782         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59783         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59784         unistr/u8-uctomb.
59785
59786 2007-03-28  Bruno Haible  <bruno@clisp.org>
59787
59788         * modules/unistr/u8-mbtoucr: New file.
59789         * lib/unistr/u8-mbtoucr.c: New file.
59790         * modules/unistr/u16-mbtoucr: New file.
59791         * lib/unistr/u16-mbtoucr.c: New file.
59792         * modules/unistr/u16-mbtoucr: New file.
59793         * lib/unistr/u16-mbtoucr.c: New file.
59794         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59795
59796 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59797             Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59800         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59801         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59802
59803         * m4/stdio_h.m4: Add stubs for vasprintf too.
59804
59805         * modules/stdio: Support vasprintf in sed command.
59806
59807         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59808         vasprintf.h.  Add stdio module indicator.
59809
59810         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59811         vasprintf.h.
59812
59813         * lib/vasprintf.h: File removed.
59814
59815         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59816         * lib/vasprintf.c: Ditto.
59817         * lib/xvasprintf.c: Ditto.
59818         * tests/test-vasprintf-posix.c: Ditto.
59819         * tests/test-vasprintf.c: Ditto.
59820
59821 2007-03-27  Bruno Haible  <bruno@clisp.org>
59822
59823         Make vasnprintf multithread-safe.
59824         * lib/vasnprintf.c (decimal_point_char): New function.
59825         (VASNPRINTF): Use it.
59826         Suggested by Simon Josefsson.
59827
59828 2007-03-27  Eric Blake  <ebb9@byu.net>
59829
59830         Support sub-second birthtime on cygwin.
59831         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59832         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59833         (get_stat_birthtime): Also work with st_birthtim.
59834
59835 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59836
59837         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59838         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59839         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59840         (get_stat_birthtime_ns): Simplify compile-time tests.
59841         (get_stat_birthtime): Change the API to look like
59842         get_stat_mtime etc., except return a negative tv_nsec on error.
59843         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59844         Don't check for "spare" fields.
59845         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59846         or for struct stat.st_birthtime, as these tests aren't used.
59847         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59848
59849 2007-03-27  Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/stat-time.h: Include <sys/stat.h>.
59852
59853 2007-03-27  James Youngman  <jay@gnu.org>
59854
59855         * lib/stat-time.h (get_stat_birthtime): New function for
59856           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59857         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59858           and its variants.
59859         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59860         * modules/stat-time-test: New file.
59861         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59862
59863 2007-03-26  Bruno Haible  <bruno@clisp.org>
59864
59865         Better support of signalling NaNs.
59866         * lib/atanl.c: Include isnanl.h.
59867         (atanl): Perform test for NaN at the beginning of the function and
59868         through a call to isnanl.
59869         * lib/cosl.c: Include isnanl.h.
59870         (cosl): Perform test for NaN at the beginning of the function and
59871         through a call to isnanl.
59872         * lib/ldexpl.c: Include isnanl.h.
59873         (ldexpl): Perform test for NaN through a call to isnanl.
59874         * lib/logl.c: Include isnanl.h.
59875         (logl): Perform test for NaN at the beginning of the function and
59876         through a call to isnanl.
59877         * lib/sinl.c: Include isnanl.h.
59878         (sinl): Perform test for NaN at the beginning of the function and
59879         through a call to isnanl.
59880         * lib/sqrtl.c: Include isnanl.h.
59881         (sqrtl): Perform test for NaN at the beginning of the function and
59882         through a call to isnanl.
59883         * lib/tanl.c: Include isnanl.h.
59884         (tanl): Perform test for NaN at the beginning of the function and
59885         through a call to isnanl.
59886         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59887         * modules/mathl (Depends-on): Add isnanl.
59888
59889 2007-03-26  Eric Blake  <ebb9@byu.net>
59890
59891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59892         regression in logic sense of previous patch.
59893
59894 2007-03-26  Bruno Haible  <bruno@clisp.org>
59895
59896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59897         unportable shell command "if ! ...".
59898         Reported by Ralf Wildenhues.
59899
59900 2007-03-25  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59903         <sysexits.h> file, and only add EX_CONFIG.
59904         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59905         absolute file name and whether it is sufficient. Substitute also
59906         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59907         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59908         ABSOLUTE_SYSEXITS_H into sysexits.h.
59909
59910 2007-03-25  Bruno Haible  <bruno@clisp.org>
59911
59912         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59913         hints is NULL.
59914
59915 2007-03-25  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59918         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59919
59920 2007-03-25  Bruno Haible  <bruno@clisp.org>
59921
59922         * lib/vasnprintf.c: Include langinfo.h.
59923         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59924         multithread-safe.
59925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59927         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59930         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59933         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59934         Reported by Simon Josefsson.
59935
59936 2007-03-25  Bruno Haible  <bruno@clisp.org>
59937
59938         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59939         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59940         * modules/vasnprintf (Depends-on): Add stdint.
59941
59942 2007-03-25  Bruno Haible  <bruno@clisp.org>
59943
59944         * modules/fpieee: New file.
59945         * m4/fpieee.m4: New file.
59946         * modules/isnan-nolibm (Depends-on): Add fpieee.
59947         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59948         * modules/isnanl (Depends-on): Add fpieee.
59949
59950 2007-03-25  Bruno Haible  <bruno@clisp.org>
59951
59952         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59953
59954 2007-03-25  Bruno Haible  <bruno@clisp.org>
59955
59956         Avoid test failures on IRIX 6.5.
59957         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59958         (main): Use it.
59959         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59960         macros.
59961         (main): Use them.
59962
59963 2007-03-25  Bruno Haible  <bruno@clisp.org>
59964
59965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59966         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59967         exists but doesn't work.
59968         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59969         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59971         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59972         math.h.
59973
59974 2007-03-25  Bruno Haible  <bruno@clisp.org>
59975
59976         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59977         returns inf. Needed on IRIX 6.5.
59978
59979 2007-03-25  Bruno Haible  <bruno@clisp.org>
59980
59981         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59982         (main): Use isnanl instead of x != x idiom.
59983         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59984
59985         * tests/test-frexp.c: Include isnan.h.
59986         (main): Use isnan instead of x != x idiom.
59987         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59988
59989 2007-03-25  Bruno Haible  <bruno@clisp.org>
59990
59991         * tests/test-frexp.c (NaN): New function/macro.
59992         (main): Use it instead of 0.0 / 0.0.
59993         * tests/test-isnan.c (NaN): New function/macro.
59994         (main): Use it instead of 0.0 / 0.0.
59995         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59996         (test_function): Use it instead of 0.0 / 0.0.
59997         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59998         (test_function): Use it instead of 0.0 / 0.0.
59999         * tests/test-snprintf-posix.h (NaN): New function/macro.
60000         (test_function): Use it instead of 0.0 / 0.0.
60001         * tests/test-sprintf-posix.h (NaN): New function/macro.
60002         (test_function): Use it instead of 0.0 / 0.0.
60003         * tests/test-fprintf-posix.h (NaN): New function/macro.
60004         (test_function): Use it instead of 0.0 / 0.0.
60005         * tests/test-printf-posix.h (NaN): New function/macro.
60006         (test_function): Use it instead of 0.0 / 0.0.
60007
60008         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60009
60010 2007-03-25  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60013
60014 2007-03-25  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/regexec.c (merge_state_with_log): Make static.
60017
60018 2007-03-25  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/trigl.c (kernel_rem_pio2): Make static.
60021
60022 2007-03-25  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/sincosl.c (sincosl_table): Make static.
60025
60026 2007-03-25  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60029         if the compiler does not support C99.
60030
60031 2007-03-25  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/time (Makefile.am): Ensure all rule action lines start with a
60034         tab.
60035
60036 2007-03-24  Bruno Haible  <bruno@clisp.org>
60037
60038         * modules/tsearch-tests: New file.
60039         * tests/test-tsearch.sh: New file.
60040         * tests/test-tsearch.c: New file, mostly copied from glibc.
60041
60042         * modules/search-tests: New file.
60043         * tests/test-search.c: New file.
60044
60045         * modules/search: New file.
60046         * lib/search_.h: New file, incorporating lib/tsearch.h.
60047         * m4/search_h.m4: New file.
60048         * lib/tsearch.h: Remove file.
60049         * lib/tsearch.c: Include search.h instead of tsearch.h.
60050         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60051         HAVE_TSEARCH.
60052         * modules/tsearch (Files): Remove lib/tsearch.h.
60053         (Depends-on): Add search.
60054         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60055         (Include): Change tsearch.h into search.h.
60056
60057 2007-03-24  Bruno Haible  <bruno@clisp.org>
60058
60059         * modules/fpucw: New file.
60060         * lib/fpucw.h: New file.
60061         * lib/frexp.c: Include fpucw.h.
60062         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60063         (FUNC): Use them.
60064         * lib/printf-frexp.c: Include fpucw.h.
60065         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60066         (FUNC): Use them.
60067         * lib/vasnprintf.c: Include fpucw.h.
60068         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60069         'long double' calculations.
60070         * tests/test-frexpl.c: Include fpucw.h.
60071         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60072         * tests/test-printf-frexpl.c: Include fpucw.h.
60073         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60074         * modules/frexpl (Depends-on): Add fpucw.
60075         * modules/printf-frexpl (Depends-on): Likewise.
60076         * modules/fprintf-posix (Depends-on): Likewise.
60077         * modules/snprintf-posix (Depends-on): Likewise.
60078         * modules/sprintf-posix (Depends-on): Likewise.
60079         * modules/vasnprintf-posix (Depends-on): Likewise.
60080         * modules/vasprintf-posix (Depends-on): Likewise.
60081         * modules/vfprintf-posix (Depends-on): Likewise.
60082         * modules/vsnprintf-posix (Depends-on): Likewise.
60083         * modules/vsprintf-posix (Depends-on): Likewise.
60084         * modules/frexpl-tests (Depends-on): Likewise.
60085         * modules/printf-frexpl-tests (Depends-on): Likewise.
60086
60087 2007-03-24  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/float+.h: New file.
60090         * lib/isnan.c: Include float+.h.
60091         (SIZE): New macro.
60092         (FUNC): Compare only SIZE bytes of the value.
60093         * lib/vasnprintf.c: Include float+.h.
60094         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60095         SIZEOF_LDBL or SIZEOF_DBL bytes.
60096         * modules/isnan-nolibm (Files): Add lib/float+.h.
60097         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60098         * modules/isnanl (Files): Add lib/float+.h.
60099         * modules/vasnprintf (Files): Add lib/float+.h.
60100
60101 2007-03-24  Bruno Haible  <bruno@clisp.org>
60102
60103         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60104         include isnanl-nolibm.h.
60105
60106 2007-03-24  Bruno Haible  <bruno@clisp.org>
60107
60108         * tests/test-read-file.c (main): Don't produce spurious output for
60109         expected situations. Make the test fail if it encountered unexpected
60110         results.
60111
60112 2007-03-24  Bruno Haible  <bruno@clisp.org>
60113
60114         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60115         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60116
60117 2007-03-24  Bruno Haible  <bruno@clisp.org>
60118
60119         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60120
60121 2007-03-24  Bruno Haible  <bruno@clisp.org>
60122
60123         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60124         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60125
60126         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60127         * modules/utf8-ucs4: Turn into a symbolic link to module
60128         unistr/u8-mbtouc.
60129
60130         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60131         utf8-ucs4-unsafe.
60132         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60133         unistr/u8-mbtouc-unsafe.
60134
60135         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60136         * modules/utf16-ucs4: Turn into a symbolic link to module
60137         unistr/u16-mbtouc.
60138
60139         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60140         utf16-ucs4-unsafe.
60141         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60142         unistr/u16-mbtouc-unsafe.
60143
60144         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60145         * modules/ucs4-utf8: Turn into a symbolic link to module
60146         unistr/u8-ubtomb.
60147
60148         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60149         * modules/ucs4-utf16: Turn into a symbolic link to module
60150         unistr/u16-ubtomb.
60151
60152 2007-03-24  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60155         Enable the function only if HAVE_INLINE.
60156         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60157         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60158         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60159         Enable the function only if HAVE_INLINE.
60160         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60161         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60162         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60163         Enable the function only if HAVE_INLINE.
60164         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60165         Enable the function only if HAVE_INLINE.
60166         * modules/utf8-ucs4: Update.
60167         * modules/utf8-ucs4-unsafe: Update.
60168         * modules/utf16-ucs4: Update.
60169         * modules/utf16-ucs4-unsafe: Update.
60170         * modules/ucs4-utf8: Update.
60171         * modules/ucs4-utf16: Update.
60172
60173 2007-03-24  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/utf8-ucs4.h: Remove file.
60176         * lib/utf8-ucs4-unsafe.h: Remove file.
60177         * lib/utf16-ucs4.h: Remove file.
60178         * lib/utf16-ucs4-unsafe.h: Remove file.
60179         * lib/ucs4-utf8.h: Remove file.
60180         * lib/ucs4-utf16.h: Remove file.
60181         * lib/unistr.h: Include their previous contents.
60182         * m4/utf-ucs4.m4: Remove file.
60183         * m4/ucs4-utf.m4: Remove file.
60184         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60185         (Depends-on): Add unistr/base.
60186         (configure.ac): Remove gl_UTF_UCS4.
60187         (Makefile.am): Update.
60188         (Include): Change to unistr.h.
60189         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60190         (Depends-on): Add unistr/base.
60191         (configure.ac): Remove gl_UTF_UCS4.
60192         (Makefile.am): Update.
60193         (Include): Change to unistr.h.
60194         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60195         (Depends-on): Add unistr/base.
60196         (configure.ac): Remove gl_UTF_UCS4.
60197         (Makefile.am): Update.
60198         (Include): Change to unistr.h.
60199         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60200         (Depends-on): Add unistr/base.
60201         (configure.ac): Remove gl_UTF_UCS4.
60202         (Makefile.am): Update.
60203         (Include): Change to unistr.h.
60204         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60205         (Depends-on): Add unistr/base.
60206         (configure.ac): Remove gl_UCS4_UTF.
60207         (Makefile.am): Update.
60208         (Include): Change to unistr.h.
60209         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60210         (Depends-on): Add unistr/base.
60211         (configure.ac): Remove gl_UCS4_UTF.
60212         (Makefile.am): Update.
60213         (Include): Change to unistr.h.
60214         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60215         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60216         utf8-ucs4-unsafe.h.
60217         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60218         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60219         utf16-ucs4-unsafe.h.
60220         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60221         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60222         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60223         * lib/unistr/u8-strchr.c: Likewise.
60224         * lib/unistr/u8-strrchr.c: Likewise.
60225         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60226         * lib/unistr/u16-strchr.c: Likewise.
60227         * lib/unistr/u16-strrchr.c: Likewise.
60228         * lib/striconveh.c: Update.
60229         * lib/linebreak.c: Update.
60230
60231 2007-03-24  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60234         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60235
60236 2007-03-22  Bruno Haible  <bruno@clisp.org>
60237
60238         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60239
60240 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         * MODULES.html.sh (File system functions): New module write-any-file.
60243         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60244         * m4/write-any-file.m4: New files.
60245
60246 2007-03-23  Eric Blake  <ebb9@byu.net>
60247
60248         * gnulib-tool: Rearrange space-tab sequences, since some editors
60249         like to eat them.
60250
60251 2007-03-23  Eric Blake  <ebb9@byu.net>
60252
60253         * lib/version-etc.c (version_etc_va): Update license wording to
60254         be more concise.  Recommended by Richard Stallman.
60255
60256 2007-03-22  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/poll.c (MSG_PEEK): New fallback definition.
60259
60260 2007-03-22  Bruno Haible  <bruno@clisp.org>
60261
60262         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60263         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60264         (main): Update.
60265         Fixes a compilation error on BeOS.
60266
60267 2007-03-22  Bruno Haible  <bruno@clisp.org>
60268
60269         * modules/frexpl-tests: New file.
60270         * tests/test-frexpl.c: New file.
60271
60272         * modules/frexpl: New file.
60273         * m4/frexpl.m4: New file.
60274         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60275         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60277         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60278         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60279         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60280
60281 2007-03-22  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/frexpl.c: Share code with lib/frexp.c.
60284         * modules/mathl (Files): Add lib/frexp.c.
60285         (Depends-on): Add isnanl-nolibm.
60286
60287 2007-03-22  Bruno Haible  <bruno@clisp.org>
60288
60289         * modules/printf-frexp (Files): Add m4/frexp.m4.
60290         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60291         only if the found frexp function actually works.
60292
60293 2007-03-22  Bruno Haible  <bruno@clisp.org>
60294
60295         * lib/frexp.c: Remove older implementation that uses divisions.
60296
60297 2007-03-21  Bruno Haible  <bruno@clisp.org>
60298
60299         * modules/frexp-tests: New file.
60300         * tests/test-frexp.c: New file.
60301
60302         * modules/frexp: New file.
60303         * lib/frexp.c: New file.
60304         * m4/frexp.m4: New file.
60305         * lib/math_.h (frexp): New declaration.
60306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60307         REPLACE_FREXP.
60308         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60309
60310 2007-03-21  Bruno Haible  <bruno@clisp.org>
60311
60312         * modules/isnanl-tests: New file.
60313         * tests/test-isnanl.c: New file.
60314
60315         * modules/isnanl: New file.
60316         * lib/isnanl.h: New file.
60317         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60318         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60319         gl_FUNC_ISNANL_WORKS.
60320         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60321         New macros.
60322
60323 2007-03-21  Bruno Haible  <bruno@clisp.org>
60324
60325         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60326         lib/isnanl.h.
60327         (Include): Update.
60328         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60329         * lib/vasnprintf.c: Update.
60330         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60331         tests/test-isnanl.h, remove tests/test-isnanl.c.
60332         (Makefile.am): Update.
60333         * tests/test-isnanl-nolibm.c: New file.
60334         * tests/test-isnanl.h: New file.
60335         * tests/test-isnanl.c: Remove file.
60336
60337 2007-03-21  Jim Meyering  <jim@meyering.net>
60338
60339         When trying to open ".", treat ESTALE like EACCES.
60340         * lib/savewd.c (savewd_save): Resort to forking not just upon
60341         failure with EACCES, but also when errno is ESTALE.
60342
60343 2007-03-20  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60346         Needed on AIX 5.1. Reported by Matthew Woehlke.
60347
60348 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         Suggestions by Bruno Haible:
60351         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60352         our own.
60353         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60354         * modules/acl (Depends-on): Add gettext.
60355
60356 2007-03-19  Bruno Haible  <bruno@clisp.org>
60357
60358         * modules/iconvme: Remove file.
60359         * lib/iconvme.h: Remove file.
60360         * lib/iconvme.c: Remove file.
60361         * m4/iconvme.m4: Remove file.
60362
60363 2007-03-19  Bruno Haible  <bruno@clisp.org>
60364
60365         * doc/relocatable-maint.texi: Break long shell script line.
60366         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60367
60368 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60371         handle file_has_acl.
60372         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60373         * lib/acl.c: Move header inclusions and related macro defns into
60374         lib/acl-internal.h.
60375         (S_ISLNK): Remove defn, since that's now done for us.
60376         (file_has_acl): Move to lib/file-has-acl.c.
60377         Call acl_trivial if available.  This is the crucial part of the fix.
60378         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60379         shared within the library.  Rewrite a bit, partly to make it compatible
60380         with the GNU coding style.
60381         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60382         Remove unnecessary double-quotes.
60383         Don't test for acl_to_text; the build will catch that.
60384         Replace acl_entries if it doesn't exist and it is needed.
60385         Check for -lsec and acl_trivial (as used on Solaris 10).
60386         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60387         lib/file-has-acl.c.
60388         (Depends-on): Add sys_stat, for S_ISLNK.
60389
60390 2007-03-19  Ben Pfaff  <blp@gnu.org>
60391
60392         * doc/gnulib.texi: Fix typos.
60393         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60394
60395 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60396
60397         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60398         If size is zero here, buf must be zero.
60399
60400 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60401
60402         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60403         <bruno@clisp.org>.
60404
60405 2007-03-18  Bruno Haible  <bruno@clisp.org>
60406
60407         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60408         Suggested by Eric Blake.
60409
60410 2007-03-18  Ben Pfaff  <blp@gnu.org>
60411
60412         * doc/relocatable.texi: Recommend using as prefix a directory
60413         that does not exist and will never be created.  Based on
60414         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60415         and others.
60416
60417 2007-03-17  Bruno Haible  <bruno@clisp.org>
60418
60419         * lib/fchownat.c: Include lchown.h.
60420
60421 2007-03-17  Bruno Haible  <bruno@clisp.org>
60422
60423         Fix endless loop when the given allocated size was > INT_MAX.
60424         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60425         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60426         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60427         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60428         * lib/sprintf.c (sprintf): Likewise.
60429
60430 2007-03-17  Bruno Haible  <bruno@clisp.org>
60431
60432         * tests/test-argp-2.sh (func_compare): Output a context diff.
60433
60434 2007-03-17  Bruno Haible  <bruno@clisp.org>
60435
60436         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60437         locale's decimal-point character.
60438
60439 2007-03-17  Bruno Haible  <bruno@clisp.org>
60440
60441         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60442         before comparing it. Needed because on some platforms (e.g. x86) a
60443         'long double' occupies less bytes than sizeof (long double).
60444
60445 2007-03-17  Bruno Haible  <bruno@clisp.org>
60446
60447         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60448         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60449         * tests/test-getaddrinfo.c (simple): Likewise.
60450         * tests/test-read-file.c (main): Likewise.
60451
60452 2007-03-17  Bruno Haible  <bruno@clisp.org>
60453
60454         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60455
60456 2007-03-17  Bruno Haible  <bruno@clisp.org>
60457
60458         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60459         unused variable.
60460
60461 2007-03-17  Bruno Haible  <bruno@clisp.org>
60462
60463         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60464         * tests/test-c-strncasecmp.c: Likewise.
60465
60466 2007-03-17  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/stdlib (Depends-on): Add unistd.
60469         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60470         Needed for MacOS X 10.3.
60471
60472 2007-03-17  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60475
60476 2007-03-17  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60479
60480 2007-03-17  Bruno Haible  <bruno@clisp.org>
60481
60482         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60483         to reflect files copied from gnulib (with or without modifications).
60484         Suggested by Jim Meyering.
60485
60486 2007-03-17  Eric Blake  <ebb9@byu.net>
60487
60488         * NEWS: Document stdlib change from 2007-02-18.
60489
60490 2007-03-17  Jim Meyering  <jim@meyering.net>
60491
60492         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60493         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60494         someone uses a name containing shell meta-characters.
60495         Reported by Alfred M. Szmidt.
60496
60497         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60498
60499 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60500
60501         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60502         and copy gettext configuration files only if configure.ac contains
60503         a use of AM_GNU_GETTEXT_VERSION.
60504
60505 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60506
60507         * build-aux/bootstrap (gnulib_name): New variable.
60508         (gnulib_tool_options): Use it.
60509
60510 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60511
60512         * tests/test-des.c: Use new namespace.
60513
60514 2007-03-15  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60517         Reported by James Youngman <jay@gnu.org>.
60518
60519 2007-03-15  Bruno Haible  <bruno@clisp.org>
60520
60521         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60522         declared prototype. Needed with cc on OSF/1 5.1.
60523
60524 2007-03-15  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60527         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60528         (struct gl_list_implementation): Add dispose_fn argument to the
60529         'create_empty', 'create' methods.
60530         (struct gl_list_impl_base): Add field 'dispose_fn'.
60531         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60532         argument.
60533         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60534         dispose_fn argument.
60535         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60536         dispose_fn on the dropped values.
60537         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60538         dispose_fn argument.
60539         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60540         dropped values.
60541         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60542         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60543         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60544         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60545         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60546         argument.
60547         (gl_tree_list_free): Call dispose_fn on the dropped values.
60548         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60549         the dropped values.
60550         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60551         Add dispose_fn argument.
60552         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60553         Call dispose_fn on the dropped values.
60554         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60555         Add dispose_fn argument.
60556         (gl_sublist_create): Initialize the 'dispose_fn' field.
60557         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60558         * tests/test-array_list.c (main): Update.
60559         * tests/test-carray_list.c (main): Update.
60560         * tests/test-avltree_list.c (main): Update.
60561         * tests/test-rbtree_list.c (main): Update.
60562         * tests/test-avltreehash_list.c (main): Update.
60563         * tests/test-rbtreehash_list.c (main): Update.
60564         * tests/test-linked_list.c (main): Update.
60565         * tests/test-linkedhash_list.c (main): Update.
60566         * tests/test-array_oset.c (main): Update.
60567
60568 2007-03-15  Bruno Haible  <bruno@clisp.org>
60569
60570         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60571         (gl_oset_create_empty): Add dispose_fn argument.
60572         (struct gl_oset_implementation): Add dispose_fn argument to
60573         'create_empty' method.
60574         (struct gl_oset_impl_base): Add dispose_fn field.
60575         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60576         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60577         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60578         values.
60579         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60580         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60581         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60582         dropped value.
60583         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60584         dropped value.
60585         * tests/test-array_oset.c (main): Update.
60586         * tests/test-avltree_oset.c (main): Update.
60587         * tests/test-rbtree_oset.c (main): Update.
60588         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60589
60590 2007-03-13  Bruno Haible  <bruno@clisp.org>
60591
60592         * tests/test-stdbool.c (i): Update after last patch.
60593
60594 2007-03-12  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60597         the iswprint macro. Needed on Solaris 2.5.1.
60598
60599 2007-03-12  Bruno Haible  <bruno@clisp.org>
60600
60601         * tests/test-printf-frexp.c (main): Declare x as volatile.
60602
60603 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60604
60605         * doc/gnulib.texi (Build robot for gnulib): New section.
60606
60607 2007-03-12  Jim Meyering  <jim@meyering.net>
60608
60609         * build-aux/bootstrap: New file.
60610         * build-aux/bootstrap.conf: New file, from coreutils.
60611
60612 2007-03-11  Bruno Haible  <bruno@clisp.org>
60613
60614         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60615
60616 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60617
60618         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60619         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60620         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60621
60622 2007-03-11  Bruno Haible  <bruno@clisp.org>
60623
60624         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60625         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60626
60627 2007-03-11  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60630         formula. Needed for SunPRO C 5.0.
60631
60632 2007-03-11  Bruno Haible  <bruno@clisp.org>
60633
60634         * modules/long-options (Depends-on): Add getopt.
60635
60636 2007-03-11  Bruno Haible  <bruno@clisp.org>
60637
60638         * modules/modechange (Depends-on): Add stdbool.
60639
60640 2007-03-11  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/i-ring (Depends-on): Add stdbool.
60643
60644 2007-03-11  Bruno Haible  <bruno@clisp.org>
60645
60646         * modules/gc-des (Depends-on): Add stdbool.
60647
60648 2007-03-11  Bruno Haible  <bruno@clisp.org>
60649
60650         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60651
60652 2007-03-11  Bruno Haible  <bruno@clisp.org>
60653
60654         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60655
60656 2007-03-11  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60659
60660 2007-03-11  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/vasnprintf.c (sprintf): Undefine.
60663
60664 2007-03-11  Bruno Haible  <bruno@clisp.org>
60665
60666         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60667         initializers in SunPRO C and Compaq C compilers.
60668
60669 2007-03-11  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60672         decrementing code ANSI C compliant.
60673
60674 2007-03-11  Bruno Haible  <bruno@clisp.org>
60675
60676         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60677         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60678
60679 2007-03-11  Bruno Haible  <bruno@clisp.org>
60680
60681         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60682         <stdbool.h> substitute doesn't pass.
60683
60684 2007-03-11  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60687
60688 2007-03-11  Bruno Haible  <bruno@clisp.org>
60689
60690         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60691         script, for submission to autobuild.josefsson.org.
60692
60693 2007-03-10  Bruno Haible  <bruno@clisp.org>
60694
60695         * modules/canonicalize-lgpl-tests: New file.
60696         * tests/test-canonicalize-lgpl.sh: New file.
60697         * tests/test-canonicalize-lgpl.c: New file.
60698
60699         * modules/c-strcase-tests: New file.
60700         * tests/test-c-strcase.sh: New file.
60701         * tests/test-c-strcasecmp.c: New file.
60702         * tests/test-c-strncasecmp.c: New file.
60703
60704         * modules/atexit-tests: New file.
60705         * tests/test-atexit.sh: New file.
60706         * tests/test-atexit.c: New file.
60707
60708 2007-03-10  Bruno Haible  <bruno@clisp.org>
60709
60710         * tests/test-binary-io.sh: Use temporary filenames that are not so
60711         likely to clash with those of other tests (in a parallel make).
60712         * tests/test-binary-io.c: Likewise.
60713
60714 2007-03-10  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60717         fallback; use #error instead.
60718         Suggested by Simon Josefsson.
60719
60720 2007-03-10  Bruno Haible  <bruno@clisp.org>
60721
60722         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60723         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60724         first and the last.
60725
60726 2007-03-10  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60729
60730 2007-03-10  Bruno Haible  <bruno@clisp.org>
60731
60732         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60733         "make distcheck".
60734         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60735         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60736         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60737
60738 2007-03-10  Bruno Haible  <bruno@clisp.org>
60739
60740         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60741         variable.
60742         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60743         variable.
60744
60745 2007-03-09  Eric Blake  <ebb9@byu.net>
60746         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60747
60748         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60749         types are not being provided by gnulib.
60750         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60751         types are supported.
60752
60753 2007-03-10  Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/stdio_.h (__attribute__): New macro.
60756         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60757         vsprintf): Specify __attribute__ __format__ for GCC.
60758         Suggested by Eric Blake.
60759
60760 2007-03-09  Bruno Haible  <bruno@clisp.org>
60761
60762         * modules/printf-posix-tests: New file.
60763         * tests/test-printf-posix.sh: New file.
60764         * tests/test-printf-posix.c: New file.
60765
60766         * modules/printf-posix: New file.
60767         * lib/printf.c: New file.
60768         * m4/printf-posix-rpl.m4: New file.
60769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60770         REPLACE_PRINTF.
60771         * lib/stdio_.h (printf): New declaration.
60772         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60773         ____strfmon____): New macros.
60774         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60775         REPLACE_PRINTF.
60776
60777 2007-03-09  Bruno Haible  <bruno@clisp.org>
60778
60779         * tests/test-vasnprintf-posix2.sh: New file.
60780         * tests/test-vasnprintf-posix2.c: New file.
60781         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60782         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60783         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60784
60785         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60786         a locale dependent decimal point, rather than always '.'.
60787
60788 2007-03-09  Eric Blake  <ebb9@byu.net>
60789
60790         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60791         spite of platforms like Tandem/NSK that define it to -1.
60792
60793 2007-03-08  Bruno Haible  <bruno@clisp.org>
60794
60795         * modules/vprintf-posix-tests: New file.
60796         * tests/test-vprintf-posix.sh: New file.
60797         * tests/test-vprintf-posix.c: New file.
60798         * tests/test-printf-posix.h: New file.
60799
60800         * modules/vprintf-posix: New file.
60801         * lib/vprintf.c: New file.
60802         * m4/vprintf-posix.m4: New file.
60803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60804         REPLACE_VPRINTF.
60805         * lib/stdio_.h (vprintf): New declaration.
60806         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60807         REPLACE_VPRINTF.
60808
60809 2007-03-08  Bruno Haible  <bruno@clisp.org>
60810
60811         * modules/fprintf-posix-tests: New file.
60812         * tests/test-fprintf-posix.sh: New file.
60813         * tests/test-fprintf-posix.c: New file.
60814
60815         * modules/fprintf-posix: New file.
60816         * lib/fprintf.c: New file.
60817         * m4/fprintf-posix.m4: New file.
60818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60819         REPLACE_FPRINTF.
60820         * lib/stdio_.h (fprintf): New declaration.
60821         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60822         REPLACE_FPRINTF.
60823
60824 2007-03-08  Bruno Haible  <bruno@clisp.org>
60825
60826         * modules/vfprintf-posix-tests: New file.
60827         * tests/test-vfprintf-posix.sh: New file.
60828         * tests/test-vfprintf-posix.c: New file.
60829         * tests/test-fprintf-posix.h: New file.
60830         * tests/test-fprintf-posix.out: New file.
60831
60832         * modules/vfprintf-posix: New file.
60833         * lib/vfprintf.c: New file.
60834         * m4/vfprintf-posix.m4: New file.
60835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60836         REPLACE_VFPRINTF.
60837         * lib/stdio_.h (vfprintf): New declaration.
60838         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60839         REPLACE_VFPRINTF.
60840
60841 2007-03-08  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60844
60845 2007-03-08  Bruno Haible  <bruno@clisp.org>
60846
60847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60848         instead of 'expr' invocations.
60849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60854         Suggested by Paul Eggert.
60855
60856 2007-03-08  Bruno Haible  <bruno@clisp.org>
60857
60858         * modules/fseterr-tests: New file.
60859         * tests/test-fseterr.c: New file.
60860
60861         * modules/fseterr: New file.
60862         * lib/fseterr.h: New file.
60863         * lib/fseterr.c: New file.
60864
60865 2007-03-08  Bruno Haible  <bruno@clisp.org>
60866
60867         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60868         * lib/getopt_.h: Likewise.
60869         * lib/mbswidth.h: Likewise.
60870         * lib/setenv.h: Likewise.
60871         * lib/vasnprintf.h: Likewise.
60872         * lib/vasprintf.h: Likewise.
60873         * lib/verror.h: Likewise.
60874         * lib/xsetenv.h: Likewise.
60875         * lib/xvasprintf.h: Likewise.
60876
60877 2007-03-08  Jim Meyering  <jim@meyering.net>
60878
60879         * users.txt: Add parted.
60880
60881         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60882
60883 2007-03-07  Bruno Haible  <bruno@clisp.org>
60884
60885         * m4/printf.m4: Make the shell script snippets copy&pastable.
60886
60887 2007-03-02  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/netinet_in_.h: New file.
60890         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60891         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60892         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60893         (Depends-on): Add absolute-header.
60894         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60895         into netinet/in.h.
60896
60897 2007-03-03  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/sys_select_.h: New file.
60900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60901         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60902         * modules/sys_select (Files): Add lib/sys_select_.h.
60903         (Depends-on): Add absolute-header.
60904         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60905         into sys/select.h.
60906
60907 2007-03-02  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60910         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60911         values.
60912         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60913         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60914         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60915         * modules/sys_socket (Depends-on): Add absolute-header.
60916         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60917         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60918         (Include): Remove requirement of inclusion of <sys/types.h>.
60919
60920 2007-03-02  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/byteswap_.h (bswap_32): Fix formula.
60923
60924 2007-03-06  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/sprintf-posix-tests: New file.
60927         * tests/test-sprintf-posix.c: New file.
60928
60929         * modules/sprintf-posix: New file.
60930         * lib/sprintf.c: New file.
60931         * m4/sprintf-posix.m4: New file.
60932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60933         REPLACE_SPRINTF.
60934         * lib/stdio_.h (sprintf): New declaration.
60935         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60936         REPLACE_SPRINTF.
60937
60938 2007-03-06  Bruno Haible  <bruno@clisp.org>
60939
60940         * modules/vsprintf-posix-tests: New file.
60941         * tests/test-vsprintf-posix.c: New file.
60942         * tests/test-sprintf-posix.h: New file.
60943
60944         * modules/vsprintf-posix: New file.
60945         * lib/vsprintf.c: New file.
60946         * m4/vsprintf-posix.m4: New file.
60947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60948         REPLACE_VSPRINTF.
60949         * lib/stdio_.h (vsprintf): New declaration.
60950         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60951         REPLACE_VSPRINTF.
60952
60953 2007-03-06  Bruno Haible  <bruno@clisp.org>
60954
60955         * modules/vsnprintf (Depend-on): Remove minmax.
60956
60957 2007-03-06  Bruno Haible  <bruno@clisp.org>
60958
60959         * modules/snprintf-posix-tests: New file.
60960         * tests/test-snprintf-posix.c: New file.
60961
60962         * modules/snprintf-posix: New file.
60963         * m4/snprintf-posix.m4: New file.
60964         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60965         gl_FUNC_SNPRINTF.
60966         (gl_FUNC_SNPRINTF): Invoke it.
60967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60968         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60969         is set.
60970         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60971
60972 2007-03-06  Bruno Haible  <bruno@clisp.org>
60973
60974         * modules/vsnprintf-posix-tests: New file.
60975         * tests/test-vsnprintf-posix.c: New file.
60976         * tests/test-snprintf-posix.h: New file.
60977
60978         * modules/vsnprintf-posix: New file.
60979         * m4/vsnprintf-posix.m4: New file.
60980         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60981         gl_FUNC_VSNPRINTF.
60982         (gl_FUNC_VSNPRINTF): Invoke it.
60983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60984         * lib/stdio_.h (vsnprintf): Define as a replacement if
60985         REPLACE_VSNPRINTF is set.
60986         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60987
60988 2007-03-06  Bruno Haible  <bruno@clisp.org>
60989
60990         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60992
60993 2007-03-06  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60996         (asinl): Declare also if HAVE_DECL_ASINL is set.
60997         (atanl): Declare also if HAVE_DECL_ATANL is set.
60998         (ceill): Declare also if HAVE_DECL_CEILL is set.
60999         (cosl): Declare also if HAVE_DECL_COSL is set.
61000         (expl): Declare also if HAVE_DECL_EXPL is set.
61001         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61002         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61003         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61004         (logl): Declare also if HAVE_DECL_LOGL is set.
61005         (sinl): Declare also if HAVE_DECL_SINL is set.
61006         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61007         (tanl): Declare also if HAVE_DECL_TANL is set.
61008         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61010         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61011         declaration of frexpl, ldexpl.
61012         * modules/printf-frexpl (Depends-on): Add math.
61013         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61014
61015 2007-03-05  Bruno Haible  <bruno@clisp.org>
61016
61017         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61018         frexpl and ldexpl are declared.
61019         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61020
61021 2007-03-05  Bruno Haible  <bruno@clisp.org>
61022
61023         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61024         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61025
61026 2007-03-05  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/stdio_.h: Include <stddef.h>.
61029
61030 2007-03-05  Bruno Haible  <bruno@clisp.org>
61031
61032         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61033
61034 2007-03-05  Bruno Haible  <bruno@clisp.org>
61035
61036         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61037         NetBSD 4, from Ralf Wildenhues.
61038
61039 2007-03-04  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/vasprintf.h: Update #if logic for the case when the functions
61042         exist but are overridden.
61043
61044 2007-03-04  Bruno Haible  <bruno@clisp.org>
61045
61046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61047         implementations: glibc-2.4 and MacOS X 10.3.
61048         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61049         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61050         * tests/test-vasprintf-posix.c (test_function): Likewise.
61051
61052 2007-03-04  Bruno Haible  <bruno@clisp.org>
61053
61054         * modules/vasprintf-posix-tests: New file.
61055         * tests/test-vasprintf-posix.c: New file.
61056
61057         * modules/vasprintf-posix: New file.
61058         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61059         defined.
61060         * m4/vasprintf-posix.m4: New file.
61061         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61062         gl_FUNC_VASPRINTF.
61063         (gl_FUNC_VASPRINTF): Invoke it.
61064         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61065         here.
61066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61067
61068 2007-03-04  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61071         REPLACE_GETTIMEOFDAY.
61072         * modules/sys_time (Makefile.am): Likewise.
61073         * m4/sys_time_h.m4: Likewise.
61074         * m4/gettimeofday.m4: Likewise.
61075
61076 2007-03-04  Bruno Haible  <bruno@clisp.org>
61077
61078         * modules/vasnprintf-posix-tests: New file.
61079         * tests/test-vasnprintf-posix.c: New file.
61080
61081         * modules/vasnprintf-posix: New file.
61082         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61083         printf-frexpl.h.
61084         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61085         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61086         REPLACE_VASNPRINTF is defined.
61087         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61088         gl_FUNC_VASNPRINTF.
61089         (gl_FUNC_VASNPRINTF): Invoke it.
61090         * m4/vasnprintf-posix.m4: New file.
61091         * m4/printf.m4: New file.
61092
61093 2007-03-04  Bruno Haible  <bruno@clisp.org>
61094
61095         Compile progreloc.c only if --enable-relocatable is specified.
61096         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61097         if --enable-relocatable was specified.
61098         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61099         lib_SOURCES.
61100
61101 2007-03-04  Jim Meyering  <jim@meyering.net>
61102
61103         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61104         Use it consistently, rather than enumerating errno constants.
61105
61106 2007-03-04  Bruno Haible  <bruno@clisp.org>
61107
61108         * modules/xvasprintf-tests: New file.
61109         * tests/test-xvasprintf.c: New file.
61110
61111         * modules/vasprintf-tests: New file.
61112         * tests/test-vasprintf.c: New file.
61113
61114         * modules/vasnprintf-tests: New file.
61115         * tests/test-vasnprintf.c: New file.
61116
61117         * modules/vsnprintf-tests: New file.
61118         * tests/test-vsnprintf.c: New file.
61119
61120         * modules/snprintf-tests: New file.
61121         * tests/test-snprintf.c: New file.
61122
61123 2007-03-04  Bruno Haible  <bruno@clisp.org>
61124
61125         Compile relocatable.c only if --enable-relocatable is specified.
61126         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61127         gl_RELOCATABLE_LIBRARY.
61128         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61129         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61130         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61131         gl_RELOCATABLE_LIBRARY.
61132         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61133         (Makefile.am): Remove lib_SOURCES.
61134         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61135         gl_RELOCATABLE_LIBRARY.
61136         (Makefile.am): Remove lib_SOURCES.
61137         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61138         always.
61139         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61140         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61141
61142 2007-03-04  Bruno Haible  <bruno@clisp.org>
61143
61144         * modules/argmatch-tests: New file.
61145         * tests/test-argmatch.c: New file.
61146
61147         * tests/test-allocsa.c (main): Halve the number of loop runs.
61148
61149         * modules/alloca-opt-tests: New file.
61150         * tests/test-alloca-opt.c: New file.
61151
61152 2007-03-04  Jim Meyering  <jim@meyering.net>
61153
61154         Work around difference between Linux ACLs and Solaris 10 ZFS.
61155         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61156         for EINVAL.
61157
61158 2007-03-03  Bruno Haible  <bruno@clisp.org>
61159
61160         * modules/relocatable-prog (Depends-on): Add back progreloc's
61161         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61162
61163 2007-03-03  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61166         * modules/relocatable-lib: New file.
61167
61168 2007-03-03  Bruno Haible  <bruno@clisp.org>
61169
61170         * modules/relocatable-prog: Renamed from modules/relocatable.
61171         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61172
61173 2007-03-03  Bruno Haible  <bruno@clisp.org>
61174
61175         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61176         m4/relocatable-lib.m4.
61177         (Depends-on): Remove 'relocatable'.
61178         (configure.ac): Add gl_RELOCATABLE_NOP.
61179
61180 2007-03-03  Bruno Haible  <bruno@clisp.org>
61181
61182         * modules/relocatable-prog-wrapper: New file.
61183         * modules/relocatable (Depends-on): Add it. Remove all other
61184         dependencies except progname.
61185         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61186
61187         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61188         (gl_FUNC_STRERROR): Nop.
61189         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61190
61191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61192         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61193
61194         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61195         (gl_FUNC_READLINK): Update.
61196
61197         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61198
61199 2007-03-03  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61202         * modules/xreadlink (Depends-on): Add unistd.
61203         * modules/xreadlink-with-size (Depends-on): Likewise.
61204
61205 2007-03-03  Bruno Haible  <bruno@clisp.org>
61206
61207         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61208         extracted from gt_FUNC_SETENV.
61209         (gt_FUNC_SETENV): Remove macro.
61210         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61211         remove gt_FUNC_SETENV.
61212
61213 2007-03-03  Bruno Haible  <bruno@clisp.org>
61214
61215         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61216         ENABLE_RELOCATABLE here.
61217         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61218
61219 2007-03-03  Bruno Haible  <bruno@clisp.org>
61220
61221         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61222         * tests/test-rbtreehash_list.c: Include progname.h.
61223         (main): Call set_program_name.
61224
61225         * modules/rbtree-oset-tests (Depends-on): Add progname.
61226         * tests/test-rbtree_oset.c: Include progname.h.
61227         (main): Call set_program_name.
61228
61229         * modules/rbtree-list-tests (Depends-on): Add progname.
61230         * tests/test-rbtree_list.c: Include progname.h.
61231         (main): Call set_program_name.
61232
61233         * modules/linked-list-tests (Depends-on): Add progname.
61234         * tests/test-linked_list.c: Include progname.h.
61235         (main): Call set_program_name.
61236
61237 2007-03-03  Bruno Haible  <bruno@clisp.org>
61238
61239         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61240         All uses of __restrict changed to _Restrict_.
61241         * lib/glob_.h (__restrict): Remove macro.
61242
61243 2007-03-02  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/gettext (configure.ac): Require gettext infrastructure
61246         from version 0.16.1.
61247
61248 2007-03-02  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/linkedhash-list-tests (Depends-on): Add progname.
61251         * tests/test-linkedhash_list.c: Include progname.h.
61252         (main): Call set_program_name.
61253
61254         * modules/carray-list-tests (Depends-on): Add progname.
61255         * tests/test-carray_list.c: Include progname.h.
61256         (main): Call set_program_name.
61257
61258         * modules/avltreehash-list-tests (Depends-on): Add progname.
61259         * tests/test-avltreehash_list.c: Include progname.h.
61260         (main): Call set_program_name.
61261
61262         * modules/avltree-oset-tests (Depends-on): Add progname.
61263         * tests/test-avltree_oset.c: Include progname.h.
61264         (main): Call set_program_name.
61265
61266         * modules/avltree-list-tests (Depends-on): Add progname.
61267         * tests/test-avltree_list.c: Include progname.h.
61268         (main): Call set_program_name.
61269
61270         * modules/array-oset-tests (Depends-on): Add progname.
61271         * tests/test-array_oset.c: Include progname.h.
61272         (main): Call set_program_name.
61273
61274         * modules/array-list-tests (Depends-on): Add progname.
61275         * tests/test-array_list.c: Include progname.h.
61276         (main): Call set_program_name.
61277
61278         * modules/argp-tests (Depends-on): Add progname.
61279         * tests/test-argp.c: Include argp.h first. Include progname.h.
61280         (main): Call set_program_name.
61281
61282 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * doc/gnulib-tool.texi (Initial import): Reword description of
61285         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61286         limited effect even if defined after the first system include.
61287
61288 2007-03-01  Bruno Haible  <bruno@clisp.org>
61289
61290         * build-aux/config.libpath: Update to libtool-1.5.22.
61291         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61292
61293 2007-03-01  Bruno Haible  <bruno@clisp.org>
61294
61295         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61296         foo_CFLAGS.
61297         Reported by Ralf Wildenhues.
61298
61299 2007-03-01  Bruno Haible  <bruno@clisp.org>
61300
61301         * build-aux/install-reloc: Remove object files left over by some
61302         compilers.
61303         Reported by Ralf Wildenhues.
61304
61305 2007-03-01  Bruno Haible  <bruno@clisp.org>
61306
61307         * build-aux/install-reloc: Break long lines.
61308
61309 2007-03-01  Bruno Haible  <bruno@clisp.org>
61310
61311         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61312         Reported by Ralf Wildenhues.
61313
61314 2007-03-01  Bruno Haible  <bruno@clisp.org>
61315
61316         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61317         include ordering constraints.
61318
61319 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61320
61321         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61323         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61324         as another example.
61325         * lib/time_.h: Fix misspelling.
61326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61327         Require gl_HEADER_TIME_H_DEFAULTS.
61328         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61329         * m4/time_r.m4 (gl_TIME_R): Likewise.
61330         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61331
61332 2007-03-01  Bruno Haible  <bruno@clisp.org>
61333
61334         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61335         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61336
61337 2007-03-01  Jim Meyering  <jim@meyering.net>
61338
61339         * modules/xreadlink (Maintainer): Add my name.
61340         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61341
61342 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61343             Bruno Haible  <bruno@clisp.org>
61344
61345         * build-aux/install-reloc: Compile also c-ctype.c.
61346         * build-aux/relocatable.sh.in: New file.
61347         * doc/relocatable.texi: New file.
61348         * doc/relocatable-maint.texi: New file.
61349         * doc/gnulib.texi: Include relocatable-maint.texi.
61350         * lib/progreloc.c: Include unistd.h unconditionally.
61351         * lib/relocwrapper.c: Include unistd.h unconditionally.
61352         Include c-ctype.h.
61353         (add_dotbin): Use c_tolower.
61354         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61355         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61356         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61357         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61358         to m4/relocatable-lib.m4.
61359         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61360         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61361         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61362         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61363         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61364         * modules/relocatable: New file.
61365         * modules/relocatable-lib: New file.
61366         * modules/relocatable-script: New file.
61367
61368 2007-02-28  Bruno Haible  <bruno@clisp.org>
61369
61370         Import --enable-relocatable infrastructure.
61371         * build-aux/config.libpath: New file, from GNU gettext.
61372         * build-aux/install-reloc: New file, from GNU gettext.
61373         * build-aux/reloc-ldflags: New file, from GNU gettext.
61374         * lib/relocatable.h: New file, from GNU gettext.
61375         * lib/relocatable.c: New file, from GNU gettext.
61376         * lib/relocwrapper.c: New file, from GNU gettext.
61377         * m4/relocatable.m4: New file, from GNU gettext.
61378
61379 2007-02-28  Bruno Haible  <bruno@clisp.org>
61380
61381         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61382
61383         * modules/xreadlink: New file, from GNU gettext with modifications.
61384         * lib/xreadlink.c: New file, from GNU gettext.
61385         * lib/xreadlink.h: Add comments.
61386         (xreadlink): New declaration.
61387
61388         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61389         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61390         lib/xreadlink-with-size.c.
61391         (configure.ac): Remove gl_XREADLINK invocation.
61392         (Makefile.am): Augment lib_SOURCES.
61393         * m4/xreadlink.m4: Remove file.
61394         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61395         (xreadlink_with_size): Renamed from xreadink.
61396         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61397         * modules/canonicalize (Depends-on): Replace xreadlink with
61398         xreadlink-with-size.
61399         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61400
61401 2007-02-25  Jim Meyering  <jim@meyering.net>
61402
61403         * build-aux/announce-gen: When complaining about excess arguments,
61404         list them.
61405
61406 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61407
61408         * README: Document signed integer overflow situation more
61409         accurately.
61410
61411 2007-02-25  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61414         'a' or 'A' conversion.
61415
61416 2007-02-25  Bruno Haible  <bruno@clisp.org>
61417
61418         * modules/filename: Renamed from modules/pathname.
61419         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61420         lib/concatpath.c with lib/concat-filename.c.
61421         (Makefile.am): Update.
61422         (Include): Replace pathname.h with filename.h.
61423         * lib/filename.h: Renamed from lib/pathname.h.
61424         (concatenated_filename): Renamed from concatenated_pathname.
61425         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61426         (concatenated_filename): Renamed from concatenated_pathname.
61427         * lib/findprog.c: Include filename.h instead of pathname.h.
61428         (find_in_path): Update.
61429         * lib/javacomp.c: Include filename.h instead of pathname.h.
61430         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61431         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61432         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61433         is_oldgcj_14_13_usable, is_javac_usable): Update.
61434         * lib/javaexec.c: Include filename.h instead of pathname.h.
61435         (execute_java_class): Update.
61436         * modules/findprog: Update.
61437         * modules/javacomp: Update.
61438         * modules/javaexec: Update.
61439         * MODULES.html.sh (File system functions): Add 'filename', remove
61440         'pathname'.
61441
61442 2007-02-25  Bruno Haible  <bruno@clisp.org>
61443
61444         * modules/printf-frexpl-tests: New file.
61445         * tests/test-printf-frexpl.c: New file.
61446
61447         * modules/printf-frexpl: New file.
61448         * lib/printf-frexpl.h: New file.
61449         * lib/printf-frexpl.c: New file.
61450         * m4/printf-frexpl.m4: New file.
61451
61452 2007-02-25  Bruno Haible  <bruno@clisp.org>
61453
61454         * modules/printf-frexp-tests: New file.
61455         * tests/test-printf-frexp.c: New file.
61456
61457         * modules/printf-frexp: New file.
61458         * lib/printf-frexp.h: New file.
61459         * lib/printf-frexp.c: New file.
61460         * m4/printf-frexp.m4: New file.
61461
61462 2007-02-25  Bruno Haible  <bruno@clisp.org>
61463
61464         Assume automake >= 1.10 for the tests.
61465         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61466         * modules/arctwo-tests: Likewise.
61467         * modules/argp-tests: Likewise.
61468         * modules/avltree-list-tests: Likewise.
61469         * modules/avltree-oset-tests: Likewise.
61470         * modules/avltreehash-list-tests: Likewise.
61471         * modules/carray-list-tests: Likewise.
61472         * modules/crc-tests: Likewise.
61473         * modules/des-tests: Likewise.
61474         * modules/gc-arcfour-tests: Likewise.
61475         * modules/gc-arctwo-tests: Likewise.
61476         * modules/gc-des-tests: Likewise.
61477         * modules/gc-hmac-md5-tests: Likewise.
61478         * modules/gc-hmac-sha1-tests: Likewise.
61479         * modules/gc-md2-tests: Likewise.
61480         * modules/gc-md4-tests: Likewise.
61481         * modules/gc-md5-tests: Likewise.
61482         * modules/gc-pbkdf2-sha1-tests: Likewise.
61483         * modules/gc-rijndael-tests: Likewise.
61484         * modules/gc-sha1-tests: Likewise.
61485         * modules/gc-tests: Likewise.
61486         * modules/getaddrinfo-tests: Likewise.
61487         * modules/hmac-md5-tests: Likewise.
61488         * modules/hmac-sha1-tests: Likewise.
61489         * modules/linked-list-tests: Likewise.
61490         * modules/linkedhash-list-tests: Likewise.
61491         * modules/lock-tests: Likewise.
61492         * modules/md2-tests: Likewise.
61493         * modules/md4-tests: Likewise.
61494         * modules/md5-tests: Likewise.
61495         * modules/rbtree-list-tests: Likewise.
61496         * modules/rbtree-oset-tests: Likewise.
61497         * modules/rbtreehash-list-tests: Likewise.
61498         * modules/read-file-tests: Likewise.
61499         * modules/rijndael-tests: Likewise.
61500         * modules/stdint-tests: Likewise.
61501         * modules/tls-tests: Likewise.
61502
61503 2007-02-24  Bruno Haible  <bruno@clisp.org>
61504
61505         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61506         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61507         function; instead check whether isnan with a double argument links.
61508         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61509         function; instead check whether isnan with a 'long double' argument
61510         links.
61511         Reported by Eric Blake <ebb9@byu.net>.
61512
61513 2007-02-24  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61516         defined.
61517         * lib/isnanl.c: Remove all code. Just include isnan.c.
61518         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61519
61520 2007-02-25  Jim Meyering  <jim@meyering.net>
61521
61522         Avoid conflicting types for 'unsetenv' on FreeBSD.
61523         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61524         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61525         in stdlib.h.
61526
61527 2007-02-24  Bruno Haible  <bruno@clisp.org>
61528
61529         * modules/isnanl-nolibm-tests: New file.
61530         * tests/test-isnanl.c: New file.
61531
61532         * modules/isnanl-nolibm: New file.
61533         * lib/isnanl.h: New file.
61534         * lib/isnanl.c: New file.
61535         * m4/isnanl.m4: New file.
61536
61537 2007-02-24  Bruno Haible  <bruno@clisp.org>
61538
61539         * modules/isnan-nolibm-tests: New file.
61540         * tests/test-isnan.c: New file.
61541
61542         * modules/isnan-nolibm: New file.
61543         * lib/isnan.h: New file.
61544         * lib/isnan.c: New file.
61545         * m4/isnan.m4: New file.
61546
61547 2007-02-24  Bruno Haible  <bruno@clisp.org>
61548
61549         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61550         assume that an exponent fits in 20 bits.
61551
61552 2007-02-24  Jim Meyering  <jim@meyering.net>
61553
61554         * m4/regex.m4: Update the description of the configure-time option,
61555         --without-included-regex, to state accurately what the defaults are,
61556         and perhaps to give people an idea why using this option is risky.
61557
61558 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61559
61560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61561         loops on small arguments.  This attempts to avoid the problem
61562         Bruno Haible reported for AIX 4.3.2 in
61563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61564
61565 2007-02-23  Bruno Haible  <bruno@clisp.org>
61566
61567         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61568         Needed for help2man.
61569
61570 2007-02-23  Karl Berry  <karl@gnu.org>
61571
61572         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61573         exists, foo.h should be cvs-ignored, not committed.
61574
61575 2007-02-23  Eric Blake  <ebb9@byu.net>
61576
61577         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61578         * lib/stat-time.h (includes): Likewise.
61579         * lib/utimecmp.c (includes): Likewise.
61580         * lib/utimens.h (includes): Likewise.
61581         * lib/getdate.y (includes): Also include "timespec.h" for use
61582         internal to the module.
61583         * modules/utimens (Depends-on): Revert yesterday's patch.
61584         * modules/nanosleep (Depends-on): Add missing dependency.
61585
61586 2007-02-22  Bruno Haible  <bruno@clisp.org>
61587
61588         * lib/glob.c: Don't include getlogin_r.h.
61589
61590 2007-02-22  Jim Meyering  <jim@meyering.net>
61591
61592         * modules/utimens (Depends-on): Add timespec, required for
61593         utimens.h's inclusion of timespec.h.
61594
61595 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61598         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61599         Schwab in
61600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61601         I'll try to think of a better way to fix the Solaris problem.
61602
61603         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61604         like glibc; on Solaris 10, it fails with errno == EINVAL.
61605         POSIX says the behavior is unspecified if the first argument is NULL,
61606         so play it safe and never pass NULL to the system getcwd.
61607
61608 2007-02-21  Jim Meyering  <jim@meyering.net>
61609
61610         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61611         of gettimeofday.  It would conflict with the one now always
61612         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61613         an IRIX 6.5 build failure.
61614
61615 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61616
61617         Minor fixups to port to Solaris 10 with Sun C 5.8.
61618         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61619         * modules/getcwd (Depends-on): Add dirfd.
61620         * lib/putenv.c (putenv): #undef it.
61621         (rpl_putenv): New decl.
61622         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61623
61624 2007-02-20  Bruno Haible  <bruno@clisp.org>
61625
61626         * modules/stdio-tests: New file.
61627         * tests/test-stdio.c: New file.
61628
61629         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61630         (Depends-on): Add stdio.
61631         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61632         (Include): Use <stdio.h> instead of vsnprintf.h.
61633         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61634         HAVE_DECL_VSNPRINTF.
61635         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61636
61637         * modules/snprintf (Files): Remove lib/snprintf.h.
61638         (Depends-on): Add stdio.
61639         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61640         (Include): Use <stdio.h> instead of snprintf.h.
61641         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61642         HAVE_DECL_SNPRINTF.
61643         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61644         * lib/getaddrinfo.c: Likewise.
61645
61646         * modules/stdio: New file.
61647         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61648         * lib/snprintf.h: Remove file.
61649         * lib/vsnprintf.h: Remove file.
61650         * lib/.cppi-disable: Remove snprintf.h.
61651         * m4/stdio_h.m4: New file.
61652         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61653
61654 2007-02-20  Jim Meyering  <jim@meyering.net>
61655
61656         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61657         used by e.g., mingw.  From Bruno Haible.
61658
61659 2007-02-19  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61662         warnings.
61663         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61664
61665 2007-02-19  Bruno Haible  <bruno@clisp.org>
61666
61667         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61668         from mingw users.
61669
61670 2007-02-19  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61673         warnings.
61674         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61675
61676 2007-02-19  Jim Meyering  <jim@meyering.net>
61677
61678         Don't use FD after a successful "fdopendir (fd)".
61679         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61680         Reset it by calling dirfd on the just-obtained DIR*.
61681
61682         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61683         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61684
61685 2007-02-18  Bruno Haible  <bruno@clisp.org>
61686
61687         * lib/readlink.c: Include <unistd.h>.
61688         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61689         HAVE_READLINK.
61690         * modules/readlink (Depends-on): Add unistd.
61691         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61692         (Include): Add <unistd.h>.
61693
61694         * lib/getlogin_r.h: Remove file.
61695         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61696         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61697         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61698         HAVE_DECL_GETLOGIN_R.
61699         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61701         (Include): Use <unistd.h> instead of getlogin_r.h.
61702
61703         * lib/getcwd.h: Remove file.
61704         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61705         * lib/xgetcwd.c: Likewise.
61706         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61707         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61708         * modules/getcwd (Files): Remove lib/getcwd.h.
61709         (Depends-on): Add unistd.
61710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61711         (Include): Use <unistd.h> instad of getcwd.h.
61712
61713         * lib/ftruncate.c: Include <unistd.h> first.
61714         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61715         Set HAVE_FTRUNCATE.
61716         * modules/ftruncate (Depends-on): Add unistd.
61717         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61718
61719         * lib/fchdir.c: Include <unistd.h> first.
61720         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61722         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61723         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61724         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61725
61726         * lib/dup2.c: Include <unistd.h> first.
61727         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61728         HAVE_DUP2.
61729         * modules/dup2 (Depends-on): Add unistd.
61730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61731
61732         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61733         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61734         REPLACE_CHOWN. Don't define chown as a macro here.
61735         * modules/chown (Depends-on): Add unistd.
61736         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61737
61738         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61739         Add definition for GL_LINK_WARNING.
61740         (chown, dup2): New declarations.
61741         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61742         link warning.
61743         (ftruncate): New declaration.
61744         (getcwd): New declaration, taken from old getcwd.h.
61745         (getlogin_r): New declaration, taken from old getlogin_r.h.
61746         (readlink): New declaration.
61747         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61748         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61749         (gl_PREREQ_UNISTD): Remove macro.
61750         (gl_UNISTD_MODULE_INDICATOR): New macro.
61751         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61752         many new variables. Don't set UNISTD_H.
61753         * modules/unistd (Description): Change.
61754         (Depends-on): Add link-warning.
61755         (configure.ac): Update.
61756         (Makefile.am): Create unistd.h always. Substitute many new variables
61757         into it.
61758
61759 2007-02-18  Bruno Haible  <bruno@clisp.org>
61760
61761         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61762         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61763         HAVE_GETSUBOPT.
61764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61765         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61766         * lib/getsubopt.h: Remove file.
61767         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61768         (Depends-on): Add stdlib.
61769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61770         (Includes): Use <stdlib.h> instead of getsubopt.h.
61771         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61772         Set HAVE_GETSUBOPT.
61773         * lib/getsubopt.c: Don't include getsubopt.h.
61774
61775 2007-02-18  Bruno Haible  <bruno@clisp.org>
61776
61777         * modules/fchdir (Depends-on): Add dup2.
61778
61779 2007-02-18  Bruno Haible  <bruno@clisp.org>
61780
61781         * lib/stdlib_.h: Handle glibc's special invocation convention
61782         specially.
61783
61784 2007-02-18  Bruno Haible  <bruno@clisp.org>
61785
61786         * modules/stdlib-tests: New file.
61787         * tests/test-stdlib.c: New file.
61788
61789         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61790         (Depends-on): Add stdlib.
61791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61792         (Includes): Use <stdlib.h> instead of mkstemp.h.
61793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61794         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61795         * lib/mkstemp.c: Don't include mkstemp.h.
61796         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61797         * lib/stdlib--.h: Don't include mkstemp.h.
61798
61799         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61800         (Depends-on): Add stdlib.
61801         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61802         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61803         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61804         HAVE_MKDTEMP.
61805         * lib/mkdtemp.c: Don't include mkdtemp.h.
61806         * lib/clean-temp.c: Don't include mkdtemp.h.
61807
61808         * modules/exit (Files): Remove lib/exit.h.
61809         (Depends-on): Add stdlib.
61810         (Makefile.am): Remove lib_SOURCES.
61811         (Include): Use <stdlib.h> instead of exit.h.
61812         * lib/argmatch.c: Don't include exit.h.
61813         * lib/execute.c: Likewise.
61814         * lib/pagealign_alloc.c: Likewise.
61815         * lib/pipe.c: Likewise.
61816         * lib/wait-process.c: Likewise.
61817         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61818         * lib/exitfail.c: Likewise.
61819         * lib/savewd.c: Likewise.
61820         * lib/xsetenv.c: Likewise.
61821
61822         * modules/stdlib: New file.
61823         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61824         and extra comments about mkstemp().
61825         * lib/exit.h: Remove file.
61826         * lib/mkdtemp.h: Remove file.
61827         * lib/mkstemp.h: Remove file.
61828         * m4/stdlib_h.m4: New file.
61829         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61830
61831 2007-02-18  Bruno Haible  <bruno@clisp.org>
61832
61833         * modules/math-tests: New file.
61834         * tests/test-math.c: New file.
61835
61836         * modules/math: New file.
61837         * modules/mathl (Files): Remove lib/mathl.h.
61838         (Depends-on): Add math.
61839         (Makefile.am): Don't mention mathl.h.
61840         (Include): Use <math.h> instead of mathl.h.
61841         * lib/math_.h: New file.
61842         * lib/mathl.h: Remove file.
61843         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61844         mathl.h.
61845         * lib/asinl.c: Likewise.
61846         * lib/atanl.c: Likewise.
61847         * lib/ceill.c: Likewise.
61848         * lib/cosl.c: Likewise.
61849         * lib/expl.c: Likewise.
61850         * lib/floorl.c: Likewise.
61851         * lib/frexpl.c: Likewise.
61852         * lib/ldexpl.c: Likewise.
61853         * lib/logl.c: Likewise.
61854         * lib/sincosl.c: Likewise.
61855         * lib/sinl.c: Likewise.
61856         * lib/sqrtl.c: Likewise.
61857         * lib/tanl.c: Likewise.
61858         * lib/trigl.c: Likewise.
61859         * m4/math_h.m4: New file.
61860         * MODULES.html.sh (Mathematics): Add math.
61861
61862 2007-02-17  Bruno Haible  <bruno@clisp.org>
61863
61864         * modules/wctype-tests: New file.
61865         * tests/test-wctype.c: New file.
61866
61867         * modules/wchar-tests: New file.
61868         * tests/test-wchar.c: New file.
61869
61870         * modules/unistd-tests: New file.
61871         * tests/test-unistd.c: New file.
61872
61873         * modules/time-tests: New file.
61874         * tests/test-time.c: New file.
61875
61876         * modules/sysexits-tests: New file.
61877         * tests/test-sysexits.c: New file.
61878
61879         * modules/sys_time-tests: New file.
61880         * tests/test-sys_time.c: New file.
61881
61882         * modules/sys_stat-tests: New file.
61883         * tests/test-sys_stat.c: New file.
61884
61885         * modules/sys_socket-tests: New file.
61886         * tests/test-sys_socket.c: New file.
61887
61888         * modules/sys_select-tests: New file.
61889         * tests/test-sys_select.c: New file.
61890
61891         * modules/string-tests: New file.
61892         * tests/test-string.c: New file.
61893
61894         * modules/stdbool-tests: New file.
61895         * tests/test-stdbool.c: New file.
61896
61897         * modules/netinet_in-tests: New file.
61898         * tests/test-netinet_in.c: New file.
61899
61900         * modules/inttypes-tests: New file.
61901         * tests/test-inttypes.c: New file.
61902
61903         * modules/fcntl-tests: New file.
61904         * tests/test-fcntl.c: New file.
61905
61906         * modules/byteswap-tests: New file.
61907         * tests/test-byteswap.c: New file.
61908
61909         * modules/arpa_inet-tests: New file.
61910         * tests/test-arpa_inet.c: New file.
61911
61912 2007-02-17  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61915         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61916         if the corresponding module is not enabled. Emit link warnings if
61917         the function is used nevertheless.
61918         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61919         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61920         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61921         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61922         * modules/inttypes (Depends-on): Add link-warning.
61923         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61924         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61925         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61926         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61927         * modules/imaxdiv (configure.ac): Likewise.
61928         * modules/strtoimax (configure.ac): Likewise.
61929         * modules/strtoumax (configure.ac): Likewise.
61930
61931 2007-02-17  Bruno Haible  <bruno@clisp.org>
61932
61933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61934         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61935         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61936         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61937
61938 2007-02-17  Bruno Haible  <bruno@clisp.org>
61939
61940         * modules/link-warning: New file.
61941         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61942         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61943         * modules/string (Depends-on): Add link-warning.
61944         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61945         string.h.
61946         * MODULES.html.sh (Support for building libraries and executables): Add
61947         link-warning.
61948
61949 2007-02-17  Bruno Haible  <bruno@clisp.org>
61950
61951         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61952         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61953         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61954         long lines.
61955
61956 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61957             Bruno Haible  <bruno@clisp.org>
61958
61959         * modules/tmpfile: New file.
61960         * lib/tmpfile.c: New file.
61961         * m4/tmpfile.m4: New file.
61962         * MODULES.html.sh (func_all_modules): New section "Input/output".
61963
61964 2007-02-15  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61967         (supports_delete_on_close): New function.
61968         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61969
61970 2007-02-14  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/mbspcasecmp-tests: New file.
61973         * tests/test-mbspcasecmp.sh: New file.
61974         * tests/test-mbspcasecmp.c: New file.
61975
61976         New module mbspcasecmp.
61977         * modules/mbspcasecmp: New file.
61978         * lib/mbspcasecmp.c: New file.
61979         * lib/string_.h (strncasecmp): Change warning message.
61980         (mbspcasecmp): New declaration.
61981         * m4/mbspcasecmp.m4: New file.
61982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61983         GNULIB_MBSPCASECMP.
61984         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61985         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61986
61987 2007-02-14  Bruno Haible  <bruno@clisp.org>
61988
61989         * modules/mbsncasecmp-tests: New file.
61990         * tests/test-mbsncasecmp.sh: New file.
61991         * tests/test-mbsncasecmp.c: New file.
61992
61993         New module mbsncasecmp.
61994         * modules/mbsncasecmp: New file.
61995         * lib/mbsncasecmp.c: New file.
61996         * lib/string_.h (mbsncasecmp): New declaration.
61997         * m4/mbsncasecmp.m4: New file.
61998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61999         GNULIB_MBSNCASECMP.
62000         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62001         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62002
62003 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62004
62005         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62006         Verify that it doesn't overlap with our flags.
62007         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62008         do not have the desired effect in multibyte locales; instead, use
62009         mbscasecmp.
62010         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62011         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62012         we don't require GNU fnmatch ourselves (if our users require it, they
62013         should do so explicitly).
62014
62015         Fix regex code so it doesn't rely on strcasecmp.
62016         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62017         Otherwise, include gnulib's langinfo.h.
62018         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62019         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62020         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62021         * modules/regex (FILES): Remove m4/codeset.m4.
62022         (Depends-on): Add localcharset.  Remove strcase.
62023
62024 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62025
62026         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62027         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62028
62029 2007-02-13  Bruno Haible  <bruno@clisp.org>
62030
62031         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62032         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62033
62034 2007-02-12  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62037         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62038         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62039         time warning rather than a link error.
62040
62041 2007-02-12  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62044         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62046
62047 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62050         args, not 2.
62051
62052 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         New module 'time', so that apps can include <time.h> as per
62055         POSIX and GNU instead of separate include files like time_r.h
62056         and timegm.h.  This implementation tries out a simpler approach
62057         for replacing decls in standard include files (as compared to
62058         the string module), somewhat as an experiment.
62059
62060         * config/srclist.txt: Comment out mktime.c for now.
62061         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62062         since it doesn't apply any more.  Use generic wording instead.
62063         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62064         'time'.
62065         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62066         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62067         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62068         Don't include <sys/types.h>; no longer needed since we assume C89.
62069         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62070         * lib/strftime.c: Likewise.
62071         * lib/time_r.c: Likewise.
62072         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62073         * lib/nanosleep.c: Include <time.h> first, to check interface.
62074         * lib/strptime.c: Likewise.
62075         * lib/time_r.c: Likewise.
62076         * lib/timegm.c: Likewise.
62077         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62078         needed.
62079         * lib/timegm.c: Don't include timegm.h; no longer needed.
62080         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62081         time.h now handles any problems in that area.
62082         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62083         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62084         that time.h defines struct timespec.
62085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62086         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62087         handles that.
62088         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62089         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62090         needed.  Set REPLACE_LOCALTIME.
62091         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62092         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62093         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62094         nanosleep; time_h.m4 now does that.  Don't require
62095         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62096         module handles this now.
62097         * modules/getdate (Depends-on): Remove timespec.  Add time.
62098         * modules/nanosleep (Depends-on): Likewise.
62099         * modules/stat-time (Depends-on): Likewise.
62100         * modules/nanosleep (Include): Include time.h, not timespec.h.
62101         * modules/strptime (Files): Remove lib/strptime.h.
62102         (Depends-on): Add extensions, time.
62103         (Include): Include time.h, not strptime.h.
62104         * modules/time_r (Files): Remove lib/time_r.h.
62105         (Depends-on): Add time.
62106         (Include): Include time.h, not time_r.h.
62107         * modules/timegm: Likewise.
62108         * modules/timespec (Description): Now does timespec-related decls
62109         of our own, instead of struct timespec itself.
62110         (Depends-on): Add time; remove extensions.
62111         (Maintainer): Add self.
62112         * modules/utimecmp (Depends-on): Add time; remove timespec.
62113         * modules/utimens (Depends-on): Likewise.
62114         * modules/xnanosleep (Depends-on): Likewise.
62115
62116 2007-02-11  Bruno Haible  <bruno@clisp.org>
62117
62118         * lib/c-strstr.c: Include allocsa.h.
62119         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62120         * lib/c-strcasestr.c: Include allocsa.h.
62121         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62122         * lib/strcasestr.c: Include allocsa.h.
62123         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62124         * lib/mbsstr.c: Include allocsa.h.
62125         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62126         allocsa/freesa instead of malloc/free.
62127         * lib/mbscasestr.c: Include allocsa.h.
62128         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62129         allocsa/freesa instead of malloc/free.
62130         * modules/c-strstr (Depends-on): Add allocsa.
62131         * modules/c-strcasestr (Depends-on): Likewise.
62132         * modules/strcasestr (Depends-on): Likewise.
62133         * modules/mbsstr (Depends-on): Likewise.
62134         * modules/mbscasestr (Depends-on): Likewise.
62135
62136 2007-02-11  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62139
62140         * modules/mbsspn-tests: New file.
62141         * tests/test-mbsspn.sh: New file.
62142         * tests/test-mbsspn.c: New file.
62143
62144 2007-02-11  Bruno Haible  <bruno@clisp.org>
62145
62146         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62147
62148         * modules/mbspbrk-tests: New file.
62149         * tests/test-mbspbrk.sh: New file.
62150         * tests/test-mbspbrk.c: New file.
62151
62152 2007-02-11  Bruno Haible  <bruno@clisp.org>
62153
62154         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62155         unneeded cast.
62156
62157         * modules/mbscspn-tests: New file.
62158         * tests/test-mbscspn.sh: New file.
62159         * tests/test-mbscspn.c: New file.
62160
62161 2007-02-11  Bruno Haible  <bruno@clisp.org>
62162
62163         * modules/mbscasecmp-tests: New file.
62164         * tests/test-mbscasecmp.sh: New file.
62165         * tests/test-mbscasecmp.c: New file.
62166
62167 2007-02-11  Bruno Haible  <bruno@clisp.org>
62168
62169         Ensure O(n) worst-case complexity of mbscasestr.
62170         * lib/mbscasestr.c: Include stdbool.h.
62171         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62172         functions.
62173         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62174         the bookkeeping indicates that it's worth it.
62175         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62176
62177         * modules/mbscasestr-tests: New file.
62178         * tests/test-mbscasestr1.c: New file.
62179         * tests/test-mbscasestr2.sh: New file.
62180         * tests/test-mbscasestr2.c: New file.
62181         * tests/test-mbscasestr3.sh: New file.
62182         * tests/test-mbscasestr3.c: New file.
62183         * tests/test-mbscasestr4.sh: New file.
62184         * tests/test-mbscasestr4.c: New file.
62185         * m4/locale-tr.m4: New file.
62186
62187 2007-02-11  Bruno Haible  <bruno@clisp.org>
62188
62189         Ensure O(n) worst-case complexity of mbsstr.
62190         * lib/mbsstr.c: Include stdbool.h.
62191         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62192         functions.
62193         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62194         bookkeeping indicates that it's worth it.
62195         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62196
62197         * modules/mbsstr-tests: New file.
62198         * tests/test-mbsstr1.c: New file.
62199         * tests/test-mbsstr2.sh: New file.
62200         * tests/test-mbsstr2.c: New file.
62201         * tests/test-mbsstr3.sh: New file.
62202         * tests/test-mbsstr3.c: New file.
62203         * m4/locale-fr.m4: New file.
62204
62205 2007-02-11  Bruno Haible  <bruno@clisp.org>
62206
62207         * lib/mbsrchr.c (mbsrchr): Fix bug.
62208
62209         * modules/mbsrchr-tests: New file.
62210         * tests/test-mbsrchr.sh: New file.
62211         * tests/test-mbsrchr.c: New file.
62212
62213 2007-02-11  Bruno Haible  <bruno@clisp.org>
62214
62215         * lib/mbschr.c (mbschr): Fix bug.
62216
62217         * modules/mbschr-tests: New file.
62218         * tests/test-mbschr.sh: New file.
62219         * tests/test-mbschr.c: New file.
62220         * m4/locale-zh.m4: New file.
62221
62222 2007-02-11  Bruno Haible  <bruno@clisp.org>
62223
62224         Support for copying multibyte string iterators.
62225         * lib/mbiter.h: Include <string.h>.
62226         (mbiter_multi_copy): New function.
62227         (mbi_copy): New macro.
62228         * lib/mbuiter.h: Include <string.h>.
62229         (mbuiter_multi_copy): New function.
62230         (mbui_copy): New macro.
62231
62232 2007-02-11  Bruno Haible  <bruno@clisp.org>
62233
62234         New module mbslen.
62235         * modules/mbslen: New file.
62236         * lib/mbslen.c: New file.
62237         * lib/string_.h (mbslen): New declaration.
62238         * m4/mbslen.m4: New file.
62239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62240         GNULIB_MBSLEN.
62241         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62242         * MODULES.html.sh (Internationalization functions): Add mbslen.
62243
62244 2007-02-11  Bruno Haible  <bruno@clisp.org>
62245
62246         Ensure O(n) worst-case complexity of strcasestr substitute.
62247         * lib/strcasestr.c: Include stdbool.h.
62248         (knuth_morris_pratt): New function.
62249         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62250         bookkeeping indicates that it's worth it.
62251         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62252
62253         * modules/strcasestr-tests: New file.
62254         * tests/test-strcasestr.c: New file.
62255
62256 2007-02-11  Bruno Haible  <bruno@clisp.org>
62257
62258         Ensure O(n) worst-case complexity of c_strcasestr.
62259         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62260         (knuth_morris_pratt): New function.
62261         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62262         the bookkeeping indicates that it's worth it.
62263         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62264
62265         * modules/c-strcasestr-tests: New file.
62266         * tests/test-c-strcasestr.c: New file.
62267
62268 2007-02-11  Bruno Haible  <bruno@clisp.org>
62269
62270         Ensure O(n) worst-case complexity of c_strstr.
62271         * lib/c-strstr.c: Include stdbool.h, string.h.
62272         (knuth_morris_pratt): New function.
62273         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62274         bookkeeping indicates that it's worth it.
62275         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62276
62277         * lib/c-strstr.c: Complete rewrite for maintainability.
62278
62279         * modules/c-strstr-tests: New file.
62280         * tests/test-c-strstr.c: New file.
62281
62282 2007-02-11  Bruno Haible  <bruno@clisp.org>
62283
62284         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62285         5.2.1 and earlier, whereby \055 was treated just like the range
62286         delimiter '-'.
62287         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62288
62289 2007-02-08  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/regex (Depends-on): Add stdbool.
62292         Reported by Dalibor Topic <robilad@kaffe.org>.
62293
62294 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62295
62296         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62297         Prefer returning from main to exiting from it.
62298         Remove unnecessary parens after sizeof.
62299
62300 2007-02-05  Bruno Haible  <bruno@clisp.org>
62301
62302         New module mbssep.
62303         * modules/mbssep: New file.
62304         * lib/mbssep.c: New file.
62305         * lib/string_.h (strsep): Add a conditional link warning.
62306         (mbssep): New declaration.
62307         * m4/mbssep.m4: New file.
62308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62309         GNULIB_MBSSEP.
62310         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62311         * MODULES.html.sh (Internationalization functions): Add mbssep.
62312
62313 2007-02-05  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62316         Optimize search in case of 1 delimiter.
62317
62318 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62319
62320         * lib/acl.h: Include sys/types.h before sys/acl.h.
62321
62322 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62323
62324         Merge upstream fix for glibc bugzilla #3957:
62325
62326         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62327
62328         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62329         bit for RE_HAT_LISTS_NOT_NEWLINE.
62330         (build_charclass_op): Remove bogus comment.
62331
62332 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62333
62334         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62335
62336 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62339         * lib/memmem.c [!defined _LIBC]: Include config.h.
62340
62341 2007-02-04  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62344         warning message.
62345
62346 2007-02-04  Bruno Haible  <bruno@clisp.org>
62347
62348         New module mbstok_r.
62349         * modules/mbstok_r: New file.
62350         * lib/mbstok_r.c: New file.
62351         * lib/string_.h (strtok_r): Change argument names to match the
62352         comments. Add a conditional link warning.
62353         (mbstok_r): New declaration.
62354         * m4/mbstok_r.m4: New file.
62355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62356         GNULIB_MBSTOK_R.
62357         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62358         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62359
62360 2007-02-04  Bruno Haible  <bruno@clisp.org>
62361
62362         New module mbsspn.
62363         * modules/mbsspn: New file.
62364         * lib/mbsspn.c: New file.
62365         * lib/string_.h (strspn): Add a conditional link warning.
62366         (mbsspn): New declaration.
62367         * m4/mbsspn.m4: New file.
62368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62369         GNULIB_MBSSPN.
62370         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62371         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62372
62373 2007-02-04  Bruno Haible  <bruno@clisp.org>
62374
62375         New module mbspbrk.
62376         * modules/mbspbrk: New file.
62377         * lib/mbspbrk.c: New file.
62378         * lib/string_.h (strpbrk): Add a conditional link warning.
62379         (mbspbrk): New declaration.
62380         * m4/mbspbrk.m4: New file.
62381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62382         GNULIB_MBSPBRK.
62383         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62384         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62385
62386 2007-02-04  Bruno Haible  <bruno@clisp.org>
62387
62388         New module mbscspn.
62389         * modules/mbscspn: New file.
62390         * lib/mbscspn.c: New file.
62391         * lib/string_.h (strcspn): Add a conditional link warning.
62392         (mbscspn): New declaration.
62393         * m4/mbscspn.m4: New file.
62394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62395         GNULIB_MBSCSPN.
62396         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62397         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62398
62399 2007-02-04  Bruno Haible  <bruno@clisp.org>
62400
62401         New module mbscasestr, reduced goal of strcasestr.
62402         * modules/mbscasestr: New file.
62403         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62404         (mbscasestr): Renamed from strcasestr.
62405         * lib/strcasestr.c: Don't include mbuiter.h.
62406         (strcasestr): Remove support for multibyte locales.
62407         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62408         Change the conditional link warning.
62409         (mbscasestr): New declaration.
62410         * m4/mbscasestr.m4: New file.
62411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62412         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62413         REPLACE_STRCASESTR.
62414         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62416         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62417         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62418         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62419         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62420         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62421         (Depends-on): Remove mbuiter.
62422         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62423
62424 2007-02-04  Bruno Haible  <bruno@clisp.org>
62425
62426         Simplify handling of strncasecmp.
62427         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62428         the conditional link warning.
62429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62430         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62431         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62432         * modules/strcase (configure.ac): Don't invoke
62433         gl_STRING_MODULE_INDICATOR.
62434         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62435
62436 2007-02-04  Bruno Haible  <bruno@clisp.org>
62437
62438         New module mbscasecmp, reduced goal of strcasecmp.
62439         * modules/mbscasecmp: New file.
62440         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62441         (mbscasecmp): Renamed from strcasecmp.
62442         * lib/strcasecmp.c: Don't include mbuiter.h.
62443         (strcasecmp): Remove support for multibyte locales.
62444         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62445         Change the conditional link warning.
62446         (mbscasecmp): New declaration.
62447         * m4/mbscasecmp.m4: New file.
62448         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62449         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62450         REPLACE_STRCASECMP.
62451         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62453         GNULIB_MBSCASECMP.
62454         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62455         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62456         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62457         (Depends-on): Remove mbuiter.
62458         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62459
62460 2007-02-04  Bruno Haible  <bruno@clisp.org>
62461
62462         New module mbsstr. Remove module strstr.
62463         * modules/mbsstr: New file.
62464         * modules/strstr: Remove file.
62465         * lib/mbsstr.c: Renamed from lib/strstr.c.
62466         (mbsstr): Renamed from strstr.
62467         * lib/string_.h (strstr): Remove declaration. Change the conditional
62468         link warning.
62469         (mbsstr): New declaration.
62470         * m4/mbsstr.m4: New file.
62471         * m4/strstr.m4: Remove file.
62472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62473         REPLACE_STRSTR.
62474         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62475         Don't initialize GNULIB_STRSTR.
62476         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62477         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62478         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62479         (Support for systems lacking ANSI C 89): Remove strstr.
62480
62481 2007-02-04  Bruno Haible  <bruno@clisp.org>
62482
62483         New module mbsrchr.
62484         * modules/mbsrchr: New file.
62485         * lib/mbsrchr.c: New file.
62486         * lib/string_.h (strrchr): Add a conditional link warning.
62487         (mbsrchr): New declaration.
62488         * m4/mbsrchr.m4: New file.
62489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62490         GNULIB_MBSRCHR.
62491         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62492         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62493
62494 2007-02-04  Bruno Haible  <bruno@clisp.org>
62495
62496         New module mbschr.
62497         * modules/mbschr: New file.
62498         * lib/mbschr.c: New file.
62499         * lib/string_.h (strchr): Add a conditional link warning.
62500         (mbschr): New declaration.
62501         * m4/mbschr.m4: New file.
62502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62503         GNULIB_MBSCHR.
62504         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62505         * MODULES.html.sh (Internationalization functions): Add mbschr.
62506
62507 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62508
62509         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62510
62511         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62512
62513 2007-02-04  Bruno Haible  <bruno@clisp.org>
62514
62515         New module description section 'configure.ac-early'.
62516         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62517         (func_get_autoconf_early_snippet): New function.
62518         (func_import, func_create_testdir): Use it. Remove special cases for
62519         modules 'extensions' and 'lock'.
62520         * modules/extensions (configure.ac-early): Require
62521         gl_USE_SYSTEM_EXTENSIONS.
62522         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62523
62524 2007-02-04  Bruno Haible  <bruno@clisp.org>
62525
62526         Make use of gcj-4.3's -fsource and -ftarget option.
62527         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62528         and if so try the options -fsource and -ftarget.
62529         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62530         source_version, ftarget_option, target_version arguments.
62531         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62532         (is_envjavac_oldgcj_14_14_usable): Renamed from
62533         is_envjavac_gcj_14_14_usable.
62534         (is_envjavac_oldgcj_14_13_usable): Renamed from
62535         is_envjavac_gcj_14_13_usable.
62536         (is_gcj_present): Update.
62537         (is_gcj_43, is_gcj43_usable): New functions.
62538         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62539         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62540         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62541         try the options -fsource and -ftarget.
62542
62543 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62544
62545         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62546         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62547         larger value.
62548
62549 2007-02-03  Jim Meyering  <jim@meyering.net>
62550
62551         Give tools a better chance to allocate space for very large buffers.
62552         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62553
62554         Make pwd and readlink work also when run with an unreadable parent dir
62555         on systems with openat support.
62556         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62557         provided getcwd function, even when we have openat support.
62558         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62559
62560 2007-02-02  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62563         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62564         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62565         portability problems if one of these functions is only used on specific
62566         platforms.
62567         Reported by Paul Eggert.
62568
62569 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62570
62571         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62572         is causing more trouble than it's curing.
62573         * lib/regex_internal.h (__mempcpy): Remove.
62574         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62575         (and make the code a tad smaller to boot).
62576         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62577
62578 2007-02-02  Jim Meyering  <jim@meyering.net>
62579
62580         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62581         section, not in the Makefile.am: one.
62582
62583 2007-02-02  Eric Blake  <ebb9@byu.net>
62584
62585         * lib/strchrnul.c: Always include config.h first.
62586
62587         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62588         gnulib strstr is not necessary here.
62589
62590 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62591
62592         * m4/socklen.m4: Fix typo.
62593
62594 2007-02-02  Eric Blake  <ebb9@byu.net>
62595
62596         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62597         * modules/netinet_in (Makefile.am): Likewise.
62598
62599 2007-02-01  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/string_.h (GL_LINK_WARNING): New macro.
62602         (strcasecmp, strstr, strcasestr): If provided by the system,
62603         conditionally define as a macro that leads to a warning instead of to
62604         an error.
62605         (strncasecmp): Conditionally define as a macro that leads to a warning.
62606
62607 2007-02-01  Karl Berry  <karl@gnu.org>
62608
62609         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62610
62611 2007-02-01  Bruno Haible  <bruno@clisp.org>
62612
62613         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62614         renamings.
62615
62616 2007-02-01  Eric Blake  <ebb9@byu.net>
62617
62618         * modules/regex (Depends-on): Revert dependence on mempcpy.
62619         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62620         module's definition of mempcpy.
62621         Reported by Paul Eggert.
62622
62623 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62626         the symbol XYZ before redefining it.  This fixes a problem with
62627         programs that don't use XYZ, when compiled on systems that define
62628         XYZ to something else.
62629
62630 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62633         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62634         writeable to group or other and (2) is intended to have a special
62635         mode bit that is set or cleared.  In such a case, the directory
62636         should be neither group- nor other-writeable until the special
62637         mode bits are right.
62638
62639 2007-01-31  Eric Blake  <ebb9@byu.net>
62640
62641         * modules/mountlist (Depends-on): Add strstr.
62642
62643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62644         bug.
62645         * modules/string (Makefile.am): Remove redundant replacement.
62646         * modules/regex (Depends-on): Add mempcpy.
62647
62648 2007-01-31  Bruno Haible  <bruno@clisp.org>
62649
62650         New module description field 'Link'.
62651         * gnulib-tool (func_usage): Document --extract-link-directive.
62652         (sed_extract_prog): Recognize 'Link' directive.
62653         (func_get_link_directive): New function.
62654         (func_import): Show summary of link directives.
62655         Handle --extract-link-directive option.
62656         * modules/acl (Link): New section.
62657         * modules/clock-time (Link): New section.
62658         * modules/euidaccess (Link): New section.
62659         * modules/gettext (Link): New section.
62660         * modules/iconv (Link): New section.
62661         * modules/lock (Link): New section.
62662         * modules/nanosleep (Link): New section.
62663         * modules/readline (Link): New section.
62664
62665 2007-01-27  Bruno Haible  <bruno@clisp.org>
62666
62667         Enforce the use of gnulib modules for unportable <string.h> functions.
62668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62669         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62670         (gl_HEADER_STRING_H_BODY): Require it.
62671         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62672         the symbol XYZ to one that gives a link error.
62673         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62674         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62675         * modules/mempcpy (configure.ac): Likewise.
62676         * modules/memrchr (configure.ac): Likewise.
62677         * modules/stpcpy (configure.ac): Likewise.
62678         * modules/stpncpy (configure.ac): Likewise.
62679         * modules/strcase (configure.ac): Likewise.
62680         * modules/strcasestr (configure.ac): Likewise.
62681         * modules/strchrnul (configure.ac): Likewise.
62682         * modules/strdup (configure.ac): Likewise.
62683         * modules/strndup (configure.ac): Likewise.
62684         * modules/strnlen (configure.ac): Likewise.
62685         * modules/strpbrk (configure.ac): Likewise.
62686         * modules/strsep (configure.ac): Likewise.
62687         * modules/strstr (configure.ac): Likewise.
62688         * modules/strtok_r (configure.ac): Likewise.
62689
62690 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62691
62692         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62693
62694 2007-01-30  Jim Meyering  <jim@meyering.net>
62695
62696         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62697
62698 2007-01-29  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62701         * lib/execute.c: Likewise.
62702         * lib/pipe.c: Likewise.
62703         * lib/printf-args.h: Likewise.
62704         * lib/printf-args.c: Likewise.
62705         * lib/printf-parse.c: Likewise.
62706         * lib/vasnprintf.c: Likewise.
62707
62708 2007-01-29  Eric Blake  <ebb9@byu.net>
62709
62710         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62711         declaration.
62712
62713 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62714
62715         * lib/strptime.h (strptime): Use 'restrict' for args where
62716         POSIX requires this.
62717         * lib/strptime.c (strptime): Likewise.
62718         Change license notice from LGPL to GPL, since gnulib-tool will
62719         change this as needed.
62720         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62721         defined.
62722         Include "strptime.h" first, to check interface.
62723         Do not #undef _LIBC and _NL_CURRENT.
62724         Do not include <stdlib.h>; no longer needed.
62725         Include "time_r.h" and declare ptime_locale_status
62726         only if _LIBC is not defined.
62727         (__P): Remove unused macro.
62728         (match_string): Bring back glibc version, but use it only if _LIBC
62729         is defined.
62730         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62731         Remove unnecessary assertion and abort() call.
62732         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62733         * m4/strptime.m4: Fix serial number comment.
62734         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62735         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62736         (Depends-on): Add time_r.
62737
62738 2007-01-29  Bruno Haible  <bruno@clisp.org>
62739
62740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62741         strptime.
62742         * modules/strptime (Depends-on): Add stdbool.
62743         * lib/strptime.h: Include <time.h> always. Add comments.
62744
62745 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62746
62747         * modules/strptime: New file.
62748         * lib/strptime.h: New file.
62749         * lib/strptime.c: New file.
62750         * m4/strptime.m4: New file.
62751
62752 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * MODULES.html.sh: New module mpsort.
62755         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62756
62757         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62758         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62759         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62760         All uses changed.
62761         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62762         All uses changed.
62763         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62764         to _Restrict_.
62765         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62766         the parameter matches the prototype.
62767
62768 2007-01-28  Jim Meyering  <jim@meyering.net>
62769
62770         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62771         sys/time.h here, reverting that part of the previous patch:
62772         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62773
62774 2007-01-28  Bruno Haible  <bruno@clisp.org>
62775
62776         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62777         value of $(SYS_TIME_H).
62778         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62779         remove it conditionally, too. [added by Jim Meyering]
62780         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62781         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62782         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62783         GETTIMEOFDAY_REPLACEMENT to 1.
62784
62785 2007-01-28  Bruno Haible  <bruno@clisp.org>
62786
62787         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62788         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62790         Set UNISTD_H instead of UNISTD_H2.
62791         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62792
62793 2007-01-28  Bruno Haible  <bruno@clisp.org>
62794
62795         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62796         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62797
62798 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62799
62800         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62801         (func_create_testdir): Ensure C locale for `grep' and `tr'
62802         character ranges.
62803         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62804         ACLOCAL_AMFLAGS parsing state machine.
62805
62806 2007-01-27  Bruno Haible  <bruno@clisp.org>
62807
62808         * modules/unistr/base: Update.
62809
62810 2007-01-27  Bruno Haible  <bruno@clisp.org>
62811
62812         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62813         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62814         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62815         modules/unistr/u32-mbtouc.
62816         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62817         * lib/unistr.h: Update.
62818         * lib/linebreak.c: Update.
62819         * modules/unistr/u32-mbtouc: Renamed from
62820         modules/unistr/u32-mbtouc-safe.
62821         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62822         * lib/unistr.h: Update.
62823         * lib/unistr/u32-to-u8.c: Update.
62824         * lib/unistr/u32-to-u16.c: Update.
62825
62826 2007-01-27  Bruno Haible  <bruno@clisp.org>
62827
62828         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62829         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62830         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62831         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62832         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62833         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62834         modules/unistr/u16-mbtouc.
62835         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62836         * lib/unistr.h: Update.
62837         * lib/linebreak.c: Update.
62838         * modules/linebreak: Update.
62839         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62840         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62841         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62842         * modules/unistr/u16-mbtouc: Renamed from
62843         modules/unistr/u16-mbtouc-safe.
62844         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62845         * lib/unistr.h: Update.
62846         * lib/unistr/u16-to-u8.c: Update.
62847         * modules/unistr/u16-to-u8: Update.
62848         * lib/unistr/u16-to-u32.c: Update.
62849         * modules/unistr/u16-to-u32: Update.
62850
62851 2007-01-27  Bruno Haible  <bruno@clisp.org>
62852
62853         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62854         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62855         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62856         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62857         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62858         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62859         modules/unistr/u8-mbtouc.
62860         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62861         * lib/unistr.h: Update.
62862         * lib/striconveh.c: Update.
62863         * modules/striconveh: Update.
62864         * lib/linebreak.c: Update.
62865         * modules/linebreak: Update.
62866         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62867         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62868         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62869         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62870         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62871         * lib/unistr.h: Update.
62872         * lib/striconveh.c: Update.
62873         * modules/striconveh: Update.
62874         * lib/unistr/u8-to-u16.c: Update.
62875         * modules/unistr/u8-to-u16: Update.
62876         * lib/unistr/u8-to-u32.c: Update.
62877         * modules/unistr/u8-to-u32: Update.
62878
62879 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62880
62881         Sync from Libtool.
62882         * lib/argz.c: Do not include strings.h nor memory.h, include
62883         string.h unconditionally.  Patch by Simon Josefsson.
62884
62885 2007-01-27  Bruno Haible  <bruno@clisp.org>
62886
62887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62888         from gl_HEADER_STRING_H_BODY.
62889         (gl_HEADER_STRING_H_BODY): Require it.
62890         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62891         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62892         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62893         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62895         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62897         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62898         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62899         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62900         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62901         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62902         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62903         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62905
62906 2007-01-27  Bruno Haible  <bruno@clisp.org>
62907
62908         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62909         check_PROGRAMS into noinst_PROGRAMS.
62910         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62911         check_PROGRAMS in this case.
62912         (func_import): Set for_test to false.
62913         (func_create_testdir): Set for_test to true.
62914
62915 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62916             Bruno Haible  <bruno@clisp.org>
62917
62918         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62919         (Depends-on): Add string.
62920         (Includes): Use <string.h> instead of strcasestr.h.
62921         * modules/string (Makefile.am): Also substitute the value of
62922         REPLACE_STRCASESTR.
62923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62924         assume strcasestr is declared in <string.h> not <strings.h>. Also
62925         set REPLACE_STRCASESTR.
62926         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62927         REPLACE_STRCASESTR.
62928         * lib/strcasestr.h: Remove file.
62929         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62930         * lib/string_.h (strcasestr): New declaration.
62931
62932 2007-01-27  Bruno Haible  <bruno@clisp.org>
62933
62934         * lib/string_.h: Use 'extern'.
62935
62936 2007-01-27  Jim Meyering  <jim@meyering.net>
62937
62938         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62939         of set-but-not-used local, "q".
62940
62941         * lib/mempcpy.c: Include <config.h> before <string.h>.
62942         This fixes a compilation error on HP-UX, due to the system's
62943         "restrict"-using mempcpy prototype.
62944
62945 2007-01-26  Bruno Haible  <bruno@clisp.org>
62946
62947         Small optimization.
62948         * lib/javacomp.c: Include c-strstr.h.
62949          (is_envjavac_gcj): Use c_strstr instead of strstr.
62950         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62951
62952 2007-01-26  Bruno Haible  <bruno@clisp.org>
62953
62954         * MODULES.html.sh (Unicode string functions): Add the new modules.
62955
62956         * modules/uniconv/u32-strconv-to-locale: New file.
62957         * lib/uniconv/u32-strconv-to-locale.c: New file.
62958
62959         * modules/uniconv/u16-strconv-to-locale: New file.
62960         * lib/uniconv/u16-strconv-to-locale.c: New file.
62961
62962         * modules/uniconv/u8-strconv-to-locale: New file.
62963         * lib/uniconv/u8-strconv-to-locale.c: New file.
62964
62965         * modules/uniconv/u32-strconv-from-locale: New file.
62966         * lib/uniconv/u32-strconv-from-locale.c: New file.
62967
62968         * modules/uniconv/u16-strconv-from-locale: New file.
62969         * lib/uniconv/u16-strconv-from-locale.c: New file.
62970
62971         * modules/uniconv/u8-strconv-from-locale: New file.
62972         * lib/uniconv/u8-strconv-from-locale.c: New file.
62973
62974         * modules/uniconv/u32-strconv-to-enc: New file.
62975         * lib/uniconv/u32-strconv-to-enc.c: New file.
62976         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62977         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62978
62979         * modules/uniconv/u16-strconv-to-enc: New file.
62980         * lib/uniconv/u16-strconv-to-enc.c: New file.
62981         * lib/uniconv/u-strconv-to-enc.h: New file.
62982         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62983         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62984
62985         * modules/uniconv/u8-strconv-to-enc: New file.
62986         * lib/uniconv/u8-strconv-to-enc.c: New file.
62987         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62988         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62989
62990         * modules/uniconv/u32-strconv-from-enc: New file.
62991         * lib/uniconv/u32-strconv-from-enc.c: New file.
62992         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62993         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62994
62995         * modules/uniconv/u16-strconv-from-enc: New file.
62996         * lib/uniconv/u16-strconv-from-enc.c: New file.
62997         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62998         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62999
63000         * modules/uniconv/u8-strconv-from-enc: New file.
63001         * lib/uniconv/u8-strconv-from-enc.c: New file.
63002         * lib/uniconv/u-strconv-from-enc.h: New file.
63003         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63004         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63005
63006         * modules/uniconv/u32-conv-from-enc: New file.
63007         * lib/uniconv/u32-conv-from-enc.c: New file.
63008         * modules/uniconv/u32-conv-from-enc-tests: New file.
63009         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63010
63011         * modules/uniconv/u16-conv-from-enc: New file.
63012         * lib/uniconv/u16-conv-from-enc.c: New file.
63013         * lib/uniconv/u-conv-from-enc.h: New file.
63014         * modules/uniconv/u16-conv-from-enc-tests: New file.
63015         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63016
63017         * modules/uniconv/u8-conv-from-enc: New file.
63018         * lib/uniconv/u8-conv-from-enc.c: New file.
63019         * modules/uniconv/u8-conv-from-enc-tests: New file.
63020         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63021
63022         * modules/uniconv/base: New file.
63023         * lib/uniconv.h: New file.
63024
63025 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63026
63027         * doc/gnulib-tool.texi (Initial import): Update to match current
63028         behavior with strdup module.
63029         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63030         * lib/memmem.h: Remove; all uses removed.  This is now done
63031         by <string.h>.
63032         * lib/mempcpy.h: Likewise.
63033         * lib/memrchr.h: Likewise.
63034         * lib/stpcpy.h: Likewise.
63035         * lib/stpncpy.h: Likewise.
63036         * lib/strcase.h: Likewise.
63037         * lib/strchrnul.h: Likewise.
63038         * lib/strdup.h: Likewise.
63039         * lib/strndup.h: Likewise.
63040         * lib/strnlen.h: Likewise.
63041         * lib/strpbrk.h: Likewise.
63042         * lib/strsep.h: Likewise.
63043         * lib/strstr.h: Likewise.
63044         * lib/strtok_r.h: Likewise.
63045         * lib/string_.h: New file.
63046         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63047         Rely on <string.h> instead.
63048         * lib/canon-host.c: Likewise.
63049         * lib/chdir-long.c: Likewise.
63050         * lib/concatpath.c: Likewise.
63051         * lib/exclude.c: Likewise.
63052         * lib/fchdir.c: Likewise.
63053         * lib/getaddrinfo.c: Likewise.
63054         * lib/getcwd.c: Likewise.
63055         * lib/getsubopt.c: Likewise.
63056         * lib/glob.c: Likewise.
63057         * lib/hard-locale.c: Likewise.
63058         * lib/iconvme.c: Likewise.
63059         * lib/javacomp.c: Likewise.
63060         * lib/mempcpy.c: Likewise.
63061         * lib/memrchr.c: Likewise.
63062         * lib/regex_internal.h: Likewise.
63063         * lib/stpncpy.c: Likewise.
63064         * lib/strcasecmp.c: Likewise.
63065         * lib/strchrnul.c: Likewise.
63066         * lib/strdup.c: Likewise.
63067         * lib/striconv.c: Likewise.
63068         * lib/striconveh.c: Likewise.
63069         * lib/striconveha.c: Likewise.
63070         * lib/strncasecmp.c: Likewise.
63071         * lib/strndup.c: Likewise.
63072         * lib/strnlen.c: Likewise.
63073         * lib/strsep.c: Likewise.
63074         * lib/strstr.c: Likewise.
63075         * lib/strtok_r.c: Likewise.
63076         * lib/userspec.c: Likewise.
63077         * lib/w32spawn.h: Likewise.
63078         * lib/xstrndup.c: Likewise.
63079         * lib/mountlist.c (strstr): Remove decl.
63080         * m4/string_h.m4: New file.
63081         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63082         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63083         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63084         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63085         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63086         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63087         Set REPLACE_STRCASECMP if necessary.
63088         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63089         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63090         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63091         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63092         HAVE_DECL_STRDUP if necessary.
63093         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63094         since gl_FUNC_STRNDUP does that now.
63095         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63096         Check for decl here...
63097         (gl_PREREQ_STRNLEN): ... not here.
63098         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63099         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63100         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63101         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63102         necessary.
63103         * modules/string: New file.
63104         * modules/memmem (Files): Remove special-purpose include file.
63105         (Depends-on): Add string.
63106         (Include): Include <string.h>, not the removed file.
63107         * modules/mempcpy: Likewise.
63108         * modules/memrchr: Likewise.
63109         * modules/stpcpy: Likewise.
63110         * modules/stpncpy: Likewise.
63111         * modules/strcase: Likewise.
63112         * modules/strchrnul: Likewise.
63113         * modules/strdup: Likewise.
63114         * modules/strndup: Likewise.
63115         * modules/strnlen: Likewise.
63116         * modules/strpbrk: Likewise.
63117         * modules/strsep: Likewise.
63118         * modules/strstr: Likewise.
63119         * modules/strtok_r: Likewise.
63120         * tests/test-dirname.c: Don't include "strdup.h", since
63121         <string.h> now suffices.
63122         * tests/test-memmem.c: Don't include "memmem.h", since
63123         <string.h> now suffices.
63124
63125 2007-01-25  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63128         *resultp is 0.
63129
63130         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63131         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63132         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63133         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63134
63135         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63136         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63137         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63138         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63139         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63140         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63141
63142 2007-01-24  Bruno Haible  <bruno@clisp.org>
63143
63144         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63146         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63147         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63148         gl_FUNC_FTS_CORE.
63149         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63150         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63151         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63152         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63153         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63154         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63155         gl_FUNC_FCHOWNAT.
63156         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63157         gl_FUNC_STRFTIME.
63158         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63159         Reported by Ralf Wildenhues.
63160
63161 2007-01-24  Bruno Haible  <bruno@clisp.org>
63162
63163         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63164         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63165         gl_GETADDRINFO.
63166         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63167         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63168         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63169
63170 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63171
63172         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63173         Don't use 'exit'; just return from 'main'.
63174         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63175
63176         * lib/fnmatch_.h: Readjust white space and comments to match
63177         glibc, to avoid spurious diffs.
63178
63179 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63182         2004-12-01 change by Jakub Jelinek, since this code won't compile
63183         if !LIBC.  Problem reported by Bob Proulx.
63184
63185 2007-01-23  Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/striconveh.c: Include c-strcaseeq.h.
63188         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63189         * modules/striconveh (Depends-on): Add c-strcaseeq.
63190
63191 2007-01-23  Bruno Haible  <bruno@clisp.org>
63192
63193         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63194
63195         * modules/c-strcaseeq: New file.
63196         * lib/c-strcaseeq.h: New file.
63197
63198         * modules/streq: New file.
63199         * lib/streq.h: New file.
63200
63201 2007-01-23  Bruno Haible  <bruno@clisp.org>
63202
63203         * modules/striconveha-tests: New file.
63204         * tests/test-striconveha.c: New file.
63205
63206         * lib/striconveha.h: Include <stdbool.h>.
63207         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63208         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63209         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63210         (mem_iconveha): New function.
63211         (str_iconveha_notranslit): Renamed from str_iconveha.
63212         (str_iconveha): New function.
63213         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63214         c-strcase.
63215
63216 2007-01-23  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63219         encodings without forgiving before trying any encoding with handler.
63220         (str_iconveha): Try all encodings without forgiving before trying any
63221         encoding with handler.
63222
63223 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         Import the following changes from libc.
63226
63227         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63228
63229         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63230
63231         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63232
63233         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63234         normal_bracket label.
63235
63236         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63237
63238         [BZ #361]
63239         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63240         to normal_bracket after fetching the next character.
63241
63242 2007-01-22  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63245         argument.
63246         * lib/striconveh.c (iconv_carefully_1): New function.
63247         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63248         argument.
63249         (str_cd_iconveh): Update.
63250         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63251         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63252         * tests/test-striconveh.c (MAGIC): New macro.
63253         (new_offsets): New function.
63254         (main): Test call with and without offsets.
63255
63256 2007-01-22  Bruno Haible  <bruno@clisp.org>
63257
63258         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63259         * modules/sys_select (Makefile.am): Likewise.
63260         * modules/sys_socket (Makefile.am): Likewise.
63261         * modules/sys_time (Makefile.am): Likewise.
63262
63263 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * modules/gettimeofday (License): Change from GPL to LGPL, since
63266         gettimeofday is a library function.
63267
63268 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63269
63270         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63271
63272 2007-01-21  Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63275
63276 2007-01-21  Bruno Haible  <bruno@clisp.org>
63277
63278         * modules/striconveha: New file.
63279         * lib/striconveha.h: New file.
63280         * lib/striconveha.c: New file.
63281         * MODULES.html.sh (Internationalization functions): Add striconveha.
63282         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63283         string.
63284         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63285
63286 2007-01-21  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63289         * lib/striconveh.c (str_iconveh): Likewise.
63290
63291 2007-01-21  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/striconveh.h (mem_iconveh): New declaration.
63294         * lib/striconveh.c (mem_iconveh): New function.
63295         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63296
63297 2007-01-21  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63300
63301         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63302         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63303         original result buffer.
63304         (str_cd_iconveh): Update.
63305         * tests/test-striconveh.c (main): Update.
63306
63307         * lib/striconv.h (mem_cd_iconv): Change specification.
63308         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63309         result buffer.
63310         (str_cd_iconv): Update.
63311         * tests/test-striconv.c (main): Update.
63312
63313 2007-01-21  Bruno Haible  <bruno@clisp.org>
63314
63315         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63316
63317 2007-01-20  Jim Meyering  <jim@meyering.net>
63318
63319         * lib/userspec.c (parse_with_separator): If a user or group string
63320         starts with "+", skip the corresponding name-to-ID look-up, since
63321         such a look-up must fail: user and group names may not include "+".
63322
63323 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63324
63325         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63326         since we now assume the sys_time module.
63327         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63328         check for sys/time.h; no longer needed.
63329         * modules/poll (Depends-on): Depend on sys_time.
63330
63331 2007-01-18  Bruno Haible  <bruno@clisp.org>
63332
63333         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63334         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63335
63336         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63337         gettimeofday.
63338
63339         * tests/test-gettimeofday.c: Include <time.h>.
63340         (dummy): Remove variable.
63341
63342         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63343         gl_HEADER_SYS_TIME_H.
63344         (gl_HEADER_SYS_TIME_H): New macro.
63345
63346         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63347         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63349         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63350         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63351         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63352         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63353         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63354         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63355         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63356         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63357
63358         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63359         last change; it caused a compilation error when cross-compiling to
63360         Cygwin.
63361
63362 2007-01-18  Jim Meyering  <jim@meyering.net>
63363
63364         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63365         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63366         than the race-prone "test -d sys || mkdir sys".
63367         (configure.ac): Use AC_PROG_MKDIR_P.
63368         * modules/sys_select: Likewise.
63369         * modules/sys_socket: Likewise.
63370         * modules/sys_time: Likewise.
63371
63372 2007-01-18  Eric Blake  <ebb9@byu.net>
63373
63374         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63375         replace gettimeofday.
63376         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63377         name, to avoid infinite recursion.
63378
63379 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63382         module sys_time.
63383         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63384         assume timespec.h defines struct timeval.
63385         * lib/settime.c: Likewise.
63386         * lib/utimens.c: Likewise.
63387         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63388         since we now assume the gettimeofday module.
63389         * lib/tempname.c (__gen_tempname): Likewise.
63390         * lib/gettimeofday.h: Remove.
63391         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63392         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63393         Include <time.h>, for 'time()'.
63394         (localtime_buffer_addr): Also use this workaround if
63395         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63396         to simplify the uses.  All uses changed.
63397         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63398         that #undef is inside {}, and 'const' follows type name consistently.
63399         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63400         (gettimeofday): Do not use the maximum possible value for
63401         tv->tv_usec, since that might break usages other than ls.c.
63402         Instead, we'll leave ls.c alone.  This undoes today's patch
63403         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63404         we've never observed the problem but might as well keep the
63405         canary.
63406         * lib/nanosleep.c: Include timespec.h first, for interface check.
63407         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63408         now assume the sys_time module.
63409         * lib/tempname.c: Likewise.
63410         * lib/timespec.h: Likewise.
63411         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63412         needed.
63413         * lib/strftime.c: Likewise.
63414         * lib/timespec.h: Likewise.
63415         * lib/posixtm.c: Include posixtm.h first, for interface check.
63416         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63417         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63418         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63419         * lib/sys_time_.h: New file.
63420         * lib/timespec.h (struct timespec): Use long int, not long.
63421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63422         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63423         Remove obsolescent call to AC_HEADER_TIME.
63424         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63426         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63427         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63428         Likewise.
63429         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63430         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63431         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63432         into the sys_time module.  Check for gettimeofday just once.
63433         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63434         for gettimeofday signature to just check the signature.  Merely
63435         compile it, since linking doesn't test signature.  Improve test for
63436         whether gettimeofday.o is actually needed.
63437         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63438         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63439         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63440         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63441         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63442         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63443         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63444         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63445         than worrying about sys/time.h.
63446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63447         Don't bother worrying about TIME_WITH_SYS_TIME.
63448         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63449         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63450         * m4/sys_time_h.m4: New file.
63451         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63452         Don't include sys/time.h.  Return from main rather than exiting.
63453         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63454         all uses changed.
63455         * modules/gethrxtime (Depends-on): Add sys_time.
63456         * modules/gettime (Depends-on): Likewise.
63457         * modules/gettimeofday (Depends-on): Likewise.
63458         * modules/nanosleep (Depends-on): Likewise.
63459         * modules/settime (Depends-on): Likewise.
63460         * modules/tempname (Depends-on): Likewise.
63461         * modules/utimens (Depends-on): Likewise.
63462         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63463         (Include): Change back to <sys/time.h>.
63464         (Maintainer): Add self.
63465         * modules/sys_time: New file.
63466         * modules/tempname (Depends-on): Add gettimeofday.
63467         * tests/test-gettimeofday.c: Include <sys/time.h>
63468         rather than gettimeofday.h.
63469
63470 2007-01-17  Bruno Haible  <bruno@clisp.org>
63471
63472         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63473         the license default to GPL.
63474         (func_create_testdir): Don't complain if a module is LGPL and its
63475         tests module depends on GPLed modules.
63476
63477 2007-01-17  Bruno Haible  <bruno@clisp.org>
63478
63479         * lib/gettimeofday.c (gettimeofday): Add code for the case
63480         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63481         maximum possible value for tv->tv_usec, rather than the minimum one.
63482
63483 2005-10-08  Martin Lambers  <marlam@marlam.de>
63484 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63485 2007-01-16  Bruno Haible  <bruno@clisp.org>
63486
63487         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63488         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63489         gl_FUNC_GETTIMEOFDAY.
63490         (Include): Add gettimeofday.h.
63491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63492         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63493         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63494         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63495         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63496         * lib/gettimeofday.h: New file.
63497         * lib/gettimeofday.c: Include <sys/timeb.h>.
63498         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63499         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63500         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63501         fall back on time().
63502
63503         * tests/test-gettimeofday.c: New file.
63504         * modules/gettimeofday-tests: New file.
63505
63506 2007-01-16  Eric Blake  <ebb9@byu.net>
63507
63508         * modules/fnmatch (Depends-on): Depend on wchar.
63509         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63510         * m4/fnmatch.m4: Likewise.
63511         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63512         * m4/mbchar.m4: Likewise.
63513         * modules/mbswidth (Depends-on): Depend on wchar.
63514         * lib/mbswidth.c: Assume <wchar.h>.
63515         * m4/mbswidth.m4: Likewise.
63516         * modules/quotearg (Depends-on): Depend on wchar.
63517         * lib/quotearg.c: Assume <wchar.h>.
63518         * m4/quotearg.m4: Likewise.
63519         * modules/regex (Depends-on): Depend on wchar.
63520         * lib/regex_internal.h: Assume <wchar.h>.
63521         * m4/regex.m4: Likewise.
63522         * modules/stdint (Depends-on): Depend on wchar.
63523         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63524         * m4/stdint.m4: Likewise.
63525         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63526         * modules/strftime (Depends-on): Depend on wchar.
63527         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63528         * modules/strtol (Depends-on): Depend on wchar.
63529         * lib/strtol.c: Assume <wchar.h>.
63530         * modules/wcwidth (Depends-on): Depend on wchar.
63531         * lib/wcwidth.h: Assume <wchar.h>.
63532         * m4/wcwidth.m4: Likewise.
63533
63534 2007-01-16  Bruno Haible  <bruno@clisp.org>
63535
63536         * modules/csharpexec-script: New, created from...
63537         * modules/csharpexec: ... this.
63538
63539 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63540
63541         * modules/javaexec-script: New, created from...
63542         * modules/javaexec: ... this.
63543
63544 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63545
63546         * modules/poll (Dependencies): Add sys_select.
63547
63548 2007-01-15  Jim Meyering  <jim@meyering.net>
63549
63550         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63551         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63552         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63553         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63554
63555 2007-01-15  Bruno Haible  <bruno@clisp.org>
63556
63557         * modules/striconveh: New file.
63558         * lib/striconveh.h: New file.
63559         * lib/striconveh.c: New file.
63560         * MODULES.html.sh (Internationalization functions): Add striconveh.
63561
63562         * modules/striconveh-tests: New file.
63563         * tests/test-striconveh.c: New file.
63564
63565 2007-01-15  Bruno Haible  <bruno@clisp.org>
63566
63567         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63568         not from GNU libiconv or GNU libc.
63569
63570 2007-01-15  Bruno Haible  <bruno@clisp.org>
63571
63572         * doc/gnulib-intro.texi (Copyright): Explain the different license
63573         terms for module descriptions, autoconf macros, tests, documentation.
63574
63575 2007-01-14  Bruno Haible  <bruno@clisp.org>
63576
63577         * modules/striconv-tests: New file.
63578         * tests/test-striconv.c: New file.
63579
63580 2007-01-14  Bruno Haible  <bruno@clisp.org>
63581
63582         * modules/iconv-tests: New file.
63583         * tests/test-iconv.c: New file.
63584
63585 2007-01-14  Bruno Haible  <bruno@clisp.org>
63586
63587         * gnulib-tool (func_get_license): For test modules, use the license of
63588         the main module.
63589
63590 2007-01-14  Bruno Haible  <bruno@clisp.org>
63591
63592         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63593         if iconv is found to exist.
63594
63595 2007-01-14  Bruno Haible  <bruno@clisp.org>
63596
63597         * modules/c-ctype-tests: New file.
63598         * tests/test-c-ctype.c: New file.
63599
63600 2007-01-14  Bruno Haible  <bruno@clisp.org>
63601
63602         * modules/binary-io-tests: New file.
63603         * tests/test-binary-io.sh: New file.
63604         * tests/test-binary-io.c: New file.
63605
63606 2007-01-14  Bruno Haible  <bruno@clisp.org>
63607
63608         * modules/array-oset-tests: New file.
63609         * tests/test-array_oset.c: New file.
63610
63611 2007-01-14  Bruno Haible  <bruno@clisp.org>
63612
63613         * modules/array-list-tests: New file.
63614         * tests/test-array_list.c: New file.
63615
63616 2007-01-14  Bruno Haible  <bruno@clisp.org>
63617
63618         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63619         and make.
63620         Reported by Simon Josefsson in
63621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63622
63623 2007-01-14  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/allocsa-tests: New file.
63626         * tests/test-allocsa.c: New file.
63627
63628 2007-01-14  Bruno Haible  <bruno@clisp.org>
63629
63630         * modules/fchdir (Depends-on): Add absolute-header.
63631         * modules/unistd (Depends-on): Likewise.
63632
63633 2006-12-30  Bruno Haible  <bruno@clisp.org>
63634
63635         * modules/fchdir: New file.
63636         * modules/unistd (Files): Add lib/unistd_.h.
63637         (Makefile.am): Generate unistd.h from unistd_.h.
63638         * lib/fchdir.c: New file.
63639         * lib/dirent_.h: New file.
63640         * lib/unistd_.h: New file.
63641         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63642         * m4/fchdir.m4: New file.
63643         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63644         (gl_HEADER_UNISTD): Invoke it.
63645         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63646         function.
63647         * lib/backupfile.c (opendir, closedir): Undefine.
63648         * lib/chown.c (open, close): Undefine.
63649         * lib/clean-temp.c (open, close): Undefine.
63650         * lib/copy-file.c (open, close): Undefine.
63651         * lib/execute.c (open, close): Undefine.
63652         * lib/fsusage.c (open, close): Undefine.
63653         * lib/gc-gnulib.c (open, close): Undefine.
63654         * lib/getcwd.c (opendir, closedir): Undefine.
63655         * lib/glob.c (opendir, closedir): Undefine.
63656         * lib/javacomp.c (open, close): Undefine.
63657         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63658         * lib/openat-proc.c (open, close): Undefine.
63659         * lib/pagealign_alloc.c (open, close): Undefine.
63660         * lib/pipe.c (open, close): Undefine.
63661         * lib/progreloc.c (open, close): Undefine.
63662         * lib/savedir.c (opendir, closedir): Undefine.
63663         * lib/utime.c (open, close): Undefine.
63664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63665
63666 2007-01-10  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63669
63670 2007-01-12  Eric Blake  <ebb9@byu.net>
63671
63672         Provide a robust <wchar.h>.  Further simplifications are now
63673         possible in other modules, but not included here.
63674         * modules/wchar: New module.
63675         * m4/wchar.m4: New file.
63676         * lib/wchar_.h: Likewise.
63677         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63678         of the new module.
63679         * MODULES.html.sh (Extended multibyte and wide character utilities):
63680         New section.
63681
63682 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63685         to a reasonable default for memory allocation.
63686         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63687         file system that reports garbage st_size values for symlinks.
63688         Problem reported by Liyang Hu.
63689
63690 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63691
63692         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63693         Emacs .#* auto-save files).
63694
63695 2007-01-11  Bruno Haible  <bruno@clisp.org>
63696
63697         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63698         directory.
63699
63700 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63701
63702         Use @...@ consistently in lib/wctype_.h.
63703         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63704         on it being set to 1 or 0.
63705         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63706         go back to AC_SUBSTing it.
63707         * modules/wctype (Makefile.am): Undo previous change.
63708
63709 2007-01-10  Eric Blake  <ebb9@byu.net>
63710
63711         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63712         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63713         * modules/wctype (Makefile.am): Likewise.
63714         Reported by Chris McGuire.
63715
63716 2007-01-10  Jim Meyering  <jim@meyering.net>
63717
63718         fts.c: a small readability/maintainability improvement
63719         * lib/fts.c (fts_read): Make this code slightly more readable and
63720         maintainable by hoisting the "sp->fts_cur = p" assignments to
63721         immediately follow the statements that set P.  Derived from
63722         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63723
63724 2007-01-10  Eric Blake  <ebb9@byu.net>
63725
63726         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63727         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63729         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63730         Reported by Chris McGuire.
63731
63732 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63733
63734         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63735         in sed script.
63736
63737 2007-01-09  Bruno Haible  <bruno@clisp.org>
63738
63739         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63740         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63741         variables.
63742         (func_module): Use them.
63743
63744 2007-01-09  Bruno Haible  <bruno@clisp.org>
63745
63746         * modules/unistr/base: New file.
63747         * lib/unistr.h: New file.
63748
63749         * modules/unistr/u8-to-u16: New file.
63750         * lib/unistr/u8-to-u16.c: New file.
63751
63752         * modules/unistr/u8-to-u32: New file.
63753         * lib/unistr/u8-to-u32.c: New file.
63754
63755         * modules/unistr/u16-to-u8: New file.
63756         * lib/unistr/u16-to-u8.c: New file.
63757
63758         * modules/unistr/u16-to-u32: New file.
63759         * lib/unistr/u16-to-u32.c: New file.
63760
63761         * modules/unistr/u32-to-u8: New file.
63762         * lib/unistr/u32-to-u8.c: New file.
63763
63764         * modules/unistr/u32-to-u16: New file.
63765         * lib/unistr/u32-to-u16.c: New file.
63766
63767         * modules/unistr/u8-check: New file.
63768         * modules/unistr/u16-check: New file.
63769         * modules/unistr/u32-check: New file.
63770         * lib/unistr/u8-check.c: New file.
63771         * lib/unistr/u16-check.c: New file.
63772         * lib/unistr/u32-check.c: New file.
63773
63774         * modules/unistr/u8-chr: New file.
63775         * modules/unistr/u16-chr: New file.
63776         * modules/unistr/u32-chr: New file.
63777         * lib/unistr/u8-chr.c: New file.
63778         * lib/unistr/u16-chr.c: New file.
63779         * lib/unistr/u32-chr.c: New file.
63780
63781         * modules/unistr/u8-cmp: New file.
63782         * modules/unistr/u16-cmp: New file.
63783         * modules/unistr/u32-cmp: New file.
63784         * lib/unistr/u8-cmp.c: New file.
63785         * lib/unistr/u16-cmp.c: New file.
63786         * lib/unistr/u32-cmp.c: New file.
63787
63788         * modules/unistr/u8-cpy: New file.
63789         * modules/unistr/u16-cpy: New file.
63790         * modules/unistr/u32-cpy: New file.
63791         * lib/unistr/u8-cpy.c: New file.
63792         * lib/unistr/u16-cpy.c: New file.
63793         * lib/unistr/u32-cpy.c: New file.
63794         * lib/unistr/u-cpy.h: New file.
63795
63796         * modules/unistr/u8-cpy-alloc: New file.
63797         * modules/unistr/u16-cpy-alloc: New file.
63798         * modules/unistr/u32-cpy-alloc: New file.
63799         * lib/unistr/u8-cpy-alloc.c: New file.
63800         * lib/unistr/u16-cpy-alloc.c: New file.
63801         * lib/unistr/u32-cpy-alloc.c: New file.
63802         * lib/unistr/u-cpy-alloc.h: New file.
63803
63804         * modules/unistr/u8-endswith: New file.
63805         * modules/unistr/u16-endswith: New file.
63806         * modules/unistr/u32-endswith: New file.
63807         * lib/unistr/u8-endswith.c: New file.
63808         * lib/unistr/u16-endswith.c: New file.
63809         * lib/unistr/u32-endswith.c: New file.
63810         * lib/unistr/u-endswith.h: New file.
63811
63812         * modules/unistr/u8-mblen: New file.
63813         * modules/unistr/u16-mblen: New file.
63814         * modules/unistr/u32-mblen: New file.
63815         * lib/unistr/u8-mblen.c: New file.
63816         * lib/unistr/u16-mblen.c: New file.
63817         * lib/unistr/u32-mblen.c: New file.
63818
63819         * modules/unistr/u8-mbtouc: New file.
63820         * modules/unistr/u16-mbtouc: New file.
63821         * modules/unistr/u32-mbtouc: New file.
63822         * lib/unistr/u8-mbtouc.c: New file.
63823         * lib/unistr/u16-mbtouc.c: New file.
63824         * lib/unistr/u32-mbtouc.c: New file.
63825
63826         * modules/unistr/u8-mbtouc-safe: New file.
63827         * modules/unistr/u16-mbtouc-safe: New file.
63828         * modules/unistr/u32-mbtouc-safe: New file.
63829         * lib/unistr/u8-mbtouc-safe.c: New file.
63830         * lib/unistr/u16-mbtouc-safe.c: New file.
63831         * lib/unistr/u32-mbtouc-safe.c: New file.
63832
63833         * modules/unistr/u8-move: New file.
63834         * modules/unistr/u16-move: New file.
63835         * modules/unistr/u32-move: New file.
63836         * lib/unistr/u8-move.c: New file.
63837         * lib/unistr/u16-move.c: New file.
63838         * lib/unistr/u32-move.c: New file.
63839         * lib/unistr/u-move.h: New file.
63840
63841         * modules/unistr/u8-next: New file.
63842         * modules/unistr/u16-next: New file.
63843         * modules/unistr/u32-next: New file.
63844         * lib/unistr/u8-next.c: New file.
63845         * lib/unistr/u16-next.c: New file.
63846         * lib/unistr/u32-next.c: New file.
63847
63848         * modules/unistr/u8-prev: New file.
63849         * modules/unistr/u16-prev: New file.
63850         * modules/unistr/u32-prev: New file.
63851         * lib/unistr/u8-prev.c: New file.
63852         * lib/unistr/u16-prev.c: New file.
63853         * lib/unistr/u32-prev.c: New file.
63854
63855         * modules/unistr/u8-set: New file.
63856         * modules/unistr/u16-set: New file.
63857         * modules/unistr/u32-set: New file.
63858         * lib/unistr/u8-set.c: New file.
63859         * lib/unistr/u16-set.c: New file.
63860         * lib/unistr/u32-set.c: New file.
63861         * lib/unistr/u-set.h: New file.
63862
63863         * modules/unistr/u8-startswith: New file.
63864         * modules/unistr/u16-startswith: New file.
63865         * modules/unistr/u32-startswith: New file.
63866         * lib/unistr/u8-startswith.c: New file.
63867         * lib/unistr/u16-startswith.c: New file.
63868         * lib/unistr/u32-startswith.c: New file.
63869         * lib/unistr/u-startswith.h: New file.
63870
63871         * modules/unistr/u8-stpcpy: New file.
63872         * modules/unistr/u16-stpcpy: New file.
63873         * modules/unistr/u32-stpcpy: New file.
63874         * lib/unistr/u8-stpcpy.c: New file.
63875         * lib/unistr/u16-stpcpy.c: New file.
63876         * lib/unistr/u32-stpcpy.c: New file.
63877         * lib/unistr/u-stpcpy.h: New file.
63878
63879         * modules/unistr/u8-stpncpy: New file.
63880         * modules/unistr/u16-stpncpy: New file.
63881         * modules/unistr/u32-stpncpy: New file.
63882         * lib/unistr/u8-stpncpy.c: New file.
63883         * lib/unistr/u16-stpncpy.c: New file.
63884         * lib/unistr/u32-stpncpy.c: New file.
63885         * lib/unistr/u-stpncpy.h: New file.
63886
63887         * modules/unistr/u8-strcat: New file.
63888         * modules/unistr/u16-strcat: New file.
63889         * modules/unistr/u32-strcat: New file.
63890         * lib/unistr/u8-strcat.c: New file.
63891         * lib/unistr/u16-strcat.c: New file.
63892         * lib/unistr/u32-strcat.c: New file.
63893         * lib/unistr/u-strcat.h: New file.
63894
63895         * modules/unistr/u8-strchr: New file.
63896         * modules/unistr/u16-strchr: New file.
63897         * modules/unistr/u32-strchr: New file.
63898         * lib/unistr/u8-strchr.c: New file.
63899         * lib/unistr/u16-strchr.c: New file.
63900         * lib/unistr/u32-strchr.c: New file.
63901
63902         * modules/unistr/u8-strcmp: New file.
63903         * modules/unistr/u16-strcmp: New file.
63904         * modules/unistr/u32-strcmp: New file.
63905         * lib/unistr/u8-strcmp.c: New file.
63906         * lib/unistr/u16-strcmp.c: New file.
63907         * lib/unistr/u32-strcmp.c: New file.
63908
63909         * modules/unistr/u8-strcpy: New file.
63910         * modules/unistr/u16-strcpy: New file.
63911         * modules/unistr/u32-strcpy: New file.
63912         * lib/unistr/u8-strcpy.c: New file.
63913         * lib/unistr/u16-strcpy.c: New file.
63914         * lib/unistr/u32-strcpy.c: New file.
63915         * lib/unistr/u-strcpy.h: New file.
63916
63917         * modules/unistr/u8-strcspn: New file.
63918         * modules/unistr/u16-strcspn: New file.
63919         * modules/unistr/u32-strcspn: New file.
63920         * lib/unistr/u8-strcspn.c: New file.
63921         * lib/unistr/u16-strcspn.c: New file.
63922         * lib/unistr/u32-strcspn.c: New file.
63923         * lib/unistr/u-strcspn.h: New file.
63924
63925         * modules/unistr/u8-strdup: New file.
63926         * modules/unistr/u16-strdup: New file.
63927         * modules/unistr/u32-strdup: New file.
63928         * lib/unistr/u8-strdup.c: New file.
63929         * lib/unistr/u16-strdup.c: New file.
63930         * lib/unistr/u32-strdup.c: New file.
63931         * lib/unistr/u-strdup.h: New file.
63932
63933         * modules/unistr/u8-strlen: New file.
63934         * modules/unistr/u16-strlen: New file.
63935         * modules/unistr/u32-strlen: New file.
63936         * lib/unistr/u8-strlen.c: New file.
63937         * lib/unistr/u16-strlen.c: New file.
63938         * lib/unistr/u32-strlen.c: New file.
63939         * lib/unistr/u-strlen.h: New file.
63940
63941         * modules/unistr/u8-strmblen: New file.
63942         * modules/unistr/u16-strmblen: New file.
63943         * modules/unistr/u32-strmblen: New file.
63944         * lib/unistr/u8-strmblen.c: New file.
63945         * lib/unistr/u16-strmblen.c: New file.
63946         * lib/unistr/u32-strmblen.c: New file.
63947
63948         * modules/unistr/u8-strmbtouc: New file.
63949         * modules/unistr/u16-strmbtouc: New file.
63950         * modules/unistr/u32-strmbtouc: New file.
63951         * lib/unistr/u8-strmbtouc.c: New file.
63952         * lib/unistr/u16-strmbtouc.c: New file.
63953         * lib/unistr/u32-strmbtouc.c: New file.
63954
63955         * modules/unistr/u8-strncat: New file.
63956         * modules/unistr/u16-strncat: New file.
63957         * modules/unistr/u32-strncat: New file.
63958         * lib/unistr/u8-strncat.c: New file.
63959         * lib/unistr/u16-strncat.c: New file.
63960         * lib/unistr/u32-strncat.c: New file.
63961         * lib/unistr/u-strncat.h: New file.
63962
63963         * modules/unistr/u8-strncmp: New file.
63964         * modules/unistr/u16-strncmp: New file.
63965         * modules/unistr/u32-strncmp: New file.
63966         * lib/unistr/u8-strncmp.c: New file.
63967         * lib/unistr/u16-strncmp.c: New file.
63968         * lib/unistr/u32-strncmp.c: New file.
63969
63970         * modules/unistr/u8-strncpy: New file.
63971         * modules/unistr/u16-strncpy: New file.
63972         * modules/unistr/u32-strncpy: New file.
63973         * lib/unistr/u8-strncpy.c: New file.
63974         * lib/unistr/u16-strncpy.c: New file.
63975         * lib/unistr/u32-strncpy.c: New file.
63976         * lib/unistr/u-strncpy.h: New file.
63977
63978         * modules/unistr/u8-strnlen: New file.
63979         * modules/unistr/u16-strnlen: New file.
63980         * modules/unistr/u32-strnlen: New file.
63981         * lib/unistr/u8-strnlen.c: New file.
63982         * lib/unistr/u16-strnlen.c: New file.
63983         * lib/unistr/u32-strnlen.c: New file.
63984         * lib/unistr/u-strnlen.h: New file.
63985
63986         * modules/unistr/u8-strpbrk: New file.
63987         * modules/unistr/u16-strpbrk: New file.
63988         * modules/unistr/u32-strpbrk: New file.
63989         * lib/unistr/u8-strpbrk.c: New file.
63990         * lib/unistr/u16-strpbrk.c: New file.
63991         * lib/unistr/u32-strpbrk.c: New file.
63992         * lib/unistr/u-strpbrk.h: New file.
63993
63994         * modules/unistr/u8-strrchr: New file.
63995         * modules/unistr/u16-strrchr: New file.
63996         * modules/unistr/u32-strrchr: New file.
63997         * lib/unistr/u8-strrchr.c: New file.
63998         * lib/unistr/u16-strrchr.c: New file.
63999         * lib/unistr/u32-strrchr.c: New file.
64000
64001         * modules/unistr/u8-strspn: New file.
64002         * modules/unistr/u16-strspn: New file.
64003         * modules/unistr/u32-strspn: New file.
64004         * lib/unistr/u8-strspn.c: New file.
64005         * lib/unistr/u16-strspn.c: New file.
64006         * lib/unistr/u32-strspn.c: New file.
64007         * lib/unistr/u-strspn.h: New file.
64008
64009         * modules/unistr/u8-strstr: New file.
64010         * modules/unistr/u16-strstr: New file.
64011         * modules/unistr/u32-strstr: New file.
64012         * lib/unistr/u8-strstr.c: New file.
64013         * lib/unistr/u16-strstr.c: New file.
64014         * lib/unistr/u32-strstr.c: New file.
64015         * lib/unistr/u-strstr.h: New file.
64016
64017         * modules/unistr/u8-strtok: New file.
64018         * modules/unistr/u16-strtok: New file.
64019         * modules/unistr/u32-strtok: New file.
64020         * lib/unistr/u8-strtok.c: New file.
64021         * lib/unistr/u16-strtok.c: New file.
64022         * lib/unistr/u32-strtok.c: New file.
64023         * lib/unistr/u-strtok.h: New file.
64024
64025         * modules/unistr/u8-uctomb: New file.
64026         * modules/unistr/u16-uctomb: New file.
64027         * modules/unistr/u32-uctomb: New file.
64028         * lib/unistr/u8-uctomb.c: New file.
64029         * lib/unistr/u16-uctomb.c: New file.
64030         * lib/unistr/u32-uctomb.c: New file.
64031
64032         * MODULES.html.sh (Unicode string functions): Add the new modules.
64033
64034 2007-01-08  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64037         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64038         subdirectories.
64039
64040 2007-01-08  Karl Berry  <karl@gnu.org>
64041
64042         * doc/error.texi: mention that main() fns must set program_name
64043         when progname is used.
64044
64045 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64048         WCTYPE_H is empty, for the benefit of builds from non-distclean
64049         directories.  Problem reported by Eric Blake in
64050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64051
64052 2007-01-08  Bruno Haible  <bruno@clisp.org>
64053
64054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64055         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64056         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64057         PROVIDE_CANONICALIZE_FILENAME_MODE.
64058         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64059
64060 2007-01-08  Bruno Haible  <bruno@clisp.org>
64061
64062         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64063         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64064         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64065         * lib/fts.c: Likewise.
64066         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64067
64068 2006-12-25  Bruno Haible  <bruno@clisp.org>
64069
64070         * modules/utf8-ucs4-safe: New file.
64071         * lib/utf8-ucs4-safe.h: New file.
64072         * lib/unistr/utf8-ucs4-safe.c: New file.
64073
64074         * modules/utf16-ucs4-safe: New file.
64075         * lib/utf16-ucs4-safe.h: New file.
64076         * lib/unistr/utf16-ucs4-safe.c: New file.
64077
64078         * MODULES.html.sh (Unicode string functions): Add the new modules.
64079
64080 2007-01-08  Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64083         (Depends-on): Add unitypes.
64084         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64085         (u8_mbtouc_aux): Move out to separate file.
64086         (u8_mbtouc): Use ucs4_t, uint8_t types.
64087         * lib/unistr/utf8-ucs4.c: New file.
64088
64089         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64090         (Depends-on): Add unitypes.
64091         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64092         (u16_mbtouc_aux): Move out to separate file.
64093         (u16_mbtouc): Use ucs4_t, uint16_t types.
64094         * lib/unistr/utf16-ucs4.c: New file.
64095
64096         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64097         (Depends-on): Add unitypes.
64098         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64099         (u8_uctomb_aux): Move out to separate file.
64100         (u8_uctomb): Use ucs4_t, uint8_t types.
64101         * lib/unistr/ucs4-utf8.c: New file.
64102
64103         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64104         (Depends-on): Add unitypes.
64105         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64106         (u16_uctomb_aux): Move out to separate file.
64107         (u16_uctomb): Use ucs4_t, uint16_t types.
64108         * lib/unistr/ucs4-utf16.c: New file.
64109
64110 2006-12-25  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/unitypes: New file.
64113         * lib/unitypes.h: New file.
64114         * MODULES.html.sh (func_all_modules): New section "Unicode string
64115         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64116         this section. Add unitypes.
64117
64118 2007-01-08  Bruno Haible  <bruno@clisp.org>
64119
64120         Avoid variable names that conflict with those from libtool.
64121         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64122         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64123         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64124         library_names_spec to acl_library_names_spec, hardcode_* to
64125         acl_hardcode_*.
64126         Reported by Ralf Wildenhues.
64127
64128 2007-01-08  Bruno Haible  <bruno@clisp.org>
64129
64130         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64131         definition.
64132         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64133         definition.
64134         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64135         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64136         definition.
64137         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64138         definition.
64139         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64140         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64141         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64142         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64143         definition.
64144         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64145         definition.
64146         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64147         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64148         GC_USE_<algorithm>.
64149         * lib/gc-libgcrypt.c: Likewise.
64150         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64151         * modules/gc-arctwo (configure.ac): Likewise.
64152         * modules/gc-des (configure.ac): Likewise.
64153         * modules/gc-hmac-md5 (configure.ac): Likewise.
64154         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64155         * modules/gc-md2 (configure.ac): Likewise.
64156         * modules/gc-md4 (configure.ac): Likewise.
64157         * modules/gc-md5 (configure.ac): Likewise.
64158         * modules/gc-random (configure.ac): Likewise.
64159         * modules/gc-rijndael (configure.ac): Likewise.
64160         * modules/gc-sha1 (configure.ac): Likewise.
64161
64162 2007-01-08  Bruno Haible  <bruno@clisp.org>
64163
64164         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64165         macro definition.
64166         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64167         definition.
64168         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64169         definition.
64170         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64171         * modules/fcntl-safer (configure.ac): Likewise.
64172         * modules/fopen-safer (configure.ac): Likewise.
64173         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64174         GNULIB_FWRITEERROR macro definition.
64175
64176 2007-01-08  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/gnulib-common.m4: New file.
64179         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64180         (func_get_filelist): Add m4/gnulib-common.m4.
64181
64182 2007-01-08  Bruno Haible  <bruno@clisp.org>
64183
64184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64185         command.
64186
64187 2007-01-08  Jim Meyering  <jim@meyering.net>
64188
64189         Use a more robust test for a "can't happen" condition.
64190         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64191         narrowed the st_size value.  Presuming the "can't happen" condition
64192         is true, that narrowing could conceivably convert an invalid st_size
64193         value into a valid one.  Instead, use a change based on Matthew
64194         Woehlke's original patch.
64195
64196         Slight readability improvement: use an assert-like macro
64197         in place of literal "abort ()" uses.
64198         * lib/fts.c (fts_assert): Define.
64199         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64200         Use this macro instead of a bare 'abort'.
64201
64202 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64205         simply work around them.
64206         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64207         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64208         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64209         declaring.
64210         Don't bother to define as macros, since the standard doesn't require it.
64211         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64212         longer worry about IRIX 5.3.
64213         (HAVE_WCTYPE_CTMP_BUG): Remove.
64214
64215 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64218         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64219         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64220         Problems reported by Georg Schwarz for IRIX 5.3.
64221
64222         * gnulib-tool (autoconf_minversion): Take the maximum version number
64223         found, not the minimum.  Problem reported by James Youngman.
64224
64225 2007-01-03  Karl Berry  <karl@gnu.org>
64226
64227         * doc/error.texi: new file, explaining interaction with progname.
64228         * doc/gnulib.texi: include it.  Update copyright.
64229
64230 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64231
64232         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64233         AC_CANONICAL_HOST, to improve autobuild outputs.
64234
64235 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64236             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64237
64238         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64239         sockets, server sockets, and other file descriptors.  Count errors
64240         to compute the return value.  Reorder the code a bit to be easier
64241         to follow.  Don't set event bits that were not requested (except
64242         POLLERR and POLLHUP).
64243
64244 2007-01-01  Bruno Haible  <bruno@clisp.org>
64245
64246         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64247
64248 2007-01-03  Jim Meyering  <jim@meyering.net>
64249
64250         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64251
64252 2007-01-02  Bruno Haible  <bruno@clisp.org>
64253
64254         * modules/settime (Include): Require timespec.h.
64255         * modules/nanosleep (Include): Likewise.
64256
64257 2007-01-01  Bruno Haible  <bruno@clisp.org>
64258
64259         * gnulib-tool (func_emit_copyright_notice): Bump year.
64260         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64261
64262 2007-01-01  Bruno Haible  <bruno@clisp.org>
64263
64264         Improve support for OpenBSD.
64265         * build-aux/config.rpath (libname_spec): Export.
64266         (library_names_spec): New variable. Export.
64267         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64268         library_names_spec from the config.rpath output. Locate shared library
64269         through the name pattern in library_names_spec.
64270
64271 2007-01-01  Eric Blake  <ebb9@byu.net>
64272
64273         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64274
64275 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64278         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64279         assume the C locale, and avoid an "eval" that could cause trouble.
64280         Problem with SORT reported by Bob Proulx.
64281
64282         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64283         Define.  Trivial patch from Henning Nielsen Lund, originally
64284         sent to bug-grep@gnu.org today.
64285
64286 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64287
64288         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64289         struct stat.  Problem reported by Henning Nielsen Lund.
64290         * lib/acl.c: Include acl.h first, to check interface.  Don't
64291         bother to include sys/types.h and sys/stat.h again.
64292
64293 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         Import the following change from libc; problem reported by
64296         Sven Verdoolaege.
64297
64298         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64299
64300         [BZ #1373]
64301         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64302
64303 2006-12-28  Jim Meyering  <jim@meyering.net>
64304
64305         * build-aux/announce-gen: Do not assume that the package
64306         builds any of tar.gz, tar.bz2, and .xdelta files.
64307         Suggestion from Simon Josefsson.
64308
64309 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64310
64311         * modules/announce-gen: New file.
64312
64313 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64316         handles its gotchas now.
64317         * lib/mbswidth.c: Likewise.
64318         * lib/wcwidth.h: Likewise.
64319         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64320         and iswcntrl; the wctype module does this stuff now.
64321         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64323         * modules/mbchar (Depends-on): Add wctype.
64324         * modules/mbswidth (Depends-on): Likewise.
64325         * modules/wcwidth (Depends-on): Likewise.
64326
64327 2006-12-27  Eric Blake  <ebb9@byu.net>
64328
64329         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64330         module uses more than what <wctype.h> is required to provide.
64331
64332 2006-12-26  Eric Blake  <ebb9@byu.net>
64333
64334         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64335
64336 2006-12-26  Eric Blake  <ebb9@byu.net>
64337
64338         * modules/absolute-header: New module.
64339         * modules/fcntl (Depends-on): Depend on it.
64340         * modules/inttypes (Depends-on): Likewise.
64341         * modules/stdint (Depends-on): Likewise.
64342         * modules/sys_stat (Depends-on): Likewise.
64343         * modules/wctype (Depends-on): Likewise.
64344         * MODULES.html.sh (Support for building libraries and
64345         executables): Document it.
64346
64347 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64348
64349         * gnulib-tool (SED): Remove, undoing previous change.
64350         The problem was that it broke coreutils on Solaris, because
64351         "sed --posix" leaked into a makefile.
64352         (sed): New alias, if 'alias' and GNU sed.
64353
64354 2006-12-24  Jim Meyering  <jim@meyering.net>
64355
64356         Work around an fchownat bug in glibc-2.4:
64357         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64358         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64359         in spite of the -P option.
64360         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64361         New macros.
64362         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64363         * modules/openat (Files): Add lib/fchownat.c.
64364         * lib/openat.c (fchownat): Don't define here.  Move to...
64365         * lib/fchownat.c: ...this new file.
64366
64367 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64368
64369         Fix bug reported by Bruno Haible in
64370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64371         where quotearg.c didn't compile on Mac OS X 10.2 because it
64372         lacks <wchar.h> and wint_t.
64373         * lib/wctype_.h (__wctype_wint_t): New type.
64374         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64375         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64376         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64377         Arg is now of type __wctype_wint_t, not wint_t.
64378         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64379         substitute HAVE_WINT_T.
64380         * modules/wctype (Files): Add m4/wint_t.m4.
64381         (wctype.h): Substitute HAVE_WINT_T.
64382
64383 2006-12-23  Bruno Haible  <bruno@clisp.org>
64384
64385         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64386
64387 2006-12-23  Bruno Haible  <bruno@clisp.org>
64388
64389         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64390         S_ISLNK.
64391         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64392         mingw.
64393
64394 2006-12-22  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/copy-file.c: Include acl.h.
64397         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64398         Close the file descriptors only after being done with copy_acl.
64399         * modules/copy-file (Depends-on): Add acl.
64400
64401 2006-12-22  Bruno Haible  <bruno@clisp.org>
64402
64403         * gnulib-tool (SED): New variable.
64404         Use $SED instead of sed everywhere.
64405
64406 2006-12-22  Bruno Haible  <bruno@clisp.org>
64407
64408         * modules/no-c++: New file.
64409         * m4/no-c++.m4: New file.
64410         * MODULES.html.sh (Support for building libraries and executables):
64411         Add no-c++.
64412
64413 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64416         Include <limits.h>, and use its INT_MAX to rewrite the
64417         j loop so that it does not overflow 'int'.  Problem reported by
64418         Ralf Wildenhues in
64419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64420         Play it safe by shifting left by 1 rather than multiplying by 2,
64421         as GCC is less likely to optimize this away when the value
64422         is signed (when it assumes overflow leads to undefined behavior).
64423         Also, don't assume time_t uses two's complement.
64424
64425 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64426
64427         * MODULES.html.sh: New module wctype.
64428         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64429         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64430         <wctype.h>, since the new wctype module should fix this.
64431         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64432         the wctype module should arrange for it.
64433         * lib/regex_internal.h: Likewise.
64434         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64435         since the wctype module should handle this now.
64436         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64437         * modules/fnmatch (Depends-on): Add wctype.
64438         * modules/quotearg (Depends-on): Likewise.
64439         * modules/regex (Depends-on): Likewise.
64440
64441 2006-12-19  Bruno Haible  <bruno@clisp.org>
64442
64443         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64444         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64445
64446 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64447
64448         * modules/savewd (Depends-on): Fix dependency on fcntl.
64449
64450 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64453         conforms to C99, rather than relying on the user's environment
64454         setting of STDINT_H.
64455
64456 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64457         and Eric Blake  <ebb9@byu.net>
64458
64459         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64460         This is more consistent with the other defines here.
64461         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64462         Port to z/OS.  Problem reported by Paul Gilmartin.
64463         Change local vars to use gl_ prefix rather than ac_.
64464         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64465         with other defines.
64466         * modules/double-slash-root: New module.
64467         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64468         (Depends-on): Add double-slash-root.
64469         * MODULES.html.sh (File system functions): Mention new module.
64470
64471 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64474         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64475         This is for the benefit of gzip, which doesn't do i18n.
64476
64477 2006-12-12  Jim Meyering  <jim@meyering.net>
64478
64479         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64480         Reported by Andreas Schwab <schwab@suse.de>.
64481
64482 2006-12-12  Bruno Haible  <bruno@clisp.org>
64483
64484         Merge these changes.
64485         2006-09-05  Bruno Haible  <bruno@clisp.org>
64486         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64487         iconv_alloc succeeded.
64488         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64489         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64490         test for " && dest " at the end - dest is always != NULL there. Call
64491         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64492         with 2xNULL arguments, also to flush the state storage. Handle the
64493         IRIX iconv behaviour. Realloc the final result, to throw away unused
64494         memory.
64495
64496 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64499         and fchmodat unconditionally, since glibc 2.4 has them.
64500         Problem reported by Arkadiusz Miskiewicz.
64501
64502 2006-12-10  Bruno Haible  <bruno@clisp.org>
64503
64504         * gnulib-tool (func_import): Show the include files only for those
64505         modules that are copied and specified.
64506         Reported by Karl Berry.
64507
64508 2006-12-08  Jim Meyering  <jim@meyering.net>
64509
64510         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64511         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64512
64513         * build-aux/announce-gen: Add two new options, both optional:
64514         --bootstrap-tools=TOOL_LIST
64515               a comma-separated list of tools, e.g.,
64516               autoconf,automake,bison,gnulib
64517         --gnulib-snapshot-date=DATE
64518               if gnulib is in the bootstrap tool list,
64519               then report this as the snapshot date.
64520               If not specified, use the current date/time.
64521               If you specify a date here, be sure it's UTC.
64522
64523 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64524
64525         * tests/test-argp-2.sh: Fix test to match actual output.
64526         (func_compare): Fix sed script to be portable.
64527
64528 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64531         workaround for this case.  It is not autoconfigured now; offhand
64532         it's hard to see how to autoconfigure it.
64533
64534 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64537         a directory that is about to be chowned.  Such a directory's
64538         initial file permissions should permit the owner only and this
64539         should not be changed until after the chown, since the group and
64540         other bits would be incorrect if they granted permission before
64541         the chown.
64542
64543         Fix porting problem for iswctype reported by Georg Schwarz in:
64544         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64545         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64546         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64548         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64549
64550 2006-12-03  Jim Meyering  <jim@meyering.net>
64551
64552         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64553         p->fts_statp may not yet be defined.
64554         (fts_read): Instead, set it in the caller, once p->fts_statp is
64555         sure to be defined, and corresponds to a top-level directory.
64556         This bug made du -x fail.  Here's the coreutils test case:
64557         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64558         Reported by Mike Frysinger.
64559
64560 2006-12-01  Jim Meyering  <jim@meyering.net>
64561
64562         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64563         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64564         Reported by Simon Josefsson.
64565
64566 2006-11-30  Jim Meyering  <jim@meyering.net>
64567
64568         * m4/warning.m4: Use the all-permissive copyright notice
64569         recommended by RMS (rather than LGPL).
64570         * m4/vararrays.m4: Likewise.
64571         * m4/flexmember.m4: Likewise.
64572
64573 2006-11-29  Bruno Haible  <bruno@clisp.org>
64574
64575         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64576         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64577         using +=.
64578         Reported by Simon Josefsson <simon@josefsson.org>.
64579
64580 2006-11-28  James Youngman <jay@gnu.org>
64581
64582         * README: Advise users that they might find the bug-gnulib@gnu.org
64583         and autotools-announce@gnu.org mailing lists useful.
64584
64585 2006-11-28  Bruno Haible  <bruno@clisp.org>
64586
64587         * m4/ptrdiff_max.m4: Remove file.
64588
64589 2006-11-21  Bruno Haible  <bruno@clisp.org>
64590
64591         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64592         _AC_COMPUTE_INT.
64593         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64594         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64595         _AC_COMPUTE_INT.
64596         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64597         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64598         _AC_COMPUTE_INT.
64599         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64600
64601 2006-11-28  Jim Meyering  <jim@meyering.net>
64602
64603         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64604         warning from "gcc -Wshadow" about shadowing the builtin.
64605
64606 2006-11-27  Bruno Haible  <bruno@clisp.org>
64607
64608         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64609         _AC_COMPUTE_INT.
64610         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64611
64612 2006-11-27  Bruno Haible  <bruno@clisp.org>
64613             Paul Eggert  <eggert@cs.ucla.edu>
64614
64615         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64616
64617 2006-11-26  Bruno Haible  <bruno@clisp.org>
64618
64619         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64620         noinst_LTLIBRARIES.
64621
64622 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64623             Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64626         if compiling with "gcc -ansi".
64627
64628 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         Fix some incompatibilities with gcc -ansi -pedantic.
64631         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64632         if compiling pedantically with GCC, unless it's C99 or later.
64633         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64634         it mishandles gcc -ansi -pedantic as well.
64635         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64636         if gcc -pedantic.
64637         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64638         initializers for struct if -pedantic, unless it's C99 or later.
64639
64640 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64641
64642         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64643         Don't close an fd more than once. Identical atimes indicate
64644         success, not failure.
64645
64646 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64647
64648         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64649
64650 2006-11-23  Jim Meyering  <jim@meyering.net>
64651
64652         * build-aux/announce-gen: New file.  From coreutils.
64653
64654 2006-11-22  Jim Meyering  <jim@meyering.net>
64655
64656         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64657         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64658         (fts_read): Use a temporary to narrow the overused st_size member
64659         before using it in a switch statement.  Reported by Matthew Woehlke.
64660
64661         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64662         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64663
64664 2006-11-20  Bruno Haible  <bruno@clisp.org>
64665
64666         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64667         changequote instead of pairs of brackets.
64668         Reported by Andreas Schwab <schwab@suse.de>.
64669
64670 2006-11-21  Jim Meyering  <jim@meyering.net>
64671
64672         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64673         so as to remain compatible with older compilers.
64674         Patch from Michael Deutschmann.
64675
64676 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         * MODULES.html.sh (File system functions): Add openat.
64679
64680         * lib/openat.h (rpl_fstatat): New macro, if
64681         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64682         (fstatat): Define to rpl_fstatat under the same conditions,
64683         unless COMPILING_FSTATAT.
64684         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64685         seems to have the bug.
64686         * lib/fstatat.c: New file.
64687         * modules/openat (Files): Add it.
64688
64689 2006-11-20  Bruno Haible  <bruno@clisp.org>
64690
64691         * Makefile: New file.
64692
64693 2006-11-20  Jim Meyering  <jim@meyering.net>
64694
64695         The beginnings of syntax-related checks for gnulib.
64696         * lib/Makefile: New file.
64697         * lib/t-idcache: New script.  Ensure that the two halves of
64698         idcache.c stay in sync.
64699
64700         * lib/idcache.c: Adjust comments in user- and group- portions to
64701         be more accurate, and to be consistent with one another.
64702
64703 2006-11-20  Jim Meyering  <jim@meyering.net>
64704
64705         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64706         continue using the flexible array member (thus, this module performs
64707         half as many malloc calls), with the addition that...
64708         (getgroup, getuser): Consistently record a non-match via an empty
64709         "name" string, and map an empty string match to a NULL return value.
64710         * modules/idcache (Depends-on): Re-add flexmember.
64711
64712         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64713         (getuidbyname, getgroup, getgidbyname): Likewise.
64714
64715         Use cleaner syntax: NULL rather than 0.
64716         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64717
64718 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64721         It mishandled the case where the group was missing.
64722         Problem reported by Greg Schafer.
64723         * modules/idcache: Likewise.
64724
64725 2006-11-18  Jim Meyering  <jim@meyering.net>
64726
64727         * check-module (%exempt_header): Add exception for some
64728         conditionally-included headers.
64729
64730         * modules/i-ring (Depends-on): Add verify.
64731         (License): Change to LGPL.
64732
64733 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64734
64735         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64736         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64737         and inttostr.h.  Use snprintf rather than uinttostr, so that
64738         LGPLed code doesn't depend on GPLed.
64739
64740 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64741
64742         * modules/inline (License): Change from GPL to LGPL.
64743
64744 2006-11-17  Jim Meyering  <jim@meyering.net>
64745
64746         * modules/d-type (License): Switch to LGPL.
64747
64748 2006-11-15  Bruno Haible  <bruno@clisp.org>
64749
64750         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64751
64752 2006-11-15  Eric Blake  <ebb9@byu.net>
64753
64754         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64755         the module dependency.
64756
64757 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64758             Bruno Haible  <bruno@clisp.org>
64759
64760         * gnulib-tool (func_create_testdir): Add license consistency check.
64761
64762 2006-11-15  Eric Blake  <ebb9@byu.net>
64763
64764         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64765         random "(cached)" in configure output.
64766
64767 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64768
64769         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64770         test for conforming inttypes.h is both announced and cached.
64771
64772         * MODULES.html.sh (seen_modules, seen_files): New variables.
64773         (func_module): Rewrite to use a few less gnulib-tool and sed
64774         invocations.  Avoid a couple of quadratic algorithms for ...
64775         (missed_modules, missed_files): ... these, with ...
64776         (func_append, func_tmpdir): ... these new functions, from
64777         gnulib-tool.  Analogously, install traps for cleanup.
64778
64779         * tests/test-gc.c (main): Remove unused variables.
64780         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64781
64782 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64783
64784         * modules/inttostr (License): Change to LGPL.
64785
64786 2006-11-14  Eric Blake  <ebb9@byu.net>
64787
64788         * modules/tempname (License): Change to LGPL.
64789
64790 2006-11-14  Eric Blake  <ebb9@byu.net>
64791
64792         * doc/functions.texi (Function Portability): *printf functions on
64793         Cygwin now understand all POSIX size specifiers.
64794
64795 2006-11-14  Bruno Haible  <bruno@clisp.org>
64796
64797         * modules/c-ctype (License): Change to LGPL.
64798
64799 2006-11-12  Bruno Haible  <bruno@clisp.org>
64800
64801         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64802         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64803         for GNOME libraries, for which the include files are installed in
64804         subdirectories of $prefix/include.
64805
64806 2006-11-12  Bruno Haible  <bruno@clisp.org>
64807
64808         * m4/lib-link.m4: Require at least autoconf-2.54.
64809         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64810         name to underscores for the --with option.
64811
64812 2006-11-13  Bruno Haible  <bruno@clisp.org>
64813
64814         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64815         the tests directory.
64816         Reported by Ralf Wildenhues.
64817
64818 2006-11-13  Bruno Haible  <bruno@clisp.org>
64819
64820         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64821         (func_emit_initmacro_end): Undo the override here.
64822         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64823         Works around the famous automake error in coreutils.
64824
64825 2006-11-13  Eric Blake  <ebb9@byu.net>
64826
64827         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64828         element, not its node.
64829
64830 2006-11-12  Bruno Haible  <bruno@clisp.org>
64831
64832         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64833         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64834
64835 2006-11-12  Bruno Haible  <bruno@clisp.org>
64836
64837         * gnulib-tool: New option --local-symlink.
64838         (func_usage): Document it.
64839         (lsymbolic): New variable.
64840         (func_import, func_create_testdir): If --symlink was not specified,
64841         test whether --local-symlink was specified and the file comes from
64842         the local_gnulib_dir.
64843
64844 2006-11-12  Bruno Haible  <bruno@clisp.org>
64845
64846         * gnulib-tool (func_ln): New function.
64847         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64848
64849 2006-11-12  Bruno Haible  <bruno@clisp.org>
64850
64851         Finish support for source files in subdirectories.
64852         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64853         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64854         AUTOMAKE_OPTIONS.
64855         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64856
64857 2006-11-12  Bruno Haible  <bruno@clisp.org>
64858
64859         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64860         EXTRA_lib_SOURCES augmentation.
64861         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64862
64863 2006-11-12  Jim Meyering  <jim@meyering.net>
64864
64865         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64866         file descriptors.  This also averts a failure on systems with
64867         native openat support when a traversed directory lacks "x" access.
64868         * lib/fts_.h: Include "i-ring.h"
64869         (struct FTS) [fts_fd_ring]: New member.
64870         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64871         (FCHDIR): Add parentheses.
64872         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64873         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64874         When descending, rather than simply closing the previous
64875         fts_cwd_fd value, push that file descriptor onto the ring.
64876         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64877         (fts_open): Initialize the new fd_ring member.
64878         (fts_close): Clear the ring.
64879         (fts_safe_changedir): When possible, use our new fd_ring to skip
64880         the diropen and fstat and dev/ino comparison that would normally
64881         accompany a virtual `chdir ("..")'.
64882
64883         * modules/fts (Depends-on): Add i-ring.
64884         * modules/i-ring: New module.
64885         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64886         * m4/i-ring.m4: New file.
64887
64888 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64889
64890         * gnulib-tool (func_create_testdir): Fix replacement of
64891         `build-aux' in configure.ac.  Run autotools in gltests
64892         subdirectory.
64893         (func_create_testdir, func_create_megatestdir, test): There is
64894         no need for '--force' in most autotool invocations in a new
64895         tree.  Actually fail the whole test if any of the tools, or the
64896         configure or make stages fail.
64897
64898         Sync from Automake.
64899         * build-aux/gnupload: Revert last change.  Add pointer to upload
64900         instructions of the GNU Maintenance Instructions.
64901         Suggestion by Karl Berry.
64902
64903 2006-11-10  Jim Meyering  <jim@meyering.net>
64904
64905         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64906
64907 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64910         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64911         (bind_textdomain_codeset) [! ENABLE_NLS]:
64912         Evaluate all the arguments.  That way, callers get compatible behavior
64913         if the arguments have side effects.  Also, it avoids some GCC
64914         diagnostics in some cases; Joel E. Denny reported problems when Bison
64915         was configured with --enable-gcc-warnigs.
64916
64917 2006-11-10  Jim Meyering  <jim@meyering.net>
64918
64919         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64920         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64921         account.
64922
64923 2006-11-10  Jim Meyering  <jim@meyering.net>
64924
64925         * modules/inline: New file/module.
64926         * modules/xalloc (Files): Remove m4/inline.m4.
64927         (Depends-on): Add inline, instead.
64928         * modules/oset: Likewise.
64929         * modules/list: Likewise.
64930
64931 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64934         Problem reported by Matthew Woehlke.
64935
64936 2006-11-09  Bruno Haible  <bruno@clisp.org>
64937
64938         * lib/tempname.c (gen_tempname): Remove variant that invokes
64939         __gen_tempname.
64940         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64941         __gen_tempname.
64942
64943 2006-11-08  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64946         to 'yes' instead of 'cross-compiling'.
64947
64948 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64949
64950         * lib/quotearg.h (quotearg_free): New decl.
64951         * lib/quotearg.c (quotearg_free): New function.
64952         (slot0, nslots, slotvec0, slotvec):
64953         Now file-scope so that quotearg_free can get at them.
64954
64955 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64956
64957         Sync from Automake.
64958         * build-aux/gnupload: Add missing 'gnu' to example URL.
64959         Report by Karl Berry.
64960
64961 2006-11-08  Bruno Haible  <bruno@clisp.org>
64962
64963         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64964         Suggested by Paul Eggert.
64965
64966 2006-11-08  Jim Meyering  <jim@meyering.net>
64967
64968         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64969         It's already included if !_LIBC.
64970         (fts_safe_changedir): Add a comment.
64971
64972 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64973
64974         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64975         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64976         Matthew Woehlke.
64977
64978         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64979         definitions up, to avoid colliding with change below.
64980         (static_inline) [HAVE_INLINE]: New macro.
64981         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64982         Provide extern decls when !HAVE_INLINE.  Do not define unless
64983         static_inline is defined, either by us or by xmalloc.c.  Use
64984         static_inline rather than static inline.
64985         (XCALLOC): Optimize sizeof(T) = 1 case.
64986         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64987
64988 2006-11-07  Bruno Haible  <bruno@clisp.org>
64989
64990         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64991         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64992         AC_C_INLINE.
64993         * modules/xalloc (Files): Add m4/inline.m4.
64994
64995 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64996
64997         * README: Fix typo.
64998         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64999         (Miscellanous Notes): ...from this.
65000
65001 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65004         Mention that offsetof should be used instead of sizeof.
65005         From Bruno Haible.
65006
65007 2006-11-07  Bruno Haible  <bruno@clisp.org>
65008
65009         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65010
65011 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65012
65013         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65014         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65015         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65016         (gl_tree_add_before, gl_tree_add_after):
65017         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65018         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65019         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65020         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65021         (gl_linked_add_after, gl_linked_add_at): Likewise.
65022         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65023         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65024         (gl_tree_add_before, gl_tree_add_after): Likewise.
65025         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65026         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65027         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65028
65029 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65030
65031         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65032
65033 2006-11-06  Bruno Haible  <bruno@clisp.org>
65034
65035         * m4/inline.m4: New file.
65036         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65037         * modules/list (Files): Add m4/inline.m4.
65038         * modules/oset (Files): Likewise.
65039
65040 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * lib/idcache.c: Include <stddef.h>, for offsetof.
65043         (struct userid.name): Change from char * to a flexible array member.
65044         All uses changed.
65045         * modules/idcache (Depends-on): Add flexmember.
65046
65047         * MODULES.html.sh (Core language properties): New module flexmember.
65048         * modules/flexmember, m4/flexmember.m4: New files.
65049
65050         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65051         inline functions that are identical with the old xnmalloc_inline,
65052         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65053         that we can avoid some unnecessary integer multiplications and
65054         divisions in the common case where the element size is known at
65055         compile time.
65056         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65057         needed.
65058         (xnboundedmalloc): Remove.
65059         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65060         arguments, for consistency with rest of this header.
65061         (xcharalloc): Rewrite using XNMALLOC.
65062         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65063         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65064         versions have been moved to lib/xalloc.h and renamed to be the
65065         non-*_inline versions.
65066         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65067         and xnrealloc functions, since those functions are now inline and
65068         now call us.
65069         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65070         renaming described above.
65071         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65072         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65073         captures the dependency in AC_C_INLINE.
65074
65075         New module canonicalize-lgpl, proposed by Charles Wilson in
65076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65077         with a few small changes afterwards.
65078         * MODULES.html.sh (File system functions): New module
65079         canonicalize-lgpl.
65080         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65081         and canonicalize_file_name.
65082         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65083         * modules/canonicalize-lgpl: New files.
65084
65085 2006-11-05  Bruno Haible  <bruno@clisp.org>
65086
65087         * gnulib-tool (func_import, func_create_testdir): Create directories
65088         also for files in subdirectories of lib/.
65089
65090 2006-11-05  Bruno Haible  <bruno@clisp.org>
65091
65092         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65093         ANSI C compliant.
65094
65095 2006-11-03  Bruno Haible  <bruno@clisp.org>
65096
65097         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65098         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65099         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65100         (xnboundedmalloc): New inline function.
65101         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65102         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65103         xmalloc.
65104         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65105         xmalloc.
65106         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65107         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65108         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65109         xmalloc.
65110         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65111         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65112         xmalloc.
65113         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65114         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65115         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65116         xmalloc.
65117         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65118         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65119         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65120         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65121         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65122         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65123         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65124
65125 2006-11-03  Bruno Haible  <bruno@clisp.org>
65126
65127         * lib/c-ctype.h [C++]: Define functions without name mangling.
65128         * lib/fwriteerror.h [C++]: Likewise.
65129         * lib/gcd.h [C++]: Likewise.
65130         * lib/linebreak.h [C++]: Likewise.
65131
65132 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65135         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65136         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65137         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65138         Check for functions and headers just once.
65139         Check for declaration of canonicalize_file_name.
65140         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65141
65142 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65143
65144         * gnulib-tool (func_import): Fix typo in actioncmd.
65145
65146 2006-11-02  Bruno Haible  <bruno@clisp.org>
65147
65148         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65149         newline sequence in the Makefile.am snippet as a space, like "make"
65150         does.
65151         Reported by Roger Persson <perrog@gmail.com>.
65152
65153 2006-11-01  Bruno Haible  <bruno@clisp.org>
65154
65155         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65156         already declared in <string.h>.
65157         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65158
65159 2006-11-01  Bruno Haible  <bruno@clisp.org>
65160
65161         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65162         * lib/strcase.h: Include <string.h>.
65163         (strcasecmp): Define to rpl_strcasecmp here.
65164
65165 2006-11-01  Bruno Haible  <bruno@clisp.org>
65166
65167         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65168
65169 2006-11-01  Eric Blake  <ebb9@byu.net>
65170
65171         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65172
65173         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65174
65175 2006-10-29  Bruno Haible  <bruno@clisp.org>
65176
65177         Make it compile in C++ mode.
65178         * lib/full-write.c (full_rw): Add a cast.
65179
65180 2006-11-01  Bruno Haible  <bruno@clisp.org>
65181
65182         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65183         be POSIX compliant.
65184         Reported by Roger Persson <perrog@gmail.com>.
65185
65186 2006-11-01  Eric Blake  <ebb9@byu.net>
65187
65188         * lib/getopt_.h: Fix comments.
65189
65190 2006-10-31  Eric Blake  <ebb9@byu.net>
65191
65192         * modules/tmpdir (Depends-on): Add sys_stat.
65193         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65194         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65195         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65196         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65197         tempname.
65198
65199 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         Avoid some C++ diagnostics reported by Bruno Haible.
65202         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65203         xmalloc.
65204         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65205         (struct slotvec): Move to top level.
65206         (quotearg_n_options): Rewrite to avoid xmalloc.
65207         * lib/xalloc.h (xcharalloc): New function.
65208         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65209         [defined __cplusplus]: Add function template that provides result
65210         type propagation.  This part of the change is from Bruno Haible.
65211
65212 2006-10-29  Bruno Haible  <bruno@clisp.org>
65213
65214         Make it compile in C++ mode.
65215         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65216         * lib/strnlen1.c (strnlen1): Cast memchr result.
65217         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65218         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65219         (create_temp_dir): Rename local variable 'template'.
65220         (compile_csharp_using_sscli): Add cast.
65221         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65222         * lib/findprog.c (find_in_path): Likewise.
65223         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65224         * lib/wait-process.c (register_slave_subprocess): Likewise.
65225
65226 2006-10-22  Bruno Haible  <bruno@clisp.org>
65227
65228         * modules/tsearch: New file.
65229         * lib/tsearch.h: New file.
65230         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65231         * m4/tsearch.m4: New file.
65232         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65233
65234 2006-10-29  Eric Blake  <ebb9@byu.net>
65235
65236         * lib/arcfour.c: Assume config.h.
65237         * lib/arctwo.c: Likewise.
65238         * lib/base64.c: Likewise.
65239         * lib/check-version.c: Likewise.
65240         * lib/crc.c: Likewise.
65241         * lib/des.c: Likewise.
65242         * lib/gc-gnulib.c: Likewise.
65243         * lib/gc-libgcrypt.c: Likewise.
65244         * lib/gc-pbkdf2-sha1.c: Likewise.
65245         * lib/getaddrinfo.c: Likewise.
65246         * lib/getdelim.c: Likewise.
65247         * lib/getline.c: Likewise.
65248         * lib/hmac-md5.c: Likewise.
65249         * lib/hmac-sha1.c: Likewise.
65250         * lib/iconvme.c: Likewise.
65251         * lib/md2.c: Likewise.
65252         * lib/md4.c: Likewise.
65253         * lib/memxor.c: Likewise.
65254         * lib/read-file.c: Likewise.
65255         * lib/readline.c: Likewise.
65256         * lib/rijndael-alg-fst.c: Likewise.
65257         * lib/rijndael-api-fst.c: Likewise.
65258         * lib/xgetdomainname.c: Likewise.
65259
65260 2006-10-28  Eric Blake  <ebb9@byu.net>
65261
65262         * lib/xstrndup.c: Assume config.h.
65263
65264 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65265
65266         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65267         stat-macros.h is now for our own macros, whereas stat_h is for
65268         macros in the <sys/stat.h> name space.
65269         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65270         (STAT_MACROS_H): Remove.
65271         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65272         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65273         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65274         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65275         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65276         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65277         Move these macros to ...
65278         * lib/stat_.h: here.  Don't include stat-macros.h.
65279         * lib/canonicalize.c: Don't include stat-macros.h.
65280         * lib/chown.c: Likewise.
65281         * lib/euidaccess.c: Likewise.
65282         * lib/file-type.c: Likewise.
65283         * lib/filemode.c: Likewise.
65284         * lib/glob.c: Likewise.
65285         * lib/isapipe.c: Likewise.
65286         * lib/lchown.c: Likewise.
65287         * lib/lstat.c: Likewise.
65288         * lib/mkdir-p.c: Likewise.
65289         * lib/rmdir.c: Likewise.
65290         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65292         unless mkdir isn't declared, to speed up 'configure'.
65293         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65294         would define all the S_* symbols.
65295         * modules/canonicalize (Depends-on):
65296         Depend on sys_stat, not stat-macros.
65297         * modules/chown: Likewise.
65298         * modules/euidaccess: Likewise.
65299         * modules/filemode: Likewise.
65300         * modules/file-type: Likewise.
65301         * modules/glob: Likewise.
65302         * modules/isapipe: Likewise.
65303         * modules/lchown: Likewise.
65304         * modules/lstat: Likewise.
65305         * modules/mkancesdirs: Likewise.
65306         * modules/rmdir: Likewise.
65307         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65308         * modules/modechange: Likewise.
65309         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65310         (configure.ac): Remove gl_STAT_MACROS.
65311         * modules/sys_stat (Depends-on): Remove stat-macros.
65312
65313 2006-10-27  Bruno Haible  <bruno@clisp.org>
65314
65315         * m4/signed.m4: Remove file.
65316         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65317         invocation.
65318         * modules/vasnprintf (Files): Remove m4/signed.m4.
65319
65320 2006-10-27  Bruno Haible  <bruno@clisp.org>
65321
65322         Update to GNU gettext 0.16.
65323         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65324         m4/inttypes-h.m4, m4/signed.m4.
65325         * m4/gettext.m4: Update to GNU gettext 0.16.
65326         * m4/intl.m4: New file, from GNU gettext.
65327         * m4/intldir.m4: New file, from GNU gettext.
65328         * config/srclist.txt: Update
65329
65330 2006-10-27  Eric Blake  <ebb9@byu.net>
65331
65332         * MODULES.html.sh: Document tempname.
65333         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65334         dependencies.
65335         (Files): Move lib/tempname.c...
65336         * modules/tempname: ...to this new module.
65337         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65338         (gl_PREREQ_TEMPNAME): Move...
65339         * m4/tempname.m4: ...to this new file.
65340         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65341         * modules/sys_stat (Depends-on): Add stat-macros.
65342         * lib/stat_.h (includes): Pick up stat macros.
65343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65344         if stat macros are broken.
65345         * lib/tempname.c (includes): No need to include "stat-macros.h".
65346         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65347         (direxists, __path_search) [!_LIBC]: Don't compile these in
65348         gnulib; the tmpdir module covers that.
65349         * lib/tempname.h: New file.
65350
65351 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * COPYING: Explain how gnulib-tool converts licence headers.
65354         Almost all wording by Eric Blake.
65355
65356 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         * lib/mbchar.h (is_basic_table): Make read-only.
65359         * lib/mbchar.c (is_basic_table): Likewise.
65360         Reported by John Darrington.
65361
65362 2006-10-25  Bruno Haible  <bruno@clisp.org>
65363
65364         * lib/progname.h (set_program_name): Undefine before defining.
65365
65366 2006-10-25  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65369         false for non-gcc C++ compilers.
65370         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65371
65372 2006-10-24  Bruno Haible  <bruno@clisp.org>
65373
65374         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65375         iconv implementations like Irix iconv.
65376
65377 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * modules/vararrays: New file.
65380         * m4/vararrays.m4: New file, taken from diffutils.
65381         * MODULES.html.sh: New module vararrays.
65382
65383 2006-10-24  Karl Berry  <karl@gnu.org>
65384
65385         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65386         Don't call GNU Unix.
65387
65388 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65389
65390         * users.txt: Add Libtool.
65391
65392         Sync from Libtool:
65393
65394         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65397         to gnulib's policy of including config.h unconditionally.
65398
65399 2006-10-24  Bruno Haible  <bruno@clisp.org>
65400
65401         * modules/wcwidth (Files): Add m4/wint_t.m4.
65402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65403         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65404
65405 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65406
65407         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65408         to pacify GCC with some -W flags enabled.  Problem reported by
65409         Bruno Haible.
65410
65411 2006-10-24  Jim Meyering  <jim@meyering.net>
65412
65413         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65414         Reported by Karl Berry.
65415
65416 2006-10-23  Bruno Haible  <bruno@clisp.org>
65417
65418         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65419
65420 2006-10-24  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/gl_list.h: Use C comment style, not C++ comment style.
65423
65424 2006-10-23  Eric Blake  <ebb9@byu.net>
65425
65426         * lib/getaddrinfo.c (includes): Add missing include.
65427
65428 2006-10-23  Bruno Haible  <bruno@clisp.org>
65429             Paul Eggert  <eggert@cs.ucla.edu>
65430
65431         Ability to rename obstack_free.
65432         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65433         obstack_free.
65434         (obstack_free): Invoke the __obstack_free macro.
65435         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65436
65437 2006-10-23  Bruno Haible  <bruno@clisp.org>
65438             Paul Eggert  <eggert@cs.ucla.edu>
65439
65440         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65441         __argc, __argv from the declaration. (They are defined as macros on
65442         mingw.)
65443
65444 2006-10-22  Bruno Haible  <bruno@clisp.org>
65445
65446         * doc/gnulib-intro.texi: New file.
65447         * doc/gnulib.texi: Include it.
65448
65449 2006-10-21  Bruno Haible  <bruno@clisp.org>
65450
65451         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65452         "Introduction", "Miscellanous Notes", "Particular Modules".
65453
65454 2006-10-21  Bruno Haible  <bruno@clisp.org>
65455
65456         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65457         Change mostlyclean-local rule to avoid sh syntax error from bash
65458         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65459
65460 2006-10-23  Jim Meyering  <jim@meyering.net>
65461
65462         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65463         in place of snprintf.
65464
65465         * modules/inttostr (Files): Add lib/uinttostr.c.
65466         * lib/uinttostr.c (inttostr): New file/function.
65467         * lib/inttostr.h (uinttostr): Declare.
65468         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65469         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65470         Add uinttostr.
65471         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65472
65473 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65474
65475         * lib/canonicalize.c (ELOOP): Define if not already defined.
65476         Problem reported by Bruno Haible in
65477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65478
65479 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65480
65481         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65482         Problem reported by Perry Smith and Ville Laurikari.
65483
65484         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65485         uses.
65486
65487 2006-10-19  Bruno Haible  <bruno@clisp.org>
65488
65489         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65490         for mingw.
65491
65492 2006-10-19  Bruno Haible  <bruno@clisp.org>
65493
65494         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65495         Needed for mingw.
65496
65497 2006-10-19  Bruno Haible  <bruno@clisp.org>
65498
65499         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65500
65501 2006-10-19  Bruno Haible  <bruno@clisp.org>
65502
65503         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65504         it.
65505
65506 2006-10-19  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65509         invocation.
65510
65511 2006-10-19  Bruno Haible  <bruno@clisp.org>
65512
65513         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65514         mountlist by default.
65515
65516 2006-10-16  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/c-strstr.c: Include c-strstr.h.
65519
65520 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65521
65522         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65523         in a slash.
65524
65525 2006-10-18  Bruno Haible  <bruno@clisp.org>
65526
65527         * lib/lock.h [C++]: Wrap definitions in extern "C".
65528
65529 2006-10-18  Bruno Haible  <bruno@clisp.org>
65530
65531         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65532         gl_LIBOBJS list.
65533
65534 2006-10-18  Bruno Haible  <bruno@clisp.org>
65535
65536         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65537
65538 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65539
65540         * lib/xstrtol.h: Include gettext.h.
65541         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65542         Problem reported by Eric Blake.
65543         * modules/xstrtol (Depends-on): Add gettext-h.
65544
65545 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65546
65547         * lib/strftime.c (advance): New macro.
65548         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65549         incomplete type, so you can't add 0 to it.  Problem and patch
65550         reported by Eelco Dolstra for dietlibc.
65551
65552 2006-10-18  Jim Meyering  <jim@meyering.net>
65553
65554         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65555         type for a local, and rename it: s/up/user_proc/.
65556
65557 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65558
65559         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65560         READ_UTMP_USER_PROCESS.
65561         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65562
65563 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65566         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65567
65568 2006-10-17  Eric Blake  <ebb9@byu.net>
65569
65570         * lib/sigprocmask.c (sigprocmask): Fix typo.
65571
65572         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65573
65574         * modules/clean-temp (Makefile.am): Don't add to make output...
65575         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65576         config.h.
65577
65578 2006-10-17  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65581         differently if DEFAULT_TEXT_DOMAIN is set.
65582
65583 2006-10-16  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/clean-temp.c: Include fwriteerror.h.
65586
65587 2006-10-16  Bruno Haible  <bruno@clisp.org>
65588
65589         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65590
65591 2006-10-16  Bruno Haible  <bruno@clisp.org>
65592
65593         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65594         * lib/sigprocmask.h: Include <sys/types.h>.
65595         (sigset_t): Use the system's definition if present.
65596
65597 2006-10-17  Eric Blake  <ebb9@byu.net>
65598
65599         * lib/xvasprintf.c (includes): Assume config.h.
65600         * lib/xasprintf.c (includes): Likewise.
65601
65602 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65603
65604         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65605         at least as wide as intmax_t.
65606
65607 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65608
65609         (Imported from Automake.)
65610         * build-aux/gnupload: Update to version 1.1 of directive file.
65611
65612 2006-10-16  Eric Blake  <ebb9@byu.net>
65613
65614         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65615         match Automake 1.10a.
65616
65617 2006-10-14  Bruno Haible  <bruno@clisp.org>
65618
65619         * modules/sigprocmask: New file.
65620         * lib/sigprocmask.h: New file.
65621         * lib/sigprocmask.c: New file.
65622         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65623         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65624         request sigprocmask.o.
65625         (gl_PREREQ_SIGPROCMASK): New macro.
65626         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65627         (Depends-on): Add sigprocmask.
65628         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65629         gt_SIGNALBLOCKING. Test for 'raise' only once.
65630         * lib/fatal-signal.c: Include sigprocmask.h.
65631         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65632         unblock_fatal_signals): Define always.
65633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65634         sigprocmask.
65635
65636 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         Sync from Automake.
65639         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65640         which incorrectly sets the mode of an existing destination
65641         directory.  In some cases the unpatched install-sh could do the
65642         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65643         system.  We hope this is rare in practice, but it's clearly worth
65644         fixing.  Problem reported by Alex Unleashed in
65645         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65646         Also, don't bother to check for -m bugs unless we're using -m;
65647         suggested by Stepan Kasal.
65648
65649 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65650
65651         Sync from Automake.
65652         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65653         `-c' flag, so they appear at the same position as in %FASTDEP%
65654         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65655         which ignores unknown options only after the first non-option.
65656         Bug report against M4 by Nelson H. F. Beebe.
65657
65658 2006-10-13  Jim Meyering  <jim@meyering.net>
65659
65660         Fix a bug in yesterday's change.
65661         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65662         p->fts_statp->st_dev would be used uninitialized.
65663         Ensures that we always call fts_stat on the very first entry.
65664         Miklos Szeredi reported that find -xdev stopped working.
65665
65666 2006-10-12  Bruno Haible  <bruno@clisp.org>
65667
65668         * gnulib-tool (func_get_automake_snippet): Append an automatically
65669         computed EXTRA_DIST augmentation.
65670         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65671         * modules/alloca-opt (Makefile.am): Likewise.
65672         * modules/allocsa (Makefile.am): Likewise.
65673         * modules/arcfour (Makefile.am): Likewise.
65674         * modules/arctwo (Makefile.am): Likewise.
65675         * modules/argmatch (Makefile.am): Likewise.
65676         * modules/argz (Makefile.am): Likewise.
65677         * modules/atexit (Makefile.am): Likewise.
65678         * modules/backupfile (Makefile.am): Likewise.
65679         * modules/byteswap (Makefile.am): Likewise.
65680         * modules/c-strtod (Makefile.am): Likewise.
65681         * modules/c-strtold (Makefile.am): Likewise.
65682         * modules/calloc (Makefile.am): Likewise.
65683         * modules/canon-host (Makefile.am): Likewise.
65684         * modules/canonicalize (Makefile.am): Likewise.
65685         * modules/chdir-long (Makefile.am): Likewise.
65686         * modules/chdir-safer (Makefile.am): Likewise.
65687         * modules/check-version (Makefile.am): Likewise.
65688         * modules/chown (Makefile.am): Likewise.
65689         * modules/cloexec (Makefile.am): Likewise.
65690         * modules/close-stream (Makefile.am): Likewise.
65691         * modules/closeout (Makefile.am): Likewise.
65692         * modules/crc (Makefile.am): Likewise.
65693         * modules/csharpexec (Makefile.am): Likewise.
65694         * modules/cycle-check (Makefile.am): Likewise.
65695         * modules/des (Makefile.am): Likewise.
65696         * modules/dev-ino (Makefile.am): Likewise.
65697         * modules/dirfd (Makefile.am): Likewise.
65698         * modules/dirname (Makefile.am): Likewise.
65699         * modules/dup2 (Makefile.am): Likewise.
65700         * modules/eealloc (Makefile.am): Likewise.
65701         * modules/error (Makefile.am): Likewise.
65702         * modules/euidaccess (Makefile.am): Likewise.
65703         * modules/exclude (Makefile.am): Likewise.
65704         * modules/exitfail (Makefile.am): Likewise.
65705         * modules/fcntl-safer (Makefile.am): Likewise.
65706         * modules/fcntl (Makefile.am): Likewise.
65707         * modules/file-type (Makefile.am): Likewise.
65708         * modules/fileblocks (Makefile.am): Likewise.
65709         * modules/filemode (Makefile.am): Likewise.
65710         * modules/filenamecat (Makefile.am): Likewise.
65711         * modules/fnmatch (Makefile.am): Likewise.
65712         * modules/fopen-safer (Makefile.am): Likewise.
65713         * modules/fpending (Makefile.am): Likewise.
65714         * modules/fprintftime (Makefile.am): Likewise.
65715         * modules/free (Makefile.am): Likewise.
65716         * modules/fsusage (Makefile.am): Likewise.
65717         * modules/ftruncate (Makefile.am): Likewise.
65718         * modules/fts (Makefile.am): Likewise.
65719         * modules/gc-arcfour (Makefile.am): Likewise.
65720         * modules/gc-des (Makefile.am): Likewise.
65721         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65722         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65723         * modules/gc-md4 (Makefile.am): Likewise.
65724         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65725         * modules/gc-sha1 (Makefile.am): Likewise.
65726         * modules/gc (Makefile.am): Likewise.
65727         * modules/getaddrinfo (Makefile.am): Likewise.
65728         * modules/getcwd (Makefile.am): Likewise.
65729         * modules/getdelim (Makefile.am): Likewise.
65730         * modules/getdomainname (Makefile.am): Likewise.
65731         * modules/getgroups (Makefile.am): Likewise.
65732         * modules/gethostname (Makefile.am): Likewise.
65733         * modules/gethrxtime (Makefile.am): Likewise.
65734         * modules/getline (Makefile.am): Likewise.
65735         * modules/getloadavg (Makefile.am): Likewise.
65736         * modules/getlogin_r (Makefile.am): Likewise.
65737         * modules/getndelim2 (Makefile.am): Likewise.
65738         * modules/getopt (Makefile.am): Likewise.
65739         * modules/getpagesize (Makefile.am): Likewise.
65740         * modules/getpass-gnu (Makefile.am): Likewise.
65741         * modules/getpass (Makefile.am): Likewise.
65742         * modules/getsubopt (Makefile.am): Likewise.
65743         * modules/gettime (Makefile.am): Likewise.
65744         * modules/gettimeofday (Makefile.am): Likewise.
65745         * modules/getugroups (Makefile.am): Likewise.
65746         * modules/getusershell (Makefile.am): Likewise.
65747         * modules/glob (Makefile.am): Likewise.
65748         * modules/group-member (Makefile.am): Likewise.
65749         * modules/hard-locale (Makefile.am): Likewise.
65750         * modules/hash (Makefile.am): Likewise.
65751         * modules/hmac-md5 (Makefile.am): Likewise.
65752         * modules/hmac-sha1 (Makefile.am): Likewise.
65753         * modules/human (Makefile.am): Likewise.
65754         * modules/idcache (Makefile.am): Likewise.
65755         * modules/imaxabs (Makefile.am): Likewise.
65756         * modules/imaxdiv (Makefile.am): Likewise.
65757         * modules/inet_ntop (Makefile.am): Likewise.
65758         * modules/inet_pton (Makefile.am): Likewise.
65759         * modules/intprops (Makefile.am): Likewise.
65760         * modules/inttostr (Makefile.am): Likewise.
65761         * modules/inttypes (Makefile.am): Likewise.
65762         * modules/isapipe (Makefile.am): Likewise.
65763         * modules/javaversion (Makefile.am): Likewise.
65764         * modules/lchmod (Makefile.am): Likewise.
65765         * modules/lchown (Makefile.am): Likewise.
65766         * modules/localcharset (Makefile.am): Likewise.
65767         * modules/long-options (Makefile.am): Likewise.
65768         * modules/lstat (Makefile.am): Likewise.
65769         * modules/malloc (Makefile.am): Likewise.
65770         * modules/mathl (Makefile.am): Likewise.
65771         * modules/mbchar (Makefile.am): Likewise.
65772         * modules/md2 (Makefile.am): Likewise.
65773         * modules/md4 (Makefile.am): Likewise.
65774         * modules/md5 (Makefile.am): Likewise.
65775         * modules/memcasecmp (Makefile.am): Likewise.
65776         * modules/memchr (Makefile.am): Likewise.
65777         * modules/memcmp (Makefile.am): Likewise.
65778         * modules/memcoll (Makefile.am): Likewise.
65779         * modules/memcpy (Makefile.am): Likewise.
65780         * modules/memmem (Makefile.am): Likewise.
65781         * modules/memmove (Makefile.am): Likewise.
65782         * modules/mempcpy (Makefile.am): Likewise.
65783         * modules/memrchr (Makefile.am): Likewise.
65784         * modules/memset (Makefile.am): Likewise.
65785         * modules/memxor (Makefile.am): Likewise.
65786         * modules/mkancesdirs (Makefile.am): Likewise.
65787         * modules/mkdir-p (Makefile.am): Likewise.
65788         * modules/mkdir (Makefile.am): Likewise.
65789         * modules/mkdtemp (Makefile.am): Likewise.
65790         * modules/mkstemp (Makefile.am): Likewise.
65791         * modules/mktime (Makefile.am): Likewise.
65792         * modules/modechange (Makefile.am): Likewise.
65793         * modules/mountlist (Makefile.am): Likewise.
65794         * modules/nanosleep (Makefile.am): Likewise.
65795         * modules/obstack (Makefile.am): Likewise.
65796         * modules/openat (Makefile.am): Likewise.
65797         * modules/pagealign_alloc (Makefile.am): Likewise.
65798         * modules/pathmax (Makefile.am): Likewise.
65799         * modules/physmem (Makefile.am): Likewise.
65800         * modules/poll (Makefile.am): Likewise.
65801         * modules/posixtm (Makefile.am): Likewise.
65802         * modules/posixver (Makefile.am): Likewise.
65803         * modules/putenv (Makefile.am): Likewise.
65804         * modules/quote (Makefile.am): Likewise.
65805         * modules/quotearg (Makefile.am): Likewise.
65806         * modules/raise (Makefile.am): Likewise.
65807         * modules/read-file (Makefile.am): Likewise.
65808         * modules/readline (Makefile.am): Likewise.
65809         * modules/readlink (Makefile.am): Likewise.
65810         * modules/readtokens (Makefile.am): Likewise.
65811         * modules/readutmp (Makefile.am): Likewise.
65812         * modules/realloc (Makefile.am): Likewise.
65813         * modules/regex (Makefile.am): Likewise.
65814         * modules/rename-dest-slash (Makefile.am): Likewise.
65815         * modules/rename (Makefile.am): Likewise.
65816         * modules/rijndael (Makefile.am): Likewise.
65817         * modules/rmdir (Makefile.am): Likewise.
65818         * modules/rpmatch (Makefile.am): Likewise.
65819         * modules/safe-read (Makefile.am): Likewise.
65820         * modules/safe-write (Makefile.am): Likewise.
65821         * modules/same-inode (Makefile.am): Likewise.
65822         * modules/same (Makefile.am): Likewise.
65823         * modules/save-cwd (Makefile.am): Likewise.
65824         * modules/savedir (Makefile.am): Likewise.
65825         * modules/setenv (Makefile.am): Likewise.
65826         * modules/settime (Makefile.am): Likewise.
65827         * modules/sha1 (Makefile.am): Likewise.
65828         * modules/sig2str (Makefile.am): Likewise.
65829         * modules/snprintf (Makefile.am): Likewise.
65830         * modules/stat-macros (Makefile.am): Likewise.
65831         * modules/stat-time (Makefile.am): Likewise.
65832         * modules/stdbool (Makefile.am): Likewise.
65833         * modules/stdint (Makefile.am): Likewise.
65834         * modules/stdlib-safer (Makefile.am): Likewise.
65835         * modules/stpcpy (Makefile.am): Likewise.
65836         * modules/stpncpy (Makefile.am): Likewise.
65837         * modules/strcase (Makefile.am): Likewise.
65838         * modules/strcasestr (Makefile.am): Likewise.
65839         * modules/strchrnul (Makefile.am): Likewise.
65840         * modules/strcspn (Makefile.am): Likewise.
65841         * modules/strdup (Makefile.am): Likewise.
65842         * modules/strerror (Makefile.am): Likewise.
65843         * modules/strftime (Makefile.am): Likewise.
65844         * modules/strndup (Makefile.am): Likewise.
65845         * modules/strnlen (Makefile.am): Likewise.
65846         * modules/strpbrk (Makefile.am): Likewise.
65847         * modules/strsep (Makefile.am): Likewise.
65848         * modules/strstr (Makefile.am): Likewise.
65849         * modules/strtod (Makefile.am): Likewise.
65850         * modules/strtoimax (Makefile.am): Likewise.
65851         * modules/strtok_r (Makefile.am): Likewise.
65852         * modules/strtol (Makefile.am): Likewise.
65853         * modules/strtoll (Makefile.am): Likewise.
65854         * modules/strtoul (Makefile.am): Likewise.
65855         * modules/strtoull (Makefile.am): Likewise.
65856         * modules/strtoumax (Makefile.am): Likewise.
65857         * modules/strverscmp (Makefile.am): Likewise.
65858         * modules/sys_socket (Makefile.am): Likewise.
65859         * modules/sys_stat (Makefile.am): Likewise.
65860         * modules/sysexits (Makefile.am): Likewise.
65861         * modules/time_r (Makefile.am): Likewise.
65862         * modules/timegm (Makefile.am): Likewise.
65863         * modules/timespec (Makefile.am): Likewise.
65864         * modules/tmpfile-safer (Makefile.am): Likewise.
65865         * modules/trim (Makefile.am): Likewise.
65866         * modules/unistd-safer (Makefile.am): Likewise.
65867         * modules/unlinkdir (Makefile.am): Likewise.
65868         * modules/unlocked-io (Makefile.am): Likewise.
65869         * modules/userspec (Makefile.am): Likewise.
65870         * modules/utime (Makefile.am): Likewise.
65871         * modules/utimecmp (Makefile.am): Likewise.
65872         * modules/utimens (Makefile.am): Likewise.
65873         * modules/vasnprintf (Makefile.am): Likewise.
65874         * modules/vasprintf (Makefile.am): Likewise.
65875         * modules/vsnprintf (Makefile.am): Likewise.
65876         * modules/xalloc (Makefile.am): Likewise.
65877         * modules/xgetcwd (Makefile.am): Likewise.
65878         * modules/xnanosleep (Makefile.am): Likewise.
65879         * modules/xreadlink (Makefile.am): Likewise.
65880         * modules/xstrtod (Makefile.am): Likewise.
65881         * modules/xstrtol (Makefile.am): Likewise.
65882         * modules/xstrtold (Makefile.am): Likewise.
65883         * modules/yesno (Makefile.am): Likewise.
65884         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65885
65886 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         * modules/error (Makefile.am): Distribute files through
65889         EXTRA_DIST, not lib_SOURCES.
65890
65891 2006-10-12  Eric Blake  <ebb9@byu.net>
65892
65893         * modules/error (Makefile.am): Distribute files in /lib.
65894         * modules/obstack (Makefile.am): Likewise.
65895
65896 2006-10-12  Bruno Haible  <bruno@clisp.org>
65897
65898         * modules/acl (Makefile.am): Distribute all files in lib/ through
65899         EXTRA_DIST.
65900         * modules/arcfour (Makefile.am): Likewise.
65901         * modules/arctwo (Makefile.am): Likewise.
65902         * modules/argmatch (Makefile.am): Likewise.
65903         * modules/argz (Makefile.am): Likewise.
65904         * modules/atexit (Makefile.am): Likewise.
65905         * modules/backupfile (Makefile.am): Likewise.
65906         * modules/c-strtod (Makefile.am): Likewise.
65907         * modules/c-strtold (Makefile.am): Likewise.
65908         * modules/calloc (Makefile.am): Likewise.
65909         * modules/canon-host (Makefile.am): Likewise.
65910         * modules/canonicalize (Makefile.am): Likewise.
65911         * modules/chdir-long (Makefile.am): Likewise.
65912         * modules/chdir-safer (Makefile.am): Likewise.
65913         * modules/check-version (Makefile.am): Likewise.
65914         * modules/chown (Makefile.am): Likewise.
65915         * modules/cloexec (Makefile.am): Likewise.
65916         * modules/close-stream (Makefile.am): Likewise.
65917         * modules/closeout (Makefile.am): Likewise.
65918         * modules/crc (Makefile.am): Likewise.
65919         * modules/cycle-check (Makefile.am): Likewise.
65920         * modules/des (Makefile.am): Likewise.
65921         * modules/dirfd (Makefile.am): Likewise.
65922         * modules/dirname (Makefile.am): Likewise.
65923         * modules/dup2 (Makefile.am): Likewise.
65924         * modules/euidaccess (Makefile.am): Likewise.
65925         * modules/exclude (Makefile.am): Likewise.
65926         * modules/exitfail (Makefile.am): Likewise.
65927         * modules/fcntl-safer (Makefile.am): Likewise.
65928         * modules/file-type (Makefile.am): Likewise.
65929         * modules/fileblocks (Makefile.am): Likewise.
65930         * modules/filemode (Makefile.am): Likewise.
65931         * modules/filenamecat (Makefile.am): Likewise.
65932         * modules/fnmatch (Makefile.am): Likewise.
65933         * modules/fopen-safer (Makefile.am): Likewise.
65934         * modules/fpending (Makefile.am): Likewise.
65935         * modules/fprintftime (Makefile.am): Likewise.
65936         * modules/free (Makefile.am): Likewise.
65937         * modules/fsusage (Makefile.am): Likewise.
65938         * modules/ftruncate (Makefile.am): Likewise.
65939         * modules/fts (Makefile.am): Likewise.
65940         * modules/gc (Makefile.am): Likewise.
65941         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65942         * modules/getaddrinfo (Makefile.am): Likewise.
65943         * modules/getcwd (Makefile.am): Likewise.
65944         * modules/getdelim (Makefile.am): Likewise.
65945         * modules/getdomainname (Makefile.am): Likewise.
65946         * modules/getgroups (Makefile.am): Likewise.
65947         * modules/gethostname (Makefile.am): Likewise.
65948         * modules/gethrxtime (Makefile.am): Likewise.
65949         * modules/getline (Makefile.am): Likewise.
65950         * modules/getloadavg (Makefile.am): Likewise.
65951         * modules/getlogin_r (Makefile.am): Likewise.
65952         * modules/getopt (Makefile.am): Likewise.
65953         * modules/getpass (Makefile.am): Likewise.
65954         * modules/getpass-gnu (Makefile.am): Likewise.
65955         * modules/getsubopt (Makefile.am): Likewise.
65956         * modules/gettime (Makefile.am): Likewise.
65957         * modules/gettimeofday (Makefile.am): Likewise.
65958         * modules/getugroups (Makefile.am): Likewise.
65959         * modules/getusershell (Makefile.am): Likewise.
65960         * modules/glob (Makefile.am): Likewise.
65961         * modules/group-member (Makefile.am): Likewise.
65962         * modules/hard-locale (Makefile.am): Likewise.
65963         * modules/hash (Makefile.am): Likewise.
65964         * modules/hmac-md5 (Makefile.am): Likewise.
65965         * modules/hmac-sha1 (Makefile.am): Likewise.
65966         * modules/human (Makefile.am): Likewise.
65967         * modules/idcache (Makefile.am): Likewise.
65968         * modules/imaxabs (Makefile.am): Likewise.
65969         * modules/imaxdiv (Makefile.am): Likewise.
65970         * modules/inet_ntop (Makefile.am): Likewise.
65971         * modules/inet_pton (Makefile.am): Likewise.
65972         * modules/inttostr (Makefile.am): Likewise.
65973         * modules/isapipe (Makefile.am): Likewise.
65974         * modules/lchown (Makefile.am): Likewise.
65975         * modules/long-options (Makefile.am): Likewise.
65976         * modules/lstat (Makefile.am): Likewise.
65977         * modules/malloc (Makefile.am): Likewise.
65978         * modules/mathl (Makefile.am): Likewise.
65979         * modules/mbchar (Makefile.am): Likewise.
65980         * modules/md2 (Makefile.am): Likewise.
65981         * modules/md4 (Makefile.am): Likewise.
65982         * modules/md5 (Makefile.am): Likewise.
65983         * modules/memcasecmp (Makefile.am): Likewise.
65984         * modules/memchr (Makefile.am): Likewise.
65985         * modules/memcmp (Makefile.am): Likewise.
65986         * modules/memcoll (Makefile.am): Likewise.
65987         * modules/memcpy (Makefile.am): Likewise.
65988         * modules/memmem (Makefile.am): Likewise.
65989         * modules/memmove (Makefile.am): Likewise.
65990         * modules/mempcpy (Makefile.am): Likewise.
65991         * modules/memrchr (Makefile.am): Likewise.
65992         * modules/memset (Makefile.am): Likewise.
65993         * modules/memxor (Makefile.am): Likewise.
65994         * modules/mkancesdirs (Makefile.am): Likewise.
65995         * modules/mkdir (Makefile.am): Likewise.
65996         * modules/mkdir-p (Makefile.am): Likewise.
65997         * modules/mkdtemp (Makefile.am): Likewise.
65998         * modules/mkstemp (Makefile.am): Likewise.
65999         * modules/mktime (Makefile.am): Likewise.
66000         * modules/modechange (Makefile.am): Likewise.
66001         * modules/mountlist (Makefile.am): Likewise.
66002         * modules/nanosleep (Makefile.am): Likewise.
66003         * modules/openat (Makefile.am): Likewise.
66004         * modules/pagealign_alloc (Makefile.am): Likewise.
66005         * modules/physmem (Makefile.am): Likewise.
66006         * modules/poll (Makefile.am): Likewise.
66007         * modules/posixtm (Makefile.am): Likewise.
66008         * modules/posixver (Makefile.am): Likewise.
66009         * modules/putenv (Makefile.am): Likewise.
66010         * modules/quote (Makefile.am): Likewise.
66011         * modules/quotearg (Makefile.am): Likewise.
66012         * modules/raise (Makefile.am): Likewise.
66013         * modules/read-file (Makefile.am): Likewise.
66014         * modules/readline (Makefile.am): Likewise.
66015         * modules/readlink (Makefile.am): Likewise.
66016         * modules/readtokens (Makefile.am): Likewise.
66017         * modules/readutmp (Makefile.am): Likewise.
66018         * modules/realloc (Makefile.am): Likewise.
66019         * modules/regex (Makefile.am): Likewise.
66020         * modules/rename (Makefile.am): Likewise.
66021         * modules/rename-dest-slash (Makefile.am): Likewise.
66022         * modules/rijndael (Makefile.am): Likewise.
66023         * modules/rmdir (Makefile.am): Likewise.
66024         * modules/rpmatch (Makefile.am): Likewise.
66025         * modules/safe-read (Makefile.am): Likewise.
66026         * modules/safe-write (Makefile.am): Likewise.
66027         * modules/same (Makefile.am): Likewise.
66028         * modules/save-cwd (Makefile.am): Likewise.
66029         * modules/savedir (Makefile.am): Likewise.
66030         * modules/setenv (Makefile.am): Likewise.
66031         * modules/settime (Makefile.am): Likewise.
66032         * modules/sha1 (Makefile.am): Likewise.
66033         * modules/sig2str (Makefile.am): Likewise.
66034         * modules/snprintf (Makefile.am): Likewise.
66035         * modules/stdlib-safer (Makefile.am): Likewise.
66036         * modules/stpcpy (Makefile.am): Likewise.
66037         * modules/stpncpy (Makefile.am): Likewise.
66038         * modules/strcase (Makefile.am): Likewise.
66039         * modules/strcasestr (Makefile.am): Likewise.
66040         * modules/strchrnul (Makefile.am): Likewise.
66041         * modules/strcspn (Makefile.am): Likewise.
66042         * modules/strdup (Makefile.am): Likewise.
66043         * modules/strerror (Makefile.am): Likewise.
66044         * modules/strftime (Makefile.am): Likewise.
66045         * modules/strndup (Makefile.am): Likewise.
66046         * modules/strnlen (Makefile.am): Likewise.
66047         * modules/strpbrk (Makefile.am): Likewise.
66048         * modules/strsep (Makefile.am): Likewise.
66049         * modules/strstr (Makefile.am): Likewise.
66050         * modules/strtod (Makefile.am): Likewise.
66051         * modules/strtoimax (Makefile.am): Likewise.
66052         * modules/strtok_r (Makefile.am): Likewise.
66053         * modules/strtol (Makefile.am): Likewise.
66054         * modules/strtoll (Makefile.am): Likewise.
66055         * modules/strtoul (Makefile.am): Likewise.
66056         * modules/strtoull (Makefile.am): Likewise.
66057         * modules/strtoumax (Makefile.am): Likewise.
66058         * modules/strverscmp (Makefile.am): Likewise.
66059         * modules/time_r (Makefile.am): Likewise.
66060         * modules/timegm (Makefile.am): Likewise.
66061         * modules/tmpfile-safer (Makefile.am): Likewise.
66062         * modules/unistd-safer (Makefile.am): Likewise.
66063         * modules/unlinkdir (Makefile.am): Likewise.
66064         * modules/userspec (Makefile.am): Likewise.
66065         * modules/utime (Makefile.am): Likewise.
66066         * modules/utimecmp (Makefile.am): Likewise.
66067         * modules/utimens (Makefile.am): Likewise.
66068         * modules/vasnprintf (Makefile.am): Likewise.
66069         * modules/vasprintf (Makefile.am): Likewise.
66070         * modules/vsnprintf (Makefile.am): Likewise.
66071         * modules/xalloc (Makefile.am): Likewise.
66072         * modules/xgetcwd (Makefile.am): Likewise.
66073         * modules/xnanosleep (Makefile.am): Likewise.
66074         * modules/xreadlink (Makefile.am): Likewise.
66075         * modules/xstrtod (Makefile.am): Likewise.
66076         * modules/xstrtol (Makefile.am): Likewise.
66077         * modules/xstrtold (Makefile.am): Likewise.
66078         * modules/yesno (Makefile.am): Likewise.
66079
66080 2006-10-12  Jim Meyering  <jim@meyering.net>
66081
66082         * m4/getloadavg.m4: Revert the change below.
66083
66084         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66085         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66086         fail with a symlink, which is what coreutils' ./bootstrap now
66087         creates by default.
66088
66089 2006-10-12  Bruno Haible  <bruno@clisp.org>
66090
66091         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66092         mingw.
66093         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66094         MSVC and mingw explicitly.
66095
66096 2006-10-11  Simon Josefsson  <jas@extundo.com>
66097             Bruno Haible  <bruno@clisp.org>
66098
66099         Add support for multiple gnulib-tool invocations in the scope of a
66100         single configure.ac file.
66101         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66102         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66103         with the same contents as the _LIBADD variable.
66104         (func_emit_initmacro_start, func_emit_initmacro_end,
66105         func_emit_initmacro_done): New functions.
66106         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66107         gl_LIBOBJS and gl_LTLIBOBJS.
66108
66109 2006-10-11  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66112         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66113         autoreconf. Instead, invoke autopoint explicitly but move back the
66114         *.m4 files from gnulib.
66115
66116 2006-10-11  Bruno Haible  <bruno@clisp.org>
66117
66118         * gnulib-tool (func_usage): Make module names after --create-testdir
66119         optional.
66120         (func_create_testdir): If no module was specified, use nearly all
66121         modules.
66122
66123 2006-10-12  Jim Meyering  <jim@meyering.net>
66124
66125         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66126         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66127         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66128         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66129         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66130         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66131         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66132         (fts_set_stat_required): New function.
66133         (fts_open): Defer the calls to fts_stat, if possible or requested.
66134         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66135         into fts_stat itself.
66136         (fts_read): Perform any required (deferred) fts_stat call.
66137         (fts_build): Likewise, for the directory we're about to open and read.
66138         In the readdir loop, carefully decide whether each entry will require
66139         an eventual call to fts_stat, using dirent.d_type info if available.
66140         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66141         a command line argument into this function.  Update all callers.
66142         Map a return value of FTS_DOT to FTS_D for a command line argument.
66143         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66144         Thanks to Miklos Szeredi for his tenacity and for the initial
66145         bug report about "find" failing on a FUSE-based file system.
66146
66147         * lib/fts.c (fts_open): Use consistent indentation.
66148
66149 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66152         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66153         reported by Jim Meyering.  All uses of cache variables renamed
66154         to match Autoconf's.
66155         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66156         the other one.
66157
66158         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66159         Fix misspelling in diagnostic.
66160
66161 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66164         defined.  Problem reported by Matthew Woehlke.
66165
66166         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66167         Add support for Tandem NonStop R series.
66168         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66169         Use new macro.
66170
66171         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66172         (has_trailing_slash): Omit size arg; all callers changed.
66173         Omit 'inline', since it doesn't help performance and we'd
66174         need to configure it.
66175         Don't count //, ///, etc. as having a trailing slash.
66176         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66177         (rpl_rename_dest_slash): On failure, use rename's errno rather
66178         than (in some cases) an incorrect or junk errno.
66179         Simplify code by removing need to compute length; this does
66180         cause it to make two passes instead of one over the file name,
66181         but it's worth it.
66182
66183         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66184         change, since Autoconf's version may no longer be appropriate now
66185         that we are using CVS Autoconf's version.  Add support for Tandem.
66186
66187 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66188             Bruno Haible  <bruno@clisp.org>
66189
66190         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66191         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66192         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66193         gl_AC_TYPE_LONG_LONG.
66194
66195         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66196         instead of HAVE_LONG_LONG.
66197         * lib/printf-args.c (printf_fetchargs): Likewise.
66198         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66199         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66200         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66201         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66202         gl_AC_TYPE_LONG_LONG.
66203
66204 2006-10-11  Bruno Haible  <bruno@clisp.org>
66205
66206         * m4/longlong.m4: Add comments.
66207         * m4/ulonglong.m4: Likewise.
66208
66209 2006-10-10  Bruno Haible  <bruno@clisp.org>
66210
66211         Make it possible to #define stpcpy, strdup to aliases.
66212         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66213         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66214
66215 2006-10-10  Bruno Haible  <bruno@clisp.org>
66216
66217         Make it possible to #define gcd to an alias.
66218         * lib/gcd.c: Include config.h.
66219
66220 2006-10-10  Bruno Haible  <bruno@clisp.org>
66221
66222         Make it possible to #define c_isascii to an alias.
66223         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66224         defined. Undefine the macros before defining them, to avoid gcc
66225         warnings.
66226         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66227         define NO_C_CTYPE_MACROS early.
66228
66229 2006-10-10  Bruno Haible  <bruno@clisp.org>
66230
66231         Make it possible to #define set_program_name to an alias.
66232         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66233         ENABLE_RELOCATABLE early.
66234
66235 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66238         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66239         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66240         More generally, don't assume that 64-bit signed int is available
66241         if unsigned int is, and vice versa.
66242         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66243         unsigned symbols, not on their signed counterparts.
66244         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66245         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66246         (UINT64_C, UINTMAX_C):
66247         Likewise.
66248         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66249         unsigned counterparts.
66250         (Have_long_long, Unsigned): New macros.
66251         (Int): Renamed from INT.
66252         (strtoimax): Use the new macros.
66253         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66254         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66255         * modules/inttypes (inttypes.h): Substitute
66256         HAVE_UNSIGNED_LONG_LONG_INT.
66257         * modules/stdint (stdint.h): Likewise.
66258         (Files): Add m4/ulonglong.m4.
66259
66260 2006-10-10  Bruno Haible  <bruno@clisp.org>
66261
66262         Fix a gcc -Wshadow warning.
66263         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66264         to 'bucket'.
66265         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66266         gl_linked_indexof_from_to): Likewise.
66267         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66268         Likewise.
66269         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66270         Likewise.
66271         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66272         Reported by Eric Blake.
66273
66274 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66277         for NetBSD.  Problem reported by Bruno Haible.
66278
66279 2006-10-09  Jim Meyering  <jim@meyering.net>
66280
66281         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66282         Patch from Bruno Haible.
66283
66284 2006-10-09  Jim Meyering  <jim@meyering.net>
66285
66286         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66287         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66288         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66289
66290 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         Don't include <config.h> twice; this doesn't work in some cases,
66293         e.g., when config.h has "#define intmax_t long long int" and
66294         we include <config.h>, <inttypes.h>, <config.h> in that order.
66295         Problem reported by Matthew Woehlke in:
66296         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66297         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66298         * lib/fts-cycle.c: Don't include config.h.
66299         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66300         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66301         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66302         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66303         inttypes.h.
66304         * lib/xstrtoumax.c: Likewise.
66305         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66306         __strtol and the like, so that this module is more like its siblings.
66307         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66308         Remove; no longer needed now that we assume gnulib inttypes.h.
66309
66310 2006-10-08  Bruno Haible  <bruno@clisp.org>
66311
66312         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66313         option.
66314
66315 2006-10-07  Jim Meyering  <jim@meyering.net>
66316
66317         * modules/inttypes (inttypes.h): Revert what seems to have been
66318         an inadvertent part of today's change: use "|", not "/" in the
66319         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66320
66321 2006-10-07  Bruno Haible  <bruno@clisp.org>
66322
66323         * modules/sublist: New file.
66324
66325 2006-10-07  Bruno Haible  <bruno@clisp.org>
66326
66327         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66328         * modules/argz (argz.h): Likewise.
66329         * modules/arpa_inet (arpa/inet.h): Likewise.
66330         * modules/byteswap (byteswap.h): Likewise.
66331         * modules/configmake (configmake.h): Likewise.
66332         * modules/fcntl (fcntl.h): Likewise.
66333         * modules/fnmatch (fnmatch.h): Likewise.
66334         * modules/getopt (getopt.h): Likewise.
66335         * modules/glob (glob.h): Likewise.
66336         * modules/inttypes (inttypes.h): Likewise.
66337         * modules/netinet_in (netinet/in.h): Likewise.
66338         * modules/poll (poll.h): Likewise.
66339         * modules/stdbool (stdbool.h): Likewise.
66340         * modules/stdint (stdint.h): Likewise.
66341         * modules/sys_select (sys/select.h): Likewise.
66342         * modules/sys_socket (sys/socket.h): Likewise.
66343         * modules/sys_stat (sys/stat.h): Likewise.
66344         * modules/sysexits (sysexits.h): Likewise.
66345         * modules/unistd (unistd.h): Likewise.
66346         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66347         Add a "DO NOT EDIT" comment to the generated file.
66348         (func_import): Likewise for gnulib-comp.m4.
66349
66350 2006-10-07  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/gl_sublist.h: New file.
66353         * lib/gl_sublist.c: New file.
66354
66355 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66358         name (relative to the original working directory) and the file
66359         name component (relative to the temporary working directory).  All
66360         callers changed.
66361         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66362         * lib/mkdir-p.c (make_dir_parents): Likewise.
66363         * lib/mkdir-p.h (make_dir_parents): Likewise.
66364
66365 2006-10-06  Eric Blake  <ebb9@byu.net>
66366
66367         Define several macros for use by the clean-temp module.
66368         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66369         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66370         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66371
66372         * lib/clean-temp.h (close_stream_temp): New declaration.
66373         * lib/clean-temp.c (includes): Pull in headers according to what
66374         other modules are in use.
66375         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66376
66377 2006-10-06  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66380         instead of fopen, fwriteerror.
66381
66382 2006-10-06  Bruno Haible  <bruno@clisp.org>
66383
66384         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66385         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66386         int.
66387         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66388         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66389         Return an error indicator.
66390         Suggested by Eric Blake.
66391
66392 2006-10-06  Bruno Haible  <bruno@clisp.org>
66393
66394         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66395         Reported by Eric Blake.
66396
66397 2006-10-06  Bruno Haible  <bruno@clisp.org>
66398
66399         * modules/closeout (Description): Mention stderr too.
66400
66401 2006-10-06  Bruno Haible  <bruno@clisp.org>
66402         and Paul Eggert  <eggert@cs.ucla.edu>
66403
66404         * lib/closeout.c (close_stdout): Also close stderr.
66405         * lib/closeout.h: Update comment.
66406
66407 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66410         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66411         * lib/dirchownmod.c: Include lchown.h.
66412         * lib/lchown.c: Don't include files that lchown.h now includes.
66413         Don't declare chown, since lchown.h now does that.
66414         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66415         (lchown): Define to rpl_chown if lchown is declared but
66416         does not exist.  Declare using a prototype if lchown is not
66417         declared.  Add a copyright notice.
66418         * lib/mkstemp.h: Include <unistd.h>.
66419         * lib/openat.c: Include lchown.h.
66420
66421         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66422         we now test for that separately.
66423         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66424         rather than O_NOFOLLOW, when testing whether it's possible to
66425         avoid a race condition reliably.
66426         * lib/savewd.c (savewd_chdir): Likewise.
66427
66428         Remove macros that are no longer needed now that stdint.h is
66429         reliable.
66430         * lib/fsusage.c (UINTMAX_MAX): Remove.
66431         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66432         * lib/utimecmp.c (SIZE_MAX): Remove.
66433
66434         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66435
66436         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66437         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66438         O_NOATIME works.
66439
66440 2006-10-05  Bruno Haible  <bruno@clisp.org>
66441
66442         * lib/gl_list.h (gl_sortedlist_search_from_to,
66443         gl_sortedlist_indexof_from_to): New declarations.
66444         (gl_list_implementation): New fields sortedlist_search_from_to,
66445         sortedlist_indexof_from_to.
66446         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66447         inline functions.
66448         * lib/gl_list.c (gl_sortedlist_search_from_to,
66449         gl_sortedlist_indexof_from_to): New functions.
66450         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66451         function.
66452         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66453         (gl_array_sortedlist_search_from_to): New function.
66454         (gl_array_list_implementation): Update.
66455         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66456         function.
66457         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66458         (gl_carray_sortedlist_search_from_to): New function.
66459         (gl_carray_list_implementation): Update.
66460         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66461         gl_linked_sortedlist_indexof_from_to): New functions.
66462         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66463         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66464         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66465         gl_tree_sortedlist_indexof_from_to): New functions.
66466         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66467         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66468         Update.
66469         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66470         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66471         Update.
66472
66473 2006-10-05  Bruno Haible  <bruno@clisp.org>
66474
66475         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66476         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66477         (struct gl_list_implementation): Add fields search_from_to,
66478         indexof_from_to. Remove fields search, indexof.
66479         (gl_list_search): Use the search_from_to method.
66480         (gl_list_search_from, gl_list_search_from_to): New functions.
66481         (gl_list_indexof): Use the indexof_from_to method.
66482         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66483         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66484         (gl_list_search_from, gl_list_search_from_to): New functions.
66485         (gl_list_indexof): Use the indexof_from_to method.
66486         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66487         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66488         gl_array_indexof. Add start_index, end_index arguments.
66489         (gl_array_search_from_to): Renamed from gl_array_search. Add
66490         start_index, end_index arguments.
66491         (gl_array_remove, gl_array_list_implementation): Update.
66492         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66493         gl_carray_indexof. Add start_index, end_index arguments.
66494         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66495         start_index, end_index arguments.
66496         (gl_carray_remove, gl_carray_list_implementation): Update.
66497         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66498         gl_linked_search. Add start_index, end_index arguments.
66499         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66500         start_index, end_index arguments.
66501         (gl_linked_remove): Update.
66502         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66503         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66504         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66505         field to 'size_t'.
66506         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66507         gl_tree_search. Add start_index, end_index arguments.
66508         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66509         start_index, end_index arguments.
66510         (gl_tree_remove): Update.
66511         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66512         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66513         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66514         function.
66515         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66516         gl_tree_search. Add start_index, end_index arguments.
66517         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66518         start_index, end_index arguments.
66519         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66520         Update.
66521         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66522
66523 2006-10-05  Bruno Haible  <bruno@clisp.org>
66524
66525         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66526
66527         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66528         fwriteerror_temp): New declarations.
66529         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66530         (descriptors): New variable.
66531         (cleanup): First, close the descriptors.
66532         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66533         fclose_temp, fwriteerror_temp): New functions.
66534
66535 2006-10-04  Jim Meyering  <jim@meyering.net>
66536
66537         * lib/fts.c (fts_open): Tiny comment change.
66538
66539 2006-10-04  Bruno Haible  <bruno@clisp.org>
66540
66541         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66542         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66543         gl_LOCK_BODY.
66544         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66545         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66546         gl_LOCK_EARLY_BODY.
66547         (gl_LOCK): Require gl_LOCK_BODY.
66548
66549 2006-10-04  Bruno Haible  <bruno@clisp.org>
66550
66551         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66552         (gl_oset_search_atleast): New declaration.
66553         (struct gl_oset_implementation): Add field 'search_atleast'.
66554         (gl_oset_search_atleast): New inline function.
66555         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66556         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66557         (gl_array_oset_implementation): Update.
66558         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66559         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66560         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66561
66562 2006-10-04  Bruno Haible  <bruno@clisp.org>
66563
66564         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66565
66566 2006-10-03  Bruno Haible  <bruno@clisp.org>
66567
66568         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66569         from gl_avltreehash_list_implementation.
66570
66571 2006-10-03  Bruno Haible  <bruno@clisp.org>
66572
66573         * lib/gl_oset.c (gl_oset_add): Fix return type.
66574
66575 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66576
66577         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66578
66579 2006-10-02  Eric Blake  <ebb9@byu.net>
66580
66581         * modules/strnlen (Depends-on): Add extensions.
66582
66583 2006-10-02  Eric Blake  <ebb9@byu.net>
66584
66585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66586         definition in 2.60+.
66587
66588 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66589
66590         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66591         checks.
66592
66593 2006-10-02  Bruno Haible  <bruno@clisp.org>
66594
66595         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66596         to the AUTOMAKE_OPTIONS.
66597         Reported by Jim Meyering.
66598
66599 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66600
66601         Work around bug in Solaris 10 /proc file system:
66602         /proc/self/fd/NNN/.. isn't the parent directory of
66603         the directory whose file descriptor is NNN.  This needs to
66604         be worked around at run time, not compile time, since a
66605         program might be built on Solaris 8, where things work, and
66606         run on Solaris 10.
66607         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66608         to use the following interface instead:
66609         (OPENAT_BUFFER_SIZE): New macro.
66610         (openat_proc_name): New function.
66611         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66612         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66613         Likewise.
66614         * lib/openat-proc.c: New file.
66615         * modules/openat (Files): Add lib/openat-proc.c.
66616         (Depends-on): Add same-inode, stdbool.
66617         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66618
66619 2006-09-29  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66622         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66623         argument. Set stdout_closed before testing for ferror, not after.
66624         (fwriteerror, fwriteerror_no_ebadf): New functions.
66625
66626 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66627
66628         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66629
66630 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66631
66632         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66633         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66634
66635 2006-09-28  Jim Meyering  <jim@meyering.net>
66636
66637         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66638         Include <unistd.h>.
66639
66640 2006-09-28  Bruno Haible  <bruno@clisp.org>
66641
66642         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66643         * modules/linkedhash-list (Depends-on): Likewise.
66644         * modules/rbtreehash-list (Depends-on): Likewise.
66645
66646 2006-09-28  Bruno Haible  <bruno@clisp.org>
66647
66648         * lib/strndup.h: Simplify the redefinition of strndup.
66649         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66651
66652 2006-09-28  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66655         * lib/gl_linkedhash_list.c: Likewise.
66656         * lib/gl_rbtreehash_list.c: Likewise.
66657
66658 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66661         getaddrinfo.
66662
66663         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66664         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66665         it causes <stdio_ext.h> to cause a compile-time error.
66666         Problem reported by Nelson H. F. Beebe.
66667         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66668         of HAVE_DECL___PENDING.
66669
66670         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66671         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66672         declaration.
66673
66674 2006-09-27  Jim Meyering  <jim@meyering.net>
66675
66676         This file could end up with a definition for a function
66677         named __strndup, rather than rpl_strndup on a system with
66678         incomplete weak_alias support.
66679         * lib/strndup.c (strndup): Rename from __strndup.
66680         Remove #defines that used to map __strndup to strndup.
66681         Don't use K&R prototypes.
66682         Remove LIBC-related code, since this file is not sync'd with glibc.
66683         * lib/strndup.h: Revamp, accordingly.
66684         * m4/strndup.m4: Modernize.
66685
66686 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66687
66688         * modules/savewd (Depends-on): Add 'raise'.
66689         * lib/savewd.c: Include <signal.h>, for 'raise'.
66690
66691 2006-09-26  Jim Meyering  <jim@meyering.net>
66692
66693         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66694         when we detect Darwin 8.7.0's acl_get_file bug.
66695         Rearrange to perform the new (below) run-test while $LIBS
66696         contains any acl-related library.  Set USE_ACL at the end.
66697         (gl_ACL_GET_FILE): New function.
66698
66699 2006-09-26  Eric Blake  <ebb9@byu.net>
66700
66701         * lib/verror.c: Include <config.h> unconditionally.
66702
66703 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * modules/clock-time (Maintainer): Add self.
66706         * modules/getlogin_r (Depends-on): Add extensions.
66707
66708 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66709
66710         * modules/clock-time: New module.
66711         * modules/nanosleep (Depends-on): Add clock-time.
66712         * modules/gethrxtime (Depends-on): Likewise.
66713         * modules/gettime (Depends-on): Likewise.
66714         * modules/settime (Depends-on): Likewise.
66715
66716         * modules/fts-lgpl: Depend on openat.
66717         * modules/mkancesdirs: Depend on savewd.
66718         * modules/mkdir-p: Likewise.
66719
66720 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66721
66722         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66723
66724         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66725         `gl_have_arbitrary_file_name_length_limit' to
66726         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66727         actually works between configure runs.
66728
66729 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66730             Bruno Haible  <bruno@clisp.org>
66731
66732         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66733
66734 2006-09-25  Jim Meyering  <jim@meyering.net>
66735
66736         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66737         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66738
66739 2006-09-25  Eric Blake  <ebb9@byu.net>
66740
66741         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66742         exec's in 2006-09-18 patch when shuffling fds.
66743
66744 2006-09-25  Bruno Haible  <bruno@clisp.org>
66745
66746         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66747         Reported by Jim Meyering.
66748
66749 2006-09-24  Jim Meyering  <jim@meyering.net>
66750
66751         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66752         compare a pointer against a literal "0".  That caused failures with
66753         at least HP-UX's hpcc.
66754
66755 2006-09-22  Simon Josefsson  <jas@extundo.com>
66756
66757         * modules/gc-sha1:
66758         * modules/gc-md4:
66759         * modules/gc-hmac-sha1:
66760         * modules/gc-hmac-md5:
66761         * modules/gc-des:
66762         * modules/gc-arcfour: Distribute more files.
66763
66764 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66765
66766         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66767         (gl_linked_iterator_from_to): Initialize struct completely.
66768         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66769         (gl_tree_iterator_from_to): Likewise
66770         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66771         * lib/gl_array_list.c [lint] (gl_array_iterator)
66772         (gl_array_iterator_from_to): Likewise.
66773         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66774         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66775         (gl_carray_iterator_from_to): Likewise.
66776
66777         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66778         * lib/md4.c (md4_process_block): Remove unused variable.
66779         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66780         parentheses for clarity.
66781
66782 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66783
66784         * modules/bison-i18n (Depends-on): Add gettext.
66785
66786 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66787
66788         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66789         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66790         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66791         also add missing comma that caused broken test.
66792         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66793         stdlib.h, for `abort'.
66794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66795         variables.
66796         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66797         include unistd.h if present, for `rmdir'.
66798         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66799         variables.
66800         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66801         in the process include standard headers for prototypes.
66802         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66803         gets declared on GNU/Linux.
66804         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66805         unistd.h, for `rmdir'.
66806         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66807
66808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66809         always true.
66810         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66811
66812         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66813
66814 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66815
66816         * gnulib-tool (func_version): Create output all at once.  This
66817         may help avoid triggering unnecessary SIGPIPEs, and at any
66818         rate it doesn't hurt.
66819
66820 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66821             Bruno Haible  <bruno@clisp.org>
66822
66823         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66824         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66825         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66826
66827         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66828         (gl_FUNC_VASPRINTF): Invoke it.
66829
66830 2006-09-22  Bruno Haible  <bruno@clisp.org>
66831
66832         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66833         getloadavg.c as first argument.
66834
66835 2006-09-22  Bruno Haible  <bruno@clisp.org>
66836
66837         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66838         at the beginning of the gl_INIT macro.
66839         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66840         gl_GETLOADAVG.
66841
66842 2006-09-22  Bruno Haible  <bruno@clisp.org>
66843
66844         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66845         module.
66846         Suggested by Ralf Wildenhues.
66847
66848 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         Import this patch from libc:
66851
66852         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66853
66854         * lib/regex_internal.c (re_string_reconstruct): Handle
66855         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66856         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66857         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66858         re_string_context_at.
66859
66860         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66861         now requires it.
66862         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66863         gl_REGEX now does it for us.
66864         (gl_REGEX): Add test taken from
66865         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66866
66867         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66868         Check that large offsets work.  Modernize Autoconf usages.
66869         Prefer "yes" to mean a good thing rather than a bad.
66870         Don't put "#define mkstemp" in config.h, as this might interfere
66871         with standard system headers that "#define mkstemp mkstemp64".
66872
66873         * modules/mkstemp (Depends-on): Add extensions, so that
66874         mkstemp is visible on some platforms.
66875         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66876         (Include): Change to "mkstemp.h" from <stdlib.h>.
66877         (Files): Add mkstemp.h.
66878
66879         * lib/mkstemp.h: New file, since some standard headers
66880         #define mkstemp.
66881         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66882         Include "mkstemp.h".
66883         Make the _LIBC code resemble glibc original more,
66884         e.g., use K&R style.
66885         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66886         (mkstemp): Remove, since mkstemp.h does this for us.
66887         * lib/stdlib--.h: Include mkstemp.h.
66888
66889         Import this patch from libc:
66890
66891         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66892
66893         * lib/tempname.c (__gen_tempname): Change attempts_min
66894         into a macro.  Use preprocessor to decide how to initialize
66895         attempts [Coverity CID 67].
66896
66897 2006-09-20  Bruno Haible  <bruno@clisp.org>
66898
66899         * lib/mkdtemp.c: Import from libc.
66900         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66901                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66902                 attempts_min into a macro.  Use preprocessor to decide how to
66903                 initialize attempts [Coverity CID 67].
66904         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66905                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66906                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66907
66908 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66909
66910         * gnulib-tool (func_exit): New function, to allow to pass the
66911         exit status portably through the trap.  Use everywhere.
66912         (--help, --version): Signal a write error.
66913         (trap): catch SIGPIPE, for write errors.
66914         Exit at the end of the trap, with the correct exit status.
66915
66916 2006-09-19  Karl Berry  <karl@gnu.org>
66917
66918         * doc/gnulib.texi: note about the license texinfo files.
66919
66920 2006-09-19  Eric Blake  <ebb9@byu.net>
66921
66922         * gnulib-tool: Avoid space-tab.
66923
66924 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66927         that prevented coreutils 6.1 from building.  Problem reported
66928         by Petter Reinholdtsen.
66929
66930 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * gnulib-tool (avoidlist): Fix typo that broke options like
66933         --avoid=lock that are used by coreutils bootstrap.
66934
66935 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66936
66937         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66938         more systematically.
66939
66940 2006-09-18  Jim Meyering  <jim@meyering.net>
66941
66942         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66943
66944 2006-09-18  Bruno Haible  <bruno@clisp.org>
66945
66946         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66947
66948 2006-09-18  Bruno Haible  <bruno@clisp.org>
66949
66950         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66951         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66952         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66953         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66954         * m4/gettext.m4: Require autoconf >= 2.52.
66955         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66956         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66957         of gl_cv_header_inttypes_h.
66958
66959 2006-09-18  Bruno Haible  <bruno@clisp.org>
66960
66961         * lib/javaversion.c: Include configmake.h.
66962
66963 2006-09-18  Bruno Haible  <bruno@clisp.org>
66964
66965         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66966         avoid that the while loops be executed in a subshell.
66967
66968 2006-09-18  Bruno Haible  <bruno@clisp.org>
66969
66970         * MODULES.html.sh (func_module): Break long lines.
66971         Suggested by Bruce Korb <bkorb@gnu.org>.
66972
66973 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66974
66975         Speed up by a factor of 1.12.
66976         * gnulib-tool (nl): New variable.
66977         (func_import): Rewrite include directive extraction to only read each
66978         directive once.
66979
66980 2006-09-17  Bruno Haible  <bruno@clisp.org>
66981
66982         * modules/javaversion (Makefile.am): Remove DEFS setting.
66983         (Depends-on): Add configmake, for PKGDATADIR definition.
66984
66985 2006-09-17  Bruno Haible  <bruno@clisp.org>
66986
66987         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66988
66989 2006-09-17  Bruno Haible  <bruno@clisp.org>
66990
66991         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66992         (func_modules_transitive_closure, func_modules_add_dummy,
66993         func_modules_to_filelist, func_import, func_create_testdir,
66994         func_create_megatestdir, ...): Use it wherever possible.
66995         Suggested by Ralf Wildenhues.
66996
66997 2006-09-16  Karl Berry  <karl@gnu.org>
66998
66999         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67000         to avoid sectioning errors.
67001         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67002         [ifinfo]: blank line after @center-ed titles.
67003         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67004         Spell FSF address consistently with others.
67005         (These changes approved by rms.)
67006
67007 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67008
67009         Speed up by a factor of 1.61.
67010         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67011         already checked module names again.
67012
67013 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67014
67015         Speed up by a factor of 1.13.
67016         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67017         for new_files, and the input to func_add_or_update.
67018
67019 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67020
67021         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67022         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67023
67024 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * modules/mkancesdirs (Depends-on): Add fcntl.
67027         * modules/savewd: New file.
67028         * MODULES.html.sh (File system functions): Add savewd.
67029
67030         * modules/configmake (Makefile.am): Add support for the
67031         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67032
67033 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67034
67035         * m4/savewd.m4: New file.
67036
67037 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67038
67039         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67040         (dirchownmod): New arg FD.  All callers changed.
67041         Use FD rather than opening the directory ourself, as opening is
67042         now the caller's responsibility.
67043         * lib/dirchownmod.h: Likewise.
67044         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67045         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67046         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67047         (test_dir): Remove.
67048         (mkancesdirs): Return length of prefix of FILE that has already
67049         been made, or -2 if there is a child doing the work.  Redo
67050         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67051         ".", and treat ".." specially since it might stray back into
67052         already-created areas.  Use a subprocess if necessary.  New arg
67053         WD; all users changed.  MAKE_DIR function should now return 1
67054         if it creates a directory that is not readable.  Return -2 if
67055         a child process is spun off.
67056         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67057         Adjust signature to match code.
67058         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67059         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67060         all users changed.
67061         * lib/savewd.c, lib/savewd.h: New files.
67062
67063 2006-09-15  Jim Meyering  <jim@meyering.net>
67064
67065         * modules/rename-dest-slash: New module.
67066         * MODULES.html.sh (posix_compat): Add it here.
67067
67068         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67069
67070 2006-09-15  Jim Meyering  <jim@meyering.net>
67071
67072         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67073         file.
67074
67075         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67076
67077 2006-09-15  Jim Meyering  <jim@meyering.net>
67078
67079         * lib/rename-dest-slash.c (has_trailing_slash): Use
67080         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67081         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67082         test before testing whether SRC is a directory.
67083         Suggestions from Bruno Haible.
67084
67085         Avoid a warning about an unused variable.
67086         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67087         into the #ifdef block where it's used.
67088
67089         * lib/rename-dest-slash.c: New file.
67090
67091 2006-09-14  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/allocsa.c: Include <config.h> unconditionally.
67094         * lib/asnprintf.c: Likewise.
67095         * lib/asprintf.c: Likewise.
67096         * lib/c-strcasecmp.c: Likewise.
67097         * lib/c-strcasestr.c: Likewise.
67098         * lib/c-strncasecmp.c: Likewise.
67099         * lib/c-strstr.c: Likewise.
67100         * lib/classpath.c: Likewise.
67101         * lib/clean-temp.c: Likewise.
67102         * lib/concatpath.c: Likewise.
67103         * lib/copy-file.c: Likewise.
67104         * lib/csharpcomp.c: Likewise.
67105         * lib/csharpexec.c: Likewise.
67106         * lib/execute.c: Likewise.
67107         * lib/fatal-signal.c: Likewise.
67108         * lib/findprog.c: Likewise.
67109         * lib/fwriteerror.c: Likewise.
67110         * lib/gl_array_list.c: Likewise.
67111         * lib/gl_array_oset.c: Likewise.
67112         * lib/gl_avltree_list.c: Likewise.
67113         * lib/gl_avltree_oset.c: Likewise.
67114         * lib/gl_avltreehash_list.c: Likewise.
67115         * lib/gl_carray_list.c: Likewise.
67116         * lib/gl_linked_list.c: Likewise.
67117         * lib/gl_linkedhash_list.c: Likewise.
67118         * lib/gl_list.c: Likewise.
67119         * lib/gl_oset.c: Likewise.
67120         * lib/gl_rbtree_list.c: Likewise.
67121         * lib/gl_rbtree_oset.c: Likewise.
67122         * lib/gl_rbtreehash_list.c: Likewise.
67123         * lib/imaxabs.c: Likewise.
67124         * lib/imaxdiv.c: Likewise.
67125         * lib/javacomp.c: Likewise.
67126         * lib/javaexec.c: Likewise.
67127         * lib/javaversion.c: Likewise.
67128         * lib/linebreak.c: Likewise.
67129         * lib/localcharset.c: Likewise.
67130         * lib/lock.c: Likewise.
67131         * lib/mbchar.c: Likewise.
67132         * lib/mbswidth.c: Likewise.
67133         * lib/mkdtemp.c: Likewise.
67134         * lib/pipe.c: Likewise.
67135         * lib/printf-args.c: Likewise.
67136         * lib/printf-parse.c: Likewise.
67137         * lib/progname.c: Likewise.
67138         * lib/progreloc.c: Likewise.
67139         * lib/readlink.c: Likewise.
67140         * lib/sh-quote.c: Likewise.
67141         * lib/stpcpy.c: Likewise.
67142         * lib/stpncpy.c: Likewise.
67143         * lib/strcasecmp.c: Likewise.
67144         * lib/strcasestr.c: Likewise.
67145         * lib/strcspn.c: Likewise.
67146         * lib/striconv.c: Likewise.
67147         * lib/strncasecmp.c: Likewise.
67148         * lib/strnlen1.c: Likewise.
67149         * lib/strstr.c: Likewise.
67150         * lib/strtok_r.c: Likewise.
67151         * lib/tls.c: Likewise.
67152         * lib/tmpdir.c: Likewise.
67153         * lib/unicodeio.c: Likewise.
67154         * lib/unsetenv.c: Likewise.
67155         * lib/vasnprintf.c: Likewise.
67156         * lib/vasprintf.c: Likewise.
67157         * lib/wait-process.c: Likewise.
67158         * lib/xallocsa.c: Likewise.
67159         * lib/xsetenv.c: Likewise.
67160         * lib/xstriconv.c: Likewise.
67161
67162 2006-09-13  Simon Josefsson  <jas@extundo.com>
67163
67164         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67165         that internally, suggested by Ralf Wildenhues
67166         <Ralf.Wildenhues@gmx.de>.
67167
67168 2006-09-13  Simon Josefsson  <jas@extundo.com>
67169
67170         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67171         @LIBOBJS@.
67172         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67173
67174 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67175
67176         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67177         longer worry about uses that don't define HAVE_CONFIG_H.
67178         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67179         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67180         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67181         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67182         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67183         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67184         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67185         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67186         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67187         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67188         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67189         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67190         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67191         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67192         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67193         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67194         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67195         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67196         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67197         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67198         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67199         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67200         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67201         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67202         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67203         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67204         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67205         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67206         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67207         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67208         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67209         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67210         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67211         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67212         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67213         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67214         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67215         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67216         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67217         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67218         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67219         Likewise.
67220
67221 2006-09-13  Eric Blake  <ebb9@byu.net>
67222
67223         * lib/getopt.c: Fix typo in last commit.
67224
67225 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67226
67227         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67228         dgettext.
67229
67230 2006-09-12  Jim Meyering  <jim@meyering.net>
67231
67232         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67233         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67234         Reported by Nelson H. F. Beebe.
67235
67236 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67237
67238         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67239         program_invocation_name and program_invocation_short_name are
67240         initialized.
67241         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67242         and program_invocation_short_name to argp.h, so they are visible
67243         to user programs.
67244         * lib/argp.h: Likewise
67245
67246 2006-09-10  Bruno Haible  <bruno@clisp.org>
67247
67248         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67249         m4/inttypes_h.m4, m4/uintmax_t.m4.
67250
67251 2006-09-10  Bruno Haible  <bruno@clisp.org>
67252
67253         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67254         gl_AC_TYPE_UINTMAX_T.
67255
67256 2006-09-10  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67259
67260 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67261
67262         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67263         convention.  Text proposed by Bruno Haible.
67264         (struct argp_option): Document the use of N_() wrappers.
67265
67266         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67267         '\v', and translate the two parts separately, instead of feeding
67268         the whole string to gettext.  This allows to exclude
67269         '\v' from the strings visible to the translator by writing doc
67270         strings as N_("..") "\v" N_("..").
67271
67272 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67273
67274         * config/srclist.txt: Undo latest change; the bug was fixed.
67275
67276 2006-09-09  Bruno Haible  <bruno@clisp.org>
67277
67278         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67279         assignments if building a library without libtool.
67280         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67281         in func_emit_lib_Makefile_am.
67282         (func_import): When building a static library libfoo.a, arrange to
67283         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67284         (func_create_testdir): Likewise.
67285         * modules/gc (configure.ac, Makefile.am): If building statically,
67286         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67287         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67288         * modules/striconv (configure.ac, Makefile.am): Likewise.
67289         Based on a suggestion by Ralf Wildenhues.
67290
67291 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67294         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67295         Also:
67296
67297         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67298         Add year_2050_test to catch glibc bug 2821
67299         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67300
67301         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67302         Prefer #ifdef to #if.
67303
67304         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67305         Return from 'main' instead of calling 'exit'.
67306
67307 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67308
67309         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67310         returned the maximum time_t value rather than (time_t) -1.
67311         Problem originally reported by William Bardwell
67312         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67313
67314         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67315         Moved to here ...
67316         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67317         ... from here.
67318
67319 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67322         2821 is fixed.
67323
67324 2006-09-08  Jim Meyering  <jim@meyering.net>
67325
67326         Don't make generated files read-only.  That would bother too many
67327         people.  However, do retain the ability to work when targets are
67328         read-only: remove the destination and temporary files before writing
67329         them (when generated via sed or echo), or by using the -f option for
67330         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67331         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67332         * modules/byteswap, modules/configmake, modules/fcntl:
67333         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67334         * modules/localcharset, modules/netinet_in, modules/poll:
67335         * modules/stdbool, modules/stdint, modules/sys_select:
67336         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67337
67338 2006-09-08  Jim Meyering  <jim@meyering.net>
67339
67340         Avoid new build failure on FreeBSD 6.0.
67341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67342         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67343         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67344
67345 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67346
67347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67348
67349 2006-09-07  Jim Meyering  <jim@meyering.net>
67350
67351         Fix global typo in last change: use chmod u-w, not chmod u-x.
67352         Spotted by Paul Eggert and Bruce Korb.
67353         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67354         * modules/byteswap, modules/configmake, modules/fcntl:
67355         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67356         * modules/localcharset, modules/netinet_in, modules/poll:
67357         * modules/stdbool, modules/stdint, modules/sys_select:
67358         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67359
67360 2006-09-06  Jim Meyering  <jim@meyering.net>
67361
67362         Make generated files be read-only.
67363         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67364         Ensure that each generated file is now read-only.
67365         * modules/argz: Likewise.
67366         * modules/arpa_inet: Likewise.
67367         * modules/byteswap: Likewise.
67368         * modules/configmake: Likewise.
67369         * modules/fcntl: Likewise.
67370         * modules/fnmatch: Likewise.
67371         * modules/getopt: Likewise.
67372         * modules/glob: Likewise.
67373         * modules/inttypes: Likewise.
67374         * modules/netinet_in: Likewise.
67375         * modules/poll: Likewise.
67376         * modules/stdbool: Likewise.
67377         * modules/stdint: Likewise.
67378         * modules/sys_select: Likewise.
67379         * modules/sys_socket: Likewise.
67380         * modules/sys_stat: Likewise.
67381         * modules/sysexits: Likewise.
67382         * modules/localcharset: Same as above, but continue using temporary
67383         file named "t-$@" (why different?) rather than the "$@-t" used
67384         everywhere else.
67385
67386         * modules/sysexits (Makefile.am): Replace literal occurrences
67387         of "sysexit.h" more readable, and more consistent, "$@".
67388
67389 2006-09-06  Bruno Haible  <bruno@clisp.org>
67390
67391         * modules/striconv: New file.
67392         * modules/xstriconv: New file.
67393         * MODULES.html.sh (Internationalization functions): Add striconv,
67394         xstriconv.
67395
67396 2006-09-06  Bruno Haible  <bruno@clisp.org>
67397
67398         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67399         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67400         not using libtool correctly.
67401
67402 2006-09-06  Bruno Haible  <bruno@clisp.org>
67403
67404         * lib/striconv.h: New file.
67405         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67406         iconvstring.c.
67407         * lib/xstriconv.h: New file.
67408         * lib/xstriconv.c: New file.
67409
67410 2006-09-06  Bruno Haible  <bruno@clisp.org>
67411
67412         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67413         lib_..._LDFLAGS.
67414
67415 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67416
67417         * lib/argz_.h: Sync from Libtool.
67418
67419         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67420                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67421
67422         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67423
67424 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67425
67426         * modules/trim: New file.
67427
67428 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67429
67430         * lib/trim.h: New file.
67431         * lib/trim.c: New file.
67432
67433 2006-09-05  Bruno Haible  <bruno@clisp.org>
67434
67435         * MODULES.html.sh (String handling): Add trim.
67436
67437 2006-09-04  Karl Berry  <karl@gnu.org>
67438
67439         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67440         until next release.
67441
67442 2006-09-03  Bruno Haible  <bruno@clisp.org>
67443
67444         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67445         correctly.
67446
67447 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67450         not gl_GETLOADAVG.  Omit unneeded semicolons.
67451         Problems reported by Ralf Wildenhues in
67452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67453         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67454         at the end, which is the usual gnulib style.
67455
67456         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67457         of doing all the work ourselves.
67458         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67459         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67460
67461 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67464         Problem reported by Ralf Wildenhues in
67465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67466
67467         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67468         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67469
67470 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67473         yesterday's patch by changing test -n to test -z.
67474
67475 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67478         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67479         the former is now obsolescent.
67480
67481         * modules/chdir-long (Depends-on): Add fcntl.
67482
67483 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67486         obsolescent, and programs should use gnulib instead.
67487         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67488         but with prefixes changed.
67489
67490 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67493         or stdbool.h, because they might not exist while configuring.
67494
67495         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67496         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67497         does that for us.
67498         (O_DIRECTORY): Remove.
67499
67500 2006-08-31  Eric Blake  <ebb9@byu.net>
67501
67502         * gnulib-tool: Don't let emacs change spaces to TAB.
67503
67504 2006-08-31  Bruno Haible  <bruno@clisp.org>
67505
67506         * gnulib-tool: When calling func_import more than once, do it in a
67507         subshell.
67508         Reported by Eric Blake <ebb9@byu.net>.
67509
67510 2006-08-31  Bruno Haible  <bruno@clisp.org>
67511
67512         * gnulib-tool (nl): Remove variable.
67513         (sed_transform_lib_file): Use more robust test for config-h module.
67514         (func_import): Fix typo in 2006-08-25 patch.
67515
67516 2006-08-31  Bruno Haible  <bruno@clisp.org>
67517
67518         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67519         specified, augment Makefile.am variables instead of assigning them.
67520
67521 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         Work around a bug in both the Linux and SunOS 64-bit kernels:
67524         nanosleep mishandles sleeps for longer than 2**31 seconds.
67525         Problem reported by Frank v Waveren in
67526         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67528         Check for nanosleep bug.
67529         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67530
67531 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         Work around a bug in both the Linux and SunOS 64-bit kernels:
67534         nanosleep mishandles sleeps for longer than 2**31 seconds.
67535         Problem reported by Frank v Waveren in
67536         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67537         * lib/nanosleep.c (BILLION): New constant.
67538         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67539         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67540         implementation.
67541
67542 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * modules/nanosleep (Depends-on): Add gettime.
67545
67546 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67547         and Simon Josefsson  <jas@extundo.com>
67548         and Oskar Liljeblad  <oskar@osk.mine.nu>
67549
67550         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67551         * gnulib-tool (func_import): New license type 'unmodifiable license
67552         text'.
67553         * modules/fdl: Use it.  Longer description.
67554         * module/gpl, module/lgpl: New files.
67555
67556 2006-08-30  Jim Meyering  <jim@meyering.net>
67557
67558         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67559         shadowing the parameter.
67560
67561 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67562
67563         Sync from Libtool:
67564
67565         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67566
67567         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67568         sharing with gnulib.  Report by Eric Blake.
67569
67570 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         * modules/isapipe: New file.
67573         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67574
67575 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67576
67577         * modules/configmake (Makefile.am): Add a comment, and omit
67578         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67579         by Bruno Haible.
67580
67581 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * m4/isapipe.m4: New file.
67584
67585 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * lib/isapipe.c, lib/isapipe.h: New files.
67588
67589 2006-08-29  Jim Meyering  <jim@meyering.net>
67590
67591         * modules/configmake (Makefile.am): Make configmake.h depend on
67592         Makefile.  Otherwise, a stale configmake.h could hang around.
67593
67594 2006-08-29  Eric Blake  <ebb9@byu.net>
67595
67596         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67597         resolution of upstream bug 3044.
67598
67599 2006-08-29  Bruno Haible  <bruno@clisp.org>
67600
67601         * modules/localcharset (Depends-on): Add configmake.
67602         (Makefile.am): Remove setting of LIBDIR through DEFS.
67603
67604 2006-08-29  Bruno Haible  <bruno@clisp.org>
67605
67606         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67607         defined.
67608
67609 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67610
67611         * modules/fcntl: New file.
67612         * modules/chdir-safer (Depends-on): Add fcntl.
67613         * modules/fts: Likewise.
67614         * modules/mkdir-p: Likewise.
67615
67616         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67617         This undoes the most recent change, since we're now addressing the
67618         problem in a different way.
67619
67620         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67621         into output, since the output might be called Makefile.am even
67622         if $makefile_name is something different.
67623         (func_import): Use $makefile_am rather than
67624         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67625         empty.
67626
67627         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67628
67629 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67632         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67633         recent change to stdint.m4, since we're now addressing the problem in a
67634         different way.
67635
67636 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67637
67638         * m4/fcntl_h.m4: New file.
67639
67640 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * lib/fcntl_.h: New file.
67643         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67644         the fcntl module.
67645         * lib/dirchownmod.c: Likewise.
67646         * lib/fts.c: Likewise.
67647
67648         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67649         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67650         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67651         just before including <inttypes.h>, to avoid circular inclusion.
67652
67653 2006-08-28  Jim Meyering  <jim@meyering.net>
67654
67655         * doc/visibility.texi: Actually read and correct the grammar of the
67656         sentence affected by yesterday's change.
67657
67658 2006-08-28  Eric Blake  <ebb9@byu.net>
67659
67660         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67661         needs wrapper.
67662
67663 2006-08-28  Eric Blake  <ebb9@byu.net>
67664
67665         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67666
67667 2006-08-28  Eric Blake  <ebb9@byu.net>
67668
67669         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67670
67671 2006-08-28  Bruno Haible  <bruno@clisp.org>
67672
67673         * modules/c-strstr: New file, from GNU gettext.
67674         * MODULES.html.sh (String handling): Add c-strstr.
67675
67676 2006-08-28  Bruno Haible  <bruno@clisp.org>
67677
67678         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67679         macros.
67680         Reported by Eric Blake.
67681
67682 2006-08-28  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67685         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67686         * lib/vasprintf.c: Include errno.h, limits.h.
67687         (EOVERFLOW): New fallback definition.
67688         (vasprintf): Test here whether the string length is > INT_MAX.
67689         * lib/vsnprintf.c: Include errno.h, limits.h.
67690         (EOVERFLOW): New fallback definition.
67691         (vsnprintf): Fix bug when generated string was too long for the buffer.
67692         Test here whether the string length is > INT_MAX.
67693
67694 2006-08-28  Bruno Haible  <bruno@clisp.org>
67695
67696         * lib/inttypes_.h (SCNX*): Remove definitions.
67697         Reported by Eric Blake.
67698
67699 2006-08-28  Bruno Haible  <bruno@clisp.org>
67700
67701         * lib/c-strstr.h: New file, from GNU gettext.
67702         * lib/c-strstr.c: New file, from GNU gettext.
67703
67704 2006-08-28  Bruno Haible  <bruno@clisp.org>
67705
67706         * gnulib-tool: Reorder some statements.
67707
67708 2006-08-28  Bruno Haible  <bruno@clisp.org>
67709
67710         * gnulib-tool: New option --makefile-name.
67711         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67712         $makefile_name.
67713         (func_import): Write $makefile_name to the cache file, and read it from
67714         there unless explicitly specified. Use $makefile_name as file name
67715         instead of Makefile.am. Adjust the recommendations accordingly.
67716
67717 2006-08-28  Bruno Haible  <bruno@clisp.org>
67718
67719         * gnulib-tool (func_verify_module): Check against misapplying patch.
67720
67721 2006-08-28  Bruno Haible  <bruno@clisp.org>
67722
67723         * gnulib-tool (func_relativize, func_relconcat): New functions.
67724         Give an error if --local-dir is given with --update.
67725         Remove trailing slashes from $local_gnulib_dir.
67726         (func_import): Store the relativized $local_gnulib_dir in
67727         gnulib-cache.m4, and read it from there if not specified explicitly.
67728
67729 2006-08-28  Bruno Haible  <bruno@clisp.org>
67730
67731         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67732         is the current directory. Respect also $local_gnulib_dir.
67733
67734 2006-08-28  Bruno Haible  <bruno@clisp.org>
67735             Simon Josefsson  <jas@extundo.com>
67736
67737         BeOS portability.
67738         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67739
67740 2006-08-27  Jim Meyering  <jim@meyering.net>
67741
67742         * doc/visibility.texi: Remove duplicate word: "pointer".
67743
67744 2006-08-26  Bruno Haible  <bruno@clisp.org>
67745
67746         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67747         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67748         (Makefile.am): Create inttypes.h from inttypes_.h.
67749         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67750
67751         * modules/imaxabs: New file.
67752
67753         * modules/imaxdiv: New file.
67754
67755 2006-08-26  Bruno Haible  <bruno@clisp.org>
67756
67757         * m4/inttypes.m4: New file.
67758         * m4/_inttypes_h.m4: Remove file.
67759         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67760         PRI_MACROS_BROKEN.
67761         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67762
67763         * m4/imaxabs.m4: New file.
67764
67765         * m4/imaxdiv.m4: New file.
67766
67767 2006-08-26  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/inttypes_.h: New file.
67770         * lib/inttypes.h: Remove file.
67771         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67772
67773         * lib/imaxabs.c: New file.
67774
67775         * lib/imaxdiv.c: New file.
67776
67777 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         New config-h module, so that "make" output needn't be cluttered
67780         by -DHAVE_CONFIG_H.
67781         * MODULES.html.sh (Support for building libraries and executables):
67782         Add config-h.
67783         * modules/config-h: New file.
67784         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67785         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67786         the config-h module is used.
67787
67788         New configmake module, so that "make" output needn't be cluttered
67789         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67790         * MODULES.html.sh (Support for building libraries and executables):
67791         Add configmake.
67792         * modules/configmake: New file.
67793
67794 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         * m4/config-h.m4: New file.
67797
67798 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67799
67800         * config/srclist.txt: Add elisp-comp.
67801
67802 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * MODULES.html.sh (Support for building libraries and executables):
67805         Add elisp-comp.
67806         * build-aux/elisp-comp: New file.
67807         * modules/elisp-comp: New file.
67808
67809 2006-08-24  Bruno Haible  <bruno@clisp.org>
67810
67811         * gnulib-tool (func_create_testdir): Use non-default values of
67812         sourcebase and m4base.
67813
67814 2006-08-24  Bruno Haible  <bruno@clisp.org>
67815
67816         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67817         HTML structure.
67818
67819 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67820
67821         * modules/openat (Depends-on): Add lchown.
67822
67823 2006-08-23  Bruno Haible  <bruno@clisp.org>
67824
67825         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67826         of gl_LOCK_EARLY instead of gl_LOCK.
67827
67828 2006-08-23  Bruno Haible  <bruno@clisp.org>
67829
67830         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67831         on OSF/1 to no.
67832         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67833
67834 2006-08-23  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67837         as unusable.
67838
67839         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67840         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67841         (gl_LOCK): New macro.
67842
67843 2006-08-22  Simon Josefsson  <jas@extundo.com>
67844
67845         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67846         to md5 module.
67847
67848 2006-08-22  Simon Josefsson  <jas@extundo.com>
67849
67850         * MODULES.html.sh: Add "Support for maintaining and release
67851         projects".
67852
67853         * build-aux/gnupload: New file, from coreutils.
67854
67855 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         Avoid the need for AC_LIBSOURCES in m4 macros.
67858         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67859         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67860         * modules/check-version (EXTRA_DIST): Add check-version.h.
67861         * modules/crc (EXTRA_DIST): Add crc.h.
67862         * modules/des (EXTRA_DIST): Add des.h.
67863         * modules/gc (EXTRA_DIST): Add gc.h.
67864         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67865         * modules/getline (EXTRA_DIST): Add getline.h.
67866         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67867         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67868         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67869         * modules/md2 (EXTRA_DIST): Add md2.h.
67870         * modules/md4 (EXTRA_DIST): Add md4.h.
67871         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67872         * modules/read-file (EXTRA_DIST): Add read-file.h.
67873         * modules/readline (EXTRA_DIST): Add readline.h.
67874         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67875         rijndael-api-fst.h.
67876
67877 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * m4/rijndael.m4 (gl_ARCFOUR):
67880         * m4/arctwo.m4 (gl_ARCTWO):
67881         * m4/check-version.m4 (gl_CHECK_VERSION):
67882         * m4/crc.m4 (gl_CRC):
67883         * m4/des.m4 (gl_DES):
67884         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67885         * m4/gc.m4 (gl_GC):
67886         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67887         * m4/getline.m4 (gl_FUNC_GETLINE):
67888         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67889         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67890         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67891         * m4/md2.m4 (gl_MD2):
67892         * m4/md4.m4 (gl_MD4):
67893         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67894         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67895         * m4/readline.m4 (gl_FUNC_READLINE):
67896         * m4/rijndael.m4 (gl_RIJNDAEL):
67897         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67898         to get the necessary .h files and whatnot.
67899
67900 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67903         gnulib rather than the other way around.
67904         * config/srclistvars.sh (COREUTILS): Remove.
67905
67906 2006-08-22  Jim Meyering  <jim@meyering.net>
67907
67908         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67909
67910         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67911
67912 2006-08-22  Eric Blake  <ebb9@byu.net>
67913
67914         * modules/regexprops-generic: New file.
67915         * MODULES.html.sh (Support for building documentation): List it.
67916
67917 2006-08-22  Eric Blake  <ebb9@byu.net>
67918
67919         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67920         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67922         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67923
67924 2006-08-22  Bruno Haible  <bruno@clisp.org>
67925
67926         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67927         and lib_LTLIBRARIES like the other lib_* variables.
67928
67929 2006-08-22  Bruno Haible  <bruno@clisp.org>
67930
67931         * build-aux/x-to-1.in: New file, from GNU gettext.
67932
67933 2006-08-22  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67936         <utmpx.h> exists.
67937
67938 2006-08-22  Bruno Haible  <bruno@clisp.org>
67939
67940         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67941         <utmpx.h> exists.
67942
67943 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         BeOS portability.
67946         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67947         exist.
67948         Problem reported by Bruno Haible.
67949
67950 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         Avoid the need for AC_LIBSOURCES in m4 macros.
67953         * modules/acl (EXTRA_DIST): Add acl.h.
67954         * modules/argmatch (Files): Add m4/argmatch.m4.
67955         (configure.ac): Add gl_ARGMATCH.
67956         (EXTRA_DIST): Renamed from lib_SOURCES, for
67957         consistency with the other modules.  Remove argmatch.c.
67958         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67959         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67960         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67961         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67962         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67963         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67964         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67965         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67966         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67967         * modules/closeout (EXTRA_DIST): Add closeout.h.
67968         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67969         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67970         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67971         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67972         dirname.h; remove basename.c and stripslash.c.
67973         * modules/exclude (EXTRA_DIST): Add exclude.h.
67974         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67975         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67976         * modules/file-type (EXTRA_DIST): Add file-type.h.
67977         * modules/filemode (EXTRA_DIST): Add filemode.h.
67978         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67979         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67980         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67981         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67982         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67983         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67984         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67985         * modules/getdate (EXTRA_DIST): Add getdate.c.
67986         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67987         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67988         * modules/getpass (EXTRA_DIST): Add getpass.h.
67989         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67990         * modules/group-member (EXTRA_DIST): Add group-member.h.
67991         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67992         * modules/hash (EXTRA_DIST): Add hash.h.
67993         * modules/human (EXTRA_DIST): Add human.h.
67994         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67995         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67996         * modules/lchown (EXTRA_DIST): Add lchown.h.
67997         * modules/long-options (EXTRA_DIST): Add long-options.h.
67998         * modules/lstat (EXTRA_DIST): Add lstat.h.
67999         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68000         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68001         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68002         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68003         * modules/memxor (EXTRA_DIST): Add memxor.h.
68004         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68005         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68006         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68007         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68008         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68009         * modules/physmem (EXTRA_DIST): Add physmem.h.
68010         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68011         * modules/posixver (EXTRA_DIST): Add posixver.h.
68012         * modules/quote (EXTRA_DIST): Add quote.h.
68013         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68014         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68015         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68016         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68017         regex_internal.h regexec.c.
68018         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68019         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68020         * modules/same (EXTRA_DIST): Add same.h.
68021         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68022         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68023         * modules/savedir (EXTRA_DIST): Add savedir.h.
68024         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68025         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68026         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68027         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68028         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68029         * modules/strdup (EXTRA_DIST): Add strdup.h.
68030         * modules/strftime (EXTRA_DIST): Add strftime.h.
68031         * modules/strndup (EXTRA_DIST): Add strndup.h.
68032         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68033         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68034         * modules/time_r (EXTRA_DIST): Add time_r.h.
68035         * modules/timespec (EXTRA_DIST): Add timespec.h.
68036         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68037         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68038         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68039         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68040         * modules/userspec (EXTRA_DIST): Add userspec.h.
68041         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68042         * modules/utimens (EXTRA_DIST): Add utimens.h.
68043         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68044         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68045         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68046         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68047         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68048         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68049         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68050         * modules/yesno (EXTRA_DIST): Add yesno.h.
68051
68052 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68055
68056         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68057         * m4/dev-ino.m4, same-inode.m4: Remove.
68058
68059         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68060         * m4/acl.m4 (AC_FUNC_ACL):
68061         * m4/backupfile.m4 (gl_BACKUPFILE):
68062         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68063         * m4/canon-host.m4 (gl_CANON_HOST):
68064         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68065         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68066         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68067         * m4/cloexec.m4 (gl_CLOEXEC):
68068         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68069         * m4/closeout.m4 (gl_CLOSEOUT):
68070         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68071         * m4/dirname.m4 (gl_DIRNAME):
68072         * m4/exclude.m4 (gl_EXCLUDE):
68073         * m4/exitfail.m4 (gl_EXITFAIL):
68074         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68075         * m4/file-type.m4 (gl_FILE_TYPE):
68076         * m4/filemode.m4 (gl_FILEMODE):
68077         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68078         * m4/fpending.m4 (gl_FUNC_FPENDING):
68079         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68080         * m4/fts.m4 (gl_FUNC_FTS):
68081         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68082         * m4/getdate.m4 (gl_GETDATE):
68083         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68084         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68085         * m4/getpass.m4 (gl_FUNC_GETPASS):
68086         * m4/gettime.m4 (gl_GETTIME):
68087         * m4/getugroups.m4 (gl_GETUGROUPS):
68088         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68089         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68090         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68091         * m4/hash.m4 (gl_HASH):
68092         * m4/idcache.m4 (gl_IDCACHE):
68093         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68094         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68095         * m4/long-options.m4 (gl_LONG_OPTIONS):
68096         * m4/lstat.m4 (gl_FUNC_LSTAT):
68097         * m4/md5.m4 (gl_MD5):
68098         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68099         * m4/memcoll.m4 (gl_MEMCOLL):
68100         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68101         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68102         * m4/memxor.m4 (gl_MEMXOR):
68103         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68104         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68105         * m4/modechange.m4 (gl_MODECHANGE):
68106         * m4/mountlist.m4 (gl_MOUNTLIST):
68107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68108         * m4/openat.m4 (gl_FUNC_OPENAT):
68109         * m4/pathmax.m4 (gl_PATHMAX):
68110         * m4/physmem.m4 (gl_PHYSMEM):
68111         * m4/posixtm.m4 (gl_POSIXTM):
68112         * m4/posixver.m4 (gl_POSIXVER):
68113         * m4/quote.m4 (gl_QUOTE):
68114         * m4/quotearg.m4 (gl_QUOTEARG):
68115         * m4/readtokens.m4 (gl_READTOKENS):
68116         * m4/readutmp.m4 (gl_READUTMP):
68117         * m4/regex.m4 (gl_REGEX):
68118         * m4/safe-read.m4 (gl_SAFE_READ):
68119         * m4/safe-write.m4 (gl_SAFE_WRITE):
68120         * m4/same.m4 (gl_SAME):
68121         * m4/save-cwd.m4 (gl_SAVE_CWD):
68122         * m4/savedir.m4 (gl_SAVEDIR):
68123         * m4/settime.m4 (gl_SETTIME):
68124         * m4/sha1.m4 (gl_SHA1):
68125         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68126         * m4/stat-macros.m4 (gl_STAT_MACROS):
68127         * m4/stat-time.m4 (gl_STAT_TIME):
68128         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68129         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68130         * m4/strdup.m4 (gl_FUNC_STRDUP):
68131         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68132         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68133         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68134         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68135         * m4/time_r.m4 (gl_TIME_R):
68136         * m4/timespec.m4 (gl_TIMESPEC):
68137         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68138         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68139         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68140         * m4/userspec.m4 (gl_USERSPEC):
68141         * m4/utimecmp.m4 (gl_UTIMECMP):
68142         * m4/utimens.m4 (gl_UTIMENS):
68143         * m4/xalloc.m4 (gl_XALLOC):
68144         * m4/xgetcwd.m4 (gl_XGETCWD):
68145         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68146         * m4/xreadlink.m4 (gl_XREADLINK):
68147         * m4/xstrtod.m4 (gl_XSTRTOD):
68148         * m4/yesno.m4 (gl_YESNO):
68149         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68150         to get the necessary .h files and whatnot.
68151
68152 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68153             Bruno Haible  <bruno@clisp.org>
68154
68155         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68156         /bin/sh understanding of '!' conditional negation.
68157
68158 2006-08-21  Jim Meyering  <jim@meyering.net>
68159
68160         * modules/openat (Depends-on): Really alphabetize.
68161
68162         * modules/acl (Depends-on): Add error and quote.
68163
68164         * check-module (find_included_lib_files): Add at-func.c to the
68165         ok-to-include-more-than-once white list.
68166
68167         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68168
68169 2006-08-21  Bruno Haible  <bruno@clisp.org>
68170
68171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68172         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68173         Reported by Martin Lambers <marlam@marlam.de>.
68174
68175 2006-08-21  Bruno Haible  <bruno@clisp.org>
68176
68177         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68178         specify an installation location, don't emit a noinst_LIBRARIES or
68179         noinst_LTLIBRARIES assignment.
68180
68181 2006-08-21  Bruno Haible  <bruno@clisp.org>
68182
68183         BeOS portability.
68184         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68185         BeOS has mbrtowc() but no <wctype.h>.
68186
68187 2006-08-21  Bruno Haible  <bruno@clisp.org>
68188
68189         BeOS portability.
68190         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68191         exist.
68192
68193 2006-08-21  Bruno Haible  <bruno@clisp.org>
68194
68195         BeOS portability.
68196         * lib/mbchar.h: Include <wctype.h> only if it exists.
68197
68198 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         Remove files that are no longer needed by their respective modules.
68201         * m4/obstack.m4: Remove.
68202         * m4/strerror_r.m4: Remove.
68203         * m4/uint32_t.m4: Remove.
68204         * m4/uintptr_t.m4: Remove.
68205         * m4/ullong_max.m4: Remove.
68206         * m4/xstrtoimax.m4: Remove.
68207         * m4/xstrtoumax.m4: Remove.
68208
68209         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68210         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68211         dependencies now capture this.
68212
68213         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68214         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68215         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68216         * m4/human.m4 (gl_HUMAN): Likewise.
68217         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68218         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68219
68220         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68221
68222         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68223         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68224         stdint.
68225         * m4/human.m4 (gl_HUMAN): Likewise.
68226         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68227         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68228         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68229         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68230         * m4/xstrtol (gl_XSTRTOL): Likewise.
68231
68232         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68233         AC_TYPE_LONG_LONG_INT.
68234         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68235         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68236         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68237         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68238
68239         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68240         on stdbool.
68241
68242         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68243         (gl_PREREQ_XSTRTOUL): Remove.
68244
68245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68246
68247         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68248         mode.
68249
68250 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         Add and change modules to make it easier for coreutils to use
68253         gnulib-tool.
68254         * modules/backupfile (Files): Remove m4/d-ino.m4.
68255         (Depends-on): Add d-ino.
68256         * modules/cycle-check (Depends-on): Add stdint.
68257         (lib_SOURCES): Add cycle-check.h.
68258         * modules/d-ino: New module.
68259         * modules/d-type: New module.
68260         * modules/error (Files): Remove m4/strerror_r.m4.
68261         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68262         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68263         m4/inttypes_h.m4, m4/uintmax_t.m4.
68264         (Depends-on): Add stdint.
68265         (lib_SOURCES): Add fsusage.h.
68266         * modules/getcwd (Files): Remove d-ino.m4.
68267         (Depends-on): Add d-ino.
68268         * modules/getndelim2 (Depends-on): Add stdint.
68269         * modules/glob (Files): Remove m4/d-type.m4.
68270         (Depends-on): Add d-type.
68271         * modules/host-os: New module.
68272         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68273         m4/inttypes_h.m4, m4/uintmax_t.m4.
68274         * Depends-on: Add stdint.
68275         (lib_SOURCES): Add human.h.
68276         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68277         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68278         m4/uintmax_t.m4, m4/ulonglong.m4.
68279         (Depends-on): Add stdint.
68280         (EXTRA_DIST): Add inttostr.h.
68281         * modules/lchmod: New module.
68282         * modules/link-follow: New module.
68283         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68284         (Depends-on): Add lchmod.
68285         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68286         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68287         (Depends-on): Add stdint.
68288         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68289         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68290         (Depends-on): Add stdint.
68291         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68292         * modules/perl: New module.
68293         * modules/regex (Depends-on): Add stdint.
68294         * modules/rmdir-errno: New module.
68295         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68296         m4/intmax_t.m4.
68297         (Depends-on): Add stdint.
68298         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68299         m4/uintmax_t.m4.
68300         (Depends-on): Add stdint.
68301         * modules/unlink-busy: New module.
68302         * modules/utimecmp (Depends-on): Add stdint.
68303         * modules/uptime: New module.
68304         * modules/winsz-ioctl: New module.
68305         * modules/winsz-termios: New module.
68306         * modules/xnanosleep (Depends-on): Add nanosleep.
68307         * modules/ullong_max: Remove.
68308         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68309         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68310         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68311         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68312         (Depends-on): Add inttypes.
68313         (lib_SOURCES): Add xstrtol.h.
68314         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68315         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68316         * MODULES.html.sh: Move 'assert' into the assert section.
68317         Move 'dummy' into the linking section.
68318         Remove ullong_max.
68319         Add section for compatibility checks for POSIX:2001 functions,
68320         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68321         winsz-ioctl, and winsz-termios into it.
68322         Add lchmod.
68323         Add top-level Misc section and put host-os, perl, and uptime
68324         into it.
68325
68326 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68329         now assume the stdint module.  Do not include inttypes.h.
68330         * lib/fsusage.h: Likewise.
68331         * lib/getndelim2.c: Likewise.
68332         * lib/human.h: Likewise.
68333         * lib/inttostr.h: Likewise.
68334         * lib/obstack.c: Likewise.
68335         * lib/regex_internal.h: Likewise.
68336         * lib/tempname.c: Likewise.
68337         * lib/utimecmp.c: Likewise.
68338         * lib/xstrtol.h: Likewise.
68339
68340         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68341
68342         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68343         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68344         * lib/xtime.h: Likewise.
68345
68346 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68347
68348         * modules/openat (Files): Add lib/fchmodat.c.
68349         Fixes problem reported by Jay Youngman.
68350
68351 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68354         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68355
68356 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68357             Bruno Haible  <bruno@clisp.org>
68358
68359         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68360         and is a script that invokes bison. Tighten the code. Add comments.
68361
68362 2006-08-18  Jim Meyering  <jim@meyering.net>
68363
68364         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68365         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68366         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68367         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68368
68369 2006-08-18  Bruno Haible  <bruno@clisp.org>
68370
68371         * modules/bison-i18n: New file.
68372         * MODULES.html.sh (Internationalization functions): Add it.
68373
68374 2006-08-18  Bruno Haible  <bruno@clisp.org>
68375
68376         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68377         sys/statvfs.h. When getmntinfo was found, check its declaration and
68378         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68379
68380 2006-08-18  Bruno Haible  <bruno@clisp.org>
68381
68382         * m4/bison-i18n.m4: New file, from bison.
68383
68384 2006-08-18  Bruno Haible  <bruno@clisp.org>
68385
68386         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68387         (ME_DUMMY): Treat "kernfs" as a dummy.
68388         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68389
68390 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         Update from coreutils.
68393
68394         2006-08-15  Jim Meyering  <jim@meyering.net>
68395
68396         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68397
68398         2006-01-17  Jim Meyering  <jim@meyering.net>
68399
68400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68401
68402         2006-01-11  Jim Meyering  <jim@meyering.net>
68403
68404         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68405         Check for the lchmod function.
68406
68407 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         Update from coreutils.
68410
68411         * lib/__fpending.h: Add copyright notice.
68412         * lib/fprintftime.h: Likewise.
68413         * lib/savedir.c: Use (C) in copyright notice.
68414         * lib/savedir.h: Likewise.
68415
68416         2006-08-15  Jim Meyering  <jim@meyering.net>
68417
68418         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68419         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68420         in support of the EXPECTED_ERRNO macro.
68421         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68422         definitions.  Instead, define the appropriate symbols and include
68423         "at-func.c".
68424         * lib/mkdirat.c (mkdirat): Likewise.
68425         * lib/fchmodat.c (fchmodat): Likewise.
68426         (ENOSYS): Remove definition.
68427         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68428         it.  Don't include "unistd--.h" -- it wasn't ever used.
68429
68430         2006-01-17  Jim Meyering  <jim@meyering.net>
68431
68432         Rewrite fts.c not to change the current working directory,
68433         by using openat, fstatat, fdopendir, etc..
68434
68435         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68436         (HAVE_OPENAT_SUPPORT): Define.
68437         [_LIBC] (fchdir): Don't undef or define; no longer used.
68438         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68439         Now, this `function' always succeeds, and consumes its file descriptor
68440         parameter -- so callers must not close such FDs.  Update callers.
68441         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68442         (diropen): Add parameter, SP.  Adjust all callers.
68443         Implement using diropen_fd, rather than open.
68444         (fts_open): Initialize new member, fts_cwd_fd.
68445         Remove fts_rft-setting code.
68446         (fts_close): Close fts_cwd_fd, if necessary.
68447         (__opendir2): Define in terms of opendir or opendirat,
68448         depending on whether the FST_NOCHDIR flag is set.
68449         (fts_build): Since fts_safe_changedir consumes its FD, and since
68450         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68451         and close the dup'd file descriptor upon failure.
68452         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68453         (fts_safe_changedir): Tweak semantics to reflect that this function
68454         now calls cwd_advance_fd and hence consumes its FD argument.
68455         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68456         [struct FTS] (fts_rft): Remove now-unused member.
68457         [struct FTS] (fts_cycle.state): Improve comment.
68458
68459         * lib/openat.c (openat_needs_fchdir): New function.
68460         * lib/openat.h (openat_needs_fchdir): Declare it.
68461
68462 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68463
68464         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68465         Problem and fix reported by Pádraig Brady in
68466         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68467
68468 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68471
68472 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * lib/memcoll.c (memcoll): Optimize for the common case where the
68475         arguments are bytewise equal.
68476
68477 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * doc/regexprops-generic.texi: Add a copyright notice.
68480
68481 2006-08-15  Bruno Haible  <bruno@clisp.org>
68482
68483         * modules/tmpdir (License): Change to LGPL.
68484
68485 2006-08-15  Bruno Haible  <bruno@clisp.org>
68486
68487         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68488         module.
68489
68490 2006-08-14  Simon Josefsson  <jas@extundo.com>
68491
68492         * config/srclist.txt: Add gnupload.
68493
68494 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68495
68496         Change copyright notice from LGPL 2 to GPL 2, since that's the
68497         standard form used in the gnulib repository.
68498         * tests/test-lock.c: Likewise.
68499         * tests/test-stdint.c: Likewise.
68500         * tests/test-tls.c: Likewise.
68501
68502         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68503         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68504         Add copyright notice.
68505
68506         * check-module: Add copyright notice.  Output a copyright
68507         notice if "--version" is specified.
68508         * modules/COPYING: New file.
68509         * tests/test-getaddrinfo.c: Add copyright notice.
68510         * tests/test-verify.c: Likewise.
68511
68512 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         Change copyright notice from LGPL 2 to GPL 2, since that's the
68515         standard form used in the gnulib repository.
68516         * lib/lock.c: LGPL -> GPL.
68517         * lib/lock.h: Likewise.
68518         * lib/strnlen1.c: Likewise.
68519         * lib/strnlen1.h: Likewise.
68520         * lib/tls.c: Likewise.
68521         * lib/tls.h: Likewise.
68522         * lib/tmpdir.c: Likewise.
68523
68524         * lib/TODO: Remove; this belongs only in coreutils.
68525
68526 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         Add copyright notices to long-enough files that lack them, since
68529         otherwise the files aren't clearly free.  Use the same notice that
68530         getdate.texi already uses.
68531         * doc/alloca-opt.texi: Add copyright notice.
68532         * doc/alloca.texi: Likewise.
68533         * doc/ctime.texi: Likewise.
68534         * doc/functions.texi: Likewise.
68535         * doc/gcd.texi: Likewise.
68536         * doc/gnulib-tool.texi: Likewise.
68537         * doc/inet_ntoa.texi: Likewise.
68538         * doc/visibility.texi: Likewise.
68539
68540         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68541         * doc/quote.texi: Add copyright notice.
68542
68543         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68544         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68545         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68546         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68547         is now obsolete, and give a pointer to the Sun list.
68548         Add copyright notice.
68549
68550 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68551
68552         * config/srclistvars.sh: Add copyright notice.
68553
68554 2006-08-14  Eric Blake  <ebb9@byu.net>
68555
68556         Import the following change from libc:
68557
68558         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68559
68560         Upstream bug 2997.
68561         * lib/misc/error.c: Add space between program name and message if file
68562         name is missing.
68563
68564 2006-08-12  Karl Berry  <karl@gnu.org>
68565
68566         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68567         remove, these originate in gnulib now.
68568
68569 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68570
68571         * doc/Makefile (standards.info standards.html standards.dvi):
68572         Also depend on make-stds.texi.
68573
68574 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68577         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68578
68579         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68580         in wchar_t.  Problem reported by Eric Blake.
68581
68582         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68583         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68584         Also, help the compiler to keep LEN in a register.
68585
68586 2006-08-11  Eric Blake  <ebb9@byu.net>
68587
68588         * users.txt: Sort.  Add tar.
68589
68590 2006-08-11  Bruno Haible  <bruno@clisp.org>
68591
68592         * users.txt: New file.
68593
68594 2006-08-11  Bruno Haible  <bruno@clisp.org>
68595
68596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68597         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68598
68599 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68600
68601         * modules/snprintf (Depends-on): Remove minmax.
68602         (Maintainer): Add self and Bruno.
68603
68604 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68605
68606         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68607         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68608         (EOVERFLOW): Define if the system does not.
68609         Do not include "minmax.h"; it wasn't used.
68610         (snprintf): Don't assume size_t promotes to an unsigned type.
68611         Fix bug when generated string was too long for the buffer: the
68612         buffer's contents are supposed to be the initial prefix of the
68613         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68614         exceeds INT_MAX; do the check ourselves.
68615
68616         Import the following changes from libc:
68617
68618         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68619
68620         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68621         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68622         set wc to the byte which couldn't be converted.
68623         (re_string_reconstruct): Don't clear valid_raw_len before calling
68624         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68625         tip_context using re_string_context_at.
68626
68627         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68628
68629         * lib/posix/regex.h: g++ still cannot handled [restrict].
68630
68631         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68632
68633         * lib/posix/regex.h: Remove special handling for VMS.
68634
68635 2006-08-10  Jim Meyering  <jim@meyering.net>
68636
68637         * modules/same-inode: New module.
68638         * modules/dev-ino: New module.
68639         * modules/cycle-check: Depend on these modules, rather than simply
68640         including their .h files.
68641         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68642         required via m4/cycle-check.m4.
68643         * modules/same: Depend on new same-inode module, rather than
68644         including same-inode.h.
68645         * modules/chdir-safer: New file.
68646
68647         * modules/chown (Depends-on): Add stat-macros.
68648
68649 2006-08-10  Jim Meyering  <jim@meyering.net>
68650
68651         * m4/cycle-check.m4: New file.
68652         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68653         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68654
68655 2006-08-10  Eric Blake  <ebb9@byu.net>
68656
68657         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68658         in from original proposal.
68659
68660 2006-08-10  Eric Blake  <ebb9@byu.net>
68661         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68662
68663         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68664         namespace.
68665
68666 2006-08-10  Bruno Haible  <bruno@clisp.org>
68667
68668         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68669         as well.
68670
68671 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         Sync from coreutils.
68674
68675         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68676
68677         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68678         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68679
68680 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * modules/restrict: Remove; no longer needed now that we assume
68683         Autoconf 2.59 or later.
68684         * MODULES.html.sh: Remove 'restrict'.
68685         * modules/argp (Depends-on): Remove 'restrict'.
68686         * modules/base64 (Depends-on): Likewise.
68687         * modules/gc (Depends-on): Likewise.
68688         * modules/getaddrinfo (Depends-on): Likewise.
68689         * modules/glob (Depends-on): Likewise.
68690         * modules/inet_ntop (Depends-on): Likewise.
68691         * modules/inet_pton (Depends-on): Likewise.
68692         * modules/memxor (Depends-on): Likewise.
68693         * modules/regex (Depends-on): Likewise.
68694         * modules/strtok_r (Depends-on): Likewise.
68695         * modules/time_r (Depends-on): Likewise.
68696
68697 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68700         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68701         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68702         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68703         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68704         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68705         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68706         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68707
68708         Merge from coreutils.
68709         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68710         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68711         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68712         * m4/time_r.m4 (gl_TIME_R): Likewise.
68713
68714 2006-08-09  Karl Berry  <karl@gnu.org>
68715
68716         * config/srclist.txt: no more gettext-tools, per Bruno.
68717
68718 2006-08-08  Eric Blake  <ebb9@byu.net>
68719
68720         * modules/verror: New module.
68721         * MODULES.html.sh: Document it.
68722
68723 2006-08-08  Eric Blake  <ebb9@byu.net>
68724
68725         * lib/verror.h, lib/verror.c: New files.
68726
68727 2006-08-08  Eric Blake  <ebb9@byu.net>
68728
68729         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68730         verror_at_line output complies with GNU Coding Standards even when
68731         file is NULL.
68732
68733 2006-08-07  Bruno Haible  <bruno@clisp.org>
68734
68735         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68736         versions of AIX.
68737         Reported by Ralf Wildenhues.
68738
68739 2006-08-07  Bruno Haible  <bruno@clisp.org>
68740
68741         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68742         in an AC_DEFUN. Needed so that the autoconf snippets can use
68743         AC_REQUIRE.
68744
68745 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68746
68747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68748         Initialize pkgdata_DATA.
68749         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68750         overriding it.
68751
68752 2006-08-06  Eric Blake  <ebb9@byu.net>
68753
68754         * lib/error.h: Fold in some upstream changes from glibc.
68755         * lib/error.c: Likewise.
68756
68757 2006-08-04  Bruno Haible  <bruno@clisp.org>
68758
68759         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68760         Make the mostlyclean-local rule depend on mostlyclean-generic.
68761         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68762
68763 2006-07-31  Bruno Haible  <bruno@clisp.org>
68764
68765         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68766         <stdlib.h>, <string.h>.
68767
68768 2006-07-30  Bruno Haible  <bruno@clisp.org>
68769
68770         * modules/readlink (License): Change to LGPL.
68771
68772 2006-07-30  Bruno Haible  <bruno@clisp.org>
68773
68774         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68775         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68776         set PKGDATADIR to point to it.
68777
68778 2006-07-30  Bruno Haible  <bruno@clisp.org>
68779
68780         * modules/csharpexec (configure.ac): Comment out macro invocation.
68781         * modules/javaexec (configure.ac): Likewise.
68782         * modules/javacomp-script (configure.ac): Likewise.
68783
68784         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68785
68786 2006-07-30  Bruno Haible  <bruno@clisp.org>
68787
68788         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68789         linked-list.
68790
68791 2006-07-30  Bruno Haible  <bruno@clisp.org>
68792
68793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68794
68795 2006-07-30  Bruno Haible  <bruno@clisp.org>
68796
68797         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68798         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68799         get removed.
68800
68801 2006-07-29  Bruno Haible  <bruno@clisp.org>
68802
68803         Make it possible for gnulib-tool to work with locally modified or
68804         augmented gnulib repositories.
68805         * gnulib-tool (func_usage): Document --local-dir option.
68806         (local_gnulib_dir): New variable.
68807         Handle --local-dir option.
68808         (func_lookup_file): New function.
68809         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68810         (func_get_description, func_get_filelist, func_get_description,
68811         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68812         func_get_automake_snippet, func_get_include_directive,
68813         func_get_license, func_get_maintainer): Use func_lookup_file.
68814         (func_import, func_create_testdir): Use func_lookup_file.
68815
68816 2006-07-29  Bruno Haible  <bruno@clisp.org>
68817
68818         * modules/setenv (Depends-on): Add unistd.
68819
68820 2006-07-29  Bruno Haible  <bruno@clisp.org>
68821
68822         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68823
68824 2006-07-29  Bruno Haible  <bruno@clisp.org>
68825
68826         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68827
68828 2006-07-29  Bruno Haible  <bruno@clisp.org>
68829
68830         * gnulib-tool (import, update): If there is no Makefile.am, look at
68831         aclocal.m4, instead of bailing out.
68832
68833 2006-07-29  Bruno Haible  <bruno@clisp.org>
68834
68835         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68836         Categorize the options by when they are useful.
68837
68838 2006-07-29  Bruno Haible  <bruno@clisp.org>
68839
68840         * gnulib-tool (func_usage): Document option --no-libtool.
68841         Handle option --no-libtool.
68842         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68843         for changed semantics of $libtool variable.
68844         (func_import): Likewise. If libtool is not used, show this through
68845         an option --no-libtool.
68846         (func_create_testdir): Update.
68847
68848 2006-07-29  Bruno Haible  <bruno@clisp.org>
68849
68850         * gnulib-tool (func_import): Extend error message about missing
68851         --doc-base.
68852
68853 2006-07-29  Bruno Haible  <bruno@clisp.org>
68854
68855         * gnulib-tool (func_import): Don't create the $docbase directory if
68856         there is no file to store there.
68857
68858 2006-07-29  Bruno Haible  <bruno@clisp.org>
68859
68860         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68861         relevant, look for configure.ac there, not in the current directory.
68862         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68863
68864 2006-07-29  Bruno Haible  <bruno@clisp.org>
68865
68866         * gnulib-tool (SORT): New variable.
68867         (func_usage): Undocument --assume-autoconf option.
68868         Remove --assume-autoconf option handling.
68869         (autoconf_minversion): Determine from the contents of configure.ac.
68870         (func_import): Remove autoconf_minversion handling.
68871         Suggested by Eric Blake.
68872
68873 2006-07-29  Bruno Haible  <bruno@clisp.org>
68874
68875         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68876
68877 2006-07-29  Bruno Haible  <bruno@clisp.org>
68878
68879         * config/srclist.txt (*setenv.[ch]): Remove rules.
68880
68881 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68882
68883         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68884
68885 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68886
68887         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68888         arpa/inet.h.
68889
68890 2006-07-28  Simon Josefsson  <jas@extundo.com>
68891
68892         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68893         * modules/inet_pton (Depends-on): Likewise.
68894
68895 2006-07-28  Simon Josefsson  <jas@extundo.com>
68896
68897         * m4/netinet_in_h.m4: New file.
68898
68899 2006-07-28  Simon Josefsson  <jas@extundo.com>
68900
68901         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68902         #include's.
68903
68904 2006-07-28  Simon Josefsson  <jas@extundo.com>
68905
68906         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68907         #include's.
68908
68909 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68912         setgid on directories only if they set these bits.
68913         * lib/modechange.h: Remove obsolete comment about masks.
68914
68915 2006-07-28  Eric Blake  <ebb9@byu.net>
68916
68917         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68918         macro expansion.
68919
68920 2006-07-28  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68923
68924 2006-07-28  Bruno Haible  <bruno@clisp.org>
68925
68926         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68927
68928 2006-07-28  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68931         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68932         Define fallbacks.
68933         Avoids link error on FreeBSD 4.x.
68934         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68935
68936         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68937         encoding.
68938         * lib/mbswidth.c (iswcntrl): Likewise.
68939
68940 2006-07-27  Bruno Haible  <bruno@clisp.org>
68941
68942         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68943         test.
68944
68945 2006-07-27  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68948         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68949         defined.
68950
68951 2006-07-26  Eric Blake  <ebb9@byu.net>
68952
68953         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68954
68955 2006-07-26  Eric Blake  <ebb9@byu.net>
68956
68957         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68958         like mingw that lack mkstemp.
68959         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68960         avoid compilation warning on mingw.
68961
68962 2006-07-26  Bruno Haible  <bruno@clisp.org>
68963
68964         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68965         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68966         INT_FAST*_MIN, INTPTR_MIN.
68967
68968 2006-07-25  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/version-etc (Depends-on): Add stdarg.
68971
68972 2006-07-25  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68975         complex commands.
68976
68977 2006-07-25  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68980         defined in <stdarg.h> or config.h.
68981
68982 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68985         (gl_STDIO_SAFER): Remove.
68986
68987 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * MODULES.html.sh (File stream based Input/Output):
68990         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68991         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68992         * modules/fopen-safer, modules/tmpfile-safer: New files.
68993         * modules/stdio-safer: Remove.
68994
68995 2006-07-24  Bruno Haible  <bruno@clisp.org>
68996
68997         * modules/tmpdir: New file.
68998         * MODULES.html.sh (File system functions): Add it.
68999
69000 2006-07-24  Bruno Haible  <bruno@clisp.org>
69001
69002         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69003         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69004
69005 2006-07-24  Bruno Haible  <bruno@clisp.org>
69006
69007         * modules/clean-temp: New file.
69008
69009 2006-07-24  Bruno Haible  <bruno@clisp.org>
69010
69011         * m4/tmpdir.m4: New file, from GNU gettext.
69012
69013 2006-07-24  Bruno Haible  <bruno@clisp.org>
69014
69015         * lib/tmpdir.h: New file, from GNU gettext.
69016         * lib/tmpdir.c: New file, from GNU gettext.
69017
69018 2006-07-24  Bruno Haible  <bruno@clisp.org>
69019
69020         * lib/clean-temp.h: New file, from GNU gettext.
69021         * lib/clean-temp.c: New file, from GNU gettext.
69022
69023 2006-07-23  Eric Blake  <ebb9@byu.net>
69024
69025         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69026         (Depends-on): Add binary-io.
69027
69028 2006-07-23  Eric Blake  <ebb9@byu.net>
69029
69030         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69031
69032 2006-07-23  Eric Blake  <ebb9@byu.net>
69033
69034         * lib/tmpfile-safer.c: New file.
69035         * lib/stdio-safer.h (fopen_safer): Add prototype.
69036         * lib/stdio--.h (tmpfile): Make safer.
69037
69038 2006-07-23  Bruno Haible  <bruno@clisp.org>
69039
69040         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69041         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69042         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69043         gl_linked_remove_at): Use it.
69044
69045 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69046         and Simon Josefsson <jas@extundo.com>
69047
69048         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69049
69050         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69051
69052 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * modules/close-stream: New file.
69055         * modules/closeout (Description): Make it clear that it exits
69056         with a diagnostic on error.
69057         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69058         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69059
69060 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * m4/close-stream.m4: New file.
69063
69064 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * lib/close-stream.c, lib/close-stream.h: New files.
69067
69068 2006-07-22  Bruno Haible  <bruno@clisp.org>
69069
69070         Merge from GNU gettext 0.15.
69071
69072         2006-05-01  Bruno Haible  <bruno@clisp.org>
69073
69074                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69075
69076         2006-07-22  Bruno Haible  <bruno@clisp.org>
69077
69078                 * modules/javaversion: New file.
69079                 * MODULES.html.sh (Java): Add javaversion.
69080
69081         2006-03-12  Bruno Haible  <bruno@clisp.org>
69082
69083                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69084
69085         2005-12-04  Bruno Haible  <bruno@clisp.org>
69086
69087                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69088                 (untested).
69089
69090         2006-06-21  Bruno Haible  <bruno@clisp.org>
69091
69092                 Avoid warnings from recent versions of mcs.
69093                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69094                 -o, -L, -r any more. Use options documented since mcs-1.0
69095                 instead. Similarly for -g.
69096
69097         2005-12-04  Bruno Haible  <bruno@clisp.org>
69098
69099                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69100                 .resources, not .resource.
69101
69102         2005-07-09  Bruno Haible  <bruno@clisp.org>
69103
69104                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69105                 add a .dll suffix.
69106                 Reported by Mark Junker <mjscod@gmx.de>.
69107
69108         2006-07-22  Bruno Haible  <bruno@clisp.org>
69109
69110                 * modules/gettext: Upgrade to gettext-0.15.
69111                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69112                 m4/visibility.m4.
69113                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69114
69115 2006-07-22  Bruno Haible  <bruno@clisp.org>
69116
69117         Merge from GNU gettext 0.15.
69118
69119         2006-03-25  Bruno Haible  <bruno@clisp.org>
69120
69121                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69122
69123         2006-07-21  Bruno Haible  <bruno@clisp.org>
69124
69125                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69126                 "1.1".
69127
69128         2006-05-09  Bruno Haible  <bruno@clisp.org>
69129
69130                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69131                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69132                 for the conftestver execution.
69133
69134         2006-05-01  Bruno Haible  <bruno@clisp.org>
69135
69136                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69137                 optional target-version argument. Verify that the compiler
69138                 groks source of the specified source-version, or add -source
69139                 option as necessary. Verify that the compiler produces
69140                 bytecode in the specified target-version, or add -target and
69141                 -source options as necessary. Make the result of the test
69142                 available as variable CONF_JAVAC. Also log error output in
69143                 config.log.
69144
69145         2006-03-11  Bruno Haible  <bruno@clisp.org>
69146
69147                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69148
69149         2006-05-09  Bruno Haible  <bruno@clisp.org>
69150
69151                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69152                 CLASSPATH_SEPARATOR to a semicolon.
69153
69154         2006-03-12  Bruno Haible  <bruno@clisp.org>
69155
69156                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69157                 available as variable CONF_JAVA, for subsequent autoconf
69158                 tests. Also log error output in config.log.
69159
69160         2006-07-19  Bruno Haible  <bruno@clisp.org>
69161
69162                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69163                 that getline works on glibc2 systems. Needed to avoid trouble
69164                 in relocatable.c.
69165                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69166
69167         2005-12-04  Bruno Haible  <bruno@clisp.org>
69168
69169                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69170                 launcher (untested).
69171
69172         2005-12-04  Bruno Haible  <bruno@clisp.org>
69173
69174                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69175
69176         2006-07-22  Bruno Haible  <bruno@clisp.org>
69177
69178                 * gettext.m4: Update from GNU gettext-0.15.
69179                 * nls.m4: Likewise.
69180                 * po.m4: Likewise.
69181                 * inttypes-pri.m4: Likewise.
69182                 * inttypes-h.m4: Renamed from inttypes.m4.
69183                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69184
69185 2006-07-22  Bruno Haible  <bruno@clisp.org>
69186
69187         Merge from GNU gettext 0.15.
69188
69189         2005-07-05  Bruno Haible  <bruno@clisp.org>
69190
69191                 * printf-args.c (printf_fetchargs): Work around broken
69192                 definition of wint_t on mingw.
69193
69194         2005-02-12  Bruno Haible  <bruno@clisp.org>
69195
69196                 * xallocsa.h: Add extern "C" for C++.
69197
69198         2006-05-17  Bruno Haible  <bruno@clisp.org>
69199
69200                 Cygwin portability.
69201                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69202
69203         2006-04-30  Bruno Haible  <bruno@clisp.org>
69204
69205                 * progreloc.c: Include <mach-o/dyld.h> if available.
69206                 (find_executable): Use _NSGetExecutablePath when possible.
69207
69208         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69209
69210                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69211                 function.
69212
69213         2005-12-29  Bruno Haible  <bruno@clisp.org>
69214
69215                 * progreloc.c (set_program_name_and_installdir): Fix
69216                 compilation error.
69217
69218         2005-12-04  Bruno Haible  <bruno@clisp.org>
69219
69220                 Cygwin portability.
69221                 * progreloc.c: Include <windows.h> also on Cygwin.
69222                 (find_executable): Add support for Cygwin.
69223                 (set_program_name_and_installdir): Handle also platforms with
69224                 nonempty EXEEXT.
69225
69226         2006-07-11  Bruno Haible  <bruno@clisp.org>
69227
69228                 * javacomp.c: Fix a comment.
69229                 Reported by Jim Meyering.
69230
69231         2006-04-30  Bruno Haible  <bruno@clisp.org>
69232
69233                 * javacomp.h (compile_java_class): Add source_version,
69234                 target_version arguments.
69235                 * javacomp.c: Rewritten to choose only a compiler that
69236                 respects the specified source_version and target_version.
69237
69238         2006-06-27  Bruno Haible  <bruno@clisp.org>
69239
69240                 Assume correct S_ISDIR macro.
69241                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69242
69243         2006-07-22  Bruno Haible  <bruno@clisp.org>
69244
69245                 * javaversion.h: New file, from GNU gettext.
69246                 * javaversion.c: New file, from GNU gettext.
69247                 * javaversion.java: New file, from GNU gettext.
69248                 * javaversion.class: New file, from GNU gettext.
69249
69250         2006-05-17  Bruno Haible  <bruno@clisp.org>
69251
69252                 Cygwin portability.
69253                 * javaexec.c (execute_java_class): Test for jview program
69254                 also on Cygwin.
69255
69256         2006-04-09  Bruno Haible  <bruno@clisp.org>
69257
69258                 * fatal-signal.c: Don't include string.h.
69259                 (at_fatal_signal): Use a copying loop instead of memcpy.
69260
69261         2005-12-04  Bruno Haible  <bruno@clisp.org>
69262
69263                 * csharpexec.c: Add support for 'clix' launcher (untested).
69264                 (execute_csharp_using_sscli): New function.
69265                 (execute_csharp_program): Call it.
69266
69267         2006-06-21  Bruno Haible  <bruno@clisp.org>
69268
69269                 Avoid warnings from recent versions of mcs.
69270                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69271                 -o, -L, -r any more. Use options documented since mcs-1.0
69272                 instead. Similarly for -g.
69273
69274         2005-07-09  Bruno Haible  <bruno@clisp.org>
69275
69276                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69277                 add a .dll suffix.
69278                 Reported by Mark Junker <mjscod@gmx.de>.
69279
69280         2006-06-17  Bruno Haible  <bruno@clisp.org>
69281
69282                 * config.charset: Update for NetBSD 3.0.
69283
69284         2006-05-17  Bruno Haible  <bruno@clisp.org>
69285
69286                 Cygwin portability.
69287                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69288
69289         2006-05-16  Bruno Haible  <bruno@clisp.org>
69290
69291                 * localcharset.c [CYGWIN]: Include <windows.h>.
69292                 (get_charset_aliases): For Cygwin, return the same CPxxx
69293                 aliases list as under WIN32.
69294                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69295                 the environment variables. Fall back to GetACP().
69296
69297         2006-04-05  Bruno Haible  <bruno@clisp.org>
69298
69299                 * config.charset: Update Juan Manuel Guerrero's address.
69300
69301         2005-02-12  Bruno Haible  <bruno@clisp.org>
69302
69303                 * allocsa.h: Add extern "C" for C++.
69304
69305         2005-02-10  Bruno Haible  <bruno@clisp.org>
69306
69307                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69308                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69309
69310         2006-07-22  Bruno Haible  <bruno@clisp.org>
69311
69312                 * gettext.h: Update to GNU gettext-0.15.
69313
69314 2006-07-22  Bruno Haible  <bruno@clisp.org>
69315
69316         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69317         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69318         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69319
69320 2006-07-21  Eric Blake  <ebb9@byu.net>
69321
69322         * modules/stdlib-safer: New file.
69323         * MODULES.html.sh (File stream based Input/Output): Add
69324         stdlib-safer.
69325
69326 2006-07-21  Eric Blake  <ebb9@byu.net>
69327
69328         * lib/stdlib-safer.h: New file from coreutils, required by
69329         stdlib--.h.
69330
69331 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69334
69335 2006-07-20  Bruno Haible  <bruno@clisp.org>
69336
69337         * gnulib-tool: Recognize new option --assume-autoconf.
69338         (autoconf_minversion): New variable.
69339         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69340
69341 2006-07-20  Bruno Haible  <bruno@clisp.org>
69342
69343         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69344
69345 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69346
69347         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69348         Reindent and repaginate.
69349
69350 2006-07-19  Derek Price  <derek@ximbiot.com>
69351
69352         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69353         Correct grammar.
69354
69355 2006-07-17  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/list: New file.
69358         * modules/array-list: New file.
69359         * modules/carray-list, modules/carray-list-tests: New files.
69360         * modules/linked-list, modules/linked-list-tests: New files.
69361         * modules/avltree-list, modules/avltree-list-tests: New files.
69362         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69363         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69364         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69365         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69366         * modules/oset: New file.
69367         * modules/array-oset: New file.
69368         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69369         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69370         * tests/test-carray_list.c: New file.
69371         * tests/test-linked_list.c: New file.
69372         * tests/test-avltree_list.c: New file.
69373         * tests/test-rbtree_list.c: New file.
69374         * tests/test-linkedhash_list.c: New file.
69375         * tests/test-avltreehash_list.c: New file.
69376         * tests/test-rbtreehash_list.c: New file.
69377         * tests/test-avltree_oset.c: New file.
69378         * tests/test-rbtree_oset.c: New file.
69379         * MODULES.html.sh (Container data structures): New section.
69380
69381 2006-07-17  Bruno Haible  <bruno@clisp.org>
69382
69383         * m4/gl_list.m4: New file.
69384
69385 2006-07-17  Bruno Haible  <bruno@clisp.org>
69386
69387         * lib/gl_list.h: New file.
69388         * lib/gl_list.c: New file.
69389         * lib/gl_array_list.h: New file.
69390         * lib/gl_array_list.c: New file.
69391         * lib/gl_carray_list.h: New file.
69392         * lib/gl_carray_list.c: New file.
69393         * lib/gl_linked_list.h: New file.
69394         * lib/gl_linked_list.c: New file.
69395         * lib/gl_anylinked_list1.h: New file.
69396         * lib/gl_anylinked_list2.h: New file.
69397         * lib/gl_avltree_list.h: New file.
69398         * lib/gl_avltree_list.c: New file.
69399         * lib/gl_anyavltree_list1.h: New file.
69400         * lib/gl_anyavltree_list2.h: New file.
69401         * lib/gl_rbtree_list.h: New file.
69402         * lib/gl_rbtree_list.c: New file.
69403         * lib/gl_anyrbtree_list1.h: New file.
69404         * lib/gl_anyrbtree_list2.h: New file.
69405         * lib/gl_anytree_list1.h: New file.
69406         * lib/gl_anytree_list2.h: New file.
69407         * lib/gl_linkedhash_list.h: New file.
69408         * lib/gl_linkedhash_list.c: New file.
69409         * lib/gl_anyhash_list1.h: New file.
69410         * lib/gl_anyhash_list2.h: New file.
69411         * lib/gl_avltreehash_list.h: New file.
69412         * lib/gl_avltreehash_list.c: New file.
69413         * lib/gl_rbtreehash_list.h: New file.
69414         * lib/gl_rbtreehash_list.c: New file.
69415         * lib/gl_anytreehash_list1.h: New file.
69416         * lib/gl_anytreehash_list2.h: New file.
69417
69418         * lib/gl_oset.h: New file.
69419         * lib/gl_oset.c: New file.
69420         * lib/gl_array_oset.h: New file.
69421         * lib/gl_array_oset.c: New file.
69422         * lib/gl_avltree_oset.h: New file.
69423         * lib/gl_avltree_oset.c: New file.
69424         * lib/gl_rbtree_oset.h: New file.
69425         * lib/gl_rbtree_oset.c: New file.
69426         * lib/gl_anytree_oset.h: New file.
69427
69428 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * m4/mkancesdirs.m4: New file.
69431         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69432         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69433         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69434         it.
69435
69436 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69439         * lib/mkancesdirs.h: New files.
69440         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69441         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69442         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69443         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69444         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69445         callers changed.  Revamp internals significantly, by not
69446         attempting to create directories that are temporarily more
69447         permissive than the final results.  Do not attempt to use
69448         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69449         This removes some race conditions, fixes some bugs, and simplifies
69450         things.  Use new dirchownmod function to do owner and mode changes.
69451         * lib/mkdir-p.h: Likewise.
69452         * lib/modechange.c (octal_to_mode): New function.
69453         (struct mode_change): New member mentioned.
69454         (make_node_op_equals): New arg mentioned.  All callers changed.
69455         (mode_compile): Keep track of which mode bits the user has explicitly
69456         mentioned.
69457         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69458         New arg PMODE_BITS, to keep track of which mode bits the user
69459         mentioned; it treats S_ISUID and S_ISGID speciall.
69460         All callers changed.
69461         * lib/modechange.h: Likewise.
69462
69463 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         * MODULES.html.sh: Add mkancestors.
69466         * modules/mkancesdirs: New module.
69467         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69468         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69469         The chdir-safer and afs files are now orphans; I'll remove them
69470         unless someone speaks up.
69471         Add lib/dirchownmod.c, lib/dirchownmod.h.
69472         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69473         Add lchown, mkancesdirs.
69474         (Maintainer): Add self.
69475
69476 2006-07-15  Karl Berry  <karl@gnu.org>
69477
69478         * gnulib-tool: help message wording/arrangement.
69479
69480 2006-07-14  Simon Josefsson  <jas@extundo.com>
69481
69482         * doc/gnulib.texi (Libtool and Windows): New section.
69483
69484 2006-07-12  Simon Josefsson  <jas@extundo.com>
69485
69486         * modules/gendocs (License): Fix license, approved by Karl.
69487
69488 2006-07-12  Eric Blake  <ebb9@byu.net>
69489
69490         * MODULES.html.sh: Add gendocs.
69491
69492 2006-07-11  Eric Blake  <ebb9@byu.net>
69493
69494         * modules/fdl: New module, to install doc/fdl.texi.
69495         * MODULES.html.sh: Add new section for documentation modules.
69496         * gnulib-tool: Avoid space-tab.
69497         (--doc-base): New option, to manage files from doc.
69498
69499 2006-07-11  Eric Blake  <ebb9@byu.net>
69500
69501         * m4/absolute-header.m4: Fix comments to match recent change.
69502
69503 2006-07-11  Eric Blake  <ebb9@byu.net>
69504
69505         * gnulib-tool: List --doc-base before --tests-base.
69506
69507 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69508
69509         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69510
69511 2006-07-11  Bruno Haible  <bruno@clisp.org>
69512
69513         * README: Mention where to put documentation.
69514
69515 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69516
69517         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69518
69519 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69522         to stdint.m4.
69523
69524 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69527         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69528         "no/such/file/stdint.h" when there is no such file, so that
69529         the resulting C code can be parsed by dodgy compilers.
69530         Problems reported by Bob Proulx.
69531
69532 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69533
69534         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69535         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69536         macros into the GNU _D_EXACT_NAMLEN.
69537         * lib/savedir.c:  Likewise.
69538         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69539
69540 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69541         and Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69544         * m4/savedir.m4:
69545         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69546         macros into the GNU _D_EXACT_NAMLEN.
69547
69548 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69551         around the absolute name, to work around a problem with the HP-UX
69552         11.23 native C compiler, reported by Bob Proulx.
69553
69554 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * doc/maintain.texi, make-stds.texi: Sync from
69557         <http://savannah.gnu.org/projects/gnustandards>.
69558
69559 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69562
69563 2006-07-09  Jim Meyering  <jim@meyering.net>
69564
69565         * m4/glob.m4: Remove a doubled word in a comment.
69566
69567 2006-07-09  Jim Meyering  <jim@meyering.net>
69568
69569         * lib/argp-pv.c: Remove a doubled word in a comment.
69570         * lib/check-version.c (check_version): Likewise.
69571         * lib/javacomp.c (compile_java_class): Likewise.
69572
69573 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69574
69575         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69576         for the benefit of people using Autoconf 2.60.  If you want to
69577         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69578         (or m4/onceonly.m4, if pre-2.57) manually.
69579
69580 2006-07-08  Jim Meyering  <jim@meyering.net>
69581
69582         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69583         comment.
69584         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69585         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69586         comment.
69587
69588 2006-07-08  Jim Meyering  <jim@meyering.net>
69589
69590         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69591
69592 2006-07-07  Simon Josefsson  <jas@extundo.com>
69593
69594         * tests/test-crc.c: Change expected crc value, the test vector
69595         were probably computed using the old broken crc.c?
69596
69597 2006-07-06  Simon Josefsson  <jas@extundo.com>
69598
69599         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69600         now the canonical place for the M4 file).
69601
69602         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69603         from the sys_socket dependency now.
69604
69605         * modules/inet_pton (Files): Ditto.
69606
69607         * modules/inet_ntop (Files): Ditto.
69608
69609 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69610
69611         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69612         not gl_PREREQ_GETUSERSHELL.
69613
69614 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69615
69616         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69617         with only one argument, for Autoconf 2.60.
69618         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69619         expand to nothing, so add a shell command to avoid syntax error.
69620         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69621
69622 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69623
69624         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69625
69626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69629         no longer needed.  Check for isblank decl.
69630         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69631         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69632         of existence.
69633
69634 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * lib/getloadavg.c: Use __VMS, not VMS.
69637         * lib/getopt.c: Likewise.
69638         * lib/getpagesize.h: Likewise.
69639         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69640         and probably does not work.
69641
69642 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69643
69644         * lib/.cppi-disable: Add wcwidth.
69645         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69646         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69647         (ISGRAPH): Remove.  All uses changed to isgraph.
69648         (FOLD) [!defined _LIBC]: Remove special case.
69649         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69650         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69651         HAVE_ISBLANK.
69652         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69653         case.
69654
69655 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69656
69657         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69658         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69659         brackets.  Other minor changes to suppress some compiler
69660         warnings.
69661
69662 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69663         and Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69666         of invoking obsolescent AC_HEADER_DIRENT macro.
69667         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69668         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69669         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69671         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69672         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69673         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69674         * m4/readdir.m4: Remove; no longer needed.
69675
69676 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69677         and Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69680         Don't worry about this obsolete case any more.
69681         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69682         directories.
69683         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69684         worry about this obsolete case any more.
69685         * lib/fts.c: Likewise.
69686         * lib/getcwd.c: Likewise.
69687         * lib/glob.h: Likewise.
69688         * lib/savedir.c: Likewise.
69689
69690 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69693         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69694         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69695         needed.
69696         All uses removed.
69697         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69698         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69699         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69700         needed.
69701         * m4/getdate.m4 (gl_GETDATE): Likewise.
69702         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69703         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69704         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69705         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69706         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69708         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69709         needed.
69710
69711 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * lib/memcasecmp.c: Include <limits.h>.
69714         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69715         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69716         Don't assume isdigit succeeds only on '0' through '9'.
69717
69718 2006-07-05  Eric Blake  <ebb9@byu.net>
69719
69720         * modules/getaddrinfo (Depends-on): Add snprintf.
69721
69722 2006-07-05  Eric Blake  <ebb9@byu.net>
69723
69724         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69725         to avoid 'header present but could not be compiled' on cygwin.
69726
69727 2006-07-05  Eric Blake  <ebb9@byu.net>
69728
69729         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69730         missing from netdb.h.
69731         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69732
69733 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69734
69735         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69736         no longer needed.
69737         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69738         * m4/getdate.m4 (gl_GETDATE): Likewise.
69739         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69740         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69741         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69742         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69743         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69744
69745 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69746
69747         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69748         All uses of is_space replaced by isspace.
69749         * lib/exit.h: Don't talk about STDC_HEADERS.
69750         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69751         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69752         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69753         replaced by isprint etc.
69754         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69755         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69756         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69757         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69758         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69759         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69760
69761 2006-07-05  Bruno Haible  <bruno@clisp.org>
69762
69763         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69764         the function exists, before testing against AIX.
69765         Reported by Martin Lambers <marlam@marlam.de>.
69766
69767 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69768
69769         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69770         From Mark D. Baushke.
69771
69772 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69775         to the absolute name, not just one, to bypass Sun C 5.8's
69776         "warning: #include of /usr/include/... may be non-portable".
69777
69778 2006-07-04  Eric Blake  <ebb9@byu.net>
69779
69780         * modules/dirname-tests: New test module.
69781         * tests/test-dirname.c: New file, replacing dirname.c
69782         TEST_DIRNAME section that was recently deleted.
69783
69784 2006-07-04  Bruno Haible  <bruno@clisp.org>
69785
69786         Assume ANSI C header files and <ctype.h> functions.
69787         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69788         (mbsnwidth): Use isprint, iscntrl instead.
69789
69790 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         Merge from coreutils.
69793         * MODULES.html.sh: Add xstrtold.
69794         * modules/xstrtold: New file.
69795         * modules/cycle-check (Files): Add lib/same-inode.h.
69796         * modules/dirname (Files): Add m4/double-slash-root.m4.
69797         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69798         * modules/mkdir-p (Files): Add lib/same-inode.h.
69799         * modules/same (Files): Add lib/same-inode.h.
69800
69801 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69804         This is to keep the terminology clean; POSIX talks about
69805         "absolute pathnames", not "full pathnames", but the GNU
69806         Coding Standards say to use "path" for something else;
69807         so use "absolute" to keep both sides happy.
69808         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69809         Set gl_absolute_header, not gl_full_header_path.
69810         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69811         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69812         All uses changed.
69813
69814         Merge from coreutils.
69815
69816         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69819         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69820         want to require the building of c-strtod.o.
69821         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69822         needs -lm directly.
69823         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69824
69825         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69826
69827         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69828         --as-needed option if available.  Problem reported by Albert Chin in
69829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69830         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69831         cc merely issues a bunch of annoying warnings for --as-needed
69832         (this problem was reported by Bob Proulx).  Also, try linking with
69833         -lm to detect a bug in binutils 2.16 (this problem was reported
69834         by Ralf Wildenhues).
69835
69836         2006-06-18  Jim Meyering  <jim@meyering.net>
69837
69838         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69839         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69840         macro.
69841         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69842         also check for glibc-2.4's abort-inducing bug.
69843
69844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69845         Low-probability clean-up should be to use rmdir to get rid of
69846         the just-created directory, not unlink.
69847
69848         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69849         configure fail, and request a bug report to inform us about it.
69850         Add a comment that, barring reports to the contrary, in 2007 we'll
69851         assume ftruncate is universally available.
69852
69853         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69856
69857         2006-03-12  Jim Meyering  <jim@meyering.net>
69858
69859         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69860         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69861         * m4/same.m4 (gl_SAME): Likewise.
69862         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69863
69864         2006-03-11  Eric Blake  <ebb9@byu.net>
69865
69866         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69867         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69868         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69869         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69870
69871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69874         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69875         reported by Mark D. Baushke, one in
69876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69877
69878         Merge from coreutils.
69879
69880         * lib/.cppi-disable: Add stdint_.h.
69881         * lib/.cvsignore: Add stdint.h.
69882
69883         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69886         both double and long double versions.
69887         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69888         * lib/xstrtold.c: New file.
69889         * lib/xstrtod.h (xstrtold): New decl.
69890
69891         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/filemode.c (setst): Remove.
69894         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69895         (arguably) clearer, and the generated code is a bit smaller on my
69896         Debian GNU/Linux stable x86 host.
69897
69898         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69899
69900         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69901         Assume that filemode.h includes sys/types.h and sys/stat.h.
69902         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69903         (ftypelet): Reorder to put common cases first, for efficiency.
69904         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69905         to do 'M'.
69906         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69907         of 10, for compatibility with FreeBSD.  All callers changed.
69908         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69909         types that can't be deduced solely from st_mode.  First arg is now a
69910         const pointer.
69911         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69912         (strmode): Renamed from mode_string.
69913         (filemodestring): New decl.
69914         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69915         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69916         needed.
69917         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69918
69919         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69922         fsusage.h now does that.  Include fsusage.h first, to test interface.
69923         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69924         at most one method (the old code could have generated decls that
69925         didn't conform to C89, not that this was ever exercised).
69926         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69927
69928         2006-03-19  Jim Meyering  <jim@meyering.net>
69929
69930         Work even in a chroot where d_ino values for entries in "/"
69931         don't match the stat.st_ino values for the same names.
69932         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69933         number, iterate through all entries again, using lstat instead.
69934         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69935         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69936
69937         * lib/getcwd.c (__getcwd): Clarify a comment.
69938         Use memcpy in place of a call to strcpy.
69939
69940         2006-03-12  Jim Meyering  <jim@meyering.net>
69941
69942         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69943         matches that of the current directory (which we're about to chdir ".."
69944         out of), then save the dev-ino of the parent, instead.
69945
69946         * lib/same-inode.h (SAME_INODE): New file/macro.
69947         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69948         Include "same-inode.h", instead.
69949         * lib/same.c: Likewise.
69950         * lib/cycle-check.h: Include "same-inode.h".
69951         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69952         * lib/cycle-check.c (SAME_INODE): Remove definition.
69953         * lib/root-dev-ino.h: Include "same-inode.h".
69954
69955         2006-03-11  Eric Blake  <ebb9@byu.net>
69956
69957         * lib/same.c (same_name): s/base_name/last_component/
69958         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69959         * lib/filenamecat.c (file_name_concat): Likewise.
69960
69961         2006-03-11  Eric Blake  <ebb9@byu.net>,
69962                     Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69965         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69966         drive prefix.
69967         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69968         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69969         (last_component): New method.
69970         * lib/dirname.c (dir_len): Determine when drive letters need a
69971         subsequent slash.  Preserve // when it is special.
69972         (dir_name): Don't append dot when drive letter is absolute.
69973         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69974         * lib/basename.c (base_name): New semantics - malloc the result.
69975         Preserve // when it is special.  Preserve relative files that look
69976         like drive letters.
69977         (base_len): Preserve // when it is special.
69978         (last_component): New method, similar to old base_name semantics.
69979         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69980         base_name.  Strip redundant slashes from ///.
69981
69982 2006-07-03  Jim Meyering  <jim@meyering.net>
69983
69984         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69985         macro is used before the first cycle_check call.
69986
69987 2006-07-03  Eric Blake  <ebb9@byu.net>
69988
69989         * modules/dirname (Depends-on): Add xstrndup.
69990
69991 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69994         test cases, so that config.log is a bit easier to follow.
69995
69996 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69997
69998         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69999         both are 64 bits, since this seems to be the tradition, and this
70000         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70001         we ever run into a host that prefers long long to long in this
70002         case, we'll need another configure-time test.  Problem reported by
70003         Jim Meyering.
70004
70005 2006-07-02  Eric Blake  <ebb9@byu.net>
70006
70007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70008
70009 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * modules/inttypes (Depends-on): No longer depends on stdint.
70012         * modules/stdint (Description): Say more about assumptions.
70013         Say that the fast types might differ.  Say macros are used.
70014         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70015         (Makefile.am): Revise list of substituted symbols to match
70016         new stdint.m4.
70017         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70018         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70019         * tests/test-stdint.c (verify_same_types)
70020         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70021         the code conforms to C99/C89.
70022         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70023         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70024
70025 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70026
70027         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70028         but fix a bug, by requiring at least 64 bits.
70029         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70030         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70031         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70032         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70033
70034         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70035         changes.  Make 2.59 a prerequisite.  Check and substitute for
70036         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70037         inttypes.h.  Do not use special include files; just use the
70038         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70039         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70040         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70041         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70042         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70043         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70044         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70045         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70046         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70047         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70048         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70049         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70050         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70051         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70052         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70053         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70054         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70055         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70056         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70057         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70058         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70059         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70060         not check for things that C99 does not require, e.g., int8_t.  If
70061         a test isn't needed unless <stdint.h> isn't working, and is
70062         unlikely to be needed for any other reason, then don't do it
70063         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70064         size_t, since we assume C89 freestanding at least.  Do not check
70065         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70066         the right thing even if the types are not defined.  Instead use:
70067         (gl_STDINT_TYPE_PROPERTIES): New macro.
70068         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70069         testing whether <sys/types.h> clashes, as Autoconf does this for
70070         us now.  All uses removed.
70071         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70072         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70073         (gl_CHECK_TYPE_SAME):
70074         Remove; no longer needed.
70075         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70076         exists, since we'll return 0 anyway in that case.
70077         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70078
70079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70082         possible collision with system files.
70083         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70084         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70085         WCHAR_MIN and WCHAR_MAX in this case.
70086         (<stddef.h>): Do not include; no longer needed.
70087         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70088         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70089         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70090         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70091         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70092         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70093         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70094         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70095         !defined(__c99))]: Include in this case too, since it's harmless
70096         now.
70097         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70098         dangerous to do so.
70099         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70100         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70101         (_STDINT_MIN, _STDINT_MAX): New macros.
70102         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70103         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70104         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70105         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70106         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70107         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70108         macros, not typedefs; this simplifies things quite a bit.
70109         Use long int for all types narrower than int64_t.
70110         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70111         Define in terms of long long int or int64_t or long int,
70112         not int64_t or int32_t.  This saves some compile-time testing.
70113         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70114         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70115         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70116         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70117         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70118         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70119         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70120         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70121         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70122         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70123         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70124         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70125         undef any previous version and define our own version, for
70126         simplicity and consistency with the new macros for types.
70127         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70128         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70129         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70130         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70131         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70132         @WINT_T_SUFFIX@ to keep things simple here.
70133         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70134         Simplify by assuming typical 8/16/32/64 host, since we're
70135         already doing that elsewhere anyway.
70136         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70137         and assume long long int is 64 bits if available.  This
70138         speeds up 'configure'.
70139
70140 2006-07-01  Eric Blake  <ebb9@byu.net>
70141
70142         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70143         Reported by Andreas Buening.
70144
70145 2006-07-01  Eric Blake  <ebb9@byu.net>
70146
70147         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70148
70149 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70150
70151         * lib/getaddrinfo.c: fixed typo
70152
70153 2006-06-29  Jim Meyering  <jim@meyering.net>
70154
70155         * modules/strftime (Maintainer): Add my name, since with the
70156         FPRINTFTIME changes strftime.c has forked from glibc.
70157
70158 2006-06-29  Eric Blake  <ebb9@byu.net>
70159
70160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70161
70162 2006-06-29  Eric Blake  <ebb9@byu.net>
70163
70164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70165
70166 2006-06-29  Eric Blake  <ebb9@byu.net>
70167
70168         * lib/stat_.h: New file.
70169
70170 2006-06-29  Eric Blake  <ebb9@byu.net>
70171
70172         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70173         unused static function.
70174
70175 2006-06-29  Eric Blake  <ebb9@byu.net>
70176
70177         * doc/functions.texi (Function Portability): Document missing lstat
70178         on mingw.
70179
70180 2006-06-29  Eric Blake  <ebb9@byu.net>
70181
70182         * MODULES.html.sh: Add sys_stat.
70183         * modules/sys_stat: New module.
70184         * modules/mkstemp (Depends-on): Add sys_stat.
70185
70186 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70187
70188         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70189
70190 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70191
70192         * m4/c-bs-a.m4: Removed.
70193
70194 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70195
70196         * lib/strftime.c: Assume strftime() exists.
70197
70198 2006-06-29  Derek Price  <derek@ximbiot.com>
70199
70200         * modules/c-bs-a: Removed - \a is C89.
70201         * MODULES.html.sh: Remove c-bs-a.
70202
70203 2006-06-29  Bruno Haible  <bruno@clisp.org>
70204
70205         * modules/wcwidth (License): Change to LGPL.
70206
70207 2006-06-28  Simon Josefsson  <jas@extundo.com>
70208
70209         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70210         on _WIN32.
70211
70212         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70213         getnameinfo.
70214
70215 2006-06-28  Simon Josefsson  <jas@extundo.com>
70216
70217         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70218
70219 2006-06-28  Simon Josefsson  <jas@extundo.com>
70220
70221         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70222         functions there.  It will succeed on Windows XP, but on Windows
70223         2000 and (presumably) earlier, it will fail, and use the internal
70224         re-implementation.
70225         (use_win32_p): New function.
70226         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70227         Support AI_NUMERICSERV to disable getservbyname.
70228         (getnameinfo): New function, only supports
70229         NI_NUMERICHOST|NI_NUMERICSERV for now.
70230
70231         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70232         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70233         getnameinfo.
70234
70235 2006-06-28  Eric Blake  <ebb9@byu.net>
70236
70237         * modules/wcwidth: New file.
70238         * modules/mbchar (Depends-on): Add wcwidth.
70239         * modules/mbswidth (Depends-on): Add wcwidth.
70240         * MODULES.html.sh: Add wcwidth.
70241
70242 2006-06-28  Eric Blake  <ebb9@byu.net>
70243
70244         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70246
70247 2006-06-28  Eric Blake  <ebb9@byu.net>
70248
70249         * lib/xvasprintf.h: Fix comments.
70250
70251 2006-06-28  Eric Blake  <ebb9@byu.net>
70252
70253         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70254         * lib/mbswidth.c (wcwidth): Move from here...
70255         * lib/wcwidth.h: ...to this new file.
70256
70257 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70258
70259         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70260
70261         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70262         it's obsolete.
70263         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70264
70265 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70266
70267         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70268         Autoconf 2.60 says this stuff was obsolete.
70269
70270 2006-06-28  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70273
70274 2006-06-28  Bruno Haible  <bruno@clisp.org>
70275
70276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70277         gt_TYPE_WCHAR_T.
70278
70279 2006-06-28  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70282         declaration for wcwidth.
70283         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70284
70285 2006-06-28  Bruno Haible  <bruno@clisp.org>
70286
70287         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70288         (mkdir): Define using _mkdir.
70289
70290 2006-06-28  Bruno Haible  <bruno@clisp.org>
70291
70292         * lib/getaddrinfo.h: Fix POSIX URL.
70293         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70294         _WIN32.
70295         (use_win32_p): Make static.
70296         (getaddrinfo): Reject service name if it is empty or does not consist
70297         solely of decimal digits, or if its value is > 65535.
70298         (getnameinfo): Remove useless casts.
70299
70300 2006-06-27  Simon Josefsson  <jas@extundo.com>
70301
70302         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70303         Eggert and Martin Lambers.
70304
70305 2006-06-27  Simon Josefsson  <jas@extundo.com>
70306
70307         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70308         Eggert and Martin Lambers.
70309
70310 2006-06-27  Bruno Haible  <bruno@clisp.org>
70311
70312         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70313         result to 0, not to empty.
70314         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70315
70316 2006-06-27  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70319
70320 2006-06-26  Simon Josefsson  <jas@extundo.com>
70321
70322         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70323         present.
70324
70325 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70328         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70330
70331 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70332
70333         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70334
70335 2006-06-26  Bruno Haible  <bruno@clisp.org>
70336
70337         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70338
70339 2006-06-26  Bruno Haible  <bruno@clisp.org>
70340
70341         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70342
70343 2006-06-26  Bruno Haible  <bruno@clisp.org>
70344
70345         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70346         SGI C compiler in pre-C99 mode.
70347         Suggested by Mark D. Baushke and Larry Jones.
70348
70349 2006-06-26  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70352         WCHAR_MAX.
70353         Reported by Mark D. Baushke and Larry Jones.
70354
70355 2006-06-26  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70358         in pre-C99 mode.
70359         Suggested by Mark D. Baushke and Larry Jones.
70360
70361 2006-06-23  Simon Josefsson  <jas@extundo.com>
70362             Bruno Haible  <bruno@clisp.org>
70363
70364         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70365         Emit mostlyclean-local rule.
70366         (func_emit_tests_Makefile_am): Likewise.
70367         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70368
70369 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70370
70371         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70372
70373 2006-06-23  Bruno Haible  <bruno@clisp.org>
70374
70375         * tests/test-stdint.c: Update to match ISO C 99 Technical
70376         Corrigendum 1.
70377
70378 2006-06-23  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70381
70382 2006-06-23  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/stdint_.h: Treat IRIX like OpenBSD.
70385
70386 2006-06-23  Bruno Haible  <bruno@clisp.org>
70387
70388         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70389         ISO C 99 Technical Corrigendum 1.
70390
70391 2006-06-22  Simon Josefsson  <jas@extundo.com>
70392
70393         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70394         MinGW.
70395
70396 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70399         needed.  Some compiler complained about some of them.  Problem reported
70400         by Larry Jones in
70401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70402
70403 2006-06-21  Simon Josefsson  <jas@extundo.com>
70404
70405         * tests/test-getaddrinfo.c: New file.
70406
70407         * modules/getaddrinfo-tests: New file.
70408
70409         * MODULES.html.sh: Add inet_pton.
70410
70411         * modules/inet_pton: New file.
70412
70413 2006-06-21  Simon Josefsson  <jas@extundo.com>
70414
70415         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70416         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70417         of using the (limited) gnulib implementation on Windows XP.
70418
70419         * m4/inet_pton.m4: New file.
70420
70421 2006-06-21  Simon Josefsson  <jas@extundo.com>
70422
70423         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70424         variable.
70425
70426         * lib/socket_.h: Don't define WINVER.
70427
70428         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70429         slightly modified to work in gnulib.
70430
70431 2006-06-21  Simon Josefsson  <jas@extundo.com>
70432
70433         * doc/gnulib.texi (Windows sockets): Add.
70434
70435 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         * lib/read-file.c (fread_file): Start with buffer allocation of
70438         0 bytes rather than 1 byte; this simplifies the code.
70439         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70440         code to free buffer and save/restore errno.
70441         (internal_read_file): Remove unused local.
70442
70443 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70444
70445         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70446         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70447         Problem reported by Denis Excoffier in
70448         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70449
70450 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70451
70452         * modules/sys_socket, modules/socklen: Include sys/types since
70453         FreeBSD 4.x's sys/socket.h needs it.
70454
70455 2006-06-19  Simon Josefsson  <jas@extundo.com>
70456
70457         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70458
70459 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70460
70461         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70462
70463 2006-06-19  Bruno Haible  <bruno@clisp.org>
70464
70465         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70466         and FULL_PATH_INTTYPES_H in angle brackets.
70467         Reported by Mark D. Baushke <mdb@gnu.org>.
70468
70469 2006-06-17  Eric Blake  <ebb9@byu.net>
70470
70471         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70472         errno.
70473
70474 2006-06-17  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70477         <sys/inttypes.h>.
70478
70479 2006-06-17  Bruno Haible  <bruno@clisp.org>
70480
70481         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70482         whether errno is declared. Assume <errno.h> declares errno.
70483
70484 2006-06-17  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70487
70488 2006-06-17  Bruno Haible  <bruno@clisp.org>
70489
70490         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70491         problem on Solaris 2.5.1.
70492
70493 2006-06-16  Eric Blake  <ebb9@byu.net>
70494
70495         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70496         * lib/unicodeio.c [!defined errno]: Likewise.
70497         * lib/strtol.c [!defined errno]: Likewise.
70498         * lib/strtod.c [!defined errno]: Likewise.
70499
70500 2006-06-15  Eric Blake  <ebb9@byu.net>
70501
70502         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70503
70504 2006-06-15  Eric Blake  <ebb9@byu.net>
70505
70506         * config/srclist.txt (ssize_t.m4): Lose sync.
70507
70508 2006-06-15  Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/stdint (Files): Include m4/full-header-path.m4,
70511         m4/size_max.m4, m4/wchar_t.m4.
70512         (Makefile.am): Many more substitutions.
70513         * modules/stdint-tests: New file.
70514         * tests/test-stdint.c: New file.
70515
70516 2006-06-15  Bruno Haible  <bruno@clisp.org>
70517
70518         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70519         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70520         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70521         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70522         gl_CHECK_TYPE_SAME): New macros.
70523
70524 2006-06-15  Bruno Haible  <bruno@clisp.org>
70525
70526         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70527
70528 2006-06-15  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/stdint_.h: Rewritten to be fully auto-configured.
70531         Fixes bug on HP-UX/IA64.
70532
70533 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         * lib/getdate.y (__attribute__): Don't define if already defined.
70536         Problem reported by Larry Jones.
70537         * lib/utimens.c (__attribute__): Likewise.
70538
70539 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70542         reported by Andreas Schwab.
70543
70544 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70545             Bruno Haible  <bruno@clisp.org>
70546
70547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70548         check for the declaration of strnlen and a run test that exposes the
70549         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70550         rpl_strndup.
70551
70552 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70553             Bruno Haible  <bruno@clisp.org>
70554
70555         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70556
70557 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70558
70559         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70560         compile test, for Tru64 4.0D.
70561
70562 2006-05-28  Karl Berry  <karl@gnu.org>
70563
70564         * config/srclist.txt (printf-args.c): lose sync.
70565
70566 2006-05-26  Martin Lambers  <marlam@marlam.de>
70567
70568         * lib/getpass.c: Updates the test for the native W32 API, and adds
70569         missing includes, thus fixing compilation warnings.
70570
70571 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70572
70573         * lib/exclude.c (exclude_fnmatch): New function.
70574         (excluded_file_name): Call exclude_fnmatch.
70575         * lib/exclude.h (excluded_file_name): New prototype
70576
70577 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70578
70579         * lib/tempname.c (small_open, large_open): New macros.
70580         (__open, __open64) [!_LIBC]: Remove.
70581         (__gen_tempname): Use small_open and large_open instead of __open
70582         and __open64.  This fixes a portability bug on HP-UX 11.11i
70583         reported by Simon Wing-Tang in
70584         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70585
70586 2006-05-24  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70589         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70590         Reported by Thorsten Maerz <torte@netztorte.de> via
70591         Aaron Stone <aaron@serendipity.cx>.
70592
70593 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70596         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70597         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70598         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70599         not really conditional on the cache.
70600         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70601
70602 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70605         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70606         (my_usleep): Don't mishandle maximum value.
70607
70608 2006-05-19  Jim Meyering  <jim@meyering.net>
70609
70610         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70611
70612 2006-05-17  Bruno Haible  <bruno@clisp.org>
70613
70614         Cygwin portability.
70615         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70616
70617 2006-05-17  Bruno Haible  <bruno@clisp.org>
70618
70619         * lib/stdint_.h: Fix recognition of Cygwin.
70620
70621 2006-05-15  Bruno Haible  <bruno@clisp.org>
70622
70623         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70624         on libtool patch by Ralf Wildenhues.
70625
70626 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70629         test for C99 conformance; (bool) 0.5 is an integer constant
70630         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70631         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70632
70633 2006-05-11  Simon Josefsson  <jas@extundo.com>
70634
70635         * m4/xvasprintf.m4: Fix obvious typo.
70636
70637 2006-05-11  Jim Meyering  <jim@meyering.net>
70638
70639         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70640         James Lemley.
70641
70642 2006-05-10  Simon Josefsson  <jas@extundo.com>
70643
70644         * lib/md4.c: Typo fix, update copyright years.
70645         (K1, K2): Don't use L because it turn computations into 64-bit on
70646         64-bit platforms.
70647
70648 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70651         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70652         unwanted sign propagation, e.g., on hosts with 64-bit int.
70653         There still are some problems with reeelly weird theoretical hosts
70654         (e.g., 33-bit int) but it's not worth worrying about now.
70655         * lib/sha1.c (rol): Likewise.
70656         (K1, K2, K3, K4): Remove unnecessary L suffix.
70657
70658 2006-05-10  Bruno Haible  <bruno@clisp.org>
70659
70660         * lib/des.c: Cast to avoid warnings.
70661
70662 2006-05-09  Bruno Haible  <bruno@clisp.org>
70663
70664         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70665         (Depends-on): Depend also on xsize, stdarg.
70666         (configure.ac): Add gl_XVASPRINTF.
70667
70668 2006-05-09  Bruno Haible  <bruno@clisp.org>
70669
70670         * m4/xvasprintf.m4: New file.
70671
70672 2006-05-09  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70675         (EOVERFLOW): Define fallback value.
70676         (xstrcat): New function.
70677         (xvasprintf): Recognize the special case of a string concatenation.
70678
70679 2006-05-08  Eric Blake  <ebb9@byu.net>
70680
70681         * gnulib-tool (func_version): Base copyright year on CVS date.
70682         (func_emit_copyright_notice): New function.
70683         (func_emit_lib_Makefile_am): Use it.
70684         (func_emit_tests_Makefile_am): Likewise.
70685         (func_import): Likewise.
70686
70687 2006-05-08  Bruno Haible  <bruno@clisp.org>
70688
70689         * modules/stdarg: New file.
70690         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70691
70692 2006-05-08  Bruno Haible  <bruno@clisp.org>
70693
70694         * m4/stdarg.m4: New file, from GNU gettext.
70695
70696 2006-05-08  Bruno Haible  <bruno@clisp.org>
70697
70698         * config/srclist.txt (build-aux/config.rpath): different from latest
70699         release.
70700
70701 2006-05-08  Bruno Haible  <bruno@clisp.org>
70702
70703         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70704
70705 2006-05-05  Jim Meyering  <jim@meyering.net>
70706
70707         * m4/warning.m4: New file, derived from bison's file by the same name.
70708
70709 2006-05-03  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/stdint_.h: Shorter URL.
70712         * lib/inttypes.h: Likewise.
70713
70714 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70717
70718 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70719
70720         * lib/verify.h: Document the internals better.  Most of this change
70721         was written by Bruno Haible.
70722
70723 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * doc/verify.texi: New file, partly based on a proposal by
70726         Bruno Haible.
70727
70728 2006-05-02  Bruno Haible  <bruno@clisp.org>
70729
70730         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70731         test from here...
70732         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70733
70734 2006-04-29  Bruno Haible  <bruno@clisp.org>
70735
70736         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70737         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70738
70739 2006-04-29  Bruno Haible  <bruno@clisp.org>
70740
70741         * gnulib-tool: Make --update option actually work.
70742
70743 2006-04-29  Bruno Haible  <bruno@clisp.org>
70744
70745         * doc/gcd.texi: New file.
70746         * doc/gnulib.texi: Include it.
70747
70748 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         * lib/getdate.y (get_date): When adding relative date, start with the
70751         initial time, not with the result of the first mktime call.
70752
70753 2006-04-25  Bruno Haible  <bruno@clisp.org>
70754
70755         * gnulib-tool (func_import): Output the include directives in three
70756         blocks, sorted separately.
70757         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70758
70759 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70762         to define main with arguments, for C++.  Reported by Eric Blake.
70763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70764         Prefer 'int main ()' to 'int main (void)', for C++.
70765         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70767         for 'main', for C99 and C++.
70768
70769 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70770
70771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70772         Don't assume that exit status -1 is valid.
70773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70774         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70775         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70776         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70777         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70778         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70779         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70780         functions can be used without declaring them, or that you can
70781         exit with status -1.
70782         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70783
70784 2006-04-24  Karl Berry  <karl@gnu.org>
70785
70786         * config/srclist.txt (longdouble.m4): sync lost.
70787
70788 2006-04-24  Eric Blake  <ebb9@byu.net>
70789
70790         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70791
70792 2006-04-24  Bruno Haible  <bruno@clisp.org>
70793
70794         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70795         poll() implementation in AIX.
70796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70797
70798 2006-04-24  Bruno Haible  <bruno@clisp.org>
70799
70800         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70801         assigned exactly once.
70802
70803 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70804             Bruno Haible  <bruno@clisp.org>
70805
70806         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70807         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70808         for AM_CPPFLAGS.
70809
70810 2006-04-23  Bruno Haible  <bruno@clisp.org>
70811
70812         * modules/copy-file: Depend on unistd.
70813         * modules/execute: Likewise.
70814         * modules/fatal-signal: Likewise.
70815         * modules/findprog: Likewise.
70816         * modules/mkdtemp : Likewise.
70817         * modules/pipe: Likewise.
70818         * modules/wait-process: Likewise.
70819
70820 2006-04-23  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70823         condition was already detected.
70824         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70825
70826 2006-04-23  Bruno Haible  <bruno@clisp.org>
70827
70828         * lib/copy-file.c: Include <unistd.h> unconditionally.
70829         * lib/execute.c: Likewise.
70830         * lib/fatal-signal.c: Likewise.
70831         * lib/findprog.c: Likewise.
70832         * lib/mkdtemp.c: Likewise.
70833         * lib/pipe.h: Likewise.
70834         * lib/pipe.c: Likewise.
70835         * lib/wait-process.h: Likewise.
70836
70837 2006-04-23  Bruno Haible  <bruno@clisp.org>
70838
70839         * gnulib-tool (func_usage): Fix --import description. Document
70840         --update.
70841         (func_import): Create temporary file in a temporary directory, if
70842         --dry-run is specified. Silence errors from 'grep' when there are no
70843         m4 files in $m4dir.
70844         (func_create_testdir): Silence errors from 'grep' when there are no
70845         m4 files in $m4dir.
70846         Reported by Karl Berry <karl@freefriends.org>.
70847
70848 2006-04-20  Bruno Haible  <bruno@clisp.org>
70849
70850         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70851         one argument, so that the code will be portable to Autoconf 2.60.
70852         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70853         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70854         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70855
70856 2006-04-19  Derek Price  <derek@ximbiot.com>
70857             Eric Blake  <ebb9@byu.net>
70858
70859         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70860         rather than "/full/path.h".  Update comment to match.  Shorten &
70861         generalize m4_translit call via AS_TR_CPP.
70862
70863 2006-04-19  Derek Price  <derek@ximbiot.com>
70864             Eric Blake  <ebb9@byu.net>
70865
70866         * lib/inttypes.h: Correct grammar in comment.
70867
70868 2006-04-18  Derek Price  <derek@ximbiot.com>
70869             Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * modules/inttypes: New file.
70872         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70873
70874 2006-04-18  Derek Price  <derek@ximbiot.com>
70875             Paul Eggert  <eggert@cs.ucla.edu>
70876
70877         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70878         New files.
70879
70880 2006-04-18  Derek Price  <derek@ximbiot.com>
70881             Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * lib/inttypes.h: New file.
70884         * lib/strtoimax.c: Assume <inttypes.h>.
70885
70886 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70889         isn't mounted.  Problem reported by Kir Kolyshkin.
70890
70891 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70894         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70895         Derek R. Price.
70896         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70897         implementation.
70898
70899 2006-04-12  Eric Blake  <ebb9@byu.net>
70900
70901         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70902         is now done automatically by the corresponding Autoconf macro.
70903
70904 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70907         time_r.h.
70908
70909 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         Merge regex changes from libc, removing some of our
70912         POSIX-conformance changes that were rejected and redoing them in a
70913         less-intrusive way.
70914
70915         * lib/regcomp.c (re_compile_internal, init_dfa):
70916         Length arg is now size_t, not Idx.  All uses changed.
70917         (peek_token): Forward decl now says internal_function.
70918         (__re_error_msgid, __re_error_msgid_idx):
70919         Now static rather than extern with attribute_hidden.
70920         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70921         For some reason libc prefers K&R style defns for external functions.
70922         (regerror) [!defined _LIBC]: Likewise.
70923         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70924         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70925         (build_range_exp, build_collating_symbol):
70926         Use K&R-style defn.
70927         (re_compile_fastmap): Use '\0' to memset, not 0.
70928         (utf8_sb_map): Make the calculations more obvious.
70929         (init_dfa, parse_bracket_exp, build_charclass_op):
70930         Call calloc and cast result, as glibc does.
70931         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70932         (build_range_exp, build_collating_symbol):
70933         Now internal functions.
70934
70935         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70936
70937         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70938         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70939         Don't depend on VMS; depend on __VMS instead, for POSIX
70940         namespace cleanness.
70941         (regoff_t): Define to ssize_t, not long int.
70942
70943         Remove the REG_ macros named below.  Instead, make the old names
70944         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70945         __USE_GNU_REGEX.
70946         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70947         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70948         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70949         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70950         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70951         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70952         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70953         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70954         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70955         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70956         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70957         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70958         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70959         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70960         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70961         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70962         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70963         (REG_NREGS):
70964         Remove.  All uses replaced by the old RE_* names.
70965         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70966         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70967         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70968         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70969         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70970         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70971         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70972         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70973         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70974         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70975         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70976         Don't bother having these macros be independent of each others'
70977         values, since they no longer exist in the POSIX name space.
70978
70979         Rename the following member names back to their old names,
70980         unless !__USE_GNU_REGEX.  All uses changed back.
70981         (buffer): Renamed from re_buffer.
70982         (allocated): Renamed from re_allocated.
70983         (used): Renamed from re_used.
70984         (syntax): Renamed from re_syntax.
70985         (fastmap): Renamed from re_fastmap.
70986         (translate): Renamed from re_translate.
70987         (can_be_null): Renamed from re_can_be_null.
70988         (regs_allocated): Renamed from re_regs_allocated.
70989         (fastmap_accurate): Renamed from re_fastmap_accurate.
70990         (no_sub): Renamed from re_no_sub.
70991         (not_bol): Renamed from re_not_bol.
70992         (not_eol): Renamed from re_not_eol.
70993         (newline_anchor): Renamed from re_newline_anchor.
70994         (num_regs): Renamed from rm_num_regs.
70995         (start): Renamed from rm_start.
70996         (end): Renamed from rm_end.
70997
70998         (free_state): Move up a bit.
70999
71000         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71001         #define to be empty.
71002         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71003         when that is what is intended.
71004         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71005         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71006         (MAX): New macro.
71007         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71008         All uses changed back to re_malloc, etc.  It's now the caller's
71009         responsibility to check for overflow; all callers changed.
71010         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71011         (re_x2nrealloc): Remove.
71012         (free_state): Remove decl.
71013
71014         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71015         (re_set_registers, re_exec):
71016         Use K&R-style defn.
71017
71018         2006-01-31  Roland McGrath  <roland@redhat.com>
71019
71020         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71021         Reported by Mike Frysinger <vapier@gentoo.org>.
71022
71023         2006-01-15  Andreas Jaeger  <aj@suse.de>
71024
71025         [BZ #1950]
71026         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71027         build_wcs_upper_buffer change.
71028         (build_wcs_upper_buffer): Change return type.
71029
71030         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71031
71032         * lib/regex_internal.h: Include <stdint.h> if available.
71033
71034         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71035
71036         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71037
71038         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71039
71040         * lib/regcomp.c: Adjust for changed secondary hash function.
71041
71042         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71043
71044         * lib/regex.h: Pretty printing.
71045         Clean up namespace a bit.
71046
71047         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71048
71049         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71050         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71051
71052         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71053                     Ulrich Drepper  <drepper@redhat.com>
71054
71055         [BZ #1302]
71056         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71057         changed.
71058         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71059
71060         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71061
71062         [BZ #281]
71063         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71064         * lib/regcomp.c: Remove unnecessary uses of
71065         unsigned RE_TRANSLATE_TYPE.
71066         * lib/regex_internal.h: Likewise.
71067         * lib/regex_internal.c: Likewise.
71068         * lib/regexec.c: Likewise.
71069         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71070
71071         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71072
71073         * lib/regexec.c (find_recover_state): Remove unnecessary
71074         initialization.
71075         (transit_state_bkref): Make DFA a const pointer.
71076         (get_subexp): Likewise.
71077         (check_arrival): Likewise.
71078         (update_cur_sifted_state): Likewise.
71079         (re_search_internal): Likewise.
71080         (prune_impossible_nodes): Likewise.
71081         (acquire_init_state_context): Likewise.
71082         (proceed_next_node): Likewise.
71083         (set_regs): Likewise.
71084         (free_fail_stack_return): Likewise.
71085         (check_arrival_expand_ecl): Mark DFA parameter as const.
71086         (check_arrival_expand_ecl_sub): Likewise.
71087         (check_subexp_limits): Likewise.
71088         (sub_epsilon_src_nodes):  Likewise.
71089         (add_epsilon_src_nodes):  Likewise.
71090         (merge_state_array): Likewise.
71091         (update_regs): Likewise.
71092         (build_trtable): Likewise.
71093         (sift_states_backward): Mark MCTX parameter as const.
71094         (build_sifted_states): Likewise.
71095         (update_cur_sifted_state): Likewise.
71096         (sift_states_mkref): Likewise.
71097         (check_arrival_expand_ecl): Mark eclosure as const.
71098         (check_dst_limits_calc_pos_1): Likewise.
71099         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71100         pointer.
71101
71102         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71103
71104         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71105         (transit_state_sb): Likewise.
71106         (transit_state_mb): Likewise.
71107         (sift_states_iter_mb): Likewise.
71108         (check_arrival_add_next_nodes): Likewise.
71109         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71110         [_LIBC] (re_search_2_stub): Use mempcpy.
71111
71112         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71113         mbrtowc for very simple UTF-8 case.
71114
71115         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71116         a pointer-to-const.
71117         (re_acquire_state_context): Likewise.
71118         * lib/regex_internal.h: Adjust prototypes.
71119
71120         * lib/regex.c: Prevent using C++ compilers.
71121
71122         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71123         (re_acquire_state_context): Likewise.
71124
71125 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * modules/regex (Depends-on): Add ssize_t.
71128
71129 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71132         translation table.
71133
71134 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71137
71138 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71139             Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71142         <sys/types.h> and <inttypes.h>.
71143
71144 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71145
71146         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71147         `__error_t_defined', so argp.h will not typedef the former.
71148
71149 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71150
71151         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71152         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71153         glibc names.  Even if glibc is changed to conform to POSIX, the
71154         traditional names will be available anyway, since regex depends on
71155         the extensions module.  Also, fix a longstanding typo in the
71156         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71157         reported by Emanuele Giaquinta.  Also, change sense of cached
71158         variable, so that the message makes sense.
71159
71160 2006-03-24  Simon Josefsson  <jas@extundo.com>
71161
71162         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71163         including some doc fixes.
71164         (base64_encode_alloc): Fix +1 bug on allocation failures.
71165
71166 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71167
71168         * lib/base64.c (base64_encode): Do not read past end of array with
71169         unsanitized input on systems with CHAR_BIT > 8.
71170
71171 2006-03-24  Eric Blake  <ebb9@byu.net>
71172
71173         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71174
71175 2006-03-22  Karl Berry  <karl@gnu.org>
71176
71177         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71178         * config/srclistvars.sh (COREUTILS): new var.
71179
71180 2006-03-17  Jim Meyering  <jim@meyering.net>
71181
71182         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71183         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71184
71185 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71188         no longer needs it.  Instead, check that regoff_t is as least
71189         as wide as ptrdiff_t.
71190
71191         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71192         so that our regex.h stays compatible with the installed regex.
71193         This is helpful for installers who configure --without-included-regex.
71194         Problem reported by Emanuele Giaquinta.
71195
71196 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71199         Typedef to long int, not to off_, as POSIX will likely change
71200         in that direction.
71201
71202 2006-03-15  Eric Blake  <ebb9@byu.net>
71203
71204         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71205
71206 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71207
71208         * lib/argp-help.c (validate_uparams): Fix typo
71209         * lib/argp-parse.c (argp_default_options): Consistently begin help
71210         messages with a lowercase letter.
71211
71212 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71215         overrun buffers and shouldn't be used (much as gets shouldn't be
71216         used).
71217         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71218
71219 2006-03-08  Simon Josefsson  <jas@extundo.com>
71220
71221         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71222         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71223
71224 2006-03-08  Simon Josefsson  <jas@extundo.com>
71225
71226         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71227         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71228
71229 2006-03-08  Simon Josefsson  <jas@extundo.com>
71230
71231         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71232         signal that configure disabled the device.
71233
71234 2006-03-08  Simon Josefsson  <jas@extundo.com>
71235
71236         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71237         languages.
71238
71239 2006-03-07  Simon Josefsson  <jas@extundo.com>
71240
71241         * modules/getopt (Depends-on): Add unistd.
71242
71243         * modules/unistd: New file.
71244
71245 2006-03-07  Simon Josefsson  <jas@extundo.com>
71246
71247         * modules/gc-random: New file.
71248
71249 2006-03-07  Simon Josefsson  <jas@extundo.com>
71250
71251         * m4/unistd_h.m4: New file.
71252
71253 2006-03-07  Simon Josefsson  <jas@extundo.com>
71254
71255         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71256         test to be side-effect free by storing the result in the cache
71257         variable gl_cv_lib_readline, and moving the assignment of
71258         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71259         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71260
71261 2006-03-07  Simon Josefsson  <jas@extundo.com>
71262
71263         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71264         error on missing devices (the functions will return an error).
71265
71266         * m4/gc.m4: Move random stuff to gc-random.m4
71267
71268 2006-03-07  Simon Josefsson  <jas@extundo.com>
71269
71270         * lib/unistd_.h: New file.
71271
71272 2006-03-07  Simon Josefsson  <jas@extundo.com>
71273
71274         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71275
71276 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71279         Problem reported by Juan Manuel Guerrero.
71280
71281 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71284         the unistd module.
71285         * lib/getlogin_r.c: Likewise.
71286         * lib/getlogin_r.h: Likewise.
71287         * lib/glob.c: Likewise.
71288         * lib/pagealign_alloc.c: Likewise.
71289         * lib/unistd_.h: Remove; no longer needed.
71290
71291 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71292
71293         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71294         Add unistd.
71295         * modules/c-stack (Depends-on): Add unistd.
71296         * modules/getlogin_r: Likewise.
71297         * modules/glob: Likewise.
71298         * modules/pagealign_alloc: Likewise.
71299         * modules/unistd (Files): Remove lib/unistd_.h.
71300         (EXTRA_DIST): Remove.
71301         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71302         need unistd_.h.
71303         (MOSTLYCLEANFILES): Remove unistd.h-t.
71304
71305 2006-03-03  Simon Josefsson  <jas@extundo.com>
71306
71307         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71308
71309 2006-03-03  Simon Josefsson  <jas@extundo.com>
71310
71311         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71312         libidn and bison.
71313
71314 2006-03-03  Simon Josefsson  <jas@extundo.com>
71315
71316         * build-aux/maint.mk: Add indent target.
71317
71318 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71319
71320         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71321         our replacement poll.h in any case, to avoid a differing
71322         declaration from a system header.  Seen on AIX.
71323
71324 2006-03-01  Simon Josefsson  <jas@extundo.com>
71325
71326         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71327         <kasal@ucw.cz>.
71328
71329 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * modules/gettime (Depends-on): Add extensions module.
71332         * modules/nanosleep (Depends-on): Likewise.
71333         * modules/settime (Depends-on): Likewise.
71334
71335 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71336
71337         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71338         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71339         pedantically.
71340         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71341         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71342
71343         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71344         not "==".  Reported by Ralf Wildenhues.
71345
71346 2006-03-01  Karl Berry  <karl@gnu.org>
71347
71348         * doc/Copyright/request-*: new files, synced from gnuorg.
71349
71350 2006-03-01  Karl Berry  <karl@gnu.org>
71351
71352         * config/srclist.txt (Copyright/*): new entries.
71353
71354 2006-02-28  Simon Josefsson  <jas@extundo.com>
71355
71356         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71357
71358 2006-02-27  Simon Josefsson  <jas@extundo.com>
71359
71360         * lib/base64.h: Indent #define's.  From Jim Meyering
71361         <jim@meyering.net>.
71362
71363 2006-02-27  Jim Meyering  <jim@meyering.net>
71364
71365         Revert the change of 2006-02-24, so these files can continue
71366         to be sync'd from gettext.
71367         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71368         of `config.h'.
71369
71370 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71371
71372         * modules/intprops: New file.
71373         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71374         Add intprops.
71375         * modules/getloadavg (Files): Remove lib/intprops.h.
71376         (Depends-on): Add intprops.
71377         * modules/human: Likewise.
71378         * modules/inttostr: Likewise.
71379         * modules/openat: Likewise.
71380         * modules/sig2str: Likewise.
71381         * modules/userspec: Likewise.
71382         * modules/utimecmp: Likewise.
71383         * modules/xnanosleep: Likewise.
71384         * modules/xstrtol: Likewise.
71385
71386 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71387
71388         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71389         * modules/lock-tests (TESTS): Use $(EXEEXT).
71390         * modules/tls-tests: Likewise.
71391         * modules/argp-tests: Likewise.
71392         (check_PROGRAMS): New var, replacing...
71393         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71394
71395 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71396
71397         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71398         `config.h'.
71399
71400 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71401
71402         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71403
71404 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71405
71406         Sync from coreutils.
71407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71408         gl_CHDIR_SAFER.
71409
71410 2006-02-22  Jim Meyering  <jim@meyering.net>
71411
71412         Sync from coreutils.
71413         * m4/chdir-safer.m4: New file.
71414
71415 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71416
71417         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71418         AT_FDCWD exceeds INT_MAX.
71419         * lib/openat.h (AT_FDCWD): Likewise.
71420
71421 2006-02-17  Eric Blake  <address@hidden>
71422
71423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71424
71425 2006-02-16  Simon Josefsson  <jas@extundo.com>
71426
71427         * modules/getaddrinfo (Depends-on): Add sys_socket.
71428
71429 2006-02-15  Simon Josefsson  <jas@extundo.com>
71430
71431         * build-aux/maint.mk: Add dsyntax-check rule.
71432
71433 2006-02-15  Eric Blake  <ebb9@byu.net>
71434
71435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71436         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71437         'present but cannot compile' warnings on cygwin.
71438         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71439         use ws2tcpip.h if sys/socket.h works.
71440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71441         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71442
71443 2006-02-14  Simon Josefsson  <jas@extundo.com>
71444
71445         * modules/maintainer-makefile (Files): Rename.
71446
71447         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71448         and (the local) Makefile.cfg to maint-cfg.mk.
71449
71450         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71451         to the latter.
71452
71453         * modules/maintainer-makefile: New module.
71454
71455         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71456         severaly stripped to make it possible to build it up from scratch
71457         with reliable tests.
71458
71459         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71460         fixes to permit overriding the default actions when configure and
71461         makefile are not available.
71462
71463 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         Sync from coreutils.
71466         * modules/lstat (Depends-on): Don't depend on xalloc.
71467         (License): Change from GPL to LGPL, since this is now simply a
71468         replacement for a libc function.
71469
71470 2006-02-14  Jim Meyering  <jim@meyering.net>
71471
71472         Sync from coreutils.
71473
71474         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71475         failure on deficient systems, and simplify gnulib lgpl dependencies.
71476         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71477         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71478
71479         * lib/xalloc-die.c: Remove unused definition of N_.
71480
71481 2006-02-14  Jim Meyering  <jim@meyering.net>
71482
71483         Sync from coreutils.
71484         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71485         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71486         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71487         double-quote uses of that variable, to accommodate the rare case in
71488         which getmntent is available in none of the libraries checked.  This
71489         happens at least on FreeBSD 5.0.
71490
71491 2006-02-13  Simon Josefsson  <jas@extundo.com>
71492
71493         * gnulib-tool (Usage): Fix --import, from
71494         karl@freefriends.org (Karl Berry).
71495
71496 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71497
71498         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71499
71500 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71501
71502         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71503         "autoupdate" on 2005-12-12.
71504
71505 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         * modules/closeout (Depends-on): Remove atexit.
71508
71509 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71512         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71513
71514 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71517         __EXTENSIONS__ if this causes compilation to fail.  Problem
71518         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71519         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71520
71521 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71524         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71526         All uses changed.
71527
71528 2006-01-26  Simon Josefsson  <jas@extundo.com>
71529
71530         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71531         prototype is visible on mingw32.
71532
71533         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71534         for mingw32.
71535
71536         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71537         mingw32).
71538
71539 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71542         attempt to open for write; this always fails, at least on POSIX
71543         hosts.  This reinstates the 2006-01-09 change, which was
71544         inadvertently removed.
71545
71546 2006-01-26  Bruno Haible  <bruno@clisp.org>
71547
71548         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71549         Reported by Paul Eggert.
71550
71551 2006-01-26  Bruno Haible  <bruno@clisp.org>
71552             Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * lib/stdbool_.h (_Bool)
71555         [(! (defined __cplusplus || defined __BEOS__)
71556           && !defined __GNUC__
71557           && !(defined __HP_cc || defined __xlc__
71558                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71559                || defined __sgi))]:
71560         #define to signed char in these cases too; this simplifies
71561         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71562         etc., separately) and makes it more conservative.
71563
71564 2006-01-25  Simon Josefsson  <jas@extundo.com>
71565
71566         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71567         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71568         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71569
71570 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71571
71572         * lib/argp-namefrob.h: Bugfix. Remove stray #
71573
71574 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71577         so that we test the test.
71578         Check for yet another HP-UX cc bug involving *bool |= bool.
71579
71580 2006-01-25  Karl Berry  <karl@gnu.org>
71581
71582         * config/srclist.txt (vasnprintf.c): sync lost.
71583
71584 2006-01-25  Jim Meyering  <jim@meyering.net>
71585
71586         Sync from the stable (b5) branch of coreutils:
71587
71588         * lib/fts.c (fts_children): Don't let close() clobber errno from
71589         failed fchdir().
71590
71591         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71592         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71593         a dangling symlink.  That can also happen at least for ELOOP.
71594         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71595         FYI, this bug predates the inclusion of fts.c in coreutils.
71596
71597         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71598         in their own block, so pre-c99 compilers don't object.
71599
71600         Avoid the double-free (first in fts_read, second in fts_close) that
71601         would occur when an `active' directory is made inaccessible (e.g.,
71602         via chmod a-x) during a traversal.
71603         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71604         before returning.  Reproduce this failure by
71605         mkdir -p a/b; cd a; chmod a-x . b
71606         Reported by Stavros Passas.
71607
71608 2006-01-25  Jim Meyering  <jim@meyering.net>
71609
71610         * lib/fileblocks.c: Remove more useless parentheses.
71611         * lib/readutmp.h: Likewise.
71612
71613 2006-01-25  Bruno Haible  <bruno@clisp.org>
71614
71615         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71616         warnings.
71617         Reported by Paul Eggert.
71618
71619 2006-01-25  Bruno Haible  <bruno@clisp.org>
71620
71621         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71622         rid of a trap command. For Solaris sh.
71623         Reported by Mark D. Baushke <mdb@gnu.org>.
71624
71625 2006-01-24  Simon Josefsson  <jas@extundo.com>
71626
71627         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71628         Bruno.
71629
71630 2006-01-24  Karl Berry  <karl@gnu.org>
71631
71632         * config/srclist.txt (argp-namefrob.h): sync lost.
71633
71634 2006-01-24  Jim Meyering  <jim@meyering.net>
71635
71636         * modules/openat (Files): Add lib/intprops.h.
71637         From Mark D. Baushke.
71638
71639 2006-01-24  Jim Meyering  <jim@meyering.net>
71640
71641         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71642         Reported by Mark D. Baushke.
71643
71644 2006-01-24  Jim Meyering  <jim@meyering.net>
71645
71646         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71647
71648 2006-01-24  Bruno Haible  <bruno@clisp.org>
71649
71650         * modules/strnlen (Maintainer): Change from glibc to all.
71651
71652 2006-01-24  Bruno Haible  <bruno@clisp.org>
71653
71654         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71655         Patch by Paul Eggert.
71656
71657 2006-01-24  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71660         already has it.
71661         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71662         2005-11-26.
71663
71664         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71665         'signed char' to avoid problems with the built-in _Bool type.
71666         Reported by Paul Eggert on 2005-11-26.
71667
71668 2006-01-24  Bruno Haible  <bruno@clisp.org>
71669
71670         * gnulib-tool (func_import): Avoid constructing complicated sed
71671         expressions inside backquote.
71672         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71673
71674 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71675
71676         These changes imported from libc.
71677         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71678         test and two separate function calls.
71679         * lib/strndup.c (__strndup): Add libc_hidden_def.
71680
71681 2006-01-23  Simon Josefsson  <jas@extundo.com>
71682
71683         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71684         Remove the test_*_SOURCES variable: automake infers it by default.
71685         * modules/tls-tests: Likewise.
71686
71687 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         Work around porting bugs reported by Dieter in
71690         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71691         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71692         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71693         Include "getopt.h" first, to check interface.
71694         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71695         !HAVE_DECL_GETENV.
71696         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71697         (__strndup): Revert to K&R-style function dfns, the glibc style.
71698         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71699         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71700         Include strnlen.h first, to get prototype properly.
71701         (strnlen): Renamed from __strnlen.
71702         Remove weak alias.
71703
71704 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71707
71708 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * config/srclist.txt: Adjust to reflect glibc reorganization.
71711         This affects only comments.
71712
71713 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71714
71715          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71716          Reported by Bruce Korb <bkorb@gnu.org>.
71717
71718 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71721         to pacify gcc -Wswitch-default.
71722
71723 2006-01-22  Bruno Haible  <bruno@clisp.org>
71724
71725         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71726         temporary buffer for sprintf, take into account the precision also
71727         for 'd', 'i', 'u', 'o', 'x', 'X'.
71728
71729 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71730
71731         * modules/argp-tests: New module
71732         * tests/test-argp.c: New file
71733         * tests/test-argp-2.sh: New file
71734
71735 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71736
71737         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71738         (__argp_base_name): Removed
71739         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71740         typo.
71741         (__argp_base_name): Provide macro definition or extern declaration
71742         depending on the configuration
71743
71744 2006-01-20  Simon Josefsson  <jas@extundo.com>
71745
71746         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71747
71748 2006-01-20  Simon Josefsson  <jas@extundo.com>
71749
71750         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71751
71752 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71755         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71756         Suggested by Bruno Haible.
71757
71758 2006-01-20  Karl Berry  <karl@gnu.org>
71759
71760         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71761         until changes propagate, I guess.
71762
71763 2006-01-19  Simon Josefsson  <jas@extundo.com>
71764
71765         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71766
71767 2006-01-19  Simon Josefsson  <jas@extundo.com>
71768
71769         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71770
71771 2006-01-19  Simon Josefsson  <jas@extundo.com>
71772
71773         * gnulib-tool: Set check_PROGRAMS.
71774
71775         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71776         modules/des-tests, modules/gc-arcfour-tests,
71777         modules/gc-arctwo-tests, modules/gc-des-tests,
71778         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71779         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71780         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71781         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71782         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71783         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71784         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71785         test_*_SOURCES.
71786
71787 2006-01-18  Simon Josefsson  <jas@extundo.com>
71788
71789         * modules/socklen (Depends-on): Depend on sys_socket.
71790
71791 2006-01-18  Simon Josefsson  <jas@extundo.com>
71792
71793         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71794         modules/des-tests, modules/gc-arcfour-tests,
71795         modules/gc-arctwo-tests, modules/gc-des-tests,
71796         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71797         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71798         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71799         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71800         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71801         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71802         $(EXEEXT) to automake TESTS variable, for mingw32.
71803
71804 2006-01-17  Simon Josefsson  <jas@extundo.com>
71805
71806         * modules/socklen (Include): Need sys/socket.h.
71807
71808 2006-01-17  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/ssize_t (Include): Add <sys/types.h>.
71811
71812 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71815         it's not portable and it doesn't work with cross-compiles.
71816         Problem reported by Bruno Haible.  Fix missing-$ typo in
71817         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71818         -zignore from being used with Sun's C compiler.
71819
71820 2006-01-12  Simon Josefsson  <jas@extundo.com>
71821
71822         * lib/base64.c: Fix warning, reported by Bruno Haible
71823         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71824
71825 2006-01-12  Bruno Haible  <bruno@clisp.org>
71826
71827         * modules/ldd: New file.
71828         * build-aux/ldd.sh.in: New file.
71829         * MODULES.html.sh (Support for building libraries and executables): Add
71830         ldd.
71831
71832 2006-01-12  Bruno Haible  <bruno@clisp.org>
71833
71834         * m4/ldd.m4: New file.
71835
71836 2006-01-12  Bruno Haible  <bruno@clisp.org>
71837
71838         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71839         endless loop while replacing $auxdir with build-aux.
71840
71841 2006-01-11  Simon Josefsson  <jas@extundo.com>
71842
71843         * lib/stdint_.h (SIZE_MAX): Add missing (.
71844
71845 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71846
71847         Sync from coreutils.
71848         * lib/md5.c: Fix commentary typos.
71849         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71850         * lib/md5.h (__attribute__): Remove; unused.
71851         * lib/sha1.c: Fix commentary to match md5 better.
71852         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71853         so that we don't need to worry about alignment.  All uses changed.
71854         This merges the 2005-10-28 md5 change into sha1.
71855
71856 2006-01-11  Jim Meyering  <jim@meyering.net>
71857
71858         Sync from coreutils.
71859         * lib/md5.c (OP): Fix spacing.
71860
71861 2006-01-11  Bruno Haible  <bruno@clisp.org>
71862
71863         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71864         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71865         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71866
71867 2006-01-11  Bruno Haible  <bruno@clisp.org>
71868
71869         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71870         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71871         the "early" section as well.
71872
71873 2006-01-11  Bruno Haible  <bruno@clisp.org>
71874
71875         Avoid "ar: no archive members specified" error on MacOS X.
71876         * gnulib-tool (func_modules_add_dummy): New function.
71877         (func_import, func_create_testdir): Invoke it.
71878
71879 2006-01-11  Bruno Haible  <bruno@clisp.org>
71880
71881         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71882         with $auxdir in AC_CONFIG_FILES statements.
71883
71884 2006-01-11  Bruno Haible  <bruno@clisp.org>
71885
71886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71887         Initialize also noinst_HEADERS to empty.
71888
71889 2006-01-11  Bruno Haible  <bruno@clisp.org>
71890
71891         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71892         variables.
71893         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71894         autoreconf.
71895
71896 2006-01-11  Bruno Haible  <bruno@clisp.org>
71897
71898         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71899         overridable by the user.
71900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71901
71902 2006-01-10  Simon Josefsson  <jas@extundo.com>
71903
71904         * modules/sys_socket: New file.
71905
71906 2006-01-10  Simon Josefsson  <jas@extundo.com>
71907
71908         * m4/sys_socket_h.m4: New file.
71909
71910 2006-01-10  Simon Josefsson  <jas@extundo.com>
71911
71912         * lib/socket_.h: New file.
71913
71914 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * modules/readutmp (Maintainer): Add myself.
71917
71918 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71921         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71922         People who are still concerned with buggy memcmp implementations
71923         can invoke gl_FUNC_MEMCMP themselves.
71924
71925 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * lib/regex_internal.h (BITSET_WORD_BITS):
71928         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71929         preprocessor mishandles large unsigned values as if they were signed.
71930         Problem reported by Claudio Fontana in
71931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71932
71933 2006-01-10  Jim Meyering  <jim@meyering.net>
71934
71935         Avoid the double-free (first in fts_read, second in fts_close) that
71936         would occur when an `active' directory is made inaccessible (e.g.,
71937         via chmod a-x) during a traversal.
71938         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71939         before returning.  Reproduce this failure by
71940         mkdir -p a/b; cd a; chmod a-x . b
71941         Reported by Stavros Passas.
71942
71943         Sync from coreutils.
71944         * lib/sha1.c: Tweak grammar in a comment.
71945
71946 2006-01-10  Jim Meyering  <jim@meyering.net>
71947
71948         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71949         Patch by Joerg Sonnenberger.
71950
71951 2006-01-10  Bruno Haible  <bruno@clisp.org>
71952
71953         * modules/readutmp: Depend on module free.
71954         * modules/strtok_r: Depend on module restrict.
71955
71956 2006-01-10  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/gettext (configure.ac): Add an invocation of
71959         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71960
71961 2006-01-10  Bruno Haible  <bruno@clisp.org>
71962
71963         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71964         Reported by Werner Lemberg <wl@gnu.org>.
71965
71966 2006-01-10  Bruno Haible  <bruno@clisp.org>
71967
71968         * lib/localcharset.c: Update from GNU gettext.
71969
71970 2006-01-10  Bruno Haible  <bruno@clisp.org>
71971
71972         * lib/argp.h (__const): Remove macro. Use const instead.
71973         * lib/argp-fmtstream.h (__const): Likewise.
71974         * lib/glob_.h (__const): Remove macro.
71975         * lib/glob-libc.h: Use const instead of __const.
71976
71977 2006-01-10  Bruno Haible  <bruno@clisp.org>
71978
71979         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71980         variable.
71981         Needed to avoid an automake error regarding the 'gettext' module.
71982
71983 2006-01-09  Simon Josefsson  <jas@extundo.com>
71984
71985         * modules/inet_ntop (Depends-on): Add restrict.
71986
71987 2006-01-09  Simon Josefsson  <jas@extundo.com>
71988
71989         * modules/gc-rijndael-tests (License): Put under LGPL.
71990
71991         * modules/gc-des-tests (License): Likewise.
71992
71993         * modules/gc-arcfour-tests (License): Likewise.
71994
71995         * modules/gc-arctwo-tests (License): Likewise.
71996
71997         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71998
71999         * modules/gc-hmac-sha1-tests (Files): Likewise.
72000
72001         * modules/gc-hmac-md5-tests (License): Likewise.
72002
72003         * modules/gc-sha1-tests (License): Likewise.
72004
72005         * modules/gc-md5-tests (License): Likewise.
72006
72007         * modules/gc-md4-tests (License): Likewise.
72008
72009         * modules/gc-md2-tests (License): Likewise.
72010
72011         * modules/gc-tests (License): Likewise.
72012
72013         * modules/des-tests (License): Likewise.
72014
72015         * modules/md4-tests (License): Likewise.
72016
72017         * modules/md2-tests (License): Likewise.
72018
72019 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         Sync from coreutils:
72022
72023         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72024         * modules/lib-ignore: New file.
72025         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72026         chdir-safer.m4, lchmod.m4.
72027         * modules/openat: Add mkdirat.c, openat-priv.h.
72028
72029 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         Sync from coreutils.
72032         * m4/lib-ignore.m4: New file.
72033         * m4/lchmod.m4: New file.
72034
72035 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         Sync from coreutils.
72038         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72039         for write access: POSIX says that must fail.
72040         * lib/fts.c (diropen): Likewise.
72041         * lib/save-cwd.c (save_cwd): Likewise.
72042         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72043         well, for minor improvements on hosts that lack O_DIRECTORY.
72044         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72045         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72046         Fall back on chown if open failed with EACCES.
72047
72048         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72049         Report an error at compile-time if only a 1-second nominal clock
72050         resolution is found.
72051
72052         * lib/lchmod.h: New file.
72053         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72054         (make_dir_parents): Use lchown rather than chown, and
72055         lchmod rather than chmod.
72056
72057         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72058         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72059         "proc" reported by n0dalus.
72060
72061         * lib/mountlist.c: Include <limits.h>.
72062         (dev_from_mount_options)
72063         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72064         New function.  It no longer assumes "dev=" has the System V meaning
72065         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72066         (read_file_system_list)
72067         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72068         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72069         dev= in that case.
72070
72071         * lib/posixtm.h (PDS_PRE_2000): New macro.
72072         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72073         allow_century.  All usages changed.  Reject dates outside the range
72074         1969-1999 if PDS_PRE_2000 is used.
72075
72076 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         Sync from coreutils.
72079         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72080         (Time of day items): Mention the possibility of leap seconds.
72081         Problem reported by Dr. David Alan Gilbert.
72082
72083 2006-01-09  Jim Meyering  <jim@meyering.net>
72084
72085         Sync from coreutils.
72086
72087         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72088
72089         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72090
72091         * lib/modechange.c (mode_compile): Reject an invalid mode string
72092         that starts with an octal digit.  From Andreas Gruenbacher.
72093
72094         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72095         and dup to open_safer and dup_safer, respectively.
72096         (openat_permissive): Fix typo in comment.
72097
72098         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72099         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72100         (_): Remove; no longer needed.
72101         (openat): Renamed from rpl_openat; no need for rpl_openat
72102         since openat.h renames openat for us.
72103         Replace most of the body with a call to openat_permissive,
72104         to avoid duplicate code.
72105         Port to (probably hypothetical) environments were mode_t is
72106         wider than int.
72107         (openat_permissive): Require mode arg, so that we can check
72108         types better.  Put it just after flags.  Change cwd failure
72109         indicator from pointer-to-bool to pointer-to-errno-value.
72110         All callers changed.
72111         Invoke openat_save_fail and/or openat_restore_fail if
72112         cwd_errno is null, so that openat can call us.
72113         (openat_permissive, fdopendir, fstatat, unlinkat):
72114         Simplify errno handling to avoid some duplicate code,
72115         as it's OK to set errno on success.
72116         * lib/openat.h: Revamp code so that function macros depend on
72117         __OPENAT_PREFIX only, not also on AT_FDCWD.
72118         (openat_ro): Remove.  Caller changed to use openat_permissive.
72119         (openat_permissive): Now a macro, if not a function.
72120         (openat_restore_fail, openat_save_fail): Now always functions,
72121         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72122
72123         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72124         and openat.c.
72125         * lib/mkdirat.c: Include openat-priv.h.
72126         Remove definitions of macros defined therein.
72127         * lib/openat.c: Likewise.
72128
72129         * lib/mkdirat.c (mkdirat): New file and function.
72130         * lib/openat.h (mkdirat): Declare.
72131
72132         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72133
72134         * lib/openat.h (openat_permissive): Declare.
72135         (openat_ro): Define.
72136
72137         * lib/openat.c (EXPECTED_ERRNO): New macro.
72138         (openat_permissive): New function -- used in remove.c rewrite.
72139         (all functions): Set errno just before returning, only if there
72140         was an actual failure.
72141         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72142
72143         Emulate openat-family functions using Linux's procfs, if possible.
72144         Idea and some code based on Ulrich Drepper's glibc changes.
72145
72146         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72147         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72148         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72149         before falling back on save_cwd and restore_cwd.
72150         (fdopendir, fstatat, unlinkat): Likewise.
72151
72152         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72153         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72154
72155         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72156         as second argument to va_arg.  Otherwise, some versions of gcc
72157         warn that `if this code is reached, the program will abort'.
72158
72159 2006-01-09  Jim Meyering  <jim@meyering.net>
72160
72161         Sync from coreutils.
72162         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72163         Require openat-priv.h.
72164
72165 2006-01-09  Bruno Haible  <bruno@clisp.org>
72166
72167         * modules/strnlen (Include): Use strnlen.h.
72168
72169 2006-01-09  Bruno Haible  <bruno@clisp.org>
72170
72171         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72172
72173 2006-01-09  Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/sysexit_.h (EX_OK): New macro.
72176         Suggested by Martin Lambers <marlam@marlam.de>.
72177
72178 2006-01-09  Bruno Haible  <bruno@clisp.org>
72179
72180         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72181         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72182
72183 2006-01-09  Bruno Haible  <bruno@clisp.org>
72184
72185         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72186         numbers.
72187
72188 2006-01-09  Bruno Haible  <bruno@clisp.org>
72189
72190         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72191         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72192         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72193         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72194
72195 2006-01-09  Bruno Haible  <bruno@clisp.org>
72196
72197         * build-aux/javacomp.sh.in: New file, moved from lib/.
72198         * modules/javacomp-script (Files): Update.
72199         (configure.ac): Add AC_CONFIG_FILES invocation.
72200         (EXTRA_DIST): Remove variable.
72201
72202         * build-aux/javaexec.sh.in: New file, moved from lib/.
72203         * modules/javaexec (Files): Update.
72204         (configure.ac): Add AC_CONFIG_FILES invocation.
72205         (EXTRA_DIST): Remove javaexec.sh.in.
72206
72207         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72208         * modules/csharpcomp-script (Files): Update.
72209         (configure.ac): Add AC_CONFIG_FILES invocation.
72210         (EXTRA_DIST): Remove variable.
72211
72212         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72213         * modules/csharpexec (Files): Update.
72214         (configure.ac): Add AC_CONFIG_FILES invocation.
72215         (EXTRA_DIST): Remove csharpexec.sh.in.
72216
72217 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72218
72219         Sync from coreutils.
72220
72221         Add POSIX ACL support
72222         * lib/acl.h (copy_acl, set_acl): Add declarations.
72223         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72224         systems other than Linux.
72225         (chmod_or_fchmod): New function: use fchmod when possible,
72226         and chmod otherwise.
72227         (file_has_acl): Add a POSIX ACL implementation, with a
72228         Linux-specific subcase.
72229         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72230         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72231         acls are unsupported.
72232         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72233         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72234         are unsupported.
72235
72236 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72237
72238         Sync from coreutils.
72239         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72240
72241 2006-01-07  Bruno Haible  <bruno@clisp.org>
72242
72243         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72244         gl_EARLY.
72245
72246 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72247
72248         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72249         Problem reported for Mingw by Mark Junker.
72250
72251 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * README: Gnulib normally doesn't generate a tarball.
72254
72255 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72256
72257         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72258         long int, not int, for nanosecond counts, so that people who are
72259         used to POSIX struct timespec won't be surprised.  Reported by Jim
72260         Meyering.
72261
72262 2005-12-28  Bruno Haible  <bruno@clisp.org>
72263
72264         * build-aux/config.rpath: Update from GNU gettext.
72265
72266 2005-12-16  Jim Meyering  <jim@meyering.net>
72267
72268         * modules/fprintftime: New module.
72269         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72270
72271 2005-12-16  Jim Meyering  <jim@meyering.net>
72272
72273         * m4/fprintftime.m4: New file.
72274
72275 2005-12-16  Jim Meyering  <jim@meyering.net>
72276
72277         * lib/fprintftime.c, lib/fprintftime.h: New files.
72278
72279 2005-12-15  Simon Josefsson  <jas@extundo.com>
72280
72281         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72282         new m4/socklen.m4.
72283
72284 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72285
72286         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72287         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72288
72289 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72290
72291         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72292         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72293         struct uparams is valid. Fall back to the default values if it is
72294         not.
72295
72296 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72297
72298         * modules/argp (Files): Add argp-pin.c
72299         (Depends-on): dirname
72300         (lib_SOURCES): Add argp-pin.c
72301
72302 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72303
72304         * m4/argp.m4:  Check if program_invocation_name and
72305         program_invocation_short_name are declared and define appropriate
72306         macros if they are not.
72307
72308 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72309
72310         * lib/argp-help.c (__argp_base_name): New function
72311         (__argp_short_program_name): Rewrite using __argp_base_name
72312         * lib/argp-namefrob.h: Define program_invocation_name and
72313         program_invocation_short_name if requested
72314         (__argp_base_name): Add prototype
72315         * lib/argp-parse.c (argp_def): Use gettext wrappers
72316         (argp_default_parser): Use __argp_base_name
72317         * lib/argp-pin.c: New file. Defines program_invocation_name and
72318         program_invocation_short_name on systems that lack them.
72319
72320 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72323         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72324         porting problem reported by Georg Schwarz in
72325         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72326
72327 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72330         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72331         porting problem reported by Georg Schwarz in
72332         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72333
72334 2005-12-05  Bruno Haible  <bruno@clisp.org>
72335
72336         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72337         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72338         Reported by Mark Junker <mjscod@gmx.de>.
72339
72340 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72341
72342         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72343         Use implementation from Albert Chin, with some
72344         comments/corrections by Stepan Kasal and myself.
72345
72346 2005-12-02  Bruno Haible  <bruno@clisp.org>
72347
72348         * gnulib-tool (func_import): Accept GPLed build tool modules when
72349         --lgpl is given.
72350         * modules/csharpcomp-script: New file.
72351         * modules/csharpcomp: Depend on it.
72352         * modules/javacomp-script: New file.
72353         * modules/javacomp: Depend on it.
72354         Suggested by Simon Josefsson.
72355
72356 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72359         statement, to work around an HP-UX 10.20 compiler bug reported by
72360         Peter O'Gorman.
72361
72362 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * modules/savedir (Depends-on): Add openat.
72365
72366 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72369         (uintmax_t) [defined uintmax_t]: Do not declare.
72370         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72371         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72372         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72373         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72374         sake of portability to weird hosts that C allows (though we don't
72375         know of any practical examples).
72376
72377         * lib/savedir.h (fdsavedir): New decl.
72378         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72379         contains most of the former guts of savedir.
72380         (savedir): Use savedirstream.
72381         Include "openat.h".
72382
72383 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * modules/obstack (Files): Add m4/ulonglong.m4.
72386         Problem reported by Davide Angelocola.
72387
72388 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72391         coreutils no longer futzes with rounding modes.
72392
72393 2005-11-14  Jim Meyering  <jim@meyering.net>
72394
72395         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72396         replacement of mkstemp.
72397
72398 2005-11-10  Simon Josefsson  <jas@extundo.com>
72399
72400         * lib/readline.c: Remove EOL.
72401
72402 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * modules/gethrxtime (Depends-on): Add gettime.
72405
72406 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72409         or gettimeofday; no longer needed.
72410
72411 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72412
72413         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72414         time business.
72415         (gethrxtime) [! (HAVE_NANOUPTIME
72416         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72417         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72418         our own approximation.
72419
72420 2005-11-08  Eric Blake  <ebb9@byu.net>
72421
72422         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72423
72424 2005-11-08  Eric Blake  <ebb9@byu.net>
72425
72426         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72427
72428 2005-11-04  Bruno Haible  <bruno@clisp.org>
72429
72430         * gnulib-tool: Implement --update mode.
72431
72432 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         Fix porting problem reported by Theodoros V. Kalamatianos.
72435         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72436         Don't assume that futimes failing means we must fail.
72437
72438 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72441         variables to suggest the intended function of the PATH_MAX check.
72442
72443 2005-10-30  Kean Johnston  <jkj@sco.com>
72444
72445         Trivial changes to support SCO systems.
72446         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72447         as PATH_MAX.
72448         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72449         where __ptr is null when no I/O is pending.
72450
72451 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72454         leave errno alone.  Problem reported by Dmitry V. Levin.
72455
72456 2005-10-28  Simon Josefsson  <jas@extundo.com>
72457
72458         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72459         Test more.
72460
72461         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72462
72463         * modules/md2, modules/md2-tests: New files.
72464
72465 2005-10-28  Simon Josefsson  <jas@extundo.com>
72466
72467         * m4/inet_ntop.m4: More tests.
72468
72469         * m4/gc-md2.m4, md2.m4: New file.
72470
72471 2005-10-28  Simon Josefsson  <jas@extundo.com>
72472
72473         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72474         "restrict" keywords, as per POSIX.  Protect the function
72475         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72476         Don't use K&R prototypes.  Check the sprintf return values.
72477         Re-define EAFNOSUPPORT if not present.  Indent.
72478
72479         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72480         suggested by Bruno Haible <bruno@clisp.org>.
72481
72482         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72483
72484         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72485
72486         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72487         libgcrypt).
72488
72489         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72490
72491         * lib/md2.h, lib/md2.c: New files.
72492
72493 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72496         errno alone.  Problem reported by Frederic Jolliton.
72497
72498 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * modules/verify (License): Change from GPL to LGPL.  This is a
72501         tiny module and there are apparently near-equivalents that are
72502         under the BSD license.
72503
72504 2005-10-24  Simon Josefsson  <jas@extundo.com>
72505
72506         * modules/sha1: Relicense to LGPL.
72507
72508 2005-10-24  Simon Josefsson  <jas@extundo.com>
72509
72510         * lib/md4.h: Shrink buffer size, now that we changed the type.
72511
72512 2005-10-23  Simon Josefsson  <jas@extundo.com>
72513
72514         * gnulib-tool (func_import): Fix --tests-base.
72515
72516 2005-10-22  Simon Josefsson  <jas@extundo.com>
72517
72518         * modules/arcfour (Depends-on): Need stdint.
72519
72520 2005-10-22  Simon Josefsson  <jas@extundo.com>
72521
72522         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72523         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72524
72525 2005-10-22  Simon Josefsson  <jas@extundo.com>
72526
72527         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72528         suggested by Bruno Haible <bruno@clisp.org>.
72529
72530 2005-10-22  Simon Josefsson  <jas@extundo.com>
72531
72532         * lib/crc.h: Include stddef.h, for size_t.
72533
72534 2005-10-22  Simon Josefsson  <jas@extundo.com>
72535
72536         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72537         arcfour_context struct (simplify test vector testing in GNU
72538         Shishi).
72539
72540 2005-10-21  Simon Josefsson  <jas@extundo.com>
72541
72542         * modules/des, modules/des-tests: New files.
72543
72544         * modules/gc-des, modules/gc-des-tests: New files.
72545
72546         * tests/test-des.c, tests/test-gc-des.c: New file.
72547
72548 2005-10-21  Simon Josefsson  <jas@extundo.com>
72549
72550         * modules/arctwo, modules/arctwo-tests: New files.
72551
72552         * tests/test-arctwo.c: New file.
72553
72554         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72555
72556         * tests/test-gc-arctwo.c: New file.
72557
72558 2005-10-21  Simon Josefsson  <jas@extundo.com>
72559
72560         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72561         Bruno Haible <bruno@clisp.org>.
72562
72563         * m4/gc-des.m4: New file.
72564
72565 2005-10-21  Simon Josefsson  <jas@extundo.com>
72566
72567         * m4/arctwo.m4: New file.
72568
72569         * m4/gc-arctwo.m4: New file.
72570
72571 2005-10-21  Simon Josefsson  <jas@extundo.com>
72572
72573         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72574         block.
72575
72576 2005-10-21  Simon Josefsson  <jas@extundo.com>
72577
72578         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72579         <bruno@clisp.org>.
72580
72581         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72582
72583         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72584         Bruno Haible <bruno@clisp.org>.
72585
72586         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72587         <bruno@clisp.org>.
72588
72589 2005-10-21  Simon Josefsson  <jas@extundo.com>
72590
72591         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72592
72593 2005-10-21  Simon Josefsson  <jas@extundo.com>
72594
72595         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72596
72597 2005-10-21  Simon Josefsson  <jas@extundo.com>
72598
72599         * lib/des.h, lib/des.c: New files.
72600
72601         * lib/gc-gnulib.c: Support DES.c
72602
72603 2005-10-21  Simon Josefsson  <jas@extundo.com>
72604
72605         * lib/arctwo.h, lib/arctwo.c: New files.
72606
72607         * lib/gc-gnulib.c: Support ARCTWO.
72608
72609 2005-10-21  Simon Josefsson  <jas@extundo.com>
72610
72611         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72612         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72613
72614 2005-10-21  Simon Josefsson  <jas@extundo.com>
72615
72616         * gnulib-tool (func_import, func_create_testdir): Define automake
72617         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72618         Makefile.am snippet),
72619         suggested by Bruno Haible <bruno@clisp.org>.
72620
72621         * modules/gc (Makefile.am): Use it.
72622
72623 2005-10-21  Bruno Haible  <bruno@clisp.org>
72624
72625         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72626         patch.
72627
72628 2005-10-19  Simon Josefsson  <jas@extundo.com>
72629
72630         * tests/test-gc-rijndael.c: New file.
72631
72632         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72633
72634 2005-10-19  Simon Josefsson  <jas@extundo.com>
72635
72636         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72637         interface too.
72638
72639 2005-10-19  Simon Josefsson  <jas@extundo.com>
72640
72641         * tests/test-gc-arcfour.c: New file.
72642
72643         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72644
72645 2005-10-19  Simon Josefsson  <jas@extundo.com>
72646
72647         * modules/gc-md4, modules/gc-md4-tests: New file.
72648
72649         * tests/test-gc-md4.c: New file.
72650
72651 2005-10-19  Simon Josefsson  <jas@extundo.com>
72652
72653         * m4/gc-md4.m4: New file.
72654
72655 2005-10-19  Simon Josefsson  <jas@extundo.com>
72656
72657         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72658         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72659         <kasal@ucw.cz>.
72660
72661 2005-10-19  Simon Josefsson  <jas@extundo.com>
72662
72663         * m4/gc-arcfour.m4: New file.
72664
72665         * m4/gc-rijndael.m4: New file.
72666
72667 2005-10-19  Simon Josefsson  <jas@extundo.com>
72668
72669         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72670
72671 2005-10-19  Simon Josefsson  <jas@extundo.com>
72672
72673         * lib/gc-gnulib.c: Support ARCFOUR.
72674
72675 2005-10-19  Simon Josefsson  <jas@extundo.com>
72676
72677         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72678         support.
72679
72680         * lib/gc.h: Add ECB enum type.
72681
72682         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72683
72684 2005-10-18  Simon Josefsson  <jas@extundo.com>
72685
72686         * tests/test-md5.c: New file.
72687
72688         * modules/md5-tests: New file.
72689
72690 2005-10-18  Simon Josefsson  <jas@extundo.com>
72691
72692         * tests/test-md4.c: New file.
72693
72694         * modules/md4, modules/md4-tests: New files.
72695
72696 2005-10-18  Simon Josefsson  <jas@extundo.com>
72697
72698         * m4/md4.m4: New file.
72699
72700 2005-10-18  Simon Josefsson  <jas@extundo.com>
72701
72702         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72703
72704 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72705
72706         * gnulib-tool (func_create_testdir): Omit the second check whether
72707         BUILT_SOURCES in nonempty.
72708
72709 2005-10-17  Simon Josefsson  <jas@extundo.com>
72710
72711         * tests/test-rijndael.c: New file.
72712
72713 2005-10-17  Simon Josefsson  <jas@extundo.com>
72714
72715         * modules/sha1: Depend on stdint instead of md5.
72716
72717         * modules/md5: Depend on stdint, remove uint32_t.
72718
72719 2005-10-17  Simon Josefsson  <jas@extundo.com>
72720
72721         * modules/gc-sha1-tests: New file.
72722
72723         * tests/test-gc-sha1.c: New file.
72724
72725 2005-10-17  Simon Josefsson  <jas@extundo.com>
72726
72727         * m4/md5.m4: Remove call to uint32_t.m4.
72728
72729 2005-10-17  Simon Josefsson  <jas@extundo.com>
72730
72731         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72732
72733         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72734         md5.h.
72735
72736         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72737
72738         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72739
72740 2005-10-17  Simon Josefsson  <jas@extundo.com>
72741
72742         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72743
72744 2005-10-17  Simon Josefsson  <jas@extundo.com>
72745
72746         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72747
72748 2005-10-17  Simon Josefsson  <jas@extundo.com>
72749
72750         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72751
72752         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72753
72754 2005-10-17  Bruno Haible  <bruno@clisp.org>
72755
72756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72757         that it can also be used in a test.
72758
72759 2005-10-16  Bruno Haible  <bruno@clisp.org>
72760
72761         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72762         TESTS_ENVIRONMENT, so that individual tests can augment it.
72763
72764         * gnulib-tool (func_create_testdir): Use an intermediate target for
72765         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72766         macros, like $(ALLOCA_H), which cannot be passed through the command
72767         line.
72768
72769 2005-10-15  Simon Josefsson  <jas@extundo.com>
72770
72771         * modules/rijndael-tests: New file.
72772
72773         * modules/rijndael: New file.
72774
72775 2005-10-15  Simon Josefsson  <jas@extundo.com>
72776
72777         * m4/rijndael.m4: New file.
72778
72779 2005-10-15  Simon Josefsson  <jas@extundo.com>
72780
72781         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72782
72783         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72784
72785 2005-10-14  Simon Josefsson  <jas@extundo.com>
72786
72787         * tests/test-arcfour.c: New file.
72788
72789         * modules/arcfour, modules/arcfour-tests: New files.
72790
72791 2005-10-14  Simon Josefsson  <jas@extundo.com>
72792
72793         * m4/arcfour.m4: New file.
72794
72795 2005-10-14  Simon Josefsson  <jas@extundo.com>
72796
72797         * lib/arcfour.h, lib/arcfour.c: New files.
72798
72799 2005-10-14  Roland McGrath  <roland@redhat.com>
72800
72801         Import from libc.  [BZ #1331]
72802         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72803         macro argument.
72804         Reported by Matej Vela <vela@debian.org>.
72805
72806 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72809         include <wchar.h>; no longer needed.
72810
72811 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72812
72813         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72814
72815 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72816         and  Ulrich Drepper  <drepper@redhat.com>
72817
72818         Import from libc.
72819         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72820         instead of inline stream orientation test and two separate
72821         function calls.  Pay no attention to USE_IN_LIBIO.
72822
72823 2005-10-13  Simon Josefsson  <jas@extundo.com>
72824
72825         * modules/gc-hmac-md5-tests: New file.
72826
72827         * tests/test-gc-hmac-sha1.c: New file.
72828
72829         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72830
72831         * modules/gc-hmac-md5-tests: New file.
72832
72833         * tests/test-gc-md5.c: New file.
72834
72835         * modules/gc-md5-tests: New file.
72836
72837 2005-10-13  Simon Josefsson  <jas@extundo.com>
72838
72839         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72840         Move memory allocation outside of loop.
72841
72842 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72845         intermediate directory is in a read-only file system.  Problem
72846         reported by Eric Blake.
72847
72848 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72849
72850         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72851
72852 2005-10-12  Simon Josefsson  <jas@extundo.com>
72853
72854         * tests/test-hmac-sha1.c: New file.
72855
72856         * modules/hmac-sha1-tests: New file.
72857
72858         * modules/hmac-sha1: New file.
72859
72860 2005-10-12  Simon Josefsson  <jas@extundo.com>
72861
72862         * modules/gc-sha1: New file.
72863
72864 2005-10-12  Simon Josefsson  <jas@extundo.com>
72865
72866         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72867
72868         * tests/test-gc-pbkdf2-sha1.c: New file.
72869
72870 2005-10-12  Simon Josefsson  <jas@extundo.com>
72871
72872         * modules/gc-md5, modules/gc-hmac-md5: New files.
72873
72874         * modules/gc (Files): Remove md5, memxor and hmac files.
72875
72876 2005-10-12  Simon Josefsson  <jas@extundo.com>
72877
72878         * m4/gc-pbkdf2-sha1.m4: New file.
72879
72880         * m4/gc-hmac-sha1.m4: New file.
72881
72882         * m4/gc-sha1: New file.
72883
72884         * m4/hmac-sha1.m4: New file.
72885
72886 2005-10-12  Simon Josefsson  <jas@extundo.com>
72887
72888         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72889
72890         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72891
72892 2005-10-12  Simon Josefsson  <jas@extundo.com>
72893
72894         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72895         suggested by Bruno Haible <bruno@clisp.org>.
72896
72897 2005-10-12  Simon Josefsson  <jas@extundo.com>
72898
72899         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72900
72901 2005-10-12  Simon Josefsson  <jas@extundo.com>
72902
72903         * lib/gc-pbkdf2-sha1.c: New file.
72904
72905         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72906
72907 2005-10-12  Simon Josefsson  <jas@extundo.com>
72908
72909         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72910
72911         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72912
72913 2005-10-12  Simon Josefsson  <jas@extundo.com>
72914
72915         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72916         GC_USE_HMAC_MD5, respectively.
72917
72918         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72919         (gc_md5): Fix typo.
72920
72921         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72922
72923         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72924
72925         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72926
72927 2005-10-12  Bruno Haible  <bruno@clisp.org>
72928
72929         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72930         Reported by Stepan Kasal <kasal@ucw.cz>.
72931
72932 2005-10-11  Simon Josefsson  <jas@extundo.com>
72933
72934         * tests/test-crc.c: New file.
72935
72936         * modules/crc, modules/crc-tests: New files.
72937
72938 2005-10-11  Simon Josefsson  <jas@extundo.com>
72939
72940         * m4/crc.m4: New file.
72941
72942 2005-10-11  Simon Josefsson  <jas@extundo.com>
72943
72944         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72945
72946         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72947
72948         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72949
72950 2005-10-11  Simon Josefsson  <jas@extundo.com>
72951
72952         * lib/crc.h, lib/crc.c: New files.
72953
72954         * lib/gc.h (gc_hash_buffer): Add doc.
72955
72956 2005-10-11  Bruno Haible  <bruno@clisp.org>
72957
72958         * modules/c-strcasestr: New file.
72959         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72960
72961 2005-10-11  Bruno Haible  <bruno@clisp.org>
72962
72963         * modules/c-strcase: New file.
72964         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72965
72966 2005-10-11  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/strcasecmp.c: Include limits.h.
72969         (strcasecmp): Avoid integer overflow on exotic platforms.
72970         * lib/strncasecmp.c: Include limits.h.
72971         (strncasecmp): Avoid integer overflow on exotic platforms.
72972         Reported by Paul Eggert.
72973
72974 2005-10-11  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/c-strcasestr.h: New file, from GNU gettext.
72977         * lib/c-strcasestr.c: New file, from GNU gettext.
72978
72979 2005-10-11  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/c-strcase.h: New file, from GNU gettext.
72982         * lib/c-strcasecmp.c: New file, from GNU gettext.
72983         * lib/c-strncasecmp.c: New file, from GNU gettext.
72984
72985 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72986
72987         * modules/mempcpy (License): GPL -> LGPL.
72988         * modules/strchrnul (License): Likewise.
72989         * modules/sysexits (License): Likewise.
72990
72991 2005-10-08  Simon Josefsson  <jas@extundo.com>
72992
72993         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72994
72995 2005-10-07  Simon Josefsson  <jas@extundo.com>
72996
72997         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72998
72999 2005-10-06  Simon Josefsson  <jas@extundo.com>
73000
73001         * tests/test-hmac-md5.c: New file.
73002
73003         * modules/hmac-md5-tests: New file.
73004
73005         * modules/hmac-md5: New file.
73006
73007 2005-10-06  Simon Josefsson  <jas@extundo.com>
73008
73009         * m4/hmac-md5.m4: New file.
73010
73011         * m4/memxor.m4: Require gl_C_RESTRICT.
73012
73013 2005-10-06  Simon Josefsson  <jas@extundo.com>
73014
73015         * lib/memxor.c (memxor): Avoid casts and warnings.
73016
73017 2005-10-06  Simon Josefsson  <jas@extundo.com>
73018
73019         * lib/hmac-md5.c: New file.
73020
73021         * lib/hmac.h: New file.
73022
73023 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73024
73025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73026         promotes to int, not unsigned int, to catch the AIX 5.3
73027         compiler bug.
73028
73029 2005-10-05  Simon Josefsson  <jas@extundo.com>
73030
73031         * modules/memxor: New file.
73032
73033         * modules/iconv (Files): Move config.rpath to havelib, it is used
73034         there.
73035
73036         * modules/havelib (Files): Add config.rpath.
73037
73038 2005-10-05  Simon Josefsson  <jas@extundo.com>
73039
73040         * m4/memxor.m4: New file.
73041
73042 2005-10-05  Simon Josefsson  <jas@extundo.com>
73043
73044         * lib/memxor.c (memxor): Fix compiler error.
73045
73046         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73047         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73048
73049         * lib/memxor.h, lib/memxor.c: New files.
73050
73051         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73052         we assume all systems have it, suggested by Jim Meyering
73053         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73054         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73055         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73056         same reasons.
73057
73058 2005-10-05  Simon Josefsson  <jas@extundo.com>
73059
73060         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73061
73062 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73065         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73066         needed, since the source code now assumes these .h files.
73067
73068 2005-10-05  Derek Price  <derek@ximbiot.com>
73069
73070         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73071
73072 2005-10-05  Bruno Haible  <bruno@clisp.org>
73073
73074         * modules/stdint (License): Change to LGPL.
73075
73076 2005-10-04  Simon Josefsson  <jas@extundo.com>
73077
73078         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73079         D. Baushke" <mdb@gnu.org>.
73080
73081 2005-10-04  Bruno Haible  <bruno@clisp.org>
73082
73083         * lib/verify.h (verify_true): Provide alternative definition for C++.
73084
73085 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73088         (SSIZE_MAX): New macro, if not already defined.
73089         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73090         than 2 GiB.
73091
73092 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73093
73094         Sync from coreutils.
73095         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73096         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73097         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73098         ULLONG_MAX doesn't work with 2.7.2.1.
73099
73100 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73103         From Ben Pfaff.
73104
73105         * modules/exclude (Depends-on): Depend on verify.
73106         * modules/strtoimax (Depends-on): Likewise.
73107         * modules/utimecmp (Depends-on): Likewise.
73108
73109 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73110
73111         * lib/exclude.c: Include verify.h.
73112         (verify): Remove.  All callers changed to use verify.h's version.
73113         * lib/strtoimax.c: Likewise.
73114         * lib/utimecmp.c: Likewis.e
73115
73116         Sync from coreutils.
73117         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73118         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73119         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73120         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73121         bother returning ENOSYS if settimeofday or stime fails; just let
73122         them return whatever errno they want to return.
73123         * lib/utimens.c: Include unistd.h, for dup2.
73124         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73125         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73126
73127 2005-10-02  Jim Meyering  <jim@meyering.net>
73128
73129         Sync from coreutils.
73130         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73131         from glibc-2.2.5 that fails for read-only files.
73132
73133 2005-10-02  Jim Meyering  <jim@meyering.net>
73134
73135         Sync from coreutils.
73136         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73137         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73138         `#if HAVE_CONFIG_H'.
73139         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73140         Remove AT_FDCWD test.
73141         Do not consume the fd unless successful.
73142         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73143         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73144         block, so that we don't even try to compile it if settimeofday is
73145         available.  This works around a compilation failure on OSF1 V5.1,
73146         due to stime requiring a `long int*' while tv_sec is `int'.
73147
73148 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73149
73150         Sync from coreutils.
73151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73152         against `yes', rather than just testing for nonempty.
73153
73154 2005-10-01  Simon Josefsson  <jas@extundo.com>
73155
73156         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73157         and Darwin.
73158
73159         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73160         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73161         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73162         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73163         Check if struct addrinfo is declared.
73164
73165 2005-10-01  Simon Josefsson  <jas@extundo.com>
73166
73167         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73168         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73169         AI_* and EAI_* definitions.  Protect function declarations.
73170
73171 2005-10-01  Jim Meyering  <jim@meyering.net>
73172
73173         Sync from coreutils.
73174
73175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73176         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73177         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73179         in the inet and nsl libraries.  Required on Solaris 5.7.
73180
73181 2005-10-01  Jim Meyering  <jim@meyering.net>
73182
73183         Sync from coreutils.
73184         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73185         in the inet and nsl libraries.  Required on Solaris 5.7.
73186
73187 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73188
73189         * lib/getdelim.c (getdelim): Remove unused variables.
73190
73191 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73194         so that the code works even with ancient cpp.  Portability problem
73195         with GCC 2.7.2.1 reported by Thomas M.Ott.
73196
73197 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * modules/regex (Depends-on): Add strcase.
73200
73201         * modules/gethostname (Licence): Change from GPL to LGPL, since
73202         gethostname.c is a trivial implementation of a standard library
73203         function.
73204         * modules/poll (License): Change from GPL to LGPL, since it's
73205         derived from LGPL code.
73206
73207 2005-09-27  Jim Meyering  <jim@meyering.net>
73208
73209         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73210         HAVE_CONFIG_H.
73211
73212         * lib/intprops.h (signed_type_or_expr__): Define.
73213         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73214         for unsigned types.
73215
73216 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73217
73218         * lib/verify.h (verify_expr): Remove, replacing with:
73219         (verify_true): New macro that returns true instead of void.
73220         (verify_type__): Remove.
73221         (verify): Use verify_true rather than verify_type__.
73222
73223 2005-09-26  Bruno Haible  <bruno@clisp.org>
73224
73225         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73226         is necessary.
73227         (lib_SOURCES): Remove mbchar.c.
73228         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73229         (Files): Add m4/mbrtowc.m4.
73230         * modules/mbiter: Likewise.
73231         * modules/mbuiter: Likewise.
73232
73233 2005-09-26  Bruno Haible  <bruno@clisp.org>
73234
73235         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73236         compile mbchar.c if they are not both present.
73237         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73238         * m4/mbiter.m4 (gl_MBITER): Likewise.
73239         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73240         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73241         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73242
73243 2005-09-25  Jim Meyering  <jim@meyering.net>
73244
73245         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73246         also uses socklen_t.
73247
73248 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         * lib/utimens.c (ENOSYS): Define if not already defined.
73251         (futimens): Support having a null PATH if the file descriptor
73252         is nonnegative.
73253
73254         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73255         Remove.
73256         (__attribute): Define to empty unless GCC 3.1 or later.
73257         This works around a core dump on OpenBSD 3.4, which has GCC
73258         2.95.3, which dumps core when given __attribute__(()).  It also
73259         simplifies other tests, since we really don't want to bother with
73260         worrying about which ancient version of GCC supported what.
73261         Original problem reported by Yoann Vandoorselaere, with part of
73262         the fix suggested by Derek Price.
73263
73264 2005-09-24  Jim Meyering  <jim@meyering.net>
73265
73266         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73267         so we can once again use a positive bitfield width of 1 -- now we
73268         don't have to explain why we were using a bitfield width of 2.
73269
73270 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73273         and similarly for the other external symbols.  Problem reported
73274         by James Gallager.
73275
73276         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73277         bug reported by Jim Meyering.
73278
73279         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73280         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73281         not needed, since socklen is a prerequisite module.
73282
73283 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73286         Problem reported by Eric Blake.
73287         (getaddrinfo): Initialize se so that it's not garbage.
73288         Redo internal storage allocation so that it doesn't make unportable
73289         assumptions about alignment.
73290         Fix a memory leak.
73291
73292         * lib/utimens.c (futimens): Use futimesat if available.
73293         Prefer it to futimes since it doesn't have the futimes bug.
73294
73295         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73296         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73297         Instead, declare a function that returns a pointer to an array,
73298         and use verify_type__ to declare the size of the array.
73299         Problem and germ of a solution reported by Bruno Haible.
73300         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73301         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73302
73303 2005-09-23  Jim Meyering  <jim@meyering.net>
73304
73305         Sync from coreutils.
73306         Correct build failure (socklen_t not defined) on at least
73307         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73309
73310 2005-09-23  Jim Meyering  <jim@meyering.net>
73311
73312         * modules/getaddrinfo (Depends-on): Add socklen.
73313
73314 2005-09-23  Bruno Haible  <bruno@clisp.org>
73315
73316         * tests/test-verify.c: New file.
73317
73318 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         Sync from coreutils.
73321
73322         * modules/argmatch (Depends-on): Add verify.
73323         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73324         unistd-safer.
73325         * modules/save-cwd (Depends-on): Likewise.
73326
73327         * modules/openat (Files): Add lib/openat-die.c.
73328         (Depends-on): Remove error, exitfail.
73329         Add dirname.
73330
73331         * modules/verify: New file.
73332         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73333         with "verify" module.
73334
73335 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         Sync from coreutils.
73338
73339         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73340         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73341         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73342         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73343         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73344         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73345         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73346         Don't bother checking for string.h, stdlib.h, unistd.h.
73347         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73348         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73349         module's job.
73350         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73351         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73352
73353         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73354         (gl_GETDATE): Use it.
73355
73356         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73357
73358 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         Sync from coreutils.
73361
73362         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73363         stat-time.h.
73364         * lib/argmatch.h: Include verify.h
73365         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73366         (ARGMATCH_ASSERT): Remove; unused.
73367         * lib/canonicalize.c: Assume STDC_HEADERS.
73368         * lib/exclude.c: Include "strcase.h".
73369         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73370         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73371         and stdio-safer.h.
73372         (getusershell): Call fopen, not fopen_safer.
73373         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73374         Do not include unistd-safer.h.
73375         (save_cwd): Don't call fd_safer; no longer needed
73376         now that we include fcntl--.h.
73377
73378         * lib/getdate.y (relative_time): New type.
73379         (RELATIVE_TIME_0): New constant.
73380         (parser_control): Use relative_time instead of doing it ourselves.
73381         (%union): Add new relative_time rel member.
73382         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73383         Now typeless.
73384         (relunit, relunit_snumber): Now of type rel.
73385         (zone, rel, relunit, get_date): Adjust to above changes.
73386
73387         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73388         Do not include unistd-safer.h.
73389         (getloadavg): Don't call fd_safer; no longer needed
73390         now that we include fcntl--.h.
73391
73392         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73393         (make_dir_parents): Treat ENOSYS like EEXIST.
73394
73395         Improve quality of diagnostics on restore_cwd failure.
73396         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73397         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73398         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73399         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73400         each time through the loop.  Do not diagnose restore_cwd failure;
73401         that is the caller's job (and perhaps the caller does not care).
73402
73403         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73404         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73405         If the file already exists but is not a directory, don't bother
73406         to try to make its parents.
73407         Close potential file descriptor leak if we can't chdir("/") (!).
73408         Don't always return true if chdir($PWD) fails; return true only
73409         if the requested action was done successfully (except for the
73410         chdir($PWD)).
73411         Don't log final directory unless we actually made it.
73412         Refactor to avoid duplicate code to fix up permissions.
73413         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73414
73415         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73416         to make it a bit faster and (I hope) clearer.
73417         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73418         Fix bug in formats like %2N.
73419
73420         * lib/verify.h: New file.
73421
73422 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         Sync from coreutils.
73425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73426
73427 2005-09-22  Jim Meyering  <jim@meyering.net>
73428
73429         Sync from coreutils.
73430
73431         * m4/lstat.m4 (gl_FUNC_LSTAT):
73432         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73433         Remove obsolete comment.
73434         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73435         * m4/xstrtod.m4: Likewise.
73436
73437         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73438
73439 2005-09-22  Jim Meyering  <jim@meyering.net>
73440
73441         Sync from coreutils.
73442
73443         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73444
73445         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73446         the .tm_year member, since otherwise gcc-4.0 would now warn about
73447         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73448
73449         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73450         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73451
73452         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73453         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73454         when run in a time zone for which daylight savings time is in effect
73455         for the starting date.
73456
73457         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73458         stop us from restricting permissions of just-created absolute-named
73459         directories.
73460         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73461         to restore initial working directory.
73462         * lib/mkdir-p.c (make_dir_parents): New parameter:
73463         different_working_dir, to tell caller if/when we change the working
73464         directory and are unable to return to the initial one.
73465         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73466         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73467         `return false'.  This fixes a bug introduced on 2004-07-30.
73468
73469         * lib/openat.c (fdopendir): Be sure to close the supplied
73470         file descriptor before returning.  This makes our replacement
73471         implementation a little closer to Solaris's, where fdopendir
73472         ties the file descriptor to the returned DIR* pointer.
73473         * lib/openat.c (unlinkat): New function.
73474         * lib/openat.h (unlinkat): Add prototype.
73475         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73476         (openat_restore_fail): Rename from openat_restore_die.
73477         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73478
73479         Provide an alternative to exiting immediately upon save_cwd or
73480         restore_cwd failure.  Now, an application can arrange e.g.,
73481         to perform a longjump in that case.
73482         * lib/openat.c: Include dirname.h.
73483         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73484         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73485         and openat_restore_die rather than calling error directly.
73486         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73487
73488         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73489         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73490         define.
73491
73492         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73493         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73494                             int utc, int nanoseconds);
73495         Background:
73496         date should not have to allocate a megabyte of virtual memory to
73497         handle a format argument like +%1048575T.  When implemented with
73498         strftime, it must allocate such a buffer, use strftime to fill it
73499         in, print it, then free it.
73500         With fprintftime, it simply prints everything and exits.
73501         With no need for memory allocation, that's one fewer way to fail.
73502         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73503         optional field width, not before, so we accept %9:z, not %:9z.
73504         (my_strftime): Be sure to use L_('x') for literals.
73505
73506         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73507         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73508         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73509         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73510         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73511         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73512         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73513         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73514         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73515         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73516         * lib/xgethostname.c, lib/xreadlink.c:
73517         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73518
73519         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73520         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73521         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73522         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73523         and don't include <sys/file.h>).
73524
73525 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73526
73527         Sync from coreutils.
73528
73529         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73530         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73531         [!LDAV_DONE]: Avoid unused variable warning.
73532
73533 2005-09-21  Bruno Haible  <bruno@clisp.org>
73534
73535         * lib/unicodeio.h (unicode_to_mb): New declaration.
73536
73537 2005-09-20  Derek Price  <derek@ximbiot.com>
73538
73539         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73540         getaddrinfo.h.
73541
73542 2005-09-20  Bruno Haible  <bruno@clisp.org>
73543
73544         * gnulib-tool: Remove trailing slashes from the values specified for
73545         --source-base, --m4-base, --tests-base, --aux-dir.
73546         Suggested by Simon Josefsson <jas@extundo.com>.
73547
73548 2005-09-20  Bruno Haible  <bruno@clisp.org>
73549
73550         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73551         func_modules_to_filelist, func_import, func_create_testdir): Make all
73552         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73553         change when gnulib-tool is invoked in a different locale.
73554
73555 2005-09-19  Simon Josefsson  <jas@extundo.com>
73556
73557         * m4/socklen.m4: Fix typo.
73558
73559 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73560
73561         Use a consistent style for including <config.h>.
73562         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73563         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73564         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73565         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73566         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73567         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73568         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73569         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73570         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73571         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73572         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73573         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73574         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73575         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73576         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73577         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73578         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73579         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73580         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73581         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73582         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73583         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73584         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73585         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73586         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73587         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73588         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73589         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73590         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73591         lib/xstrtoumax.c, lib/yesno.c:
73592         Standardize inclusion of config.h.
73593         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73594         lib/inttostr.h:  Removed inclusion of config.h from header files.
73595         * lib/inttostr.c:  Adjusted in-tree users.
73596         * lib/timespec.h: Remove superfluous warning to include config.h.
73597         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73598         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73599         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73600         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73601         config.h with HAVE_CONFIG_H.
73602
73603 2005-09-19  Jim Meyering  <jim@meyering.net>
73604
73605         * modules/pathmax (License): Change to LGPL.
73606
73607 2005-09-19  Derek Price  <derek@ximbiot.com>
73608
73609         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73610
73611 2005-09-19  Bruno Haible  <bruno@clisp.org>
73612
73613         * gnulib-tool (import): Provide default for --tests-base.
73614
73615 2005-09-19  Bruno Haible  <bruno@clisp.org>
73616
73617         * doc/quote.texi: New file, extracted from gnulib.texi.
73618         * doc/ctime.texi: New file, extracted from gnulib.texi.
73619         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73620         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73621         * doc/gnulib.texi: Include them.
73622
73623 2005-09-18  Bruno Haible  <bruno@clisp.org>
73624
73625         Portability fix.
73626         * gnulib-tool (func_readlink): New function.
73627         (func_ln_if_changed): Use it.
73628
73629 2005-09-18  Bruno Haible  <bruno@clisp.org>
73630
73631         * gnulib-tool: Support --with-tests also with --import.
73632         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73633         (func_import): Use variables $testsbase and $inctests. Emit a
73634         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73635         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73636         SUBDIRS += $testsdir.
73637         (func_create_testdir): Update.
73638
73639 2005-09-18  Bruno Haible  <bruno@clisp.org>
73640
73641         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73642         instead of $dry_run.
73643         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73644         (func_ln_if_changed): Don't handle dry-run here.
73645         (func_import): In dry-run mode, detect more precisely which actions
73646         would be performed, and don't use "...ing" verbs.
73647
73648 2005-09-18  Bruno Haible  <bruno@clisp.org>
73649
73650         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73651         (func_import): Use join on two temporary files instead of three nested
73652         loops, in order to determine which files are new or old.
73653
73654 2005-09-18  Bruno Haible  <bruno@clisp.org>
73655
73656         * gnulib-tool (func_import): Comment out code that spits out the
73657         new files with --dry-run.
73658
73659 2005-09-18  Bruno Haible  <bruno@clisp.org>
73660
73661         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73662
73663 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         * lib/stat-time.h: New file.
73666         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73667         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73668         in a different way.
73669         (timespec_cmp): New function.
73670         * lib/utimecmp.c: Include stat-time.h.
73671         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73672         members exist, not on the obsolescent ST_MTIM_NSEC.
73673         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73674
73675 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73678
73679 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * MODULES.html.sh (File system functions): Add stat-time.
73682         * modules/stat-time: New file.
73683         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73684         is now done in a different way, by the stat-time module.
73685         * modules/utimecmp (Depends-on): Add stat-time.
73686
73687 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73688
73689         * m4/st_mtim.m4: Remove.  Superseded by...
73690         * m4/stat-time.m4: New file.
73691         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73692         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73693
73694 2005-09-15  Derek Price  <derek@ximbiot.com>
73695
73696         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73697
73698 2005-09-15  Derek Price  <derek@ximbiot.com>
73699
73700         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73701         * lib/regex_internal.c: Ditto, using this...
73702         (__GNUC_PREREQ): ...new macro.
73703         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73704         using...
73705         (__GNUC_PREREQ): ...this new macro.
73706
73707         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73708
73709 2005-09-15  Derek Price  <derek@ximbiot.com>
73710             Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73713         changes, consolidating in...
73714         * lib/regex_internal.h: ...this file.
73715
73716 2005-09-13  Jim Meyering  <jim@meyering.net>
73717
73718         * lib/canon-host.c: Filter through gnu indent and reword comments
73719         slightly.
73720         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73721
73722 2005-09-13  Derek Price  <derek@ximbiot.com>
73723
73724         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73725         failure.
73726         Reported by Jim Meyering  <jim@meyering.net>.
73727
73728 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73729
73730         * lib/base64.c: Typo.
73731         (base64_encode): Put b64str in initialized data section.
73732
73733 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         Merge glibc and coreutils changes into gnulib, plus a few
73736         extra fixes.
73737         * lib/md5.c: Use #error rather than a string.
73738         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73739         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73740         (__attribute__): Define to empty for non recent-GCC.
73741         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73742         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73743         Renamed from their non-__ counterparts, with new macros replacing
73744         them if not _LIBC.  Add __THROW attribute.
73745         (rol): Remove.
73746         (struct md5_ctx): Align buffer if using GCC.
73747         * lib/sha1.h (struct sha1_ctx): Likewise.
73748         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73749         The old name was backwards.
73750         (NOTSWAP): Remove; not used.
73751         (rol): New macro, moved here from md5.h.
73752         (sha1_process_block): Remove a FIXME that doesn't make sense.
73753
73754 2005-09-12  Derek Price  <derek@ximbiot.com>
73755
73756         Return usable errors from canon-host.
73757         * lib/canon-host.h: New file.
73758         * lib/canon-host.c (canon_host): Wrap...
73759         (canon_host_r): ...this new function, which now relies exclusively on
73760         getaddrinfo.
73761         (ch_strerror): New function.
73762         (last_cherror): New global.
73763         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73764         interface.
73765         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73766         void *.
73767         (freeaddrinfo): Free ai->ai_canonname when set.
73768
73769 2005-09-12  Derek Price  <derek@ximbiot.com>
73770
73771         Make canon-host require getaddrinfo.
73772         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73773         AC_LIBSOURCE canon-host.h.  Call...
73774         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73775         gl_GETADDRINFO.
73776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73777
73778 2005-09-12  Derek Price  <derek@ximbiot.com>
73779
73780         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73781         LGPL.
73782         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73783
73784 2005-09-12  Derek Price  <derek@ximbiot.com>
73785
73786         * lib/gai_strerror.c: Include config.h when available.  Include
73787         getaddrinfo.h before other headers to test interface.
73788         Reported by Larry Jones <lawrence.jones@ugs.com>.
73789
73790 2005-09-12  Derek Price  <derek@ximbiot.com>
73791             Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * modules/glob (Files): Add glob-libc.h.
73794
73795 2005-09-12  Derek Price  <derek@ximbiot.com>
73796             Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73799         glob_.h, glob-libc.h.
73800         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73801
73802 2005-09-12  Derek Price  <derek@ximbiot.com>
73803             Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73806         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73807         protecting things that should be done only in gnulib contexts.
73808         * lib/glob_.h: New file, containing only the glob things needed for
73809         gnulib.
73810         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73811         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73812         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73813         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73814         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73815         and to respect the namespace rules better.
73816
73817 2005-09-08  Simon Josefsson  <jas@extundo.com>
73818
73819         * modules/socklen: New file.
73820
73821 2005-09-08  Simon Josefsson  <jas@extundo.com>
73822
73823         * m4/socklen.m4: New file.
73824
73825 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * modules/utimens (Files): Add m4/utimbuf.m4, since
73828         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73829         Reported by Sergey Poznyakoff.
73830
73831 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73834         definitions, since that's the preferred style in glibc.
73835         Fix a minor spacing issue, and update copyright notice to match
73836         glibc's.
73837
73838 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73841
73842 2005-09-06  Simon Josefsson  <jas@extundo.com>
73843
73844         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73845         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73846
73847 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73850         warning.
73851
73852 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * config/srclist.txt: Add glibc bug 1302.
73855
73856 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         Change bitset word type from unsigned int to unsigned long int,
73859         as this has better performance on typical 64-bit hosts.
73860         Port bitset code to hosts with unusual word sizes.
73861         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73862         (build_collating_symbol):
73863         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73864         argument is a bitset.  This is merely a style issue, but it makes
73865         it clearer that an entire array is expected.
73866         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73867         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73868         Port to the case where bitset_word is not the same as unsigned int.
73869         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73870         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73871         Likewise.
73872         * lib/regexec.c (check_dst_limits_calc_pos_1,
73873         check_subexp_matching_top):
73874         (build_trtable, group_nodes_into_DFAstates):
73875         Likewise.
73876         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73877         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73878         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73879         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73880         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73881         * lib/regcomp.c (optimize_subexps, lower_subexp):
73882         Work even if bitset_word has holes in its bitwise representation.
73883         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73884         * lib/regexec.c (check_dst_limits_calc_pos_1,
73885         check_subexp_matching_top):
73886         Likewise.
73887         * lib/regex_internal.c (re_string_reconstruct):
73888         Don't assume UCHAR_MAX == 255.
73889         * lib/regex_internal.h (bitset_set_all): Likewise.
73890         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73891         All uses changed.
73892         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73893         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73894         All uses changed.
73895         (BITSET_WORD_MAX): New macro.
73896         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73897         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73898         (bitset_empty, bitset_copy):
73899         Prefer sizeof (bitset) to multiplying it out ourselves.
73900         (bitset_not_merge): Remove; unused.
73901         (bitset_contain): Return bool, not unsigned int with one bit on.
73902         All callers changed.
73903         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73904         alignment than re_node_set; do this by defining a new internal
73905         type struct dests_alloc and using it to allocate memory.
73906
73907 2005-09-05  Bruno Haible  <bruno@clisp.org>
73908
73909         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73910         links.
73911
73912 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73913
73914         * modules/size_max (Makefile.am): Add size_max.h
73915
73916 2005-09-04  Derek Price  <derek@ximbiot.com>
73917
73918         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73919
73920 2005-09-03  Simon Josefsson  <jas@extundo.com>
73921
73922         * gnulib-tool: Fix typo.
73923
73924 2005-09-03  Simon Josefsson  <jas@extundo.com>
73925
73926         * config/srclist.txt: Add glibc bug 1293.
73927
73928 2005-09-03  Derek Price  <derek@ximbiot.com>
73929
73930         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73931         From Larry Jones <lawrence.jones@ugs.com>.
73932
73933 2005-09-02  Simon Josefsson  <jas@extundo.com>
73934
73935         * modules/socklen: New file.
73936
73937 2005-09-02  Simon Josefsson  <jas@extundo.com>
73938
73939         * modules/havelib: New module.
73940
73941         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73942         Use havelib.
73943
73944 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         Check for arithmetic overflow when calculating sizes, to prevent
73947         some buffer-overflow issues.  These patches are conservative, in the
73948         sense that when I couldn't determine whether an overflow was possible,
73949         I inserted a run-time check.
73950         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73951         macros.
73952         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73953         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73954         (re_xnrealloc, re_x2nrealloc): New inline functions.
73955         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73956         parse_bracket_exp):
73957         (build_equiv_class, build_charclass): Check for arithmetic overflow
73958         in size expression calculations.
73959         * lib/regex_internal.c (re_string_realloc_buffers):
73960         (build_wcs_upper_buffer, re_node_set_add_intersect):
73961         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73962         (re_dfa_add_node, register_state): Likewise.
73963         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73964         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73965         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73966         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73967
73968 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73971         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73972
73973 2005-09-02  Bruno Haible  <bruno@clisp.org>
73974
73975         Support for lib vs. lib64 distinction on biarch platforms.
73976         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73977         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73979
73980 2005-09-02  Bruno Haible  <bruno@clisp.org>
73981
73982         * gnulib-tool (import): In the other first-use case, provide defaults
73983         as well.
73984
73985 2005-09-02  Bruno Haible  <bruno@clisp.org>
73986
73987         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73988         patches not yet found in the latest gettext release.
73989
73990 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73991
73992         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73993         to avoid a collision with bits/local_lim.h in glibc.
73994         All uses changed.  Problem reported by Dmitry V. Levin in
73995         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73996
73997         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73998         bugs in int versus size_t comparisons.
73999         (re_string_context_at): Fix bug where the code assumed that
74000         Idx is signed.
74001
74002         Use bool where appropriate.
74003         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74004         All callers changed.
74005         (calc_eclosure_iter): Likewise, for ROOT arg.
74006         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74007         (build_charclass_op): Likewise, for NON_MATCH arg.
74008         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74009         (re_string_construct_common): Likewise, for ICASE arg.
74010         * lib/regexec.c (re_search_2_stub, re_search_stub):
74011         Likewise, for RET_LEN arg.
74012         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74013         (set_regs): Likewise, for FL_BACKTRACK arg.
74014         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74015         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74016         (calc_eclosure_iter, parse_bracket_exp):
74017         Use bool for internal variables that are booleans.
74018         * lib/regexec.c (re_search_internal, check_matching,
74019         proceed_next_node):
74020         (set_regs, build_sifted_states, sift_states_bkref):
74021         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74022         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74023         (find_collation_sequence_value):
74024         Likewise.
74025         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74026         (re_node_set_compare):
74027         Return bool, not int. All callers changed.
74028         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74029         (build_trtable, check_node_accept): Likewise.
74030         * lib/regex_internal.h: Include stdbool.h.
74031
74032         Fix bugs uncovered when converting to bool.
74033         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74034         failure instead of charging ahead blindly.
74035         * lib/regex_internal.c (register_state): Likewise.
74036         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74037         for freeing internal storage.
74038         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74039         bitset pieces used as boolean, to avoid undefined behavior
74040         on hosts that do int overflow checking.
74041
74042 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * config/srclist.txt: Add glibc bugs 1285-1287.
74045
74046 2005-09-01  Jim Meyering  <jim@meyering.net>
74047
74048         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74049         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74050         Require gl_STAT_MACROS, too.
74051
74052 2005-09-01  Bruno Haible  <bruno@clisp.org>
74053
74054         * gnulib-tool (import): In the first-use case, provide defaults.
74055
74056 2005-09-01  Bruno Haible  <bruno@clisp.org>
74057
74058         * gnulib-tool (func_import): Remove the .tmp files.
74059
74060 2005-09-01  Bruno Haible  <bruno@clisp.org>
74061
74062         * gnulib-tool (func_import): Fix handling of symbolic links.
74063
74064 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74067         old glibc regex code mishandles strings longer than 2**31 bytes.
74068         This patch fixes this when the regex code is used in gnulib
74069         (i.e., outside glibc).
74070
74071         This patch should not affect the use of the regex code inside
74072         glibc.  No doubt this problem also needs to be handled for glibc
74073         as well, but the result will be an incompatible change to the
74074         glibc ABI, and the old ABI will have to be supported too.  That
74075         can be the the subject for another patch.
74076
74077         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74078         governing whether the rest of this patch is active.  By default,
74079         the macro is disabled and the patch has no effect.
74080         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74081         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74082         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74083         (re_match_2, re_set_registers): Use the new types.
74084         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74085         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74086         New macros.
74087         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74088         (re_string_context_at, bin_tree_t, re_dfastate_t):
74089         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74090         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74091         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74092         (re_string_char_size_at, re_string_wchar_at):
74093         (re_string_elem_size_at):
74094         Use the new types and macros to port to 64-bit hosts.
74095         Use unsigned types for internal values, so that the code
74096         mostly works even for arrays larger than SSIZE_MAX.
74097         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74098         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74099         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74100         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74101         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74102         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74103         (calc_inveclosure, parse_dup_op, build_range_exp):
74104         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74105         (fetch_number, create_token_tree, mark_opt_subexp):
74106         Likewise.
74107         * lib/regex_internal.c (re_string_construct_common,
74108         create_ci_newstate):
74109         (create_cd_newstate, re_string_allocate, re_string_construct):
74110         (re_string_realloc_buffers, build_wcs_upper_buffer):
74111         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74112         (re_string_reconstruct, re_string_peek_byte_case):
74113         (re_string_fetch_byte_case, re_string_context_at):
74114         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74115         (re_node_set_init_copy, re_node_set_add_intersect):
74116         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74117         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74118         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74119         (re_acquire_state, re_acquire_state_context, register_state):
74120         Likewise.
74121         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74122         search_cur_bkref_entry):
74123         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74124         (re_search_internal, re_search_2_stub, re_search_stub)
74125         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74126         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74127         (update_cur_sifted_state, check_dst_limits):
74128         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74129         (check_subexp_limits, sift_states_bkref, merge_state_array):
74130         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74131         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74132         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74133         (expand_bkref_cache, check_node_accept_bytes):
74134         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74135         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74136         (acquire_init_state_context, check_halt_node_context):
74137         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74138         (sift_states_backward, clean_state_log_if_needed):
74139         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74140         (find_recover_state, transit_state_sb, transit_state_mb):
74141         (transit_state_bkref, build_trtable, match_ctx_clean):
74142         Likewise.
74143         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74144         to work around an assumption that REG_MISSING is negative.
74145
74146         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74147         (seek_collating_symbol_entry) [defined _LIBC]:
74148         (lookup_collation_sequence_value) [defined _LIBC]:
74149         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74150         Use prototypes rather than old-style function definitions.
74151         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74152         (transit_state_sb) [0]:
74153         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74154
74155         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74156         rm_eo.
74157
74158         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74159         (optimize_subexps, lower_subexp):
74160         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74161         since the signed shift might overflow.  Use 1u<<31 instead.
74162         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74163         Likewise.
74164         * lib/regexec.c (check_dst_limits_calc_pos_1,
74165         check_subexp_matching_top): Likewise.
74166
74167         * lib/regcomp.c (optimize_subexps, lower_subexp):
74168         Use CHAR_BIT rather than 8, for clarity.
74169         * lib/regexec.c (check_dst_limits_calc_pos_1):
74170         (check_subexp_matching_top): Likewise.
74171         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74172         have to worry about portability issues when shifting it left.
74173         Remove no-longer-needed test for table_size > 0.
74174         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74175         in a word, as the resulting behavior is undefined.
74176         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74177         in one case, a <= should have been an <, and in another case the
74178         whole test was missing.
74179         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74180         the standard name CHAR_BIT.
74181         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74182         this is not true on one's complement and signed-magnitude hosts.
74183
74184         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74185         next_last_offset.
74186         (struct re_dfa_t): Remove unused member states_alloc.
74187         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74188
74189 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74192         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74193         and large-file glibc and in 32-bit large-file Solaris.
74194
74195 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74198         lengths fit in regoff_t; this isn't true if regoff_t is the same
74199         width as size_t.
74200         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74201         (= START + RANGE) instead of RANGE.  This avoids overflow
74202         problems when regoff_t is the same width as size_t.
74203         All callers changed.
74204         (re_search_2_stub): Check for overflow when adding the
74205         sizes of the two strings.
74206         (re_search_stub): Check for overflow when adding START
74207         to RANGE; if it occurs, substitute the extreme value.
74208
74209 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74212
74213 2005-08-31  Jim Meyering  <jim@meyering.net>
74214
74215         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74216         a pointer-to-const.
74217         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74218         (register_state): Likewise.
74219         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74220         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74221         (group_nodes_into_DFAstates): Likewise.
74222
74223 2005-08-31  Jim Meyering  <jim@meyering.net>
74224
74225         * check-module: Add a FIXME comment.
74226
74227 2005-08-31  Eric Blake  <ebb9@byu.net>
74228
74229         * modules/unistd-safer (Files): Add unistd--.h.
74230         * modules/stdio-safer (Files): Add stdio--.h.
74231
74232 2005-08-31  Derek Price  <derek@ximbiot.com>
74233
74234         * lib/getdelim.c (getdelim): Return EOF on EOF.
74235         Reported by Larry Jones <lawrence.jones@ugs.com>.
74236
74237 2005-08-31  Bruno Haible  <bruno@clisp.org>
74238
74239         Avoid unnecessary diffs in the generated lib/Makefile.am.
74240         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74241         the generated files.
74242         (func_import): Don't set cmd.
74243
74244 2005-08-31  Bruno Haible  <bruno@clisp.org>
74245
74246         * lib/strstr.c: Include <stddef.h>, for NULL.
74247         * lib/strcasestr.c: Likewise.
74248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74249
74250 2005-08-31  Bruno Haible  <bruno@clisp.org>
74251
74252         * gnulib-tool: New option --macro-prefix.
74253         (func_import): Use macro_prefix.
74254         (import): Handle option --macro-prefix.
74255
74256 2005-08-31  Bruno Haible  <bruno@clisp.org>
74257
74258         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74259         Also use new variables cached_lgpl, cached_libtool.
74260
74261 2005-08-31  Bruno Haible  <bruno@clisp.org>
74262
74263         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74264         always instantiating them.
74265
74266 2005-08-31  Bruno Haible  <bruno@clisp.org>
74267
74268         * gnulib-tool (func_import): Read the previous cached settings
74269         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74270         earlier added by gnulib but are now dropped. Warn when a gnulib file
74271         overwrites a non-gnulib file.
74272
74273 2005-08-31  Bruno Haible  <bruno@clisp.org>
74274
74275         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74276         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74277         projects that don't keep autogenerated files in CVS. Put into
74278         actioncmd only the specified modules, not the transitive closure.
74279
74280 2005-08-31  Bruno Haible  <bruno@clisp.org>
74281
74282         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74283         Create directories that shall be filled.
74284         (import): Don't look for gl_* macros in configure.ac. Recurse across
74285         all directories containing a gnulib-cache.m4 files, if meaningful.
74286
74287 2005-08-31  Bruno Haible  <bruno@clisp.org>
74288
74289         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74290         (import): Set seen_libtool when we see gl_LIBTOOL.
74291
74292 2005-08-31  Bruno Haible  <bruno@clisp.org>
74293
74294         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74295         declaration macro definitions from generated gnulib.m4.
74296
74297 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74298
74299         * lib/iconvme.h: Add prototype for iconv_alloc.
74300
74301 2005-08-29  Simon Josefsson  <jas@extundo.com>
74302
74303         * lib/iconvme.c: Fix errno.
74304
74305 2005-08-29  Bruno Haible  <bruno@clisp.org>
74306
74307         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74308         that it works when the directory contains spaces.
74309
74310 2005-08-29  Bruno Haible  <bruno@clisp.org>
74311
74312         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74313
74314 2005-08-29  Bruno Haible  <bruno@clisp.org>
74315
74316         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74317         Emit more advice.
74318
74319 2005-08-29  Bruno Haible  <bruno@clisp.org>
74320         and Stepan Kasal  <kasal@ucw.cz>
74321
74322         * check-module: If more parameters are given, check each of them
74323         separately; add more exceptions, as noted by Jim Meyering.
74324         (check_module): New procedure.
74325         (%exempt_header): Now contains all exceptions.
74326
74327 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74328
74329         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74330
74331 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74332
74333         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74334
74335 2005-08-28  Bruno Haible  <bruno@clisp.org>
74336
74337         * m4/gnulib-tool.m4: New file.
74338
74339 2005-08-27  Jim Meyering  <jim@meyering.net>
74340
74341         * modules/unistd-safer (Files): Add pipe-safer.c.
74342         * modules/fcntl-safer (Files): Add creat-safer.c.
74343
74344 2005-08-27  Jim Meyering  <jim@meyering.net>
74345
74346         * m4/stdlib-safer.m4: New file.  From coreutils.
74347         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74349         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74350         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74351         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74352
74353 2005-08-27  Jim Meyering  <jim@meyering.net>
74354
74355         * lib/fopen-safer.c: Merge minor changes from coreutils.
74356         * lib/dup-safer.c: Likewise.
74357         * lib/fd-safer.c: Likewise.
74358
74359         Merge from coreutils.
74360         * lib/stdio--.h: New file.
74361         * lib/stdlib--.h: New file.
74362         * lib/mkstemp-safer.c: New file.
74363
74364         GNU tar needs these.
74365         * lib/pipe-safer.c: New file.
74366         * lib/creat-safer.c: New file.
74367         * lib/fcntl--.h (creat): Define to creat_safer.
74368         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74369         * lib/unistd--.h (pipe): Define to pipe_safer.
74370         * lib/unistd-safer.h: Declare pipe_safer.
74371
74372 2005-08-26  Simon Josefsson  <jas@extundo.com>
74373
74374         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74375         Haible <bruno@clisp.org>.
74376
74377 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * lib/regex_internal.h: Remove all references to
74380         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74381         or better.
74382         (bitset_not, bitset_merge, bitset_not_merge):
74383         (bitset_mask, re_string_allocate, re_string_construct):
74384         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74385         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74386         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74387         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74388         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74389         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74390         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74391         (re_acquire_state_context):
74392         Remove unnecessary forward decls.
74393         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74394         Put __attribute at function definition,
74395         now that the function decl has been removed.
74396         * lib/regex_internal.c (re_string_peek_byte_case):
74397         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74398         Likewise.
74399
74400 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74401
74402         * m4/regex.m4: Add AC_PREREQ(2.50).
74403         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74404
74405 2005-08-25  Simon Josefsson  <jas@extundo.com>
74406
74407         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74408         __fsetlocking.
74409
74410 2005-08-25  Simon Josefsson  <jas@extundo.com>
74411
74412         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74413         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74414         GLIBC specific code.
74415
74416 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         Make regex safe for g++.  This fixes one real bug (an "err"
74419         that should have been "*err").  g++ problem reported by
74420         Sam Steingold.
74421         * lib/regex_internal.h (re_calloc): New macro, consistent with
74422         re_malloc etc.  All callers of calloc changed to use re_calloc.
74423         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74424         not int.  All callers changed.
74425         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74426         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74427         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74428         (find_recover_state): Change "err" to "*err"; this fixes what
74429         appears to be a real bug.
74430         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74431         versus int.
74432
74433 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * modules/regex (Depends-on): Add malloc, since the code
74436         assumes that !malloc(0) means failure.
74437
74438 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74441
74442         alloca modernization/simplification for regex.
74443         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74444         needs to be at the start of the file, and can be moved into
74445         regex_internal.h and simplified.
74446         * lib/regex_internal.h: Include <alloca.h>.
74447         (__libc_use_alloca) [!defined _LIBC]: New macro.
74448         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74449         now works outside glibc.
74450
74451 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         * config/srclist.txt: Add glibc bugs 1241, 1245.
74454
74455 2005-08-25  Jim Meyering  <jim@meyering.net>
74456
74457         * lib/open-safer.c: Include <config.h>.
74458         Otherwise, we'd lose LARGEFILE support in any file using
74459         e.g. "fcntl--.h"
74460
74461 2005-08-25  Bruno Haible  <bruno@clisp.org>
74462
74463         * m4/minmax.m4: Require autoconf 2.52.
74464         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74465         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74466         alternatives of translit over the alphabet.
74467         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74468
74469 2005-08-24  Simon Josefsson  <jas@extundo.com>
74470
74471         * tests/test-getpass.c: New file.
74472
74473 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74476         for GNU regex features.
74477
74478 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74481         * lib/regex.h (regerror): Likewise.
74482
74483         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74484         requires this.  (The code never needed it.)
74485
74486         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74487         All uses of recently-renamed identifiers changed to use the new,
74488         POSIX-compliant names.  The code will build and run just fine
74489         without these changes, but it's better to eat our own dog food
74490         and use the standard-conforming names.
74491
74492         * lib/regex.h: Fix a multitude of POSIX name space violations.
74493         These changes have an effect only for programs that define
74494         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74495         do not change anything for programs compiled in the normal way.
74496         Also, there is no effect on the ABI.
74497
74498         (_REGEX_SOURCE): New macro.
74499         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74500         defined and _GNU_SOURCE is not; this fixes a name space violation.
74501
74502         Rename the following macros to obey POSIX requirements.
74503         The old names are still visible as macros if _REGEX_SOURCE is defined.
74504         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74505         RE_BACKSLASH_ESCAPE_IN_LISTS.
74506         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74507         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74508         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74509         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74510         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74511         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74512         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74513         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74514         (REG_INTERVALS): renamed from RE_INTERVALS.
74515         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74516         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74517         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74518         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74519         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74520         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74521         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74522         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74523         RE_UNMATCHED_RIGHT_PAREN_ORD.
74524         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74525         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74526         (REG_DEBUG): renamed from RE_DEBUG.
74527         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74528         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74529         unusual, since we can't clash with the POSIX REG_ICASE.
74530         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74531         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74532         (REG_NO_SUB): renamed from RE_NO_SUB.
74533         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74534         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74535         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74536         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74537         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74538         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74539         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74540         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74541         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74542         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74543         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74544         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74545         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74546         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74547         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74548         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74549         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74550         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74551         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74552         (REG_FIXED): Renamed from REGS_FIXED.
74553         (REG_NREGS): Renamed from RE_NREGS.
74554
74555         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74556         of other REG_* macros, since POSIX says the user is allowed to
74557         #undef these macros selectively.
74558
74559         (reg_errcode_t): Update comment stating what other tables need
74560         to be consistent.
74561
74562         Rename the following enum values to obey POSIX requirements.
74563         The old names are still visible as macros.
74564         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74565         is not defined, since GNU is supposed to be a superset of POSIX as
74566         much as possible, and since we want reg_errcode_t to be a signed
74567         type for implementation consistency.
74568         (_REG_NOERROR): Renamed from REG_NOERROR.
74569         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74570         (_REG_BADPAT): Renamed from REG_BADPAT.
74571         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74572         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74573         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74574         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74575         (_REG_EBRACK): Renamed from REG_EBRACK.
74576         (_REG_EPAREN): Renamed from REG_EPAREN.
74577         (_REG_EBRACE): Renamed from REG_EBRACE.
74578         (_REG_BADBR): Renamed from REG_BADBR.
74579         (_REG_ERANGE): Renamed from REG_ERANGE.
74580         (_REG_ESPACE): Renamed from REG_ESPACE.
74581         (_REG_BADRPT): Renamed from REG_BADRPT.
74582         (_REG_EEND): Renamed from REG_EEND.
74583         (_REG_ESIZE): Renamed from REG_ESIZE.
74584         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74585         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74586         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74587         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74588         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74589
74590         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74591         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74592         changed.  But support the old name if the new one is not defined
74593         and if _REGEX_SOURCE.
74594
74595         Change the following member names in struct re_pattern_buffer.
74596         The old names are still supported if !_REGEX_SOURCE.
74597         The new names are always supported, regardless of _REGEX_SOURCE.
74598         (re_buffer): Renamed from buffer.
74599         (re_allocated): Renamed from allocated.
74600         (re_used): Renamed from used.
74601         (re_syntax): Renamed from syntax.
74602         (re_fastmap): Renamed from fastmap.
74603         (re_translate): Renamed from translate.
74604         (re_can_be_null): Renamed from can_be_null.
74605         (re_regs_allocated): Renamed from regs_allocated.
74606         (re_fastmap_accurate): Renamed from fastmap_accurate.
74607         (re_no_sub): Renamed from no_sub.
74608         (re_not_bol): Renamed from not_bol.
74609         (re_not_eol): Renamed from not_eol.
74610         (re_newline_anchor): Renamed from newline_anchor.
74611
74612         Change the following member names in struct re_registers.
74613         The old names are still supported if !_REGEX_SOURCE.
74614         The new names are always supported, regardless of _REGEX_SOURCE.
74615         (rm_num_regs): Renamed from num_regs.
74616         (rm_start): Renamed from start.
74617         (rm_end): Renamed from end.
74618
74619         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74620         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74621         Prepend __ to parameter names.
74622
74623         Undo yesterday's changes.
74624
74625 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74628         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74629         lib/regex.c.
74630
74631 2005-08-24  Jim Meyering  <jim@meyering.net>
74632
74633         Sync from coreutils.
74634         * m4/fcntl-safer.m4: New file.
74635
74636         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74637         and object files for this module.
74638
74639 2005-08-24  Jim Meyering  <jim@meyering.net>
74640
74641         Sync from coreutils.
74642         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74643
74644 2005-08-24  Jim Meyering  <jim@meyering.net>
74645
74646         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74647         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74648
74649 2005-08-24  Jim Meyering  <jim@meyering.net>
74650
74651         * modules/fcntl-safer: New module.
74652         * modules/fts (Depends-on): Add fcntl-safer.
74653         * MODULES.html.sh (File descriptor based Input/Output):
74654         Add fcntl-safer.
74655
74656 2005-08-24  Bruno Haible  <bruno@clisp.org>
74657
74658         Support for unit test modules.
74659         * modules/README: Mention tests modules.
74660         * modules/TEMPLATE-TESTS: New file.
74661         * gnulib-tool: New options --extract-tests-module, --with-tests and
74662         --tests-base (unused for the moment).
74663         (testsbase, inctests): New variables.
74664         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74665         (func_verify_module): Exclude TEMPLATE-TESTS.
74666         (func_verify_nontests_module, func_verify_tests_module): New functions.
74667         (func_get_dependencies): Add implicit dependency for tests modules.
74668         (func_get_tests_module): New function.
74669         (func_modules_transitive_closure): When --with-tests was specified,
74670         include the unit tests as well, unless explicitly avoided.
74671         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74672         (func_emit_tests_Makefile_am): New function.
74673         (func_create_testdir): When --with-tests was specified, emit a
74674         tests/ directory.
74675         * MODULES.html.sh (Future developments): Update.
74676
74677 2005-08-24  Bruno Haible  <bruno@clisp.org>
74678
74679         * modules/tls-tests: New file.
74680         * tests/test-tls.c: New file, from GNU gettext.
74681
74682 2005-08-24  Bruno Haible  <bruno@clisp.org>
74683
74684         * modules/lock-tests: New file.
74685         * tests/test-lock.c: New file, from GNU gettext.
74686
74687 2005-08-24  Bruno Haible  <bruno@clisp.org>
74688
74689         * lib/lock.h: Add multiple inclusion guard.
74690         * lib/tls.h: Add multiple inclusion guard.
74691
74692 2005-08-24  Bruno Haible  <bruno@clisp.org>
74693
74694         * gnulib-tool: Add support for the --aux-dir option to
74695         --create-testdir, --create-megatestdir, --test, --megatest.
74696         (func_create_testdir, func_create_megatestdir): Optionally emit a
74697         AC_CONFIG_AUX_DIR directive.
74698         (create-testdir, create-megatestdir, test, megatest): Provide a
74699         default value for $auxdir.
74700
74701 2005-08-24  Bruno Haible  <bruno@clisp.org>
74702
74703         * gnulib-tool (import): Use compound statement instead of subshell
74704         where possible.
74705
74706 2005-08-24  Bruno Haible  <bruno@clisp.org>
74707
74708         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74709
74710 2005-08-24  Bruno Haible  <bruno@clisp.org>
74711
74712         * gnulib-tool (func_version): Update.
74713
74714 2005-08-24  Bruno Haible  <bruno@clisp.org>
74715
74716         * gnulib-tool (func_import, func_create_testdir,
74717         func_create_megatestdir): Quote all autoconf macro arguments.
74718
74719 2005-08-24  Bruno Haible  <bruno@clisp.org>
74720
74721         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74722         option --force, because --force causes the aclocal.m4 of each
74723         subdirectory to be newer than the corresponding config.h.in.
74724
74725 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74728         All contents moved to gl_REGEX.
74729         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74730         assume that it does.
74731
74732 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * lib/regex.h (REG_NOSYS)
74735         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74736         Define, since POSIX requires it as of 2001.
74737         (_REG_ENOSYS)
74738         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74739         New private symbol, used to keep the enum signed in all cases.
74740         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74741         Youngman in
74742         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74743
74744         * lib/regex_internal.c (re_string_skip_chars, register_state):
74745         (calc_state_hash):
74746         Remove forward decls; no longer needed now that we use prototypes.
74747         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74748         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74749         (clean_state_log_if_needed): Likewise.
74750
74751 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74752
74753         * config/srclist.txt: Add glibc bugs 1231-1233.
74754
74755 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         Fix problems reported by Sam Steingold in
74758         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74759         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74760         assumed that reg_errcode_t is a signed type, which is not
74761         necessarily true if _XOPEN_SOURCE is not defined.
74762         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74763         since some compilers warn about it otherwise.
74764
74765 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74766
74767         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74768         (init_word_char, create_initial_state, duplicate_node_closure):
74769         (fetch_token, peek_token_bracket, build_range_exp):
74770         (build_collating_symbol): Remove forward decls; no longer needed
74771         now that we use prototypes.
74772
74773         * lib/regcomp.c:
74774         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74775         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74776         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74777         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74778         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74779         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74780         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74781         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74782         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74783         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74784         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74785         (build_charclass, build_charclass_op, fetch_number, create_tree):
74786         (create_token_tree, mark_opt_subexp, duplicate_tree):
74787         Use prototypes rather than old-style definitions.
74788
74789         * lib/regex_internal.c:
74790         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74791         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74792         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74793         (re_string_reconstruct, re_string_peek_byte_case):
74794         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74795         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74796         (re_node_set_init_copy, re_node_set_add_intersect):
74797         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74798         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74799         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74800         (re_acquire_state, re_acquire_state_context, register_state):
74801         (create_ci_newstate, create_cd_newstate, free_state):
74802         Likewise.
74803         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74804         re_search_2):
74805         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74806         (re_search_internal, prune_impossible_nodes):
74807         (acquire_init_state_context, check_matching, static):
74808         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74809         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74810         (update_regs, sift_states_backward, build_sifted_states):
74811         (clean_state_log_if_needed, merge_state_array):
74812         (update_cur_sifted_state, add_epsilon_src_nodes):
74813         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74814         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74815         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74816         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74817         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74818         (check_arrival, check_arrival_add_next_nodes):
74819         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74820         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74821         (check_node_accept_bytes, check_node_accept, extend_buffers):
74822         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74823         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74824         (sift_ctx_init):
74825         Likewise.
74826
74827         * lib/regex_internal.h:
74828         (re_string_allocate, re_string_construct, re_string_reconstruct):
74829         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74830         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74831         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74832         (re_string_context_at, re_string_peek_byte_case):
74833         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74834         is defined, since we now use prototypes always.
74835
74836         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74837         C89 or better.  All uses removed.
74838
74839 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * config/srclist.txt: Add glibc bugs 1220-1227.
74842
74843 2005-08-20  Jim Meyering  <jim@meyering.net>
74844
74845         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74846         of unused local, dfa.
74847
74848 2005-08-20  Bruno Haible  <bruno@clisp.org>
74849
74850         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74851
74852 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74855         (re_node_set_insert_last, re_dfa_add_node):
74856         Rename local variables to avoid GCC shadowing warnings.
74857
74858 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74861         [defined lint]: Suppress bogus uninitialized-variable warnings.
74862
74863         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74864         and let the caller return REG_ESPACE if out of space.  This
74865         removes an uninitialied-variable warning with GCC 4.0.1, and also
74866         avoids taking the address of a local variable.  All callers
74867         changed.
74868
74869 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74872         $LIBCSRC/posix/regexec.c.
74873         Add glibc bug 1217 for regcomp.c.
74874
74875 2005-08-19  Jim Meyering  <jim@meyering.net>
74876
74877         * lib/regexec.c (proceed_next_node): Redo local variables to
74878         avoid GCC shadowing warnings.
74879
74880 2005-08-18  Bruno Haible  <bruno@clisp.org>
74881
74882         * lib/strstr.c (strstr): Fix return value in multibyte case.
74883         * lib/strcasestr.c (strcasestr): Likewise.
74884
74885 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74888
74889 2005-08-17  Jim Meyering  <jim@meyering.net>
74890
74891         Make the %s format (seconds since the epoch) work for a negative
74892         number and when used with a zero-padded field width, e.g. %015s.
74893
74894         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74895         label so that it precedes the code to set `digits'.  Otherwise,
74896         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74897         print `00-22'.  Now, it prints `-0022', as it should.
74898
74899 2005-08-17  Bruno Haible  <bruno@clisp.org>
74900
74901         * modules/strstr (Files): Add m4/mbrtowc.m4.
74902         (Depends-on): Add mbuiter.
74903
74904 2005-08-17  Bruno Haible  <bruno@clisp.org>
74905
74906         * modules/strcasestr: New file.
74907         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74908         strcasestr.
74909
74910 2005-08-17  Bruno Haible  <bruno@clisp.org>
74911
74912         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74913
74914 2005-08-17  Bruno Haible  <bruno@clisp.org>
74915
74916         * modules/mbuiter: New file.
74917         * MODULES.html.sh (Extended multibyte and wide character utilities):
74918         Add mbuiter.
74919
74920 2005-08-17  Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74923         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74924
74925 2005-08-17  Bruno Haible  <bruno@clisp.org>
74926
74927         * m4/strcasestr.m4: New file.
74928
74929 2005-08-17  Bruno Haible  <bruno@clisp.org>
74930
74931         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74932         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74933
74934 2005-08-17  Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/strcasestr.h: New file.
74937         * lib/strcasestr.c: New file.
74938
74939 2005-08-17  Bruno Haible  <bruno@clisp.org>
74940
74941         * lib/strcasecmp.c: Use mbuiter.h.
74942
74943 2005-08-17  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/mbuiter.h: New file.
74946
74947 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74950         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74951         and gl_GETOPT are both invoked via different paths (as happens
74952         with GNU tar CVS because it uses both argp and getopt), the former
74953         wins.
74954
74955 2005-08-16  Bruno Haible  <bruno@clisp.org>
74956
74957         * modules/tls: New file.
74958         * MODULES.html.sh (Multithreading): Add tls.
74959
74960 2005-08-16  Bruno Haible  <bruno@clisp.org>
74961
74962         * modules/strnlen1: New file.
74963         * MODULES.html.sh (String handling): Add strnlen1.
74964
74965 2005-08-16  Bruno Haible  <bruno@clisp.org>
74966
74967         * modules/strcase (Files): Add m4/mbrtowc.m4.
74968         (Depends-on): Add strnlen1, mbchar.
74969
74970 2005-08-16  Bruno Haible  <bruno@clisp.org>
74971
74972         * modules/mbiter: New file.
74973         * MODULES.html.sh (Extended multibyte and wide character utilities):
74974         Add mbiter.
74975
74976 2005-08-16  Bruno Haible  <bruno@clisp.org>
74977
74978         * modules/mbfile: New file.
74979         * MODULES.html.sh (Extended multibyte and wide character utilities):
74980         Add mbfile.
74981
74982 2005-08-16  Bruno Haible  <bruno@clisp.org>
74983
74984         * modules/mbchar: New file.
74985         * MODULES.html.sh (Extended multibyte and wide character utilities):
74986         New section.
74987
74988 2005-08-16  Bruno Haible  <bruno@clisp.org>
74989
74990         * m4/tls.m4: New file, from GNU gettext.
74991
74992 2005-08-16  Bruno Haible  <bruno@clisp.org>
74993
74994         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74995         always.
74996         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74997
74998 2005-08-16  Bruno Haible  <bruno@clisp.org>
74999
75000         * m4/mbiter.m4: New file.
75001
75002 2005-08-16  Bruno Haible  <bruno@clisp.org>
75003
75004         * m4/mbfile.m4: New file.
75005
75006 2005-08-16  Bruno Haible  <bruno@clisp.org>
75007
75008         * m4/mbchar.m4: New file.
75009
75010 2005-08-16  Bruno Haible  <bruno@clisp.org>
75011
75012         * lib/tls.h: New file, from GNU gettext.
75013         * lib/tls.c: New file, from GNU gettext.
75014
75015 2005-08-16  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/strnlen1.h: New file.
75018         * lib/strnlen1.c: New file.
75019
75020 2005-08-16  Bruno Haible  <bruno@clisp.org>
75021
75022         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75023         (mbi_init): Update.
75024         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75025         NUL byte, not after it.
75026
75027 2005-08-16  Bruno Haible  <bruno@clisp.org>
75028
75029         * lib/strcase.h (strcasecmp): Add note in comments.
75030         * lib/strncasecmp.c: Use code from strcasecmp.c.
75031         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75032         (strcasecmp): Work correctly in multibyte locales.
75033
75034 2005-08-16  Bruno Haible  <bruno@clisp.org>
75035
75036         * lib/mbiter.h: New file.
75037
75038 2005-08-16  Bruno Haible  <bruno@clisp.org>
75039
75040         * lib/mbfile.h: New file.
75041
75042 2005-08-16  Bruno Haible  <bruno@clisp.org>
75043
75044         * lib/mbchar.h: New file.
75045         * lib/mbchar.c: New file.
75046
75047 2005-08-16  Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75050         the valid ones. Makes the comparison operations transitive:
75051         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75052         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75053
75054 2005-08-15  Simon Josefsson  <jas@extundo.com>
75055
75056         * modules/ssize_t (License): Change to 'unlimited'.
75057
75058         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75059
75060 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75063         Add comments for each pending glibc patch.
75064
75065 2005-08-15  Bruno Haible  <bruno@clisp.org>
75066
75067         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75068         __cplusplus is defined.
75069
75070 2005-08-14  Jim Meyering  <jim@meyering.net>
75071
75072         Sync from coreutils.
75073
75074         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75075         Use the hash-table-based cycle-detection code not just when
75076         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75077         Reported by James Youngman in
75078         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75079         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75080         FTS_TIGHT_CYCLE_CHECK.
75081         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75082         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75083         once again.
75084         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75085         * lib/fts.c (fd_safer): Remove decl.
75086         Include fcntl--.h rather than unistd-safer.h
75087         (fts_safe_changedir): Don't call fd_safer; no longer needed
75088         now that we include fcntl--.h.
75089
75090 2005-08-12  Simon Josefsson  <jas@extundo.com>
75091
75092         * modules/getndelim2: Use ssize_t module.
75093         * modules/getnline: Likewise.
75094         * modules/safe-read: Likewise.
75095         * modules/xreadlink: Likewise.
75096
75097         * modules/ssize_t: New file.
75098
75099 2005-08-12  Simon Josefsson  <jas@extundo.com>
75100
75101         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75102
75103 2005-08-12  Simon Josefsson  <jas@extundo.com>
75104
75105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75106         ssize_t.
75107
75108 2005-08-12  Simon Josefsson  <jas@extundo.com>
75109
75110         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75111         readline, getdelim and check_version.
75112         (Support for systems lacking ISO C 99: Sizes of integer types):
75113         Add size_max.
75114
75115 2005-08-12  Bruno Haible  <bruno@clisp.org>
75116
75117         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75118
75119 2005-08-11  Simon Josefsson  <jas@extundo.com>
75120
75121         * modules/readline: New file.
75122
75123         * modules/strnlen (Files): Add strnlen.h.
75124
75125 2005-08-11  Simon Josefsson  <jas@extundo.com>
75126
75127         * m4/readline.m4: New file.
75128
75129 2005-08-11  Simon Josefsson  <jas@extundo.com>
75130
75131         * lib/readline.h, readline.c: New file.
75132
75133 2005-08-11  Simon Josefsson  <jas@extundo.com>
75134
75135         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75136         gl_AVOID.
75137
75138 2005-08-11  Bruno Haible  <bruno@clisp.org>
75139
75140         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75141
75142 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75143
75144         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75145
75146 2005-08-10  Simon Josefsson  <jas@extundo.com>
75147
75148         * tests/test-iconvme.c: New file.
75149
75150 2005-08-10  Simon Josefsson  <jas@extundo.com>
75151
75152         * m4/strnlen.m4: New file.
75153
75154         * m4/strndup.m4: Don't check for strnlen declaration, done in
75155         strnlen.m4.
75156
75157 2005-08-10  Simon Josefsson  <jas@extundo.com>
75158
75159         * lib/strndup.c: Use strnlen.h.
75160
75161         * lib/strnlen.h: New file.
75162
75163 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75164
75165         * README: Typos.
75166
75167 2005-08-02  Simon Josefsson  <jas@extundo.com>
75168
75169         * modules/readline: New file.
75170
75171 2005-08-02  Simon Josefsson  <jas@extundo.com>
75172
75173         * modules/getdelim: New file.
75174
75175         * modules/getline: Rewrite, don't use getndelim2.
75176
75177 2005-08-02  Simon Josefsson  <jas@extundo.com>
75178
75179         * m4/getline.m4: Separate out getdelim stuff into separate module.
75180
75181         * m4/getdelim.m4: New file.
75182
75183 2005-08-02  Simon Josefsson  <jas@extundo.com>
75184
75185         * lib/getline.h, getline.c: Rewrite.
75186
75187         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75188
75189 2005-07-31  Bruno Haible  <bruno@clisp.org>
75190
75191         * lib/lock.h (gl_lock_initializer): New macro.
75192         (gl_lock_define_initialized): Use it.
75193         (gl_rwlock_initializer): New macro.
75194         (gl_rwlock_define_initialized): Use it.
75195         (gl_recursive_lock_initializer): New macro.
75196         (gl_recursive_lock_define_initialized): Use it.
75197
75198 2005-07-30  Karl Berry  <karl@gnu.org>
75199
75200         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75201         Report from Ben Pfaff, regarding getopt.
75202
75203 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75204
75205         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75206         normal way.
75207         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75208         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75209         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75210         (gl_GETOPT): Use the new macros.  Most of the implementation
75211         is moved to the new macros.  This is for programs like Emacs
75212         that don't want all the functionality of gl_GETOPT.
75213
75214 2005-07-26  Bruno Haible  <bruno@clisp.org>
75215
75216         * m4/lock.m4: Update from GNU gettext.
75217
75218 2005-07-26  Bruno Haible  <bruno@clisp.org>
75219
75220         * lib/lock.h: Update from GNU gettext.
75221         * lib/lock.c: Update from GNU gettext.
75222
75223 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75224
75225         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75226         obsolescent AC_TRY_RUN.  Include the default includes files, for
75227         'exit'.
75228
75229 2005-07-24  Bruno Haible  <bruno@clisp.org>
75230
75231         * modules/visibility: New file.
75232         * MODULES.html.sh (Misc): Add visibility.
75233
75234 2005-07-24  Bruno Haible  <bruno@clisp.org>
75235
75236         * m4/visibility.m4: New file.
75237
75238 2005-07-24  Bruno Haible  <bruno@clisp.org>
75239
75240         * doc/visibility.texi: New file.
75241
75242 2005-07-22  Bruno Haible  <bruno@clisp.org>
75243
75244         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75245         $(ALLOCA_H), redundant through BUILT_SOURCES.
75246         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75247         redundant through BUILT_SOURCES.
75248         * modules/byteswap (Makefile.am): Remove explicit dependency on
75249         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75250         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75251         $(FNMATCH_H), redundant through BUILT_SOURCES.
75252         * modules/getopt (Makefile.am): Remove explicit dependency on
75253         $(GETOPT_H), redundant through BUILT_SOURCES.
75254         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75255         redundant through BUILT_SOURCES.
75256         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75257         redundant through BUILT_SOURCES.
75258         * modules/stdbool (Makefile.am): Remove explicit dependency on
75259         $(STDBOOL_H), redundant through BUILT_SOURCES.
75260         * modules/stdint (Makefile.am): Remove explicit dependency on
75261         $(STDINT_H), redundant through BUILT_SOURCES.
75262         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75263         Remove explicit dependency on $(SYSEXITS_H).
75264         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75265
75266 2005-07-18  Simon Josefsson  <jas@extundo.com>
75267
75268         * lib/check-version.c (check_version): Accept identical versions too.
75269
75270 2005-07-18  Bruno Haible  <bruno@clisp.org>
75271
75272         * modules/lock: New file.
75273         * MODULES.html.sh (Multithreading): New section.
75274
75275 2005-07-18  Bruno Haible  <bruno@clisp.org>
75276
75277         * m4/lock.m4: New file, from GNU gettext.
75278
75279 2005-07-18  Bruno Haible  <bruno@clisp.org>
75280
75281         * lib/lock.h: New file, from GNU gettext.
75282         * lib/lock.c: New file, from GNU gettext.
75283
75284 2005-07-18  Bruno Haible  <bruno@clisp.org>
75285
75286         * lib/lock.h (gl_once_t): New type.
75287         (gl_once_define, gl_once): New macros.
75288         * lib/lock.c (fresh_once): New variable.
75289         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75290         functions.
75291
75292 2005-07-16  Simon Josefsson  <jas@extundo.com>
75293
75294         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75295         workaround, suggested by Bruno.
75296
75297 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75298
75299         * modules/xalloc (Depends-on): Add xalloc-die.
75300         * modules/xvasprintf (Depends-on): Add xalloc-die.
75301
75302 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75305         with a minor change.
75306
75307 2005-07-15  Bruno Haible  <bruno@clisp.org>
75308
75309         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75310         When using lib/poll.c, define poll as rpl_poll.
75311
75312 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         * modules/argp (Depends-on): Remove unlocked-io.
75315
75316 2005-07-14  Derek Price  <derek@ximbiot.com>
75317
75318         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75319         for glob symlink bug.
75320
75321 2005-07-14  Bruno Haible  <bruno@clisp.org>
75322
75323         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75324         Instead, test for *_unlocked function declarations directly.
75325
75326 2005-07-11  Simon Josefsson  <jas@extundo.com>
75327
75328         * modules/size_max: New file.
75329
75330         * modules/xsize: Depend on size_max module for size_max.m4.
75331
75332 2005-07-11  Simon Josefsson  <jas@extundo.com>
75333
75334         * lib/size_max.h: New file.
75335
75336 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75339         copyright symbol and the year.
75340         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75341         (version_etc_va): Use parameterized copyright notice.
75342         Reword to conform to the current GNU coding standards.
75343
75344 2005-07-11  Karl Berry  <karl@gnu.org>
75345
75346         * doc/gnulib.texi (Quoting): new node.
75347         (Initial import): more info, from Patrice.
75348
75349 2005-07-11  Bruno Haible  <bruno@clisp.org>
75350
75351         * gnulib-tool (func_usage): Document option --avoid.
75352         (Command line options): Handle --avoid.
75353         (func_acceptable): New function.
75354         (func_modules_transitive_closure): Use it.
75355
75356 2005-07-11  Bruno Haible  <bruno@clisp.org>
75357
75358         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75359         Reported by Jim Meyering.
75360
75361 2005-07-10  Bruno Haible  <bruno@clisp.org>
75362
75363         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75364         Needed when size_t is smaller than 'unsigned int'.
75365         Reported by Paul Eggert.
75366
75367 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75368
75369         * modules/argp (Depends-on): Add unlocked-io
75370
75371 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75372
75373         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75374         block of defines.
75375
75376 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75379         fix now.
75380
75381 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75382         and Paul Eggert  <eggert@cs.ucla.edu>
75383
75384         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75385         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75386
75387 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * modules/regex (Files): Add lib/regex_internal.c,
75390         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75391         (Depends-on): Add extensions.
75392         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75393
75394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75397         pathconf.
75398         * m4/same.m4 (gl_SAME): Likewise.
75399         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75400
75401         * m4/regex.m4: Adjust to new libc regex implementation.
75402         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75403         all the .c and .h parts of (the new) regex.
75404         Quote the m4 stuff better.
75405         Check for RE_ICASE bug of old gnulib.
75406         Check for REG_STARTEND of recent libc.
75407         Rename local variables from jm_* to gl_*.
75408         Quote operand of "test -f".
75409         Say "recent enough" version of libc, not "version 2".
75410         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75411         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75412         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75413         Remove check for btowc, isascii.
75414         Require AM_LANGINFO_CODESET.
75415
75416 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * lib/regex.c, regex.h: Sync from libc.
75419         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75420         * lib/regexec.c:
75421         New files, synced from libc, except that regex_internal.h
75422         currently has a small porting fix.
75423
75424 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75427         regex_internal.c, regexec.c.
75428         Add regex_internal.h too, but as a comment, since the libc version
75429         is currently broken in gnulib mode.
75430
75431 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         Support programs like Emacs that use gnulib but not gettext.
75434         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75435         * modules/gettext-h: New file.
75436         * modules/gettext (Files): Remove lib/gettext.h.
75437         (Depends-on): Add gettext-h.
75438         (Makefile.am): Remove lib_SOURCES.
75439         * modules/argmatch, modules/c-stack, modules/closeout:
75440         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75441         * modules/execute, modules/file-type, modules/getaddrinfo:
75442         * modules/getopt, modules/human, modules/javacomp:
75443         * modules/javaexec, modules/mkdir-p, modules/obstack:
75444         * modules/openat, modules/pagealign_alloc, modules/pipe:
75445         * modules/quotearg, modules/regex, modules/rpmatch:
75446         * modules/unicodeio, modules/userspec, modules/version-etc:
75447         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75448         * modules/xsetenv:
75449         Depend on gettext-h, not gettext.
75450
75451 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * gnulib-tool (func_import): Add support for 'public domain' license.
75454         * modules/alloca, modules/atexit, modules/memmove:
75455         Now public domain, not GPL.
75456         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75457         * modules/realloc, modules/strerror, modules/strtod:
75458         Now LGPL, not GPL.
75459
75460 2005-07-05  Bruno Haible  <bruno@clisp.org>
75461
75462         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75463         autoconf CVS. Needed for mingw.
75464
75465 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75466
75467         Remove the dependency of the strftime module on the tzset module.
75468         * modules/strftime (Depends-on): Remove dependency on tzset.
75469
75470 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         Remove the dependency of the strftime module on the tzset module.
75473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75474         gl_FUNC_TZSET_CLOBBER.
75475
75476 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75477
75478         Remove the dependency of the strftime module on the tzset module.
75479         * lib/strftime.c (my_strftime)
75480         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75481         Copy the input structure, to work around some of the bug with
75482         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75483         Solaris releases, you should also use the tzset module, but we won't
75484         require it as a dependency any more since we don't want LGPLed code
75485         to depend on GPLed code.
75486
75487 2005-07-02  Jim Meyering  <jim@meyering.net>
75488
75489         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75490         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75491         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75492         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75493
75494 2005-07-02  Jim Meyering  <jim@meyering.net>
75495
75496         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75497
75498 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75499
75500         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75501         declares only 'struct timespec;' (!).
75502
75503 2005-07-01  Jim Meyering  <jim@meyering.net>
75504
75505         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75506         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75507         * lib/save-cwd.c, tempname.c:
75508         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75509         and don't include <sys/file.h>).
75510
75511 2005-06-29  Jim Meyering  <jim@meyering.net>
75512
75513         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75514         type name.  Use the variable name instead.
75515         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75516         Likewise.
75517
75518 2005-06-28  Simon Josefsson  <jas@extundo.com>
75519
75520         * modules/check-version (Files): Add check-version.m4.
75521
75522 2005-06-28  Simon Josefsson  <jas@extundo.com>
75523
75524         * m4/check-version.m4: New file, suggested by Jim Meyering
75525         <jim@meyering.net>.
75526
75527 2005-06-28  Simon Josefsson  <jas@extundo.com>
75528
75529         * lib/check-version.h, lib/check-version.c: New files.
75530
75531 2005-06-28  Simon Josefsson  <jas@extundo.com>
75532
75533         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75534         collision with global variable.  Better indentation.  Don't
75535         increment buffer pointer beyond buffer end.  Based on comments
75536         from Paul Eggert <eggert@cs.ucla.edu>.
75537
75538         * lib/base64.h: Indent.
75539
75540 2005-06-28  Simon Josefsson  <jas@extundo.com>
75541
75542         * doc/gnulib.texi (Library version handling): New section.
75543
75544 2005-06-28  Jim Meyering  <jim@meyering.net>
75545
75546         * check-module (find_included_lib_files): Hard-code another
75547         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75548         but modules/fts-lgpl (correctly) does not list those files.
75549
75550         * modules/canonicalize (Files): Add lib/pathmax.h.
75551
75552 2005-06-25  Simon Josefsson  <jas@extundo.com>
75553
75554         * modules/check-version: New file.
75555
75556 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75559         initializer of struct addrinfo, as an indication that we don't
75560         care how many members the structure has.
75561
75562 2005-06-24  Derek Price  <derek@ximbiot.com>
75563         and Bruno Haible  <bruno@clisp.org>
75564
75565         Remove stat module & update lstat.
75566         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75567         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75568         * m4/stat.m4: Remove this file.
75569
75570 2005-06-24  Derek Price  <derek@ximbiot.com>
75571         and Bruno Haible  <bruno@clisp.org>
75572
75573         Remove stat module & update lstat.
75574         * lib/stat.c: Remove this file...
75575         (slash_aware_lstat): ...moving this content and its support...
75576         * lib/lstat.c (rpl_lstat): ...into here.
75577         * lib/lstat.h: New file.
75578
75579 2005-06-24  Derek Price  <derek@ximbiot.com>
75580         and Bruno Haible  <bruno@clisp.org>
75581
75582         Remove stat module & update lstat.
75583         * config/srclist.txt (libc sources): Remove stat.
75584
75585 2005-06-24  Derek Price  <derek@ximbiot.com>
75586         and Bruno Haible  <bruno@clisp.org>
75587
75588         Remove stat module & update lstat.
75589         * MODULES.html.sh (stat): Remove.
75590         * MODULES.html: Regenerated.
75591         * modules/lstat (Description): Correct function name.
75592         (Files): Add "lstat.h".
75593         (Depends-on): Remove stat, add xalloc, stat-macros.
75594         * modules/stat: Remove this file.
75595         (Include): Add "lstat.h", remove <sys/stat.h>.
75596
75597 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75600         (ranged_convert): Don't save conversion in a temporary struct.
75601         This causes a warning with GCC 4.0.0, and anyway in the typical
75602         case it's not worth the extra 100 bytes or so of code.
75603         (ranged_convert, __mktime_internal): When calling a function via a
75604         pointer P, use P () rather than (*P) (), as we now assume C89 or
75605         better.
75606
75607 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75610         "who -r" failed to give output.  Problem reported by Tim Waugh.
75611
75612         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75613         (xcalloc): Use it to avoid needless tests.
75614         Problem reported by Jim Meyering.
75615
75616 2005-06-20  Derek Price  <derek@ximbiot.com>
75617
75618         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75619         unnecessary for Autoconfs > 2.59c.
75620
75621 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75622
75623         * lib/argp.h (__option_is_short): Check upper limit of
75624         __key. Isprint() requires its argument to have the value
75625         of an unsigned char or EOF.
75626
75627 2005-06-16  Jim Meyering  <jim@meyering.net>
75628
75629         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75630         when either N or S is zero.
75631
75632 2005-06-16  Derek Price  <derek@ximbiot.com>
75633
75634         * m4/bison.m4: Declare YACC & YFLAGS precious.
75635
75636 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75639         multibyte string or pattern, fall back on unibyte matching.
75640         Problem reported by James Youngman.
75641
75642 2005-06-08  Bruno Haible  <bruno@clisp.org>
75643
75644         * modules/csharpcomp: New file.
75645         * MODULES.html.sh (C#): Add csharpcomp.
75646
75647 2005-06-08  Bruno Haible  <bruno@clisp.org>
75648
75649         * m4/csharpcomp.m4: New file, from GNU gettext.
75650
75651 2005-06-08  Bruno Haible  <bruno@clisp.org>
75652
75653         * lib/csharpcomp.h: New file, from GNU gettext.
75654         * lib/csharpcomp.c: New file, from GNU gettext.
75655         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75656
75657 2005-06-08  Bruno Haible  <bruno@clisp.org>
75658
75659         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75660         warning on mingw.
75661
75662 2005-06-07  Derek Price  <derek@ximbiot.com>
75663
75664         Sync from CVS.
75665         * lib/glob_.h: Indent nested #ifdef.
75666
75667 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         Sync from coreutils.
75670         Use "file name" when talking about file names, instead of "filename"
75671         or "path", as per the GNU coding standards.
75672         * lib/mkdir-p.c: Renamed from makepath.c.
75673         (make_dir_parents): Renamed from make_path.  All callers changed.
75674         * lib/mkdir-p.h: Likewise.  All includers changed.
75675         * lib/filenamecat.c: Renamed from path-concat.c.
75676         (file_name_concat): Renamed from path_concat.  All callers changed.
75677         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75678         * lib/filenamecat.h: Likewise.  All includers changed.
75679         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75680         in comments or local variable names.
75681         * lib/basename.c: Likewise.
75682         * lib/canonicalize.c, canonicalize.h: Likewise.
75683         * lib/dirname.c, dirname.h: Likewise.
75684         * lib/euidaccess.c: Likewise.
75685         * lib/exclude.c: Likewise
75686         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75687         * lib/fsusage.c, fsuage.h: Likewise.
75688         * lib/fts.c, fts_.h: Likewise.
75689         * lib/getcwd.c: Likewise.
75690         * lib/getloadavg.c: Likewise.
75691         * lib/mkstemp.c: Likewise.
75692         * lib/mountlist.c, mountlist.h: Likewise.
75693         * lib/openat.c, openat.h: Likewise.
75694         * lib/readlink-stub.c: Likewise.
75695         * lib/readutmp.c, readutmp.h: Likewise.
75696         * lib/rename.c: Likewise.
75697         * lib/rmdir.c: Likewise.
75698         * lib/same.c: Likewise.
75699         * lib/savedir.c: Likewise.
75700         * lib/stripslash.c: Likewise.
75701         * lib/tempname.c: Likewise.
75702         * lib/xreadlink.c: Likewise.
75703         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75704         All uses changed.
75705         * lib/exclude.h: Likewise.
75706
75707         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75708         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75709         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75710         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75711         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75712         files have been getting away with it for years (MORE/BSD 4.3
75713         is extinct now).
75714         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75715         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75716
75717         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75718         Define to 256, not 255, as per modern POSIX.
75719
75720 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         Sync from coreutils.
75723         Use "file name" when talking about file names, instead of "filename"
75724         or "path", as per the GNU coding standards.
75725         * MODULES.html.sh: mkdir-p renamed from makepath.
75726         filenamecat renamed from path-concat.
75727         * modules/filenamecat: Renamed from modules/path-concat.
75728         (Files): filenamecat.h and filenamecat.c renamed from
75729         path-concat.h and path-concat.c.
75730         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75731         (Include): filenamecat.h, not path-concat.h.
75732         * modules/mkdir-p: Renamed from modules/makepath.
75733         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75734         makepath.c.
75735         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75736         (Include): mkdir-p.h, not makepath.h.
75737
75738 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75739
75740         Sync from coreutils.
75741         * m4/mkdir-p.m4: Renamed from makepath.m4.
75742         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75743         Rename files from makepath.c to mkdir-p.c, and from
75744         makepath.h to mkdir-p.h.
75745         * m4/filenamecat.m4: Renamed from path-concat.m4.
75746         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75747         Rename files from path-concat.c to filenamecat.c,
75748         and from path-concat.h to filenamecat.h.
75749         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75750         "file name" in local variables or comments.
75751         * m4/rename.m4: Likewise.
75752
75753 2005-06-01  Bruno Haible  <bruno@clisp.org>
75754
75755         * modules/csharpexec: New file.
75756         * MODULES.html.sh (C#): New section.
75757
75758 2005-06-01  Bruno Haible  <bruno@clisp.org>
75759
75760         * m4/csharp.m4: New file, from GNU gettext.
75761         * m4/csharpexec.m4: New file, from GNU gettext.
75762
75763 2005-06-01  Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/csharpexec.h: New file, from GNU gettext.
75766         * lib/csharpexec.c: New file, from GNU gettext.
75767         * lib/csharpexec.sh.in: New file, from GNU gettext.
75768
75769 2005-05-31  Derek Price  <derek@ximbiot.com>
75770             Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         Sync from cvs.
75773         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75774
75775 2005-05-31  Derek Price  <derek@ximbiot.com>
75776             Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         Sync from cvs.
75779         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75780
75781 2005-05-29  Derek Price  <derek@ximbiot.com>
75782
75783         * config/srclist.txt (glob_.h, glob.c): Add these files.
75784
75785 2005-05-29  Derek Price  <derek@ximbiot.com>
75786
75787         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75788         * modules/glob: New file.
75789         * modules/getlogin_r: Add link to POSIX spec in description.
75790
75791 2005-05-29  Derek Price  <derek@ximbiot.com>
75792             Paul Eggert  <eggert@cs.ucla.edu>
75793
75794         * m4/glob.m4: New file.
75795
75796 2005-05-29  Derek Price  <derek@ximbiot.com>
75797             Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         * lib/glob_.h, lib/glob.c: New files.
75800
75801 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75804         * modules/fts-lgpl (Depends-on): Remove gettext.
75805
75806 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75809         and don't require gt_INTTYPES_PRI.
75810
75811 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75814
75815         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75816         the configuration hassle isn't worth it.
75817         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75818         (LONGEST_MODIFIER, PRIuMAX): Remove.
75819
75820 2005-05-27  Bruno Haible  <bruno@clisp.org>
75821
75822         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75823
75824 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75827         _POSIX_PTHREAD_SEMANTICS for Solaris.
75828
75829 2005-05-25  Derek Price  <derek@ximbiot.com>
75830
75831         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75832
75833 2005-05-25  Derek Price  <derek@ximbiot.com>
75834             Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75837         * lib/getlogin_r.c, getlogin_r.h: New files.
75838
75839 2005-05-25  Bruno Haible  <bruno@clisp.org>
75840             Derek Price  <derek@ximbiot.com>
75841
75842         * lib/getlogin_r.h: Simplify API documentation.
75843
75844 2005-05-23  Derek Price  <derek@ximbiot.com>
75845
75846         * modules/minmax (Files): Add m4/minmax.m4.
75847         (configure.ac): Add gl_MINMAX.
75848
75849 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75852         so that unistd-safer.h (GPL'ed code) need not be included.
75853
75854 2005-05-22  Bruno Haible  <bruno@clisp.org>
75855
75856         * m4/minmax.m4: New file.
75857         Based on a patch by Derek Price <derek@ximbiot.com>.
75858
75859 2005-05-22  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75862         (INT64_MIN): Fix definition.
75863         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75864
75865         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75866         NEED_SIGNED_INT_TYPES.
75867
75868         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75869         HAVE_SYSTEM_INTTYPES.
75870
75871 2005-05-22  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75874         Also include <sys/param.h> if it defines MIN, MAX.
75875         Based on a patch by Derek Price <derek@ximbiot.com>.
75876
75877 2005-05-21  Jim Meyering  <jim@meyering.net>
75878
75879         * modules/fts (Files): Add m4/inttypes-pri.m4.
75880         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75881
75882 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         New fts module.
75885         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75886         (setup_dir, free_dir): New functions.
75887         (enter_dir, leave_dir): Define trivial
75888         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75889         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75890         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75891         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75892         Move to fts-cycle.c.
75893         (fts_open): Use setup_dir.
75894         (fts_close): Use free_dir.
75895         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75896         This adds a label and some gotos, but the alternatives were messier.
75897         Check for memory allocation failure when entering a dir.
75898         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75899         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75900         (FTS): New member fts_cycle, that is a union that contains the
75901         old active_dir_ht and cycle_state.  All uses changed to mention
75902         fts_cycle.ht and fts_cycle.state.
75903         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75904         fts.c, with the following changes:
75905         (setup_dir, free_dir): New functions.
75906         (enter_dir): Now returns bool.  Return true if successful, false
75907         if memory exhausted.  All callers changed.
75908         Do not bother partly cleaning up on
75909         memory allocation failure; that is free_dir's job.
75910         However, free ad if hash_insert fails, to avoid memory leak.
75911         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75912         fts->fts_options to see which union member to use.
75913
75914 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75917         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75918
75919 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75922
75923 2005-05-20  Jim Meyering  <jim@meyering.net>
75924
75925         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75926         Now a macro, to pacify GCC.
75927
75928 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75929
75930         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75931         of -1.
75932
75933 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75934
75935         * lib/chown.c (rpl_chown): Return -1 on failure.
75936
75937 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75940         Don't check for stddef.h.
75941         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75942         don't use its results.
75943         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75944         since we include them unconditionally.  Don't require
75945         AM_STDBOOL_H, since stdbool is a prerequisite.
75946         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75947         since we assume C89 or better.
75948         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75949         as we don't use their results.
75950         Don't check for fchdir, memmove, memset, strrchr, as we use
75951         them unconditionally.
75952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75953         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75954
75955 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75958         Include <stddef.h> unconditionally, since we assume C89 now.
75959         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75960         * lib/fts.c: Include fts_.h first, to check interface.
75961         Do not include intprops.h; no longer needed.
75962         Include cycle-check.h and hash.h, since fts_.h no longer does.
75963         Remove unnecessary casts of closedir to void.
75964         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75965         decide whether to decrement nlinks.
75966         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75967         (FTS): Use struct hash_table * instead of Hash_table, so that
75968         we no longer need to include hash.h here.
75969
75970 2005-05-18  Jim Meyering  <jim@meyering.net>
75971
75972         * modules/dirfd (License): Change to LGPL.  Most of the code
75973         is already in the public domain.
75974
75975 2005-05-18  Jim Meyering  <jim@meyering.net>
75976
75977         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75978         Reported by Yoann Vandoorselaere.
75979
75980 2005-05-17  Jim Meyering  <jim@meyering.net>
75981
75982         * m4/fts.m4: New file, from coreutils.
75983
75984 2005-05-17  Jim Meyering  <jim@meyering.net>
75985
75986         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75987
75988 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         Sync from coreutils.
75991         * m4/unlinkdir.m4: New file.
75992
75993 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         Sync from coreutils.
75996         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75997         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75998         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75999         White space changes only.
76000         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76001         special.
76002         * lib/yesno.c: Include getline.h, not ctype.h.
76003         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76004         Use getline to remove arbitrary restriction on response length.
76005
76006 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * config/srclist-update: Spell out "Street" in FSF postal
76009         mail address; this is the style the FSF seems to prefer.
76010
76011         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76012         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76013         this updates FSF postal mail address.
76014
76015         Sync from coreutils.
76016         * modules/unlinkdir: New file.
76017         * modules/yesno (Depends-on): Add getline.
76018         * MODULES.html.sh (File system functions): Add unlinkdir.
76019
76020 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76023         lib/strsep.h:
76024         Change the initial comment to refer to GPL, not LGPL.
76025         gnulib-tool will change it to LGPL as needed.
76026
76027         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76028         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76029         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76030         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76031         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76032         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76033         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76034         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76035         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76036         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76037         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76038         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76039         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76040         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76041         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76042         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76043         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76044         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76045         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76046         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76047         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76048         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76049         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76050         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76051         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76052         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76053         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76054         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76055         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76056         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76057         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76058         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76059         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76060         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76061         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76062         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76063         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76064         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76065         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76066         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76067         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76068         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76069         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76070         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76071         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76072         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76073         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76074         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76075         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76076         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76077         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76078         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76079         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76080         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76081         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76082         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76083         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76084         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76085         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76086         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76087         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76088         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76089         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76090         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76091         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76092         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76093         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76094         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76095         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76096         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76097         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76098         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76099         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76100         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76101         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76102         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76103         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76104         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76105         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76106         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76107         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76108         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76109         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76110         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76111         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76112         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76113         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76114         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76115         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76116         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76117         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76118         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76119         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76120         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76121         lib/yesno.c, lib/yesno.h:
76122         Update FSF postal mail address.
76123
76124 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76125
76126         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76127         tests/test-memmem.c, tests/test-stpncpy.c:
76128         Update FSF postal mail address.
76129
76130 2005-05-13  Bruno Haible  <bruno@clisp.org>
76131
76132         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76133         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76134         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76135         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76136         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76137         Add support for 64-bit integers in the MSVC compiler.
76138
76139 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76140
76141         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76142
76143 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76144
76145         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76146
76147 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * doc/getdate.texi (General date syntax): Don't say that date
76150         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76151         Problem reported by Nic Ferrier.
76152
76153 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76154
76155         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76156         specified in ai_socktype. Fix invalid ai_protocol
76157         check. ai_protocol is usually set to 0 or depending on
76158         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76159         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76160         ai_socktype / ai_protocol in the returned addrinfo structure.
76161
76162 2005-05-10  Simon Josefsson  <jas@extundo.com>
76163
76164         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76165         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76166
76167 2005-05-10  Karl Berry  <karl@gnu.org>
76168
76169         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76170         (from http://www.gnu.org/licenses).
76171         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76172         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76173         fdl.texi suffices.
76174
76175 2005-05-10  Karl Berry  <karl@gnu.org>
76176
76177         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76178         (COPYING.DOC): remove.
76179
76180         * config/srclist-update: new FSF address.
76181
76182 2005-05-10  Derek Price  <derek@ximbiot.com>
76183
76184         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76185         possible.
76186
76187 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76188             Bruno Haible  <bruno@clisp.org>
76189
76190         * modules/inet_ntop: New file.
76191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76192         inet_ntop.
76193
76194 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76195             Bruno Haible  <bruno@clisp.org>
76196
76197         * m4/inet_ntop.m4: New file.
76198
76199 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76200             Bruno Haible  <bruno@clisp.org>
76201
76202         * lib/inet_ntop.h: New file.
76203         * lib/inet_ntop.c: New file, from glibc with modifications.
76204
76205 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * modules/time_r (License): Change to LGPL.
76208         * modules/extensions (License): Change to LGPL.  Actually,
76209         the license is more permissive than that, but currently gnulib-tool
76210         doesn't know how to handle more-permissive licenses.
76211
76212         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76213         Problem reported by Dave Love.
76214
76215 2005-05-08  Jim Meyering  <jim@meyering.net>
76216
76217         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76218         blank.
76219
76220 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * modules/argmatch (Depends-on): Add stdbool.
76223         * modules/backupfile (Depends-on): Likewise.
76224         * modules/chdir-long (Depends-on): Likewise.
76225         * modules/closeout (Depends-on): Likewise.
76226         * modules/cycle-check (Depends-on): Likewise.
76227         * modules/dirname (Depends-on): Likewise.
76228         * modules/fnmatch (Depends-on): Likewise.
76229         * modules/fsusage (Depends-on): Likewise.
76230         * modules/fwriteerror (Depends-on): Likewise.
76231         * modules/getcwd (Depends-on): Likewise.
76232         * modules/getloadavg (Depends-on): Likewise.
76233         * modules/hard-locale (Depends-on): Likewise.
76234         * modules/makepath (Depends-on): Likewise.
76235         * modules/mountlist (Depends-on): Likewise.
76236         * modules/nanosleep (Depends-on): Likewise.
76237         * modules/posixtm (Depends-on): Likewise.
76238         * modules/quotearg (Depends-on): Likewise.
76239         * modules/readtokens (Depends-on): Likewise.
76240         * modules/readtokens0 (Depends-on): Likewise.
76241         * modules/readutmp (Depends-on): Likewise.
76242         * modules/save-cwd (Depends-on): Likewise.
76243         * modules/strftime (Depends-on): Likewise.
76244         * modules/userspec (Depends-on): Likewise.
76245         * modules/utimecmp (Depends-on): Likewise.
76246         * modules/xgetcwd (Depends-on): Likewise.
76247         * modules/xnanosleep (Depends-on): Likewise.
76248         * modules/xstrtod (Depends-on): Likewise.
76249         * modules/yesno (Depends-on): Likewise.
76250
76251 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76254         needless checks.
76255
76256 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         Merge from coreutils.  Among other things,
76259         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76260         * lib/fd-safer.c: New file.
76261         * lib/fcntl-safer.h, open-safer.c: Remove.
76262         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76263         * lib/dup-safer.c: Include unistd-safer.h first.
76264         Don't include errno.h.
76265         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76266         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76267         * lib/file-type.c: Rely on file-type.h change.
76268         * lib/getloadavg.c: Include unistd-safer.h.
76269         (getloadavg): Use safer open.
76270         * lib/getusershell.c: Include "stdio-safer.h".
76271         (getusershell): Use safer fopen.
76272         * lib/long-options.c (long_options): Use NULL rather than 0.
76273         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76274         'free'.
76275         * lib/modechange.c: Likewise.
76276         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76277         (MODE_DONE): New constant.
76278         (struct mode_change): Remove 'next' member.
76279         (make_node_op_equals): New function; like the old one of the
76280         same name, except it allocates an array.
76281         (mode_compile, mode_create_from_ref): Use it.
76282         (mode_compile): Allocate result as an array, not a linked list.
76283         Parse octal string ourself, so that we catch mistakes like "+0".
76284         (mode_adjust): Arg is an array, not a linked list.
76285         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76286         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76287         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76288         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76289         Remove.  This is now stat-macros.h's job.
76290         (talloc): Remove.  All callers replaced by xalloc, so that
76291         our invokers don't have to worry about reporting memory failures.
76292         (make_node_op_equals): Remove.
76293         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76294         New constants.
76295         (struct mode_change): Moved here from modechange.h.
76296         (mode_append_entry): Remove.
76297         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76298         apps to have incorrect behavior.  Use simpler algorithm for head
76299         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76300         Detect more invalid usages rather than having somewhat-random behavior.
76301         Don't insert an "a=" action, as that leads to incorrect behavior.
76302         (mode_compile, mode_create_from_ref): Return NULL on error instead
76303         of an enum, since now there's only one way to have an error.  All
76304         callers changed.
76305         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76306         at the correct time.  Simplify calculation of "+u" and its ilk.
76307         Don't mishandle "+X".
76308         (mode_free): Remove "register" and localize decls.
76309         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76310         (struct mode_change): Move to modechange.c; callers don't
76311         need to see this stuff.
76312         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76313         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76314         (mode_change, mode_adjust): Reflect the new signatures noted above.
76315         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76316         that might redefine system include files.
76317         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76318         (my_usleep): Use NULL rather than (void *) 0.
76319         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76320         Use siginterrupt to specify that system calls should be interrupted.
76321         (rpl_nanosleep): Move initialization of suspended closer to call of
76322         my_usleep.
76323         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76324         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76325         (desirable_utmp_entry): New function.
76326         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76327         using x2nrealloc, to simplify logic.
76328         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76329         size calculation.  Do not assume utmp file is a regular file.
76330         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76331         (READ_UTMP_CHECK_PIDS): New constant.
76332         * lib/save-cwd.c: Include unistd-safer.h.
76333         (save_cwd): Use fd_safer.
76334         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76335         [!_LIBC] Include "stat-macros.h" instead.
76336         * lib/unistd-safer.h (fd_safer): New decl.
76337
76338 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * modules/getloadavg (Depends-on): Add unistd-safer.
76341         * modules/getusershell (Depends-on): Add stdio-safer.
76342         * modules/lstat (Depends-on): Remove xalloc.
76343         * modules/mkstemp (Depends-on): Add stat-macros.
76344         * modules/modechange (Depends-on): Remove xstrtol.
76345         Add stat-macros, xalloc.
76346         * modules/save-cwd (Depends-on): Add unistd-safer.
76347         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76348         * modules/unistd-safer (Files): Add lib/fd-safer.c
76349         (Makefile.am): Remove lib_SOURCES.
76350
76351         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76352         Remove fcntl-safer; unistd-safer supersedes it.
76353
76354 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76357         AC_HEADER_STAT.
76358         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76359         (gl_PREREQ_CHOWN): Remove.
76360         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76361         it.  Don't require AC_HEADER_STAT.
76362         (gl_PREREQ_LSTAT): Remove.
76363         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76364         Don't require AC_HEADER_STAT.
76365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76366         (gl_PREREQ_RMDIR): Remove.
76367         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76368         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76369         the stat-macros module a prerequisite.
76370         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76371         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76372         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76373         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76374         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76375         variable names.
76376         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76377         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76378         variable prefixes.
76379         * m4/fcntl-safer.m4: Remove.
76380         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76381         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76382         Invoke gl_PREREQ_FD_SAFER.
76383         (gl_PREREQ_FD_SAFER): New macro.
76384         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76385         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76386         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76387         Remove duplicate call to AC_LIBOBJ(readutmp).
76388         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76389
76390         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76391         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76392
76393 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         * MODULES.html.sh (Misc): Add byteswap.
76396
76397 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76398
76399         * modules/getcwd (Depends-on): Add extensions.
76400         * modules/openat (Depends-on): Likewise.
76401
76402 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76403
76404         * modules/byteswap: New file.
76405
76406 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76407
76408         * m4/byteswap.m4: New file.
76409
76410 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76411
76412         * lib/byteswap_.h: New file.
76413
76414 2005-04-25  Karl Berry  <karl@gnu.org>
76415
76416         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76417
76418 2005-04-25  Albert Chin  <china@thewrittenword.com>
76419
76420         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76421         Toolkit C bug.
76422
76423 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76424
76425         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76426         (func_ln_if_changed): Remove forcibly for no error message
76427         in case file does not exist.
76428
76429 2005-04-19  Simon Josefsson  <jas@extundo.com>
76430
76431         * gnulib-tool (Options): Make --symlink mean --symbolic.
76432
76433 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76434
76435         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76436
76437 2005-04-16  Simon Josefsson  <jas@extundo.com>
76438
76439         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76440
76441 2005-04-15  Simon Josefsson  <jas@extundo.com>
76442
76443         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76444
76445 2005-04-15  Simon Josefsson  <jas@extundo.com>
76446
76447         * gnulib-tool: Rename --symlink to --symbolic.
76448
76449 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76450
76451         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76452         symbolic links to files instead of copying/moving.  Add --aux-dir,
76453         specifying directory relative --dir where auxiliary build tools
76454         are placed.
76455
76456 2005-04-14  Bruno Haible  <bruno@clisp.org>
76457
76458         * modules/allocsa (License): Change to LGPL.
76459         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76460
76461 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76464         that "UTC +1 second" continues to work.  Problem reported
76465         by Dmitry V. Levin.
76466         (relunit_snumber): New rule.
76467         (relunit): Use it.
76468
76469 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * lib/getdate.y (universal_time_zone_table): New constant.
76472         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76473         universal_time_zone_table.
76474         (lookup_zone): Prefer universal_time_zone_table to
76475         local_time_zone_table, so that "GMT" time stamps are allowed in
76476         London during the summer.  Problem reported by Ian Abbott.
76477
76478 2005-04-12  Jim Meyering  <jim@meyering.net>
76479
76480         * lib/human.c (humblock): Set *options even when returning due to
76481         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76482         warning from gcc-4.
76483
76484 2005-04-09  Jim Meyering  <jim@meyering.net>
76485
76486         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76487         -Wuninitialized: initialize tm0.tm_year.
76488
76489 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76492         count, since there's no maximum.  All uses changed.
76493         Add member dsts_seen.
76494         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76495         not being INT_MAX.
76496         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76497         Use pc_rels_seen to decide whther a date is absolute.
76498
76499         * lib/getdate.y (number): Don't overwrite year.
76500         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76501         check.
76502
76503 2005-04-02  Simon Josefsson  <jas@extundo.com>
76504
76505         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76506         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76507
76508 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76509
76510         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76511         where no absolute path name can be longer than PATH_MAX.
76512
76513 2005-03-27  Jim Meyering  <jim@meyering.net>
76514
76515         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76516
76517 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76520         "one's complement" -> "ones' complement" in comment, as per Knuth.
76521         "value of type" -> "type or expression" in comment.
76522         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76523
76524 2005-03-26  Jim Meyering  <jim@meyering.net>
76525
76526         Comment nits.
76527         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76528         Correct typos: s/or/of/.
76529
76530 2005-03-26  Jim Meyering  <jim@meyering.net>
76531
76532         * modules/check-include-files: Move to ../ and rename to...
76533         * check-module: ...this.
76534
76535 2005-03-25  Jim Meyering  <jim@meyering.net>
76536
76537         * modules/xvasprintf (Files): Add xalloc.h.
76538
76539 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * modules/gettext (Files): config/config.rpath ->
76542         build-aux/config.rpath
76543         * modules/iconv (Files): Likewise.
76544         Problem reported by Oskar Liljeblad.
76545
76546 2005-03-23  Jim Meyering  <jim@meyering.net>
76547
76548         * modules/check-include-files: New script to check for
76549         missing dependencies, multiple includes, etc.
76550
76551         * modules/c-strtold (Depends-on): Add xalloc.
76552         * modules/c-strtod (Depends-on): Add xalloc.
76553         * modules/hash (Depends-on): Add xalloc.
76554         (Files): Remove lib/xalloc.h.
76555
76556         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76557         * modules/userspec (Files): Add lib/inttostr.h.
76558
76559 2005-03-23  Jim Meyering  <jim@meyering.net>
76560
76561         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76562
76563 2005-03-22  Jim Meyering  <jim@meyering.net>
76564
76565         * modules/stat-macros: New module.
76566         * modules/canonicalize, modules/euidaccess, modules/file-type,
76567         * modules/filemode, modules/lchown, modules/makepath,
76568         * modules/rmdir, modules/stat: Depend on new stat-macros module
76569         rather than listing lib/stat-macros.h manually.
76570         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76571
76572 2005-03-22  Jim Meyering  <jim@meyering.net>
76573
76574         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76575
76576 2005-03-22  Bruno Haible  <bruno@clisp.org>
76577
76578         * config/srclist.txt: Replace target directory 'config' with
76579         'build-aux'.
76580         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76581         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76582         ../build-aux/.
76583
76584 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * modules/chdir-long (Depends-on): Add mempcpy.
76587
76588         * modules/acl, modules/backupfile, modules/c-strtod,
76589         modules/c-strtold, modules/canon-host, modules/canonicalize,
76590         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76591         modules/exclude, modules/exitfail, modules/file-type,
76592         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76593         modules/getdate, modules/getline, modules/getpagesize,
76594         modules/getpass, modules/getugroups, modules/group-member,
76595         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76596         modules/inttostr, modules/long-options, modules/makepath,
76597         modules/md5, modules/memcasecmp, modules/memcoll,
76598         modules/modechange, modules/mountlist, modules/path-concat,
76599         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76600         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76601         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76602         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76603         modules/strftime, modules/strndup, modules/strverscmp,
76604         modules/timespec, modules/unlocked-io, modules/userspec,
76605         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76606         modules/yesno:
76607         Remove lib_SOURCES line from Makefile.am section, as this is now
76608         done automatically by the corresponding Autoconf macro.
76609
76610 2005-03-21  Jim Meyering  <jim@meyering.net>
76611
76612         Changes imported from coreutils.
76613
76614         * lib/cycle-check.c: Don't include xalloc.h.
76615
76616         * lib/path-concat.c: Don't include assert.h.
76617         (path_concat): Remove assertion that would have triggered
76618         for ABASE starting with more than one slash.
76619         Reported by Andreas Schwab.
76620
76621         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76622         properly when ABASE is an absolute file name.
76623         Correct the description of this function.
76624         Include <assert.h>.
76625         Add an assertion and a test driver.
76626         This fixes a bug introduced on 2004-07-02.
76627         Andreas Schwab reported the resulting failure of cp --parents:
76628         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76629
76630 2005-03-21  Jim Meyering  <jim@meyering.net>
76631
76632         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76633         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76634
76635 2005-03-21  Jim Meyering  <jim@meyering.net>
76636         and  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76639         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76640         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76641         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76642         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76643         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76644         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76645         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76646         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76647         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76648         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76649         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76650         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76651         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76652         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76653         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76654         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76655         for these modules.
76656
76657 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76658
76659         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76660         (which shouldn't happen), generate nothing instead of returning 0
76661         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76662
76663 2005-03-16  Bruno Haible  <bruno@clisp.org>
76664
76665         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76666         HAVE_LONGLONG_64BIT.
76667
76668 2005-03-16  Bruno Haible  <bruno@clisp.org>
76669
76670         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76671         HAVE_LONGLONG_64BIT.
76672
76673 2005-03-16  Bruno Haible  <bruno@clisp.org>
76674
76675         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76676         HAVE_LONGLONG_64BIT.
76677
76678 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76681         reliably distinguish strftime failure from empty output on POSIX
76682         hosts.
76683
76684 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76687         (iconv_string): Don't guess a size-zero buffer, as that might cause
76688         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76689         result would be 'too large', where 'too large' is (heuristically)
76690         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76691         overflow concerns.  This will prevent some unwanted malloc failures
76692         when the inputs are very large.
76693
76694 2005-03-15  Karl Berry  <karl@gnu.org>
76695
76696         * config/srclist.txt (config.rpath): from gettext.
76697         * config/config.rpath: update.
76698
76699 2005-03-15  Bruno Haible  <bruno@clisp.org>
76700
76701         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76702         to 'negate'.
76703
76704         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76705         variable.
76706
76707         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76708         results.
76709
76710 2005-03-14  Simon Josefsson  <jas@extundo.com>
76711
76712         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76713         <fx@gnu.org>.
76714
76715 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76718         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76719         intprops.h.
76720         * lib/strtol.c: Likewise.
76721
76722 2005-03-14  Jim Meyering  <jim@meyering.net>
76723
76724         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76725         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76726         to be nonzero so that we (and caller) can detect the difference
76727         between a valid zero-length expansion and an error return, even
76728         when the underlying strftime fails before writing anything into
76729         that location.
76730
76731 2005-03-14  Bruno Haible  <bruno@clisp.org>
76732
76733         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76734         Update from GNU gettext 0.14.3.
76735
76736 2005-03-10  Jim Meyering  <jim@meyering.net>
76737
76738         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76739
76740 2005-03-10  Jim Meyering  <jim@meyering.net>
76741
76742         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76743         so that this module works on systems without fchdir.
76744
76745 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         Factor int-properties macros into a single file, except for
76748         glibc-related files.
76749         * lib/intprops.h: New file.
76750         * lib/getloadavg.c: Include it instead of limits.h.
76751         (INT_STRLEN_BOUND): Remove.
76752         * lib/human.c: Include intprops.h.
76753         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76754         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76755         302/1000.
76756         * lib/inttostr.h: Include intprops.h instead of limits.h.
76757         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76758         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76759         for consistency with intprops.h.
76760         (time_t_is_integer, twos_complement_arithmetic): Use them.
76761         * lib/sig2str.h: Include <signal.h>, intprops.h.
76762         (INT_STRLEN_BOUND): Remove.
76763         * lib/strftime.c (TYPE_SIGNED): Remove.
76764         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76765         * lib/strtol.c: Adjust comments to match intprops.h.
76766         * lib/userspec.c: Include intprops.h.
76767         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76768         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76769         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76770         instead of rolling our own expressions.
76771         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76772
76773         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76774         instead of int.
76775         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76776         the right thing even if adding 1900 would overflow.  Similarly
76777         for tm_mon + 1 and tm_yday + 1.
76778         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76779         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76780         (DO_SIGNED_NUMBER): New macro.
76781         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76782
76783 2005-03-07  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76786
76787 2005-03-07  Bruno Haible  <bruno@clisp.org>
76788
76789         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76790
76791 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76792
76793         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76794         (func_import): Only replace files via --import when they have actually
76795         changed.
76796
76797 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76798
76799         * m4/mmap-anon.m4: New file.
76800         * m4/pagealign_alloc.m4: New file.
76801
76802 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76803             Bruno Haible  <bruno@clisp.org>
76804
76805         * modules/pagealign_alloc: New file.
76806         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76807
76808 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76809             Bruno Haible  <bruno@clisp.org>
76810
76811         * lib/pagealign_alloc.h: New file.
76812         * lib/pagealign_alloc.c: New file.
76813
76814 2005-03-03  Bruno Haible  <bruno@clisp.org>
76815
76816         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76817         Use an all-permissive copyright notice, recommended by RMS.
76818
76819 2005-03-02  Bruno Haible  <bruno@clisp.org>
76820
76821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76822         of AIX, the replacement has to be done only after <string.h> is
76823         included, therefore not in config.h. stpncpy.h does the replacement,
76824         and stpncpy.c uses it.
76825
76826 2005-03-02  Bruno Haible  <bruno@clisp.org>
76827
76828         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76829         stpncpy.c uses it.
76830
76831 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76834         The workaround isn't strictly needed for POSIX conformance, and
76835         it's too much of a pain to configure and maintain.  We'll ask
76836         people to fix their kernels instead.
76837         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76838         (NANOSLEEP_BUG_WORKAROUND): Remove.
76839         (xnanosleep): Remove the workaround.
76840
76841 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76842
76843         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76844         Reported by Derek Price.
76845         (Include): Add "timespec.h".
76846
76847         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76848
76849 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76852         to detect nanosleep bug.
76853
76854 2005-03-01  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76857
76858 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         * modules/gethrxtime: New file.
76861         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76862         (Depends-on): Add gethrxtime.
76863         (configure.ac): Add gl_XNANOSLEEP.
76864         (Makefile.am): Remove lib_SOURCES line.
76865
76866 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76869         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76870
76871 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76874         * lib/timespec.h (gettime): Return void, since it always
76875         succeeds now.  All uses changed.
76876         * lib/gettime.c (gettime): Likewise.
76877         [HAVE_NANOTIME]: Prefer nanotime.
76878         Assume gettimeofday succeeds, as POSIX requires.
76879         Assime time () succeeds, since other code already does.
76880         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76881         (timespec_subtract): Remove.
76882         (NANOSLEEP_BUG_WORKAROUND): New constant.
76883         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76884         things considerably.  Use it only on GNU/Linux hosts, since the
76885         workaround shouldn't be needed elsewhere.
76886
76887 2005-02-24  Bruno Haible  <bruno@clisp.org>
76888
76889         * modules/gettext (Files): Add m4/glibc2.m4.
76890
76891 2005-02-24  Bruno Haible  <bruno@clisp.org>
76892
76893         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76894         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76895         * m4/progtest.m4:
76896         Update from GNU gettext 0.14.2.
76897         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76898
76899 2005-02-24  Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76902         * lib/config.charset: Update from GNU gettext 0.14.2.
76903
76904 2005-02-24  Bruno Haible  <bruno@clisp.org>
76905
76906         * lib/gettext.h: Update from GNU gettext 0.14.2.
76907
76908 2005-02-23  Simon Josefsson  <jas@extundo.com>
76909
76910         * m4/iconvme.m4: New file.
76911
76912 2005-02-23  Jim Meyering  <jim@meyering.net>
76913
76914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76915         change.
76916         Thanks to Bruno Haible for catching it.
76917
76918 2005-02-22  Simon Josefsson  <jas@extundo.com>
76919
76920         * modules/iconvme: New file.
76921
76922         * MODULES.html.sh: Add iconvme.
76923
76924 2005-02-22  Simon Josefsson  <jas@extundo.com>
76925
76926         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76927
76928 2005-02-22  Simon Josefsson  <jas@extundo.com>
76929
76930         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76931
76932 2005-02-22  Jim Meyering  <jim@meyering.net>
76933
76934         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76935         s/ifndef/ifdef/.
76936
76937 2005-02-20  Neil Conway  <neilc@samurai.com>
76938
76939         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76940         returned by OSX/Darwin if the specified buffer is not large
76941         enough for the hostname.
76942
76943 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76944
76945         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76946         pass it to _help, otherwise the latter coredumps trying to
76947         dereference state.root_argp.
76948
76949 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         * modules/chdir-long (Depends-on): Add memrchr.
76952         * modules/memrchr (Files): Add lib/memrchr.h.
76953         (Include): "memrchr.h".
76954
76955 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76958
76959 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * lib/memrchr.h: New file.
76962         * lib/chdir-long.c: Include it.
76963         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76964         Don't bother including stddef.h.
76965
76966 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76969         inclusion.
76970         Include <sys/types.h>, for dev_t.
76971         (ME_DUMMY, ME_REMOTE): Move from here....
76972         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76973         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76974         Dmitry V. Levin.
76975         Include mountlist.h first, to test the interface.
76976
76977 2005-01-29  Bruno Haible  <bruno@clisp.org>
76978
76979         * lib/progname.c (program_name): Initialize.
76980         Needed when linking statically on MacOS X.
76981
76982 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76983
76984         Sync from coreutils.
76985         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76986         (Depends-on): Add c-strtod.
76987         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76988
76989 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         Sync from coreutils.
76992         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76993
76994         Remove files that are specific to coreutils.
76995         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76996
76997 2005-01-28  Bruno Haible  <bruno@clisp.org>
76998
76999         * modules/javacomp: New file.
77000         * MODULES.html.sh (Java): Add javacomp.
77001
77002 2005-01-28  Bruno Haible  <bruno@clisp.org>
77003
77004         * m4/javacomp.m4: New file, from GNU gettext.
77005
77006 2005-01-28  Bruno Haible  <bruno@clisp.org>
77007
77008         * lib/javacomp.sh.in: New file, from GNU gettext.
77009         * lib/javacomp.h: New file, from GNU gettext.
77010         * lib/javacomp.c: New file, from GNU gettext.
77011
77012 2005-01-26  Simon Josefsson  <jas@extundo.com>
77013
77014         * lib/gai_strerror.c: Use GPL in header.
77015
77016 2005-01-26  Bruno Haible  <bruno@clisp.org>
77017
77018         * modules/javaexec: New file.
77019         * MODULES.html.sh (Java): Add javaexec.
77020
77021 2005-01-26  Bruno Haible  <bruno@clisp.org>
77022
77023         * m4/javaexec.m4: New file, from GNU gettext.
77024
77025 2005-01-26  Bruno Haible  <bruno@clisp.org>
77026
77027         * lib/javaexec.sh.in: New file, from GNU gettext.
77028         * lib/javaexec.h: New file, from GNU gettext.
77029         * lib/javaexec.c: New file, from GNU gettext.
77030
77031 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77032
77033         * modules/lchown (Depends-on): Remove lchown.h
77034
77035 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77036
77037         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77038         must be defined if the header file was not found, in order
77039         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77040
77041 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77042
77043         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77044         initializers for struct pentry_state.
77045         (__argp_error): Check return value of __asprintf
77046         (__argp_failure): Translate error message
77047
77048         * lib/argp-parse.c: Removed braces around the expansion of N_()
77049
77050 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77053         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77054         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77055         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77056         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77057         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77058         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77059         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77060         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77061         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77062         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77063         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77064         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77065         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77066         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77067         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77068         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77069         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77070         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77071         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77072         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77073         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77074         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77075         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77076         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77077         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77078         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77079         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77080         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77081         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77082         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77083         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77084         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77085         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77086         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77087         Use an all-permissive copyright notice, recommended by RMS.
77088
77089 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77090
77091         * modules/chdir-long (Depends-on): Remove mempcpy.
77092
77093 2005-01-21  Jim Meyering  <jim@meyering.net>
77094
77095         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77096         same value as for Solaris 9.
77097
77098         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77099         component length.  This included changing the parameter to be
77100         of type `char *' rather than `char const *'.
77101         * lib/chdir-long.h (chdir_long): Update prototype.
77102
77103         * lib/openat.c (fdopendir, fstatat): New functions.
77104         * lib/openat.h: Include headers required for use of DIR and struct
77105         stat.
77106         [AT_SYMLINK_NOFOLLOW]: Define.
77107         (fdopendir, fstatat): Add prototypes.
77108
77109 2005-01-21  Bruno Haible  <bruno@clisp.org>
77110
77111         * modules/classpath: New file.
77112         * MODULES.html.sh (Java): Add classpath.
77113
77114 2005-01-21  Bruno Haible  <bruno@clisp.org>
77115
77116         * lib/classpath.h: New file, from GNU gettext.
77117         * lib/classpath.c: New file, from GNU gettext.
77118
77119 2005-01-20  Simon Josefsson  <jas@extundo.com>
77120
77121         * modules/version-etc-fsf: New file.
77122
77123 2005-01-20  Simon Josefsson  <jas@extundo.com>
77124
77125         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77126         * lib/version-etc.c: Remove version_etc_copyright.
77127         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77128         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77129
77130 2005-01-20  Simon Josefsson  <jas@extundo.com>
77131
77132         * lib/base64.h (isbase64): Add.
77133
77134         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77135         using a unsigned prototype, don't inline.
77136         (base64_decode): Use it.
77137
77138 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77141         it.
77142
77143 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * lib/save-cwd.c (save_cwd): Remove code to support the case
77146         where fchdir is missing or flaky.
77147
77148 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77151
77152 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77155         AC_LIBSOURCES now does this.
77156         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77157         with new ullong_max module.
77158
77159 2005-01-19  Bruno Haible  <bruno@clisp.org>
77160
77161         * modules/sh-quote: New file.
77162         * MODULES.html.sh (Executing programs): Add sh-quote.
77163
77164 2005-01-19  Bruno Haible  <bruno@clisp.org>
77165
77166         * lib/sh-quote.h: New file, from GNU gettext.
77167         * lib/sh-quote.c: New file, from GNU gettext.
77168
77169 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77170
77171         Merge from coreutils.
77172         * m4/ullong_max.m4: New file.
77173         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77174         (gl_MACROS): Assume localeconv exists.
77175
77176 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         Merge changes from coreutils, as described below in several
77179         changelogs dated today.
77180
77181         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77182         (O_DIRECTORY): Remove; not needed here, since "." must be
77183         a directory.  All uses removed.
77184         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77185         universal on Suns, and we also need to test for IRIX.
77186         Revamp code to use 'if' rather than '#if'.
77187         Avoid unnecessary comparison of cwd->desc to 0.
77188
77189         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77190         for known valid error numbers rather than observed invalid ones.
77191
77192 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77193
77194         * modules/ullong_max: New file.
77195
77196         * modules/chdir-long, modules/openat: New files.
77197         * modules/save-cwd (Depends-on): Depend on chdir-long.
77198         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77199
77200 2005-01-18  Jim Meyering  <jim@meyering.net>
77201
77202         Merge from coreutils.
77203         * m4/chdir-long.m4, m4/openat.m4: New files.
77204         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77205         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77206         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77207         is sane and DOES follow symlinks.  Besides, testing 20 different
77208         systems found no broken chown implementations.
77209         Prompted by a change in rsync's copy of this macro.
77210         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77211
77212         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77213
77214         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77215         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77216         NULL-means-set-to-current-time semantics.
77217         Remove temporary file immediately, rather than waiting
77218         for configure's at-exit trap code to do it.
77219
77220 2005-01-18  Jim Meyering  <jim@meyering.net>
77221
77222         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77223
77224         * lib/utimens.c (futimens): Account for the fact that futimes
77225         can also fail with errno == ENOSYS or errno == ENOENT.
77226         Patch from Dmitry V. Levin.
77227
77228         Change the name of the robust chdir function from chdir to chdir_long.
77229         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77230         (restore_cwd): Use chdir_long, not chdir.
77231         * lib/chdir-long.c: Renamed from chdir.c.
77232         * lib/chdir-long.h: Renamed from chdir.h.
77233         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77234         Hurd.
77235
77236 2005-01-18  Bruno Haible  <bruno@clisp.org>
77237
77238         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77239         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77240         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77241         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77242         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77243         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77244         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77245         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77246         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77247         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77248         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77249         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77250         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77251         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77252         Use an all-permissive copyright notice, recommended by RMS.
77253
77254 2005-01-18  Bob Proulx  <bob@proulx.com>
77255
77256         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77257         simplify offsetof() macro construct to avoid compile failure with
77258         native HP-UX 11.0 ANSI C compiler.
77259
77260 2005-01-17  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77263         redundant because stpncpy.m4 takes care of it.
77264
77265 2005-01-17  Bruno Haible  <bruno@clisp.org>
77266
77267         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77268
77269 2005-01-17  Bruno Haible  <bruno@clisp.org>
77270
77271         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77272         used.
77273
77274 2005-01-17  Bruno Haible  <bruno@clisp.org>
77275
77276         * lib/fwriteerror.h (fwriteerror): Change specification to include
77277         fclose.
77278         * lib/fwriteerror.c: Include <stdbool.h>.
77279         (fwriteerror): At the end, close the file stream. Record whether
77280         stdout was already closed.
77281
77282 2005-01-17  Bruno Haible  <bruno@clisp.org>
77283
77284         * lib/execute.c (environ): Declare if needed.
77285         * lib/pipe.c (environ): Likewise.
77286         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77287
77288 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77289
77290         * modules/argp: Depend on vsnprintf
77291
77292 2005-01-10  Jim Meyering  <jim@meyering.net>
77293
77294         * modules/closeout (Depends-on): Add atexit.
77295
77296 2005-01-06  Bruno Haible  <bruno@clisp.org>
77297
77298         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77299
77300 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77303         definitions to be after all include files, to avoid collisions.
77304         Problem reported by Bob Proulx.
77305
77306 2005-01-04  Jim Meyering  <jim@meyering.net>
77307
77308         Changes imported from coreutils.
77309         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77310         as the mkstemp template, use a temporary directory and an
77311         8.3-friendly template to avoid trouble on systems like DJGPP.
77312         Reported by Juan M. Guerrero via Stepan Kasal.
77313         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77314         close. Remove the temporary directory right away, rather than waiting
77315         for configure's at-exit trap code to do it.
77316         Suggestion from Stepan Kasal.
77317
77318 2005-01-01  Simon Josefsson  <jas@extundo.com>
77319
77320         * gnulib-tool: Print #include directives when --import'ing.
77321
77322 2004-12-28  Simon Josefsson  <jas@extundo.com>
77323
77324         * tests/test-base64.c: Include required header files.  Remove
77325         unused variables.
77326
77327 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77328
77329         * modules/error (Depends-on): Remove gettext.
77330
77331 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77332
77333         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77334         not needed.  This removes a dependency on the gettext module.
77335         [defined _LIBC]: Do not include <libintl.h>; not needed.
77336
77337 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77338
77339         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77340         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77341
77342 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77343
77344         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77345         HAVE_DECL_STRTOLD.
77346
77347 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         * modules/getdate (Depends-on): Remove alloca-opt.
77350
77351 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77354
77355 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77356
77357         * lib/argp-parse.c: Include <stddef.h>.
77358         (alignof, alignto): New macros.
77359         (parser_init): Don't assume that void * is aligned sufficiently
77360         for struct option.
77361
77362         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77363         need to extend the stack.
77364         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77365         large.
77366
77367 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77368
77369         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77370
77371 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77372
77373         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77374         (2004-10-24) change.  Apparently this was a false alarm.
77375
77376         * modules/getdate: Depend on alloca-opt, not alloca.
77377
77378 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77379
77380         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77381         Remove now-obsolete comment about AIX.
77382         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77383         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77384         (YYMAXDEPTH): New macro.
77385
77386 2004-12-18  Simon Josefsson  <jas@extundo.com>
77387
77388         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77389
77390 2004-12-18  Bruno Haible  <bruno@clisp.org>
77391
77392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77393
77394 2004-12-18  Bruno Haible  <bruno@clisp.org>
77395
77396         * lib/fatal-signal.c (fatal_signals): Make non-const.
77397         (init_fatal_signals): New function.
77398         (uninstall_handlers, install_handlers): Ignore signals that were set to
77399         SIG_IGN.
77400         (at_fatal_signal): Call init_fatal_signals.
77401         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77402         SIG_IGN.
77403         Reported by Paul Eggert.
77404
77405 2004-12-18  Bruno Haible  <bruno@clisp.org>
77406
77407         * doc/alloca.texi: New file.
77408         * doc/alloca-opt.texi: New file.
77409
77410 2004-12-17  Jim Meyering  <jim@meyering.net>
77411
77412         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77413         Otherwise, install-sh could exit with improper exit status when
77414         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77415
77416 2004-12-16  Simon Josefsson  <jas@extundo.com>
77417
77418         * tests/test-base64.c: Add license.
77419
77420 2004-12-15  Stepan Kasal  <address@hidden>
77421
77422         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77423
77424 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77425
77426         * modules/getcwd (Files): Add m4/d-ino.m4.
77427         Suggested by Mark D. Baushke.
77428
77429 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * lib/getdate.y (textint): New member "negative".
77432         (time_zone_hhmm): New function.
77433         Expect 14 shift-reduce conflicts, not 13.
77434         (o_colon_minutes): New rule.
77435         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77436         (yylex): Set the "negative" member of signed numbers.
77437
77438 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * doc/getdate.texi (Time of day items, Time zone items):
77441         Describe new formats +00:00, UTC+00:00.
77442
77443 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77444
77445         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77446         spurious "-l"s.  Problem reported by Stepan Kasal.
77447
77448 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77451         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77452
77453 2004-12-04  Simon Josefsson  <jas@extundo.com>
77454
77455         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77456         Vandoorselaere <yoann@prelude-ids.org>.
77457
77458 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77459
77460         Changes imported from coreutils.
77461         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77462         exist.
77463         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77464
77465 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         Changes imported from coreutils.
77468         * lib/hard-locale.c: Assume <locale.h> exists.
77469         Include "strdup.h".
77470         (GLIBC_VERSION): New macro.
77471         (hard_locale): Assume setlocale exists.
77472         Rewrite to avoid #ifdef.
77473         Use strdup rather than malloc + strcpy.
77474         * lib/human.c: Assume <locale.h> exists.
77475         (human_readable): Assume localeconv exists.
77476
77477 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * modules/hard-locale (Depends-on): Add strdup.
77480
77481 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77482
77483         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77484         convert T2, not T.  (Imported from libc.)
77485
77486 2004-11-30  Simon Josefsson  <jas@extundo.com>
77487
77488         * modules/restrict (License): Change to LGPL.
77489
77490 2004-11-30  Simon Josefsson  <jas@extundo.com>
77491
77492         * m4/restrict.m4: Add copyright and copying conditions.
77493
77494 2004-11-30  Simon Josefsson  <jas@extundo.com>
77495
77496         * m4/base64.m4: New file.
77497
77498 2004-11-30  Simon Josefsson  <jas@extundo.com>
77499
77500         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77501         base64.
77502
77503         * tests/test-base64.c: New file.
77504
77505         * modules/base64: New file.
77506
77507 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77510         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77511
77512         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77513
77514 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77517         (__getcwd.c): Don't restore errno; glibc doesn't.
77518         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77519         first, falling back to our code only if its results look suspicious.
77520         Ensure that the resulting buffer is only as large as necessary.
77521
77522         * lib/readutmp.c: Include readutmp.h first.
77523         Include <errno.h>, since readutmp.h no longer does that.
77524         * lib/readutmp.h: Don't include <errno.h>,
77525         <sys/param.h>, <time.h>; not needed to establish interface.
77526         (errno): Remove decl.
77527         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77528         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77529         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77530
77531 2004-11-28  Simon Josefsson  <jas@extundo.com>
77532
77533         * lib/base64.h, base64.c: New file.
77534
77535 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77538
77539 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77542         (Depends-on): Remove pathmax, same.  Add mempcpy.
77543         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77544         (Makefile.am): Append getcwd.h to lib_SOURCES.
77545         (Include): Add getcwd.h.
77546         (Maintainer): Change from Jim Meyering to "all, glibc",
77547         since getdate now uses intended-for-glibc code.
77548         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77549         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77550
77551 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77554         HP's ANSI C compiler.
77555         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77556         Declaring int functions causes warnings on some modern systems and
77557         shouldn't be needed to compile on ancient ones.
77558         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77559         defined.
77560
77561         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77562         with the following changes.
77563         (__set_errno): Parenthesize properly.
77564         Include <stdbool.h>.
77565         (MIN, MAX, MATCHING_INO): New macros.
77566         (__getcwd): Define with prototype, not K&R form.
77567         Use heuristics to allocate default buffer on stack if possible.
77568         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77569         behavior, and to avoid the PATH_MAX limit when computing
77570         ../../../../...
77571         Use MATCHING_INO to compare inode number to file.
77572         Check for arithmetic overflow in size calculations.
77573         Fix bug in reallocation of dot array that caused getcwd to fail
77574         on directories nested deeper than 75.
77575         Be more careful about saving errno on error.
77576         Do not use realloc; use only free+malloc, as this is a bit
77577         more flexible and avoids a needless copy operation.
77578         Do not inspect st_dev and st_ino for symbolic links; POSIX
77579         doesn't specify the latter.
77580         Check for closedir errors.
77581         Avoid needless casts.
77582         Use "#ifdef weak_alias" around weak_alias, to be like other
77583         glibc code.
77584         The following changes to getcwd.c have effect only when used in
77585         gnulib; they have no effect inside glibc proper.
77586         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77587         as alloca isn't used.
77588         (alloca, __alloca): Likewise.
77589         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77590         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77591         unconditionally, as gnulib assumes C89 or better.
77592         Do not include <sys/param.h>.
77593         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77594         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77595         better.
77596         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77597         Include <dirent.h> in a way that is compatible with modern Autoconf.
77598         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77599         New macros, if not already defined.
77600         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77601         Use "_LIBC", not "defined _LIBC", for consistency.
77602         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77603         a mempcpy module.
77604         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77605         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77606         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77607         credit only to Jim Meyering and adjust the copyright dates.
77608         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77609         <stdlib.h>, <unistd.h>, "pathmax.h".
77610         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77611         (INITIAL_BUFFER_SIZE): Remove.
77612         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77613
77614 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77617         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77618         Use the _ONCE methods, for efficiency.
77619         Check for fcntl.h.  In test program, include <errno.h>
77620         and <fcntl.h> if available.  Remove old K&R cruft from
77621         test program.  Check for common errors in GNU/Linux,
77622         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77623         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77624         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77625         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77626         name accordingly.
77627         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77628         accommodate new getcwd.c.
77629         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77630         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77631         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77632         that's all we need now.
77633
77634 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77635
77636         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77637         argp-parse.c depends on getopt internals, that means we should
77638         always use our getopt, to be on the safe side.
77639         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77640         order not to spoil the result of an eventual previous invocation
77641         of gl_GETOPT_SUBSTITUTE.
77642
77643 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77644
77645         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77646         redefinition warnings. To avoid them, include the defines
77647         in `#if !defined __need_getopt ... #endif'. The only place
77648         where __getopt_argv_const is used is in definitions
77649         of getopt_long and getopt_long_only below, which are as well
77650         protected by `#ifndef __need_getopt'.
77651         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77652         __need_getopt after including <stdio.h> and <unistd.h> These
77653         headers might have defined it.
77654
77655 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77658
77659 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77660
77661         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77662         (futimens): New function, which uses futimes if available.
77663         (futimens, utimens): Support timespec==NULL, with same semantics
77664         as utime and utimens.
77665         * lib/utimens.h (futimens): New decl.
77666
77667 2004-11-23  Jim Meyering  <jim@meyering.net>
77668
77669         * lib/getopt_.h: Remove trailing blanks.
77670
77671 2004-11-23  Jim Meyering  <jim@meyering.net>
77672
77673         * lib/__fpending.c: Add comment.
77674
77675 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * modules/canonicalize (Depends-on): Add xreadlink.
77678         Problem reported by James Youngman.
77679
77680 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77683         New macros.
77684         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77685         optopt): Use them instead of invoking ## directly; otherwise, the
77686         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77687
77688 2004-11-19  Bruno Haible  <bruno@clisp.org>
77689
77690         * lib/strtok_r.c: Move comments from here...
77691         * lib/strtok_r.h: ... to here.
77692
77693 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77696         implementations that mishandle size_t overflow.
77697
77698 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77701         might fail.  Problem reported by Yoann Vandoorselaere.
77702         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77703         implementations that mishandle size_t overflow.
77704
77705 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77706
77707         * modules/canon-host (Depends-on): Add strdup.
77708
77709 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77712
77713 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * lib/canon-host.c: Include "strdup.h".
77716         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77717         Use strdup instead of malloc/strcpy to duplicate strings.
77718
77719         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77720         (human_space_before_unit): New constant.
77721         * lib/human.c (human_readable): Support it.
77722
77723         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77724         (xgetcwd): Set errno correctly when failing.
77725         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77726         the failure is actually due to a PATH_MAX problem.
77727
77728         Further getopt changes to make it more likely that glibc will
77729         buy the changes back.
77730         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77731         (getopt): Use it, so to preserve glibc semantic
77732         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77733         when compiling for libc.
77734         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77735         (getopt_long, getopt_long_only): Use it.
77736
77737         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77738         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77739         (getopt): Argv is now char * const *, as per standard.
77740         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77741         not char *__getopt_argv_const *.
77742         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77743         _getopt_long_only_r): Likewise.
77744         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77745         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77746         _getopt_long_r, _getopt_long_only_r): Likewise.
77747         * lib/getopt_.h (__getopt_argv_const): Remove.
77748         (getopt): Argv is now char * const *, as per standard.
77749
77750         * lib/getdate.y (tORDINAL): New token.
77751         (day, relunit): Allow it for relative times.
77752         (relative_time_table): Use tORDINAL for ordinals.
77753
77754 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77757         Document that "second" isn't allowed as an ordinal number.
77758
77759 2004-11-16  Jim Meyering  <jim@meyering.net>
77760
77761         * modules/closeout (Depends-on): Add fpending.
77762
77763 2004-11-15  Jim Meyering  <jim@meyering.net>
77764
77765         * lib/closeout.c: Include "__fpending.h" once again.
77766         Include <stdbool.h>.
77767         (close_stdout): Don't fail just because stdout was closed initially,
77768         since some programs don't write to stdout in the normal course of
77769         operation (other than --version and --help), and we don't want this
77770         function to make e.g. `touch file >&-' fail.
77771         But do fail if it was closed and someone has tried to write to it.
77772         E.g., `printf foo >&-' must fail.
77773
77774 2004-11-13  Jim Meyering  <jim@meyering.net>
77775
77776         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77777
77778 2004-11-12  Simon Josefsson  <jas@extundo.com>
77779
77780         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77781         small doc fix is still pending.
77782
77783 2004-11-11  Simon Josefsson  <jas@extundo.com>
77784
77785         * modules/strtok_r: New file.
77786
77787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77788         strtok_r.
77789
77790 2004-11-11  Simon Josefsson  <jas@extundo.com>
77791
77792         * m4/strtok_r.m4: New file.
77793
77794         * m4/getopt.m4: Replace opterr.
77795
77796 2004-11-11  Simon Josefsson  <jas@extundo.com>
77797
77798         * lib/strtok_r.h, strtok_r.c: New file.
77799
77800 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77803         of replacing opterr, getopt, etc.  This should handle the
77804         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77805
77806 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77809         we can stop lying to compilers about the constness of argv when we
77810         are compiled outside glibc.
77811         (getopt, getopt_long, getopt_long_only): Use it.
77812         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77813         _getopt_internal, getopt): Likewise.
77814         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77815         _getopt_long_only_r): Likewise.
77816         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77817         _getopt_long_r, _getopt_long_only_r): Likewise.
77818
77819         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77820         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77821         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77822         the other external symbols.
77823         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77824         declaration, since the above renaming now works around collisions.
77825
77826 2004-11-11  Jim Meyering  <jim@meyering.net>
77827
77828         * lib/linebreak.c: Remove trailing blanks.
77829         * lib/alloca_.h: Likewise.
77830         * lib/acosl.c: Likewise.
77831         * lib/euidaccess.c: Likewise.
77832         * lib/allocsa.h: Likewise.
77833
77834 2004-11-10  Simon Josefsson  <jas@extundo.com>
77835
77836         * m4/getaddrinfo.m4: New file.
77837
77838 2004-11-10  Simon Josefsson  <jas@extundo.com>
77839
77840         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77841
77842 2004-11-10  Simon Josefsson  <jas@extundo.com>
77843
77844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77845         getaddrinfo.
77846
77847         * modules/getaddrinfo: New file.
77848
77849 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77852
77853 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * lib/mktime.c (SHR): New macro, which is a portable
77856         substitute for >> that should work even on Crays.
77857         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77858         Problem reported by Mark D. Baushke in
77859         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77860         * lib/getdate.y (SHR): Likewise.
77861         (tm_diff): Use it.
77862         * lib/strftime.c (SHR): Likewise.
77863         (tm_diff): Use it.
77864         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77865         quote_these_too, so that right shifts are well defined.  All uses
77866         changed.
77867
77868 2004-11-10  Jim Meyering  <jim@meyering.net>
77869
77870         Ensure that no close failure goes unreported.
77871         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77872         return early when it seems there's nothing to flush.
77873         Don't include __fpending.h.
77874
77875 2004-11-10  Jim Meyering  <jim@meyering.net>
77876
77877         * modules/closeout (Depends-on): Remove fpending.
77878
77879 2004-11-10  Jim Meyering  <jim@meyering.net>
77880
77881         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77882
77883 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77886         gl_FUNC_STRFTIME.
77887         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77888         and AC_REQUIRE when possible, to avoid duplicate checks.
77889         Check for <wchar.h>.
77890
77891 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77894
77895 2004-11-09  Bruno Haible  <bruno@clisp.org>
77896
77897         * m4/sockpfaf.m4: New file.
77898
77899 2004-11-05  Bruno Haible  <bruno@clisp.org>
77900
77901         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77902         Reported by Mark D. Baushke <mdb@cvshome.org>.
77903
77904 2004-11-04  Bruno Haible  <bruno@clisp.org>
77905
77906         2004-09-11  Bruno Haible  <bruno@clisp.org>
77907                 * allocsa.valgrind: New file.
77908         2004-02-06  Bruno Haible  <bruno@clisp.org>
77909                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77910                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77911                 Reported by Christopher Seip <chris.seip@hp.com>.
77912
77913 2004-11-04  Bruno Haible  <bruno@clisp.org>
77914
77915         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77916         (Makefile.am): Distribute it.
77917
77918 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77921         with errno == ERANGE if the buffer is too small.
77922         Problem reported by Mark D. Baushke.
77923
77924 2004-11-03  Albert Chin  <china@thewrittenword.com>
77925             Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77928         equivalent, substitute $ac_type for equivalent type rather than
77929         blindly using uint32_t *always* which won't work if uint32_t is not
77930         available.  Define _UINT32_T to work around typedef of uint32_t if
77931         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77932         2.5.1.
77933
77934 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * m4/jm-macros.m4: Sync from coreutils.
77937         (gl_MACROS): Check for mbrlen, for pathchk.
77938         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77939
77940 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * lib/xreadlink.c (MAXSIZE): New macro.
77943         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77944         size does not exceed MAXSIZE.  Avoid cast.
77945         As suggested by Mark D. Baushke in
77946         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77947         if readlink fails with buffer size just under MAXSIZE, try again
77948         with MAXSIZE.
77949
77950 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77953
77954 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77955         and  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77958         (get_date): Overparenthesize to avoid GCC warning.
77959
77960 2004-11-02  Bruno Haible  <bruno@clisp.org>
77961
77962         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77963         returns void.
77964
77965 2004-11-02  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77968         function returns void.
77969
77970 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77971
77972         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77973         fflush_unlocked, flockfile, funlockfile, funlockfile,
77974         fputs_unlocked, putc_unlocked.
77975
77976 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77979         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77980         already declared.
77981
77982 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         * modules/getdate (Files): Add doc/getdate.texi.
77985         (Depends-on): Add setenv, xalloc.
77986
77987 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         * lib/getdate.y: Add support for TZ="foo" within a date string.
77990         Fix some bugs near time_t boundaries.  Reject dates with
77991         out-of-range components, e.g., "Sept 31".
77992         Include <stdlib.h>, "setenv.h", "xalloc.h".
77993         (ISDIGIT_LOCALE): Remove; unused.
77994         Note that the TZ and time functions used here are not reentrant.
77995         (mktime_ok, get_tz): New functions.
77996         (TZBUFSIZE): New constant.
77997         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77998         This requires that we sometimes generate our own TZ="XXX..." setting.
77999
78000 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * doc/getdate.texi: New file, from coreutils with modifications for
78003         the new TZ parsing.
78004
78005 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78006
78007         * lib/mktime.c (not_equal_tm): Remove redundant check.
78008
78009 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * modules/regex (lib_SOURCES): Add regex.c.
78012         Reported by James Youngman in
78013         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78014
78015 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78016
78017         * lib/getdate.y: Use Bison 1.875 features, and some minor
78018         code cleanups.  This change does not affect semantics.
78019         Don't include <stdlib.h>; no longer needed.
78020         Don't include unlocked-io.h; only the "#if TEST" code uses
78021         stdio, and performance isn't crucial there.
78022         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78023         Bison 1.875 features as described below.
78024         All uses of "PC." replaced by "pc->".
78025         (YYSTYPE): Add a forward declaration.
78026         (yylex, yyerror): Use full prototypes in forward decls.
78027         Use "%pure-parser" rather than obsolescent "%pure_parser".
78028         Use %parse-param and %lex-param instead of obsolescent
78029         YYPARSE_PARAM and YYLEX_PARAM.
78030         (meridian_table, month_and_day_table, time_units_table,
78031         relative_time_table, time_zone_table, military_table,
78032         lookup_zone, lookup_word, get_date):
78033         Use NULL instead of 0 where appropriate.
78034         (to_hour): Avoid abort (), to avoid a dependency on
78035         stdlib.h.
78036         (yyerror, yylex): Now accepts parser_control * arg.
78037         (main) [TEST]: Use '\0' rather than 0 for char.
78038
78039 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78042
78043 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78046         It's now the caller's responsibility to handle the case where
78047         !HAVE_GETPAGESIZE && !defined getpagesize.
78048
78049         * lib/mktime.c (leapyear): Arg is long int, not int.
78050
78051 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78054
78055 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78058         missing.  Problem reported by James Youngman.
78059
78060 2004-10-16  Simon Josefsson  <jas@extundo.com>
78061
78062         * gnulib-tool: Fix comments.  Fix parse problem.
78063         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78064
78065 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78068         implementation of getopt_long.  Problem reported by Alexander Taler in:
78069         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78070
78071 2004-10-15  Bruno Haible  <bruno@clisp.org>
78072
78073         * gnulib-tool: Untabify. Initialize supplied_libname.
78074         (func_usage): More homogenous output.
78075         (func_modules_transitive_closure, func_modules_to_filelist,
78076         func_emit_lib_Makefile_am): New functions.
78077         (func_import): New function, extracted from big case statement. Use
78078         func_get_license, func_modules_transitive_closure,
78079         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78080         opt_lgpl. Don't use test -a, as it's not portable.
78081         (func_create_testdir): Use func_modules_transitive_closure,
78082         func_modules_to_filelist, func_emit_lib_Makefile_am.
78083
78084 2004-10-15  Bruno Haible  <bruno@clisp.org>
78085
78086         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78087
78088 2004-10-15  Bruno Haible  <bruno@clisp.org>
78089
78090         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78091         the portions belonging to each module.
78092         Suggested by Derek Robert Price <derek@ximbiot.com>.
78093
78094 2004-10-12  Simon Josefsson  <jas@extundo.com>
78095
78096         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78097         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78098         to real functions.
78099
78100 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78101
78102         * modules/vsnprintf: New file.
78103
78104 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78105
78106         * m4/vsnprintf.m4: New file.
78107
78108 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78109
78110         * lib/vsnprintf.h: New file.
78111         * lib/vsnprintf.c: New file.
78112
78113 2004-10-11  Bruno Haible  <bruno@clisp.org>
78114
78115         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78116         vsnprintf.
78117
78118 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78121
78122 2004-10-07  Bruno Haible  <bruno@clisp.org>
78123
78124         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78125         fits into the provided buffer.
78126
78127 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         * lib/diacrit.c, diacrit.h: Add GPL notice.
78130
78131         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78132         notice.
78133         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78134         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78135         This avoids a potential constant-folding bug.
78136
78137 2004-10-05  Bruno Haible  <bruno@clisp.org>
78138
78139         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78140         for the declaration of strsep.
78141
78142 2004-10-05  Bruno Haible  <bruno@clisp.org>
78143
78144         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78145
78146 2004-10-04  Simon Josefsson  <jas@extundo.com>
78147
78148         * modules/memmem: New file.
78149         * tests/test-memmem.c: New file.
78150         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78151
78152 2004-10-04  Simon Josefsson  <jas@extundo.com>
78153
78154         * m4/memmem.m4: New file.
78155
78156 2004-10-04  Simon Josefsson  <jas@extundo.com>
78157
78158         * lib/memmem.h: New file.
78159         * lib/memmem.c: New file, taken from glibc.
78160
78161 2004-10-04  Simon Josefsson  <jas@extundo.com>
78162
78163         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78164         '#ifdef USE_UNLOCKED_IO'.
78165
78166 2004-10-04  Simon Josefsson  <jas@extundo.com>
78167
78168         * config/srclist.txt: Add memmem from glibc.
78169
78170 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78171
78172         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78173
78174         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78175         modules/exclude, modules/getdate, modules/getline,
78176         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78177         modules/getusershell, modules/linebuffer, modules/md5,
78178         modules/mountlist, modules/posixtm, modules/readtokens,
78179         modules/readutmp, modules/regex, modules/sha1,
78180         modules/version-etc, modules/yesno:
78181         Remove dependency on unlocked-io.
78182
78183 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78184
78185         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78186
78187         * m4/unlocked-io.m4: Add copyright notice.
78188         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78189
78190 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78193         * lib/xmalloc.c (xmemdup): Likewise.
78194         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78195         XFREE): Remove these long-obsolescent macros.
78196         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78197         * lib/xstrdup.c: Remove.
78198
78199         * lib/regex.c (re_comp): Cast gettext return value to char *,
78200         Problem reported by Martin Neitzel via Mark D. Baushke.
78201
78202 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78205         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78206         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78207         regex.c, sha1.c, version-etc.c, yesno.c:
78208         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78209         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78210         the includer's responsibility.
78211
78212         Sync from coreutils.
78213
78214         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78215         points to the start of a string, as the C Standard says the
78216         resulting behavior is undefined.
78217
78218         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78219         simple -> simple_backups, numbered_existing ->
78220         numbered_existing_backups, numbered -> numbered_backups
78221         to avoid shadowing problems.  All uses changed.
78222         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78223         * lib/backupfile.c (check_extension, numbered_backup):
78224         Rename locals to avoid shadowing 'basename'.
78225         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78226         once.
78227
78228         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78229         * lib/.cvsignore: Add getopt.h.
78230
78231 2004-10-04  Bruno Haible  <bruno@clisp.org>
78232
78233         * modules/README: New file.
78234         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78235         not a module.
78236
78237 2004-10-02  Jim Meyering  <jim@meyering.net>
78238
78239         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78240
78241 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78242
78243         * modules/strsep: New file.
78244
78245 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78246
78247         * m4/strsep.m4: New file.
78248
78249 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78250
78251         * lib/strsep.h: New file.
78252         * lib/strsep.c: New file.
78253
78254 2004-10-01  Simon Josefsson  <jas@extundo.com>
78255
78256         * lib/snprintf.c (snprintf): Handle size==0.
78257
78258 2004-10-01  Simon Josefsson  <jas@extundo.com>
78259             Bruno Haible  <bruno@clisp.org>
78260
78261         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78262         (snprintf): Declare 'args'.
78263
78264 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * lib/snprintf.c: Remove comments as to why each header is needed.
78267
78268 2004-10-01  Bruno Haible  <bruno@clisp.org>
78269
78270         * MODULES.html.sh: Add strsep.
78271
78272 2004-09-30  Simon Josefsson  <jas@extundo.com>
78273
78274         * modules/snprintf: New file.
78275
78276 2004-09-30  Simon Josefsson  <jas@extundo.com>
78277
78278         * m4/snprintf.m4: New file.
78279
78280 2004-09-30  Simon Josefsson  <jas@extundo.com>
78281
78282         * lib/snprintf.h, lib/snprintf.c: New files.
78283
78284 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78285
78286         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78287         (hol_entry_help): Never translate an empty string.
78288         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78289         * lib/argp.h (OPTION_NO_TRANS): New option.
78290
78291 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78292
78293         * modules/argp (Maintainer): Replace Simon Josefsson
78294         by Sergey Poznyakoff.
78295
78296 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78297
78298         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78299         changes merged back into glibc.
78300
78301 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78302
78303         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78304
78305 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78306
78307         * lib/xvasprintf.c: Include xalloc.h.
78308         (xvasprintf): Use xalloc_die, not xmalloc_die.
78309
78310 2004-09-29  Bruno Haible  <bruno@clisp.org>
78311
78312         * modules/alloca-opt: New file, derived from modules/alloca.
78313         * modules/allocsa: Depend on alloca-opt instead of alloca.
78314         * modules/setenv: Likewise.
78315         * modules/vasnprintf: Likewise.
78316         * MODULES.html.sh: Add alloca-opt.
78317
78318 2004-09-28  Simon Josefsson  <jas@extundo.com>
78319
78320         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78321         LGPL, and to replace license template from GPL to LGPL.
78322
78323 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78324
78325         * modules/dummy: Change license to LGPL.
78326
78327 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78330
78331 2004-09-24  Simon Josefsson  <jas@extundo.com>
78332
78333         * modules/minmax (License): Change from GPL to LGPL.
78334
78335 2004-09-23  Simon Josefsson  <jas@extundo.com>
78336
78337         * gnulib-tool (--import): Typo.
78338
78339 2004-09-23  Simon Josefsson  <jas@extundo.com>
78340
78341         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78342
78343 2004-09-22  Bruno Haible  <bruno@clisp.org>
78344
78345         * modules/*: Add 'License' field.
78346         * gnulib-tool: Accept --extract-license option.
78347         (func_get_license): New function.
78348
78349 2004-09-21  Bruno Haible  <bruno@clisp.org>
78350
78351         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78352         Reported by Simon Josefsson.
78353
78354 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78357         gl_AC_TYPE_LONG_LONG.
78358
78359 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78362
78363 2004-09-18  Simon Josefsson  <jas@extundo.com>
78364         and  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78367         calls with autoreconf.  Define GL_LIB.
78368
78369 2004-09-14  Karl Berry  <karl@gnu.org>
78370
78371         * config/srclist.txt: unsync setenv.c, sigh.
78372
78373 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78374
78375         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78376         Problem reported by Bruno Haible in:
78377         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78378
78379 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         * config/srclist.txt: Comment out argp-pvh.c.
78382
78383 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78384
78385         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78386         in case some system header has #define'd it.  Problem reported by
78387         Soeren D. Schulze in
78388         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78389
78390 2004-09-09  Karl Berry  <karl@gnu.org>
78391
78392         * regex.[ch]: delete from the root.  These were supposed to be
78393                 synced with emacs cvs, but this has not happened for about
78394                 a year, and anyway nothing else uses emacs regex.[ch].
78395                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78396                 lib/regex[.ch] is untouched.
78397
78398 2004-09-09  Bruno Haible  <bruno@clisp.org>
78399
78400         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78401
78402 2004-09-09  Bruno Haible  <bruno@clisp.org>
78403
78404         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78405         modifications.
78406         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78407
78408 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78409
78410         * modules/xvasprintf: New file.
78411         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78412
78413 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78414
78415         * lib/xvasprintf.h: New file.
78416         * lib/xvasprintf.c: New file.
78417         * lib/xasprintf.c: New file.
78418
78419 2004-09-08  Bruno Haible  <bruno@clisp.org>
78420
78421         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78422
78423 2004-09-08  Bruno Haible  <bruno@clisp.org>
78424
78425         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78426         length is > INT_MAX.
78427         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78428         more.
78429
78430 2004-09-08  Bruno Haible  <bruno@clisp.org>
78431
78432         * lib/stdint_.h: New file, taken from GNU clisp.
78433
78434 2004-09-08  Bruno Haible  <bruno@clisp.org>
78435             Oskar Liljeblad  <oskar@osk.mine.nu>
78436
78437         * modules/stdint: New file.
78438         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78439
78440 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         Import from coreutils.
78443         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78444         strings on unbounded length.  alloca's performance benefits aren't
78445         that important here.
78446         (V_STRDUP): Remove.
78447         (parse_with_separator): New function, with most of the internals
78448         of the old parse_user_spec.  Allow user to omit both user and group,
78449         for compatibility with FreeBSD.
78450         Clone only the user name, not the entire spec.
78451         Do not set *uid, *gid unless entirely successful.
78452         Avoid memory leak in some failing cases.
78453         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78454         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78455         (parse_user_spec): Rewrite to use parse_with_separator.
78456
78457 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * modules/userspec: Don't depend on alloca.
78460
78461 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78464
78465 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78468         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78469         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78470
78471 2004-08-16  Simon Josefsson  <jas@extundo.com>
78472
78473         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78474         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78475         Add --dry-run for --import.
78476         Let user provided command line parameters override configure.ac
78477         settings.
78478
78479 2004-08-12  Simon Josefsson  <jas@extundo.com>
78480
78481         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78482         as discussed with Paul Eggert in threads rooted at
78483         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78484         and
78485         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78486         Before, the test was empty, and relied on ELIDE_CODE in source
78487         code.)
78488         (gl_PREREQ_GETOPT): New macro.
78489         (gl_GETOPT): Use them.
78490
78491 2004-08-12  Simon Josefsson  <jas@extundo.com>
78492
78493         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78494         * lib/getopt_.h: Renamed from getopt.h.
78495
78496 2004-08-12  Simon Josefsson  <jas@extundo.com>
78497
78498         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78499         Change default library name from libfoo to libgnu.
78500         Now, if you have a configure.ac that says:
78501                 gl_SOURCE_BASE(gl)
78502                 gl_M4_BASE(gl/m4)
78503                 gl_MODULES(error getopt etcetera)
78504                 gl_INIT
78505         you can import all you need by running:
78506                 ../gnulib/gnulib-tool --import
78507
78508         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78509         (Makefile.am): Rewrite, use logic from argz.
78510         (Include): Use <getopt.h> instead of "getopt.h".
78511
78512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78513
78514         * modules/argp (Files): Add m4/unlocked-io.m4.
78515         (Depends-on): Add extensions.
78516
78517 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78520         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78521         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78522         Check for program_invocation_name, program_invocation_short_name,
78523         flockfile, funlockfile, features.h, _getopt_long_only_r.
78524
78525 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78528         its complicated substitute.
78529         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78530         and program_invocation_name.
78531         (__argp_basename) [!_LIBC]: Remove; the only use was
78532         replaced by its body.
78533         (__argp_short_program_name): Change condition from
78534         !defined __argp_short_program_name to
78535         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78536         to match argp-namefrob.h.
78537         (__argp_failure): Don't assume strerror_r returns char *.
78538         * lib/argp-parse.c (N_): Define unconditionally.
78539         (argp_default_options): Fill out initializers with 0 to avoid
78540         gcc warnings.
78541
78542 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78545         getopt1.c.
78546
78547 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         Merge from coreutils.
78550
78551         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78552
78553         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78554         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78555
78556 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78557
78558         Merge from coreutils.
78559
78560         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78561         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78562         for Reliant Unix 5.43.
78563
78564         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78565         (union fooround): Use uintmax_t, not long int.
78566         The rest is a merge from libc:
78567         [defined _LIBC]: Include <shlib-compat.h>.
78568         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78569
78570         * lib/settime.c (settime): Recode to avoid warning with
78571         Sun Forte C 6U2.
78572
78573         * lib/strverscmp.c: Convert to UTF-8.
78574
78575 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78576
78577         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78578         m4/uintmax_t.m4.
78579
78580 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * modules/xalloc-die: New file.
78583         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78584
78585         * modules/md5 (Files): Add m4/uint32_t.m4.
78586         * modules/sha1: Renamed from modules/sha.
78587         (Files):
78588         Rename lib/sha.h to lib/sha1.h.
78589         Rename lib/sha.c to lib/sha1.c.
78590         Rename m4/sha.m4 to m4/sha1.m4.
78591         (lib_SOURCES): Likewise.
78592         (configure.ac): Rename gl_SHA to gl_SHA1.
78593         (Include): sha.h -> sha1.h.
78594
78595 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78596
78597         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78598         * m4/sha1.m4: Renamed from sha.m4.
78599         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78600
78601 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * lib/obstack.h (obstack_empty_p):
78604         Don't assume that chunk->contents is suitably aligned.
78605         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78606         Likewise. Problem reported by Benno in
78607         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78608
78609         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78610         readable.  This could be improved further but it'd take some work.
78611
78612 2004-08-08  Simon Josefsson  <jas@extundo.com>
78613
78614         * modules/xgethostname (Depends-on): Remove exit and error (not
78615         used).
78616
78617         * modules/getpass-gnu: Add getpass.h.
78618         (Depends-on): Add stdbool.
78619         * modules/getpass: Add getpass.h.
78620
78621 2004-08-08  Simon Josefsson  <jas@extundo.com>
78622
78623         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78624         Check getpass declaration.
78625
78626 2004-08-08  Simon Josefsson  <jas@extundo.com>
78627
78628         * lib/xgethostname.c: Don't include error.h (not used).
78629
78630         * lib/getpass.h: Add.
78631         * lib/getpass.c: Include getpass.h first.
78632
78633 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * lib/xalloc-die.c: New file.
78636         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78637         All uses removed.
78638         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78639         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78640         xalloc-die.c.
78641         (_, N_, xalloc_die): Move to xalloc-die.c.
78642         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78643         so that we needn't mess with xalloc_msg_memory_exhausted.
78644
78645         * lib/sha1.h: Renamed from sha.h.
78646         (SHA1_H): Renamed from _SHA_H.
78647         (sha1_ctx): Renamed from sha_ctx.
78648         (sha1_init_ctx): Renamed from sha_init_ctx.
78649         (sha1_process_block): Renamed from sha_process_block.
78650         (sha1_process_bytes): Renamed from sha_process_bytes.
78651         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78652         (sha1_read_ctx): Renamed from sha_read_ctx.
78653         (sha1_stream): Renamed from sha_stream.
78654         (sha1_buffer): Renamed from sha_buffer.
78655         * lib/sha1.c: Likewise; renamed from sha.c.
78656         Do not include <sys/types.h>.
78657         Include <stddef.h> rather than <stdlib.h>.
78658
78659 2004-08-08  Bruno Haible  <bruno@clisp.org>
78660
78661         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78662         FILESYSTEM_PREFIX_LEN.
78663         * lib/progreloc.c: Likewise.
78664         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78665
78666 2004-08-06  Simon Josefsson  <jas@extundo.com>
78667
78668         * modules/progname (Depends-on): Don't depend on stdbool.
78669
78670 2004-08-06  Simon Josefsson  <jas@extundo.com>
78671
78672         * modules/getsubopt: New file.
78673         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78674         getsubopt.
78675
78676 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         More merge from coreutils.
78679
78680         * m4/utimens.m4, m4/utimecmp.m4: New files.
78681         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78682         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78683         prereq.m4, sha.m4: Import changes from coreutils.
78684
78685 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         More merge from coreutils.
78688         * modules/raise, modules/readtokens0, modules/utimens:
78689         * modules/utimecmp, module/xnanosleep: New files.
78690         * modules/strftime: Add lib/strftime.h.
78691         Change include from <time.h> to "strftime.h".
78692         * modules/yesno: Add lib/yesno.h.
78693         * modules/backupfile: Remove lib/addext.c.
78694         * modules/euidaccess: Add stat-macros.h.
78695         * modules/canonicalize, modules/euidaccess,
78696         modules/filemode, modules/lchown, modules/makepath,
78697         modules/rmdir, modules/stat: Likewise.
78698
78699 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         Merge from tar.
78702         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78703         SIZE_MAX is a valid preprocessor constant.
78704         (__argp_basename): Change from "#ifndef _LIBC"
78705         to "#ifndef __argp_short_program_name", so that
78706         we don't compile these functions for tar.
78707
78708         More merges from coreutils.
78709         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78710         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78711         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78712         * lib/addext.c: Remove; no longer needed.
78713         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78714         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78715         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78716         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78717         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78718         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78719         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78720         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78721         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78722         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78723         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78724         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78725         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78726         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78727         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78728         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78729         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78730         Import changes from coreutils.
78731
78732 2004-08-05  Simon Josefsson  <jas@extundo.com>
78733
78734         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78735
78736 2004-08-05  Simon Josefsson  <jas@extundo.com>
78737
78738         * m4/getsubopt.m4: New file.
78739
78740 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         Merge from coreutils.
78743
78744         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78745         * m4/getcwd-path-max.m4: New files.
78746
78747         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78748         FILESYSTEM_PREFIX_LEN ->
78749         FILE_SYSTEM_PREFIX_LEN.
78750         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78751         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78752         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78753         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78754
78755         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78756         prerequisite modules now handle the DOS stuff.
78757         Don't check for unistd.h.
78758
78759 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         Merge from coreutils.
78762
78763         * lib/.gdb-history: Remove; this doesn't belong here.
78764
78765         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78766         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78767         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78768         * lib/getcwd.c: New files.
78769
78770         * lib/dirname.h: Include <stdbool.h>.
78771         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78772         for consistency with POSIX terminology.  All uses changed.
78773         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78774         (strip_trailing_slashes): Use bool for booleans.
78775         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78776
78777         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78778         sometimes returns a positive errno value even when it succeeds.
78779         (print_errno_message) [!LIBC]: Fall back on strerror if
78780         __strerror_r fails.
78781
78782         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78783         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78784         (longest_relative_suffix): New function.
78785         (path_concat): Use it.  Assume first argument is not NULL.
78786         Port to DOS.  Omit redundant separators.
78787         Report an error instead of returning NULL.
78788         Use mempcpy instead of memcpy.
78789         (xpath_concat): Remove: not declared or used.
78790
78791         * lib/same.h: Include <stdbool.h>
78792         (same_name): Return bool, not int.
78793         * lib/same.c (same_name): Likewise.
78794         (errno): Don't declare; we assume C89 or better now.
78795
78796         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78797         if not already defined.
78798
78799         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78800         * lib/dup-safer.c (errno): Likewise.
78801
78802 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         Merge from coreutils.
78805         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78806         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78807         * modules/path-concat: Don't depend on strdup.
78808
78809 2004-08-03  Simon Josefsson  <jas@extundo.com>
78810
78811         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78812         * lib/progname.h: Don't include stdbool.h.
78813
78814 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78817         * MODULES.html.sh (func_all_modules): Remove fatal.
78818
78819 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78822
78823 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78826         working.
78827
78828 2004-08-02  Simon Josefsson  <jas@extundo.com>
78829
78830         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78831         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78832         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78833
78834 2004-08-01  Simon Josefsson  <jas@extundo.com>
78835
78836         * lib/xgetdomainname.c: Include stdlib.h, for free().
78837
78838 2004-07-19  Bruno Haible  <bruno@clisp.org>
78839
78840         * MODULES.html.sh (func_all_modules): Add dummy.
78841
78842 2004-07-16  Simon Josefsson  <jas@extundo.com>
78843
78844         * modules/dummy: New file.
78845
78846 2004-07-16  Simon Josefsson  <jas@extundo.com>
78847
78848         * lib/dummy.c: New file.
78849
78850 2004-07-16  Bruno Haible  <bruno@clisp.org>
78851
78852         * lib/backupfile.h: Add extern "C" for C++.
78853         * lib/closeout.h: Likewise.
78854         * lib/copy-file.h: Likewise.
78855         * lib/findprog.h: Likewise.
78856         * lib/full-write.h: Likewise.
78857         * lib/pathname.h: Likewise.
78858         * lib/progname.h: Likewise.
78859         * lib/stpcpy.h: Likewise.
78860         * lib/stpncpy.h: Likewise.
78861         * lib/strcase.h: Likewise.
78862         * lib/strstr.h: Likewise.
78863         * lib/xalloc.h: Likewise.
78864
78865         * lib/mbswidth.h: Add extern "C" for C++.
78866         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78867
78868 2004-07-13  Robert Millan  <robertmh@gnu.org>
78869
78870         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78871
78872 2004-07-09  Simon Josefsson  <jas@extundo.com>
78873
78874         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78875         failed without this.)
78876
78877 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * modules/chown (Files): Add lib/fchown-stub.c, since
78880         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78881
78882 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/fchown-stub.c: New file.
78885
78886 2004-06-24  Jim Meyering  <jim@meyering.net>
78887
78888         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78889
78890 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * modules/argz: Omit "#include".
78893
78894         * MODULES.html.sh (func_all_modules): Add calloc, to match
78895         2004-06-01 addition of calloc module.
78896
78897 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78898
78899         * m4/argz.m4: New file, which is autoupdated from libtool.
78900
78901 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78904         libtool.
78905
78906 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * config/srclist-update: Don't insist on "USA." before the
78909         close-comment, as libtool omits the period and puts the */ on a
78910         separate line.
78911         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78912         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78913
78914 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78915
78916         * modules/argz: New file.
78917         * MODULES.html.sh (func_all_modules): Add argz.
78918
78919 2004-06-12  Jim Meyering  <jim@meyering.net>
78920         and  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * modules/hash (Files): Add lib/xalloc.h.
78923         * modules/pipe (Depends-on): Add wait-process.
78924         * modules/stat (Depends-on): Add xalloc.
78925         * modules/userspec (Files): Add lib/userspec.h.
78926         * modules/xstrto
78927
78928         Upgrade from gettext-0.13.
78929         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78930         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78931         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78932
78933 2004-06-10  Jim Meyering  <jim@meyering.net>
78934
78935         * lib/calloc.c: New file.
78936
78937 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * lib/getdate.y (yylex): Allow space between sign and number.
78940         Problem reported by Dan Jacobson.
78941
78942 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         Merge from coreutils CVS.
78945
78946         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78947         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78948         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78949         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78950         xstrtol.m4: Fix copyright date and/or serial number.
78951
78952         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78953         See if we need an fchown replacement.
78954         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78955         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78956         and use the replacement function if we detect either defect.
78957
78958         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78959         gl_UTIMECMP.
78960
78961 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78962         and  Jim Meyering  <jim@meyering.net>
78963
78964         Merge from coreutils CVS.
78965
78966         * lib/stat-macros.h: New file, with contents from file-type.h
78967         and coreutils' system.h.
78968         * lib/file-type.c: Include "stat-macros.h".
78969         * lib/file-type.h (file_type): Move all macro definitions to new file,
78970         stat-macros.h.
78971
78972         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78973         Wrap old code with this conditional.
78974         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78975         function that does not dereference symlinks.
78976         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78977
78978         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78979         dependency problems.
78980         (xreadlink): Accept new arg SIZE, for efficiency.
78981         All decls and uses changed.
78982         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78983
78984         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78985         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78986
78987         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78988         sysexits.h.
78989
78990 2004-06-01  Jim Meyering  <jim@meyering.net>
78991
78992         * m4/calloc.m4: New file.
78993
78994 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78997         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78998         Also, fix a typo in a diagnostic.
78999
79000 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79003         or AC_FUNC_REALLOC.
79004
79005 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79008         macros to be defined.
79009         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79010         the allocator returns NULL because the requested size is zero.
79011
79012 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79015         var.  Add comment explaining why libc still defines it.  This
79016         merges the following patch from glibc:
79017         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79018
79019 2004-05-20  Andreas Schwab  <schwab@suse.de>
79020
79021         * m4/free.m4: Replace free if it not known to work, not the other
79022         way round.
79023
79024 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79027         present in glibc since revision 1.1 of this file.
79028         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79029         obstack_alignment_mask, obstack_alloc, obstack_base,
79030         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79031         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79032         obstack_grow0, obstack_init, obstack_int_grow,
79033         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79034         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79035         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79036         nonexistent functions.
79037
79038 2004-05-18  Karl Berry  <karl@gnu.org>
79039
79040         * config/srclist.txt: break link for vasnprintf.c.
79041
79042 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         Port obstack to the AS/400, where pointers are 16 bytes wide and
79045         you cannot cast an integer to a valid pointer.  This patch is
79046         currently waiting to be integrated into glibc; see
79047         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79048
79049         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79050         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79051         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79052         (struct obstack): temp member is now a union of a pointer and
79053         an integer, instead of an integer.  All integer uses changed.
79054         This does not affect the physical layout of struct obstack,
79055         except on hosts (like the AS/400) where the size or alignment of
79056         void * is greater than that of ptrdiff_t.
79057         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79058         __STDC__)]: Store temporary in pointer member of union, not
79059         integer member.
79060         * lib/obstack.c: Include <stddef.h>, for offsetof.
79061         (struct fooalign): Remove; it doesn't need a name.
79062         (union fooround): Change double to long double, and add void *.
79063         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79064         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79065         not a macro.  Hence the values are always int; so remove all
79066         casts-to-int in uses.
79067
79068 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79069
79070         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79071         we can get this patch merged into glibc.
79072
79073 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79074             Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * m4/argp: Depend on alloca.
79077
79078 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79079             Paul Eggert  <eggert@cs.ucla.edu>
79080
79081         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79082         freecoding.
79083
79084 2004-05-17  Bruno Haible  <bruno@clisp.org>
79085
79086         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79087         precision that consists of a '.' followed by an empty digit string.
79088         Patch by Tor Lillqvist <tml@iki.fi>.
79089
79090 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79093         for backward compatibility with older code.  We need our own
79094         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79095         it under some other name, and our alloca.h will define it.
79096
79097 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79098             Derek Price  <derek@ximbiot.com>
79099
79100         * lib/alloca.c: Include <alloca.h>, to get our interface.
79101         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79102         include <alloca.h> first.  Use C89 prototype for alloca; this
79103         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79104         Use #elif for simplicity, since we can assume C89 now.
79105         Don't try to source the system alloca.h since it will not be found
79106         and to prevent recursively including its replacement.
79107         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79108         * lib/regex.c: Likewise.
79109
79110 2004-05-16  Derek Price  <derek@ximbiot.com>
79111             Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         getline cleanup.  This changes the getndelim2 API: both order of
79114         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79115         no delimiter).
79116
79117         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79118         interface does that.
79119         (getline): Always use getdelim, so that we don't have two
79120         copies of this code.
79121         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79122         if available.
79123         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79124         (GETNDELIM2_MAXIMUM): New macro.
79125         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79126         instead of the old practice of delim2==0.  All callers changed.
79127         Return -1 on overflow, instead of returning junk.
79128         Do not set *linesize unless allocation succeeds.
79129         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79130         that we include sys/types.h.
79131         * lib/getnline.h: Likewise.
79132         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79133         (getndelim2): Reorder arguments.
79134         * lib/getnline.c (getnline, getndelim):
79135         Don't discard the NMAX argument.
79136         (getnline): Invoke getndelim, to avoid code duplication.
79137         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79138         of (size_t) -1 by callers of the getnline family.
79139
79140 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79143         Check for gettimeofday.
79144         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79145         Check for settimeofday, stime.
79146
79147 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * lib/nanosleep.c (suspended): Change its type from int to
79150         sig_atomic_t volatile.
79151         (first_call): Make it private to rpl_nanosleep, and have it
79152         be zero initially as that's a bit faster.
79153         (my_usleep): Round up fractional times instead of truncating them,
79154         as this is the usual meaning for 'sleep'.
79155
79156         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79157         doesn't work.
79158         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79159         (ENOSYS): Define if not defined.
79160         (settime): Fall back on stime if it exists and settimeofday fails.
79161         But don't bother with fallbacks if a method fails with errno == EPERM.
79162
79163 2004-05-11  Jim Meyering  <jim@meyering.net>
79164
79165         Prior to this change, the save_cwd caller required read access to the
79166         current directory on most systems (ones with the fchdir function).
79167
79168         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79169         fails, try write-only, and finally, resort to using xgetcwd.
79170
79171 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * lib/obstack.c, obstack.h: Import changes from libc.
79174
79175 2004-04-28  Bruno Haible  <bruno@clisp.org>
79176
79177         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79178         also implicitly appends .exe to executables.
79179         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79180         accepts Windows pathnames.
79181         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79182         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79183         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79184         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79185         Reported by Derek Robert Price <derek@ximbiot.com>.
79186
79187 2004-04-21  Karl Berry  <karl@gnu.org>
79188
79189         * config/srclist.txt (localcharset.c): break sync.
79190
79191 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79192
79193         * m4/host-os.m4: Add a copyright notice.
79194
79195 2004-04-20  Jim Meyering  <jim@meyering.net>
79196
79197         Change UTILS_ to gl_ in AC_DEFINE'd names.
79198         Change utils_- and jm_-prefixed variables, too.
79199         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79200         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79202
79203         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79204         Don't emit trailing blanks.
79205         Also rename jm_-prefixed variables to have gl_ prefix.
79206
79207         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79208         Also rename jm_-prefixed variables to have gl_ prefix.
79209
79210         * m4/jm-macros.m4: Reflect the renamings.
79211         * m4/prereq.m4: Likewise.
79212
79213 2004-04-20  Jim Meyering  <jim@meyering.net>
79214
79215         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79216         memory.
79217
79218 2004-04-20  Jim Meyering  <jim@meyering.net>
79219             Bruno Haible  <bruno@clisp.org>
79220
79221         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79222         memory when realloc fails.
79223
79224 2004-04-19  Jim Meyering  <jim@meyering.net>
79225
79226         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79227         now that readutmp.c may call `free (0)'.
79228
79229 2004-04-19  Bruno Haible  <bruno@clisp.org>
79230
79231         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79232         * m4/inttypes_h.m4: Likewise.
79233         * m4/stdint_h.m4: Likewise.
79234         * m4/intmax_t.m4: Likewise.
79235         * m4/uintmax_t.m4: Likewise.
79236
79237 2004-04-18  Jim Meyering  <jim@meyering.net>
79238
79239         * m4/prereq.m4: Don't forbid jm_ prefix.
79240
79241         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79242         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79243         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79244         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79245         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79246         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79247         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79248         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79249         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79250         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79251         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79252         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79253         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79254         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79255         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79256         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79257         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79258         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79259         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79260
79261 2004-04-18  Jim Meyering  <jim@meyering.net>
79262
79263         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79264         failure, don't leak memory and do call END_UTMP_ENT.
79265
79266 2004-04-16  Jim Meyering  <jim@meyering.net>
79267
79268         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79269         coreutils' stat program.
79270         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79271
79272 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79273
79274         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79275         C89.
79276         (CHAR_BIT): Remove, since we assume C89.
79277         Include <stdint.h> if available, as per current Autoconf CVS advice.
79278
79279 2004-03-31  Jim Meyering  <jim@meyering.net>
79280
79281         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79282         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79283         * m4/xalloc.m4: Likewise.
79284
79285 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79286
79287         Merge from coreutils.
79288
79289         * m4/inttostr.m4: New file.
79290         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79291         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79292         Require gl_CLOCK_TIME.
79293         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79294
79295 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79296
79297         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79298         not bool, to be more consistent with Unix conventions.
79299         Suggested by Bruno Haible.
79300
79301         Merge from coreutils.
79302
79303         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79304         * lib/umaxtostr.c: New files.
79305
79306         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79307         the usual <time.h> dance.
79308         (get_date): Change signature to support fractional time stamps.
79309         All callers changed.
79310         * lib/getdate.y: Include "getdate.h" first, as we can now
79311         assume C89 and don't need to worry about 'const'.
79312         Similarly, include "unlocked-io.h" near start, not in middle.
79313         Include <limits.h>.
79314         (textint.value): Use long int rather than int.
79315         (textint.digits): Use size_t rather than int.
79316         (BILLION, LOG10_BILLION): New constants.
79317         (parser_control): New member rel_ns.  Members day_ordinal,
79318         time_zone, month, day, hour, minutes, rel_year, rel_month,
79319         rel_day, rel_hour, rel_minutes, rel_seconds
79320         are now long int, not int.  Member seconds is now struct timespec,
79321         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79322         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79323         not int.
79324         (%union.intval): Now long int, not int.
79325         New member timespec.
79326         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79327         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79328         (spec): Now is a timespec or an item list.
79329         (timespec, items): New nonterminals.
79330         (time, rel, relunit, number, get_date):
79331         Add support for fractional seconds.
79332         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79333         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79334         (to_hour): First arg is now long int, not int.
79335         (to_year): Returns long int, not int.
79336         Don't treat year -70 like 70.
79337         (tm_diff): Returns long int, not int.
79338         (lookup_word): Use bool instead of int when appropriate.
79339         (yylex): Use size_t for count, not int.
79340         Detect overflow when parsing large integer constants.
79341         Add support for fractions.
79342         (get_date): Make pointers 'const' if possible.
79343         Use more-portable code to detect integer overflow.
79344         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79345         Don't use ctime; it's not reliable if the year has >4 digits.
79346
79347         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79348         This is for compatibility with BSD.
79349
79350         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79351         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79352         From coreutils' system.h.
79353
79354         * lib/userspec.c: Don't include "posixver.h".
79355         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79356         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79357         compatible extension.  Simplify code by removing a boolean int
79358         that was always nonzero if a string was nonnull.
79359
79360 2004-03-30  Jim Meyering  <jim@meyering.net>
79361
79362         Merge from coreutils.
79363
79364         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79365         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79366         on some systems one must include <grp.h> before it.
79367         Reported by Christian Krackowizer.
79368
79369 2004-03-30  Jim Meyering  <jim@meyering.net>
79370
79371         Merge from coreutils.
79372
79373         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79374
79375         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79376         an empty input stream.
79377
79378         * lib/readtokens.c: Include <stdbool.h>.
79379         (readtoken): Use `size_t' rather than int/long.
79380         All callers adjusted.
79381         Use `bool' rather than `int' where appropriate.
79382         Use memset rather than an explicit loop.
79383         Use x2nrealloc rather than xrealloc.
79384         Allow the use of `\0' as a delimiter.
79385         (readtokens): Likewise.
79386         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79387
79388 2004-03-30  Jim Meyering  <jim@meyering.net>
79389
79390         * m4/realloc.m4: Remove file, since now it does no more than
79391         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79392         the `configure.ac' section of module/realloc.
79393         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79394
79395 2004-03-30  Bruno Haible  <bruno@clisp.org>
79396
79397         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79398         nonnull.
79399
79400 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79401
79402         Merge changes to getloadavg.c from coreutils and Emacs.
79403
79404         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79405         Define to an expression, not to the empty string.
79406         Include cloexec.h and xalloc.h.
79407         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79408         Use set_cloexec_flag rather than rolling our own.
79409         * lib/cloexec.c, lib/cloexec.h: New files.
79410
79411 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79412
79413         * m4/cloexec.m4: New file.
79414
79415 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79416
79417         * lib/getopt.h: Sync with libc CVS.
79418
79419 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79420             Bruno Haible  <bruno@clisp.org>
79421
79422         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79423         mbswidth.
79424
79425 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79426             Bruno Haible  <bruno@clisp.org>
79427
79428         * lib/mbswidth.h: Include <wchar.h> only if
79429         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79430         <wchar.h>.
79431         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79432
79433 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79434
79435         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79436         Sync with libc CVS.
79437         * lib/getopt_int.h: New file, also synced from libc.
79438
79439 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79440
79441         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79442         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79443         Bring back getopt.c, getopt.h, getopt1.c.
79444
79445 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79446
79447         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79448         All uses changed.  Check for sa_sigaction member; this fixes
79449         a bug first reported by Jason Andrade in
79450         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79451
79452 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79453
79454         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79455         '#if' expressions.  Unlike the code it replaces, it does not
79456         depend on (defined _SC_PAGESIZE).  However, it does depend on
79457         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79458         first reported by Jason Andrade in
79459         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79460
79461 2004-02-25  Simon Josefsson  <jas@extundo.com>
79462
79463         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79464
79465 2004-02-25  Simon Josefsson  <jas@extundo.com>
79466
79467         * lib/strdup.h: New file.
79468         * lib/strdup.c: Include it.
79469         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79470         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79471
79472 2004-02-23  Karl Berry  <karl@gnu.org>
79473
79474         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79475         (from fencepost.gnu.org:/gd/gnuorg).
79476
79477 2004-02-23  Karl Berry  <karl@gnu.org>
79478
79479         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79480         * config/srclist.txt: add maintain/standards documents.
79481
79482 2004-02-18  Bruno Haible  <bruno@clisp.org>
79483
79484         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79485         Reported by Derek Robert Price <derek@ximbiot.com>.
79486
79487 2004-02-16  Karl Berry  <karl@gnu.org>
79488
79489         * config/mkinstalldirs, install-sh: update from automake.
79490
79491 2004-02-06  Karl Berry  <karl@gnu.org>
79492
79493         * m4/po.m4: update from gettext 0.14.1.
79494
79495 2004-02-06  Karl Berry  <karl@gnu.org>
79496
79497         * lib/config.charset: update from gettext 0.14.1.
79498
79499 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79500
79501         Add comments and code, prompted by suggestions from Bruno Haible
79502         for sh-quote.
79503         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79504         describing the enum quoting_style values.
79505         * lib/quotearg.c (quotearg_alloc): New function.
79506         (quotearg_buffer_restyled): Treat lone { and } as special.
79507         Treat = as special.  Work around bug with older shells
79508         that "see" a '\' that is really the 2nd byte of a multibyte char.
79509         Quote empty string with shell_quoting_style.
79510
79511 2004-02-03  Bruno Haible  <bruno@clisp.org>
79512
79513         * m4/pipe.m4: New file, from GNU gettext.
79514
79515 2004-02-03  Bruno Haible  <bruno@clisp.org>
79516
79517         * lib/pipe.h: New file, from GNU gettext.
79518         * lib/pipe.c: New file, from GNU gettext.
79519
79520 2004-01-27  Bruno Haible  <bruno@clisp.org>
79521
79522         * m4/execute.m4: New file, from GNU gettext.
79523
79524 2004-01-27  Bruno Haible  <bruno@clisp.org>
79525
79526         * lib/execute.h: New file, from GNU gettext.
79527         * lib/execute.c: New file, from GNU gettext.
79528         * lib/w32spawn.h: New file, from GNU gettext.
79529
79530 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79531
79532         Merge from diffutils.
79533
79534         * lib/file-type.c (file_type): Add typed memory objects.
79535         * lib/file-type.h (S_TYPEISTMO): New macro.
79536
79537         * lib/c-stack.h (c_stack_action): Remove argv argument.
79538         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79539         (die): Don't calculate message unless segv_action returns.
79540         (get_stack_location, min_address_from_argv, max_address_from_argv,
79541         volatile stack_base, volatile_stack_size): Remove.
79542         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79543         that every segmentation violation is a stack overflow.  (Ouch!)
79544         See Debian bug 136249 (still outstanding) for more info about why
79545         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79546
79547 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79548
79549         Exit-status fix from coreutils.
79550
79551         Use exit_failure consistently in place of EXIT_FAILURE,
79552         so that program exit statuses are consistent on failure.
79553
79554         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79555         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79556         * lib/argmatch.h: Comment fix to match the above.
79557         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79558         Now a macro referring to exit_failure, instead of a separate
79559         variable.  Include "exitfail.h" to get it.
79560         * lib/xstrtol.h: Include "exitfail.h".
79561         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79562
79563         * lib/long-options.c (parse_long_options): Use prototype
79564         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79565         for clarity.
79566
79567 2004-01-21  Jim Meyering  <jim@meyering.net>
79568
79569         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79570         so as not to conflict with a different-sized __mktime_internal
79571         function in GNU libc.
79572         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79573         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79574
79575 2004-01-20  Karl Berry  <karl@gnu.org>
79576
79577         * config/config.guess: update from config.
79578
79579         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79580
79581 2004-01-20  Bruno Haible  <bruno@clisp.org>
79582
79583         Safer stack allocation.
79584         * lib/setenv.c: Include allocsa.h.
79585         (alloca): Remove fallback definition.
79586         (freea): Remove macro.
79587         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79588         instead of freea.
79589
79590 2004-01-20  Bruno Haible  <bruno@clisp.org>
79591
79592         * m4/eealloc.m4: New file, from GNU gettext.
79593
79594 2004-01-20  Bruno Haible  <bruno@clisp.org>
79595
79596         * m4/allocsa.m4: New file, from GNU gettext.
79597
79598 2004-01-20  Bruno Haible  <bruno@clisp.org>
79599
79600         * lib/xallocsa.h: New file, from GNU gettext.
79601         * lib/xallocsa.c: New file, from GNU gettext.
79602
79603 2004-01-20  Bruno Haible  <bruno@clisp.org>
79604
79605         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79606
79607 2004-01-20  Bruno Haible  <bruno@clisp.org>
79608
79609         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79610         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79611         specially.
79612
79613 2004-01-20  Bruno Haible  <bruno@clisp.org>
79614
79615         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79616         patch.
79617
79618 2004-01-20  Bruno Haible  <bruno@clisp.org>
79619
79620         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79621
79622 2004-01-20  Bruno Haible  <bruno@clisp.org>
79623
79624         * lib/eealloc.h: New file.
79625
79626 2004-01-20  Bruno Haible  <bruno@clisp.org>
79627
79628         * lib/binary-io.h: Avoid warnings on Cygwin.
79629
79630 2004-01-20  Bruno Haible  <bruno@clisp.org>
79631
79632         * lib/allocsa.h: New file, from GNU gettext.
79633         * lib/allocsa.c: New file, from GNU gettext.
79634
79635 2004-01-18  Karl Berry  <karl@gnu.org>
79636
79637         * doc/gpl.texi, doc/lgpl.texi: new files.
79638
79639 2004-01-18  Karl Berry  <karl@gnu.org>
79640
79641         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79642         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79643
79644 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79645
79646         Merge from coreutils.
79647
79648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79649         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79650         (gl_DEFAULT_POSIX2_VERSION): Move
79651         the documentation from 'configure' into 'config.hin',
79652         so that 'configure --help' isn't burdened by it and
79653         we don't have to worry about its formatting there.
79654         Reword the documentation so that it's more succinct
79655         and can be run together into a single paragraph.
79656         * m4/same.m4 (gl_SAME): Check for pathconf.
79657
79658 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79659
79660         Merge from coreutils.
79661
79662         * lib/posixver.c: Include posixver.h.
79663
79664         * lib/same.c: Include <stdbool.h>, <limits.h>.
79665         (_POSIX_NAME_MAX): Define if not defined.
79666         (MIN): New macro.
79667         (same_name): If file names are silently truncated, report
79668         that the file names are the same if they are the same after
79669         the silent truncation.
79670
79671         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79672         conversion function.
79673         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79674         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79675         longer needed.
79676
79677 2004-01-15  Jim Meyering  <jim@meyering.net>
79678
79679         Merge from coreutils.
79680
79681         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79682         if no library is required.
79683         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79684         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79685         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79686         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79687         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79688         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79689         value, $ac_cv_search_crypt, if it's "none required".
79690         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79691         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79692         not gl_FUNC_GETLOADAVG.
79693         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79694         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79695
79696 2004-01-15  Jim Meyering  <jim@meyering.net>
79697
79698         Merge from coreutils.
79699
79700         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79701         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79702         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79703
79704         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79705         optional configure-time default.
79706
79707         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79708
79709         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79710
79711 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79712
79713         Merge from coreutils.
79714
79715         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79716         value, $ac_cv_search_nanosleep, if it's "none required".
79717
79718 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79719
79720         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79721         with like-named macro in fnmatch.c.
79722         (EXT): Use an internal constant instead.
79723
79724         Merge fnmatch patches from glibc.
79725         * lib/fnmatch.c (mbsinit): Remove define.
79726         Add libc_hidden_ver (__fnmatch, fnmatch).
79727         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79728         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79729
79730 2004-01-14  Karl Berry  <karl@gnu.org>
79731
79732         * config/install-sh: update from automake.
79733
79734 2004-01-13  Karl Berry  <karl@gnu.org>
79735
79736         * config/install-sh: update from automake.
79737
79738 2004-01-09  Karl Berry  <karl@gnu.org>
79739
79740         * config/install-sh: update from automake.
79741
79742 2004-01-05  Karl Berry  <karl@gnu.org>
79743
79744         * config/config.{sub,guess}: update from config.
79745
79746 2003-12-31  Karl Berry  <karl@gnu.org>
79747
79748         * config/depcomp: update from automake.
79749
79750 2003-12-14  Karl Berry  <karl@gnu.org>
79751
79752         * lib/config.charset: update from gettext-runtime.
79753
79754 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79755
79756         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79757         Bug reported by Alfred M. Szmidt.
79758
79759 2003-12-03  Bruno Haible  <bruno@clisp.org>
79760
79761         * m4/gettext.m4: Upgrade from gettext-0.13.
79762         * m4/po.m4: Upgrade from gettext-0.13.
79763         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79764         * m4/intmax.m4: New file, from gettext-0.13.
79765         * m4/printf-posix.m4: New file, from gettext-0.13.
79766
79767 2003-11-29  Karl Berry  <karl@gnu.org>
79768
79769         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79770
79771 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79772             Bruno Haible  <bruno@clisp.org>
79773
79774         * lib/printf-parse.h: Don't include sys/types.h.
79775         (ARG_NONE): New macro.
79776         (char_directive): Change type of *arg_index fields to size_t.
79777         * lib/printf-parse.c: Don't include sys/types.h.
79778         (SSIZE_MAX): Remove macro.
79779         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79780         Remove unnecessary overflow check.
79781         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79782         fields.
79783
79784 2003-11-25  Bruno Haible  <bruno@clisp.org>
79785
79786         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79787
79788 2003-11-25  Bruno Haible  <bruno@clisp.org>
79789
79790         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79791         gt_TYPE_SSIZE_T.
79792
79793 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79794
79795         * modules/alloca: Remove dependency on xalloc.
79796
79797 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79798
79799         * lib/alloca.c: Remove dependency on xalloc module.
79800         (xalloc_die): Remove.
79801         (memory_full) [!defined emacs]: New macro.
79802         [!defined emacs]: Don't include xalloc.h.
79803         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79804         address arithmetic overflows.  Change datatypes a bit to avoid
79805         unnecessary casts.
79806
79807 2003-11-22  Jim Meyering  <jim@meyering.net>
79808
79809         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79810         s/size/size_t/.
79811
79812 2003-11-21  Karl Berry  <karl@gnu.org>
79813
79814         * config/config.{sub,guess}: update from config.
79815
79816 2003-11-18  Karl Berry  <karl@gnu.org>
79817
79818         * config/config.{sub,guess}: update from config.
79819
79820         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79821
79822 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79823
79824         * README: Mention that S+T cannot overflow if S is the size of
79825         an existing object and T is sufficiently small.
79826
79827 2003-11-17  Jim Meyering  <jim@meyering.net>
79828
79829         On systems without utime and without a utimes function capable of
79830         dealing with a NULL struct utimbuf* argument, this utime replacement
79831         could -- in unusual circumstances -- leak a file descriptor.
79832         * lib/utime.c: Include <unistd.h> and <errno.h>.
79833         (utime_null): Be sure to close `fd' and to preserve errno.
79834         Reported by Geoff Collyer via Arnold Robbins.
79835
79836 2003-11-17  Bruno Haible  <bruno@clisp.org>
79837
79838         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79839         (Depends-on): Add xsize.
79840
79841 2003-11-17  Bruno Haible  <bruno@clisp.org>
79842
79843         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79844
79845 2003-11-17  Bruno Haible  <bruno@clisp.org>
79846
79847         * lib/vasnprintf.c (alloca): Remove fallback definition.
79848         (freea): Remove definition.
79849         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79850         Reported by Paul Eggert.
79851
79852 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79853             Bruno Haible  <bruno@clisp.org>
79854
79855         Protect against address arithmetic overflow.
79856         * lib/printf-args.h: Include stddef.h.
79857         (arguments): Change type of field 'count' to size_t.
79858         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79859         'unsigned int' where appropriate.
79860         * lib/printf-parse.h: Include sys/types.h.
79861         (char_directive): Change type of *arg_index fields to ssize_t.
79862         (char_directives): Change type of fields 'count', max_*_length to
79863         size_t.
79864         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79865         (SSIZE_MAX): Define fallback value.
79866         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79867         instead of 'int' where appropriate. Check a_allocated, d_allocated
79868         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79869         * lib/vasnprintf.c: Include xsize.h.
79870         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79871         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79872         overflow. Avoid wraparound when converting a width or precision from
79873         decimal to binary.
79874
79875 2003-11-16  Bruno Haible  <bruno@clisp.org>
79876
79877         Update from GNU gettext.
79878         * lib/printf-parse.c: Generalize to it can be compiled for wide
79879         strings.
79880         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79881         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79882         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79883         SNPRINTF): New macros.
79884         Don't include <alloca.h> if the file is used inside libintl.
79885         (local_wcslen): New function, for Solaris 2.5.1.
79886         (VASNPRINTF): Use it instead of wcslen.
79887
79888 2003-11-16  Bruno Haible  <bruno@clisp.org>
79889
79890         * lib/xsize.h (xmax): New function.
79891         (xsum, xsum3, xsum4): Declare as "pure" functions.
79892
79893 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79894
79895         * modules/xalloc (Files): Undo latest change, since xalloc.h
79896         no longer needs SIZE_MAX or PTRDIFF_MAX.
79897
79898 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79899
79900         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79901         gl_PTRDIFF_MAX.
79902
79903 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79904
79905         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79906         "return", to pacify some unknown compiler.  Problem reported
79907         by Joerg Schilling.
79908
79909 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79910
79911         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79912         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79913         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79914         heuristic is just as accurate as far as we know, and it removes a
79915         dependency on size_max.m4 and ptrdiff_max.m4.
79916
79917 2003-11-11  Bruno Haible  <bruno@clisp.org>
79918
79919         * modules/xsize (Files): Add m4/size_max.m4.
79920         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79921
79922 2003-11-11  Bruno Haible  <bruno@clisp.org>
79923
79924         * m4/size_max.m4: New file.
79925         * m4/ptrdiff_max.m4: New file.
79926         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79927         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79928         (gl_XALLOC): Invoke it.
79929
79930 2003-11-11  Bruno Haible  <bruno@clisp.org>
79931
79932         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79933         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79934         defined.
79935
79936 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79937
79938         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79939         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79940         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79941         From Bruno Haible.
79942         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79943         not (size_t) -1, since it's defined here.
79944
79945 2003-11-09  Karl Berry  <karl@gnu.org>
79946
79947         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79948
79949 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79950
79951         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79952         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79953         Reject sizes of exactly SIZE_MAX bytes.
79954         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79955         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79956
79957 2003-11-05  Bruno Haible  <bruno@clisp.org>
79958
79959         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79960         SIZE_MAX defined in <limits.h> on Solaris.
79961
79962 2003-11-04  Jim Meyering  <jim@meyering.net>
79963
79964         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79965         variable names, rather than @VAR@.
79966         * modules/poll: Likewise.
79967
79968 2003-11-04  Bruno Haible  <bruno@clisp.org>
79969
79970         * modules/xsize: New file.
79971         * modules/linebreak: Depend on xsize.
79972         * MODULES.html.sh (func_all_modules): Add xsize.
79973
79974 2003-11-04  Bruno Haible  <bruno@clisp.org>
79975
79976         * m4/xsize.m4: New file.
79977
79978 2003-11-04  Bruno Haible  <bruno@clisp.org>
79979
79980         * lib/xsize.h: New file.
79981         * lib/linebreak.c: Include xsize.h.
79982         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79983         argument for overflow.
79984         Suggested by Paul Eggert.
79985
79986 2003-11-03  Karl Berry  <karl@gnu.org>
79987
79988         * config/config.{guess,sub}: update from config.
79989
79990 2003-11-03  Jim Meyering  <jim@meyering.net>
79991
79992         * modules/userspec (lib_SOURCES): Add userspec.h.
79993         (Include): Add "userspec.h".
79994         Improve description.
79995
79996 2003-11-03  Jim Meyering  <jim@meyering.net>
79997
79998         * lib/userspec.c: Include "userspec.h".
79999         * lib/userspec.h: New file.
80000
80001 2003-11-03  Bruno Haible  <bruno@clisp.org>
80002
80003         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80004
80005 2003-11-03  Bruno Haible  <bruno@clisp.org>
80006
80007         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80008         available, to avoid (extremely rare) race condition.
80009         Suggested by Paul Eggert.
80010
80011 2003-11-02  Karl Berry  <karl@gnu.org>
80012
80013         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80014
80015 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80016
80017         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80018         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80019         (read_filesystem_list): Set and use me_type_malloced.
80020         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80021         whatever the type happens to be), for brevity and consistency.
80022         Check for size calculation overflow on Alphas running OSF/1.
80023
80024 2003-10-31  Jim Meyering  <jim@meyering.net>
80025
80026         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80027
80028         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80029
80030 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80031             Bruno Haible  <bruno@clisp.org>
80032
80033         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80034         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80035
80036 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80039         netbsd*-gnu*.  Suggested by Robert Millan.
80040
80041 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80042
80043         * modules/group-member: Depend on stdbool.
80044
80045 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80046
80047         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80048
80049 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80050
80051         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80052         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80053         after the 'gnu' in these cases.  This fixes some bugs in the
80054         previous change, and is based on suggestions by Robert Millan.
80055
80056 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80057
80058         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80059         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80060         no longer needed.
80061         * lib/quotearg.c (quotearg_n_options): Use it.
80062         * lib/group-member.c: Include <stdbool.h>.
80063         (free_group_info): Arg is now const *; don't free arg.
80064         (get_group_info): Now returns bool and accepts struct group_info *,
80065         rather than returning a malloc'ed struct group_info *.
80066         All uses changed.  Check for overflow in internal size calculation.
80067
80068         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80069         rather than xmalloc/xrealloc.
80070         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80071         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80072         conformance bug: the old code used a pointer after freeing the
80073         storage that it addressed.
80074         * lib/hash.c (hash_initialize): Simplify the code by using
80075         xalloc_oversized rather than doing it by hand.
80076         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80077         the buffer preserved.  Use free and xmalloc instead.
80078         * lib/quotearg.c (quotearg_n_options): Likewise.
80079         Use a simpler test for size overflow.  Don't use xalloc_oversized
80080         because unsigned int might be wider than size_t (!); this suggests
80081         that we should switch from unsigned int to size_t for slot numbers.
80082
80083 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80084
80085         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80086         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80087         NetBSD kernels.  Requested by Richard Stallman.
80088
80089 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80090
80091         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80092         to allocate the returned structure.  Do not allocate a subarray,
80093         as x2nrealloc will do that.
80094         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80095         instead of xnrealloc.
80096         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80097
80098 2003-10-27  Bruno Haible  <bruno@clisp.org>
80099
80100         * lib/stdbool_.h: Better support for BeOS.
80101
80102 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80103
80104         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80105         now uses inline.
80106
80107 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80108
80109         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80110         callers that want to do their own size-overflow checking.  Include
80111         <stdbool.h>, since xalloc_oversized returns bool.
80112         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80113         to use xalloc_oversized.
80114
80115         Add two functions x2realloc, x2nrealloc, for programs that grow
80116         arrays dynamically by doubling their sizes.
80117         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80118         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80119         New functions.
80120
80121         Port to C99 semantics for 'inline' of external functions.
80122         Bug reported by Bruno Haible.
80123         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80124         with the old contents of xnmalloc.
80125         (xnmalloc, xmalloc): Use it.
80126         (xnrealloc_inline): New static inline function,
80127         with the old contents of xnrealloc.
80128         (xnrealloc, xrealloc): Use it.
80129
80130         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80131         that.
80132
80133 2003-10-26  Karl Berry  <karl@gnu.org>
80134
80135         * config/srclist.txt (COPYING.DOC): no longer available from
80136         /gd/gnuorg; don't know where the ultimate source is.
80137
80138 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80139
80140         Fix several address-calculation bugs in the hash modules,
80141         plus some minor code cleanup.
80142
80143         * lib/hash.h: Include <stdbool.h>, for bool.
80144         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80145         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80146         hash_get_n_entries, hash_get_max_bucket_length,
80147         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80148         hash_rehash): Use size_t rather than unsigned.
80149         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80150         hash_get_n_buckets_used, hash_get_n_entries,
80151         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80152         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80153         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80154         Likewise.
80155         (SIZE_MAX): Define if not defined.
80156         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80157         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80158         hash_print):
80159         Use const * when possible.
80160         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80161         (check_tuning): Fix bug: if tuning parameters were very close to
80162         0 or 1, rounding errors could have caused subscript violations.
80163         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80164         (hash_initialize): Add 'fail:' label
80165         to free table and return NULL, and use it to simplify code.
80166         Use calloc rather than clearing the storage ourself.
80167         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80168         buffer size calculations.
80169         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80170         Include <stddef.h>, for size_t.
80171         * lib/hash-pjw.c (hash_pjw): Likewise.
80172         Switch to method described by Bruno Haible.
80173         Include <limits.h>, for CHAR_BIT.
80174         (SIZE_BITS): New macro.
80175
80176 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80177
80178         * m4/getline.m4 (AM_FUNC_GETLINE):
80179         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80180         hosts.  Problem reported by Derek Robert Price in
80181         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80182         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80183         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80184
80185 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80186
80187         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80188         ceiling the allocation at NMAX bytes rather than silently
80189         discarding input bytes before NMAX is reached.  This makes
80190         a difference only if NMAX exceeds SIZE_MAX / 2.
80191
80192         * lib/obstack.c: Merge from glibc.
80193         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80194         Add libc_hidden_def (_obstack_newchunk).
80195         (_obstack_free) [! defined _LIBC]: Remove.
80196         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80197         a clone of the function body.
80198         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80199         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80200
80201         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80202         glibc.
80203         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80204         arg to memcpy.
80205
80206         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80207         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80208         Don't use lvalue casts, as GCC plans to remove support for them
80209         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80210         was also present in the non-GCC version, indicating that this
80211         code had always been buggy and had never been widely used.
80212         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80213         Use the fast variant of each macro, rather than copying the
80214         definiens of the fast variant; that way, we'll be more likely to
80215         catch future bugs in the fast variants.
80216
80217 2003-10-20  Bruno Haible  <bruno@clisp.org>
80218
80219         * modules/wait-process: New file.
80220         * MODULES.html.sh (func_all_modules): Add wait-process.
80221
80222 2003-10-20  Bruno Haible  <bruno@clisp.org>
80223
80224         * m4/wait-process.m4: New file.
80225
80226 2003-10-20  Bruno Haible  <bruno@clisp.org>
80227
80228         * lib/wait-process.h: New file, from GNU gettext.
80229         * lib/wait-process.c: New file, from GNU gettext.
80230
80231 2003-10-19  Jim Meyering  <jim@meyering.net>
80232
80233         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80234         HPUX 10.20.
80235
80236 2003-10-18  Karl Berry  <karl@gnu.org>
80237
80238         * config/config.guess: update from config.
80239
80240 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80241
80242         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80243         (getgroups): First arg is int, not size_t.
80244         Don't let 'free' mangle errno.
80245
80246 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80247
80248         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80249
80250 2003-10-16  Karl Berry  <karl@gnu.org>
80251
80252         * config/config.{guess,sub}: update from config.
80253
80254 2003-10-16  Jim Meyering  <jim@meyering.net>
80255
80256         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80257         memcpy.
80258
80259 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80260
80261         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80262         (SIZE_MAX): Remove.
80263         (new_exclude, add_exclude_file): Initial size no longer needs to
80264         be a power of 2.
80265         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80266         our own address arithmetic overflow checking.
80267
80268         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80269         (fnmatch): Do not alloca more than 2000 wide characters;
80270         instead, use malloc for large buffers.
80271         Check for address arithmetic overflow, and return -1
80272         with errno set to ENOMEM in that case.
80273         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80274         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80275         instead, return -1.  Check for address arithmetic overflow.
80276
80277 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80278
80279         Handle invalid suffixes and overflow independently, so that
80280         callers can treat them independently as needed.  Fix some bugs in
80281         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80282         suffix for a human-readable blocksize.  The major caller-visible
80283         change is the addition of a new
80284         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80285         that both overflow and suffix chars were found.
80286
80287         * lib/human.c (humblock): Don't check separately for invalid suffix
80288         char; that is xstrtoumax's job (now that its bug is fixed).
80289         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80290         INTMAX_MAX]: New macros.
80291         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80292         TYPE_MAXIMUM): New macros.
80293         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80294         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80295         if overflow occurs, as it's what __strtol does and it's more useful
80296         in practice.
80297         (__xstrtol): If __strtol reports some error other than ERANGE,
80298         reflect it to the caller as LONGINT_INVALID.  If it reports
80299         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80300         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80301         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80302         value.
80303         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80304         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80305         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80306         [defined UINTMAX_MAX]: New macros.
80307
80308 2003-10-14  Bruno Haible  <bruno@clisp.org>
80309
80310         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80311
80312 2003-10-14  Bruno Haible  <bruno@clisp.org>
80313
80314         * m4/sig_atomic_t: New file, from GNU gettext.
80315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80316
80317 2003-10-14  Bruno Haible  <bruno@clisp.org>
80318
80319         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80320         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80321         Also use volatile where needed.
80322
80323 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80324
80325         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80326         Change maintainer from Bruno Haible to 'all'.
80327
80328 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80329
80330         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80331
80332 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80333
80334         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80335         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80336         and define in terms of the other primitives.
80337         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80338         (SIZE_MAX): Define if not already defined.
80339         (array_size_overflow): New function.
80340         (xalloc_die): Abort instead of exiting if 'error' returns.
80341         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80342         (xmalloc, xrealloc): Use them.
80343         (xcalloc): Check for address arithmetic overflow.
80344         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80345         a bit faster than strcpy.
80346
80347 2003-10-10  Simon Josefsson  <jas@extundo.com>
80348
80349         * modules/argp (Depends-on): Add restrict and strcase.
80350
80351 2003-10-10  Simon Josefsson  <jas@extundo.com>
80352
80353         * m4/argp.m4: Add AC_C_INLINE.
80354
80355 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80356
80357         Merge getpass from libc, plus a few fixes.
80358
80359         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80360         Include <stdbool.h>.
80361         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80362         __fsetlocking to empty.
80363         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80364         do include <bits/libc-lock.h>.
80365         Do not include <fcntl.h>; not needed.
80366         [_LIBC]: Include <wchar.h>.
80367         (NOTCANCEL_MODE): New macro.
80368         (flockfile, funlockfile) [_LIBC]: New macros.
80369         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80370         [!_LIBC]: New macros.
80371         (call_fclose): New function.
80372         (getpass): Use it.  Save tty stream separately; this simplifies the
80373         code and makes it more reliable if stdin happens to equal stdout.
80374         Invoke __fsetlocking on tty.
80375         Handle thread cancellation if needed.
80376         Namespace cleanup (use __tcgetattr, __getline).
80377         Use bool for Booleans.
80378         [USE_IN_LIBIO]: Handle wide streams.
80379         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80380         stream might go where.
80381
80382         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80383         doesn't have to include <stdio.h> before us.
80384         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80385         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80386         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80387         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80388         if not declared, so that we can use getpass.c code from libc without
80389         rewriting it.
80390         (flockfile, ftrylockfile, funlockfile): New macros.
80391
80392 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80393
80394         * modules/getpass: Depend on stdbool.
80395
80396 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80397
80398         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80399
80400 2003-10-07  Karl Berry  <karl@gnu.org>
80401
80402         * config/config.{guess,sub}: update from config.
80403
80404 2003-10-06  Jim Meyering  <jim@meyering.net>
80405             Bruno Haible  <bruno@clisp.org>
80406
80407         This lets translators provide better translations for the
80408         "Written by ..." part of --version output.
80409         * lib/version-etc.h: Include stdarg.h.
80410         (version_etc_copyright): Declare as readonly.
80411         (version_etc): Make this function variadic with a NULL-terminated list
80412         of author name strings.
80413         (version_etc_va): New declaration.
80414         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80415         (version_etc_copyright): Declare as readonly.
80416         (version_etc_va): New function. Provide a different translatable string
80417         for each possible number of authors < 10. Abbreviate when there are 10
80418         authors or more.
80419         (version_etc): Make this function variadic. Call version_etc_va.
80420         Suggestion from Gary V. Vaughan.
80421
80422         * lib/long-options.h (parse_long_options): Change prototype: the
80423         authors string is moved to the end and becomes variadic.
80424         * lib/long-options.c: Include stdarg.h.
80425         (parse_long_options): Make this function variadic, too.
80426         Call version_etc_va, not version_etc.
80427
80428 2003-10-06  Bruno Haible  <bruno@clisp.org>
80429
80430         * modules/version-etc-2: Remove file.
80431         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80432
80433 2003-10-06  Bruno Haible  <bruno@clisp.org>
80434
80435         * modules/fatal-signal: New file.
80436         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80437
80438 2003-10-06  Bruno Haible  <bruno@clisp.org>
80439
80440         * m4/fatal-signal.m4: New file.
80441         * m4/signalblocking.m4: New file, from GNU gettext.
80442
80443 2003-10-06  Bruno Haible  <bruno@clisp.org>
80444
80445         * lib/version-etc-2.h: Remove file.
80446         * lib/version-etc-2.c: Remove file.
80447
80448 2003-10-06  Bruno Haible  <bruno@clisp.org>
80449
80450         * lib/fatal-signal.h: New file, from GNU gettext.
80451         * lib/fatal-signal.c: New file, from GNU gettext.
80452
80453 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80454
80455         * README: Rework advice for preventing empty .o files.
80456         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80457         not <sys/types.h>.
80458
80459 2003-10-04  Karl Berry  <karl@gnu.org>
80460
80461         * lib/argp*: update from libc.
80462
80463 2003-10-04  Karl Berry  <karl@gnu.org>
80464
80465         * config/config.{guess,sub}: update from config.
80466
80467 2003-10-02  Bruno Haible  <bruno@clisp.org>
80468
80469         * modules/lchown (Include): Add lchown.h.
80470         * modules/time_r (Include): Use "..." syntax.
80471         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80472
80473 2003-10-01  Simon Josefsson  <jas@extundo.com>
80474
80475         * MODULES.html.sh (func_all_modules): Move gethostname from section
80476         'based on' to section 'lacking' POSIX:2001.
80477
80478 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80479
80480         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80481         to output mode on the same stream.
80482
80483 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80484
80485         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80486         Fix arg typo in previous patch.
80487
80488 2003-09-28  Jim Meyering  <jim@meyering.net>
80489
80490         * lib/error.c: Correct cpp indentation.
80491
80492 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80493
80494         * modules/free: New file.
80495
80496 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80497
80498         * m4/free.m4: New file.
80499
80500 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80501
80502         * lib/minmax.h (MIN, MAX)
80503         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80504         Omit the special code that used __typeof__, since we worry that
80505         it could be more trouble than it's worth.  See:
80506         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80507         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80508
80509         * lib/free.c: New file.
80510
80511 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80512
80513         Trivial fixes to Makefile.am parts of module listings.
80514         * modules/strstr: Append strstr.h to lib_SOURCES.
80515         * modules/strcase: Likewise, for strcase.h.
80516
80517 2003-09-27  Karl Berry  <karl@gnu.org>
80518
80519         * config/mkinstalldirs: update from automake.
80520
80521 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80522
80523         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80524         (error_tail): Do not loop, reallocating temporary buffer, since
80525         the output cannot contain more wide characters than the input
80526         contains bytes, the size must be big enough already.  This avoids
80527         one potential size overflow calculation.  Check for size overflow
80528         when calculating temporary buffer size.  Free temporary buffer
80529         when done, if it was allocated with malloc; this plugs a memory
80530         leak.  Remove casts from void * to pointers, that are no longer
80531         needed now that we're assuming C89 or better.
80532
80533         Merge error changes from glibc.
80534
80535         * lib/error.c, error.h: Update copyright notice header to match glibc.
80536         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80537         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80538         Disable cancellation while printing error.
80539         * lib/error.h: Prepend __ to parameter names.
80540
80541 2003-09-26  Jim Meyering  <jim@meyering.net>
80542
80543         * lib/error.c (error_tail): Move some declarations
80544         into inner scope where the local variables are used.
80545
80546 2003-09-26  Bruno Haible  <bruno@clisp.org>
80547
80548         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80549         stpncpy().
80550         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80551
80552 2003-09-26  Bruno Haible  <bruno@clisp.org>
80553
80554         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80555         (stpncpy): Define as alias for gnu_stpncpy.
80556         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80557
80558 2003-09-25  Simon Josefsson  <jas@extundo.com>
80559
80560         * lib/xgetdomainname.h: New file.
80561         * lib/xgetdomainname.c: New file.
80562
80563 2003-09-25  Simon Josefsson  <jas@extundo.com>
80564             Bruno Haible  <bruno@clisp.org>
80565
80566         * modules/getdomainname: New file.
80567         * modules/xgetdomainname: New file.
80568         * MODULES.html.sh (func_all_modules): Add getdomainname,
80569         xgetdomainname.
80570
80571 2003-09-25  Simon Josefsson  <jas@extundo.com>
80572             Bruno Haible  <bruno@clisp.org>
80573
80574         * m4/getdomainname.m4: New file.
80575
80576 2003-09-25  Simon Josefsson  <jas@extundo.com>
80577             Bruno Haible  <bruno@clisp.org>
80578
80579         * lib/getdomainname.h: New file.
80580         * lib/getdomainname.c: New file.
80581
80582 2003-09-25  Karl Berry  <karl@gnu.org>
80583
80584         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80585
80586 2003-09-25  Karl Berry  <karl@gnu.org>
80587
80588         * config/install-sh: update from automake.
80589
80590 2003-09-25  Bruno Haible  <bruno@clisp.org>
80591
80592         * modules/version-etc-2: New file, from modules/version-etc with
80593         modifications.
80594         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80595
80596 2003-09-25  Bruno Haible  <bruno@clisp.org>
80597
80598         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80599         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80600
80601 2003-09-24  Simon Josefsson  <jas@extundo.com>
80602
80603         * modules/xgethostname: Add xgethostname.h.
80604
80605 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80606
80607         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80608         the buffer associated with the argument.  Bug reported by
80609         Simon Josefsson.
80610
80611 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80612
80613         * README: Document assumptions that 'int' is at least 32 bits
80614         wide, that integer arithmetic is 2's complement without overflow,
80615         that there are no holes in integer values, that adding sizes of
80616         two nonoverlapping objects can't overflow, and that all-bits-zero
80617         yields scalar zero.  Fix spelling and capitalization typos.
80618
80619 2003-09-19  Karl Berry  <karl@gnu.org>
80620
80621         * lib/argp.h: update from libc.
80622
80623 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80624
80625         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80626         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80627         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80628
80629 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80630
80631         * gnulib-tool: Use "test -h", not "test -L", for portability
80632         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80633         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80634         (sed_extract_prog): Issue s commands one-by-one, rather than
80635         using \| in one s command.
80636
80637 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80638
80639         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80640         input error, instead of returning NULL the next time we are called
80641         (and therefore losing track of errno).
80642
80643 2003-09-16  Bruno Haible  <bruno@clisp.org>
80644
80645         * gnulib-tool (func_create_testdir): Warn about duplicated
80646         dependencies.
80647
80648 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80649
80650         * modules/argmatch, modules/fatal, modules/obstack,
80651         modules/xalloc, modules/xgethostname: Sort dependencies by
80652         importance, not alphabetically.
80653
80654 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80655
80656         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80657         fails, so that the caller gets the proper errno.
80658
80659         * lib/readutmp.c (read_utmp): Likewise.
80660         Check for fstat error.  Close stream and free storage
80661         when failing.
80662
80663 2003-09-14  Karl Berry  <karl@gnu.org>
80664
80665         * config/srclist.txt (strdup.c): disable for c89 changes.
80666
80667 2003-09-14  Jim Meyering  <jim@meyering.net>
80668
80669         * lib/getloadavg.c: Correct cpp indentation.
80670         * lib/strdup.c: Likewise.
80671         * lib/vasnprintf.c: Likewise.
80672
80673 2003-09-14  Bruno Haible  <bruno@clisp.org>
80674
80675         * modules/fwriteerror: New file.
80676         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80677
80678 2003-09-14  Bruno Haible  <bruno@clisp.org>
80679
80680         * lib/fwriteerror.h: New file.
80681         * lib/fwriteerror.c: New file.
80682
80683 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80684
80685         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80686         modules/xgethostname, modules/xalloc: Depend on exit.
80687
80688 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80689
80690         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80691
80692         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80693         and AC_MINIX, too, so that their extensions are available.
80694
80695         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80696         This macro has been superseded by gl_BACKUPFILE.
80697
80698         More patches to assume C89 or better.
80699
80700         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80701
80702         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80703         unconditionally.
80704         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80705         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80706         Include <string.h>, <stdlib.h> unconditionally.
80707         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80708         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80709         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80710         headers or for string.h.
80711         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80712         or strtoul.
80713
80714         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80715         headers.
80716         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80717         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80718         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80719         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80720         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80721         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80722         memcpy, memset.
80723         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80724         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80725         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80726         strtol.
80727         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80728         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80730         strtoul.
80731
80732 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80733
80734         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80735         * lib/obstack.c [!defined _LIBC]: Likewise.
80736         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80737         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80738         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80739
80740         More changes to assume C89 or better.
80741
80742         * lib/error.c (error_tail): Assume vprintf.
80743
80744         * lib/argmatch.c (getenv): Remove decl.
80745         * lib/progreloc.c (get_full_program_name): Define via prototype.
80746         * lib/setenv.c (clearenv): Likewise.
80747         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80748         needed.
80749         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80750         (malloc, memcpy): Remove decls.
80751         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80752         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80753         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80754         (memcpy): Remove macro.
80755         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80756         (__P): Remove.  All uses removed.
80757         (PTR): Remove.  All uses changed to void *.
80758         (CHAR_BIT, NULL): Remove.
80759         (spaces, zeros, memset_space, memset_zero)
80760         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80761         Remove.
80762         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80763         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80764         Define with prototype.
80765         Remove now-unnecessary prototype decl.
80766         (extra_args_spec): Assume ANSI C.  All uses changed.
80767         (extra_args_spec_iso): Remove.
80768         (my_strftime, emacs_strftimeu): Define via prototype.
80769         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80770         unconditionally.
80771         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80772         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80773         (strtoul, strtol): Remove decls.
80774         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80775         LONG_MAX): Remove.
80776         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80777         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80778         (LOCALE_PARAM_PROTO): New macro.
80779         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80780         (INTERNAL (strtol), strtol): Define with a prototype.
80781         (PARAMS): Remove.  All uses removed.
80782         * lib/tempname.c: Include <string.h> unconditionally.
80783         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80784         * lib/xgethostname.c (main): Define with a prototype.
80785         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80786         Include <stdlib.h> unconditionally.
80787         (calloc, malloc, realloc, free): Remove decls.
80788         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80789         Include <stdlib.h> unconditionally.  Sort include file names.
80790         (strtod): Remove.
80791         (xstrtod): Define with a prototype.
80792         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80793         (strtol, strtoul): Remove decls.
80794
80795 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80796
80797         More patches to assume C89 or better.
80798         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80799         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80800         string.h, memchr, STDC_HEADERS.
80801
80802 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80803
80804         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80805         Include <stdlib.h>, <string.h> unconditionally.
80806         Remove now-unnecessary cast to char *.
80807         * lib/strnlen.c: Include <string.h> unconditionally.
80808         * lib/yesno.c (yesno): Define with a prototype.
80809
80810 2003-09-11  Bruno Haible  <bruno@clisp.org>
80811
80812         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80813
80814 2003-09-10  Jim Meyering  <jim@meyering.net>
80815
80816         * lib/error.c: Correct indentation of cpp directives.
80817
80818 2003-09-10  Bruno Haible  <bruno@clisp.org>
80819
80820         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80821         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80822         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80823         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80824         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80825         <stdlib.h> and <string.h> checks.
80826         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80827         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80828
80829 2003-09-10  Bruno Haible  <bruno@clisp.org>
80830
80831         * lib/strcspn.c: Include <string.h> unconditionally.
80832         * lib/strpbrk.c: Include <string.h> unconditionally.
80833         * lib/strstr.c: Include <string.h> unconditionally.
80834         * lib/unicodeio.c: Include <string.h> unconditionally.
80835         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80836         * lib/unsetenv.c: Likewise.
80837         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80838         * lib/yesno.c: Include <stdlib.h> unconditionally.
80839         (rpmatch): Add prototype.
80840
80841 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80842
80843         More patches to assume C89 or better.
80844         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80845         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80846         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80847         or for string.h.
80848         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80849         stdlib.h.
80850         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80851         C headers.
80852         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80853         string.h.
80854         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80855         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80856         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80857         or for string.h.
80858         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80859         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80860         C headers.
80861         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80862         memcpy.
80863         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80864         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80865         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80866         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80867         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80868         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80869         string.h, free.
80870         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80871         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80872         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80873         C headers, or for string.h.
80874         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80875         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80876         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80877         headers, memory.h, stdlib.h, string.h, strings.h.
80878         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80879         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80880         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80881         strchr.
80882         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80883         headers, memory.h, string.h.
80884         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80885         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80886         free.
80887         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80888         headers.
80889         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80890         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80891         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80892         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80893         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80894
80895 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80896
80897         More K&R removal.
80898
80899         * lib/acosl.c (main): Use a prototype.
80900         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80901         tanl.c: Likewise.
80902
80903         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80904
80905         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80906         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80907         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80908         with a prototype.
80909         * lib/getopt.c (const): Remove macro.
80910         Include <string.h> unconditionally.
80911         (my_index): Remove; all uses changed to strchr.
80912         (strlen): Remove decl.
80913         (exchange): Remove forward decl; no longer needed.
80914         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80915         Define with prototype.
80916         * lib/getopt1.c (const): Remove macro.
80917         (getopt_long, getopt_long_only, main): Define with prototype.
80918
80919         * lib/getugroups.c: Include <string.h> unconditionally.
80920
80921         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80922         (getusershell, setusershell, endusershell, readname, main):
80923         Define with prototypes.
80924
80925         * lib/group-member.c: Include group-member.h first.
80926         Include <stdlib.h> unconditionally.
80927
80928         * lib/hard-locale.c: Include hard-locale.h first.
80929         Include <stdlib.h>, <string.h> unconditionally.
80930
80931         * lib/hash.c (free, malloc): Remove decls.
80932         Include <stdlib.h> unconditionally.
80933
80934         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80935         (getenv): Do not declare.
80936
80937         * lib/idcache.c: Include <string.h> unconditionally.
80938
80939         * lib/long-options.c: Include long-options.h first, to test interface.
80940         Include <stdlib.h> unconditionally.
80941
80942         * lib/makepath.c: Include makepath.h first, to test interface.
80943         Include <stdlib.h> and <string.h> unconditionally.
80944
80945         * lib/linebuffer.c: Include <stdlib.h>.
80946         (free): Remove decl.
80947
80948         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80949         stddef.h. rpl_malloc returns void *, not char *.
80950         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80951         prototype.
80952
80953         * lib/md5.h: Include <limits.h> unconditionally.
80954         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80955         (__P): Remove; all uses removed.
80956         * lib/md5.c: Include "md5.h" first.
80957         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80958         md5_buffer, md5_process_bytes, md5_process_block):
80959         Define with prototypes.
80960         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80961         * lib/sha.c: Include "sha.h" first.
80962         Include <stdlib.h>, <string.h> unconditionally.
80963
80964         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80965         * lib/memcmp.c (__ptr_t): Likewise.
80966         * lib/memrchr.c (__ptr_t): Likewise.
80967         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80968         Include <string.h> unconditionally.
80969         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80970         * lib/memchr.c: Include <stdlib.h> unconditionally.
80971         * lib/memchr.c (LONG_MAX): Remove.
80972         * lib/memrchr.c (LONG_MAX): Likewise.
80973         * lib/memchr.c (__memchr): Define via a prototype.
80974         * lib/memrchr.c (__memrchr): Likewise.
80975         * lib/memcmp.c (__P): Remove, and remove all uses.
80976         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80977         Remove forward decls; no longer needed.
80978         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80979         Use types required by C89 in prototype.
80980
80981         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80982         * lib/savedir.c: Likewise.
80983         * lib/mkdir.c (free): Remove decl.
80984         * lib/rmdir.c (rmdir): Define with a prototype.
80985         * lib/savedir.c: Include savedir.h first, to test interface.
80986
80987         * lib/mktime.c (STDC_HEADERS): Remove.
80988         Include <stdlib.h>, <string.h> unconditionally.
80989
80990         * lib/modechange.c: Include <stdlib.h> unconditionally.
80991         (malloc): Remove decl.
80992
80993         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80994         (free): Remove decl.
80995
80996         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80997         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80998         (This type really should be intptr_t, but that's a C99ism.)
80999         (_obstack_memcpy): Remove: all uses changed to memcpy.
81000         Include <string.h> unconditionally.
81001         (struct obstack): Assume __STDC__ for types of members
81002         chunkfun, freefun, extra_arg.
81003         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81004         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81005         obstack_begin, obstack_specify_allocation,
81006         obstack_specify_allocation_with_arg, obstack_chunkfun,
81007         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81008         Remove unprototyped decls and the macros that use them.
81009         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81010         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81011         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81012         (defined __STDC__ && __STDC__)]:
81013         Remove nonprototyped code.
81014         Include <stdlib.h> unconditionally.
81015         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81016         _obstack_allocated_p, _obstack_free, obstack_free,
81017         _obstack_memory_used, print_and_abort):
81018         Define using prototypes.
81019         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81020         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81021         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81022         obstack_next_free, obstack_object_size, obstack_room) [0]:
81023         Remove unused, unprototyped code.
81024
81025         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81026
81027         * lib/physmem.c (physmem_total, physmem_available, main): Define
81028         with prototypes.
81029
81030         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81031         (main): Define with a prototype.
81032
81033         * lib/posixver.c (getenv): Remove decl.
81034
81035         * lib/putenv.c (malloc): Returns void *, not char *.
81036         Include <string.h> unconditionally.
81037         (strchr, memcpy, NULL): Do not define.
81038
81039         * lib/readtokens.c: Include readtokens.h first, to test interface.
81040         Include <stdlib.h>, <string.h> unconditionally.
81041         (init_tokenbuffer): Define with a prototype.
81042
81043         * lib/regex.c (PARAMS): Remove.  All uses removed.
81044         All uses of _RE_ARGS removed, too.
81045         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81046         unconditionally.
81047         (bzero): Assume memset exists.
81048         (memcmp, memcpy, NULL): Remove.
81049         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81050         char, or assignments to local vars of type signed char.
81051         (init_syntax_once, PREFIX(extract_number_and_incr),
81052         PREFIX(print_partial_compiled_pattern),
81053         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81054         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81055         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81056         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81057         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81058         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81059         wcs_compile_range, byte_compile_range, truncate_wchar,
81060         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81061         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81062         count_mbs_length, wcs_re_match_2_internal,
81063         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81064         PREFIX(alt_match_null_string_p),
81065         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81066         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81067         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81068         now-unnecessary declaration, if any.
81069         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81070         regcomp, regexec):
81071         Remove now-unnecessary casts among pointer types.
81072         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81073
81074         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81075         (free): Remove decl.
81076
81077         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81078
81079         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81080         (free): Remove decl.
81081
81082         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81083         * lib/xgetcwd.c: Likewise.
81084
81085         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81086         (free): Remove decl.
81087
81088         * lib/strchrnul.c (strchrnul): Define with a prototype.
81089         Fix bug: c_in was not converted to char before searching.
81090
81091         The following changes are not K&R related:
81092
81093         * lib/group-member.h: Include <sys/types.h>, so that this file is
81094         self-contained.
81095         * lib/makepath.h: Likewise.
81096
81097         * lib/getusershell.c (readname, default_index, line_size, readname):
81098         Use size_t, not int, for sizes.
81099         (readname): If the size overflows, report an error instead of
81100         looping forever.
81101
81102 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81103
81104         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81105         libc.
81106
81107 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81108
81109         * README: New section: portability guidelines.
81110
81111 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81112
81113         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81114         C89 spec.
81115
81116 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81117
81118         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81119
81120 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81121
81122         Assume C89 or better; remove K&R cruft.
81123         A few of these changes were first proposed by Derek Robert Price
81124         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81125
81126         * lib/addext.c: Include <string.h> unconditionally.
81127         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81128         Don't declare getenv or malloc.
81129
81130         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81131         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81132         (NULL): Remove.
81133         (find_stack_direction, alloca): Use prototypes.
81134
81135         * lib/atexit.c (atexit): Define using a prototype.
81136
81137         * lib/basename.c, dirname.c, stripslash.c:
81138         Include <string.h> unconditionally.
81139
81140         * lib/bcopy.c: Include <stddef.h>.
81141         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81142
81143         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81144
81145         * lib/error.h (error, error_at_line, error_print_progname)
81146         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81147         * lib/error.c: Include error.h first, to check interface.
81148         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81149         (VA_START): Remove; all uses changeed to va_start.
81150         (exit, strerror): Remove decls.
81151         (error_print_progname): Prototype uncondionally.
81152         Don't include <errno.h>; no longer needed.
81153         (private_strerror): Remove.
81154         (error_tail): Always define.
81155         (error, error_at_line): Assume C89 or better; always use prototypes.
81156         * lib/fatal.c: Include "fatal.h" first, to test interface.
81157         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81158         (VA_START): Remove; all uses changed to va_start.
81159         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81160         this case.
81161         (exit): Remove decl.
81162         (fatal): Prototype unconditionally.  Assume va_start works.
81163         Abort at end, to pacify gcc.
81164
81165         * lib/euidaccess.c (main): Define with a prototype.
81166
81167         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81168
81169         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81170
81171         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81172         prototypes.
81173         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81174         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81175         (getenv): Remove decl.
81176         (fnmatch): Define using a prototype.
81177         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81178         (FCT): Define using a prototype.
81179
81180         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81181
81182         * lib/gethostname.c: Include <stddef.h>.
81183         (gethostname): Define with prototype.  Length is size_t, not int.
81184
81185 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81186
81187         Assume C89 or better; remove K&R cruft.
81188         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81189         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81190         string.h, getenv, malloc.
81191         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81192         headers.
81193         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81194         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81195         do not check for strerror.
81196         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81197         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81198         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81199         do not check for doprnt or vprintf.
81200         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81201         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81202
81203 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81204
81205         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81206         getversion.c should have been removed then, but was accidentally
81207         preserved.
81208
81209         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81210         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81211
81212 2003-09-08  Karl Berry  <karl@gnu.org>
81213
81214         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81215                 config, forget about prep.
81216
81217         * config/depcomp, missing: update from automake.
81218
81219 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81220
81221         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81222         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81223
81224 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81225
81226         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81227         copy_tm_result.  Bug reported by Simon Josefsson in
81228         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81229
81230 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81231
81232         * m4/time_r.m4: New file.
81233         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81234         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81235         is. Check for timegm declaration.
81236         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81237         Do not check for gmtime_r.
81238         Replace mktime if __mktime_internal does not exist and if mktime
81239         hasn't been replaced already.
81240
81241 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81242
81243         * lib/time_r.c, lib/time_r.h: New files.
81244
81245         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81246         __localtime_r.
81247         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81248         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81249
81250         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81251         __gmtime_r.
81252         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81253         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81254         Include <time_r.h>.
81255
81256         * lib/timegm.c: Switch to glibc implementation, with the following
81257         changes:
81258         [defined HAVE_CONFIG_H]: Include <config.h>.
81259         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81260         (__mktime_internal) [!defined _LIBC]: New decl.
81261         (__gmtime_r) [!defined _LIBC]: New macro and function.
81262         (timegm): Use a prototype, since gnulib assumes C89.
81263         Do not bother declaring tmp to be const, as it's not really usefu.
81264         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81265         (timegm): Declare only if HAVE_DECL_TIMEGM.
81266
81267 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81268
81269         * MODULES.html.sh (func_all_modules): Add time_r.
81270         * modules/time_r: New file.
81271         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81272         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81273
81274 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81275
81276         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81277         Bug reported by Lute Kamstra in
81278         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81279
81280         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81281         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81282         course with correspondingly smaller numbers for tomorrow and
81283         yesterday.  From Tadayoshi Funaba.  Originally installed into
81284         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81285         coreutils merge?).
81286
81287 2003-08-31  Simon Josefsson  <jas@extundo.com>
81288
81289         * modules/timegm: New file.
81290         * MODULES.html.sh (func_all_modules): Add timegm.
81291
81292 2003-08-31  Simon Josefsson  <jas@extundo.com>
81293
81294         * m4/timegm.m4: New file.
81295
81296 2003-08-31  Simon Josefsson  <jas@extundo.com>
81297
81298         * lib/timegm.h: New file.
81299         * lib/timegm.c: New file.  Based on
81300         wget-1.8.2/src/http.c:mktime_from_utc.
81301
81302 2003-08-31  Karl Berry  <karl@gnu.org>
81303
81304         * lib/argp.h: update from libc.
81305
81306 2003-08-28  Bruno Haible  <bruno@clisp.org>
81307
81308         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81309         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81310         followed by '#define fnmatch fnmatch_posix' gives an error.
81311
81312 2003-08-28  Bruno Haible  <bruno@clisp.org>
81313
81314         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81315         warning on QNX, which defines O_BINARY to 000000.
81316
81317 2003-08-27  Jim Meyering  <jim@meyering.net>
81318
81319         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81320         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81321         would fail after 32.  Reported by Danny Levinson.  Details here:
81322         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81323
81324 2003-08-24  Bruno Haible  <bruno@clisp.org>
81325
81326         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81327         MSVC7 <stdio.h> is included later.
81328
81329 2003-08-22  Simon Josefsson  <jas@extundo.com>
81330
81331         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81332
81333 2003-08-20  Karl Berry  <karl@gnu.org>
81334
81335         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81336
81337 2003-08-20  Bruno Haible  <bruno@clisp.org>
81338
81339         * modules/progname: New file.
81340         * MODULES.html.sh (func_all_modules): Add progname.
81341
81342 2003-08-20  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/progname.h: New file, from GNU gettext.
81345         * lib/progname.c: New file, from GNU gettext.
81346         * lib/progreloc.c: New file, from GNU gettext.
81347
81348 2003-08-19  Jim Meyering  <jim@meyering.net>
81349
81350         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81351         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81352
81353 2003-08-19  Bruno Haible  <bruno@clisp.org>
81354
81355         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81356         more.
81357
81358 2003-08-19  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/xstrdup.c: Assume <string.h> exists.
81361
81362 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81363
81364         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81365         in makefile rules.
81366
81367 2003-08-18  Jim Meyering  <jim@meyering.net>
81368
81369         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81370         * m4/lib-ld.m4: Likewise.
81371
81372 2003-08-18  Jim Meyering  <jim@meyering.net>
81373
81374         * lib/setenv.h: Indent nested cpp directive.
81375         * lib/vasnprintf.c: Remove trailing blanks.
81376
81377 2003-08-17  Simon Josefsson  <jas@extundo.com>
81378
81379         * modules/xstrndup: New file.
81380         * MODULES.html.sh (func_all_modules): Add xstrndup.
81381
81382 2003-08-17  Simon Josefsson  <jas@extundo.com>
81383
81384         * modules/argp: Fix autoconf macro name. Add more dependencies.
81385
81386 2003-08-17  Simon Josefsson  <jas@extundo.com>
81387
81388         * m4/xstrndup.m4: New file.
81389
81390 2003-08-17  Simon Josefsson  <jas@extundo.com>
81391
81392         * m4/argp.m4: New file.
81393
81394 2003-08-17  Simon Josefsson  <jas@extundo.com>
81395             Bruno Haible  <bruno@clisp.org>
81396
81397         * lib/xstrndup.h: New file.
81398         * lib/xstrndup.c: New file.
81399
81400 2003-08-17  Bruno Haible  <bruno@clisp.org>
81401
81402         * modules/strndup (Files, Include): Add lib/strndup.h.
81403
81404 2003-08-17  Bruno Haible  <bruno@clisp.org>
81405
81406         * modules/euidaccess (Files): Add lib/euidaccess.h.
81407
81408 2003-08-17  Bruno Haible  <bruno@clisp.org>
81409
81410         * lib/strndup.h: New file.
81411
81412 2003-08-17  Bruno Haible  <bruno@clisp.org>
81413
81414         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81415         like AC_GNU_SOURCE.
81416         * modules/extensions (configure.ac): Comment out the invocation of
81417         gl_USE_SYSTEM_EXTENSIONS.
81418
81419 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81420
81421         Merges from coreutils, etc.
81422         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81423         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81424         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81425         fixing a typo.
81426         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81427         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81428
81429 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81430
81431         Document merge from coreutils.
81432         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81433         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81434         * modules/utime: Add m4/utimes-null.m4.
81435
81436 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81437
81438         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81439         space, undoing this 2003-08-12 change:
81440         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81441
81442 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81443
81444         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81445         strtoul.c from libc, undoing this 2003-08-12 change:
81446         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81447
81448 2003-08-16  Jim Meyering  <jim@meyering.net>
81449
81450         Merges from coreutils.
81451         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81452         prefix.  Adjust cache variables similarly.  Create 500 rather than
81453         just 300 files, to exercise bug on Darwin6.5, too.
81454         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81455         $missing_dir.
81456         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81457         AM_SYS_POSIX_TERMIOS.
81458         Reported by mkc@mathdogs.com.
81459         Also change use of $am_cv_sys_posix_termios
81460         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81461         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81462         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81463         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81464         in /proc/mounts until it finds one with matching device number.  This
81465         is unnecessary when the FILE argument *is* a mount point.  No stat call
81466         is necessary in that case.  So, disable the statvfs-testing code on
81467         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81468         as RedHat bug# 84846.
81469         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81470         to 1MB, so as not to render systems with no stack size limit (e.g.,
81471         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81472         Include <unistd.h>.  On some systems,
81473         it is required for the definition of _SC_PAGESIZE.
81474
81475 2003-08-16  Jim Meyering  <jim@meyering.net>
81476
81477         Merge from coreutils.
81478         * lib/xstrtoimax.c: #else #if -> #elif.
81479         * lib/xstrtoumax.c: Likewise.
81480
81481 2003-08-16  Jim Meyering  <jim@meyering.net>
81482
81483         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81484         * m4/utimes.m4: Removed.
81485         * m4/utimes-null.m4: Renamed from utimes.m4.
81486
81487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81488         to 1MB, so as not to render systems with no stack size limit (e.g.,
81489         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81490         Include <unistd.h>.  On some systems,
81491         it is required for the definition of _SC_PAGESIZE.
81492
81493 2003-08-16  Jim Meyering  <jim@meyering.net>
81494         and Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         Merges from coreutils, etc.
81497
81498         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81499         using the latest version from cvs.  This avoids problems with #line
81500         directives using a vendor (Sun) compiler.
81501         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81502         Don't set GETGROUPS_LIB here; now it's
81503         done via getgroups.m4's wrapper function.
81504         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81505         rather than just in sh-util/configure.in, so that the
81506         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81507         same.
81508         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81509         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81510         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81511         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81512         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81513         Remove code that is now done by the newly-required macros.
81514         Append $(EXEEXT) to DF_PROG.
81515         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81516         Do not invoke or require the following here,
81517         since prereq.m4 or some gnulib .m4 now does this for us:
81518         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81519         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81520         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81521         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81522         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81523         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81524         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81525         AC_FUNC_OBSTACK.
81526         Do not replace the following functions, as this is now the job
81527         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81528         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81529         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81530         atexit getpass, strdup, getpagesize.
81531         Replace 'raise'.
81532         Do not check for the following functions, as this is now the job
81533         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81534         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81535         setregid.
81536         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81537         Check for sys/sysctl.h.
81538         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81539         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81540         of checking for ssize_t ourselves.
81541
81542         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81543         Require every macro that gnulib/modules/* suggests for us.
81544         (jm_PREREQ_ADDEXT): New macro.
81545         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81546         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81547
81548         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81549         (gl_PHYSMEM): Use it.
81550         Also check for `table' function.
81551         Check for new headers and functions.
81552         Add check for sys/sysmp.h.
81553         With suggestions from Kaveh Ghazi.
81554         Ignore headers that are present but cannot be compiled.  This
81555         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81556         C 5.4.
81557
81558 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81559
81560         Document merge from coreutils.
81561         * modules/userspec: Depend on posixver.
81562         * modules/strftime: Depend on tzset.
81563
81564 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81565
81566         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81567         rather than tab, after '#' in shell-script copyright notices.
81568         Suggested by Bruno Haible.
81569
81570 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81571
81572         * config/srclist-update: Use three spaces, rather than tab, after '#'
81573         in shell-script copyright notices.  Suggested by Bruno Haible.
81574         Remove unnecessary parenthesization in regular expression.
81575
81576 2003-08-15  Jim Meyering  <jim@meyering.net>
81577
81578         Merge from coreutils.
81579         * lib/xgethostname.c: Include <stdlib.h>.
81580         (xghostname): Don't exit for anything other than memory-related
81581         failure; just return NULL.
81582         * lib/userspec.c: Include "posixver.h".
81583         (parse_user_spec): Accept `.' as a separator only
81584         in pre-POSIX-200112 mode.
81585         * lib/strtoimax.c: Use #elif rather than #else #if.
81586         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81587         Remove function, now that we can rely on a working tzset function.
81588         [!_LIBC]: Ensure that the required autoconf test has been run.
81589         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81590         Use underlying_strftime for %r.
81591         * lib/sha.c: Merge in some clean-up and optimization changes from
81592         glibc.
81593         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81594         Ensure that it is a multiple of 64.
81595         Rearrange loop exit tests so as to avoid performing an
81596         additional fread after encountering an error or EOF.
81597         * lib/realloc.c: Update copyright date.
81598
81599 2003-08-15  Jim Meyering  <jim@meyering.net>
81600         and Paul Eggert  <eggert@twinsun.com>
81601
81602         Merge from coreutils.
81603         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81604         member but strut utmpx does not.  Needed for AIX 4.3.3.
81605         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81606
81607 2003-08-15  Jim Meyering  <jim@meyering.net>
81608         and Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         Merges from coreutils, etc.
81611         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81612         Require gl_FUNC_TZSET_CLOBBER.
81613         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81614         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81615         members.
81616
81617 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81618
81619         Help the merge from coreutils.
81620         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81621         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81622         * m4/tzset.m4: Use it too.
81623
81624 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81625
81626         * modules/tzset: New file.
81627
81628 2003-08-14  Jim Meyering  <jim@meyering.net>
81629
81630         Merges from coreutils.
81631         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81632         variable names, rather than @FNMATCH_H@.
81633         * modules/alloca: Likewise for $(ALLOCA_H).
81634
81635         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81636         the three copies of the literal target, `fnmatch.h'.
81637         * modules/alloca (alloca.h): Likewise.
81638
81639 2003-08-14  Jim Meyering  <jim@meyering.net>
81640
81641         Merge from coreutils.
81642         * m4/tzset.m4: New file.
81643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81644         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81645         otherwise, AIX 5.1 systems would end up using the latter.
81646         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81647         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81648         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81649         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81650
81651 2003-08-14  Jim Meyering  <jim@meyering.net>
81652
81653         Merge from coreutils.
81654         * lib/obstack.h: Whitespace changes.
81655         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81656         and xcalloc return values.
81657         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81658         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81659         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81660         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81661         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81662         error from mntctl.
81663         Use mntctl's return value to drive the entry-processing loop, since
81664         we can't rely on the value of the vmt_length member in the last
81665         entry.  On some systems doing so could result in exhausting
81666         virtual memory.  Based in part on a patch from Mike Jetzer.
81667
81668 2003-08-14  Jim Meyering  <jim@meyering.net>
81669         and Paul Eggert  <eggert@twinsun.com>
81670
81671         Merges from coreutils, plus other fixes.
81672         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81673         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81674         for credits and details.  Thanks to Kaveh Ghazi for helping
81675         to keep these files in sync.
81676         (ARRAY_SIZE): Define it.
81677         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81678         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81679         (memcasecmp): Don't assume size_t fits in unsigned int.
81680         Remove casts and duplicate code.
81681         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81682         (memcpy): Remove definition.
81683         Merge in some clean-up and optimization changes from glibc.
81684         [BLOCKSIZE]: Move definition to top of file.
81685         Ensure that it is a multiple of 64.
81686         Rearrange loop exit tests so as to avoid performing an
81687         additional fread after encountering an error or EOF.
81688         * lib/md5.h (md5_uintptr): Define.
81689         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81690         return to the initial working directory.  Preserve errno
81691         for caller.
81692         * lib/idcache.c: Include "xalloc.h".
81693         (xmalloc, xrealloc): Remove decls.
81694         (getuser): Remove casts no longer required in C89.
81695         * lib/human.c: Include stdio.h, for sprintf.
81696         * lib/group-member.c: Include "xalloc.h".
81697         (xmalloc, xrealloc): Remove decls.
81698         (get_group_info): Remove casts no longer required in C89.
81699         * lib/getusershell.c (readname): Remove casts no longer required in
81700         C89.
81701         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81702         * lib/getline.c: Whitespace fix, from coreutils.
81703
81704 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81705
81706         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81707         Check for isascii.
81708
81709         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81710         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81711         Undo previous (whitespace-only) change.
81712
81713 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81714
81715         * lib/exclude.c: Include <ctype.h>
81716         (IN_CTYPE_DOMAIN): New macro.
81717         (is_space): New fn.
81718         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81719         and empty lines.
81720
81721         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81722         Undo previous (whitespace-only) change.
81723
81724 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81725
81726         * config/srclist-update: Change update back to the old behavior,
81727         leaving whitespace alone.  Use one 'sed' command rather than a
81728         pipeline.
81729         (fixlicense): Now a variable, not a function.
81730         (remove_trailing_blanks): Remove.
81731         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81732         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81733         Undo previous (whitespace-only) change.
81734
81735 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81736
81737         Merge from coreutils.
81738         * modules/euidaccess: Add lib_SOURCES, include for new
81739         file euidaccess.h
81740
81741 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81742
81743         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81744         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81745         Normalize leading white space and remove trailing white space.
81746
81747         Merge from coreutils
81748         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81749
81750         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81751         0.12.1.  These files are now being upgraded automatically by
81752         ../config/srclist-update.
81753
81754 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81755
81756         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81757         Normalize leading white space and remove trailing white space.
81758         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81759         notice, as per ../config/srclist-update.
81760
81761         Merge from coreutils.
81762         * lib/euidaccess.h: New file.
81763         * lib/euidaccess.c: Include it.
81764         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81765         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81766         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81767
81768 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81769
81770         * config/srclist-update: Add copyright notice.
81771         (remove_id_lines, remove_trailing_blanks): New constants.
81772         (fixfile): Use them to normalize spacing a bit in copied files.
81773         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81774         Normalize leading white space and remove trailing white space.
81775
81776         * config/texinfo.tex: Sync with texinfo.
81777
81778         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81779         strtoul.c from libc, to merge coreutils whitespace changes.
81780
81781         * config/srclist.txt: Get the following m4 files from gettext:
81782         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81783         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81784         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81785         wint_t.m4.
81786
81787 2003-08-12  Karl Berry  <karl@gnu.org>
81788
81789         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81790         been made.
81791
81792 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81793
81794         * modules/gnu-source, m4/gnu-source.m4:
81795         Remove; we're assuming Autoconf 2.54 or later now.
81796         Suggested by Bruno Haible.
81797         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81798
81799 2003-08-11  Bruno Haible  <bruno@clisp.org>
81800
81801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81802
81803 2003-08-11  Bruno Haible  <bruno@clisp.org>
81804
81805         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81806         (vasnprintf): Use it instead of wcslen.
81807
81808 2003-08-11  Bruno Haible  <bruno@clisp.org>
81809
81810         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81811         value to ensure that _Bool promotes to int. Use #define for _Bool when
81812         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81813
81814 2003-08-10  Karl Berry  <karl@gnu.org>
81815
81816         * lib/regex.h: update from libc (whitespace fix).
81817
81818 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81819
81820         Merge some files from coreutils.  These changes were
81821         originally made by Jim Meyering.
81822         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81823         many older Unixes require this.
81824         * lib/alloca.c (alloca): Remove cast to argument of free;
81825         no longer needed in C89.
81826         * lib/alloca_.h, regex.h: Fix white space to match
81827         what GNU indent does.
81828
81829 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81830
81831         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81832         apparently Emacs's Unicode mode got confused before my 2003-08-05
81833         checkin.
81834
81835 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81836
81837         * m4/extensions.m4: New file.
81838         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81839         Require gl_USE_SYSTEM_EXTENSIONS.
81840         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81841         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81842
81843 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81844
81845         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81846         * modules/extensions, modules/gnu-source: New files.
81847         * modules/timespec, modules/unlocked-io: Depend on extensions.
81848
81849 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81850
81851         * modules/restrict: New file.
81852         * MODULES.html.sh (func_all_modules): Add restrict.
81853         * modules/regex: Depend on restrict.
81854
81855 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81856
81857         * m4/restrict.m4: New file.
81858         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81859
81860 2003-08-07  Bruno Haible  <bruno@clisp.org>
81861
81862         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81863         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81864
81865 2003-08-07  Bruno Haible  <bruno@clisp.org>
81866
81867         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81868         makes the module 'getndelim2' compatible with the module 'getline'.
81869
81870 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81871
81872         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81873         byte with "\201" to avoid glitches when editing that source file
81874         with multi-gnome-terminal.
81875
81876 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81877
81878         * lib/bumpalloc.h: Remove.
81879
81880 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81881
81882         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81883         * modules/bumpalloc: Remove.
81884
81885 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81886
81887         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81888         GNU coding style.
81889
81890         Merge from coreutils.
81891         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81892         1. From glibc.
81893         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81894         from Karl Berry, implemented by Jim Meyering.
81895         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81896         from Dmitry V. Levin.
81897         Remove anachronistic cast of xrealloc.
81898         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81899         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81900         type. Otherwise, it wouldn't compile with at least /bin/cc on
81901         ymp-cray-unicos9.0.2.X.
81902         Combine two mostly-identical uses of alloca into one.
81903         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81904
81905 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81906
81907         [From Emacs.]
81908
81909         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81910         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81911         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81912         obsolete NLIST_NAME_UNION.
81913         [__GNU__]: Undef BSD and FSCALE.
81914         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81915
81916 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81917
81918         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81919         an enum type, so that it's guaranteed to promote to int.  See:
81920         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81921
81922 2003-08-03  Karl Berry  <karl@gnu.org>
81923
81924         * config/depcomp: update from automake.
81925
81926 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81927
81928         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81929         (strerror): Don't assume that a printable int fits in 14 bytes.
81930
81931 2003-07-31  Bruno Haible  <bruno@clisp.org>
81932
81933         * modules/getpass-gnu: New file.
81934         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81935
81936 2003-07-31  Bruno Haible  <bruno@clisp.org>
81937
81938         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81939
81940 2003-07-24  Karl Berry  <karl@gnu.org>
81941
81942         * config/missing: update from automake.
81943
81944 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81945             Bruno Haible  <bruno@clisp.org>
81946
81947         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81948         * lib/getline.c (getline, getdelim): Likewise.
81949         Remove _GNU_SOURCE define; now it's defined in config.h through
81950         m4/getline.m4.
81951
81952 2003-07-23  Karl Berry  <karl@gnu.org>
81953
81954         * config/config.sub: update from prep.
81955
81956 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81957
81958         * modules/xalloc (Depends-on): Add exitfail.
81959         * modules/xmemcoll: Likewise.
81960
81961 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81962
81963         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81964         over-parenthesization in macros.
81965
81966         Sync with coreutils.
81967
81968         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81969         required by C99.
81970
81971         Use `exit_failure' for xalloc and xmemcoll instead of their own
81972         private exit-failure variables.
81973         * lib/xalloc.h (xalloc_exit_failure): Remove.
81974         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81975         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81976         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81977         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81978         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81979
81980 2003-07-20  Jim Meyering  <jim@meyering.net>
81981
81982         * modules/closeout (Depends-on): Add exitfail.
81983         Suggestion from Bruno Haible.
81984
81985 2003-07-19  Karl Berry  <karl@gnu.org>
81986
81987         * config/config.sub: update from prep.
81988
81989 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81990
81991         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81992         Remove.
81993         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81994         to test that it can stand by itself.  Include "exitfail.h".
81995         Clients should set exit_failure instead.
81996         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81997
81998 2003-07-18  Bruno Haible  <bruno@clisp.org>
81999
82000         * modules/getndelim2: New file.
82001         * modules/getline: Share files with module getndelim2.
82002         * modules/getnline: Depend on getndelim2 instead of sharing files with
82003         it. Add getnline.c to lib_SOURCES.
82004         * MODULES.html.sh (func_all_modules): Add getndelim2.
82005
82006 2003-07-18  Bruno Haible  <bruno@clisp.org>
82007
82008         * m4/getndelim2.m4: New file.
82009         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82010         invoke gl_PREREQ_GETNDELIM2.
82011         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82012         gl_PREREQ_GETNDELIM2.
82013         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82014         gl_GETNDELIM2.
82015
82016 2003-07-18  Bruno Haible  <bruno@clisp.org>
82017
82018         * lib/getndelim2.h: New file.
82019         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82020         getndelim2.h.
82021         (getndelim2): Make non-static. Change return type to ssize_t.
82022         * lib/getline.h: Change argument names.
82023         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82024         * lib/getnline.c: Include getndelim2.h.
82025
82026 2003-07-18  Andreas Schwab  <schwab@suse.de>
82027
82028         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82029
82030 2003-07-17  Karl Berry  <karl@gnu.org>
82031
82032         * config/config.sub: update from prep.
82033
82034 2003-07-17  Bruno Haible  <bruno@clisp.org>
82035
82036         * modules/getnline: New file.
82037         * modules/getline: Add lib/getndelim2.c to source file list.
82038         * MODULES.html.sh (func_all_modules): Add getnline.
82039
82040 2003-07-17  Bruno Haible  <bruno@clisp.org>
82041
82042         * m4/getnline.m4: New file.
82043
82044 2003-07-17  Bruno Haible  <bruno@clisp.org>
82045
82046         * m4/Makefile.am.in: Remove file.
82047         * m4/Makefile.am: Remove file.
82048         * m4/Makefile.in: Remove file.
82049
82050 2003-07-17  Bruno Haible  <bruno@clisp.org>
82051
82052         * lib/getnline.h: New file.
82053         * lib/getnline.c: New file.
82054         * lib/getndelim2.c: New file, extracted from getline.c.
82055         (getndelim2): Renamed from getdelim2, with added nmax argument.
82056         * lib/getline.c: Include getndelim2.c.
82057         (getdelim2): Moved out to getndelim2.c.
82058         (getline, getdelim): Update.
82059
82060 2003-07-17  Bruno Haible  <bruno@clisp.org>
82061
82062         * lib/Makefile.am: Remove file.
82063         * lib/Makefile.in: Remove file.
82064
82065 2003-07-17  Bruno Haible  <bruno@clisp.org>
82066
82067         * configure.in: Remove file.
82068         * Makefile.in: Remove file.
82069
82070 2003-07-17  Bruno Haible  <bruno@clisp.org>
82071
82072         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82073
82074 2003-07-16  Karl Berry  <karl@gnu.org>
82075
82076         * config/srclist-update: was running fixlicense twice, which caused
82077                 texinfo.tex to be nullified for some reason.  Simplify,
82078                 $gplsrc is no longer needed as far as I can see?
82079
82080 2003-07-16  Jim Meyering  <jim@meyering.net>
82081
82082         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82083
82084 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82085
82086         * config/srclist.txt: Get the following files from gettext-runtime/intl
82087         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82088         ref-del.sin.  From Bruno Haible.
82089         * config/srclist-update (fixfile): Change grep pattern again, since the
82090         previous fix didn't work (there was another trailing $).  Use
82091         '[$]' to escape the $s.
82092
82093 2003-07-15  Karl Berry  <karl@gnu.org>
82094
82095         * lib/vasnprintf.c: update from gettext.
82096
82097 2003-07-15  Karl Berry  <karl@gnu.org>
82098
82099         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82100         gets expanded when surrounded by '$'.
82101
82102 2003-07-15  Jim Meyering  <jim@meyering.net>
82103
82104         * modules/save-cwd: Don't depend on error.  From Derek Price.
82105
82106 2003-07-15  Jim Meyering  <jim@meyering.net>
82107
82108         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82109
82110 2003-07-14  Simon Josefsson  <jas@extundo.com>
82111
82112         * modules/mempcpy: New file.
82113         * MODULES.html.sh (func_all_modules): Add mempcpy.
82114
82115 2003-07-14  Simon Josefsson  <jas@extundo.com>
82116
82117         * m4/mempcpy.m4: New file.
82118
82119 2003-07-14  Simon Josefsson  <jas@extundo.com>
82120
82121         * lib/mempcpy.h: New file.
82122         * lib/mempcpy.c: New file.
82123
82124 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82125
82126         * modules/getdate, modules/posixtm: Depend on mktime.
82127
82128 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82129
82130         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82131         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82132         unicodeio.c, unicodeio.h, unlocked-io.h:
82133         Switch from LGPL to GPL.
82134
82135 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82136
82137         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82138         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82139         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82140         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82141         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82142         updated automatically by ../config/srclist-update.  This changes
82143         their license from LPGL to GPL.
82144
82145 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82146
82147         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82148         assumed to refer to the root of the most recent stable gettext version.
82149         * config/srclistvars.sh: Add defaults for eggert.
82150         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82151         Match "This program" as well as "The program".  This is needed
82152         for gettext.
82153
82154 2003-07-14  Jim Meyering  <jim@meyering.net>
82155
82156         Don't emit diagnostics.  Let callers do that.
82157         * lib/save-cwd.c: Don't include "error.h".
82158         (save_cwd): Don't call error.  Ensure that errno is valid
82159         when returning nonzero.
82160
82161         * lib/save-cwd.h (restore_cwd): Update prototype.
82162         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82163         Simplify.  Don't call error upon failure.  Let callers do that.
82164         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82165         when auditing is enabled.  But don't bother updating the #if.
82166
82167 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82168
82169         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82170         it breaks C++ compilation.
82171         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82172
82173 2003-07-10  Simon Josefsson  <jas@extundo.com>
82174
82175         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82176
82177 2003-07-10  Jim Meyering  <jim@meyering.net>
82178
82179         * m4/clock_time.m4: Remove trailing blank.
82180         * m4/intmax_t.m4: Likewise.
82181
82182 2003-07-10  Jim Meyering  <jim@meyering.net>
82183
82184         * lib/vasnprintf.c: Remove trailing blanks.
82185         Make cpp indentation consistent.
82186
82187 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82188
82189         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82190         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82191         Switch from LGPL to GPL.
82192
82193 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82194
82195         * config/srclist.txt: Sort sublists.  Add
82196         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82197         that differ from gnulib for one reason or another; we'd like this list
82198         to be smaller but for now let's document what we have.
82199
82200 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82201
82202         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82203         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82204         and sweeter "eval x=$x".
82205         * config/srclist.txt: Get lib/argp* from glibc.
82206
82207 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82208
82209         * lib/mktime.c: Fix some boundary cases and remove need for floating
82210         point.
82211
82212         Issue a compile-time diagnostic if time_t is floating point, or if
82213         two's complement arithmetic is not in effect, or if arithmetic
82214         right shift does not propagate the sign.  These assumptions were
82215         all in the original code but they weren't checked.
82216
82217         (TIME_T_MIDPOINT, verify): New macros.
82218         (__isleap): Remove; it has integer overflow problems.
82219         (leapyear): New function, without those problems.
82220         (ydhms_tm_diff): Remove; splitting into two parts.
82221         (ydhms_diff): New function, containing the arithmetic part of
82222         the old ydhms_tm_diff function.  Issue a compile-time
82223         diagnostic if we are not using C99 integer division.
82224         Avoid casts when possible.
82225         (guess_time_tm): New function, containing the checking part of
82226         the old ydhms_tm_diff function.  Return the new value, rather than
82227         the difference between it and the old.  Accept a new argument T
82228         so that *T specifies the old value.  Check for overflow in the result.
82229
82230         (__mktime_internal): Use a time_t offset, not a long int offset.
82231         This undoes the 2003-06-04 change, which is no longer needed now
82232         that we have better overflow checking.
82233         (localtime_offset): Likewise.
82234
82235         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82236         and long are 64-bit but int is only 32-bit.
82237         (ydhms_diff): Use long int to store year1 and yday1.
82238         Issue a compile-time diagnostic if long int is not wide enough.
82239
82240         (__mktime_internal): Use long int to store adjusted year and yday.
82241         Use plain C rather than preprocessor commands, if that doesn't
82242         affect efficiency.
82243         Check for overflow (and try to repair) after each probe
82244         rather than checking only at the very end.  This avoids some bugs
82245         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82246         does not equal GMT offset at maximum time).
82247         Use integer to check for overflow rather than floating point; this
82248         is more portable to non-IEEE hosts, and is a tad faster.
82249         When we detect that we are oscillating between two values,
82250         don't check whether tm_isdst has the requested value, since
82251         we already know the answer.  When tm_isdst has the wrong value,
82252         use a different heuristic to find the right one, based on the
82253         extreme values actually observed in practice in tz2003a,
82254         rather than the (overly optimistic) "previous 3 calendar quarters".
82255
82256         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82257         "T const" to accommodate glibc style.
82258         (check_result): Use less-confusing report format.  "long" -> "long int.
82259         (main): Likewise.
82260         Don't loop if the iteration overflows time_t.
82261         Allow a negative step in the iteration.
82262
82263 2003-07-06  Karl Berry  <karl@gnu.org>
82264
82265         * config/depcomp: update from automake.
82266         * config/config.sub: update from prep.
82267
82268 2003-07-03  Karl Berry  <karl@gnu.org>
82269
82270         * config/config.guess: update from prep.
82271
82272 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82273
82274         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82275         xreadlink.c now includes it unconditionally.
82276
82277 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82278
82279         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82280         having it depend on HAVE_SYS_TYPES_H.
82281
82282 2003-07-01  Bruno Haible  <bruno@clisp.org>
82283
82284         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82285         <sys/types.h> should be sufficient.
82286         Reported by Paul Eggert.
82287
82288 2003-06-26  Karl Berry  <karl@gnu.org>
82289
82290         * config/depcomp: update from automake.
82291
82292 2003-06-26  Bruno Haible  <bruno@clisp.org>
82293
82294         * modules/human: Depend on module stdbool.
82295
82296 2003-06-25  Bruno Haible  <bruno@clisp.org>
82297
82298         * modules/readlink: New file.
82299         * modules/xreadlink: Depend on it.
82300         * MODULES.html.sh (func_all_modules): Add readlink.
82301
82302 2003-06-25  Bruno Haible  <bruno@clisp.org>
82303
82304         * m4/readlink.m4: New file.
82305
82306 2003-06-25  Bruno Haible  <bruno@clisp.org>
82307
82308         * lib/readlink.c: New file.
82309
82310 2003-06-22  Karl Berry  <karl@gnu.org>
82311
82312         * config/srclist.txt: update mkinstalldirs from automake.
82313         * config/mkinstalldirs: update.
82314
82315 2003-06-22  Bruno Haible  <bruno@clisp.org>
82316
82317         Portability to mingw32.
82318         * m4/ssize_t.m4: New file, from GNU gettext.
82319         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82320         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82321
82322 2003-06-22  Bruno Haible  <bruno@clisp.org>
82323
82324         * modules/safe-read: Add m4/ssize_t.m4.
82325         * modules/xreadlink: Add m4/ssize_t.m4.
82326
82327 2003-06-20  Bruno Haible  <bruno@clisp.org>
82328
82329         Assume C89, so PARAMS isn't needed.
82330         * lib/unicodeio.h (PARAMS): Remove.
82331         * lib/unicodeio.c: Don't use PARAMS.
82332
82333 2003-06-18  Karl Berry  <karl@gnu.org>
82334
82335         * config/config.{guess,sub}: update from prep.
82336
82337 2003-06-18  Jim Meyering  <jim@meyering.net>
82338
82339         Merge changes from coreutils.
82340         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82341         Remove explicit declarations of xmalloc and realloc.
82342         Include xalloc.h.
82343         (read_utmp): Remove anachronistic cast of xmalloc.
82344
82345 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82346
82347         Assume C89, so PARAMS isn't needed.
82348         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82349         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82350         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82351         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82352         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82353         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82354         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82355         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82356         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82357         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82358         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82359         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82360         no longer needed. Anyway, config.h should always be included before any
82361         other file.
82362
82363 2003-06-11  Simon Josefsson  <jas@extundo.com>
82364
82365         * modules/sysexits: New file.
82366         * MODULES.html.sh (func_all_modules): Add sysexits.
82367
82368 2003-06-11  Simon Josefsson  <jas@extundo.com>
82369
82370         * lib/sysexit_.h: New file.
82371
82372 2003-06-11  Derek Price  <derek@ximbiot.com>
82373
82374         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82375         necessary.
82376
82377 2003-06-11  Bruno Haible  <bruno@clisp.org>
82378
82379         * m4/sysexits.m4: New file.
82380
82381 2003-06-10  Simon Josefsson  <jas@extundo.com>
82382
82383         * lib/argp.h: New file, from glibc.
82384         * lib/argp-ba.c: New file, from glibc.
82385         * lib/argp-eexst.c: New file, from glibc.
82386         * lib/argp-fmtstream.c: New file, from glibc.
82387         * lib/argp-fmtstream.h: New file, from glibc.
82388         * lib/argp-fs-xinl.c: New file, from glibc.
82389         * lib/argp-help.c: New file, from glibc.
82390         * lib/argp-namefrob.h: New file, from glibc.
82391         * lib/argp-parse.c: New file, from glibc.
82392         * lib/argp-pv.c: New file, from glibc.
82393         * lib/argp-pvh.c: New file, from glibc.
82394         * lib/argp-xinl.c: New file, from glibc.
82395
82396 2003-06-10  Simon Josefsson  <jas@extundo.com>
82397
82398         * modules/strchrnul: New file.
82399
82400 2003-06-10  Simon Josefsson  <jas@extundo.com>
82401
82402         * modules/argp: New file.
82403
82404 2003-06-10  Simon Josefsson  <jas@extundo.com>
82405
82406         * m4/strchrnul.m4: New file.
82407
82408 2003-06-10  Simon Josefsson  <jas@extundo.com>
82409
82410         * lib/strchrnul.h: New file.
82411         * lib/strchrnul.c: New file.
82412
82413 2003-06-10  Bruno Haible  <bruno@clisp.org>
82414
82415         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82416
82417 2003-06-07  Karl Berry  <karl@gnu.org>
82418
82419         * config/config.{guess,sub}: update from prep.
82420
82421 2003-06-07  Jim Meyering  <jim@meyering.net>
82422
82423         * modules/strtod: Use $(...) notation, not @...@ for
82424         AC_REPLACE'd variables.
82425         * modules/localcharset: Likewise.
82426
82427 2003-06-07  Jim Meyering  <jim@meyering.net>
82428
82429         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82430         in place of my name in the copyright comment.
82431         Remove definition and uses of __P.
82432
82433         From coreutils.
82434         * lib/stat.c: Don't declare xmalloc explicitly.
82435         Instead, include "xalloc.h".
82436         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82437         xrealloc, and xcalloc return values.
82438         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82439         Improve comment.
82440         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82441
82442 2003-06-07  Bruno Haible  <bruno@clisp.org>
82443
82444         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82445         avoid AC_CONFIG_LINKS.
82446         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82447         fnmatch.h, to avoid AC_CONFIG_LINKS.
82448         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82449
82450 2003-06-07  Bruno Haible  <bruno@clisp.org>
82451
82452         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82453         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82454         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82455         directory.
82456         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82457         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82458         directory.
82459
82460 2003-06-06  Jim Meyering  <jim@meyering.net>
82461
82462         Merge from coreutils.
82463         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82464         Consolidate declarations and initializations of *_base* locals.
82465
82466         Merge from coreutils.
82467         This avoids a core dump on systems without GNU putenv,
82468         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82469         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82470         (unsetenv): New static function, from GNU libc.
82471         (rpl_putenv): Use it.
82472
82473         * lib/modechange.c: Remove trailing blanks.
82474
82475         Merge from coreutils.
82476         * lib/fsusage.c: Remove declaration of statfs.
82477         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82478
82479         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82480
82481 2003-06-06  Jim Meyering  <jim@meyering.net>
82482
82483         * lib/stdbool_.h: Renamed from stdbool.h.in.
82484
82485 2003-06-06  Jim Meyering  <jim@meyering.net>
82486             Bruno Haible  <bruno@clisp.org>
82487
82488         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82489         Adjust Makefile.am snippet not to redirect directly to target.
82490         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82491
82492 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82493
82494         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82495         mismatch, look in future quarters as well as past.  This fixes a
82496         bug when processing fall-backwards gaps immediately after a long
82497         period of daylight-saving time.
82498
82499         * lib/mktime.c: Assume freestanding C89 or better.
82500         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82501         (__P): Remove; not used.
82502         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82503         (mktime, not_equal_tm, print_tm, check_result,
82504         main): Use prototypes.  Use const * where appropriate.
82505         (main): Fix typo in testing code that uncovered by above changes.
82506         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82507
82508 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82509
82510         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82511         locale.h, localeconv.  This merges changes from coreutils.
82512
82513         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82514         It can be removed after the next Autoconf is released.
82515         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82516         needed.
82517
82518 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82519
82520         * lib/mktime.c: Fix Debian bug 177940
82521         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82522         (localtime_offset): Now long int, not time_t, because we want it
82523         to be guaranteed to be signed.  All uses changed.
82524         (__mktime_internal): If overflow would occur when adding offset,
82525         don't add it.
82526
82527         Merge 'human' changes from coreutils.  Rewrite to support
82528         locale-specific notations like thousands separators.
82529         * lib/human.c: Simplify authorship notice.
82530         Include human.h immediately after config.h.
82531         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82532         <limits.h>: Do not include, since human.h does.
82533         (SIZE_MAX, UINTMAX_MAX): New macros.
82534         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82535         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82536         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82537         (power_letter): Renamed from suffixes.
82538         (generate_suffix_backwards): Remove.
82539         (adjust_value): Now takes int style (because of human.h changes)
82540         and long double value (for greater precision on some platforms).
82541         (group_number): New function.
82542         (human_readable): Use it.  Use integer options, not enum.
82543         Put the options before the sizes in the arg list.
82544         Support all the new options.
82545         The old human_readable function has been removed;
82546         use inttostr.h instead.
82547         (human_readable, default_block_size, humblock):
82548         Use uintmax_t, not int, for block sizes.
82549         (human_readable_inexact, block_size_types): Remove.
82550         (block_size_opts): New constant.
82551         (human_options): Renamed from human_block_size, with new signature
82552         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82553         * lib/human.h: Add copyright and authorship notice.
82554         Include <limits.h> and <stdbool.h> unconditionally.
82555         (PARAMS): Remove.  All uses removed.
82556         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82557         (enum human_inexact_style): Remove tag; now a nameless enum.
82558         (human_floor, human_ceiling, human_round_to_even): Now have
82559         values 2, 0, 1 rather than -1, 1, 0.
82560         (human_group_digits, human_suppress_point_zero, human_autoscale,
82561         human_base_1024, human_SI, human_B): New constants.
82562         (human_readable_inexact, human_block_size): Remove.
82563         (human_readable): Size args are now uintmax_t, not int.
82564         (human_options): New decl.
82565
82566         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82567         unnecessary now that we assume C89 or better.  This change
82568         imported from coreutils.
82569
82570         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82571         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82572         in the 2003-05-30 sync from glibc.
82573
82574         .h files should stand alone, but we shouldn't include <sys/types.h>
82575         if we can get away with just <stddef.h>.
82576
82577         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82578         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82579         rather than <sys/types.h>, as we merely need size_t.
82580         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82581         to get size_t.
82582         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82583         Include <stdio.h>, to get FILE.
82584         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82585         memcasecmp.h has included <stddef.h> and all we need is size_t.
82586         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82587         our interface, instead of including <sys/types.h>
82588
82589 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82590
82591         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82592         now, as glibc mktime is buggy on non-glibc systems.
82593
82594 2003-06-03  Karl Berry  <karl@gnu.org>
82595
82596         * config/config.sub: update from prep.
82597
82598 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82599
82600         [from coreutils]
82601         Fix some minor time-related bugs with POSIX time arguments.
82602         Some valid time stamps were being rejected (notably -1, and
82603         time stamps before 1900 on 64-bit hosts).  And some invalid
82604         time stamps were being accepted, e.g. September 31.
82605
82606         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82607         that we can return (time_t) -1 successfully.
82608         * lib/posixtm.c: Likewise.
82609         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82610         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82611         (t): Remove static var.
82612         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82613         of static var.  All uses changed.
82614         (year): Do not reject years before 1900; they can occur with
82615         64-bit time_t.
82616         (posix_time_parse): Do not check for out-of-range components;
82617         that is now the caller's responsibility, since our checks were
82618         only approximations.
82619         (posixtime): Use mktime to check for out-of-range components,
82620         since it knows them exactly.
82621         If mktime returns (time_t) -1, check whether an error actually occurred
82622         by invoking localtime on -1.
82623         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82624         posixtime failures better.
82625         Improve the test data (in comments only).
82626
82627 2003-06-02  Karl Berry  <karl@gnu.org>
82628
82629         * config/mkinstalldirs (version): new variable.
82630         (--version): new option.
82631         (usage): improve message.
82632
82633 2003-05-30  Karl Berry  <karl@gnu.org>
82634
82635         * lib/mktime.c: update from libc.
82636
82637 2003-05-30  Bruno Haible  <bruno@clisp.org>
82638
82639         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82640         * config/config.rpath: Upgrade to gettext-0.12.1.
82641
82642 2003-05-30  Bruno Haible  <bruno@clisp.org>
82643
82644         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82645         * m4/nls.m4: New file, from gettext-0.12.1.
82646         * m4/po.m4: New file, from gettext-0.12.1.
82647         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82648
82649 2003-05-30  Bruno Haible  <bruno@clisp.org>
82650
82651         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82652         * lib/localcharset.h: Likewise.
82653         * lib/localcharset.c: Likewise.
82654
82655 2003-05-29  Karl Berry  <karl@gnu.org>
82656
82657         * config/config.rpath: update from gettext.
82658
82659 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82660
82661         Assume the headers required for C89 freestanding compilers.
82662         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82663         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82664         * m4/human.m4 (gl_HUMAN): Likewise.
82665         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82666         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82667         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82668         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82669         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82670         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82671
82672 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82673
82674         Assume the headers required for C89 freestanding compilers.
82675         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82676         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82677         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82678         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82679         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82680         define, since <limits.h> is guaranteed to do that.
82681         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82682         * lib/exclude.c: Include <stdbool.h> unconditionally.
82683         * lib/tempname.c: Include <stddef.h> unconditionally.
82684         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82685         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82686         <stddef.h> does that.
82687         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82688         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82689         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82690         needed.
82691         * lib/xstrtol.c: Likewise.
82692         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82693         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82694
82695         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82696         warnings on some platforms.
82697
82698         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82699         arbitrarily.
82700
82701 2003-05-26  Jim Meyering  <jim@meyering.net>
82702
82703         Merge in a change from coreutils:
82704         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82705         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82706         that condition, rather than `-1' which is slightly misleading.
82707         Change the name of the cache variable to have the gl_ prefix.
82708         Prompted by a patch from Richard Dawe for DJGPP.
82709
82710 2003-05-24  Karl Berry  <karl@gnu.org>
82711
82712         * config/config.guess: update from prep.
82713
82714 2003-05-22  Karl Berry  <karl@gnu.org>
82715
82716         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82717
82718 2003-05-20  Karl Berry  <karl@gnu.org>
82719
82720         * config/config.guess: update from prep.
82721
82722 2003-05-18  Karl Berry  <karl@gnu.org>
82723
82724         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82725         might actually be set by the user.
82726
82727         * config/depcomp, install-sh, mdate-sh: update from automake.
82728
82729 2003-05-17  Bruno Haible  <bruno@clisp.org>
82730
82731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82732         invalid expansion for AC_EGREP_CPP.
82733         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82734         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82735         Suggested by Akim Demaille <akim@epita.fr> in
82736         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82737
82738 2003-05-12  Jim Meyering  <jim@meyering.net>
82739
82740         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82741         the space-padded-by-default conversion specifiers, %e, %k, %l.
82742
82743 2003-05-12  Bruno Haible  <bruno@clisp.org>
82744
82745         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82746         the string is longer than 4 KB.
82747
82748 2003-05-11  Karl Berry  <karl@gnu.org>
82749
82750         * config/config.{guess,sub}: update from prep.
82751
82752 2003-05-09  Bruno Haible  <bruno@clisp.org>
82753
82754         * modules/error: Add m4/strerror_r.m4 to file list.
82755
82756 2003-05-03  Bruno Haible  <bruno@clisp.org>
82757
82758         Upgrade to Unicode-4.0.
82759         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82760         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82761         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82762         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82763         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82764         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82765         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82766         Change width of U+E0100..U+E01EF from 1 to 0.
82767
82768 2003-04-25  Jim Meyering  <jim@meyering.net>
82769
82770         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82771         of type size_t, not int.
82772
82773 2003-04-25  Bruno Haible  <bruno@clisp.org>
82774
82775         * lib/copy-file.c: Include <stddef.h>, for size_t.
82776
82777 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82778
82779         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82780         code which expansion is under static control.  Patch imported from
82781         Akim Demaille's patch to Bison; see
82782         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82783
82784 2003-04-14  Bruno Haible  <bruno@clisp.org>
82785
82786         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82787
82788 2003-04-11  Jim Meyering  <jim@meyering.net>
82789
82790         Merge changes from Coreutils.
82791
82792         2003-03-22  Jim Meyering  <jim@meyering.net>
82793
82794         * lib/strftime.c (widen): Cast alloca return value to proper type.
82795
82796         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82797
82798         From GNU libc.
82799         * lib/strftime.c (my_strftime): Handle very large width
82800         specifications for numeric values correctly.  Improve checks for
82801         overflow.
82802
82803         2003-01-19  Jim Meyering  <jim@meyering.net>
82804
82805         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82806         definitions.
82807         (nl_get_alt_digit) [! defined my_strftime]: Define.
82808         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82809         _nl_get_alt_digit and _nl_get_walt_digit.
82810
82811         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82812         libc. These changes have no effect outside of _LIBC.
82813
82814 2003-04-10  Bruno Haible  <bruno@clisp.org>
82815
82816         * modules/findprog: New file.
82817         * MODULES.html.sh (func_all_modules): Add it.
82818
82819 2003-04-10  Bruno Haible  <bruno@clisp.org>
82820
82821         * m4/findprog.m4: New file.
82822         * m4/eaccess.m4: New file.
82823
82824 2003-04-10  Bruno Haible  <bruno@clisp.org>
82825
82826         * lib/findprog.h: New file, from GNU gettext.
82827         * lib/findprog.c: New file, from GNU gettext.
82828
82829 2003-04-05  Jim Meyering  <jim@meyering.net>
82830
82831         Merge changes from Coreutils.
82832
82833         * lib/exclude.h (PARAMS): Remove definition and uses.
82834         * lib/exclude.c: Remove uses of `PARAMS'.
82835
82836         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82837         Add test-cases for DOS filenames. Declare program_name.
82838         (main): Set up program_name.  Patch by Rich Dawe.
82839
82840         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82841         error from mntctl.
82842         Use mntctl's return value to drive the entry-processing loop, since
82843         we can't rely on the value of the vmt_length member in the last
82844         entry.  On some systems doing so could result in exhausting
82845         virtual memory.  Based in part on a patch from Mike Jetzer.
82846
82847 2003-04-04  Bruno Haible  <bruno@clisp.org>
82848
82849         * modules/linebreak: New file.
82850         * MODULES.html.sh (func_all_modules): Add it.
82851
82852 2003-04-04  Bruno Haible  <bruno@clisp.org>
82853
82854         * m4/linebreak.m4: New file.
82855
82856 2003-04-04  Bruno Haible  <bruno@clisp.org>
82857
82858         * lib/linebreak.h: New file, from GNU gettext.
82859         * lib/linebreak.c: New file, from GNU gettext with slight
82860         modifications.
82861         * lib/lbrkprop.h: New file, from GNU gettext.
82862
82863 2003-04-03  Bruno Haible  <bruno@clisp.org>
82864
82865         * modules/utf8-ucs4: New file.
82866         * modules/utf16-ucs4: New file.
82867         * modules/ucs4-utf8: New file.
82868         * modules/ucs4-utf16: New file.
82869         * MODULES.html.sh (func_all_modules): Add them.
82870
82871 2003-04-03  Bruno Haible  <bruno@clisp.org>
82872
82873         * m4/utf-ucs4.m4: New file.
82874         * m4/ucs4-utf.m4: New file.
82875
82876 2003-04-03  Bruno Haible  <bruno@clisp.org>
82877
82878         * lib/utf8-ucs4.h: New file, from GNU gettext.
82879         * lib/utf16-ucs4.h: New file, from GNU gettext.
82880         * lib/ucs4-utf8.h: New file, from GNU gettext.
82881         * lib/ucs4-utf16.h: New file, from GNU gettext.
82882
82883 2003-04-02  Bruno Haible  <bruno@clisp.org>
82884
82885         * modules/binary-io: New file.
82886         * MODULES.html.sh (func_all_modules): Add it.
82887
82888 2003-04-02  Bruno Haible  <bruno@clisp.org>
82889
82890         * lib/binary-io.h: New file, from GNU gettext.
82891
82892 2003-04-01  Bruno Haible  <bruno@clisp.org>
82893
82894         * modules/pathname: New file.
82895         * MODULES.html.sh (func_all_modules): Add it.
82896
82897 2003-04-01  Bruno Haible  <bruno@clisp.org>
82898
82899         * lib/pathname.h: New file, from GNU gettext.
82900         * lib/concatpath.c: New file, from GNU gettext.
82901
82902 2003-03-30  Bruno Haible  <bruno@clisp.org>
82903
82904         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82905
82906 2003-03-30  Bruno Haible  <bruno@clisp.org>
82907
82908         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82909         function chown() doesn't exist.
82910
82911 2003-03-28  Bruno Haible  <bruno@clisp.org>
82912
82913         * modules/copy-file: New file.
82914         * MODULES.html.sh (func_all_modules): Add it.
82915
82916 2003-03-28  Bruno Haible  <bruno@clisp.org>
82917
82918         * m4/copy-file.m4: New file.
82919
82920 2003-03-28  Bruno Haible  <bruno@clisp.org>
82921
82922         * lib/copy-file.h: New file, from GNU gettext.
82923         * lib/copy-file.c: New file, from GNU gettext.
82924
82925 2003-03-18  Jim Meyering  <jim@meyering.net>
82926
82927         * lib/quote.c (quote_n): Fix typo in comment.
82928
82929 2003-03-18  Bruno Haible  <bruno@clisp.org>
82930
82931         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82932         checking.
82933         * m4/onceonly_2_57.m4: Likewise.
82934
82935 2003-03-17  Bruno Haible  <bruno@clisp.org>
82936
82937         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82938         (m4_quote): Remove macro.
82939         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82940
82941 2003-03-14  Jim Meyering  <jim@meyering.net>
82942
82943         Merge changes from Coreutils.
82944         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82945         to be const, in order to avoid warnings.
82946         (obstack_room): Likewise.
82947         (obstack_empty_p): Likewise.
82948
82949 2003-03-14  Bruno Haible  <bruno@clisp.org>
82950
82951         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82952         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82953
82954 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82955
82956         Merge changes from Bison.
82957         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82958         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82959         when compiling Bison 1.875's `bitset bset = obstack_alloc
82960         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82961         * lib/hash.c: Include <stdbool.h> unconditionally.
82962
82963 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82964
82965         * m4/onceonly.m4 (m4_quote): New macro.
82966         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82967         Quote AC_FOREACH variable-expansions properly.
82968
82969 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82970
82971         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82972
82973 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82974
82975         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82976         Reported by Bruce Becker; see:
82977         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82978
82979 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82980             Bruno Haible  <bruno@clisp.org>
82981
82982         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82983         Reported by John Hughes, see
82984         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82985
82986 2003-02-20  Bruno Haible  <bruno@clisp.org>
82987
82988         * MODULES.html.sh (func_all_modules): Add poll.
82989
82990 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82991
82992         * modules/poll: New file.
82993
82994 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82995
82996         * lib/poll_.h: New file.
82997         * lib/poll.c: New file.
82998
82999 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83000
83001         * m4/poll.m4: New file.
83002
83003 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83004
83005         * modules/mathl: New file.
83006
83007 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83008
83009         * lib/mathl.h: New file.
83010         * lib/acosl.c: New file.
83011         * lib/asinl.c: New file.
83012         * lib/atanl.c: New file.
83013         * lib/ceill.c: New file.
83014         * lib/cosl.c: New file.
83015         * lib/expl.c: New file.
83016         * lib/floorl.c: New file.
83017         * lib/frexpl.c: New file.
83018         * lib/ldexpl.c: New file.
83019         * lib/logl.c: New file.
83020         * lib/sincosl.c: New file.
83021         * lib/sinl.c: New file.
83022         * lib/sqrtl.c: New file.
83023         * lib/tanl.c: New file.
83024         * lib/trigl.c: New file.
83025         * lib/trigl.h: New file.
83026
83027 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83028
83029         * m4/mathl.m4: New file.
83030
83031 2003-02-18  Bruno Haible  <bruno@clisp.org>
83032
83033         * MODULES.html.sh (func_all_modules): Add mathl.
83034
83035 2003-02-17  Bruno Haible  <bruno@clisp.org>
83036
83037         * modules/mkdtemp: New module.
83038         * MODULES.html.sh (func_all_modules): Add it.
83039
83040 2003-02-17  Bruno Haible  <bruno@clisp.org>
83041
83042         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83043
83044 2003-02-17  Bruno Haible  <bruno@clisp.org>
83045
83046         * lib/mkdtemp.h: New file, from GNU gettext.
83047         * lib/mkdtemp.c: New file, from GNU gettext.
83048
83049 2003-02-02  Jim Meyering  <jim@meyering.net>
83050
83051         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83052         e.g. glibc-2.2.93.
83053
83054 2003-01-31  Bruno Haible  <bruno@clisp.org>
83055
83056         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83057         'rpl_rename'.
83058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83059         'rpl_strnlen'.
83060         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83061         'rpl_strtod'.
83062         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83063         'rpl_utime'.
83064
83065 2003-01-31  Bruno Haible  <bruno@clisp.org>
83066
83067         * lib/rename.c: #undef rename before defining rpl_rename.
83068         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83069
83070 2003-01-30  Bruno Haible  <bruno@clisp.org>
83071
83072         * modules/vasnprintf, modules/vasprintf: New modules.
83073         * MODULES.html.sh (func_all_modules): Add them.
83074
83075 2003-01-30  Bruno Haible  <bruno@clisp.org>
83076
83077         * m4/signed.m4: New file, from GNU gettext.
83078         * m4/longdouble.m4: New file, from GNU gettext.
83079         * m4/wchar_t.m4: New file, from GNU gettext.
83080         * m4/wint_t.m4: New file, from GNU gettext.
83081         * m4/vasnprintf.m4: New file.
83082         * m4/vasprintf.m4: New file.
83083
83084 2003-01-30  Bruno Haible  <bruno@clisp.org>
83085
83086         * lib/printf-args.h: New file, from GNU gettext.
83087         * lib/printf-args.c: New file, from GNU gettext.
83088         * lib/printf-parse.h: New file, from GNU gettext.
83089         * lib/printf-parse.c: New file, from GNU gettext.
83090         * lib/vasnprintf.h: New file, from GNU gettext.
83091         * lib/vasnprintf.c: New file, from GNU gettext.
83092         * lib/asnprintf.c: New file, from GNU gettext.
83093         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83094         * lib/vasprintf.c: New file, from GNU gettext.
83095         * lib/asprintf.c: New file, from GNU gettext.
83096
83097 2003-01-29  Bruno Haible  <bruno@clisp.org>
83098
83099         * modules/stpncpy: New module.
83100         * MODULES.html.sh (func_all_modules): Add it.
83101
83102 2003-01-29  Bruno Haible  <bruno@clisp.org>
83103
83104         * m4/stpncpy.m4: New file.
83105
83106 2003-01-29  Bruno Haible  <bruno@clisp.org>
83107
83108         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83109         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83110
83111 2003-01-28  Bruno Haible  <bruno@clisp.org>
83112
83113         * modules/c-ctype: New module.
83114         * MODULES.html.sh (func_all_modules): Add it.
83115
83116 2003-01-28  Bruno Haible  <bruno@clisp.org>
83117
83118         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83119         Paul Eggert.
83120         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83121         Paul Eggert.
83122
83123 2003-01-27  Bruno Haible  <bruno@clisp.org>
83124
83125         * modules/xsetenv: New module.
83126         * MODULES.html.sh (func_all_modules): Add it.
83127
83128 2003-01-27  Bruno Haible  <bruno@clisp.org>
83129
83130         * lib/xsetenv.h: New file, from GNU gettext.
83131         * lib/xsetenv.c: New file, from GNU gettext.
83132
83133 2003-01-23  Jim Meyering  <jim@meyering.net>
83134
83135         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83136         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83137
83138 2003-01-23  Bruno Haible  <bruno@clisp.org>
83139
83140         * modules/minmax: New module.
83141         * MODULES.html.sh (func_all_modules): Add it.
83142
83143 2003-01-23  Bruno Haible  <bruno@clisp.org>
83144
83145         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83146         Eggert.
83147
83148 2003-01-22  Bruno Haible  <bruno@clisp.org>
83149
83150         * modules/exit: New module.
83151         * MODULES.html.sh (func_all_modules): Add it.
83152
83153 2003-01-22  Bruno Haible  <bruno@clisp.org>
83154
83155         * lib/exit.h: New file, from GNU gettext.
83156
83157 2003-01-19  Bruno Haible  <bruno@clisp.org>
83158
83159         * gnulib-tool: Recognize option --extract-maintainer.
83160         (func_get_maintainer): New function.
83161         * modules/*: Add Maintainer entry.
83162
83163 2003-01-16  Jim Meyering  <jim@meyering.net>
83164
83165         * m4/regex.m4: The `regex' struct is both input and output.
83166         Initialize it before each use.  Patch by Tim Waugh.
83167
83168 2003-01-16  Bruno Haible  <bruno@clisp.org>
83169
83170         * MODULES.html.sh: Add a table of contents. Add the module name as
83171         leftmost column. Add hyperlinks.
83172
83173 2003-01-15  Bruno Haible  <bruno@clisp.org>
83174
83175         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83176
83177 2003-01-15  Bruno Haible  <bruno@clisp.org>
83178
83179         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83180         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83181         suffix.
83182
83183 2003-01-15  Bruno Haible  <bruno@clisp.org>
83184
83185         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83186
83187 2003-01-15  Bruno Haible  <bruno@clisp.org>
83188
83189         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83190         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83191
83192 2003-01-14  Jim Meyering  <jim@meyering.net>
83193
83194         * lib/same.c (same_name): Tweak a comment.
83195
83196 2003-01-14  Bruno Haible  <bruno@clisp.org>
83197
83198         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83199         when a string comparison is sufficient.
83200
83201 2003-01-14  Bruno Haible  <bruno@clisp.org>
83202
83203         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83204         'unsigned int'.
83205
83206 2003-01-14  Bruno Haible  <bruno@clisp.org>
83207
83208         * lib/hash-pjw.c: Add comment about low quality of this function.
83209
83210 2003-01-13  Bruno Haible  <bruno@clisp.org>
83211
83212         * modules/stpcpy: Distribute lib/stpcpy.h.
83213         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83214
83215 2003-01-13  Bruno Haible  <bruno@clisp.org>
83216
83217         * modules/*: Add a description.
83218         * modules/strpbrk: Fix Makefile.am snippet.
83219         * modules/strtoimax: Fix dependencies.
83220         * modules/strtoumax: Likewise.
83221
83222 2003-01-13  Bruno Haible  <bruno@clisp.org>
83223
83224         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83225         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83226         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83227
83228 2003-01-13  Bruno Haible  <bruno@clisp.org>
83229
83230         * gnulib-tool (func_create_testdir): Store config/* files in the main
83231         directory.
83232         * config.rpath: Move to ...
83233         * config/config.rpath: ... here.
83234         * modules/gettext: Contains config/config.rpath, not config.rpath.
83235         * modules/iconv: Likewise.
83236
83237 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83238
83239         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83240         to avoid collisions with libcurses and libreadline.
83241
83242         * m4/getstr.m4: Remove.
83243         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83244
83245 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83246
83247         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83248         to avoid collisions with libcurses and libreadline.
83249
83250         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83251         * lib/getstr.h, getstr.c: Remove.
83252         * lib/getline.c: Include "getline.h", to check interface.
83253         Move body of old getstr.c here: this defines MIN_CHUNK and
83254         declares getdelim2, which is renamed from getstr.
83255         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83256
83257         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83258         All uses changed.
83259         * lib/linebuffer.h: Likewise.
83260         (readline): Remove backward-compatibility macro.
83261
83262 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83263
83264         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83265         to avoid collisions with libcurses and libreadline.
83266         * getstr: Remove.
83267         * MODULES.html.sh: Remove getstr.
83268         * modules/getline: Depend on unlocked-io, not getstr.
83269
83270 2003-01-12  Jim Meyering  <jim@meyering.net>
83271
83272         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83273
83274 2003-01-10  Bruno Haible  <bruno@clisp.org>
83275
83276         * modules/alloca: Change Makefile.am requirements. Simplify Include
83277         requirements. Add lib/alloca_.h to file list.
83278
83279 2003-01-10  Bruno Haible  <bruno@clisp.org>
83280
83281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83282
83283 2003-01-10  Bruno Haible  <bruno@clisp.org>
83284
83285         * lib/alloca_.h: New file.
83286         * lib/getdate.y: Unconditionally include alloca.h.
83287         * lib/makepath.c: Likewise.
83288         * lib/setenv.c: Likewise.
83289         * lib/userspec.c: Likewise.
83290
83291 2003-01-09  Karl Berry  <karl@gnu.org>
83292
83293         * MODULES.html.sh: include `dirname $0` in PATH, to find
83294         gnulib-tool.
83295
83296 2003-01-09  Bruno Haible  <bruno@clisp.org>
83297
83298         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83299         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83300
83301 2003-01-09  Bruno Haible  <bruno@clisp.org>
83302
83303         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83304
83305 2003-01-09  Bruno Haible  <bruno@clisp.org>
83306
83307         * lib/stdbool.h.in: New file.
83308
83309 2003-01-09  Bruno Haible  <bruno@clisp.org>
83310
83311         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83312         * MODULES.html.sh: Likewise.
83313
83314 2003-01-08  Jim Meyering  <jim@meyering.net>
83315
83316         * lib/full-write.c: Undefine and define-away `const' after inclusion
83317         of errno.h, not before.  Suggestion from Bruno Haible.
83318
83319 2003-01-08  Bruno Haible  <bruno@clisp.org>
83320
83321         * modules/full-read: Depend on full-write.
83322
83323 2003-01-08  Bruno Haible  <bruno@clisp.org>
83324
83325         * lib/safe-read.c: Include specification header first, to ensure its
83326         selfcontainedness.
83327         * lib/full-write.c: Likewise.
83328
83329 2003-01-07  Jim Meyering  <jim@meyering.net>
83330
83331         * lib/full-write.c: Rework so that it may serve to define full_read,
83332         too.
83333         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83334
83335 2003-01-07  Bruno Haible  <bruno@clisp.org>
83336
83337         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83338         <inttypes.h>.
83339         * lib/xstrtol.h: Likewise.
83340         * lib/xstrtoimax.c: Likewise.
83341         * lib/xstrtoumax.c: Likewise.
83342         * lib/human.h: Likewise.
83343
83344         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83345         on systems that have <inttypes.h> but not <stdint.h>.
83346
83347 2003-01-07  Bruno Haible  <bruno@clisp.org>
83348
83349         * MODULES.html.sh: Add copyright notice.
83350         (missed_files): Omit CVS directory entries.
83351         (func_module): Make it work with sed-3.02.
83352         * MODULES.txt: Remove file.
83353
83354 2003-01-06  Jim Meyering  <jim@meyering.net>
83355
83356         * lib/version-etc.c: Update year in translatable copyright string.
83357
83358 2003-01-03  Karl Berry  <karl@gnu.org>
83359
83360         * config/config.{guess,sub}: update from prep.
83361
83362 2003-01-02  Karl Berry  <karl@gnu.org>
83363
83364         * doc/COPYING.DOC: belatedly updated to 1.2.
83365
83366 2003-01-01  Karl Berry  <karl@gnu.org>
83367
83368         * gnulib-tool (func_verify_module): report module name $module in
83369         error message, not $1.
83370         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83371         be created, only if it doesn't exist.
83372         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83373
83374 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83375
83376         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83377
83378 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83379
83380         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83381         memcmp if strcoll doesn't work.
83382
83383 2002-12-31  Bruno Haible  <bruno@clisp.org>
83384
83385         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83386         nonempty.
83387
83388 2002-12-31  Bruno Haible  <bruno@clisp.org>
83389
83390         * lib/memcoll.c (STRCOLL): New macro.
83391         (memcoll): Use it.
83392
83393 2002-12-31  Bruno Haible  <bruno@clisp.org>
83394
83395         * lib/localcharset.h: New file.
83396         * lib/localcharset.c: Include it.
83397         * lib/unicodeio.c: Likewise.
83398
83399 2002-12-31  Bruno Haible  <bruno@clisp.org>
83400
83401         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83402         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83403
83404 2002-12-31  Bruno Haible  <bruno@clisp.org>
83405
83406         * lib/getline.h: Include <stddef.h>, for size_t.
83407
83408         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83409         * lib/unicodeio.c: Don't include <stddef.h>.
83410
83411 2002-12-31  Bruno Haible  <bruno@clisp.org>
83412
83413         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83414         HAVE_TM_ZONE.
83415
83416 2002-12-24  Karl Berry  <karl@gnu.org>
83417
83418         * config/config.guess: update from prep.
83419
83420 2002-12-24  Bruno Haible  <bruno@clisp.org>
83421
83422         General infrasructure.
83423         * m4/README: Rewritten.
83424         * m4/onceonly.m4: New file.
83425         * m4/onceonly_2_57.m4: New file.
83426
83427         Module atexit.
83428         * m4/atexit.m4: New file.
83429
83430         Module strtod.
83431         * m4/strtod.m4: New file.
83432
83433         Module strtol.
83434         * m4/strtol.m4: New file.
83435
83436         Module strtoul.
83437         * m4/strtoul.m4: New file.
83438
83439         Module memchr.
83440         * m4/memchr.m4: New file.
83441
83442         Module memcmp.
83443         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83444         (jm_FUNC_MEMCMP): Invoke it.
83445
83446         Module memcpy.
83447         * m4/memcpy.m4: New file.
83448
83449         Module memmove.
83450         * m4/memmove.m4: New file.
83451
83452         Module memset.
83453         * m4/memset.m4: New file.
83454
83455         Module strcspn.
83456         * m4/strcspn.m4: New file.
83457
83458         Module strpbrk.
83459         * m4/strpbrk.m4: New file.
83460
83461         Module strstr.
83462         * m4/strstr.m4: New file.
83463
83464         Module strerror.
83465         * m4/strerror.m4: New file.
83466
83467         Module mktime.
83468         * m4/mktime.m4: Renamed from jm-mktime.m4.
83469         (gl_PREREQ_MKTIME): New macro.
83470         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83471
83472         Module malloc.
83473         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83474         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83475         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83476
83477         Module realloc.
83478         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83479         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83480         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83481
83482         Module strftime.
83483         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83484         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83485         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83486         gl_TM_GMTOFF.
83487         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83488
83489         Module xalloc.
83490         * m4/xalloc.m4: New file.
83491
83492         Module alloca.
83493         * m4/alloca.m4: New file.
83494
83495         Module putenv.
83496         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83497         (jm_FUNC_PUTENV): Invoke it.
83498
83499         Module setenv.
83500         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83501         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83502         when invoked twice.
83503         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83504         gt_FUNC_SETENV.
83505
83506         Module memrchr.
83507         * m4/memrchr.m4: New file.
83508
83509         Module stpcpy.
83510         * m4/stpcpy.m4: New file.
83511
83512         Module strcase.
83513         * m4/strcase.m4: New file.
83514
83515         Module strdup.
83516         * m4/strdup.m4: New file.
83517
83518         Module strnlen.
83519         * m4/strnlen.m4: New file.
83520
83521         Module strndup.
83522         * m4/strndup.m4: New file.
83523
83524         Module xstrtod.
83525         * m4/xstrtod.m4: New file.
83526
83527         Module xstrtol.
83528         * m4/xstrtol.m4: New file.
83529
83530         Module getdate.
83531         * m4/getdate.m4: New file.
83532
83533         Module unlocked-io.
83534         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83535         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83536         * m4/jm-glibc-io.m4n: Remove file.
83537
83538         Module long-options.
83539         * m4/long-options.m4: New file.
83540
83541         Module md5.
83542         * m4/md5.m4: New file.
83543
83544         Module sha.
83545         * m4/sha.m4: New file.
83546
83547         Module getstr.
83548         * m4/getstr.m4: New file.
83549
83550         Module getline.
83551         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83552         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83553         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83554         simply getline. Infoke gl_PREREQ_GETLINE.
83555
83556         Module obstack.
83557         * m4/obstack.m4: New file.
83558
83559         Module hash.
83560         * m4/hash.m4: New file.
83561
83562         Module readtokens.
83563         * m4/readtokens.m4: New file.
83564
83565         Module strverscmp.
83566         * m4/strverscmp.m4: New file.
83567
83568         Module stdbool.
83569         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83570         OSF/1.
83571
83572         Module strtoll.
83573         * m4/strtoll.m4: New file.
83574
83575         Module strtoull.
83576         * m4/strtoull.m4: New file.
83577
83578         Module strtoimax.
83579         * m4/strtoimax.m4: New file.
83580
83581         Module strtoumax.
83582         * m4/strtoumax.m4: New file.
83583
83584         Module xstrtoimax.
83585         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83586         jm_AC_PREREQ_XSTRTOIMAX.
83587         Moved the strtol prerequisites to strtol.m4.
83588         Moved the strtoll prerequisites to strtoll.m4.
83589         Moved the strtoimax prerequisites to strtoimax.m4.
83590
83591         Module xstrtoumax.
83592         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83593         jm_AC_PREREQ_XSTRTOUMAX.
83594         Moved the strtoul prerequisites to strtoul.m4.
83595         Moved the strtoull prerequisites to strtoull.m4.
83596         Moved the strtoumax prerequisites to strtoumax.m4.
83597
83598         Module chown.
83599         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83600         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83601
83602         Module dup2.
83603         * m4/dup2.m4: New file.
83604
83605         Module ftruncate.
83606         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83607         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83608
83609         Module getgroups.
83610         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83611         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83612
83613         Module gettimeofday.
83614         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83615         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83616         gl_PREREQ_GETTIMEOFDAY.
83617
83618         Module mkdir.
83619         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83620         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83621
83622         Module mkstemp.
83623         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83624         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83625         jm_AC_TYPE_UINTMAX_T.
83626         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83627
83628         Module stat.
83629         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83630         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83631
83632         Module lstat.
83633         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83634         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83635
83636         Module timespec.
83637         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83638         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83639         * m4/st_mtim.m4: Indentation.
83640
83641         Module nanosleep.
83642         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83643         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83644         gl_PREREQ_NANOSLEEP.
83645
83646         Module regex.
83647         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83648         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83649         (gl_REGEX): New macro.
83650
83651         Module rename.
83652         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83653         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83654
83655         Module rmdir.
83656         * m4/rmdir.m4: New file.
83657
83658         Module utime.
83659         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83660         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83661         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83662
83663         Module dirname.
83664         * m4/dirname.m4: New file.
83665
83666         Module getopt.
83667         * m4/getopt.m4: New file.
83668
83669         Module unistd-safer.
83670         * m4/unistd-safer.m4: New file.
83671
83672         Module fnmatch.
83673         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83674         declaration.
83675         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83676         (gl_FUNC_FNMATCH_POSIX): New macro.
83677         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83678         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83679         simply fnmatch.
83680
83681         Module exclude.
83682         * m4/exclude.m4: New file.
83683
83684         Module human.
83685         * m4/human.m4: New file.
83686
83687         Module acl.
83688         * m4/acl.m4: Nop.
83689
83690         Module backupfile.
83691         * m4/backupfile.m4: New file.
83692         * m4/d-ino.m4: Indentation.
83693
83694         Module fsusage.
83695         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83696         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83697         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83698
83699         Module dirfd.
83700         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83701         requirements.
83702
83703         Module euidaccess.
83704         * m4/euidaccess.m4: New file.
83705
83706         Module file-type.
83707         * m4/file-type.m4: New file.
83708
83709         Module fileblocks.
83710         * m4/fileblocks.m4: New file.
83711
83712         Module filemode.
83713         * m4/filemode.m4: New file.
83714
83715         Module isdir.
83716         * m4/isdir.m4: New file.
83717
83718         Module lchown.
83719         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83720         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83721
83722         Module makepath.
83723         * m4/makepath.m4: New file.
83724
83725         Module modechange.
83726         * m4/modechange.m4: New file.
83727
83728         Module mountlist.
83729         * m4/mountlist.m4: New file.
83730         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83731         Indentation.
83732
83733         Module path-concat.
83734         * m4/path-concat.m4: New file.
83735
83736         Module pathmax.
83737         * m4/pathmax.m4: New file.
83738
83739         Module same.
83740         * m4/same.m4: New file.
83741
83742         Module save-cwd.
83743         * m4/save-cwd.m4: New file.
83744
83745         Module savedir.
83746         * m4/savedir.m4: New file.
83747
83748         Module xgetcwd.
83749         * m4/xgetcwd.m4: New file.
83750         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83751
83752         Module xreadlink.
83753         * m4/xreadlink.m4: New file.
83754
83755         Module safe-read.
83756         * m4/safe-read.m4: New file.
83757
83758         Module safe-write.
83759         * m4/safe-write.m4: New file.
83760
83761         Module closeout.
83762         * m4/closeout.m4: New file.
83763
83764         Module stdio-safer.
83765         * m4/stdio-safer.m4: New file.
83766
83767         Module getpass.
83768         * m4/getpass.m4: New file.
83769
83770         Module getugroups.
83771         * m4/getugroups.m4: New file.
83772
83773         Module group-member.
83774         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83775         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83776
83777         Module idcache.
83778         * m4/idcache.m4: New file.
83779
83780         Module userspec.
83781         * m4/userspec.m4: New file.
83782
83783         Module gettime.
83784         * m4/clock_time.m4: New file.
83785         * m4/gettime.m4: New file.
83786
83787         Module settime.
83788         * m4/settime.m4: New file.
83789
83790         Module posixtm.
83791         * m4/posixtm.m4: New file.
83792
83793         Module gethostname.
83794         * m4/gethostname.m4: New file.
83795
83796         Module canon-host.
83797         * m4/canon-host.m4: New file.
83798
83799         Module gettext.
83800         * m4/codeset.m4: New file, from gettext-0.11.5.
83801         * m4/gettext.m4: New file, from gettext-0.11.5.
83802         * m4/glibc21.m4: New file, from gettext-0.11.5.
83803         * m4/iconv.m4: New file, from gettext-0.11.5.
83804         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83805         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83806         * m4/inttypes.m4: New file, from gettext-0.11.5.
83807         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83808         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83809         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83810         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83811         * m4/lib-link.m4: New file, from gettext-0.11.5.
83812         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83813         * m4/progtest.m4: New file, from gettext-0.11.5.
83814         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83815         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83816         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83817
83818         Module localcharset.
83819         * m4/localcharset.m4: New file.
83820
83821         Module hard-locale.
83822         * m4/hard-locale.m4: New file.
83823
83824         Module mbswidth.
83825         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83826         onceonly macros.
83827         * m4/mbrtowc.m4: Add comment.
83828
83829         Module memcasecmp.
83830         * m4/memcasecmp.m4: New file.
83831
83832         Module memcoll.
83833         * m4/memcoll.m4: New file.
83834
83835         Module unicodeio.
83836         * m4/unicodeio.m4: New file.
83837
83838         Module rpmatch.
83839         * m4/rpmatch.m4: New file.
83840
83841         Module yesno.
83842         * m4/yesno.m4: New file.
83843
83844         Module exitfail.
83845         * m4/exitfail.m4: New file.
83846
83847         Module c-stack.
83848         * m4/c-stack.m4 (gl_C_STACK): New macro.
83849         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83850
83851         Module error.
83852         * m4/error.m4 (gl_ERROR): New macro.
83853         (jm_PREREQ_ERROR): Use onceonly macros.
83854
83855         Module fatal.
83856         * m4/fatal.m4: New file.
83857
83858         Module getloadavg.
83859         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83860         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83861
83862         Module getpagesize.
83863         * m4/getpagesize.m4: New file.
83864
83865         Module getusershell.
83866         * m4/getusershell.m4: New file.
83867
83868         Module physmem.
83869         * m4/physmem.m4: New file.
83870
83871         Module posixver.
83872         * m4/posixver.m4: New file.
83873
83874         Module quotearg.
83875         * m4/quotearg.m4: New file.
83876
83877         Module quote.
83878         * m4/quote.m4: New file.
83879
83880         Module readutmp.
83881         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83882
83883         Module sig2str.
83884         * m4/sig2str.m4: New file.
83885
83886         Other.
83887         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83888         ulonglong.m4.
83889         * m4/intmax_t.m4: New file.
83890         * m4/d-type.m4: Indentation.
83891         * m4/jm-macros.m4: Update.
83892         * m4/prereq.m4 (jm_PREREQ): Update.
83893         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83894         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83895         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83896         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83897         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83898         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83899         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83900         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83901         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83902         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83903         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83904         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83905         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83906         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83907         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83908         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83909         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83910         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83911         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83912
83913 2002-12-24  Bruno Haible  <bruno@clisp.org>
83914
83915         * MODULES.txt: Update according to m4/ changes.
83916
83917         Module gettext.
83918         * config.rpath: New file, from gettext-0.11.5.
83919
83920         * modules/*: New module descriptions.
83921         * gnulib-tool: New file.
83922         * MODULES.html.sh: New file.
83923
83924 2002-12-21  Karl Berry  <karl@gnu.org>
83925
83926         * doc/fdl.texi: update to version 1.2.
83927
83928 2002-12-19  Karl Berry  <karl@gnu.org>
83929
83930         * config/config.guess: update from prep.
83931
83932 2002-12-18  Bruno Haible  <bruno@clisp.org>
83933
83934         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83935         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83936
83937 2002-12-17  Bruno Haible  <bruno@clisp.org>
83938
83939         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83940         stdlib.h, string.h.
83941
83942 2002-12-17  Bruno Haible  <bruno@clisp.org>
83943
83944         * lib/canon-host.c (strdup): Remove unused declaration.
83945
83946         * lib/fsusage.c: Include full_read.h.
83947         (get_fs_usage): Use full_read instead of safe_read.
83948
83949         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83950
83951 2002-12-12  Karl Berry  <karl@gnu.org>
83952
83953         * config/config.guess: update from prep.
83954
83955 2002-12-11  Bruno Haible  <bruno@clisp.org>
83956
83957         * m4/setenv.m4: New file, from gettext-0.11.5.
83958
83959 2002-12-11  Bruno Haible  <bruno@clisp.org>
83960
83961         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83962         not unsetenv().
83963         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83964         modifications:
83965
83966         2002-12-11  Bruno Haible  <bruno@clisp.org>
83967
83968                 * setenv.c (alloca): Fall back to malloc.
83969                 (freea): New macro.
83970                 (setenv): Use freea() to free memory allocated with alloca().
83971
83972         2002-11-13  Bruno Haible  <bruno@clisp.org>
83973
83974                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83975                 function declarations.
83976                 * unsetenv.c (unsetenv): Likewise.
83977
83978         2002-03-04  Bruno Haible  <bruno@clisp.org>
83979
83980                 Portability to AIX 4.3.3.
83981                 * unsetenv.c: New file, extracted from setenv.c.
83982                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83983
83984         2001-12-20  Bruno Haible  <bruno@clisp.org>
83985
83986                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83987                 use malloc instead. For SunOS 4.
83988
83989         2001-12-11  Bruno Haible  <bruno@clisp.org>
83990
83991                 * setenv.c: Declare alloca.
83992                 (compar_fn_t): New typedef.
83993                 (KNOWN_VALUE, STORE_VALUE): Use it.
83994
83995         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83996         setenv.h.
83997
83998 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83999
84000         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84001         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84002         Choose values that are less likely to collide with system fnmatch
84003         options.
84004         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84005         defined (e.g., a pure POSIX system).
84006         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84007         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84008
84009 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84010
84011         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84012         a pain in practice to deal with generated m4 files.  This change
84013         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84014
84015         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84016         and jm-glibc-io.m4, as they are no longer a special case.
84017         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84018         kludge and the auto-generation stuff.  Check only whether the
84019         functions are declared, not whether they exist, since older hosts
84020         that don't declare the functions can't use the optimization anyway.
84021
84022 2002-12-06  Jim Meyering  <jim@meyering.net>
84023
84024         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84025
84026         Merge in changes from libc's misc/error.c, in preparation
84027         for the merge of gnulib's changes back into libc.
84028
84029         * lib/error.c (_): Define only if not already defined.
84030         Move definition to follow all #include directives.
84031         Include unlocked-io.h only if !_LIBC.
84032         [_LIBC]: Include <libio/libioP.h>.
84033         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84034         (fflush): Tweak definition to use INTUSE.
84035         (putc): Define.
84036
84037 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84038
84039         * lib/alloca.c [defined emacs]: Include "lisp.h".
84040         (xalloc_die) [defined emacs]: New macro.
84041         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84042         [! defined emacs]: Include <xalloc.h>.
84043         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84044         (pointer): Typedef to POINTER_TYPE *.
84045         (malloc): Remove decl; we now always use xmalloc.
84046         (alloca): Use old-style definition, since Emacs needs this.
84047         Check for arithmetic overflow when computing combined size.
84048
84049 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84050
84051         Do not generate unlocked-io.h automatically, since it's easier to
84052         maintain it by hand.
84053
84054         * lib/unlocked-io.h: New file, from GNU diffutils,
84055         but with proper copyright notice and attribution.
84056         * lib/gen-uio: Remove.
84057         * lib/Makefile.am: Add copyright notice.
84058         (libfetish_a_SOURCES): Add unlocked-io.h.
84059         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84060         (DISTCLEANFILES, io_functions): Remove macros.
84061         (EXTRA_DIST): Remove gen_uio.
84062         (unlocked-io.h): Remove rule.
84063
84064 2002-12-04  Jim Meyering  <jim@meyering.net>
84065
84066         Reflect the fact that stat.c and lstat.c are no longer generated.
84067         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84068         (DISTCLEANFILES): Likewise.
84069         (EXTRA_DIST): Likewise.
84070         (all_local): Don't depend on stat.c or lstat.c.
84071         (stat.c, lstat.c): Remove rules.
84072         (EXTRA_DIST): Remove xstat.in.
84073
84074         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84075         * lib/stat.c: New file.  Contents mostly from xstat.in.
84076         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84077         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84078
84079         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84080         too.
84081         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84082
84083 2002-12-03  Jim Meyering  <jim@meyering.net>
84084
84085         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84086         but not semantics, to minimize the differences between these two files.
84087         (safe_read): Change comment to mention SAFE_READ_ERROR.
84088
84089         * lib/safe-read.c (IS_EINTR): Define.
84090         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84091
84092 2002-12-02  Jim Meyering  <jim@meyering.net>
84093
84094         * lib/safe-read.c (EINTR): Define.
84095         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84096         (INT_MAX): Provide fallback.
84097         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84098
84099         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84100
84101 2002-12-02  Bruno Haible  <bruno@clisp.org>
84102
84103         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84104         Define, taken from safe-read.c.
84105         (INT_MAX): Provide fallback.
84106         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84107         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84108
84109         * lib/safe-read.c (EINTR): Remove definition.
84110         (safe_read): Don't use EINTR if it is absent.
84111
84112 2002-12-01  Jim Meyering  <jim@meyering.net>
84113
84114         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84115         zero.
84116         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84117
84118 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84119
84120         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84121         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84122         with `if (! (value < limit)) abort ();', for readability.
84123
84124 2002-11-26  Karl Berry  <karl@gnu.org>
84125
84126         * lib/strdup.c: copy from libc again, with jim's ok.
84127         * lib/.cppi-disable: re-add strdup.c
84128
84129 2002-11-25  Karl Berry  <karl@gnu.org>
84130
84131         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84132         instead of "strtol.c".
84133
84134 2002-11-25  Karl Berry  <karl@gnu.org>
84135
84136         * config/install-sh: update from automake for variable quoting, $0 in
84137         error msgs, etc.
84138
84139         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84140         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84141         entry.
84142
84143 2002-11-25  Jim Meyering  <jim@meyering.net>
84144
84145         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84146
84147 2002-11-24  Karl Berry  <karl@gnu.org>
84148
84149         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84150         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84151
84152 2002-11-24  Jim Meyering  <jim@meyering.net>
84153
84154         Update from coreutils:
84155
84156         * lib/mktime.c: Merge in changes from libc.
84157
84158         Avoid a link-time failure on some Linux systems.
84159         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84160         (otherwise).
84161         (__mon_yday): Declare with the STATIC attribute.
84162         (__mktime_internal): Likewise.
84163         Based on a report from Greg Schafer.
84164
84165 2002-11-23  Jim Meyering  <jim@meyering.net>
84166
84167         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84168         Use `unsigned', not `int', as type of index.
84169
84170         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84171
84172         * lib/fsusage.c: Remove unneeded parentheses around operands of
84173         `defined'.
84174
84175 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84176
84177         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84178         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84179         so that we can be included first.
84180         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84181         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84182         No need to include stddef.h or sys/types.h any more.
84183         Surround local include files with "", not "<>".
84184         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84185         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84186         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84187         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84188         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84189         (ISPRINT): Remove; no longer needed now that we assume C89.
84190
84191         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84192         Preserve errno.
84193
84194         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84195         quotearg_char): Use SIZE_MAX rather than
84196         (size_t) -1 when we are talking about "infinity".
84197
84198         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84199
84200 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84201
84202         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84203         hint that one should use `if (! x) abort ();' rather than `assert
84204         (x);', and anyway it's one less thing to worry about configuring.
84205         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84206         hash_rehash, hash_insert): Use abort rather than assert.
84207
84208 2002-11-22  Bruno Haible  <bruno@clisp.org>
84209
84210         * lib/safe-read.h: Assume C89. Add comments.
84211         (safe_read): Change return type to size_t.
84212         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84213         byte counts > SSIZE_MAX correctly.
84214         * lib/safe-write.h: New file.
84215         * lib/safe-write.c: New file.
84216         * lib/full-read.h: New file.
84217         * lib/full-read.c: New file.
84218         * lib/full-write.h: Assume C89. Add comments.
84219         * lib/full-write.c: Include safe-write.h.
84220         (full_write): Rewritten to use safe_write.
84221         Suggested by Jim Meyering and Paul Eggert.
84222
84223 2002-11-21  Jim Meyering  <jim@meyering.net>
84224
84225         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84226
84227         Merge in changes from the coreutils.
84228
84229         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84230         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84231         <stdint.h>.
84232         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84233         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84234         int.  Work more efficiently if X is the same width as uintmax_t.
84235         Do not compare X to -1, to avoid bogus compiler warning.
84236         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84237         Don't assume that f_frsize and f_bsize are the same type.
84238
84239         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84240         warning on FreeBSD.
84241
84242         * lib/makepath.c (make_path): Restore umask *before* creating the final
84243         component.
84244         (make_path): Minor reformatting.
84245
84246         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84247         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84248         HAVE_MALLOC/HAVE_REALLOC.
84249
84250         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84251         dummy ones.  At least on GNU/Linux systems, `auto' means something
84252         else.
84253         From Michael Stone.
84254
84255 2002-11-21  Bruno Haible  <bruno@clisp.org>
84256
84257         Remove case insensitive option matching.
84258         * lib/argmatch.h (argcasematch): Remove declaration.
84259         (ARGCASEMATCH): Remove macro.
84260         (__xargmatch_internal): Remove case_sensitive argument.
84261         (XARGMATCH): Update.
84262         (XARGCASEMATCH): Remove macro.
84263         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84264         case_sensitive argument.
84265         (argcasematch): Remove function.
84266         (__xargmatch_internal): Remove case_sensitive argument.
84267         (main): Use XARGMATCH instead of XARGCASEMATCH.
84268
84269         * lib/xmalloc.c: Change compile-time error message. Add comment about
84270         required autoconf version.
84271
84272 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84273
84274         Merge argmatch cleanups from Bison.  Assume C89.
84275
84276         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84277         Include stdlib.h, for EXIT_FAILURE.
84278         Always include <string.h>, since we assume C89.
84279         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84280         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84281         Include <stddef.h> instead, since it's all we need for size_t.
84282         (PARAMS): Remove.  All uses removed.
84283         (ARRAY_CARDINALITY): Do not bother to #undef.
84284         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84285         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84286         Remove unnecessary parentheses.
84287         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84288         Insert necessary parentheses.
84289         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84290         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84291
84292 2002-11-19  Bruno Haible  <bruno@clisp.org>
84293
84294         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84295         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84296
84297         * lib/mbswidth.h (PARAMS): Remove macro.
84298         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84299         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84300
84301         * lib/gcd.h (PARAMS): Remove macro.
84302         (gcd): Use ANSI C function declarations.
84303         * lib/gcd.c (gcd): Likewise.
84304
84305 2002-11-15  Bruno Haible  <bruno@clisp.org>
84306
84307         * lib/strcspn.c: Include <stddef.h>.
84308         (strcspn): Use ANSI C function declaration. Change return type to
84309         size_t. Use NULL.
84310         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84311         (strpbrk): Use NULL.
84312         * lib/strpbrk.h (PARAMS): Remove macro.
84313         (strpbrk): Use ANSI C function declaration.
84314         * lib/strstr.c: Don't include <sys/types.h>.
84315         * lib/strstr.h (PARAMS): Remove macro.
84316         (strstr): Use ANSI C function declarations.
84317
84318 2002-11-14  Karl Berry  <karl@gnu.org>
84319
84320         * config/mkinstalldirs: `do' on separate line, instead of
84321         `for var; do'.
84322
84323 2002-11-06  Bruno Haible  <bruno@clisp.org>
84324
84325         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84326         * lib/gcd.c (gcd): Likewise.
84327
84328 2002-11-05  Bruno Haible  <bruno@clisp.org>
84329
84330         * lib/gcd.h: New file, from gettext-0.11.5.
84331         * lib/gcd.c: New file, from gettext-0.11.5.
84332
84333 2002-11-05  Bruno Haible  <bruno@clisp.org>
84334
84335         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84336         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84337         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84338         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84339
84340         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84341         <libintl.h>.
84342         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84343         <libintl.h>.
84344
84345         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84346         * lib/human.c: Include gettext.h instead of <libintl.h>.
84347         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84348         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84349         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84350         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84351         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84352         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84353         (textdomain): Remove definition.
84354         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84355
84356         * lib/long-options.c: Remove include of <libintl.h> and definition of
84357         _.
84358         * lib/same.c: Remove include of <libintl.h> and definition of _.
84359
84360 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84361
84362         * lib/config.charset: A few additions for Solaris.
84363
84364 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84365
84366         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84367         * lib/localcharset.c (locale_charset): Declare as extern "C".
84368
84369 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84370
84371         * lib/config.charset: msdos in uk_UA uses CP1125.
84372
84373 2002-11-04  Bruno Haible  <bruno@clisp.org>
84374
84375         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84376         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84377         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84378         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84379         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84380
84381 2002-11-04  Bruno Haible  <bruno@clisp.org>
84382
84383         * lib/localcharset.c (locale_charset): Don't return an empty string.
84384
84385 2002-11-04  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84388         aliases.
84389
84390 2002-11-04  Bruno Haible  <bruno@clisp.org>
84391
84392         * lib/config.charset: Update for newest glibc. Add canonical names
84393         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84394
84395 2002-11-04  Bruno Haible  <bruno@clisp.org>
84396
84397         * lib/config.charset: Add support for NetBSD.
84398
84399 2002-11-04  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84402
84403 2002-11-01  Bruno Haible  <bruno@clisp.org>
84404
84405         * configure.in: Add AC_CONFIG_AUX_DIR call.
84406         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84407         test/Makefile.
84408         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84409
84410 2002-09-28  Karl Berry  <karl@gnu.org>
84411
84412         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84413         installed automake until the next release, since changes have been
84414         made.
84415
84416 2002-09-25  Karl Berry  <karl@gnu.org>
84417
84418         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84419         * lib/getopt*: copy from libc/posix.
84420         * lib/gettext.h: copy from gettext.
84421         * lib/.cppi-disable: add strdup.c, gettext.h.
84422
84423 2002-09-25  Karl Berry  <karl@gnu.org>
84424
84425         * config/srclist.txt: enable gettext.h check.
84426         * config/config.{guess,sub}: update from prep.
84427         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84428                 from automake 1.6.3.
84429         See srclist*.
84430
84431 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84432
84433         * regex.c (PATFETCH): Remove the translating fetch.
84434         (PATFETCH_RAW): Rename to PATFETCH.
84435         (set_image_of_range): New fun.
84436         (SET_RANGE_TABLE_WORK_AREA): Use it.
84437         (regex_compile): Don't translate the pattern chars so eagerly.
84438         Only do it when inserting an `exactn' bytecode or when handling
84439         a char-range.
84440         (mutually_exclusive_p): Avoid empty statement.
84441
84442 2002-07-06  Jim Meyering  <meyering@lucent.com>
84443
84444         * m4/README: Don't mention Makefile.am.in.
84445         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84446
84447 2002-07-01  Jim Meyering  <meyering@lucent.com>
84448
84449         * lib/c-stack.c: Include sys/time.h.
84450         From Volker Borchert.
84451
84452 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84453
84454         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84455
84456 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84457
84458         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84459         New macro.  Use it uniformly instead of
84460         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84461         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84462         reported by Vin Shelton.
84463
84464 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84465
84466         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84467         Do not assume SA_SIGINFO behavior.
84468         Bug reported by Jim Meyering on NetBSD 1.5.2.
84469
84470 2002-06-22  Jim Meyering  <meyering@lucent.com>
84471
84472         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84473         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84474
84475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84476         now that configure.ac uses AC_GNU_SOURCE.
84477         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84478         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84479
84480         Update to latest tools.  Suggestions from Paul Eggert.
84481         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84482         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84483         * m4/fnmatch.m4: Likewise.
84484         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84485         to AC_HEADER_STDBOOL
84486
84487 2002-06-22  Jim Meyering  <meyering@lucent.com>
84488
84489         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84490         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84491
84492 2002-06-22  Jim Meyering  <meyering@lucent.com>
84493
84494         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84495
84496         * lib/exitfail.c, exitfail.h: Likewise.
84497         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84498
84499         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84500         of fnmatch.h.
84501         (EXTRA_DIST): Add fnmatch_loop.c.
84502         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84503
84504         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84505         * lib/fnmatch.c: Update from diffutils-2.8.2.
84506         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84507         * lib/fnmatch.h: Remove file.
84508
84509 2002-06-21  Jim Meyering  <meyering@lucent.com>
84510
84511         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84512         * m4/mbrtowc.m4: Likewise.
84513
84514         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84515         * m4/mbswidth.m4: Reflect name change:
84516         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84517         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84518
84519         * m4/lib-link.m4: Update from gettext-0.11.2.
84520         * m4/gettext.m4: Likewise.
84521
84522         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84523         From Alfred M. Szmidt.
84524
84525 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84526
84527         * lib/file-type.h: Report an error if neither S_ISREG nor
84528         S_IFREG is defined, instead of using a test specific to glibc
84529         2.2.  This should be safe, since POSIX requires S_ISREG and
84530         Unix Version 7 had S_IFREG.  We don't need to check for
84531         <sys/types.h> since we don't use any symbols that it defines.
84532
84533 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84534
84535         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84536         $@-t, so that each temporary file name is unique and valid in the first
84537         8 characters, for operation under DOS.
84538
84539 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84540
84541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84542
84543 2002-06-15  Jim Meyering  <meyering@lucent.com>
84544
84545         Work even with DJGPP 2.03, which lacks support for symlinks.
84546         From Richard Dawe.
84547         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84548         is defined.
84549         * lib/lchown.c (S_ISLNK): Likewise.
84550
84551 2002-06-15  Jim Meyering  <meyering@lucent.com>
84552
84553         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84554         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84555         have been included before this file.
84556
84557 2002-06-14  Jim Meyering  <meyering@lucent.com>
84558
84559         * lib/file-type.h: Use the version from diffutils-2.8.2.
84560         * lib/file-type.c: Likewise.
84561
84562 2002-06-07  Jim Meyering  <meyering@lucent.com>
84563
84564         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84565         They're needed at least for NetBSD 1.5.2.
84566         ($statxfs_includes): Include those same headers.
84567         ($statxfs_includes): Include sys/vfs.h if available.
84568         ($statxfs_includes): Likewise for sys/statvfs.h.
84569         Check for the following members in both structs statfs and statvfs:
84570         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84571
84572 2002-06-01  Jim Meyering  <meyering@lucent.com>
84573
84574         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84575         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84576
84577 2002-05-28  Jim Meyering  <meyering@lucent.com>
84578
84579         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84580         Reported by Volker Borchert.
84581
84582 2002-05-27  Jim Meyering  <meyering@lucent.com>
84583
84584         Fix a problem seen only on nonconforming systems whereby ls.c's
84585         use of localtime, and then of gettimeofday would cause trouble:
84586         the localtime call used to initialize rpl_gettimeofday's save
84587         mechanism would clobber ls's current local time information so
84588         that in any long listing the first file would always be listed
84589         with date 1970-01-01.  Analysis by Volker Borchert.
84590
84591         * lib/gettimeofday.c (localtime): Undefine.
84592         (rpl_localtime): New function.
84593
84594 2002-05-27  Jim Meyering  <meyering@lucent.com>
84595
84596         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84597         localtime.
84598
84599         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84600         use the replacement function; it wouldn't resolve at link time.
84601         Reported by Volker Borchert.
84602
84603 2002-05-22  Jim Meyering  <meyering@lucent.com>
84604
84605         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84606         file-type.h.
84607         * lib/file-type.h: New file.
84608         * lib/file-type.c (file_type): New file/function.  Extracted from
84609         diffutils.
84610
84611 2002-04-30  Jim Meyering  <meyering@lucent.com>
84612
84613         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84614
84615 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84616
84617         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84618
84619 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84620
84621         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84622         Do not check for alloca.h (no longer used) or stdbool.h (was never
84623         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84624
84625 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84626
84627         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84628
84629 2002-04-29  Jim Meyering  <meyering@lucent.com>
84630
84631         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84632         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84633         Use AC_FUNC_STRNLEN here instead.
84634
84635         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84636         With autoconf-2.53a, it's part of AC_PROG_CC.
84637
84638 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84639
84640         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84642
84643 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84644
84645         * lib/sig2str.h, lib/sig2str.c: New files.
84646         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84647
84648 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84649
84650         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84651         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84652         of 127, since 64 is the largest conceivable number for ancient
84653         nonstandard hosts.
84654         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84655
84656 2002-04-28  Jim Meyering  <meyering@lucent.com>
84657
84658         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84659
84660 2002-04-24  Jim Meyering  <meyering@lucent.com>
84661
84662         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84663         (jm_PREREQ): Use it.
84664
84665         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84666         mach/mach.h fcntl.h.
84667         Check for this function: setlocale.
84668
84669 2002-04-24  Jim Meyering  <meyering@lucent.com>
84670
84671         * lib/gettext.h: New file, from Gettext.
84672         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84673         (libfetish_a_SOURCES): Add gettext.h.
84674
84675 2002-04-16  Jim Meyering  <meyering@lucent.com>
84676
84677         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84678         ut_pid, ut_id, ut_exit.
84679
84680 2002-04-16  Jim Meyering  <meyering@lucent.com>
84681
84682         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84683         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84684         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84685
84686 2002-04-12  Jim Meyering  <meyering@lucent.com>
84687
84688         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84689         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84690         existence of the getmntinfo function.  Needed for Darwin 5.3.
84691
84692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84693         This is necessary at least on Darwin 5.3.
84694
84695         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84696         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84697         strnlen.o in the library, and that makes some versions of ranlib
84698         object.
84699
84700 2002-04-12  Jim Meyering  <meyering@lucent.com>
84701
84702         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84703
84704 2002-04-09  Jim Meyering  <meyering@lucent.com>
84705
84706         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84707         to be more precise.  Rather than saying we're checking whether the
84708         function `works', say what we're testing.
84709         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84710         Reported by Bruno Haible.
84711
84712 2002-03-10  Jim Meyering  <meyering@lucent.com>
84713
84714         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84715         Suggestion from Santiago Vila.
84716
84717 2002-03-08  Jim Meyering  <meyering@lucent.com>
84718
84719         * lib/rename.c: Mention that this wrapper is needed also on
84720         mips-dec-ultrix4.4 systems.
84721
84722 2002-03-02  Jim Meyering  <meyering@lucent.com>
84723
84724         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84725         not HAVE_CLOCK_SETTIME.
84726
84727 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84728
84729         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84730         Check for clock_settime.
84731
84732 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84733
84734         * lib/nanosleep.h: Rename to....
84735         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84736
84737         * lib/gettime.c: New file.
84738         * lib/settime.c: New file.
84739         * lib/stime.c: Remove.
84740
84741         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84742         timespec.h.  Remove nanosleep.h.
84743
84744 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84745
84746         * m4/acl.m4: New file.
84747         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84748         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84749
84750 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84751
84752         * lib/acl.c, lib/acl.h: New files.
84753         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84754
84755 2002-02-24  Jim Meyering  <meyering@lucent.com>
84756
84757         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84758         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84759         cause trouble.  Reported by Nelson Beebe.
84760
84761 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84762
84763         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84764         compilers that don't know that xalloc_die never returns.
84765
84766 2002-02-20  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/getdate.c: Regenerate using bison-1.33.
84769
84770 2002-02-17  Jim Meyering  <meyering@lucent.com>
84771
84772         * config/config.guess (main): Don't use `head -1'; it's no longer
84773         portable. Use `sed 1q' instead.
84774
84775 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84776
84777         * m4/codeset.m4: Upgrade to gettext-0.11.
84778         * m4/gettext.m4: Upgrade to gettext-0.11.
84779         * m4/glibc21.m4: Upgrade to gettext-0.11.
84780         * m4/iconv.m4: Upgrade to gettext-0.11.
84781         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84782         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84783         * m4/lib-ld.m4: New file, from gettext-0.11.
84784         * m4/lib-link.m4: New file, from gettext-0.11.
84785         * m4/lib-prefix.m4: New file, from gettext-0.11.
84786         * m4/progtest.m4: Upgrade to gettext-0.11.
84787
84788 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84789
84790         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84791         (jm_PREREQ): Use it.
84792
84793 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84794
84795         * lib/posixver.c, lib/posixver.h: New files.
84796         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84797
84798 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84799             Bruno Haible  <bruno@clisp.org>
84800
84801         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84802         (fwrite_success_callback): New declaration.
84803         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84804         print_unicode_char. Call failure callback instead of error.
84805         (fwrite_success_callback): New function.
84806         (exit_failure_callback): New function.
84807         (fallback_failure_callback): New function.
84808         (print_unicode_char): Call unicode_to_mb.
84809
84810 2002-01-26  Jim Meyering  <meyering@lucent.com>
84811
84812         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84813         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84814
84815 2002-01-26  Jim Meyering  <meyering@lucent.com>
84816
84817         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84818
84819 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84820
84821         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84822
84823 2002-01-22  Jim Meyering  <meyering@lucent.com>
84824
84825         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84826         Otherwise, some versions of automake would omit the rule that makes
84827         Makefile from Makefile.in.
84828
84829 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84830
84831         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84832         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84833         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84834         (memcoll): Set errno to zero if there is no error.
84835
84836         * lib/quotearg.c (quotearg_buffer_restyled):
84837         Fix bug with quoting buffers containing NUL when backslashing escapes.
84838         This bug was exposed by the other changes in this patch.
84839         (quotearg_n_options): New arg ARGSIZE.
84840         All callers changed.
84841         (quoting_options_from_style): New function.
84842         (quotearg_n_style): Use it.
84843         (quotearg_n_style_mem): New function.
84844
84845         * lib/quotearg.h (quotearg_n_style_mem): New function.
84846
84847 2002-01-19  Jim Meyering  <meyering@lucent.com>
84848
84849         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84850         Remove useless quotes: DF_PROG="df".
84851         * m4/strnlen.m4: New file.
84852
84853 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84854
84855         * lib/backupfile.c (ISDIGIT): Comment fix.
84856         * lib/getdate.y (ISDIGIT): Likewise.
84857         * lib/posixtm.c (ISDIGIT, year): Likewise.
84858         * lib/strverscmp.c (ISDIGIT): Likewise.
84859         * lib/userspec.c (ISDIGIT): Likewise.
84860
84861 2002-01-16  Jim Meyering  <meyering@lucent.com>
84862
84863         * lib/getdate.y: Add three semicolons, each just before a closing
84864         brace. Bison (as of version 1.31) no longer papers over that mistake.
84865
84866 2002-01-05  Jim Meyering  <meyering@lucent.com>
84867
84868         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84869
84870 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84871
84872         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84873         not silently exit merely because the output buffer happens to
84874         have nothing pending.
84875
84876 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84877
84878         See the big note in ../ChangeLog.
84879         * lib/human.c (suffixes): Prefer K to k for 1024.
84880         (generate_suffix_backwards): New function.
84881         (human_readable_inexact): Use it.
84882         * lib/xstrtol.c (__xstrtol): If there is no number but there
84883         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84884         Accept 'K' as well as 'k'.
84885
84886 2001-12-15  Jim Meyering  <meyering@lucent.com>
84887
84888         * lib/regex.h (__restrict_arr): Update from libc.
84889
84890         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84891         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84892         (STREQ): Define.
84893
84894 2001-12-14  Jim Meyering  <meyering@lucent.com>
84895
84896         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84897         Suggestion from Bruno Haible.
84898
84899 2001-12-10  Jim Meyering  <meyering@lucent.com>
84900
84901         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84902         xrealloc, Instead, include "xalloc.h".
84903         (initbuffer): Don't cast xmalloc return value to char*.
84904         (readline): Reword comment.
84905         Don't cast xrealloc return value to char*
84906         Return NULL, not 0.
84907
84908 2001-12-09  Jim Meyering  <meyering@lucent.com>
84909
84910         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84911         about `signed and unsigned type in conditional expression'.
84912         * lib/posixtm.c (posix_time_parse): Likewise.
84913
84914         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84915
84916         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84917         to avoid a pedantic warning.
84918
84919         * lib/getstr.c: Don't include assert.h.
84920         (getstr): Remove warning-evoking assertions.
84921         Return -1 if offset parameter is out of bounds.
84922         Change the type of a local from int to size_t.
84923
84924         * lib/strftime.c (my_strftime_localtime_r): Include this function
84925         definition in the `#if ! HAVE_TM_GMTOFF' block.
84926
84927         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84928         Include xalloc.h instead.
84929
84930 2001-12-02  Jim Meyering  <meyering@lucent.com>
84931
84932         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84933         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84934         included.
84935
84936         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84937         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84938
84939 2001-11-30  Akim Demaille  <akim@epita.fr>
84940
84941         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84942         before being defined.
84943
84944 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84945
84946         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84947         First arg is int, not unsigned.
84948         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84949         (SIZE_MAX, UINT_MAX): New macros.
84950         (quotearg_n_options): Abort if N is negative.
84951         Avoid overflow check on hosts where size_t is 64 bits and int
84952         is 32 bits, as overflow is impossible there.
84953         Fix off-by-one typo that caused unnecessary reallocation.
84954
84955 2001-11-27  Jim Meyering  <meyering@lucent.com>
84956
84957         * lib/tempname.c: Merge with version from libc.
84958         * lib/regex.c: Likewise.
84959
84960         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84961         systems for which STDC_HEADERS is 0, it was not included, resulting in
84962         a warning about an integer-to-pointer conversion problem with getenv.
84963         Reported by Volker Borchert.
84964
84965 2001-11-26  Jim Meyering  <meyering@lucent.com>
84966
84967         * lib/gtod.h: Remove file.
84968         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84969         * lib/gettimeofday.c: Don't include gtod.h.
84970         (GTOD_init): Remove function.
84971         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84972         Suggestion from Volker Borchert.
84973
84974 2001-11-23  Jim Meyering  <meyering@lucent.com>
84975
84976         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84977         it.
84978         * lib/hash.c (struct hash_table): Define it here instead.
84979
84980 2001-11-22  Jim Meyering  <meyering@lucent.com>
84981
84982         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84983
84984 2001-11-20  Jim Meyering  <meyering@lucent.com>
84985
84986         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84987         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84988
84989 2001-11-19  Jim Meyering  <meyering@lucent.com>
84990
84991         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84992         directory.  Use "conftestXXXXXX" as the template.
84993         Suggestion from Paul Eggert.
84994
84995         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84996         immediately, so the test doesn't mistakenly hit the max-open-files
84997         limit.
84998
84999 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85000
85001         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85002         (TEMPORARIES): New macro.
85003         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85004         removes an artificial limitation (e.g. HP-UX 10.20, where
85005         TMP_MAX is 17576).
85006
85007 2001-11-18  Jim Meyering  <meyering@lucent.com>
85008
85009         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85010
85011 2001-11-18  Jim Meyering  <meyering@lucent.com>
85012
85013         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85014         on SunOS 4.
85015
85016         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85017         files will be created before anything else.
85018
85019 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85020
85021         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85022         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85023
85024 2001-11-17  Jim Meyering  <meyering@lucent.com>
85025
85026         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85027         Prompted by a report from Bob Proulx.
85028
85029         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85030         Instead, require UTILS_FUNC_MKSTEMP.
85031
85032 2001-11-17  Jim Meyering  <meyering@lucent.com>
85033
85034         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85035         Now, that's done as part of AC_FUNC_STRTOD.
85036
85037 2001-11-17  Jim Meyering  <meyering@lucent.com>
85038
85039         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85040         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85041         rather than group writable.  Patch by Juan F. Codagnone.
85042
85043         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85044         xrealloc, Instead, include "xalloc.h".
85045
85046         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85047         Remove explicit declarations of xmalloc, xrealloc,
85048         and xstrdup.  Instead, include "xalloc.h".
85049
85050         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85051         unlocked-io.h.
85052         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85053         Likewise.
85054         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85055
85056         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85057         Reported by Padraig Brady.
85058
85059         * lib/mkstemp.c: #undef mkstemp.
85060         Include config.h.
85061         (rpl_mkstemp): Rename from mkstemp.
85062         Protoize.
85063
85064 2001-11-16  Jim Meyering  <meyering@lucent.com>
85065
85066         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85067         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85068         determine the amount of total physical memory, use pstat_getstatic.
85069         HPUX-11 doesn't define _SC_PHYS_PAGES.
85070         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85071         If sysconf couldn't be used to determine the amount of available
85072         physical memory, use both pstat_getstatic and pstat_getdynamic.
85073         Based on a patch from Bob Proulx.
85074
85075 2001-11-10  Jim Meyering  <meyering@lucent.com>
85076
85077         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85078         (jm_PREREQ): Use it.
85079
85080 2001-11-09  Jim Meyering  <meyering@lucent.com>
85081
85082         * m4/jm-macros.m4: Require autoconf-2.52f.
85083         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85084         Use these AC_-prefixed names, not the AM_-prefixed ones.
85085
85086         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85087
85088 2001-11-05  Jim Meyering  <meyering@lucent.com>
85089
85090         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85091
85092 2001-11-04  Jim Meyering  <meyering@lucent.com>
85093
85094         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85095         $DEFS.
85096
85097 2001-11-03  Jim Meyering  <meyering@lucent.com>
85098
85099         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85100         of AC_DEFUN.
85101
85102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85103         know the name of the variable in the macro definition.
85104
85105 2001-11-03  Jim Meyering  <meyering@lucent.com>
85106
85107         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85108         in argmatch_to_argument call.
85109
85110         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85111         argument.
85112
85113         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85114         e.g., a fault due to an attempt to free a NULL pointer.
85115
85116 2001-11-01  Jim Meyering  <meyering@lucent.com>
85117
85118         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85119         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85120
85121 2001-11-01  Jim Meyering  <meyering@lucent.com>
85122
85123         * lib/dirfd.c, lib/dirfd.h: New files.
85124         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85125
85126         * lib/hash.c (hash_print) [TESTING]: Clean up.
85127
85128 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85129
85130         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85131         to avoid a warning if -Wall.
85132
85133 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85134
85135         * README: New file
85136         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85137         (per RMS's instructions, this is now the canonical source)
85138         * lgpl/, gpl/: New directories.
85139
85140 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85141
85142         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85143
85144 2001-10-21  Jim Meyering  <meyering@lucent.com>
85145
85146         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85147         this code would end up calling gettext even in packages built
85148         with --disable-nls.
85149         * lib/getopt.c (_): Likewise.
85150         * lib/regex.c (_): Likewise.
85151
85152 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85153
85154         * m4/error.m4 (jm_PREREQ_ERROR):
85155         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85156         AC_FUNC_STRERROR_R does that.
85157         Check for strerror declaration.
85158
85159         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85160         are supposed to have them these days.
85161         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85162         Merge changes from latest Autoconf CVS.
85163         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85164         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85165         POSIX decided to standardize on the int flavor of strerror_r.
85166
85167 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85168
85169         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85170         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85171         Use strerror_r that is only a macro, even if it is not a function.
85172         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85173         (private_strerror): Use prototypes, not old-style function definition.
85174         (print_errno_message): New function.
85175         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85176         char*-flavored one.
85177         (error_tail, error, error_at_line): Use it.
85178
85179 2001-10-11  Jim Meyering  <meyering@lucent.com>
85180
85181         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85182         and quote_n (1, ... to avoid clobbering a buffer.
85183
85184 2001-10-05  Jim Meyering  <meyering@lucent.com>
85185
85186         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85187         hash-pjw.h.
85188         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85189         * lib/hash-pjw.h: New file.
85190
85191 2001-09-30  Jim Meyering  <meyering@lucent.com>
85192
85193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85194         `struct fsstat' has the `f_fstypename' member.
85195         Use that to define FS_TYPE, which is now used to make
85196         the getfsstat link test tighter.
85197
85198 2001-09-30  Jim Meyering  <meyering@lucent.com>
85199
85200         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85201         Include <sys/ucred.h>, for Apple Darwin.
85202         Include sys/mount.h and sys/fs_types.h only if available.
85203         (FS_TYPE): Define.
85204         (read_filesystem_list): Use FS_TYPE.
85205
85206 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85207
85208         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85209         a boolean context.
85210
85211 2001-09-29  Jim Meyering  <meyering@lucent.com>
85212
85213         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85214         [one-argument getmntent function]): Include stdio.h before mntent.h.
85215         SunOS 4.1.x needs it for the declaration of `FILE'.
85216         Patch by Volker Borchert.
85217
85218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85219         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85220         sys/fs_types.h, and make the link-test for getfsstat guard #include
85221         directives with appropriate #if HAVE_*_H tests so that we can
85222         detect getfsstat on Apple Darwin1.3.7 systems.
85223         Reported by Nelson Beebe.
85224         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85225
85226 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85227
85228         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85229         #defines strtoimax.  Also treat the other strto* functions
85230         like strtoimax.
85231
85232         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85233         Check for strtoul and strtoumax,
85234         as those declarations are made even in the signed case.
85235         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85236         Likewise, for strtol and strtoimax.
85237
85238 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85239
85240         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85241         #defines strtoimax.  Also treat the other strto* functions
85242         like strtoimax.
85243
85244         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85245         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85246         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85247
85248 2001-09-26  Jim Meyering  <meyering@lucent.com>
85249
85250         Most macros in unlocked-io.h had the wrong number of arguments.
85251         * lib/gen-uio: New script.
85252         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85253         * lib/unlocked-io.hin: Remove file.
85254         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85255         rather than trying to embed it here.
85256         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85257         Reported by Padraig Brady.
85258
85259 2001-09-25  Volker Borchert  <bt@teknon.de>
85260
85261         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85262         `result'.
85263
85264 2001-09-24  Jim Meyering  <meyering@lucent.com>
85265
85266         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85267
85268 2001-09-23  Jim Meyering  <meyering@lucent.com>
85269
85270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85271         instead of the mere test for existence of mntent.h.  The latter
85272         would get a false-positive on AIX 3.4 systems.
85273         In the outer getmntent if-block, don't die if neither of the getmntent
85274         tests succeeds.  Instead, just fall through and continue with the
85275         remaining tests.
85276
85277 2001-09-23  Jim Meyering  <meyering@lucent.com>
85278
85279         * lib/mountlist.c: Remove useless parentheses in #if directives.
85280         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85281         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85282
85283 2001-09-22  Jim Meyering  <meyering@lucent.com>
85284
85285         * m4/gettext.m4: New file.  From gettext.
85286         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85287         * m4/progtest.m4: Likewise
85288         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85289         * m4/glibc21.m4: Likewise.
85290
85291         * m4/libintl.m4: Remove.  No longer used.
85292
85293 2001-09-22  Jim Meyering  <meyering@lucent.com>
85294
85295         * lib/localcharset.c: Update from latest gettext.
85296         * lib/config.charset: Likewise.
85297
85298 2001-09-20  Jim Meyering  <meyering@lucent.com>
85299
85300         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85301         strtoimax.
85302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85303         strtoumax.
85304
85305 2001-09-20  Jim Meyering  <meyering@lucent.com>
85306
85307         * lib/xstrtol.c (strtoimax): Guard declaration with
85308         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85309         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85310         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85311         (strtoumax): Likewise, for completeness (it wasn't necessary).
85312
85313 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85314
85315         * lib/strtoimax.c (HAVE_LONG_LONG):
85316         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85317         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85318         to work around bug in IBM C compiler.
85319
85320 2001-09-17  Jim Meyering  <meyering@lucent.com>
85321
85322         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85323         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85324         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85325         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85326         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85327         whenever the right hand side need not be expanded by the shell.
85328
85329 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85330
85331         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85332         library.  It's not correct, as some older glibcs are buggy.
85333         fnmatch wasn't fixed until glibc 2.2.
85334
85335         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85336         special shell magic here.
85337
85338 2001-09-16  Jim Meyering  <meyering@lucent.com>
85339
85340         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85341         * m4/jm-macros.m4: Require it.
85342
85343 2001-09-16  Jim Meyering  <meyering@lucent.com>
85344
85345         * lib/mkdir.c: New file.
85346
85347 2001-09-15  Jim Meyering  <meyering@lucent.com>
85348
85349         * m4/jm-macros.m4: Check for help2man.
85350
85351 2001-09-11  Jim Meyering  <meyering@lucent.com>
85352
85353         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85354         The body, by Paul Eggert, was moved here from configure.in.
85355         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85356
85357 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85358
85359         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85360         (jm_PREREQ): Use it.
85361
85362 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85363
85364         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85365         Use ssize_t, not int, to store result of readlink.
85366         Check for ssize_t overflow as well as size_t overflow,
85367         as POSIX says the result of readlink is implementation-defined
85368         when ssize_t overflows.
85369         Remove unnecessary cast to char*.
85370         Use free+malloc instead of realloc, as the storage doesn't need
85371         to be preserved and it's clearer and can be more efficient that way.
85372         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85373         * lib/xreadlink.h (xreadlink): Update prototype.
85374
85375 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85376
85377         * lib/xgetcwd.c: Revert some of the previous change; intead,
85378         fix the HAVE_GETCWD_NULL code to behave more like the
85379         !HAVE_GETCWD_NULL code used to.
85380
85381         Include "xalloc.h".
85382         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85383         invoke xalloc_die.
85384
85385 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85386
85387         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85388         sys/param.h, as pathmax.h includes them.
85389
85390 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85391
85392         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85393         (jm_PREREQ_XGETCWD): New macro.
85394
85395         * m4/getcwd.m4: New file.
85396
85397 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85398
85399         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85400         like the HAVE_GETCWD_NULL code.
85401         Include pathmax.h if not HAVE_GETCWD.
85402         Do not include xalloc.h.
85403         (INITIAL_BUFFER_SIZE): New symbol.
85404         Do not use xmalloc / xrealloc, since the caller is responsible for
85405         handling errors.  Preserve errno around `free' during failure.
85406         Do not overrun buffer when using getwd.
85407
85408 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85409
85410         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85411         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85412         getcwd (NULL, 0).
85413
85414 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85415
85416         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85417         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85418         spotted by Jim Meyering.
85419
85420 2001-09-03  Jim Meyering  <meyering@lucent.com>
85421
85422         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85423         failure.
85424
85425 2001-09-02  Jim Meyering  <meyering@lucent.com>
85426
85427         * lib/error.c: Update from GNU libc.
85428
85429 2001-09-01  Jim Meyering  <meyering@lucent.com>
85430
85431         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85432         Used by df.
85433
85434 2001-09-01  Jim Meyering  <meyering@lucent.com>
85435
85436         * lib/xreadlink.c: New file.
85437         * lib/xreadlink.h: New file.
85438         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85439         xreadlink.h.
85440
85441         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85442         doesn't conflict with sparc Solaris 7's definition in
85443         /usr/include/sys/int_types.h.
85444
85445         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85446         files.
85447         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85448         and strncasecmp as r-values.  Unixware didn't have declarations.
85449
85450 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85451
85452         * lib/xstrtol.h: Add copyright notice.
85453         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85454         LONGINT_INVALID_SUFFIX_CHAR.
85455
85456 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85457
85458         * lib/xstrtol.c (strtoimax): New decl.
85459
85460 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85461
85462         * lib/xgetcwd.c: Don't include pathmax.h.
85463         Include stdlib.h and unistd.h if available.
85464         Include xalloc.h.
85465         (xmalloc, xstrdup, free): Remove decls.
85466         (xgetcwd): Don't assume sizes fit in unsigned.
85467         Check for overflow when computing sizes.
85468         Simplify reallocation code.
85469
85470 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85471
85472         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85473         a directory's st_size can have an arbitrary value, so the old
85474         usage could waste an arbitrary amount of memory.  All uses
85475         changed.
85476         * lib/savedir.h: Update prototype.
85477
85478 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85479
85480         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85481
85482         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85483         old strtoimax.c.
85484
85485         Also, make the following further changes to make this file's
85486         configuration more similar to that of strtol.c:
85487         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85488         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85489         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85490         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85491         changed to signed values.
85492
85493         And make the following changes as well:
85494         Fix copyright notice, as 1999 was missing.
85495         (verify): New macro.
85496         (strtoimax): Check sizes at compile-time, not run-time.
85497         Prefer strtol to strtoll if both work.
85498         (main): Remove; it was not that useful and was a pain to maintain.
85499
85500         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85501
85502 2001-08-31  Jim Meyering  <meyering@lucent.com>
85503
85504         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85505         Use an initial, malloc'd, buffer of length 128 rather than
85506         a statically allocated one of length 1024.
85507
85508 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85509
85510         Simplify code, partly by assuming autoconf 2.52 semantics.
85511
85512         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85513
85514         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85515         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85516         All uses removed.
85517         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85518         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85519         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85520         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85521         jm_AC_HEADER_INTTYPES_H.
85522         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85523
85524         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85525
85526         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85527         Quote first arg of AC_DEFUN.
85528         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85529         since they are needed to parse the include file even if we need
85530         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85531         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85532         but with opposite signedness.
85533
85534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85535
85536         Merge 'exclude' changes from tar 1.13.22.
85537         This fixes one or two unlikely storage allocation overflow bugs,
85538         but doesn't change user-visible behavior otherwise.
85539
85540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85541
85542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85543         (jm_PREREQ_EXCLUDE): New macro.
85544
85545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85546
85547         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85548         tm to be declared.
85549
85550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85551
85552         * lib/hash.c: Remove '2001' from copyright notice.
85553
85554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85555
85556         * lib/full-write.h: New file.
85557         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85558         * lib/full-write.c: Correct credits, as cccp.c no longer
85559         exists and anyway it was so heavily changed from the old cccp
85560         code as to be unrecognizable.  Include full-write.h.
85561         (full_write): Return size_t, with short writes meaning failure.
85562         All callers changed.  This fixes a bug with large buffers
85563         on 64-bit hosts.
85564         * lib/utime.c: Include full-write.h.
85565
85566 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85567
85568         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85569         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85570         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85571         Include if available.
85572         (<xalloc.h>): Include
85573         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85574         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85575         collide with FNM macros.
85576         (struct patopts): New struct.
85577         (struct exclude): Use it, as exclude patterns now come with options.
85578         (new_exclude): Support above changes.
85579         (new_exclude, add_exclude_file):
85580         Initial size must now be a power of two to simplify overflow checking.
85581         (free_exclude, fnmatch_no_wildcards): New function.
85582         (excluded_filename): No longer requires options arg, as the options
85583         are determined by add_exclude.  Now returns bool, not int.
85584         (excluded_filename, add_exclude):
85585         Add support for the fancy new exclusion options.
85586         (add_exclude, add_exclude_file): Now takes int options arg.
85587         Check for arithmetic overflow when computing sizes.
85588         (add_exclude_file): xrealloc might modify errno, so don't
85589         realloc until after errno might be used.
85590
85591         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85592         New macros.
85593         (free_exclude): New decl.
85594         (add_exclude, add_exclude_file): Now takes int options arg.
85595         (excluded_filename): No longer requires options arg, as the options
85596         are determined by add_exclude.  Now returns bool, not int.
85597
85598 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85599
85600         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85601
85602 2001-08-27  Jim Meyering  <meyering@lucent.com>
85603
85604         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85605
85606         * lib/version-etc.c (N_): Remove definition.
85607         Revert most of last change.
85608         Instead, simply don't mark the `Copyright...' string for translation.
85609         Based on advice from Paul Eggert.
85610
85611         * lib/strtoxmax.c: Tweak comment.
85612
85613 2001-08-26  Jim Meyering  <meyering@lucent.com>
85614
85615         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85616
85617         * m4/xstrtoimax.m4: New file.
85618         * m4/xstrtoumax.m4: Add comments explaining why we
85619         AC_REPLACE_FUNCS(strtol).
85620
85621 2001-08-26  Jim Meyering  <meyering@lucent.com>
85622
85623         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85624         of copyright with `%s' so translators don't get an untranslated
85625         message in 2002.
85626         (COPYRIGHT_YEAR): Define.
85627         (version_etc): Use fprintf rather than fputs.
85628         Suggestion from Ulrich Drepper.
85629
85630         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85631
85632         * lib/strtoll.c: New file, from GNU libc.
85633         * lib/xstrtoimax.c: New file.
85634
85635         * lib/xstrtol.h: Add xstrtoimax.
85636         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85637         * lib/strtoimax.c: New file.  Likewise, but first define
85638         STRTOUXMAX_SIGNED.
85639
85640         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85641         ...
85642         * lib/strtoxmax.c: ... then renamed to this.
85643
85644 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85645
85646         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85647         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85648         (jm_AC_TYPE_INTMAX_T): New macro.
85649         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85650
85651         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85652
85653         * m4/longlong.m4: Renamed from ulonglong.m4.
85654         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85655         * m4/uintmax_t.m4: Removed.
85656
85657 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85658
85659         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85660         Port to Solaris 8, where 'sed' requires a space after the 'r'
85661         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85662         Redirect output to $tmp just once.
85663
85664 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85665
85666         * lib/addext.c (<errno.h>): Include.
85667         (errno): Declare if not defined.
85668         (addext): Work correctly when pathconf returns -1 and leaves
85669         errno alone because there is no limit.  Also, work even if
85670         pathconf returns a value greater than SIZE_MAX.
85671
85672 2001-08-12  Jim Meyering  <meyering@lucent.com>
85673
85674         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85675         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85676         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85677         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85678         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85679         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85680         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85681         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85682         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85683         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85684         utime.m4, utimes.m4, xstrtoumax.m4:
85685         Quote the first argument in each use of AC_DEFUN.
85686
85687 2001-08-12  Jim Meyering  <meyering@lucent.com>
85688
85689         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85690         Simply `return getcwd (NULL, 0);'.
85691         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85692         Use 1300 as initial value for length, not PATH_MAX.
85693
85694         * lib/pathmax.h: Clean up cpp syntax.
85695
85696 2001-08-12  Jim Meyering  <meyering@lucent.com>
85697
85698         * lib/gettimeofday.c: New file.
85699         * lib/gtod.h: New file.
85700         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85701
85702 2001-08-05  Jim Meyering  <meyering@lucent.com>
85703
85704         * m4/jm-macros.m4: Require autoconf-2.52.
85705
85706 2001-08-04  Jim Meyering  <meyering@lucent.com>
85707
85708         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85709         stmt, to get in sync with glibc.
85710
85711 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85712
85713         The following changes are from gettext 0.10.39 as maintained by
85714         Bruno Haible.
85715
85716         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85717         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85718         with inverted sense.  All uses changed.
85719
85720         * lib/mbswidth.c: Don't include <limits.h>.
85721         Include <stdlib.h> and <string.h> unconditionally.
85722         (iswcntrl, mbsinit, ISCNTRL): New macros.
85723         (mbsnwidth): Use K&R style function declarations.
85724         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85725         can optimize it when MB_CUR_MAX == 1.
85726         The width of control characters is zero, not 1.
85727
85728 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85729
85730         The following changes are from gettext 0.10.39 as maintained by
85731         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85732
85733         * m4/codeset.m4: Upgrade to serial AM1.
85734         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85735         all uses changed.  Quote first arg of AC_DEFUN.
85736         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85737
85738         * m4/iconv.m4: Upgrade to serial AM2.
85739         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85740         Add --with-libconv-prefix.
85741         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85742         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85743         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85744         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85745         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85746
85747         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85748         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85749         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85750         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85751         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85752         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85753         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85754         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85755         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85756
85757         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85758         string.h any more.
85759
85760         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85761         not the default value.
85762
85763         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85764         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85765         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85766         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85767         Also check for iswcntrl, used for wcwidth fallback.
85768         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85769         to Autoconf 2.13.
85770
85771 2001-08-03  Jim Meyering  <meyering@lucent.com>
85772
85773         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85774         as it was in the original.  Reported by Paul Eggert.
85775
85776 2001-07-16  Jim Meyering  <meyering@lucent.com>
85777
85778         * m4/gettimeofday.m4: New file.
85779         Prompted by a report from Bernhard Baehr.
85780
85781 2001-07-15  Jim Meyering  <meyering@lucent.com>
85782
85783         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85784         stuff. Now it's in ../Makefile.cfg.
85785
85786 2001-07-15  Jim Meyering  <meyering@lucent.com>
85787
85788         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85789         (BUILT_SOURCES): Add unlocked-io.h.
85790         (io_functions): Define.
85791         (unlocked-io.h): New rule.
85792         (DISTCLEANFILES): Add unlocked-io.h.
85793         (all-local): Depend on unlocked-io.h, to ensure it is created.
85794
85795         * lib/unlocked-io.hin: New file
85796
85797         * lib/regex.c: Update from glibc.
85798
85799 2001-07-05  Jim Meyering  <meyering@lucent.com>
85800
85801         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85802         recommendation.
85803         (libfetish_a_SOURCES): Put all .h files here instead.
85804         Remove a thus-exposed (better checks in automake) duplicate and
85805         two unnecessary .h files.
85806
85807 2001-07-04  Jim Meyering  <meyering@lucent.com>
85808
85809         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85810         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85811         distcheck failure.
85812
85813 2001-07-02  Jim Meyering  <meyering@lucent.com>
85814
85815         The following changes were prompted by suggestions from Bruno Haible.
85816
85817         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85818         is now generated.
85819         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85820         definition of EXTRA_DIST.
85821         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85822         ensure that the generated file is created/updated whenever the list
85823         of $(unlocked_functions) is changed.
85824         (jm-glibc-io.m4): New rule.
85825         (unlocked-io.h): New rule -- currently unused.
85826
85827 2001-06-24  Jim Meyering  <meyering@lucent.com>
85828
85829         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85830         unmatched right bracket, rather than kludging it with an extra,
85831         falsely-matching quote in a comment.  Patch by Akim Demaille.
85832
85833 2001-06-11  Jim Meyering  <meyering@lucent.com>
85834
85835         * lib/regex.c: Update from GNU libc.
85836
85837 2001-05-27  Jim Meyering  <meyering@lucent.com>
85838
85839         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85840         Check for ut_type in struct utmp.
85841
85842 2001-05-27  Jim Meyering  <meyering@lucent.com>
85843
85844         * lib/readutmp.h (UT_TYPE): Define.
85845
85846 2001-05-24  Jim Meyering  <meyering@lucent.com>
85847
85848         * lib/argmatch.c: Include "quote.h".
85849         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85850         quote function.  Reported by Göran Uddeborg.
85851
85852 2001-05-22  Jim Meyering  <meyering@lucent.com>
85853
85854         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85855         now that we use the package-supplied version unconditionally.
85856         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85857
85858 2001-05-21  Jim Meyering  <meyering@lucent.com>
85859
85860         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85861         shell syntax errors.
85862
85863 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85864
85865         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85866
85867 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85868
85869         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85870         Don't bother to check library strftime, since
85871         we'll be using our own my_strftime function anyway.
85872         Define my_strftime instead of strftime.
85873
85874 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85875
85876         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85877         which is not yet declared.
85878
85879 2001-05-15  Jim Meyering  <meyering@lucent.com>
85880
85881         * m4/regex.m4: Use proper quoting so brackets appear in the test
85882         program.
85883         Reported by, and with help from, Bruno Haible.
85884
85885 2001-05-13  Jim Meyering  <meyering@lucent.com>
85886
85887         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85888         undefined.
85889
85890 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85891
85892         dirname code cleanup.  base_name now behaves more compatibly
85893         with POSIX basename when given file names that have trailing
85894         slashes, and similarly for dir_name.  Add new primitives
85895         base_len and dir_len.  Put the directory-name-related decls
85896         into dirname.h.
85897
85898         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85899         * lib/backupfile.c (base_name): Likewise.
85900         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85901         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85902         * lib/makepath.c (strip_trailing_slashes): Likewise.
85903         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85904         ISSLASH): Likewise.
85905         * lib/rename.c (strip_trailing_slashes): Likewise.
85906         * lib/same.c (base_name): Likewise.
85907         * lib/stripslash.c (ISSLASH): Likewise.
85908
85909         * lib/addext.c: Include <dirname.h> after size_t is defined.
85910         * lib/backupfile.c: Likewise.
85911
85912         * lib/addext.c (addext): Use base_len to trim redundant
85913         trailing slashes instead of doing it ourselves.
85914         But do not trim the last slash if it is not redundant.
85915
85916         * lib/backupfile.c (find_backup_file_name,
85917         max_backup_version): Use base_len instead of rolling it ourselves.
85918         Handle the case of "" and (on DOS) "C:" correctly.
85919
85920         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85921         needed. Include <string.h>, <dirname.h>.
85922         (base_name): Allow file names ending in slashes, other than names
85923         that are all slashes.  In this case, return the basename followed
85924         by the slashes.  This is more general, and can be used in places
85925         where the original base_name purposely had an assertion failure.
85926         (base_len): New function.
85927
85928         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85929         Do not include <assert.h>; no longer needed.
85930         Include xalloc.h.
85931         (memrchr): Remove decl.
85932         (dir_name_r): Remove.
85933         (dir_len): Renamed from dirlen.  All callers changed.
85934         Rewrite in terms of base_name, for simplicity and consistency.
85935         (dir_name): Never return NULL.  All callers changed.
85936         Do not include <stdlib.h> in test program; no longer needed.
85937         return 0; is fine for test program.
85938
85939         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85940         New macros.
85941         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85942
85943         * lib/path-concat.c (path_concat): Use base_len to compute
85944         base length, not strlen; this means we cannot rely on memcpy
85945         to null-terminate.
85946
85947         * lib/same.c (STREQ): Remove.
85948         (same_name): Handle the case where the basename ends in trailing '/'.
85949
85950         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85951         a slash was stripped.  Do not strip the last slash after a
85952         file system prefix.
85953
85954 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85955
85956         * lib/Makefile.am (libfetish_a_SOURCES):
85957         Add strftime.c, since we now compile it on all hosts.
85958
85959         * lib/strftime.c (my_strftime):
85960         Define to nstrftime if emacs, but only if my_strftime is not defined.
85961         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85962         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85963         Add one more extra argument: a nanoseconds value.
85964         All uses changed.
85965         (ns): New macro.
85966         (my_strftime function): Add %N format.
85967         (emacs_strftimeu): Renamed from emacs_strftime,
85968         with extra ut argument.
85969
85970 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85971
85972         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85973
85974 2001-04-21  Jim Meyering  <meyering@lucent.com>
85975
85976         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85977         doesn't interfere.
85978
85979 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85980
85981         * m4/ftruncate.m4: Check for chsize.
85982         Link with ftruncate.o unconditionally if ftruncate is missing.
85983         This was required when cross-compiling to i586-mingw32msvc.
85984
85985 2001-04-08  Jim Meyering  <meyering@lucent.com>
85986
85987         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85988         recomputed; that's necessary when the offset spans a DST transition.
85989         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85990
85991 2001-04-02  Jim Meyering  <meyering@lucent.com>
85992
85993         * lib/regex.h, regex.c: Update from GNU libc.
85994
85995 2001-03-24  Jim Meyering  <meyering@lucent.com>
85996
85997         * m4/jm-macros.m4: Require autoconf-2.49d.
85998
85999 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86000
86001         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86002
86003 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86004
86005         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86006
86007 2001-03-17  Jim Meyering  <meyering@lucent.com>
86008
86009         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86010         now that the version in autoconf is equivalent.
86011         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86012
86013         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86014         Suggestion from Akim Demaille.
86015
86016         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86017         (jm_PREREQ_TEMPNAME): New function.
86018
86019 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86020
86021         * lib/tempname.c (uint64_t): Define to uintmax_t if
86022         not defined, and if UINT64_MAX is not defined.
86023         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86024         Reported by John David Anglin.
86025
86026 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86027
86028         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86029         resolve alias if codeset is empty.
86030         * lib/config.charset (BeOS): Use wildcard syntax.
86031
86032 2001-03-13  Jim Meyering  <meyering@lucent.com>
86033
86034         * lib/path-concat.c (path_concat)
86035         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86036         concatenating e.g., `C:' and `foo'.
86037         From Bruno Haible.
86038
86039 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86040
86041         * lib/localcharset.c (locale_charset): Don't use
86042         setlocale(LC_CTYPE,NULL). Don't return NULL.
86043         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86044
86045 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86046
86047         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86048         support for DOS/DJGPP.
86049
86050 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86051
86052         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86053         lacks mkstemp.  Compile our own tempname.c if we compile our own
86054         mkstemp.c, as mkstemp relies on tempname.
86055
86056 2001-03-01  Jim Meyering  <meyering@lucent.com>
86057
86058         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86059         AH_VERBATIM really does output its argument verbatim.
86060
86061 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86062
86063         * lib/Makefile.am (libfetish_a_SOURCES):
86064         Add dup-safer.c, fopen-safer.c.
86065         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86066
86067         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86068         * lib/unistd-safer.h: New files.
86069
86070 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86071
86072         The mkstemp replacement is taken from glibc 2.2.2, with some
86073         portability fixes for use outside glibc, as follows:
86074
86075         * lib/tempname.c (struct_stat64): New macro.
86076         (direxists, __gen_tempname): Use it.
86077         This avoids a portability problem with Solaris 8.
86078
86079         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86080         (<stddef.h>, <stdint.h>, <string.h>):
86081         Include only if STDC_HEADERS || _LIBC.
86082         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86083         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86084         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86085         (__set_errno): Define this macro if <errno.h> doesn't.
86086         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86087         Define these macros if <stdio.h> doesn't.
86088         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86089         Define these macros if <sys/stat.h>
86090         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86091         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86092         __xstat64): Define if not _LIBC.
86093         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86094         (__gen_tempname): Invoke gettimeofday only if
86095         HAVE_GETTIMEOFDAY || _LIBC;
86096         otherwise, fall back on plain "time".
86097         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86098
86099         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86100
86101         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86102
86103 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86104
86105         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86106
86107 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86108
86109         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86110         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86111         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86112         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86113
86114 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86115
86116         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86117         Remove workaround macros for hosts that have mbrtowc but not
86118         mbstate_t, as we now insist on proper declarations for both
86119         before using mbrtowc.
86120
86121 2001-02-17  Jim Meyering  <meyering@lucent.com>
86122
86123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86124         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86125         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86126         UnixWare 7.1.1.
86127
86128         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86129         rather than AC_CACHE_VAL.
86130
86131 2001-02-17  Jim Meyering  <meyering@lucent.com>
86132
86133         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86134         around included file name.
86135
86136         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86137
86138         * lib/strftime.c: Update from GNU libc (the only changes were to
86139         comments).
86140
86141 2001-02-17  Jim Meyering  <meyering@lucent.com>
86142
86143         * lib/regex.c: Update from libc.
86144
86145 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86146
86147         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86148         clash.
86149
86150 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86151
86152         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86153         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86154         Reported by Mark Hounschell via Paul Eggert.
86155
86156 2001-02-07  Jim Meyering  <meyering@lucent.com>
86157
86158         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86159
86160 2001-02-05  Jim Meyering  <meyering@lucent.com>
86161
86162         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86163         it includes the patch required for `large file' support with at least
86164         HP-UX's 10.20 /bin/cc.
86165
86166 2001-02-03  Jim Meyering  <meyering@lucent.com>
86167
86168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86169         AS_IF, now that it works once again (mysteriously).
86170         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86171
86172 2001-01-30  Jim Meyering  <meyering@lucent.com>
86173
86174         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86175         * m4/chown.m4: Rename conftestchown to conftest.chown.
86176         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86177         s/conftestdir2/conftest.d2/.
86178         * m4/utimes.m4: s/conftestdata/conftest.data/
86179         Inspired by Pavel Roskin's change in autoconf.
86180
86181 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86182
86183         * lib/config.charset: Update for FreeBSD 4.2.
86184
86185 2001-01-27  Jim Meyering  <meyering@lucent.com>
86186
86187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86188         a use of AS_IF.
86189         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86190
86191 2001-01-26  Jim Meyering  <meyering@lucent.com>
86192
86193         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86194         quotearg.c includes it.
86195
86196 2001-01-26  Jim Meyering  <meyering@lucent.com>
86197
86198         * lib/quotearg.c: Include stddef.h.
86199         * lib/quote.c: Include stddef.h.
86200         Reported by Axel Kittenberger.
86201
86202         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86203         line in double quotes so that it evokes a better diagnostic.
86204         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86205         Reported by Axel Kittenberger.
86206
86207 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86208
86209         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86210         as if it was a `charset'.
86211
86212 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86213
86214         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86215         has const.
86216
86217 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86218
86219         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86220         to avoid a warning.  Add back 'const' to inptr.
86221
86222 2001-01-20  Jim Meyering  <meyering@lucent.com>
86223
86224         Be sure that headers are checked before used in code compiled
86225         for the type checks.
86226         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86227         In place of that, invoke jm_CHECK_ALL_TYPES.
86228         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86229         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86230         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86231         The check for ssize_t was mistakenly run before the test for unistd.h.
86232
86233         The configure-time check for stdbool.h was missing.
86234         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86235         (jm_PREREQ_HASH): New function.
86236
86237 2001-01-17  Jim Meyering  <meyering@lucent.com>
86238
86239         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86240         for autoconf-2.49c.
86241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86242
86243 2001-01-16  Jim Meyering  <meyering@lucent.com>
86244
86245         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86246         From Bruno Haible.
86247
86248 2001-01-14  Jim Meyering  <meyering@lucent.com>
86249
86250         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86251         foo and bar.  Create conftestdir/ in the script, not in the C code.
86252         Remove directories in the script, not in the C code.
86253         Remove conftestdir{,2} before trying to create the directory.
86254         Make the entire configure script fail if the mkdir fails.
86255
86256 2001-01-14  Jim Meyering  <meyering@lucent.com>
86257
86258         * lib/rename.c: New file.  From Volker Borchert.
86259         Include stdlib.h, string.h or strings.h, and xalloc.h.
86260         Use strip_trailing_slashes rather than open-coding it.
86261
86262 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86263
86264         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86265
86266 2001-01-03  Jim Meyering  <meyering@lucent.com>
86267
86268         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86269         of local `inptr' to avoid warning with some system declarations of
86270         iconv.
86271
86272 2001-01-02  Volker Borchert  <bt@teknon.de>
86273
86274         * m4/rename.m4: New file.
86275         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86276
86277 2001-01-01  Jim Meyering  <meyering@lucent.com>
86278
86279         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86280         even on systems with utmpx.h.  It's necessary for the declaration of
86281         utmp's ut_user member.  Reported by Andreas Jaeger.
86282
86283         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86284         available. They are required for the declarations of getgrgid and
86285         getpwuid resp.
86286         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86287         Reported by Andreas Jaeger.
86288
86289 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86290
86291         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86292         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86293         so `make install' also works in VPATH builds.
86294
86295 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86296
86297         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86298         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86299         can be used in subdirectories.
86300
86301 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86302
86303         * lib/modechange.c: Do not assume that mode_t uses the
86304         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86305         the other-execute bit of FOO even if S_IXOTH != 1.
86306
86307         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86308         WOTH, XOTH, ALLM): New macros.
86309         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86310          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86311         Use them.
86312         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86313         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86314         (mode_compile):
86315         No need to use uintmax_t; unsigned long is long enough.
86316         Don't bother to get suffix since we don't use it.
86317
86318 2000-12-26  Jim Meyering  <meyering@lucent.com>
86319
86320         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86321         better with autoheader.
86322
86323 2000-12-24  Jim Meyering  <meyering@lucent.com>
86324
86325         * lib/hash.c (is_prime): Return explicit boolean values.
86326         (hash_get_first): Return NULL to appease Irix5.6's 89.
86327         Reported by Nelson Beebe.
86328
86329 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86330
86331         * lib/localcharset.c (locale_charset): Add support for Win32.
86332
86333 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/physmem.h, lib/physmem.c: New files.
86336
86337         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86338         (noinst_HEADERS): Add physmem.h.
86339
86340         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86341         't' for compatibility with Solaris 8 sort.
86342
86343 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86344
86345         * lib/config.charset: Add support for BeOS.
86346
86347 2000-12-17  Jim Meyering  <meyering@lucent.com>
86348
86349         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86350         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86351
86352 2000-12-16  Jim Meyering  <meyering@lucent.com>
86353
86354         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86355         N and M) would have treated it like `chown N:N FILE'.
86356
86357         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86358
86359 2000-12-16  Jim Meyering  <meyering@lucent.com>
86360
86361         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86362         SHELLS_FILE to a file name that's useful on djgpp systems.
86363         Include stdlib.h.
86364         (ADDITIONAL_DEFAULT_SHELLS): Define.
86365         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86366         Based mostly on a patch from Prashant TR.
86367
86368 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86369
86370         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86371         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86372         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86373
86374 2000-12-08  Andreas Schwab  <schwab@suse.de>
86375
86376         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86377         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86378
86379 2000-12-07  Jim Meyering  <meyering@lucent.com>
86380
86381         * lib/stripslash.c (ISSLASH): Define.
86382         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86383         `/'.
86384         From Prashant TR.
86385
86386         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86387         (dir_name_r): Declare this function as static.
86388         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86389         manifest itself on a name containing a mix of slashes and
86390         backslashes.
86391         Make this function work with names starting with a DOS-style
86392         drive letter and colon prefix.
86393         (dir_name): Append `.' if necessary.
86394         Based mostly on patches from Prashant TR and Eli Zaretskii.
86395
86396         * lib/dirname.h (dir_name_r): Remove prototype.
86397
86398 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86399
86400         * m4/off_t-format.m4: Remove this file.
86401         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86402
86403 2000-12-06  Jim Meyering  <meyering@lucent.com>
86404
86405         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86406         replacement strtoull, we may well need the replacement strtoul, too.
86407         Check for declarations of strtoul and strtoull.
86408         Check for strtol.  Mainly as a cue to cause automake to include
86409         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86410         Check for limits.h -- strtol.c needs it.
86411
86412 2000-12-05  Jim Meyering  <meyering@lucent.com>
86413
86414         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86415
86416 2000-12-04  Jim Meyering  <meyering@lucent.com>
86417
86418         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86419         Also include memory.h, stdlib.h, unistd.h if appropriate.
86420         Reported by Andreas Jaeger (conflicting declaration of malloc).
86421
86422 2000-12-02  Jim Meyering  <meyering@lucent.com>
86423
86424         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86425         * m4/jm-macros.m4 (jm_MACROS): require it.
86426
86427 2000-12-02  Jim Meyering  <meyering@lucent.com>
86428
86429         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86430
86431 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86432
86433         * lib/memrchr.c: Include <config.h> before any system include file.
86434
86435 2000-11-30  Jim Meyering  <meyering@lucent.com>
86436
86437         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86438
86439 2000-11-30  Jim Meyering  <meyering@lucent.com>
86440
86441         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86442
86443 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86444
86445         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86446
86447 2000-11-26  Jim Meyering  <meyering@lucent.com>
86448
86449         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86450
86451 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86452
86453         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86454         size of (size_t) -1; it's not portable.
86455
86456 2000-11-17  Jim Meyering  <meyering@lucent.com>
86457
86458         * lib/strstr.c: Update from GNU libc.
86459
86460 2000-11-17  Akim Demaille  <akim@epita.fr>
86461
86462         * lib/obstack.h: Formatting changes.
86463         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86464         prevent type checking.
86465         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86466         cast the value to (void *): assigning a `foo *' to a `void *'
86467         variable is valid.
86468         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86469
86470 2000-11-16  Jim Meyering  <meyering@lucent.com>
86471
86472         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86473
86474 2000-11-11  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86477
86478 2000-11-10  Jim Meyering  <meyering@lucent.com>
86479
86480         * lib/obstack.h: Update from GNU libc.
86481         * lib/obstack.c: Likewise.
86482
86483 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86484
86485         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86486
86487 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86488
86489         * lib/getusershell.c (setusershell): Use rewind rather than
86490         fseek/fseeko, to avoid configuration hassles with fseeko.
86491         Don't bother opening SHELLS_FILE if shellstream is NULL;
86492         it's not necessary.
86493
86494 2000-11-05  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/makepath.h (make_dir): Declare.
86497         * lib/makepath.c (make_dir): Remove `static' attribute.
86498         Tweak a comment.
86499
86500 2000-11-04  Jim Meyering  <meyering@lucent.com>
86501
86502         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86503
86504 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86505
86506         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86507         last one in a bucket, advance to the next bucket.
86508
86509 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86510
86511         * lib/fnmatch.c: Do not comment out all the code if we are using
86512         the GNU C library, because in some cases we are replacing buggy
86513         code in the GNU C library itself.
86514
86515 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86516
86517         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86518         (regex_compile): Catch bogus \(\1\).
86519
86520 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86521
86522         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86523         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86524         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86525
86526 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86527
86528         * lib/error.h, getline.h, modechange.h:
86529         Remove "2000" from Copyright line, as the file hasn't been
86530         changed this year other than in the copyright notice.
86531
86532         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86533         was changed this year.
86534
86535 2000-10-29  Jim Meyering  <meyering@lucent.com>
86536
86537         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86538         renaming.
86539         * m4/ls-mntd-fs.m4: Likewise
86540
86541 2000-10-29  Jim Meyering  <meyering@lucent.com>
86542
86543         * lib/xstat.in: Fix grammar in comment.
86544
86545 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86546
86547         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86548         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86549         doesn't define __restrict_arr.
86550
86551 2000-10-28  Jim Meyering  <meyering@lucent.com>
86552
86553         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86554         (jm_PREREQ_MEMCHR): New function.
86555
86556 2000-10-28  Jim Meyering  <meyering@lucent.com>
86557
86558         * lib/memchr.c: Update from libc.
86559         Adjust for portability:
86560         [HAVE_STDLIB_H]: Include stdlib.h.
86561         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86562         Undef __memchr, too.
86563         [!weak_alias]: Define __memchr to memchr.
86564
86565         * lib/regex.c: Update from libc.
86566         * lib/regex.h: Likewise.
86567         * lib/getopt1.c: Likewise.
86568         * lib/memcmp.c: Likewise.
86569
86570         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86571         Avoid using fseek, when possible -- it's broken by design.
86572         Patch by Ulrich Drepper.
86573
86574 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86575
86576         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86577         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86578         Giving in to popular pressure to shut up the compiler with casts.
86579
86580 2000-10-26  Jim Meyering  <meyering@lucent.com>
86581
86582         * lib/strftime.c: Update from libc.
86583
86584 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86585
86586         * regex.c: More `unsigned char' -> `re_char' changes.
86587         Also change several `int' into `re_wchar_t'.
86588         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86589         (PUSH_FAILURE_POINTER): Don't cast any more.
86590         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86591         We want GCC to complain, since this piece of code makes
86592         re_match non-reentrant, which *should* be fixed.
86593         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86594         (EXTEND_BUFFER): Use RETALLOC.
86595         (SET_LIST_BIT): Don't cast.
86596         (re_wchar_t): New type.
86597         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86598         that those two functions will always properly return.
86599         (IMMEDIATE_QUIT_CHECK): Cast to void.
86600         (analyse_first): Use recursion rather than an explicit stack.
86601         (re_compile_fastmap): Can't fail anymore.
86602         (re_search_2): Don't check re_compile_fastmap for failure.
86603         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86604         Now also sets the new value (passed in a new argument).
86605         (re_match_2_internal): Use it.
86606         Also, use a new var `reg' of type size_t when looping through regs
86607         rather than reuse the inappropriate `mcnt'.
86608
86609 2000-10-25  Jim Meyering  <meyering@lucent.com>
86610
86611         * lib/obstack.c: Update from libc.
86612
86613 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86614
86615         * regex.c (regex_compile): Change the way of handling a range from
86616         a char less than 256 to a char not less than 256.
86617
86618 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86619
86620         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86621         NT-Emacs only.
86622         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86623         so that re_search functions only quit when callers expect them to.
86624
86625 2000-10-23  Jim Meyering  <meyering@lucent.com>
86626
86627         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86628         wrong.  That set_locale call must not have any side effects.
86629         From Paul Eggert.
86630
86631 2000-10-22  Jim Meyering  <meyering@lucent.com>
86632
86633         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86634         [CYCLIC]: Remove now-unused definition.
86635
86636         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86637         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86638         Suggestion from Ulrich Drepper.
86639
86640 2000-10-21  Jim Meyering  <meyering@lucent.com>
86641
86642         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86643         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86645
86646 2000-10-21  Jim Meyering  <meyering@lucent.com>
86647
86648         * lib/dirname.c (memrchr): Declare if necessary.
86649         (dir_name): Remove the restriction that there be no
86650         trailing slashes.  Now, this code skips past them, effectively
86651         ignoring them.
86652         [TEST_DIRNAME] (main): New unit tests.
86653
86654         * lib/memrchr.c: New file from GNU libc.
86655         Undef __memrchr, too.
86656         [!weak_alias]: Define __memrchr to memrchr.
86657         Guard weak_alias use with `#ifdef weak_alias'.
86658
86659 2000-10-21  Jim Meyering  <meyering@lucent.com>
86660
86661         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86662         (dir_name): Use dir_name_r.
86663         * lib/dirname.h (dir_name_r): Declare it.
86664
86665 2000-10-17  Jim Meyering  <meyering@lucent.com>
86666
86667         * lib/quote.h (PARAMS): Define and use.
86668         Reported by Akim Demaille.
86669
86670         * lib/getopt.c: Update from libc.
86671
86672 2000-10-16  Jim Meyering  <meyering@lucent.com>
86673
86674         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86675         setlocale.
86676         From Jan Fedak.
86677
86678 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86679
86680         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86681
86682 2000-09-25  Jim Meyering  <meyering@lucent.com>
86683
86684         * lib/md5.h (rol): Define (from GnuPG).
86685
86686         * lib/sha.c: Give credit (GnuPG) where due.
86687         (M): Use rol rather than open-coding it.
86688         Add a FIXME comment.
86689
86690 2000-09-21  Jim Meyering  <meyering@lucent.com>
86691
86692         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86693         Reported by Michael Stone.
86694
86695 2000-09-20  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86698         (noinst_HEADERS): Add sha.h.
86699         Based on code from Scott G. Miller and from GnuPG.
86700
86701 2000-09-18  Jim Meyering  <meyering@lucent.com>
86702
86703         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86704         LIBS. Otherwise, everyone ends up linking with -lelf for some
86705         configurations.
86706         Reported by Mike Stone.
86707
86708 2000-09-15  Jim Meyering  <meyering@lucent.com>
86709
86710         * lib/regex.c: Update from libc.
86711
86712 2000-09-10  Jim Meyering  <meyering@lucent.com>
86713
86714         * lib/getopt.c (_getopt_internal): Update from glibc.
86715
86716 2000-09-09  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86719         think it should be used as a general replacement for isascii.
86720         * lib/fnmatch.c: Likewise.
86721         * lib/mbswidth.c: Likewise
86722         * lib/regex.c: Likewise.
86723
86724         Don't use atoi.
86725         * lib/userspec.c: Include sys/param.h and limits.h.
86726         Include xstrtol.h.
86727         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86728         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86729         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86730         UID, GID.  Check range.
86731
86732 2000-09-06  Jim Meyering  <meyering@lucent.com>
86733
86734         * lib/getopt.c (_getopt_internal): Update from glibc.
86735
86736 2000-08-30  Jim Meyering  <meyering@lucent.com>
86737
86738         * lib/strftime.c: Merge in changes from GNU libc.
86739
86740 2000-08-26  Jim Meyering  <meyering@lucent.com>
86741
86742         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86743         * m4/fpending.m4: New file.
86744
86745 2000-08-26  Jim Meyering  <meyering@lucent.com>
86746
86747         * lib/closeout.c: Include "__fpending.h".
86748         (close_stdout_status): Return right away if there's nothing to flush.
86749
86750         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86751         * lib/__fpending.c: New file.
86752         * lib/__fpending.h: New file.
86753
86754 2000-08-20  Jim Meyering  <meyering@lucent.com>
86755
86756         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86757         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86758         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86759
86760 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86761
86762         Improve fileutils installation on systems where running
86763         programs (like install) can't be unlinked.
86764         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86765         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86766
86767 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86768
86769         Standardize on "memory exhausted" instead of "Memory exhausted"
86770         or "virtual memory exhausted".
86771         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86772         "virtual memory exhausted".
86773         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86774         our own message.
86775         * lib/userspec.c (parse_user_spec): Likewise.
86776         * lib/bumpalloc.h: comment fix
86777         * lib/same.c, userspec.c: Include xalloc.h.
86778
86779         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86780         not char *const and pointing to a constant array.
86781         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86782         (xrealloc): Comment fix.
86783
86784         * lib/userspec.c (parse_user_spec):
86785         Don't translate a message until just before returning,
86786         to avoid unnecessary translation.
86787
86788 2000-08-07  Jim Meyering  <meyering@lucent.com>
86789
86790         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86791         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86792         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86793         getgroups.c, gethostname.c, getopt.h, group-member.c,
86794         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86795         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86796         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86797         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86798         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86799         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86800         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86801         yesno.c: Back out Copyright date changes for each file with no change
86802         this year.  This eases coordination with other programs using the same
86803         source code modules.  From Paul Eggert.
86804
86805 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86806
86807         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86808         not char, for compatibility with glibc 2.1.3 strftime.c.
86809
86810 2000-08-03  Greg McGary  <greg@mcgary.org>
86811
86812         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86813         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86814         (EXTEND_BUFFER): Use them.
86815
86816 2000-08-01  Jim Meyering  <meyering@lucent.com>
86817
86818         * lib/dirname.c (ISSLASH): Define.
86819         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86820         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86821         both `\' and `/' may be use as path separators.
86822         Based on a patch from Prashant TR.
86823
86824 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86825
86826         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86827         slot vector a constant, since it might get modified.
86828
86829 2000-07-31  Jim Meyering  <meyering@lucent.com>
86830
86831         * lib/xmalloc.c: Use `virtual memory exhausted', not
86832         `Memory exhausted'.
86833         * lib/obstack.c (print_and_abort): Likewise.
86834
86835 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86836
86837         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86838         buffer, so that the caller can always quote one small
86839         component of a "memory exhausted" message in slot 0.
86840         From a suggestion by Jim Meyering.
86841
86842 2000-07-30  Jim Meyering  <meyering@lucent.com>
86843
86844         * lib/makepath.c (make_path): Quote the other instance, too.
86845
86846         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86847         (STATIC_BUF_SIZE): Define.
86848         (quotearg_n_options): Use only statically allocated storage when
86849         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86850         than STATIC_BUF_SIZE.
86851
86852 2000-07-29  Jim Meyering  <meyering@lucent.com>
86853
86854         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86855         * lib/dirname.c (dir_name): Likewise.
86856
86857         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86858         `/'.
86859
86860         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86861         (dir_name): Assert that there are no trailing slashes.
86862
86863 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86864
86865         * lib/mbswidth.h (mbswidth): Add a flags argument.
86866         (mbswidth): New declaration.
86867         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86868         * lib/mbswidth.c (mbswidth): Add a flags argument.
86869         (mbsnwidth): New function.
86870
86871 2000-07-24  Jim Meyering  <meyering@lucent.com>
86872
86873         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86874
86875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86876
86877         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86878
86879 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86880
86881         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86882         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86883         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86884         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86885         invoke multibyte primitives.
86886
86887 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86888
86889         * lib/quotearg.c:
86890         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86891         so that mbstate_t is always defined.
86892
86893         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86894         be 1 in at least one GCC installation, and this configuration
86895         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86896         performance on hosts that have mbrtowc but have only unibyte
86897         locales, but I assume these hosts are rare.
86898
86899 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86900
86901         * lib/mbswidth.c (_XOPEN_SOURCE):
86902         Don't define; this causes problems on Solaris 7.
86903         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86904
86905 2000-07-23  Jim Meyering  <meyering@lucent.com>
86906
86907         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86908         too: getgrgid, getpwuid, getuid.
86909
86910 2000-07-23  Jim Meyering  <meyering@lucent.com>
86911
86912         * lib/basename.c (base_name): Add an assertion.
86913
86914 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86915
86916         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86917         shadow its mbsinit function.
86918
86919 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86920
86921         * lib/mbswidth.h: New file.
86922         * lib/mbswidth.c: New file.
86923         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86924         (noinst_HEADERS): Add mbswidth.h.
86925
86926 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86927
86928         * lib/config.charset: Add support for FreeBSD. Improve support for
86929         HP-UX and IRIX 6.
86930
86931 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86932
86933         * m4/mbswidth.m4: New file.
86934         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86935
86936 2000-07-15  Jim Meyering  <meyering@lucent.com>
86937
86938         * lib/makepath.c: Include quote.h.
86939         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86940         corresponding argument in a `quote (...)' call.
86941         Give better diagnostics.
86942
86943         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86944         (noinst_HEADERS): Add quote.h.
86945
86946         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86947         from tar's src/misc.c.
86948         * lib/quote.h: New file.  Prototypes for same.
86949
86950 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86951
86952         From a suggestion by Bruno Haible.
86953         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86954         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86955         to decide whether to define the BeOS workaround macro;
86956         this adjusts to the change to AC_MBSTATE_T.
86957
86958 2000-07-14  Jim Meyering  <meyering@lucent.com>
86959
86960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86961         jm_AC_TYPE_UINTMAX_T.
86962
86963 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86964
86965         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86966
86967         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86968         quotearg_buffer_restyled): Add support for
86969         clocale_quoting_style.  Undo previous change to
86970         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86971         and "{RIGHT QUOTATION MARK}" msgids.
86972
86973 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86974
86975         From a suggestion by Bruno Haible.
86976         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86977         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86978         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86979         and mbstate_t, to a single-part test that simply defines mbstate_t.
86980         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86981         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86982
86983 2000-07-10  Jim Meyering  <meyering@lucent.com>
86984
86985         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86986
86987         * m4/gnu-source.m4: Output to confdefs.h directly.
86988         Suggestion from Akim Demaille.
86989
86990 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86991
86992         The old behavior of quoting `like this' doesn't look good with
86993         newer, ISO-style fonts.  See:
86994         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86995
86996         Instead, quote "like this" by default.  Let the translator
86997         tailor the locale-specific quoting behavior by providing
86998         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86999
87000         * lib/quotearg.c (N_): New macro.
87001         (gettext_default): New function.
87002         (quotearg_buffer_restyled): Use
87003         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87004         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87005
87006 2000-07-09  Jim Meyering  <meyering@lucent.com>
87007
87008         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87009         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87010
87011         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87013
87014 2000-07-09  Jim Meyering  <meyering@lucent.com>
87015
87016         * lib/Most files: Update copyright dates to include 2000.
87017
87018 2000-07-08  Jim Meyering  <meyering@lucent.com>
87019
87020         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87021         if not defined.
87022         (xgethostname): Remove now-unnecessary #ifdef.
87023         Move declaration of `err' into loop where it's used.
87024
87025 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87026         and Bruno Haible  <haible@clisp.cons.org>
87027
87028         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87029         only if the test for an object-type mbstate_t fails.  This
87030         prevents us from mistakenly reporting that mbstate_t is a
87031         system object type after we "#define mbstate_t int" to work
87032         around its lack.
87033
87034 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87035         and Bruno Haible  <haible@clisp.cons.org>
87036
87037         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87038
87039 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87040
87041         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87042         to strerror_r.
87043         Include <ctype.h> for use of isalpha.
87044
87045 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87046
87047         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87048         by allocating a larger buffer. Test the gethostname return value for
87049         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87050         returns an error and ENAMETOOLONG isn't defined.
87051
87052 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87053
87054         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87055         dimension.
87056
87057 2000-07-04  Jim Meyering  <meyering@lucent.com>
87058
87059         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87060         of the deprecated AC_CHECKING.
87061
87062 2000-07-04  Jim Meyering  <meyering@lucent.com>
87063
87064         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87065         Reported by Bruno Haible.
87066
87067 2000-07-04  Jim Meyering  <meyering@lucent.com>
87068
87069         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87070         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87071         lacks mbrtowc.
87072
87073 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87074
87075         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87076         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87077
87078 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87079         and Bruno Haible  <haible@clisp.cons.org>
87080
87081         * lib/quotearg.c (mbrtowc):
87082         Assign to *pwc, and return 1 only if result is nonzero.
87083         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87084
87085 2000-07-03  Jim Meyering  <meyering@lucent.com>
87086
87087         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87088
87089 2000-07-03  Jim Meyering  <meyering@lucent.com>
87090
87091         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87092         This is necessary to get a definition of e.g., UTMP_FILE on
87093         HP-UX 10.20.
87094         From Bob Proulx.
87095
87096 2000-07-02  Jim Meyering  <meyering@lucent.com>
87097
87098         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87099
87100         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87101         AC_LIBOBJ(function_name).
87102         * m4/chown.m4: Likewise.
87103         * m4/fnmatch.m4: Likewise.
87104         * m4/ftruncate.m4: Likewise.
87105         * m4/getgroups.m4: Likewise.
87106         * m4/getline.m4: Likewise.
87107         * m4/group-member.m4: Likewise.
87108         * m4/jm-macros.m4: Likewise.
87109         * m4/lstat.m4: Likewise.
87110         * m4/malloc.m4: Likewise.
87111         * m4/memcmp.m4: Likewise.
87112         * m4/nanosleep.m4: Likewise.
87113         * m4/putenv.m4: Likewise.
87114         * m4/realloc.m4: Likewise.
87115         * m4/regex.m4: Likewise.
87116         * m4/stat.m4: Likewise.
87117         * m4/strftime.m4: Likewise.
87118
87119 2000-07-02  Jim Meyering  <meyering@lucent.com>
87120
87121         * lib/quotearg.c (mbstate_t): Don't define here.
87122
87123 2000-07-02  Jim Meyering  <meyering@lucent.com>
87124
87125         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87126
87127 2000-07-01  Jim Meyering  <meyering@lucent.com>
87128
87129         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87130
87131 2000-07-01  Jim Meyering  <meyering@lucent.com>
87132
87133         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87134         problem.
87135
87136 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87137
87138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87139         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87140
87141 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87142
87143         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87144         per change in ../m4/ls-mntd-fs.m4.
87145         (read_filesystem_list): Ignore symbolic links.
87146
87147 2000-06-29  Jim Meyering  <meyering@lucent.com>
87148
87149         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87150         for declaration of strcmp.
87151
87152         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87153
87154         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87155         Avoid warning by casting result to `char *' to remove `const'.
87156
87157 2000-06-28  Jim Meyering  <meyering@lucent.com>
87158
87159         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87160         included by quotearg.c, for which we perform this test.  From
87161         Bruno Haible.
87162
87163 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87164
87165         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87166         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87167         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87168
87169 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87170
87171         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87172
87173 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87174
87175         savedir now sets errno on failure and invokes xmalloc to get memory.
87176         Fix a couple of other minor bugs while we're at it.
87177
87178         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87179         (NAMLEN): Remove macro.
87180         (malloc, realloc): Remove decls.
87181         (stpcpy): Likewise.
87182         ("xalloc.h"): Include.
87183         (NAME_SIZE_DEFAULT): New macro.
87184         (savedir): Use xmalloc / xrealloc to allocate memory.
87185         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87186         Skip "" directory entries.
87187         Use strlen to calculate directory entry length, since the old method
87188         is rarely used these days and isn't worth supporting.
87189         Don't use a pointer after freeing it.
87190         Check for integer overflow when calculating allocation size.
87191         Use memcpy to copy entries, instead of stpcpy.
87192         Set errno properly when returning NULL.
87193         Check for readdir error.
87194
87195 2000-06-26  Jim Meyering  <meyering@lucent.com>
87196
87197         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87198
87199 2000-06-25  Jim Meyering  <meyering@lucent.com>
87200
87201         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87202         Linux header bug when _XOPEN_SOURCE is defined to 500.
87203
87204 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87205
87206         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87207         deficiency.
87208
87209 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87210
87211         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87212         Include xalloc.h.
87213         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87214
87215 2000-06-24  Jim Meyering  <meyering@lucent.com>
87216
87217         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87218         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87219         for which strerror does return char*, but which lacks a conveniently
87220         accessible declaration of the function.  If the compile-test says
87221         strerror_r doesn't work, then resort to a `run'-test that works on
87222         BeOS and segfaults on DEC Unix.
87223
87224 2000-06-24  Jim Meyering  <meyering@lucent.com>
87225
87226         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87227
87228 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87229
87230         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87231         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87232
87233 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87234
87235         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87236         (mbrtowc, mbstate_t): Define substitutes if
87237         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87238         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87239         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87240
87241 2000-06-23  Jim Meyering  <meyering@lucent.com>
87242
87243         * m4/afs.m4: Add missing AC_MSG_RESULT.
87244         Reported by Bruno Haible.
87245
87246         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87247         Suggestion from Bruno Haible.
87248
87249 2000-06-23  Jim Meyering  <meyering@lucent.com>
87250
87251         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87252
87253 2000-06-21  Jim Meyering  <meyering@lucent.com>
87254
87255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87256
87257 2000-06-21  Jim Meyering  <meyering@lucent.com>
87258
87259         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87260         (noinst_HEADERS): Add getstr.h.
87261
87262         * lib/getline.c (getstr): Move into a separate file.
87263         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87264         the following changes: new parameter, delim2; both delim[12]
87265         parameters have type `int', not `char'.  The latter would lose
87266         with 8-bit delimiters.
87267         * lib/getstr.h: New file.
87268
87269 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87270
87271         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87272         than 1024, return a memory chunk of least possible size, instead
87273         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87274         Use free/xmalloc instead of xrealloc to avoid copying for very long
87275         paths.
87276
87277 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87278
87279         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87280         the empty string.
87281
87282 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87283
87284         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87285         address, not strdup.  Include <stdlib.h> and don't declare free().
87286
87287 2000-06-19  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87290
87291 2000-06-18  Jim Meyering  <meyering@lucent.com>
87292
87293         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87294
87295         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87296         `checking whether...' message to be consistent with that of the
87297         lstat test.
87298
87299 2000-06-18  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87302         Besides, these days every porting target provides a mkdir function.
87303
87304         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87305         needed. (this snippet comes from src/system.h).
87306
87307 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87308
87309         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87310
87311 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87312
87313         * lib/human.c (adjust_value): New function.
87314         (human_readable_inexact): Apply rounding style even when
87315         printing approximate values.
87316
87317 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87318
87319         * lib/human.c (human_readable_inexact): Allow an input block
87320         size that is not a multiple of the output block size, and vice versa.
87321         Reported by Piergiorgio Sartor.
87322
87323 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87324
87325         * lib/getdate.y (get_date): Apply relative times after time
87326         zone indicator, not before.  Reported by Todd A. Jacobs.
87327
87328 2000-06-13  Jim Meyering  <meyering@lucent.com>
87329
87330         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87331
87332         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87333
87334 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87335
87336         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87337
87338 2000-06-12  Jim Meyering  <meyering@lucent.com>
87339
87340         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87341         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87342         optional argument.
87343         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87344         the optional argument, `lib'.
87345
87346 2000-06-08  Jim Meyering  <meyering@lucent.com>
87347
87348         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87349
87350 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87351
87352         Rewrite largefile configuration so that we don't need to run
87353         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87354         AC_CANONICAL_HOST in configure.in -- jmm]
87355
87356         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87357         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87358         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87359         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87360         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87361         All uses changed.
87362         Instead of inspecting the output of getconf, try to compile the
87363         test program without and with the macro definition.
87364         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87365         for getconf.  Instead, check for the needed flags by compiling
87366         test programs.
87367
87368 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87369
87370         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87371
87372 2000-06-04  Jim Meyering  <meyering@lucent.com>
87373
87374         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87375         SunOS 4.1.4 for which gid_t is an unsigned type.
87376
87377 2000-06-03  Jim Meyering  <meyering@lucent.com>
87378
87379         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87380         now that autoconf requires that.
87381
87382         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87383         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87384         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87385
87386 2000-06-03  Jim Meyering  <meyering@lucent.com>
87387
87388         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87389
87390 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87391
87392         * m4/glibc21.m4: New file.
87393         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87394
87395 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87396
87397         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87398         newer, don't install charset.alias.
87399         * lib/config.charset: Change the Linux/glibc rules so they become empty
87400         on glibc-2.1 or newer.
87401
87402 2000-06-02  Jim Meyering  <meyering@lucent.com>
87403
87404         * lib/mountlist.c: Back out last change.  Instead, do this...
87405         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87406         me_dummy member using the same `ignore'-testing code.
87407         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87408         fs_type strings.
87409         From Mark D. Roth.
87410
87411 2000-05-29  Jim Meyering  <meyering@lucent.com>
87412
87413         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87414         mounts with the `ignore' attribute.  Based on a patch from
87415         Mark D. Roth.
87416
87417 2000-05-28  Jim Meyering  <meyering@lucent.com>
87418
87419         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87420         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87421         * m4/stat.m4: Likewise.
87422         * m4/lstat.m4: Likewise.
87423         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87424
87425         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87426         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87427
87428 2000-05-26  Jim Meyering  <meyering@lucent.com>
87429
87430         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87431
87432 2000-05-24  Jim Meyering  <meyering@lucent.com>
87433
87434         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87435         autoconf requires that.
87436         * m4/lib-check.m4: Likewise.
87437         * m4/jm-macros.m4: Likewise.
87438         * m4/strftime.m4: Likewise.
87439
87440         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87441         AC_CHECK_DECLS, now that autoconf requires that.
87442
87443 2000-05-22  Jim Meyering  <meyering@lucent.com>
87444
87445         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87446         * m4/lstat.m4: Likewise.
87447
87448 2000-05-22  Jim Meyering  <meyering@lucent.com>
87449
87450         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87451
87452 2000-05-20  Jim Meyering  <meyering@lucent.com>
87453
87454         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87455         (jm_PREREQ): Use it.
87456
87457 2000-05-18  Jim Meyering  <meyering@lucent.com>
87458
87459         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87460         back, too, since it may have been modified by allocate_entry.
87461         (hash_delete): Rewrite to use neither the assignment operator
87462         nor the comma operator in an if-expression.
87463
87464 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87465
87466         * lib/closeout.c:
87467         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87468         Remove; no longer needed.
87469         "quotearg.h": Add include.
87470         (file_name): Do not bother to explicitly initialize to NULL; it's less
87471         efficient on some hosts.
87472         (close_stdout_status): Remove test as to whether stdout was already
87473         closed; it breaks for the case "echo x | sort >&-".
87474         Quote file name colons.
87475         Do not assume that _("write error") lacks format strings.
87476
87477 2000-05-15  Jim Meyering  <meyering@lucent.com>
87478
87479         * lib/version-etc.c (version_etc_copyright): Update the copyright
87480         string used in all --version output.
87481
87482 2000-05-14  Jim Meyering  <meyering@lucent.com>
87483
87484         * lib/closeout.c (close_stdout_set_file_name): New function.
87485         (close_stdout_status): Use new file-scoped global.
87486         Return right away if fstat says the stdout file descriptor is invalid.
87487         * lib/closeout.h (close_stdout_set_file_name): Declare.
87488
87489 2000-05-10  Jim Meyering  <meyering@lucent.com>
87490
87491         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87492         (close_stdout_set_status): New function.
87493         * lib/closeout.h (close_stdout_set_status): Declare.
87494
87495 2000-05-09  Jim Meyering  <meyering@lucent.com>
87496
87497         * m4/gettext.m4: Rename this...
87498         * m4/libintl.m4: ...to this.
87499
87500 2000-05-08  Jim Meyering  <meyering@lucent.com>
87501
87502         * lib/long-options.c: Don't include closeout.h.
87503         (parse_long_options): Don't call close_stdout for --version.
87504
87505 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87506
87507         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87508         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87509         2.1.3 bug.  This avoids a clash when files like regex.c define
87510         _GNU_SOURCE.
87511
87512 2000-05-06  Jim Meyering  <meyering@lucent.com>
87513
87514         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87515         (AC_REPLACE_FUNCS): Add strnlen.
87516
87517         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87518         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87519
87520         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87521         AC_SEARCH_LIBS call for nanosleep.
87522         (LIB_NANOSLEEP): Set and AC_SUBST.
87523
87524 2000-05-06  Jim Meyering  <meyering@lucent.com>
87525
87526         * lib/strnlen.c: Undefine __strnlen and strnlen.
87527         [!weak_alias]: Define __strnlen to strnlen.
87528
87529         * lib/atexit.c: New file, from libiberty.
87530
87531 2000-05-06  Jim Meyering  <meyering@lucent.com>
87532
87533         * lib/closeout.c (close_stdout_status): Also check for errors on the
87534         stderr stream.
87535
87536 2000-05-05  Jim Meyering  <meyering@lucent.com>
87537
87538         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87539         AC_SEARCH_LIBS call for clock_gettime.
87540         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87541
87542         * m4/search-libs.m4: Update from autoconf.
87543
87544         su doesn't work on Solaris 2.6.
87545         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87546         <shadow.h>.  Reported by Dragos Harabor.
87547
87548 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87549
87550         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87551         memcpy instead of xmalloc, xrealloc, path_concat.
87552         (locale_charset): Treat empty environment variables as absent.
87553         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87554
87555 2000-05-04  Jim Meyering  <meyering@lucent.com>
87556
87557         * lib/getopt.c: Update from glibc.
87558         * lib/obstack.c: Likewise.
87559         * lib/obstack.h: Likewise.
87560         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87561         file
87562
87563         * lib/regex.h: Likewise.
87564         * lib/strndup.c: Likewise.
87565         * lib/strnlen.c: New file, from glibc.
87566
87567 2000-05-03  Jim Meyering  <meyering@lucent.com>
87568
87569         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87570
87571 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87572
87573         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87574         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87575         compile-time test, rather than inspecting host and OS, to
87576         decide whether to define _LARGEFILE_SOURCE.
87577
87578 2000-05-01  Jim Meyering  <meyering@lucent.com>
87579
87580         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87581
87582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87583         Based on a patch from Bruno Haible.
87584
87585 2000-05-01  Jim Meyering  <meyering@lucent.com>
87586
87587         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87588
87589 2000-04-29  Jim Meyering  <meyering@lucent.com>
87590
87591         * lib/path-concat.c: Declare strdup only if it's not defined.
87592         * lib/canon-host.c: Likewise.
87593
87594 2000-04-28  Jim Meyering  <meyering@lucent.com>
87595
87596         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87597         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87598         is included first, then limits.h is included by locale.h by libintl.h.
87599         From John David Anglin.
87600
87601 2000-04-25  Jim Meyering  <meyering@lucent.com>
87602
87603         * lib/makepath.c (S_IRWXUGO): Define.
87604         (make_path): Always perform explicit chmod if MODE specifies any
87605         of the `special' permission bits.  Prompted by a bug report against
87606         install from Mate Wierdl and Joost van Baal.
87607
87608 2000-04-18  Jim Meyering  <meyering@lucent.com>
87609
87610         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87611         (jm_PREREQ): Use it.
87612
87613 2000-04-18  Jim Meyering  <meyering@lucent.com>
87614
87615         * lib/README: New file.
87616
87617         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87618         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87619
87620 2000-04-17  Jim Meyering  <meyering@lucent.com>
87621
87622         Get it right :-)
87623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87624         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87625         Suggestion from Akim Demaille.
87626
87627 2000-04-17  Jim Meyering  <meyering@lucent.com>
87628
87629         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87630         the definition of it to rpl_strftime also defined-away the system's
87631         declaration.
87632
87633 2000-04-15  Jim Meyering  <meyering@lucent.com>
87634
87635         Use `C' to denote so-called `contiguous' files, the same way
87636         that tar does.
87637         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87638         (ftypelet): Use S_ISCTG.
87639         From Michael Deutschmann.
87640
87641 2000-04-14  Jim Meyering  <meyering@lucent.com>
87642
87643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87644         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87645         clobbered.
87646
87647 2000-04-14  Jim Meyering  <meyering@lucent.com>
87648
87649         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87650
87651 2000-04-13  Jim Meyering  <meyering@lucent.com>
87652
87653         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87654         AH_VERBATIM to insert required #ifndef into config.h.in.
87655         Suggestion from Akim Demaille.
87656
87657 2000-04-12  Jim Meyering  <meyering@lucent.com>
87658
87659         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87660         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87661         Christian Krackowizer.
87662
87663         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87664         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87665         (AC_SYS_LARGEFILE): Require.
87666         (AM_C_PROTOTYPES): Require.
87667
87668 2000-04-08  Jim Meyering  <meyering@lucent.com>
87669
87670         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87671         names don't conflict.  Reported by Eli Zaretskii.
87672
87673 2000-04-07  Jim Meyering  <meyering@lucent.com>
87674
87675         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87676         sys/types.h, to work around system header problems on AIX 3.2.5.
87677         From Bruno Haible.
87678
87679 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87680
87681         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87682         bug.  Deal with the different error behavior of Irix iconv.
87683
87684 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87685
87686         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87687         IRIX if the installer said otherwise.
87688
87689 2000-04-05  Jim Meyering  <meyering@lucent.com>
87690
87691         Portability tweaks required for ultrix4.3.
87692         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87693         (jm_CHECK_DECLS): Add getutent to the list of functions.
87694         (_jm_DECL_HEADERS): Add utmpx.h.
87695         From John David Anglin.
87696
87697         * m4/strftime.m4: Back out the 2000-04-02 change.
87698         Instead of that change, simply undefine putenv in the test program.
87699
87700 2000-04-05  Jim Meyering  <meyering@lucent.com>
87701
87702         Portability tweaks required for ultrix4.3.
87703         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87704         getutent.
87705         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87706         * lib/canon-host.c: Declare strdup.
87707         * lib/path-concat.c: Likewise.
87708         From John David Anglin.
87709
87710 2000-04-04  Jim Meyering  <meyering@lucent.com>
87711
87712         Be more DOS 8.3-friendly.
87713         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87714         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87715         * lib/Makefile.am: Reflect renaming.
87716         Reported by Eli Zaretskii.
87717
87718         Use a temporary file name that won't clash with `charset.alias'
87719         in the DOS 8.3 name space.
87720         * lib/Makefile.am (charset_tmp): Define.
87721         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87722         (uninstall-local): Likewise.
87723         Reported by Eli Zaretskii.
87724
87725 2000-04-03  Jim Meyering  <meyering@lucent.com>
87726
87727         * m4/gettext.m4: Fix typo in comment.
87728
87729         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87730         textutils/configure.in).  Suggestion from Paul Eggert.
87731         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87732
87733 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87734
87735         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87736         variable in the shell rather than using putenv, which isn't
87737         portable.  This avoids the configure-time inter-test dependency
87738         on the potentially-renamed putenv function.
87739
87740 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87741
87742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87743         before checking struct stat.st_blksize, so that
87744         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87745
87746 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87747
87748         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87749         since strftime.c uses HAVE_STRFTIME to decide whether to use
87750         the underlying strftime.
87751
87752 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87753
87754         * lib/time/strftime.c (my_strftime): Make sure we call the system
87755         strftime, not ourselves, when invoking the underlying strftime.
87756
87757 2000-03-24  Jim Meyering  <meyering@lucent.com>
87758
87759         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87760         (charset_alias): Define.
87761         (install-exec-local): Factor out common code.
87762         (uninstall-local): Split lines longer than 80.
87763         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87764         (SUFFIXES): Define.
87765         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87766         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87767
87768 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87769
87770         * lib/config.charset: Output a line containing "Packages using this
87771         file".
87772         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87773         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87774         ref-del.sed): New rules.
87775
87776 2000-03-17  Jim Meyering  <meyering@lucent.com>
87777
87778         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87779         Otherwise, include <strings.h>
87780
87781 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87782
87783         * lib/unicodeio.c (utf8_wctomb): New function.
87784         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87785         format instead of in UCS-4 with platform dependent endianness.
87786
87787 2000-03-10  Jim Meyering  <meyering@lucent.com>
87788
87789         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87790         From Marco Franzen.
87791
87792 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/savedir.c (savedir): Work even if directory size is
87795         negative; this can happen with some screwy NFS configurations.
87796
87797 2000-03-06  Jim Meyering  <meyering@lucent.com>
87798
87799         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87800         if it's NULL (because we ran out of memory).  From Bruno Haible.
87801
87802 2000-03-05  Jim Meyering  <meyering@lucent.com>
87803
87804         * lib/localcharset.c ("path-concat.h"): Include.
87805         (get_charset_aliases): Use path_concat instead of ANSI string
87806         concatenation.
87807
87808         * lib/unicodeio.h (PARAMS): Define.
87809         Use it to guard prototype.
87810
87811 2000-03-04  Jim Meyering  <meyering@lucent.com>
87812
87813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87814         for lib/localcharset.c.
87815
87816 2000-03-04  Jim Meyering  <meyering@lucent.com>
87817
87818         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87819         installing into it.
87820         (uninstall-local): Uncomment this rule so `make distcheck' works
87821         once again.
87822
87823         * lib/unicodeio.c (<errno.h>): Include it.
87824         (errno): Declare if not defined.
87825
87826         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87827
87828         * lib/config.charset: New version, incorporating remarks from a linux
87829         i18n mailing list.  From Bruno Haible.
87830
87831 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87832
87833         * m4/codeset.m4: New file.
87834         * m4/iconv.m4: New file.
87835         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87836
87837 2000-03-03  Jim Meyering  <meyering@lucent.com>
87838
87839         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87840
87841 2000-03-02  Jim Meyering  <meyering@lucent.com>
87842
87843         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87844         the messages come out on separate lines.
87845
87846         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87847         rather than jm_CHECK_DECLARATIONS.
87848         * m4/decl.m4: Remove now-unused file.
87849
87850         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87851         geteuid.
87852
87853 2000-03-02  Jim Meyering  <meyering@lucent.com>
87854
87855         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87856
87857 2000-03-01  Jim Meyering  <meyering@lucent.com>
87858
87859         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87860         * lib/unicodeio.c: Likewise.
87861
87862 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87863
87864         * lib/config.charset: New file.
87865         * lib/localcharset.c: New file.
87866         * lib/unicodeio.h, lib/unicodeio.c: New files.
87867         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87868         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87869         (noinst_HEADERS): Add unicodeio.h.
87870         (all-local, install-exec-local, charset.alias): New targets.
87871
87872 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/quotearg.c (ALERT_CHAR): New macro.
87875         (quotearg_buffer_restyled): Use it.
87876
87877 2000-02-27  Jim Meyering  <meyering@lucent.com>
87878
87879         * m4/check-decl.m4: Add getenv to the list.
87880
87881 2000-02-27  Jim Meyering  <meyering@lucent.com>
87882
87883         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87884         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87885
87886         * lib/backupfile.c: Guard inclusion of stdlib.h with
87887         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87888         Declare malloc if needed.
87889
87890         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87891         `#ifndef HAVE_DECL..'
87892         now that autoconf always defines the HAVE_DECL_ symbols.
87893         * lib/human.c: Likewise.
87894         * lib/same.c: Likewise.
87895         * lib/strtoumax.c: Likewise.
87896
87897         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87898         declaration check was not run.
87899         * lib/hash.c: Likewise.
87900         * lib/human.c: Likewise.
87901         * lib/same.c: Likewise.
87902         * lib/strtoumax.c: Likewise.
87903
87904         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87905         `.', then first look up the entire `.'-containing string as a login
87906         name.
87907
87908 2000-02-23  Jim Meyering  <meyering@lucent.com>
87909
87910         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87911         in place of my hack.
87912
87913 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87914
87915         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87916         (textint): New typedef.
87917         (parser_control): Member year changed from int to textint.
87918         All uses changed.
87919         (YYSTYPE): Removed; replaced by %union with int and textint members.
87920         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87921         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87922         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87923         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87924         (date, number, to_year): Use width of number in digits, not its value,
87925         to determine whether it's a 2-digit year, or a 2-digit time.
87926         (yylex): Store number of digits of numeric tokens.
87927         Reported by John Kendall.
87928
87929         (parser_control): Changed from struct parser_control to typedef (for
87930         consistency).  All uses changed.
87931
87932         (tID): Removed; not used.
87933         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87934
87935 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87936
87937         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87938         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87939
87940 2000-02-12  Jim Meyering  <meyering@lucent.com>
87941
87942         * lib/userspec.c (ISDIGIT): Define it.
87943         (isdigit): Remove definition.
87944         (is_number): Use ISDIGIT, not isdigit.
87945         <libintl.h>: Include.
87946         (_ and N_): Define.
87947         (parse_user_spec): Mark translatable strings.
87948
87949 2000-02-10  Jim Meyering  <meyering@lucent.com>
87950
87951         With these changes, nanosleep.[ch] are finally enough like the other
87952         lib/* replacement files to compile on a few more losing systems.
87953
87954         * lib/nanosleep.h: Don't include config.h.
87955         Remove prototype from declaration of nanosleep.
87956         (PARAMS): Remove now-unneeded definition.
87957         * lib/nanosleep.c: #undef nanosleep.
87958         (rpl_nanosleep): Rename from nanosleep.
87959
87960 2000-02-10  Jim Meyering  <meyering@lucent.com>
87961
87962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87963         gnu_nanosleep to rpl_nanosleep.
87964
87965 2000-02-09  Jim Meyering  <meyering@lucent.com>
87966
87967         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87968         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87969
87970 2000-02-08  Akim Demaille  <akim@epita.fr>
87971
87972         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87973         `[' and `]' and remove uses of `changequote'.
87974         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87975         (AC_SYS_LARGEFILE): Likewise.
87976         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87977         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87978         of changequote.
87979         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87980         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87981         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87982         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87983
87984 2000-02-05  Jim Meyering  <meyering@lucent.com>
87985
87986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87987         Remove explicit use of AC_HEADER_TIME.  It is required by
87988         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87989         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87990         in autoconf whereby the expansion of the latter ended up preceding
87991         the expansion of its prerequisite, AC_HEADER_TIME.
87992         Reported by Volker Borchert.
87993
87994 2000-02-03  Jim Meyering  <meyering@lucent.com>
87995
87996         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87997
87998 2000-02-03  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88001         rather than with `#if HAVE_UTMPNAME'.
88002
88003 2000-02-02  Jim Meyering  <meyering@lucent.com>
88004
88005         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88006         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88007         Reported by Eli Zaretskii.
88008
88009 2000-02-01  Jim Meyering  <meyering@lucent.com>
88010
88011         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88012
88013 2000-01-31  Jim Meyering  <meyering@lucent.com>
88014
88015         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88016         functions.  Add the time.h and sys/time.h headers along with the
88017         AC_REQUIRE'ment of AC_HEADER_TIME.
88018
88019 2000-01-31  Jim Meyering  <meyering@lucent.com>
88020
88021         * lib/nanosleep.h (nanosleep): Guard declaration with
88022         `#if ! HAVE_DECL_NANOSLEEP'.
88023         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88024         the declaration in that vendor's sys/timers.h.
88025         Reported by Christian Krackowizer.
88026
88027         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88028         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88029         (ISPRINT): Likewise.
88030         Reported by Tom Tromey.
88031
88032 2000-01-30  Jim Meyering  <meyering@lucent.com>
88033
88034         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88035
88036         * m4/prereq.m4 (utmp_includes): Define.
88037         Check for ut_user and ut_name members in both struct utmpx
88038         and struct utmp.
88039
88040 2000-01-30  Jim Meyering  <meyering@lucent.com>
88041
88042         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88043         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88044         header files where only utmpx.ut_user is declared.
88045
88046         * lib/readutmp.h (UT_USER): Define.
88047
88048 2000-01-29  Jim Meyering  <meyering@lucent.com>
88049
88050         * m4/lib-check.m4: New file containing library-related checks from
88051         fileutils and sh-utils (textutils had none).
88052
88053 2000-01-28  Jim Meyering  <meyering@lucent.com>
88054
88055         * m4/perl.m4: Change format of warning message to look more like that
88056         from the missing script.  Suggestion from François Pinard.
88057
88058 2000-01-25  Jim Meyering  <meyering@lucent.com>
88059
88060         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88061         well as time.h in the compile check.
88062         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88063         Fix typo in cross-compiling case: s/yes/no/.
88064
88065 2000-01-23  Jim Meyering  <meyering@lucent.com>
88066
88067         * m4/jm-macros.m4: Move df-related tests here from
88068         fileutils/configure.in
88069
88070         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88071         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88072
88073         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88074         s/space/ac_fsusage_space/.
88075         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88076
88077         * m4/ftruncate.m4: New file (derived from part of
88078         fileutils/configure.in).
88079         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88080         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88081
88082         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88083         AC_SUBST these here, rather than just in sh-util/configure.in, so
88084         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88085         all the same.
88086         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88087         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88088         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88089         (AC_SUBST(POW_LIBM)): Likewise.
88090         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88091
88092 2000-01-23  Jim Meyering  <meyering@lucent.com>
88093
88094         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88095         obstack.c.
88096
88097 2000-01-22  Jim Meyering  <meyering@lucent.com>
88098
88099         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88100
88101         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88102
88103         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88104         configure.in
88105         (AC_CHECK_HEADERS): Likewise for sh-utils.
88106         (AC_CHECK_HEADERS): Likewise for textutils.
88107         Merge the three lists of headers.
88108
88109         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88110         from fileutils' configure.in.
88111
88112         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88113         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88114         check-decl.m4.
88115
88116         * m4/check-decl.m4: Use #if rather than #ifdef.
88117         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88118         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88119         (_jm_DECL_HEADERS): Define new function.
88120         (jm_CHECK_DECLARATIONS): Require it.
88121
88122 2000-01-22  Jim Meyering  <meyering@lucent.com>
88123
88124         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88125         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88126         Required for some AIX systems.  Reported by Christian Krackowizer.
88127         [TESTING] (main): New function.
88128
88129         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88130         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88131         letters.
88132
88133         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88134         iswprint.
88135
88136         * lib/strverscmp.c (ISDIGIT): Define.
88137         (strverscmp): Use ISDIGIT, not isdigit.
88138
88139 2000-01-19  Jim Meyering  <meyering@lucent.com>
88140
88141         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88142         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88143         defines `struct timespec' in <sys/time.h>
88144
88145         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88146         Thanks to Akim for explaining.
88147
88148 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88149
88150         * lib/nanosleep.c (nanosleep):
88151         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88152         POSIX.1 doesn't require SA_INTERRUPT and some systems
88153         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88154         it's been part of POSIX.1 since day 1 (in 1988).
88155
88156 2000-01-17  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/interlock: Remove unused file.  Reported by François Pinard.
88159
88160 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88161
88162         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88163         alert, backslash, formfeed, and vertical tab unnecessarily in
88164         shell quoting style.
88165
88166 2000-01-16  Jim Meyering  <meyering@lucent.com>
88167
88168         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88169         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88170         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88171         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88172
88173 2000-01-16  Jim Meyering  <meyering@lucent.com>
88174
88175         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88176         because the latter didn't work.
88177
88178 2000-01-15  Jim Meyering  <meyering@lucent.com>
88179
88180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88181         (AC_REPLACE_FUNCS): Add memcpy and memset.
88182         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88183         Add strpbrk.
88184         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88185
88186 2000-01-12  Jim Meyering  <meyering@lucent.com>
88187
88188         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88189         (jm_PREREQ): Use it.
88190         (jm_PREREQ_READUTMP): New macro.
88191         (jm_PREREQ): Use it.
88192
88193 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88194
88195         Quote multibyte characters correctly.
88196         * m4/c-bs-a.m4: New file.
88197         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88198         (jm_PREREQ): Use it.
88199
88200 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88201
88202         * m4/uintmax_t.m4: Port to autoconf 2.13.
88203
88204 2000-01-08  Jim Meyering  <meyering@ascend.com>
88205
88206         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88207         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88208
88209 2000-01-04  Jim Meyering  <meyering@ascend.com>
88210
88211         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88212         jm_STRUCT_DIRENT_D_TYPE.
88213         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88214         jm_STRUCT_DIRENT_D_INO.
88215         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88216         jm_STRUCT_UTIMBUF.
88217         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88218         renamings.
88219         * m4/utime.m4: Likewise.
88220
88221         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88222         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88223
88224 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88225
88226         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88227         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88228
88229 2000-01-02  Jim Meyering  <meyering@ascend.com>
88230
88231         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88232         remember if this is necessary.
88233
88234 1999-12-26  Jim Meyering  <meyering@ascend.com>
88235
88236         * m4/jm-macros.m4: Use it here.
88237         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88238
88239 1999-12-23  Jim Meyering  <meyering@ascend.com>
88240
88241         * m4/jm-macros.m4: Check for clock_gettime (moved from
88242         fileutils/configure.in)
88243         Check for gettimeofday.
88244
88245 1999-12-20  Jim Meyering  <meyering@ascend.com>
88246
88247         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88248         autoconf-2.14a-1999-12-20.
88249
88250 1999-12-19  Jim Meyering  <meyering@ascend.com>
88251
88252         * m4/lstat-slash.m4: New file.
88253         * m4/jm-macros.m4: Use the new macro:
88254         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88255
88256 1999-12-07  Jim Meyering  <meyering@ascend.com>
88257
88258         * m4/perl.m4: Require that File::Compare be available, too.
88259         Too many systems seem to lack it.
88260
88261         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88262         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88263
88264 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88265
88266         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88267         problem with the QNX 4.25 shell, which doesn't propagate exit
88268         status of failed commands inside shell assignments.
88269
88270 1999-11-17  Jim Meyering  <meyering@ascend.com>
88271
88272         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88273
88274 1999-11-07  Jim Meyering  <meyering@ascend.com>
88275
88276         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88277
88278 1999-11-06  Jim Meyering  <meyering@ascend.com>
88279
88280         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88281         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88282
88283 1999-11-05  Jim Meyering  <meyering@ascend.com>
88284
88285         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88286         configure.in of textutils, fileutils, and sh-utils into this one
88287         (shared between those packages) file.
88288         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88289         AC_STRUCT_ST_BLKSIZE.
88290
88291 1999-11-03  Jim Meyering  <meyering@ascend.com>
88292
88293         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88294         of AC_CHECK_TYPE checks includes unistd.h.
88295         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88296         Suggestion from Akim Demaille.
88297
88298 1999-10-30  Jim Meyering  <meyering@ascend.com>
88299
88300         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88301         m4-quoted string.
88302         * m4/ls-mntd-fs.m4: Likewise.
88303         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88304         * m4/jm-winsz1.m4: Likewise.
88305
88306         * m4/const.m4: Remove file, since the fix made it into the experimental
88307         version of autoconf.
88308         * m4/mktime.m4: Likewise.
88309
88310         * m4/check-type.m4: Remove file, now that the latest version of
88311         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88312
88313         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88314         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88315         AC_CHECK_TYPE.
88316
88317 1999-10-04  Jim Meyering  <meyering@ascend.com>
88318
88319         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88320
88321 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88322
88323         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88324         2.95.1 bug with HP-UX 10.20.
88325
88326 1999-09-17  Jim Meyering  <meyering@ascend.com>
88327
88328         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88329         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88330         due to missing strdup (against sh-utils-2.0).
88331
88332 1999-08-29  Jim Meyering  <meyering@ascend.com>
88333
88334         * m4/jm-macros.m4: Require jm_BISON.
88335         * m4/bison.m4: New file.
88336
88337 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88338
88339         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88340         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88341
88342 1999-08-05  Jim Meyering  <meyering@ascend.com>
88343
88344         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88345         to avoid conflicts with `conftest' on 8+3 filesystems.
88346         Suggestion from Eli Zaretskii.
88347
88348 1999-08-04  Jim Meyering  <meyering@ascend.com>
88349
88350         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88351         fileutils and sh-utils (textutils's getline test was inadequate).
88352         (AM_FUNC_GETLINE): Run this test.
88353         (AC_CHECK_FUNCS): Check for getdelim.
88354         Reported by Bob Proulx.
88355
88356 1999-08-02  Jim Meyering  <meyering@ascend.com>
88357
88358         * m4/jm-macros.m4: Add a comment.
88359
88360 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88361
88362         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88363         <inttypes.h> defines strtoumax as a macro (and not as a
88364         function).
88365
88366 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88367
88368         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88369         that we can shift, multiply and divide unsigned long long
88370         values; Ultrix cc can't do it.
88371
88372 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88373
88374         * m4/mktime.m4: New file, which is a preview of what should appear
88375         in the next public autoconf release.
88376
88377 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88378
88379         * m4/lfs.m4: Remove this file.
88380         * m4/largefile.m4: New file.  It contains the old contents of
88381         lfs.m4, except that all names with prefix AC_LFS have been
88382         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88383         compatible with future autoconf versions.  Also, some minor m4
88384         quoting problems have been fixed.
88385
88386 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88387
88388         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88389         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88390         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88391         and simplify the shell code.
88392
88393 1999-08-01  Jim Meyering  <meyering@ascend.com>
88394
88395         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88396         m4.
88397
88398 1999-07-20  Jim Meyering  <meyering@ascend.com>
88399
88400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88401
88402 1999-07-15  Jim Meyering  <meyering@ascend.com>
88403
88404         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88405
88406 1999-05-22  Jim Meyering  <meyering@ascend.com>
88407
88408         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88409
88410 1999-05-20  Jim Meyering  <meyering@ascend.com>
88411
88412         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88413         Add a colon after each `then' in case $4 is empty.
88414
88415 1999-05-16  Jim Meyering  <meyering@ascend.com>
88416
88417         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88418
88419 1999-05-10  Jim Meyering  <meyering@ascend.com>
88420
88421         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88422
88423         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88424         AC_FUNC_MKTIME.
88425
88426 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88427
88428         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88429
88430 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88431
88432         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88433         not CPPFLAGS, so that linking works correctly in IRIX.
88434
88435 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88436
88437         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88438
88439 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88440
88441         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88442         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88444         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88445         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88446
88447         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88448
88449 1999-04-20  Jim Meyering  <meyering@ascend.com>
88450
88451         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88452         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88453         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88454
88455 1999-04-18  Jim Meyering  <meyering@ascend.com>
88456
88457         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88458         * m4/jm-macros.m4: Use it.
88459
88460 1999-04-06  Jim Meyering  <meyering@ascend.com>
88461
88462         * m4/strftime.m4: Remove test for %f.
88463
88464 1999-03-29  Jim Meyering  <meyering@ascend.com>
88465
88466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88467         superset of the AC_TYPE_* checks in the textutils, fileutils,
88468         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88469         AC_TYPE_PID_T.
88470
88471 1999-03-28  Jim Meyering  <meyering@ascend.com>
88472
88473         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88474         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88475         replaced e.g., in the *.sh files of the sh-utils.
88476
88477 1999-03-20  Jim Meyering  <meyering@ascend.com>
88478
88479         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88480         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88481         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88482
88483 1999-03-19  Jim Meyering  <meyering@ascend.com>
88484
88485         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88486
88487 1999-03-12  Jim Meyering  <meyering@ascend.com>
88488
88489         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88490
88491 1999-03-07  Jim Meyering  <meyering@ascend.com>
88492
88493         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88494         declared.
88495
88496 1999-02-17  Jim Meyering  <meyering@ascend.com>
88497
88498         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88499         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88500
88501 1999-02-07  Jim Meyering  <meyering@ascend.com>
88502
88503         * m4/group-member.m4: New file -- extracted from sh-utils'
88504         configure.in.
88505
88506         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88507         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88508
88509 1999-02-06  Jim Meyering  <meyering@ascend.com>
88510
88511         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88512         * m4/fnmatch.m4: Likewise.
88513         * m4/getgroups.m4: Likewise.
88514         * m4/lstat.m4: Likewise.
88515         * m4/malloc.m4: Likewise.
88516         * m4/putenv.m4: Likewise.
88517         * m4/realloc.m4: Likewise.
88518         * m4/regex.m4: Likewise.
88519         * m4/stat.m4: Likewise.
88520         * m4/strftime.m4: Likewise.
88521         Suggestion from Alain Magloire.
88522
88523         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88524         * m4/fnmatch.m4: Likewise.
88525         * m4/getgroups.m4: Likewise.
88526         * m4/getline.m4: Likewise.
88527         * m4/lstat.m4: Likewise.
88528         * m4/malloc.m4: Likewise.
88529         * m4/memcmp.m4: Likewise.
88530         * m4/putenv.m4: Likewise.
88531         * m4/realloc.m4: Likewise.
88532         * m4/regex.m4: Likewise.
88533         * m4/stat.m4: Likewise.
88534         * m4/strftime.m4: Likewise.
88535         Suggestion from Alain Magloire.
88536
88537         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88538         an argument.
88539
88540         * m4/regex.m4: Add a run-time Test for proper operation of
88541         re_compile_pattern.
88542
88543 1999-01-31  Jim Meyering  <meyering@ascend.com>
88544
88545         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88546
88547 1999-01-30  Jim Meyering  <meyering@ascend.com>
88548
88549         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88550
88551         * m4/jm-mktime.m4: Make this a wrapper around the official
88552         AM_FUNC_MKTIME rather than my private copy, now that the official one
88553         is up to date.
88554         * m4/mktime.m4: Remove file.
88555
88556         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88557         * m4/uptime.m4: Likewise.
88558         * m4/uintmax_t.m4: Likewise.
88559
88560 1999-01-28  Jim Meyering  <meyering@ascend.com>
88561
88562         * m4/jm-macros.m4: Use jm_AFS.
88563         * m4/afs.m4: New file (from fileutils' configure.in).
88564
88565         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88566         * m4/chown.m4: Likewise.
88567         * m4/d-ino.m4: Likewise.
88568         * m4/d-type.m4: Likewise.
88569         * m4/fnmatch.m4: Likewise.
88570         * m4/getgroups.m4: Likewise.
88571         * m4/gettext.m4: Likewise.
88572         * m4/jm-mktime.m4: Likewise.
88573         * m4/jm-winsz2.m4: Likewise.
88574         * m4/lcmessage.m4: Likewise.
88575         * m4/ls-mntd-fs.m4: Likewise.
88576         * m4/malloc.m4: Likewise.
88577         * m4/memcmp.m4: Likewise.
88578         * m4/putenv.m4: Likewise.
88579         * m4/realloc.m4: Likewise.
88580         * m4/st_mtim.m4: Likewise.
88581         * m4/strftime.m4: Likewise.
88582
88583 1999-01-16  Jim Meyering  <meyering@ascend.com>
88584
88585         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88586         (ARGMATCH_DIE_DECL): Define.
88587
88588 1999-01-12  Jim Meyering  <meyering@ascend.com>
88589
88590         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88591         Reported by Lars Hecking.
88592
88593 1999-01-10  Jim Meyering  <meyering@ascend.com>
88594
88595         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88596         gross kludge.
88597         * m4/inttypes_h.m4: Likewise.
88598         * m4/lstat.m4: Likewise.
88599         * m4/malloc.m4: Likewise.
88600         * m4/readdir.m4: Likewise.
88601         * m4/realloc.m4: Likewise.
88602         * m4/st_dm_mode.m4: Likewise.
88603         * m4/stat.m4: Likewise.
88604         * m4/utimbuf.m4: Likewise.
88605         * m4/utimes.m4: Likewise.
88606
88607         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88608         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88609         comments in config.h.in are meaningful.
88610
88611         * m4/jm-macros.m4: Require autoconf-2.13 here.
88612
88613         * m4/regex.m4: By default, don't use the included regex.c on systems
88614         with glibc 2.  Suggestion from Uli Drepper.
88615
88616 1999-01-02  Jim Meyering  <meyering@ascend.com>
88617
88618         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88619
88620 1998-12-18  Jim Meyering  <meyering@ascend.com>
88621
88622         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88623         Based on a suggestion from Lars Hecking.
88624
88625 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88626
88627         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88628
88629 1998-11-16  Jim Meyering  <meyering@ascend.com>
88630
88631         * m4/lfs.m4: Double-quote the `uname...` expression.
88632
88633 1998-11-14  Jim Meyering  <meyering@ascend.com>
88634
88635         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88636         * m4/stat.m4: Likewise.
88637
88638 1998-11-03  Jim Meyering  <meyering@ascend.com>
88639
88640         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88641         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88642
88643 1998-10-18  Jim Meyering  <meyering@ascend.com>
88644
88645         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88646
88647 1998-10-17  Jim Meyering  <meyering@ascend.com>
88648
88649         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88650         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88651         calls for those previously hard-coded headers.  Instead, take a new
88652         parameter.
88653         (jm_CHECK_DECLARATIONS): Reflect interface change.
88654         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88655         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88656
88657         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88658
88659 1998-10-14  Jim Meyering  <meyering@ascend.com>
88660
88661         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88662         instead of "TZ=America/Vancouver".  From Paul Eggert.
88663
88664 1998-10-11  Jim Meyering  <meyering@ascend.com>
88665
88666         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88667         This adds a test for a recently added compatibility fix for mktime.c.
88668         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88669
88670 1998-09-27  Jim Meyering  <meyering@ascend.com>
88671
88672         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88673
88674         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88675         ../configure.in, including a change from Gordon Matzigkeit to allow
88676         cross-compiling for the Hurd.
88677
88678         * m4/glibc.m4: New file/macro to test for the GNU C Library
88679         versions 1 and 2.  From Gordon Matzigkeit.
88680         Indent.
88681
88682 1998-09-21  Jim Meyering  <meyering@ascend.com>
88683
88684         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88685
88686 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88687
88688         Port nanosecond-resolution times to UnixWare 2.1.2 and
88689         pedantic Solaris 2.6.
88690
88691         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88692         AC_STRUCT_ST_MTIM.
88693         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88694         Generate name of ns member, instead of just 1 or undef.
88695         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88696
88697 1998-08-15  Jim Meyering  <meyering@ascend.com>
88698
88699         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88700         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88701         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88702         instead of jm_TYPE_SSIZE_T.
88703
88704 1998-08-12  Jim Meyering  <meyering@ascend.com>
88705
88706         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88707
88708 1998-08-02  Jim Meyering  <meyering@ascend.com>
88709
88710         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88711         in acconfig.h manually.
88712
88713 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88714
88715         * m4/st_mtim.m4: New file.
88716
88717 1998-07-28  Jim Meyering  <meyering@ascend.com>
88718
88719         * m4/utimes.m4: Undef stat.
88720
88721 1998-07-25  Jim Meyering  <meyering@ascend.com>
88722
88723         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88724         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88725
88726 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88727
88728         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88729         uid and gid actually remain unchanged.
88730
88731 1998-07-07  Jim Meyering  <meyering@ascend.com>
88732
88733         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88734
88735 1998-07-04  Jim Meyering  <meyering@ascend.com>
88736
88737         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88738         to prove that this macro can be used in packages without regex.c.
88739
88740 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88741
88742         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88743         is to be used.
88744
88745 1998-07-03  Jim Meyering  <meyering@ascend.com>
88746
88747         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88748
88749         * m4/gettext.m4: New file -- from gettext-0.10.35.
88750         * m4/lcmessage.m4: Likewise.
88751         * m4/progtest.m4: Likewise.
88752
88753         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88754         * m4/jm-macros.m4: Require the new macro.
88755
88756 1998-06-29  Jim Meyering  <meyering@ascend.com>
88757
88758         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88759         for the definition of NGROUPS (used in a system header included
88760         by sys/mount.h).
88761
88762 1998-06-28  Jim Meyering  <meyering@ascend.com>
88763
88764         * m4/ls-mntd-fs.m4: New file.
88765         * m4/fstypename.m4: New file.
88766
88767         * m4/jm-macros.m4: Require the new macro.
88768         * m4/jm-glibc-io.m4: New file.
88769
88770 1998-05-19  Jim Meyering  <meyering@ascend.com>
88771
88772         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88773         * m4/lchown.m4: New file.
88774
88775         * m4/Makefile.am.in: New file.
88776         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88777
88778 1998-05-14  Jim Meyering  <meyering@ascend.com>
88779
88780         * m4/Makefile.am (EXTRA_DIST): Add them.
88781         * m4/jm-macros.m4: New file.
88782         * m4/utimbuf.m4: New file.
88783
88784 1998-05-12  Jim Meyering  <meyering@ascend.com>
88785
88786         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88787
88788 1998-05-11  Jim Meyering  <meyering@ascend.com>
88789
88790         * m4/isc-posix.m4: New file.
88791
88792 1998-05-10  Jim Meyering  <meyering@ascend.com>
88793
88794         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88795
88796 1998-05-09  Jim Meyering  <meyering@ascend.com>
88797
88798         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88799         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88800         with automake.
88801
88802         * m4/ssize_t.m4: New file.
88803         * m4/mktime.m4: Remove file -- the new automake has this now.
88804
88805 1998-04-26  Jim Meyering  <meyering@ascend.com>
88806
88807         * m4/assert.m4: New file.
88808         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88809
88810 1998-04-05  Jim Meyering  <meyering@ascend.com>
88811
88812         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88813         (jm_PREREQ): Use it here.
88814
88815 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88816
88817         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88818         in acconfig.h.
88819
88820 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88821
88822         * m4/prereq.m4: New file.
88823         * m4/error.m4: New file.
88824         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88825
88826 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88827
88828         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88829         cache-check for the same variable -- that defeated the purpose of
88830         the test; the test program was never run.  This was a problem only
88831         on systems with losing getline functions -- HP-UX 10.20 is one.
88832         Reported by Bjorn Helgaas.
88833
88834 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88835
88836         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88837
88838 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88839
88840         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88841
88842         * m4/const.m4: New file.  Use an initializer in this declaration
88843         typedef int charset[2]; const charset x;
88844         Reported by Bob Glickstein.
88845
88846 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88847
88848         * m4/chown.m4: Fix reversed types on -1 args to chown.
88849         From Kaveh Ghazi.
88850
88851 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88852
88853         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88854         Add lseek and memchr.
88855
88856         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88857         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88858         have a 20-character limit on names.
88859
88860 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88861
88862         * m4/inttypes_h.m4: New file.
88863         * m4/uintmax_t.m4: New file.
88864         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88865
88866
88867         -----
88868
88869         Local Variables:
88870         coding: utf-8
88871         End:
88872
88873         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88874
88875         Copying and distribution of this file, with or without
88876         modification, are permitted provided the copyright notice
88877         and this notice are preserved.